HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AgentRig.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_AgentRig_h__
10 #define __HOM_AgentRig_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_PtrOrNull.h"
15 
16 SWIGOUT(%rename(AgentRig) HOM_AgentRig;)
17 // Force SWIG to output an __init__ method even though it determines this
18 // class is abstract.
19 SWIGOUT(%feature("notabstract") HOM_AgentRig;)
20 
22 {
23 public:
24 #ifdef SWIG
25 %extend
26 {
27  HOM_AgentRig(const char *path, bool keep_external_ref = true)
28  { return HOM().newAgentRig(path, keep_external_ref); }
29 
30  HOM_AgentRig(const char *name,
31  const std::vector<std::string> &transform_names,
32  const std::vector<std::vector<int> > &hierarchy)
33  { return HOM().newAgentRig(name, transform_names, hierarchy); }
34 }
35 #else
37  { HOM_CONSTRUCT_OBJECT(this) }
38 #endif
39 
40  virtual ~HOM_AgentRig()
41  { HOM_DESTRUCT_OBJECT(this) }
42 
43  virtual bool operator==(HOM_PtrOrNull<HOM_AgentRig> rig) const = 0;
45  { return !operator==(rig); }
46 
47  virtual int __hash__() const = 0;
48  virtual std::string __repr__() const = 0;
49 
50  virtual std::string asJSON() const = 0;
51 
52  virtual std::string name() const = 0;
53 
54  SWIGOUT(%kwargs fileName;)
55  virtual std::string fileName(bool expanded = false) const = 0;
56 
57  virtual int transformCount() = 0;
58  virtual std::string transformName(int i) = 0;
59  virtual int findTransform(const std::string &transform_name) = 0;
60 
61  virtual int parentIndex(int transform) = 0;
62  virtual std::vector<int> childIndices(int transform) = 0;
63 };
64 
65 #endif
virtual ~HOM_AgentRig()
Definition: HOM_AgentRig.h:40
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1053
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLsizei const GLchar *const * path
Definition: glcorearb.h:3340
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:344
png_uint_32 i
Definition: png.h:2877
virtual int __hash__() const =0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1052
virtual std::string fileName(bool expanded=false) const =0
GLuint const GLchar * name
Definition: glcorearb.h:785
GA_API const UT_StringHolder transform
virtual HOM_AgentRig * newAgentRig(const char *path, bool keep_external_ref)=0
bool operator!=(HOM_PtrOrNull< HOM_AgentRig > rig) const
Definition: HOM_AgentRig.h:44
HOM_API HOM_Module & HOM()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:590