This URL has Read-Only access.

Statistics
| Branch: | Tag: | Revision:

root / src / osgWrappers / introspection / ReferencedNode.cpp @ 9d70071e

History | View | Annotate | Download (12.8 kB)

1
// ***************************************************************************
2
//
3
//   Generated automatically by genwrapper.
4
//   Please DO NOT EDIT this file!
5
//
6
// ***************************************************************************
7

    
8
#include <cppintrospection/ReflectionMacros>
9
#include <cppintrospection/TypedMethodInfo>
10
#include <cppintrospection/StaticMethodInfo>
11
#include <cppintrospection/Attributes>
12

    
13
#include <ReferencedNode.h>
14
#include <SceneManager.h>
15

    
16
// Must undefine IN and OUT macros defined in Windows headers
17
#ifdef IN
18
#undef IN
19
#endif
20
#ifdef OUT
21
#undef OUT
22
#endif
23

    
24
BEGIN_VALUE_REFLECTOR(spin::CronScript)
25
        I_DeclaringFile("ReferencedNode.h");
26
        I_Constructor0(____CronScript,
27
                       "",
28
                       "");
29
        I_PublicMemberProperty(boost::python::object, run);
30
        I_PublicMemberProperty(double, freq);
31
        I_PublicMemberProperty(double, lastRun);
32
        I_PublicMemberProperty(bool, enabled);
33
        I_PublicMemberProperty(bool, serverSide);
34
        I_PublicMemberProperty(std::string, path);
35
        I_PublicMemberProperty(std::string, params);
36
        I_PublicMemberProperty(std::string, pyScript);
37
        I_PublicMemberProperty(std::string, pyModule);
38
END_REFLECTOR
39

    
40
BEGIN_VALUE_REFLECTOR(spin::EventScript)
41
        I_DeclaringFile("ReferencedNode.h");
42
        I_Constructor0(____EventScript,
43
                       "",
44
                       "");
45
        I_PublicMemberProperty(boost::python::object, run);
46
        I_PublicMemberProperty(std::string, eventName);
47
        I_PublicMemberProperty(bool, enabled);
48
        I_PublicMemberProperty(bool, serverSide);
49
        I_PublicMemberProperty(std::string, path);
50
        I_PublicMemberProperty(std::string, params);
51
        I_PublicMemberProperty(std::string, pyScript);
52
        I_PublicMemberProperty(std::string, pyModule);
53
END_REFLECTOR
54

    
55
BEGIN_VALUE_REFLECTOR(spin::ReferencedNode)
56
        I_DeclaringFile("ReferencedNode.h");
57
        I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, char *, initID,
58
                       ____ReferencedNode__SceneManager_P1__char_P1,
59
                       "",
60
                       "");
61
        I_Method1(void, registerNode, IN, spin::SceneManager *, s,
62
                  Properties::NON_VIRTUAL,
63
                  __void__registerNode__SceneManager_P1,
64
                  "",
65
                  "");
66
        I_Method0(void, callbackUpdate,
67
                  Properties::VIRTUAL,
68
                  __void__callbackUpdate,
69
                  "",
70
                  "For nodes that require regular programmatic control, there is a callback that is evaluated with every refresh. This function can thus be used for animations, or any other periodic updates.Note that changes to the scene graph structure (eg, moving/deleting nodes should NOT be done within this callback because traversals stacks will become corrupted. The technique is rather to enable a flag and then do the actual change in the SceneManager::updateGraph() method. ");
71
        I_Method0(void, attach,
72
                  Properties::NON_VIRTUAL,
73
                  __void__attach,
74
                  "",
75
                  "The attach() method is used to properly add a node to the scene graph. Each node derived from ReferencedNode has an attachmentNode parameter that can be overridden in derived classes, but to keep code simple, this is the only this method that actually performs the attachment.In the default case, nodes should are attached directly to the parent ReferencedNode instance. ");
76
        I_Method0(void, detach,
77
                  Properties::NON_VIRTUAL,
78
                  __void__detach,
79
                  "",
80
                  "The detach() method is removes a node from the scene graph, depending on it's attachment position (specified by attachmentNode). ");
81
        I_MethodWithDefaults1(void, updateNodePath, IN, bool, updateChildren, true,
82
                              Properties::VIRTUAL,
83
                              __void__updateNodePath__bool,
84
                              "",
85
                              "IMPORTANT: subclasses of ReferencedNode are allowed to contain complicated subgraphs, and can also change their attachmentNode so that children are attached anywhere in that subgraph. If that is the case, the updateNodePath() function MUST be overridden, and extra nodes must be manually pushed onto currentNodePath. ");
86
        I_Method1(int, setAttachmentNode, IN, osg::Group *, n,
87
                  Properties::NON_VIRTUAL,
88
                  __int__setAttachmentNode__osg_Group_P1,
89
                  "",
90
                  "");
91
        I_Method0(void, updateChildNodePaths,
92
                  Properties::NON_VIRTUAL,
93
                  __void__updateChildNodePaths,
94
                  "",
95
                  "An internal method that keeps track of the nodepath (for efficient computation of global position, etc. ");
