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 
79 #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:352
#define HOM_API
Definition: HOM_API.h:13
void GU_API addInBetweenShapes(GU_Detail &primary_shape_gdp, const UT_StringArray &inbetween_shape_names, const UT_Array< fpreal > &inbetween_weights)
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