HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_AgentShapeBinding.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_AgentShapeBinding_h__
10 #define __HOM_AgentShapeBinding_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_PtrOrNull.h"
15 
16 class HOM_AgentShape;
17 
18 SWIGOUT(%rename(AgentShapeBinding) HOM_AgentShapeBinding;)
19 // Force SWIG to output an __init__ method even though it determines this
20 // class is abstract.
21 SWIGOUT(%feature("notabstract") HOM_AgentShapeBinding;)
22 
24 {
25 public:
26 #ifdef SWIG
27 %extend
28 {
30  bool deforming, double bounds_scale = 1.0)
31  {
32  return HOM().newAgentShapeBinding(transform, shape, deforming,
33  bounds_scale);
34  }
35 }
36 #else
38  { HOM_CONSTRUCT_OBJECT(this) }
39 #endif
40 
42  { HOM_DESTRUCT_OBJECT(this) }
43 
44  virtual bool
47  { return !operator==(binding); }
48 
49  virtual int __hash__() const = 0;
50  virtual std::string __repr__() const = 0;
51 
52  virtual std::string shapeName() const = 0;
53  virtual int shapeId() const = 0;
54  virtual int transformId() const = 0;
55  virtual bool isDeforming() const = 0;
56  virtual double boundsScale() const = 0;
57 
58  SWIGOUT(%newobject shape;)
59  virtual HOM_AgentShape *shape() const = 0;
60 };
61 
62 #endif
virtual int __hash__() const =0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
virtual std::string __repr__() const =0
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
bool operator!=(HOM_PtrOrNull< HOM_AgentShapeBinding > binding) const
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
virtual HOM_AgentShapeBinding * newAgentShapeBinding(int transform, const HOM_AgentShape &shape, bool deforming, double bounds_scale)=0
GA_API const UT_StringHolder transform
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:596