HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AgentLayer.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_AgentLayer_h__
10 #define __HOM_AgentLayer_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ElemPtr.h"
14 #include "HOM_PtrOrNull.h"
15 #include "HOM_Module.h"
16 
17 class HOM_AgentRig;
20 
21 SWIGOUT(%rename(AgentLayer) HOM_AgentLayer;)
22 // Force SWIG to output an __init__ method even though it determines this
23 // class is abstract.
24 SWIGOUT(%feature("notabstract") HOM_AgentLayer;)
25 
27 {
28 public:
29 #ifdef SWIG
30 %extend
31 {
32  HOM_AgentLayer(const char *name, const HOM_AgentRig &rig,
33  const HOM_AgentShapeLibrary &shapelib,
34  const std::vector<HOM_AgentShapeBinding *> &shape_bindings,
35  const HOM_AgentLayer *source_layer = 0)
36  {
37  return HOM().newAgentLayer(name, rig, shapelib, shape_bindings,
38  source_layer);
39  }
40 
41  HOM_AgentLayer(const char *path, const HOM_AgentRig &rig,
42  const HOM_AgentShapeLibrary &shapelib,
43  bool keep_external_ref = true)
44  {
45  return HOM().newAgentLayer(path, rig, shapelib, keep_external_ref);
46  }
47 }
48 #else
50  { HOM_CONSTRUCT_OBJECT(this) }
51 #endif
52 
53  virtual ~HOM_AgentLayer()
54  { HOM_DESTRUCT_OBJECT(this) }
55 
56  virtual bool operator==(HOM_PtrOrNull<HOM_AgentLayer> layer) const = 0;
58  { return !operator==(layer); }
59 
60  virtual int __hash__() const = 0;
61  virtual std::string __repr__() const = 0;
62 
63  virtual std::string asJSON() const = 0;
64 
65  virtual std::string name() const = 0;
66 
67  SWIGOUT(%kwargs fileName;)
68  virtual std::string fileName(bool expanded = false) const = 0;
69 
70  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeBinding> > bindings() const = 0;
71 
72  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeBinding> >
73  bindings(int transform) const = 0;
74 
75  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeBinding> > staticBindings() const = 0;
76 
77  virtual std::vector<HOM_ElemPtr<HOM_AgentShapeBinding> > deformingBindings() const = 0;
78 };
79 
80 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
virtual int __hash__() const =0
GLenum GLuint GLint GLint layer
Definition: glcorearb.h:1299
virtual ~HOM_AgentLayer()
virtual HOM_AgentLayer * newAgentLayer(const char *name, const HOM_AgentRig &rig, const HOM_AgentShapeLibrary &shapelib, const std::vector< HOM_AgentShapeBinding * > &shape_bindings, const HOM_AgentLayer *source_layer=0)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
virtual std::string fileName(bool expanded=false) const =0
GLuint const GLchar * name
Definition: glcorearb.h:786
GA_API const UT_StringHolder transform
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool operator!=(HOM_PtrOrNull< HOM_AgentLayer > layer) const
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:542