root / src / osgWrappers / introspection / ReferencedNode.cpp @ a46d1c46
History | View | Annotate | Download (8.3 kB)
| 1 |
// ***************************************************************************
|
|---|---|
| 2 |
//
|
| 3 |
// Generated automatically by genwrapper.
|
| 4 |
// Please DO NOT EDIT this file!
|
| 5 |
//
|
| 6 |
// ***************************************************************************
|
| 7 |
|
| 8 |
#include <osgIntrospection/ReflectionMacros> |
| 9 |
#include <osgIntrospection/TypedMethodInfo> |
| 10 |
#include <osgIntrospection/StaticMethodInfo> |
| 11 |
#include <osgIntrospection/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(ReferencedNode) |
| 25 |
I_DeclaringFile("ReferencedNode.h");
|
| 26 |
I_Constructor2(IN, SceneManager *, sceneManager, IN, char *, initID,
|
| 27 |
____ReferencedNode__SceneManager_P1__char_P1, |
| 28 |
"",
|
| 29 |
"");
|
| 30 |
I_Method1(void, registerNode, IN, SceneManager *, s,
|
| 31 |
Properties::NON_VIRTUAL, |
| 32 |
__void__registerNode__SceneManager_P1, |
| 33 |
"",
|
| 34 |
"");
|
| 35 |
I_Method0(void, callbackUpdate,
|
| 36 |
Properties::VIRTUAL, |
| 37 |
__void__callbackUpdate, |
| 38 |
"",
|
| 39 |
"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. ");
|
| 40 |
I_Method0(void, attach,
|
| 41 |
Properties::NON_VIRTUAL, |
| 42 |
__void__attach, |
| 43 |
"",
|
| 44 |
"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. ");
|
| 45 |
I_Method0(void, detach,
|
| 46 |
Properties::NON_VIRTUAL, |
| 47 |
__void__detach, |
| 48 |
"",
|
| 49 |
"The detach() method is removes a node from the scene graph, depending on it's attachment position (specified by attachmentNode). ");
|
| 50 |
I_Method0(void, updateNodePath,
|
| 51 |
Properties::VIRTUAL, |
| 52 |
__void__updateNodePath, |
| 53 |
"",
|
| 54 |
"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. ");
|
| 55 |
I_Method1(int, setAttachmentNode, IN, osg::Group *, n,
|
| 56 |
Properties::NON_VIRTUAL, |
| 57 |
__int__setAttachmentNode__osg_Group_P1, |
| 58 |
"",
|
| 59 |
"");
|
| 60 |
I_Method0(void, updateChildNodePaths,
|
| 61 |
Properties::NON_VIRTUAL, |
| 62 |
__void__updateChildNodePaths, |
| 63 |
"",
|
| 64 |
"An internal method that keeps track of the nodepath (for efficient computation of global position, etc. ");
|
| 65 |
I_Method1(void, setParent, IN, const char *, newvalue, |
| 66 |
Properties::NON_VIRTUAL, |
| 67 |
__void__setParent__C5_char_P1, |
| 68 |
"",
|
| 69 |
"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. ");
|
| 70 |
I_Method0(char *, getParent,
|
| 71 |
Properties::NON_VIRTUAL, |
| 72 |
__char_P1__getParent, |
| 73 |
"",
|
| 74 |
"Returns the current parent name (string) ");
|
| 75 |
I_Method1(osg::Group *, getParent, IN, unsigned int, i, |
| 76 |
Properties::NON_VIRTUAL, |
| 77 |
__osg_Group_P1__getParent__unsigned_int, |
| 78 |
"",
|
| 79 |
"Returns the current parent as an osg::Group ");
|
| 80 |
I_Method1(void, setContext, IN, const char *, newvalue, |
| 81 |
Properties::VIRTUAL, |
| 82 |
__void__setContext__C5_char_P1, |
| 83 |
"",
|
| 84 |
"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. ");
|
| 85 |
I_Method0(const char *, getContext, |
| 86 |
Properties::NON_VIRTUAL, |
| 87 |
__C5_char_P1__getContext, |
| 88 |
"",
|
| 89 |
"Returns the current host ");
|
| 90 |
I_Method2(void, setParam, IN, const char *, paramName, IN, const char *, paramValue, |
| 91 |
Properties::NON_VIRTUAL, |
| 92 |
__void__setParam__C5_char_P1__C5_char_P1, |
| 93 |
"",
|
| 94 |
"");
|
| 95 |
I_Method2(void, setParam, IN, const char *, paramName, IN, float, paramValue, |
| 96 |
Properties::NON_VIRTUAL, |
| 97 |
__void__setParam__C5_char_P1__float, |
| 98 |
"",
|
| 99 |
"");
|
| 100 |
I_Method0(osg::Group *, getAttachmentNode, |
| 101 |
Properties::NON_VIRTUAL, |
| 102 |
__osg_Group_P1__getAttachmentNode, |
| 103 |
"",
|
| 104 |
"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. ");
|
| 105 |
I_Method0(void, debug,
|
| 106 |
Properties::VIRTUAL, |
| 107 |
__void__debug, |
| 108 |
"",
|
| 109 |
"Debug print (to log/console) ");
|
| 110 |
I_Method0(std::vector< lo_message >, getState, |
| 111 |
Properties::VIRTUAL, |
| 112 |
__std_vectorT1_lo_message___getState, |
| 113 |
"",
|
| 114 |
"For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node. ");
|
| 115 |
I_Method0(void, stateDump,
|
| 116 |
Properties::VIRTUAL, |
| 117 |
__void__stateDump, |
| 118 |
"",
|
| 119 |
"StateDump() is a request to broadcast the node state via SceneManager. ");
|
| 120 |
I_Method1(bool, setScript, IN, const char *, scriptPath, |
| 121 |
Properties::NON_VIRTUAL, |
| 122 |
__bool__setScript__C5_char_P1, |
| 123 |
"",
|
| 124 |
"");
|
| 125 |
I_Method3(bool, addEventScript, IN, const std::string &, eventName, IN, const std::string &, scr, IN, const std::string &, params, |
| 126 |
Properties::NON_VIRTUAL, |
| 127 |
__bool__addEventScript__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, |
| 128 |
"",
|
| 129 |
"");
|
| 130 |
I_Method1(bool, callEventScript, IN, const std::string &, eventName, |
| 131 |
Properties::NON_VIRTUAL, |
| 132 |
__bool__callEventScript__C5_std_string_R1, |
| 133 |
"",
|
| 134 |
"");
|
| 135 |
I_SimpleProperty(osg::Group *, AttachmentNode, |
| 136 |
__osg_Group_P1__getAttachmentNode, |
| 137 |
__int__setAttachmentNode__osg_Group_P1); |
| 138 |
I_SimpleProperty(const char *, Context, |
| 139 |
__C5_char_P1__getContext, |
| 140 |
__void__setContext__C5_char_P1); |
| 141 |
I_SimpleProperty(char *, Parent,
|
| 142 |
__char_P1__getParent, |
| 143 |
0);
|
| 144 |
I_SimpleProperty(const char *, Script, |
| 145 |
0,
|
| 146 |
__bool__setScript__C5_char_P1); |
| 147 |
I_SimpleProperty(std::vector< lo_message >, State, |
| 148 |
__std_vectorT1_lo_message___getState, |
| 149 |
0);
|
| 150 |
I_PublicMemberProperty(t_symbol *, id); |
| 151 |
I_PublicMemberProperty(std::string, nodeType);
|
| 152 |
I_PublicMemberProperty(std::string, contextString);
|
| 153 |
I_PublicMemberProperty(int, pd_mail_id);
|
| 154 |
I_PublicMemberProperty(lo_method, oscHandler); |
| 155 |
I_PublicMemberProperty(t_symbol *, parent); |
| 156 |
I_PublicMemberProperty(t_symbol *, newParent); |
| 157 |
I_PublicMemberProperty(bool, textFlag);
|
| 158 |
I_PublicMemberProperty(stringParamType, stringParams); |
| 159 |
I_PublicMemberProperty(floatParamType, floatParams); |
| 160 |
I_PublicMemberProperty(osg::NodePath, currentNodePath); |
| 161 |
I_PublicMemberProperty(std::vector< ReferencedNode * >, children); |
| 162 |
I_PublicMemberProperty(SceneManager *, sceneManager); |
| 163 |
I_PublicMemberProperty(MediaManager *, mediaManager); |
| 164 |
END_REFLECTOR |
| 165 |
|
| 166 |
BEGIN_VALUE_REFLECTOR(ReferencedNode_callback) |
| 167 |
I_DeclaringFile("ReferencedNode.h");
|
| 168 |
I_Constructor0(____ReferencedNode_callback, |
| 169 |
"",
|
| 170 |
"");
|
| 171 |
END_REFLECTOR |
| 172 |
|