96
        I_Method1(void, setParent, IN, const char *, newvalue,
97
                  Properties::NON_VIRTUAL,
98
                  __void__setParent__C5_char_P1,
99
                  "",
100
                  "This method schedules a change in parent for this node. The setParent() does not immediately change the scenegraph, since it can be called at any time, even while in a traversal. The graph is updated later using the attach() method, which is called by SceneManager->updateGraph() when there is a legal time to re-order the scenegraph.Internally, this method just sets the newParent property. ");
101
        I_Method0(char *, getParent,
102
                  Properties::NON_VIRTUAL,
103
                  __char_P1__getParent,
104
                  "",
105
                  "Returns the current parent name (string) ");
106
        I_Method1(osg::Group *, getParent, IN, int, i,
107
                  Properties::NON_VIRTUAL,
108
                  __osg_Group_P1__getParent__int,
109
                  "",
110
                  "Returns the current parent as an osg::Group ");
111
        I_Method1(void, setContext, IN, const char *, newvalue,
112
                  Properties::VIRTUAL,
113
                  __void__setContext__C5_char_P1,
114
                  "",
115
                  "A node can 'belong' to a certain host machine, allowing it to be rendered or behave differently than on other machines.NOTE: the \"NULL\" string means that it belongs to no specific context.NOTE: a scene operating in SERVER_MODE will always create the node, so this feature is only really relevant for clients applications. ");
116
        I_Method1(void, setAlpha, IN, float, alpha,
117
                  Properties::NON_VIRTUAL,
118
                  __void__setAlpha__float,
119
                  "",
120
                  "");
121
        I_Method0(float, getAlpha,
122
                  Properties::NON_VIRTUAL,
123
                  __float__getAlpha,
124
                  "",
125
                  "");
126
        I_Method0(const char *, getContext,
127
                  Properties::NON_VIRTUAL,
128
                  __C5_char_P1__getContext,
129
                  "",
130
                  "Returns the current host ");
131
        I_Method0(std::string, getContextString,
132
                  Properties::NON_VIRTUAL,
133
                  __std_string__getContextString,
134
                  "",
135
                  "");
136
        I_Method2(void, setParam, IN, const char *, paramName, IN, const char *, paramValue,
137
                  Properties::VIRTUAL,
138
                  __void__setParam__C5_char_P1__C5_char_P1,
139
                  "",
140
                  "");
141
        I_Method2(void, setParam, IN, const char *, paramName, IN, float, paramValue,
142
                  Properties::VIRTUAL,
143
                  __void__setParam__C5_char_P1__float,
144
                  "",
145
                  "");
146
        I_Method0(osg::Group *, getAttachmentNode,
147
                  Properties::NON_VIRTUAL,
148
                  __osg_Group_P1__getAttachmentNode,
149
                  "",
150
                  "subclasses of ReferencedNode may contain complicated subgraphs, and any children get attached not to the node pointer itself, but to an attachmentNode. This attachmentNode essentially defines the origin of the local coordinate system of this node (according to the subgraph). This function returns a pointer to this node. ");
151
        I_Method0(void, debug,
152
                  Properties::VIRTUAL,
153
                  __void__debug,
154
                  "",
155
                  "Debug print (to log/console) ");
156
        I_Method0(std::vector< lo_message >, getState,
157
                  Properties::VIRTUAL,
158
                  __std_vectorT1_lo_message___getState,
159
                  "",
160
                  "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node. ");
161
        I_Method0(void, stateDump,
162
                  Properties::VIRTUAL,
163
                  __void__stateDump,
164
                  "",
165
                  "Request to broadcast the node state via SceneManager. ");
166
        I_Method1(void, stateDump, IN, lo_address, addr,
167
                  Properties::VIRTUAL,
168
                  __void__stateDump__lo_address,
169
                  "",
170
                  "Request to send the node state to one address ");
171
        I_Method0(std::string, getID,
172
                  Properties::NON_VIRTUAL,
173
                  __std_string__getID,
174
                  "",
175
                  "");
176
        I_Method5(bool, addCronScript, IN, bool, serverSide, IN, const std::string &, label, IN, const std::string &, scriptPath, IN, double, freq, IN, const std::string &, params,
177
                  Properties::NON_VIRTUAL,
178
                  __bool__addCronScript__bool__C5_std_string_R1__C5_std_string_R1__double__C5_std_string_R1,
179
                  "",
180
                  "");
181
        I_Method0(bool, callCronScripts,
182
                  Properties::NON_VIRTUAL,
183
                  __bool__callCronScripts,
184
                  "",
185
                  "");
186
        I_Method2(bool, enableCronScript, IN, const char *, label, IN, int, enable,
187
                  Properties::NON_VIRTUAL,
188
                  __bool__enableCronScript__C5_char_P1__int,
189
                  "",
190
                  "");
191
        I_Method1(bool, removeCronScript, IN, const char *, label,
192
                  Properties::NON_VIRTUAL,
193
                  __bool__removeCronScript__C5_char_P1,
194
                  "",
195
                  "");
