HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_crowds.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_crowds_h__
10 #define __HOM_crowds_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_AgentShapeDeformer.h"
15 #include "HOM_Matrix4.h"
16 #include "HOM_Vector2.h"
17 #include "HOM_Vector3.h"
18 
20 class HOM_Geometry;
21 
22 SWIGOUT(%rename(crowds) HOM_crowds;)
23 
25 {
26 public:
27  virtual ~HOM_crowds() {}
28 
29  virtual std::string __repr__() = 0;
30 
31  virtual void
32  addBlendshapeInputs(HOM_Geometry &base_shape_geo,
33  const std::vector<HOM_AgentShape *> &shapes,
34  const std::vector<std::string> &channel_names) = 0;
35  virtual void addInBetweenShapes(HOM_Geometry &primary_shape_geo,
36  const std::vector<HOM_AgentShape *> &shapes,
37  const std::vector<double> &weights) = 0;
38 
39  SWIGOUT(%kwargs setBlendshapeDeformerParms;)
40  virtual void
41  setBlendshapeDeformerParms(HOM_Geometry &base_shape_geo,
42  const std::string &attribs = "P N",
43  const std::string &point_id_attrib = "id",
44  const std::string &prim_id_attrib = "id") = 0;
45 
46  SWIGOUT(%kwargs findAgentDefinitions;)
47  virtual std::vector<HOM_ElemPtr<HOM_AgentDefinition>> findAgentDefinitions(
48  HOM_Geometry &geo,
49  const char *group = 0,
50  HOM_EnumValue *group_type = &HOM_geometryType::Primitives) = 0;
51 
52  SWIGOUT(%kwargs replaceAgentDefinitions;)
53  virtual void
54  replaceAgentDefinitions(HOM_Geometry &geo,
55  const std::map<HOM_AgentDefinition *, HOM_AgentDefinition *> &defn_map,
56  const char *group = 0,
57  HOM_EnumValue *group_type = &HOM_geometryType::Primitives) = 0;
58 
59  virtual std::vector<HOM_Matrix4> computeLocalTransforms(
60  const HOM_AgentRig &rig,
61  const std::vector<HOM_Matrix4> &world_xforms) const = 0;
62 
63  virtual std::vector<HOM_Matrix4> computeWorldTransforms(
64  const HOM_AgentRig &rig,
65  const std::vector<HOM_Matrix4> &local_xforms) const = 0;
66 
67  virtual std::map<std::string, hboost::any>
68  computeRotationLimits(const HOM_AgentRig &rig,
69  const std::vector<HOM_AgentClip *> &clips,
70  int xform_idx, int parent_xform_idx) = 0;
71 
72  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeDeformer> >
73  shapeDeformers() = 0;
74 
75  SWIGOUT(%newobject findShapeDeformer;)
76  virtual HOM_AgentShapeDeformer *findShapeDeformer(const char *name) = 0;
77 
78  SWIGOUT(%ignore applyUsdProceduralOpaque;)
79  virtual void applyUsdProceduralOpaque(
80  void *stage,
81  const HOM_LopSelectionRule &selection_rule,
82  const char *camera_path,
83  const std::pair<int, int> &resolution,
84  double lod_threshold,
85  bool optimize_identical_poses,
86  double frame,
87  const char *prototype_material,
88  const char *instance_material,
89  const char *default_material) = 0;
90 
91 #ifdef SWIG
92 %extend
93 {
94  %kwargs applyUsdProcedural;
95  void applyUsdProcedural(
96  InterpreterObject stage,
97  const HOM_LopSelectionRule &selection_rule,
98  const char *camera_path,
99  const std::pair<int, int> &resolution,
100  double lod_threshold,
101  bool optimize_identical_poses,
102  double frame,
103  const char *prototype_material,
104  const char *instance_material,
105  const char *default_material)
106  {
107  return self->applyUsdProceduralOpaque(
108  stage, selection_rule, camera_path, resolution, lod_threshold,
109  optimize_identical_poses, frame, prototype_material,
110  instance_material, default_material);
111  }
112 }
113 #endif
114 };
115 
116 #endif
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
void GU_API addInBetweenShapes(GU_Detail &primary_shape_gdp, const UT_StringArray &inbetween_shape_names, const UT_Array< fpreal > &inbetween_weights)
HUSD_API const char * resolution()
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual ~HOM_crowds()
Definition: HOM_crowds.h:27