HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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(const char *path, bool keep_external_ref = true)
34  { return HOM().newAgentShapeLibrary(path, keep_external_ref); }
35 }
36 #else
38  { HOM_CONSTRUCT_OBJECT(this) }
39 #endif
40 
42  { HOM_DESTRUCT_OBJECT(this) }
43 
44  virtual bool operator==(HOM_PtrOrNull<HOM_AgentShapeLibrary> lib) const = 0;
46  { return !operator==(lib); }
47 
48  virtual int __hash__() const = 0;
49  virtual std::string __repr__() const = 0;
50 
51  SWIGOUT(%newobject freeze;)
52  virtual HOM_AgentShapeLibrary *
53  freeze(bool keep_external_ref = false) const = 0;
54 
55  virtual std::string name() const = 0;
56 
57  SWIGOUT(%newobject findShape;)
58  virtual HOM_AgentShape *findShape(const std::string &name) const = 0;
59 
60  virtual std::vector<HOM_ElemPtr<HOM_AgentShape> > shapes() const = 0;
61 
62  SWIGOUT(%newobject data;)
63  virtual HOM_Geometry *data() const = 0;
64 
65  SWIGOUT(%newobject addShape;)
66  virtual HOM_AgentShape *addShape(const std::string &name,
67  HOM_Geometry &geometry) const = 0;
68 };
69 
70 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
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__()=0
#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:972
GLboolean * data
Definition: glcorearb.h:130
GLuint const GLchar * name
Definition: glcorearb.h:785
virtual HOM_Geometry * freeze(bool read_only=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:596