HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HOM_DopSimulation.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_DopSimulation_h__
10 #define __HOM_DopSimulation_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Module.h"
15 #include "HOM_Errors.h"
16 #include "HOM_IterableList.h"
17 #include <string>
18 #include <vector>
19 
20 class HOM_Node;
21 class HOM_DopData;
22 class HOM_DopObject;
24 
25 SWIGOUT(%rename(DopSimulation) HOM_DopSimulation;)
26 
28 {
29 public:
31  { HOM_CONSTRUCT_OBJECT(this) }
33  { HOM_CONSTRUCT_OBJECT(this) }
35  { HOM_DESTRUCT_OBJECT(this) }
36 
37  virtual std::string __repr__() = 0;
38 
39  SWIGOUT(%newobject createObject;)
40  virtual HOM_DopData *createObject(const char *name, bool solve_on_creation_frame) = 0;
41 
42  virtual void removeObject(HOM_DopObject &obj) = 0;
43 
44  SWIGOUT(%newobject createRelationship;)
45  virtual HOM_DopData *createRelationship(const char *name) = 0;
46 
47  virtual void removeRelationship(HOM_DopRelationship &rel) = 0;
48 
49  SWIGOUT(%newobject dopNetNode;)
50  virtual HOM_Node *dopNetNode() = 0;
51 
52  virtual std::vector<HOM_ElemPtr<HOM_DopData> > objects() = 0;
53 
54  virtual std::vector<HOM_ElemPtr<HOM_DopData> > relationships() = 0;
55 
56  SWIGOUT(%newobject findObject;)
57  virtual HOM_DopData *findObject(const char *obj_spec) = 0;
58  SWIGOUT(%newobject findRelationship;)
59  virtual HOM_DopData *findRelationship(const char *rel_spec) = 0;
60  SWIGOUT(%newobject findData;)
61  virtual HOM_DopData *findData(const char *data_spec) = 0;
62 
63  virtual std::vector<HOM_ElemPtr<HOM_DopData> >
64  findAllObjects(const char *obj_spec) = 0;
65 
66  virtual std::vector<HOM_ElemPtr<HOM_DopData> >
67  findAllRelationships(const char *rel_spec) = 0;
68 
69  virtual std::vector<HOM_ElemPtr<HOM_DopData> >
70  findAllData(const char *data_spec) = 0;
71 
72  virtual double time() = 0;
73 
74  virtual size_t memoryUsage() = 0;
75 };
76 
77 #endif
78 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:973
virtual HOM_DopSimulation * simulation()=0
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:972
virtual std::string __repr__()=0
GLuint const GLchar * name
Definition: glcorearb.h:785
HOM_DopSimulation(const HOM_DopSimulation &simulation)
virtual ~HOM_DopSimulation()
virtual HOM_Node * dopNetNode()=0