HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AgentShapeLibrary.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_AgentShapeLibrary_h__
10 #define __HOM_AgentShapeLibrary_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_PtrOrNull.h"
15 
16 class HOM_AgentShape;
17 class HOM_Geometry;
18 
19 SWIGOUT(%rename(AgentShapeLibrary) HOM_AgentShapeLibrary;)
20 // Force SWIG to output an __init__ method even though it determines this
21 // class is abstract.
22 SWIGOUT(%feature("notabstract") HOM_AgentShapeLibrary;)
23 
25 {
26 public:
27 #ifdef SWIG
28 %extend
29 {
31  { return HOM().newAgentShapeLibrary(); }
32 
33  HOM_AgentShapeLibrary(HOM_Geometry &geometry, const char *name = nullptr)
34  { return HOM().newAgentShapeLibrary(geometry, name); }
35 
36  HOM_AgentShapeLibrary(const char *path, bool keep_external_ref = true)
37  { return HOM().newAgentShapeLibrary(path, keep_external_ref); }
38 }
39 #else
41  { HOM_CONSTRUCT_OBJECT(this) }
42 #endif
43 
45  { HOM_DESTRUCT_OBJECT(this) }
46 
47  virtual bool operator==(HOM_PtrOrNull<HOM_AgentShapeLibrary> lib) const = 0;
49  { return !operator==(lib); }
50 
51  virtual int __hash__() const = 0;
52  virtual std::string __repr__() const = 0;
53 
54  SWIGOUT(%newobject freeze;)
55  virtual HOM_AgentShapeLibrary *
56  freeze(bool keep_external_ref = false) const = 0;
57 
58  virtual std::string name() const = 0;
59 
60  SWIGOUT(%kwargs fileName;)
61  virtual std::string fileName(bool expanded = false) const = 0;
62 
63  SWIGOUT(%newobject findShape;)
64  virtual HOM_AgentShape *findShape(const std::string &name) const = 0;
65 
66  virtual std::vector<HOM_ElemPtr<HOM_AgentShape> > shapes() const = 0;
67 
68  SWIGOUT(%newobject data;)
69  virtual HOM_Geometry *data() const = 0;
70 
71  SWIGOUT(%newobject addShape;)
72  virtual HOM_AgentShape *addShape(const std::string &name,
73  HOM_Geometry &geometry) const = 0;
74 };
75 
76 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLboolean * data
Definition: glcorearb.h:131
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:352
#define HOM_API
Definition: HOM_API.h:13
virtual HOM_AgentShapeLibrary * newAgentShapeLibrary()=0
bool operator!=(HOM_PtrOrNull< HOM_AgentShapeLibrary > lib) const
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual HOM_Geometry * freeze(bool read_only=false, bool clone_data_ids=false)=0
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
Definition: format.h:895