| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | #include <osgIntrospection/ReflectionMacros> |
|---|
| 9 | #include <osgIntrospection/TypedMethodInfo> |
|---|
| 10 | #include <osgIntrospection/StaticMethodInfo> |
|---|
| 11 | #include <osgIntrospection/Attributes> |
|---|
| 12 | |
|---|
| 13 | #include <osg/Node> |
|---|
| 14 | #include <osg/ObserverNodePath> |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | #ifdef IN |
|---|
| 18 | #undef IN |
|---|
| 19 | #endif |
|---|
| 20 | #ifdef OUT |
|---|
| 21 | #undef OUT |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
| 24 | BEGIN_OBJECT_REFLECTOR(osg::ObserverNodePath) |
|---|
| 25 | I_DeclaringFile("osg/ObserverNodePath"); |
|---|
| 26 | I_BaseType(osg::Observer); |
|---|
| 27 | I_Constructor0(____ObserverNodePath, |
|---|
| 28 | "", |
|---|
| 29 | ""); |
|---|
| 30 | I_Constructor1(IN, const osg::ObserverNodePath &, rhs, |
|---|
| 31 | Properties::NON_EXPLICIT, |
|---|
| 32 | ____ObserverNodePath__C5_ObserverNodePath_R1, |
|---|
| 33 | "", |
|---|
| 34 | ""); |
|---|
| 35 | I_Constructor1(IN, const osg::NodePath &, nodePath, |
|---|
| 36 | Properties::NON_EXPLICIT, |
|---|
| 37 | ____ObserverNodePath__C5_osg_NodePath_R1, |
|---|
| 38 | "", |
|---|
| 39 | ""); |
|---|
| 40 | I_Method0(bool, valid, |
|---|
| 41 | Properties::NON_VIRTUAL, |
|---|
| 42 | __bool__valid, |
|---|
| 43 | "", |
|---|
| 44 | ""); |
|---|
| 45 | I_Method1(void, setNodePathTo, IN, osg::Node *, node, |
|---|
| 46 | Properties::NON_VIRTUAL, |
|---|
| 47 | __void__setNodePathTo__osg_Node_P1, |
|---|
| 48 | "get the NodePath from the first parental chain back to root, plus the specified node. ", |
|---|
| 49 | ""); |
|---|
| 50 | I_Method1(void, setNodePath, IN, const osg::RefNodePath &, nodePath, |
|---|
| 51 | Properties::NON_VIRTUAL, |
|---|
| 52 | __void__setNodePath__C5_osg_RefNodePath_R1, |
|---|
| 53 | "", |
|---|
| 54 | ""); |
|---|
| 55 | I_Method1(void, setNodePath, IN, const osg::NodePath &, nodePath, |
|---|
| 56 | Properties::NON_VIRTUAL, |
|---|
| 57 | __void__setNodePath__C5_osg_NodePath_R1, |
|---|
| 58 | "", |
|---|
| 59 | ""); |
|---|
| 60 | I_Method0(void, clearNodePath, |
|---|
| 61 | Properties::NON_VIRTUAL, |
|---|
| 62 | __void__clearNodePath, |
|---|
| 63 | "", |
|---|
| 64 | ""); |
|---|
| 65 | I_Method1(bool, getRefNodePath, IN, osg::RefNodePath &, refNodePath, |
|---|
| 66 | Properties::NON_VIRTUAL, |
|---|
| 67 | __bool__getRefNodePath__RefNodePath_R1, |
|---|
| 68 | "Get a thread safe RefNodePath, return true if NodePath is valid. ", |
|---|
| 69 | ""); |
|---|
| 70 | I_Method1(bool, getNodePath, IN, osg::NodePath &, nodePath, |
|---|
| 71 | Properties::NON_VIRTUAL, |
|---|
| 72 | __bool__getNodePath__NodePath_R1, |
|---|
| 73 | "Get a lightweight NodePath that isn't thread safe but may be safely used in single threaded applications, or when its known that the NodePath won't be invalidated during usage of the NodePath. ", |
|---|
| 74 | "return true if NodePath is valid. "); |
|---|
| 75 | I_Method0(bool, empty, |
|---|
| 76 | Properties::NON_VIRTUAL, |
|---|
| 77 | __bool__empty, |
|---|
| 78 | "", |
|---|
| 79 | ""); |
|---|
| 80 | I_ProtectedMethod1(void, _setNodePath, IN, const osg::NodePath &, nodePath, |
|---|
| 81 | Properties::NON_VIRTUAL, |
|---|
| 82 | Properties::NON_CONST, |
|---|
| 83 | __void___setNodePath__C5_osg_NodePath_R1, |
|---|
| 84 | "", |
|---|
| 85 | ""); |
|---|
| 86 | I_ProtectedMethod0(void, _clearNodePath, |
|---|
| 87 | Properties::NON_VIRTUAL, |
|---|
| 88 | Properties::NON_CONST, |
|---|
| 89 | __void___clearNodePath, |
|---|
| 90 | "", |
|---|
| 91 | ""); |
|---|
| 92 | I_ProtectedMethod1(bool, objectUnreferenced, IN, void *, x, |
|---|
| 93 | Properties::VIRTUAL, |
|---|
| 94 | Properties::NON_CONST, |
|---|
| 95 | __bool__objectUnreferenced__void_P1, |
|---|
| 96 | "objectUnreferenced(void*) is called when the observed object's referenced count goes to zero, indicating that the object will be deleted unless a new reference is made to it. ", |
|---|
| 97 | "If you wish to prevent deletion of the object then it's reference count should be incremented such as via taking a ref_ptr<> to it, if no refernce is taken by any of the observers of the object then the object will be deleted, and objectDeleted will in turn be called. return true if the Observer wishes to removed from the oberseved objects observer set. "); |
|---|
| 98 | I_SimpleProperty(const osg::RefNodePath &, NodePath, |
|---|
| 99 | 0, |
|---|
| 100 | __void__setNodePath__C5_osg_RefNodePath_R1); |
|---|
| 101 | I_SimpleProperty(osg::Node *, NodePathTo, |
|---|
| 102 | 0, |
|---|
| 103 | __void__setNodePathTo__osg_Node_P1); |
|---|
| 104 | END_REFLECTOR |
|---|
| 105 | |
|---|
| 106 | TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Node > >, osg::RefNodePath) |
|---|
| 107 | |
|---|
| 108 | STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Node > >) |
|---|