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",
43  const std::string &point_id_attrib = "id",
44  const std::string &prim_id_attrib = "") = 0;
45 
46  virtual std::vector<HOM_ElemPtr<HOM_AgentDefinition> >
47  findAgentDefinitions(HOM_Geometry &geo, const char *group_str = 0) = 0;
48 
49  virtual void
50  replaceAgentDefinitions(HOM_Geometry &geo,
51  const std::map<HOM_AgentDefinition *, HOM_AgentDefinition *> &defn_map,
52  const char *group_str = 0) = 0;
53 
54  virtual std::vector<HOM_Matrix4> computeLocalTransforms(
55  const HOM_AgentRig &rig,
56  const std::vector<HOM_Matrix4> &world_xforms) const = 0;
57 
58  virtual std::vector<HOM_Matrix4> computeWorldTransforms(
59  const HOM_AgentRig &rig,
60  const std::vector<HOM_Matrix4> &local_xforms) const = 0;
61 
62  virtual std::map<std::string, hboost::any>
63  computeRotationLimits(const HOM_AgentRig &rig,
64  const std::vector<HOM_AgentClip *> &clips,
65  int xform_idx, int parent_xform_idx) = 0;
66 
67  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeDeformer> >
68  shapeDeformers() = 0;
69 
70  SWIGOUT(%newobject findShapeDeformer;)
71  virtual HOM_AgentShapeDeformer *findShapeDeformer(const char *name) = 0;
72 };
73 
74 #endif
GLbyte * weights
Definition: glew.h:7551
GLuint const GLchar * name
Definition: glew.h:1814
OIIO_API bool rename(string_view from, string_view to, std::string &err)
const GLint * attribs
Definition: glew.h:14385
#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 GU_API addInBetweenShapes(GU_Detail &primary_shape_gdp, const UT_StringArray &inbetween_shape_names, const UT_Array< fpreal > &inbetween_weights)
GLsizei const GLchar *const * string
Definition: glew.h:1844
virtual ~HOM_crowds()
Definition: HOM_crowds.h:27