HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_AgentTransformGroup.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_AgentTransformGroup_h__
10 #define __HOM_AgentTransformGroup_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_PtrOrNull.h"
15 
16 class HOM_AgentRig;
17 
18 SWIGOUT(%rename(AgentTransformGroup) HOM_AgentTransformGroup;)
19 // Force SWIG to output an __init__ method even though it determines this
20 // class is abstract.
21 SWIGOUT(%feature("notabstract") HOM_AgentTransformGroup;)
22 
24 {
25 public:
26 #ifdef SWIG
27 %extend
28 {
29  HOM_AgentTransformGroup(const char *path, const HOM_AgentRig &rig,
30  bool keep_external_ref = true)
31  { return HOM().newAgentTransformGroup(path, rig, keep_external_ref); }
32 
34  const char *name, const std::vector<int> &transforms,
35  const HOM_AgentRig &rig,
36  const std::vector<double> &weights = std::vector<double>())
37  { return HOM().newAgentTransformGroup(name, transforms, rig, weights); }
38 }
39 #else
41  { HOM_CONSTRUCT_OBJECT(this) }
42 #endif
43 
45  { HOM_DESTRUCT_OBJECT(this) }
46 
47  virtual bool
49 
51  { return !operator==(group); }
52 
53  virtual int __hash__() const = 0;
54  virtual std::string __repr__() const = 0;
55 
56  virtual std::string asJSON() const = 0;
57 
58  virtual std::string name() const = 0;
59  virtual std::vector<int> transformIndices() const = 0;
60  virtual std::vector<double> weights() const = 0;
61 };
62 
63 #endif
bool operator!=(HOM_PtrOrNull< HOM_AgentTransformGroup > group) const
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
png_infop int transforms
Definition: png.h:2591
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
virtual std::string __repr__() const =0
virtual HOM_AgentTransformGroup * newAgentTransformGroup(const char *path, const HOM_AgentRig &rig, bool keep_external_ref=true)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual std::string asJSON() const =0
HOM_API HOM_Module & HOM()
virtual int __hash__() const =0
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:596