Updated wrappers
This commit is contained in:
@@ -41,6 +41,8 @@ BEGIN_ENUM_REFLECTOR(osg::CullSettings::VariablesMask)
|
||||
I_EnumLabel(osg::CullSettings::CULL_MASK_LEFT);
|
||||
I_EnumLabel(osg::CullSettings::CULL_MASK_RIGHT);
|
||||
I_EnumLabel(osg::CullSettings::CLEAR_COLOR);
|
||||
I_EnumLabel(osg::CullSettings::LIGHTING_MODE);
|
||||
I_EnumLabel(osg::CullSettings::LIGHT);
|
||||
I_EnumLabel(osg::CullSettings::NO_VARIABLES);
|
||||
I_EnumLabel(osg::CullSettings::ALL_VARIABLES);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Node>
|
||||
#include <osg/NodeVisitor>
|
||||
#include <osg/Object>
|
||||
#include <osg/Sequence>
|
||||
@@ -79,36 +80,76 @@ BEGIN_OBJECT_REFLECTOR(osg::Sequence)
|
||||
__void__traverse__NodeVisitor_R1,
|
||||
"Traverse downwards : calls children's accept method with NodeVisitor. ",
|
||||
"");
|
||||
I_Method1(bool, addChild, IN, osg::Node *, child,
|
||||
Properties::VIRTUAL,
|
||||
__bool__addChild__Node_P1,
|
||||
"Add Node to Group. ",
|
||||
"If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes.");
|
||||
I_Method2(bool, addChild, IN, osg::Node *, child, IN, double, t,
|
||||
Properties::VIRTUAL,
|
||||
__bool__addChild__Node_P1__double,
|
||||
"",
|
||||
"");
|
||||
I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child,
|
||||
Properties::VIRTUAL,
|
||||
__bool__insertChild__unsigned_int__Node_P1,
|
||||
"Insert Node to Group at specific location. ",
|
||||
"The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation.");
|
||||
I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, double, t,
|
||||
Properties::VIRTUAL,
|
||||
__bool__insertChild__unsigned_int__Node_P1__double,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, removeChild, IN, osg::Node *, child,
|
||||
Properties::VIRTUAL,
|
||||
__bool__removeChild__Node_P1,
|
||||
"Remove Node from Group. ",
|
||||
"If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required.");
|
||||
I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove,
|
||||
Properties::VIRTUAL,
|
||||
__bool__removeChildren__unsigned_int__unsigned_int,
|
||||
"Remove children from Group. ",
|
||||
"Note, must be override by subclasses of Group which add per child attributes. ");
|
||||
I_Method1(void, setValue, IN, int, value,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setValue__int,
|
||||
"",
|
||||
"value is which child node is to be displayed ",
|
||||
"");
|
||||
I_Method0(int, getValue,
|
||||
Properties::NON_VIRTUAL,
|
||||
__int__getValue,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, setTime, IN, int, frame, IN, float, t,
|
||||
I_Method2(void, setTime, IN, unsigned int, frame, IN, double, t,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setTime__int__float,
|
||||
__void__setTime__unsigned_int__double,
|
||||
"Set time in seconds for child. ",
|
||||
"");
|
||||
I_Method1(float, getTime, IN, int, frame,
|
||||
I_Method1(double, getTime, IN, unsigned int, frame,
|
||||
Properties::NON_VIRTUAL,
|
||||
__float__getTime__int,
|
||||
__double__getTime__unsigned_int,
|
||||
"Get time for child. ",
|
||||
"");
|
||||
I_Method1(void, setDefaultTime, IN, float, t,
|
||||
I_Method1(void, setDefaultTime, IN, double, t,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setDefaultTime__float,
|
||||
__void__setDefaultTime__double,
|
||||
"Set default time in seconds for new child. ",
|
||||
"");
|
||||
I_Method0(float, getDefaultTime,
|
||||
"if t<0, t=0 ");
|
||||
I_Method0(double, getDefaultTime,
|
||||
Properties::NON_VIRTUAL,
|
||||
__float__getDefaultTime,
|
||||
__double__getDefaultTime,
|
||||
"Get default time in seconds for new child. ",
|
||||
"");
|
||||
I_Method1(void, setLastFrameTime, IN, double, t,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setLastFrameTime__double,
|
||||
"Set time of last frame of last loop, in seconds. ",
|
||||
"if t<= 0, then ignored ");
|
||||
I_Method0(double, getLastFrameTime,
|
||||
Properties::NON_VIRTUAL,
|
||||
__double__getLastFrameTime,
|
||||
"Get last frame time in seconds. ",
|
||||
"");
|
||||
I_Method0(unsigned int, getNumFrames,
|
||||
Properties::NON_VIRTUAL,
|
||||
__unsigned_int__getNumFrames,
|
||||
@@ -144,15 +185,56 @@ BEGIN_OBJECT_REFLECTOR(osg::Sequence)
|
||||
__SequenceMode__getMode,
|
||||
"Get sequence mode. ",
|
||||
"");
|
||||
I_SimpleProperty(float, DefaultTime,
|
||||
__float__getDefaultTime,
|
||||
__void__setDefaultTime__float);
|
||||
I_Method1(void, setSync, IN, bool, sync,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setSync__bool,
|
||||
"If false (default), frames will not be sync'd to frameTime. ",
|
||||
"If true, frames will be sync'd to frameTime. ");
|
||||
I_Method1(void, getSync, IN, bool &, sync,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__getSync__bool_R1,
|
||||
"Get sync value. ",
|
||||
"");
|
||||
I_Method1(void, setClearOnStop, IN, bool, clearOnStop,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setClearOnStop__bool,
|
||||
"If true, show no child nodes after stopping. ",
|
||||
"");
|
||||
I_Method1(void, getClearOnStop, IN, bool &, clearOnStop,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__getClearOnStop__bool_R1,
|
||||
"If true, show no child nodes after stopping. ",
|
||||
"");
|
||||
I_ProtectedMethod0(int, _getNextValue,
|
||||
Properties::NON_VIRTUAL,
|
||||
Properties::NON_CONST,
|
||||
__int___getNextValue,
|
||||
"",
|
||||
"");
|
||||
I_ProtectedMethod0(void, _update,
|
||||
Properties::NON_VIRTUAL,
|
||||
Properties::NON_CONST,
|
||||
__void___update,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(bool, ClearOnStop,
|
||||
0,
|
||||
__void__setClearOnStop__bool);
|
||||
I_SimpleProperty(double, DefaultTime,
|
||||
__double__getDefaultTime,
|
||||
__void__setDefaultTime__double);
|
||||
I_SimpleProperty(double, LastFrameTime,
|
||||
__double__getLastFrameTime,
|
||||
__void__setLastFrameTime__double);
|
||||
I_SimpleProperty(osg::Sequence::SequenceMode, Mode,
|
||||
__SequenceMode__getMode,
|
||||
__void__setMode__SequenceMode);
|
||||
I_IndexedProperty(float, Time,
|
||||
__float__getTime__int,
|
||||
__void__setTime__int__float,
|
||||
I_SimpleProperty(bool, Sync,
|
||||
0,
|
||||
__void__setSync__bool);
|
||||
I_IndexedProperty(double, Time,
|
||||
__double__getTime__unsigned_int,
|
||||
__void__setTime__unsigned_int__double,
|
||||
0);
|
||||
I_SimpleProperty(int, Value,
|
||||
__int__getValue,
|
||||
|
||||
@@ -457,6 +457,11 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry)
|
||||
__SharedStateManager_P1__getSharedStateManager,
|
||||
"Get the SharedStateManager. ",
|
||||
"Return 0 if no SharedStateManager has been assigned. ");
|
||||
I_Method1(void, addArchiveExtension, IN, const std::string, ext,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__addArchiveExtension__C5_std_string,
|
||||
"Add an Archive extension. ",
|
||||
"");
|
||||
I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false,
|
||||
__Registry_P1__instance__bool_S,
|
||||
"",
|
||||
|
||||
Reference in New Issue
Block a user