196
        I_Method5(bool, addEventScript, IN, bool, serverSide, IN, const std::string &, label, IN, const std::string &, eventName, IN, const std::string &, scriptPath, IN, const std::string &, params,
197
                  Properties::NON_VIRTUAL,
198
                  __bool__addEventScript__bool__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1,
199
                  "",
200
                  "");
201
        I_Method2(bool, callEventScript, IN, const std::string &, eventName, IN, cppintrospection::ValueList &, args,
202
                  Properties::NON_VIRTUAL,
203
                  __bool__callEventScript__C5_std_string_R1__cppintrospection_ValueList_R1,
204
                  "",
205
                  "");
206
        I_Method2(bool, enableEventScript, IN, const char *, label, IN, int, enable,
207
                  Properties::NON_VIRTUAL,
208
                  __bool__enableEventScript__C5_char_P1__int,
209
                  "",
210
                  "");
211
        I_Method1(bool, removeEventScript, IN, const char *, label,
212
                  Properties::NON_VIRTUAL,
213
                  __bool__removeEventScript__C5_char_P1,
214
                  "",
215
                  "");
216
        I_SimpleProperty(float, Alpha, 
217
                         __float__getAlpha, 
218
                         __void__setAlpha__float);
219
        I_SimpleProperty(osg::Group *, AttachmentNode, 
220
                         __osg_Group_P1__getAttachmentNode, 
221
                         __int__setAttachmentNode__osg_Group_P1);
222
        I_SimpleProperty(const char *, Context, 
223
                         __C5_char_P1__getContext, 
224
                         __void__setContext__C5_char_P1);
225
        I_SimpleProperty(std::string, ContextString, 
226
                         __std_string__getContextString, 
227
                         0);
228
        I_SimpleProperty(std::string, ID, 
229
                         __std_string__getID, 
230
                         0);
231
        I_SimpleProperty(char *, Parent, 
232
                         __char_P1__getParent, 
233
                         0);
234
        I_SimpleProperty(std::vector< lo_message >, State, 
235
                         __std_vectorT1_lo_message___getState, 
236
                         0);
237
        I_PublicMemberProperty(spin::t_symbol *, id);
238
        I_PublicMemberProperty(std::string, nodeType);
239
        I_PublicMemberProperty(std::string, contextString);
240
        I_PublicMemberProperty(int, pd_mail_id);
241
        I_PublicMemberProperty(lo_method, oscHandler);
242
        I_PublicMemberProperty(spin::t_symbol *, parent);
243
        I_PublicMemberProperty(spin::t_symbol *, newParent);
244
        I_PublicMemberProperty(bool, scheduleForDeletion);
245
        I_PublicMemberProperty(bool, textFlag);
246
        I_PublicMemberProperty(spin::stringParamType, stringParams);
247
        I_PublicMemberProperty(spin::floatParamType, floatParams);
248
        I_PublicMemberProperty(float, subgraphAlpha_);
249
        I_PublicMemberProperty(osg::NodePath, currentNodePath);
250
        I_PublicMemberProperty(std::vector< spin::ReferencedNode * >, children);
251
        I_PublicMemberProperty(spin::SceneManager *, sceneManager);
252
        I_PublicMemberProperty(spin::MediaManager *, mediaManager);
253
END_REFLECTOR
254

    
255
BEGIN_VALUE_REFLECTOR(spin::ReferencedNode_callback)
256
        I_DeclaringFile("ReferencedNode.h");
257
        I_Constructor0(____ReferencedNode_callback,
258
                       "",
259
                       "");
260
END_REFLECTOR
261

    
262
BEGIN_VALUE_REFLECTOR(spin::ReferencedNode_data)
263
        I_DeclaringFile("ReferencedNode.h");
264
        I_Constructor1(IN, spin::ReferencedNode *, n,
265
                       Properties::NON_EXPLICIT,
266
                       ____ReferencedNode_data__ReferencedNode_P1,
267
                       "",
268
                       "");
269
        I_Method0(void, update,
270
                  Properties::NON_VIRTUAL,
271
                  __void__update,
272
                  "",
273
                  "");
274
END_REFLECTOR
275

    
276
TYPE_NAME_ALIAS(std::map< const std::string COMMA  spin::CronScript * >, spin::CronScriptList)
277

    
278
TYPE_NAME_ALIAS(std::map< const std::string COMMA  spin::EventScript * >, spin::EventScriptList)
279

    
280
TYPE_NAME_ALIAS(std::map< std::string COMMA  std::string >, spin::stringParamType)
281

    
282
TYPE_NAME_ALIAS(std::map< std::string COMMA  float >, spin::floatParamType)
283

    
284
STD_MAP_REFLECTOR(std::map< const std::string COMMA  spin::CronScript * >)
285

    
286
STD_MAP_REFLECTOR(std::map< const std::string COMMA  spin::EventScript * >)
287

    
288
STD_MAP_REFLECTOR(std::map< std::string COMMA  float >)
289

    
290
STD_MAP_REFLECTOR(std::map< std::string COMMA  std::string >)
291