From fa246d106b2fbfd3c008ef6b1a92dd1a374ce7ef Mon Sep 17 00:00:00 2001 From: lbouchard Date: Wed, 12 Jun 2013 17:51:57 -0400 Subject: [PATCH 1/2] prevent crashing when the loading of a model fails --- src/spin/CollisionShape.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/spin/CollisionShape.cpp b/src/spin/CollisionShape.cpp index 9385e95..02989c7 100644 --- a/src/spin/CollisionShape.cpp +++ b/src/spin/CollisionShape.cpp @@ -586,6 +586,11 @@ void CollisionShape::setModelFromFile( const char* file ) std::string modelPath = getRelativePath(std::string(file)); osg::Group* group = (osg::Group*)(osgDB::readNodeFile( getAbsolutePath(modelPath).c_str() )); + if (!group) { + printf("loading of file [%s] failed!\n", modelPath.c_str()); + return; + } + osg::Geode* geode; osg::Geometry* geom; for ( size_t i = 0; i < group->getNumChildren(); i++ ) { From ccdeefca11be7bc9ee49134baa84cfcdf18695d9 Mon Sep 17 00:00:00 2001 From: Mike Wozniewski Date: Fri, 14 Jun 2013 13:14:01 -0400 Subject: [PATCH 2/2] removed all wrappers from git repo and added an extra step to the build process that generates the wrappers --- .gitignore | 2 + buildWrappers.sh | 2 +- configure.ac | 1 + src/Makefile.am | 1 + src/osgWrappers/generator/Makefile.am | 5 + .../introspection/animationnode.cpp | 154 ---- .../introspection/attractornode.cpp | 113 --- .../introspection/collisionshape.cpp | 258 ------ .../introspection/compositeviewer.cpp | 146 ---- .../introspection/constraintsnode.cpp | 142 ---- src/osgWrappers/introspection/contour.cpp | 210 ----- .../introspection/draggertrackball.cpp | 36 - .../introspection/draggerwith3axes.cpp | 35 - src/osgWrappers/introspection/dspnode.cpp | 236 ------ .../introspection/eventhandler.cpp | 53 -- src/osgWrappers/introspection/eventtypes.cpp | 39 - src/osgWrappers/introspection/fog.cpp | 74 -- .../introspection/geometrynode.cpp | 86 -- src/osgWrappers/introspection/gridnode.cpp | 66 -- src/osgWrappers/introspection/groupnode.cpp | 467 ----------- .../introspection/imagetexture.cpp | 101 --- .../introspection/introspect_helpers.cpp | 22 - src/osgWrappers/introspection/kinectcloud.cpp | 135 --- src/osgWrappers/introspection/libloutil.cpp | 53 -- src/osgWrappers/introspection/lightsource.cpp | 131 --- src/osgWrappers/introspection/listener.cpp | 88 -- src/osgWrappers/introspection/lodnode.cpp | 50 -- src/osgWrappers/introspection/menu3d.cpp | 178 ---- src/osgWrappers/introspection/modelnode.cpp | 199 ----- .../introspection/particlesystem.cpp | 769 ------------------ .../introspection/particlesystemutil.cpp | 226 ----- src/osgWrappers/introspection/pocoutil.cpp | 78 -- src/osgWrappers/introspection/pointcloud.cpp | 260 ------ src/osgWrappers/introspection/pointernode.cpp | 152 ---- src/osgWrappers/introspection/raynode.cpp | 92 --- .../introspection/referencednode.cpp | 405 --------- .../introspection/referencedstateset.cpp | 160 ---- .../introspection/reporternode.cpp | 107 --- .../introspection/scenemanager.cpp | 386 --------- src/osgWrappers/introspection/shader.cpp | 123 --- src/osgWrappers/introspection/shaderutil.cpp | 24 - src/osgWrappers/introspection/shapenode.cpp | 179 ---- .../introspection/sharedvideotexture.cpp | 81 -- src/osgWrappers/introspection/soundnode.cpp | 124 --- src/osgWrappers/introspection/soundspace.cpp | 68 -- .../introspection/spinbasecontext.cpp | 166 ---- .../introspection/spinclientcontext.cpp | 69 -- .../introspection/spindefaults.cpp | 22 - src/osgWrappers/introspection/spinlog.cpp | 108 --- src/osgWrappers/introspection/spinlogwx.cpp | 32 - src/osgWrappers/introspection/spinutil.cpp | 47 -- src/osgWrappers/introspection/spinwx.cpp | 44 - src/osgWrappers/introspection/switchnode.cpp | 64 -- .../introspection/syphontexture.cpp | 63 -- src/osgWrappers/introspection/textnode.cpp | 347 -------- src/osgWrappers/introspection/usernode.cpp | 142 ---- src/osgWrappers/introspection/videosize.cpp | 22 - .../introspection/videotexture.cpp | 130 --- .../introspection/viewermanipulator.cpp | 76 -- 59 files changed, 10 insertions(+), 7639 deletions(-) create mode 100644 src/osgWrappers/generator/Makefile.am delete mode 100644 src/osgWrappers/introspection/animationnode.cpp delete mode 100644 src/osgWrappers/introspection/attractornode.cpp delete mode 100644 src/osgWrappers/introspection/collisionshape.cpp delete mode 100644 src/osgWrappers/introspection/compositeviewer.cpp delete mode 100644 src/osgWrappers/introspection/constraintsnode.cpp delete mode 100644 src/osgWrappers/introspection/contour.cpp delete mode 100644 src/osgWrappers/introspection/draggertrackball.cpp delete mode 100644 src/osgWrappers/introspection/draggerwith3axes.cpp delete mode 100644 src/osgWrappers/introspection/dspnode.cpp delete mode 100644 src/osgWrappers/introspection/eventhandler.cpp delete mode 100644 src/osgWrappers/introspection/eventtypes.cpp delete mode 100644 src/osgWrappers/introspection/fog.cpp delete mode 100644 src/osgWrappers/introspection/geometrynode.cpp delete mode 100644 src/osgWrappers/introspection/gridnode.cpp delete mode 100644 src/osgWrappers/introspection/groupnode.cpp delete mode 100644 src/osgWrappers/introspection/imagetexture.cpp delete mode 100644 src/osgWrappers/introspection/introspect_helpers.cpp delete mode 100644 src/osgWrappers/introspection/kinectcloud.cpp delete mode 100644 src/osgWrappers/introspection/libloutil.cpp delete mode 100644 src/osgWrappers/introspection/lightsource.cpp delete mode 100644 src/osgWrappers/introspection/listener.cpp delete mode 100644 src/osgWrappers/introspection/lodnode.cpp delete mode 100644 src/osgWrappers/introspection/menu3d.cpp delete mode 100644 src/osgWrappers/introspection/modelnode.cpp delete mode 100644 src/osgWrappers/introspection/particlesystem.cpp delete mode 100644 src/osgWrappers/introspection/particlesystemutil.cpp delete mode 100644 src/osgWrappers/introspection/pocoutil.cpp delete mode 100644 src/osgWrappers/introspection/pointcloud.cpp delete mode 100644 src/osgWrappers/introspection/pointernode.cpp delete mode 100644 src/osgWrappers/introspection/raynode.cpp delete mode 100644 src/osgWrappers/introspection/referencednode.cpp delete mode 100644 src/osgWrappers/introspection/referencedstateset.cpp delete mode 100644 src/osgWrappers/introspection/reporternode.cpp delete mode 100644 src/osgWrappers/introspection/scenemanager.cpp delete mode 100644 src/osgWrappers/introspection/shader.cpp delete mode 100644 src/osgWrappers/introspection/shaderutil.cpp delete mode 100644 src/osgWrappers/introspection/shapenode.cpp delete mode 100644 src/osgWrappers/introspection/sharedvideotexture.cpp delete mode 100644 src/osgWrappers/introspection/soundnode.cpp delete mode 100644 src/osgWrappers/introspection/soundspace.cpp delete mode 100644 src/osgWrappers/introspection/spinbasecontext.cpp delete mode 100644 src/osgWrappers/introspection/spinclientcontext.cpp delete mode 100644 src/osgWrappers/introspection/spindefaults.cpp delete mode 100644 src/osgWrappers/introspection/spinlog.cpp delete mode 100644 src/osgWrappers/introspection/spinlogwx.cpp delete mode 100644 src/osgWrappers/introspection/spinutil.cpp delete mode 100644 src/osgWrappers/introspection/spinwx.cpp delete mode 100644 src/osgWrappers/introspection/switchnode.cpp delete mode 100644 src/osgWrappers/introspection/syphontexture.cpp delete mode 100644 src/osgWrappers/introspection/textnode.cpp delete mode 100644 src/osgWrappers/introspection/usernode.cpp delete mode 100644 src/osgWrappers/introspection/videosize.cpp delete mode 100644 src/osgWrappers/introspection/videotexture.cpp delete mode 100644 src/osgWrappers/introspection/viewermanipulator.cpp diff --git a/.gitignore b/.gitignore index 2ac1816..781dd2a 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,8 @@ src/osgWrappers/introspection/motionblurppu.cpp src/osgWrappers/introspection/osgParticleUtil.cpp src/osgWrappers/introspection/spinservercontext.cpp src/osgWrappers/introspection/spinapp.cpp +src/osgWrappers/introspection/shaderppu.cpp +src/osgWrappers/introspection/shmpointcloud.cpp spinframework-*.*.* doxyfile doxyfile.stamp diff --git a/buildWrappers.sh b/buildWrappers.sh index 79cd47d..9ebd0a2 100755 --- a/buildWrappers.sh +++ b/buildWrappers.sh @@ -21,7 +21,7 @@ type -P genwrapper &>/dev/null || { echo "genwrapper is not installed; please in doxygen ./doxygen_config rm include/*.h~ -genwrapper -d . doxygen | doxygen - +#genwrapper -d . doxygen | doxygen - genwrapper -v QUIET -c genwrapper.conf doxygen . #genwrapper -v DEBUG -c genwrapper.conf doxygen . rm -rf src/osgWrappers/introspection/home diff --git a/configure.ac b/configure.ac index 51fc76b..705581c 100644 --- a/configure.ac +++ b/configure.ac @@ -318,6 +318,7 @@ AC_CONFIG_FILES([ doxyfile src/Makefile src/osgPPU/Makefile + src/osgWrappers/generator/Makefile src/osgWrappers/introspection/Makefile src/spin/Makefile src/Resources/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 4d063bb..8835eb8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,6 @@ # Order of compilation really matters: SUBDIRS = \ + osgWrappers/generator \ osgWrappers/introspection \ osgPPU \ spin \ diff --git a/src/osgWrappers/generator/Makefile.am b/src/osgWrappers/generator/Makefile.am new file mode 100644 index 0000000..742f484 --- /dev/null +++ b/src/osgWrappers/generator/Makefile.am @@ -0,0 +1,5 @@ +# Need to have a makefile in a subdir just to ensure that the wrappers +# are built before we try to compile them +all-local: + @echo "******** Generating wrappers" + cd ../../.. && ./buildWrappers.sh diff --git a/src/osgWrappers/introspection/animationnode.cpp b/src/osgWrappers/introspection/animationnode.cpp deleted file mode 100644 index addc363..0000000 --- a/src/osgWrappers/introspection/animationnode.cpp +++ /dev/null @@ -1,154 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::AnimationNode::LoopMode) - I_DeclaringFile("animationnode.h"); - I_EnumLabel(spin::AnimationNode::SWING); - I_EnumLabel(spin::AnimationNode::LOOP); - I_EnumLabel(spin::AnimationNode::NO_LOOPING); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::AnimationNode) - I_DeclaringFile("animationnode.h"); - I_BaseType(spin::ConstraintsNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____AnimationNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(bool, doUpdate, IN, double, timestamp, - Properties::NON_VIRTUAL, - __bool__doUpdate__double, - "", - "Performs the actual update of translation, orientation, and scale given a timestamp into the animation "); - I_Method1(void, setIndex, IN, float, index, - Properties::NON_VIRTUAL, - __void__setIndex__float, - "", - "A client interface that allows for setting the animation time using a normalized index in the range [0,1] "); - I_Method1(void, setAnimationRate, IN, float, hz, - Properties::NON_VIRTUAL, - __void__setAnimationRate__float, - "Set the update rate (in Hz). ", - " param hz Animation rate in hz "); - I_Method0(float, getAnimationRate, - Properties::NON_VIRTUAL, - __float__getAnimationRate, - "", - "animation rate in hz "); - I_Method1(void, setPlay, IN, int, p, - Properties::NON_VIRTUAL, - __void__setPlay__int, - "", - "Turns animation on/off. "); - I_Method0(int, getPlay, - Properties::NON_VIRTUAL, - __int__getPlay, - "", - "a boolean value which indicates whether the animation is playing or not "); - I_Method1(void, setRecord, IN, int, r, - Properties::NON_VIRTUAL, - __void__setRecord__int, - "", - "Turns on/off automatic recording. This implies that whenever the node gets an update of translation or orientation, a new position will be saved. Each position will be added with a timestamp relative to the start of the recording. "); - I_Method0(int, getRecord, - Properties::NON_VIRTUAL, - __int__getRecord, - "", - "a boolean value which indicates whether the node is recording or not "); - I_Method1(void, setLoopMode, IN, spin::AnimationNode::LoopMode, mode, - Properties::NON_VIRTUAL, - __void__setLoopMode__LoopMode, - "", - "Sets the loop mode for the animation. eg, SWING, LOOP, NO_LOOPING. "); - I_Method0(int, getLoopMode, - Properties::NON_VIRTUAL, - __int__getLoopMode, - "", - "the loop mode for the animation. eg, SWING, LOOP, NO_LOOPING. "); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "Override setTranslation so we can store updates in record mode "); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "Override setOrientation so we can store updates in record mode "); - I_Method3(void, setScale, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setScale__float__float__float, - "", - "Override setScale so we can store updates in record mode "); - I_Method0(void, storeCurrentPosition, - Properties::NON_VIRTUAL, - __void__storeCurrentPosition, - "", - "Stores the node's current position/rotation/scale as a control point in the animation sequence "); - I_Method1(void, storeCurrentPosition, IN, double, timestamp, - Properties::NON_VIRTUAL, - __void__storeCurrentPosition__double, - "", - "Adds the current position/rotation/scale into the animation sequence at the specified time offset, overriding any previous position at that time. "); - I_Method11(void, controlPoint, IN, double, timestamp, IN, float, x, IN, float, y, IN, float, z, IN, float, rotX, IN, float, rotY, IN, float, rotZ, IN, float, rotW, IN, float, scaleX, IN, float, scaleY, IN, float, scaleZ, - Properties::NON_VIRTUAL, - __void__controlPoint__double__float__float__float__float__float__float__float__float__float__float, - "", - "Explicitely adds a control point into the animation sequence "); - I_Method0(void, clear, - Properties::NON_VIRTUAL, - __void__clear, - "", - "Clears the current animation sequence "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(float, AnimationRate, - __float__getAnimationRate, - __void__setAnimationRate__float); - I_SimpleProperty(float, Index, - 0, - __void__setIndex__float); - I_SimpleProperty(int, LoopMode, - __int__getLoopMode, - 0); - I_SimpleProperty(int, Play, - __int__getPlay, - __void__setPlay__int); - I_SimpleProperty(int, Record, - __int__getRecord, - __void__setRecord__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - -STD_VECTOR_REFLECTOR(std::vector< lo_message >) - diff --git a/src/osgWrappers/introspection/attractornode.cpp b/src/osgWrappers/introspection/attractornode.cpp deleted file mode 100644 index c777b40..0000000 --- a/src/osgWrappers/introspection/attractornode.cpp +++ /dev/null @@ -1,113 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::AttractorNode::attractorMode) - I_DeclaringFile("attractornode.h"); - I_EnumLabel(spin::AttractorNode::EXTRINSIC); - I_EnumLabel(spin::AttractorNode::INTRINSIC); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::AttractorNode) - I_DeclaringFile("attractornode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____AttractorNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(void, setDistanceDecay, IN, float, decay, - Properties::NON_VIRTUAL, - __void__setDistanceDecay__float, - "", - "setDistanceDecay specifies how the attractive force decays as a function of distance. A decay of 1.0 is a linear decay; greater than 1 is exponential (slow at start, faster as you approach the attractor); less than 1 is logarithmic (fast at start, slower as you approach); and zero implies a constant decay (independent of distance). "); - I_Method0(float, getDistanceDecay, - Properties::NON_VIRTUAL, - __float__getDistanceDecay, - "", - "a float that indicates the decay of the node's attractive force as a function of distance from the node "); - I_Method1(void, setAngularDecay, IN, float, decay, - Properties::NON_VIRTUAL, - __void__setAngularDecay__float, - "", - "setAngularDecay specifies how the attractive force decays as a function of incidence to the attractor's current orientation. ie, whether the force falls off linearly (1.0), exponentially (>1), logarithmically (<1), or not at all (0.0) if the attractor is not pointing directly at the target. "); - I_Method0(float, getAngularDecay, - Properties::NON_VIRTUAL, - __float__getAngularDecay, - "", - "a float which indicates how the attractive force of the node decays as a function of incidence to the attractor's current orientation (i.e. at what angle objects are from the attractive node) "); - I_Method1(void, setAttractorMode, IN, spin::AttractorNode::attractorMode, m, - Properties::NON_VIRTUAL, - __void__setAttractorMode__attractorMode, - "", - "Change the mode (see attractorMode enum). "); - I_Method0(int, getAttractorMode, - Properties::NON_VIRTUAL, - __int__getAttractorMode, - "", - "an int indicating the attractor mode currently set for the node, see the attractorMode enum for types "); - I_Method1(void, setForce, IN, float, force, - Properties::NON_VIRTUAL, - __void__setForce__float, - "", - "Set the attractive force (negative force for repulsion) "); - I_Method0(float, getForce, - Properties::NON_VIRTUAL, - __float__getForce, - "", - "a float which indicates the attractive force of the node "); - I_Method1(void, addTarget, IN, const char *, targetID, - Properties::NON_VIRTUAL, - __void__addTarget__C5_char_P1, - "", - "Add a target node to the list "); - I_Method1(void, removeTarget, IN, const char *, targetID, - Properties::NON_VIRTUAL, - __void__removeTarget__C5_char_P1, - "", - "Remove a target from the list "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(float, AngularDecay, - __float__getAngularDecay, - __void__setAngularDecay__float); - I_SimpleProperty(int, AttractorMode, - __int__getAttractorMode, - 0); - I_SimpleProperty(float, DistanceDecay, - __float__getDistanceDecay, - __void__setDistanceDecay__float); - I_SimpleProperty(float, Force, - __float__getForce, - __void__setForce__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/collisionshape.cpp b/src/osgWrappers/introspection/collisionshape.cpp deleted file mode 100644 index 67b39b0..0000000 --- a/src/osgWrappers/introspection/collisionshape.cpp +++ /dev/null @@ -1,258 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::CollisionShape::btContactCallback) - I_DeclaringFile("collisionshape.h"); - I_Constructor2(IN, btRigidBody &, tgtBody, IN, spin::CollisionShape &, node, - ____btContactCallback__btRigidBody_R1__CollisionShape_R1, - "Constructor, pass whatever context you want to have available when processing contacts. ", - "You may also want to set m_collisionFilterGroup and m_collisionFilterMask (supplied by the superclass) for needsCollision() "); - I_Method1(bool, needsCollision, IN, btBroadphaseProxy *, proxy, - Properties::VIRTUAL, - __bool__needsCollision__btBroadphaseProxy_P1, - "If you don't want to consider collisions where the bodies are joined by a constraint, override needsCollision: ", - "However, if you use a btCollisionObject for body instead of a btRigidBody, then this is unnecessary—checkCollideWithOverride isn't available "); - I_Method7(btScalar, addSingleResult, IN, btManifoldPoint &, cp, IN, const btCollisionObject *, colObj0, IN, int, partId0, IN, int, index0, IN, const btCollisionObject *, colObj1, IN, int, partId1, IN, int, index1, - Properties::VIRTUAL, - __btScalar__addSingleResult__btManifoldPoint_R1__C5_btCollisionObject_P1__int__int__C5_btCollisionObject_P1__int__int, - "Called with each contact for your own processing (e.g. test if contacts fall in within sensor parameters) ", - ""); - I_PublicMemberProperty(osg::Vec3, prevHitPoint); - I_PublicMemberProperty(osg::Vec3, prevHitPoint2); - I_PublicMemberProperty(bool, hit); - I_PublicMemberProperty(bool, prevHit); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::CollisionShape::ConstraintType) - I_DeclaringFile("collisionshape.h"); - I_EnumLabel(spin::CollisionShape::POINT_2_POINT); - I_EnumLabel(spin::CollisionShape::HINGE); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::map< std::string COMMA btTypedConstraint * >, spin::CollisionShape::btConstraints) - -BEGIN_OBJECT_REFLECTOR(spin::CollisionShape) - I_DeclaringFile("collisionshape.h"); - I_BaseType(spin::ShapeNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____CollisionShape__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, setShape, IN, spin::ShapeNode::shapeType, t, - Properties::NON_VIRTUAL, - __void__setShape__shapeType, - "", - "Sets the shape this ShapeNode should have, identified by its number. "); - I_Method1(void, setModelFromFile, IN, const char *, file, - Properties::NON_VIRTUAL, - __void__setModelFromFile__C5_char_P1, - "", - ""); - I_Method4(void, addConstraint, IN, const char *, lbl, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__addConstraint__C5_char_P1__float__float__float, - "", - ""); - I_Method8(void, addConstraint2, IN, const char *, lbl, IN, float, x, IN, float, y, IN, float, z, IN, const char *, otherObj, IN, float, ox, IN, float, oy, IN, float, oz, - Properties::NON_VIRTUAL, - __void__addConstraint2__C5_char_P1__float__float__float__C5_char_P1__float__float__float, - "", - ""); - I_Method1(void, removeConstraint, IN, const char *, label, - Properties::NON_VIRTUAL, - __void__removeConstraint__C5_char_P1, - "", - ""); - I_Method0(void, wakeup, - Properties::NON_VIRTUAL, - __void__wakeup, - "", - ""); - I_Method1(void, setBounciness, IN, float, f, - Properties::NON_VIRTUAL, - __void__setBounciness__float, - "", - ""); - I_Method0(float, getBounciness, - Properties::NON_VIRTUAL, - __float__getBounciness, - "", - ""); - I_Method1(void, setFriction, IN, float, f, - Properties::NON_VIRTUAL, - __void__setFriction__float, - "", - ""); - I_Method0(float, getFriction, - Properties::NON_VIRTUAL, - __float__getFriction, - "", - ""); - I_Method1(void, setRollingFriction, IN, float, f, - Properties::NON_VIRTUAL, - __void__setRollingFriction__float, - "", - ""); - I_Method0(float, getRollingFriction, - Properties::NON_VIRTUAL, - __float__getRollingFriction, - "", - ""); - I_MethodWithDefaults3(void, reportContact, IN, btManifoldPoint &, cp, , IN, const btCollisionObject *, otherObj, , IN, bool, swap, false, - Properties::NON_VIRTUAL, - __void__reportContact__btManifoldPoint_R1__C5_btCollisionObject_P1__bool, - "", - ""); - I_Method1(void, setReportContacts, IN, int, b, - Properties::NON_VIRTUAL, - __void__setReportContacts__int, - "", - ""); - I_Method0(int, getReportContacts, - Properties::NON_VIRTUAL, - __int__getReportContacts, - "", - ""); - I_Method1(void, setFilterContacts, IN, int, b, - Properties::NON_VIRTUAL, - __void__setFilterContacts__int, - "", - ""); - I_Method0(int, getFilterContacts, - Properties::NON_VIRTUAL, - __int__getFilterContacts, - "", - ""); - I_Method1(void, setMass, IN, float, mass, - Properties::NON_VIRTUAL, - __void__setMass__float, - "", - "Set the mass of the object. A value of 0 makes the object static (unmovable) by the dynamics engine. Only direct transformation through GroupNode functions will have any effect. "); - I_Method0(float, getMass, - Properties::NON_VIRTUAL, - __float__getMass, - "", - "Returns the current mass of the object. "); - I_Method1(void, setDynamic, IN, int, isDynamic, - Properties::NON_VIRTUAL, - __void__setDynamic__int, - "", - "Enable external dynamic forces (eg, gravity). Note: object must have non-zero mass for this to work. "); - I_Method0(int, getDynamic, - Properties::NON_VIRTUAL, - __int__getDynamic, - "", - "Returns whether dynamic forces like gravity are enabled for the object. "); - I_Method1(bool, checkCollisions, IN, btTransform, tranform, - Properties::NON_VIRTUAL, - __bool__checkCollisions__btTransform, - "", - "A bool that sets whether collision checking is enabled or disabled. "); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method4(void, setOrientationQuat, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::VIRTUAL, - __void__setOrientationQuat__float__float__float__float, - "", - "Set the orientation offset as a quaternion "); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "The local orientation offset for this node with respect to its parent "); - I_Method3(void, setScale, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setScale__float__float__float, - "", - "A grouped scale operation. "); - I_Method16(void, setManipulatorMatrix, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a03, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a13, IN, float, a20, IN, float, a21, IN, float, a22, IN, float, a23, IN, float, a30, IN, float, a31, IN, float, a32, IN, float, a33, - Properties::VIRTUAL, - __void__setManipulatorMatrix__float__float__float__float__float__float__float__float__float__float__float__float__float__float__float__float, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_ProtectedMethod0(btRigidBody *, getBody, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __btRigidBody_P1__getBody, - "", - ""); - I_ProtectedMethod0(void, resetCollisionObj, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__resetCollisionObj, - "", - ""); - I_SimpleProperty(float, Bounciness, - __float__getBounciness, - __void__setBounciness__float); - I_SimpleProperty(int, Dynamic, - __int__getDynamic, - __void__setDynamic__int); - I_SimpleProperty(int, FilterContacts, - __int__getFilterContacts, - __void__setFilterContacts__int); - I_SimpleProperty(float, Friction, - __float__getFriction, - __void__setFriction__float); - I_SimpleProperty(float, Mass, - __float__getMass, - __void__setMass__float); - I_SimpleProperty(const char *, ModelFromFile, - 0, - __void__setModelFromFile__C5_char_P1); - I_SimpleProperty(int, ReportContacts, - __int__getReportContacts, - __void__setReportContacts__int); - I_SimpleProperty(float, RollingFriction, - __float__getRollingFriction, - __void__setRollingFriction__float); - I_SimpleProperty(spin::ShapeNode::shapeType, Shape, - 0, - __void__setShape__shapeType); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_PublicMemberProperty(osg::Vec3, collisionOffset_); -END_REFLECTOR - -STD_MAP_REFLECTOR(std::map< std::string COMMA btTypedConstraint * >) - diff --git a/src/osgWrappers/introspection/compositeviewer.cpp b/src/osgWrappers/introspection/compositeviewer.cpp deleted file mode 100644 index 3f7eef7..0000000 --- a/src/osgWrappers/introspection/compositeviewer.cpp +++ /dev/null @@ -1,146 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::CompositeViewer) - I_DeclaringFile("compositeviewer.h"); - I_Constructor1(IN, osg::ArgumentParser &, args, - Properties::NON_EXPLICIT, - ____CompositeViewer__osg_ArgumentParser_R1, - "Default construcotr. ", - ""); - I_Method0(std::vector< osgPPU::Processor * >, getProcessor, - Properties::NON_VIRTUAL, - __std_vectorT1_osgPPU_Processor_P1___getProcessor, - "Get the ppu processor. ", - ""); - I_Method4(osg::Texture *, createRenderTexture, IN, int, tex_width, IN, int, tex_height, IN, bool, depth, IN, bool, cubemap, - Properties::NON_VIRTUAL, - __osg_Texture_P1__createRenderTexture__int__int__bool__bool, - "Create camera resulting texture. ", - ""); - I_Method0(void, setupCamera, - Properties::NON_VIRTUAL, - __void__setupCamera, - "Setup the camera to do the render to texture. ", - ""); - I_Method0(void, viewerInit, - Properties::NON_VIRTUAL, - __void__viewerInit, - "Just setup some stuff. ", - ""); - I_MethodWithDefaults1(void, initializePPU, IN, unsigned int, pEffect, PPU_NONE, - Properties::NON_VIRTUAL, - __void__initializePPU__unsigned_int, - "Setup osgppu for rendering. ", - ""); - I_MethodWithDefaults1(void, spin::frame, IN, double, f, USE_REFERENCE_TIME, - Properties::NON_VIRTUAL, - __void__frame__double, - "Update the frames. ", - ""); - I_Method0(void, updateSpaceNavigator, - Properties::NON_VIRTUAL, - __void__updateSpaceNavigator, - "Poll the SpaceNavigator for updates and send velocity/spin. ", - ""); - I_Method1(void, setSpaceNavigatorNode, IN, std::string, nID, - Properties::NON_VIRTUAL, - __void__setSpaceNavigatorNode__std_string, - "", - ""); - I_Method1(void, setVelocityScalars, IN, osg::Vec3, v, - Properties::NON_VIRTUAL, - __void__setVelocityScalars__osg_Vec3, - "", - "Scale the velocity effect of navigational devices (for example, scale X and Z axes to zero so that only forward motion is allowed). "); - I_Method1(void, setSpinScalars, IN, osg::Vec3, v, - Properties::NON_VIRTUAL, - __void__setSpinScalars__osg_Vec3, - "", - "Scale the spin effect of navigational devices (for example, disallow roll and allow only pitch and yaw by setting the scale to 1,0,1) "); - I_Method0(bool, isDome, - Properties::NON_VIRTUAL, - __bool__isDome, - "", - "Returns true if the viewer is a dome view "); - I_SimpleProperty(std::vector< osgPPU::Processor * >, Processor, - __std_vectorT1_osgPPU_Processor_P1___getProcessor, - 0); - I_SimpleProperty(std::string, SpaceNavigatorNode, - 0, - __void__setSpaceNavigatorNode__std_string); - I_SimpleProperty(osg::Vec3, SpinScalars, - 0, - __void__setSpinScalars__osg_Vec3); - I_SimpleProperty(osg::Vec3, VelocityScalars, - 0, - __void__setVelocityScalars__osg_Vec3); - I_PublicMemberProperty(std::vector< DoFRendering * >, mDofPPUs); - I_PublicMemberProperty(std::vector< SSAORendering * >, mSsaoPPUs); - I_PublicMemberProperty(std::vector< MotionBlurRendering * >, mMBlurPPUs); - I_PublicMemberProperty(std::vector< OutlineRendering * >, mOutlinePPUs); - I_PublicMemberProperty(std::vector< MaskRendering * >, mMaskPPUs); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::CustomResizeHandler) - I_DeclaringFile("compositeviewer.h"); - I_Constructor1(IN, spin::CompositeViewer *, v, - Properties::NON_EXPLICIT, - ____CustomResizeHandler__CompositeViewer_P1, - "", - ""); - I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, x, - Properties::NON_VIRTUAL, - __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "", - ""); - I_PublicMemberProperty(spin::CompositeViewer *, viewer); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::frustum) - I_DeclaringFile("compositeviewer.h"); - I_Constructor0(____frustum, - "", - ""); - I_PublicMemberProperty(bool, valid); - I_PublicMemberProperty(float, left); - I_PublicMemberProperty(float, right); - I_PublicMemberProperty(float, bottom); - I_PublicMemberProperty(float, top); - I_PublicMemberProperty(float, near); - I_PublicMemberProperty(float, far); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::PPUProcessor) - I_DeclaringFile("compositeviewer.h"); - I_Constructor0(____PPUProcessor, - "", - ""); - I_Method0(void, onViewportChange, - Properties::NON_VIRTUAL, - __void__onViewportChange, - "", - ""); -END_REFLECTOR - -STD_VECTOR_REFLECTOR(std::vector< osgPPU::Processor * >) - diff --git a/src/osgWrappers/introspection/constraintsnode.cpp b/src/osgWrappers/introspection/constraintsnode.cpp deleted file mode 100644 index e587488..0000000 --- a/src/osgWrappers/introspection/constraintsnode.cpp +++ /dev/null @@ -1,142 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::ConstraintsNode::ConstraintMode) - I_DeclaringFile("constraintsnode.h"); - I_EnumLabel(spin::ConstraintsNode::BASIC); - I_EnumLabel(spin::ConstraintsNode::DROP); - I_EnumLabel(spin::ConstraintsNode::COLLIDE); - I_EnumLabel(spin::ConstraintsNode::BOUNCE); - I_EnumLabel(spin::ConstraintsNode::STICK); - I_EnumLabel(spin::ConstraintsNode::COLLIDE_THRU); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::ConstraintsNode::CollisionMode) - I_DeclaringFile("constraintsnode.h"); - I_EnumLabel(spin::ConstraintsNode::POINT); - I_EnumLabel(spin::ConstraintsNode::BOUNDING_SPHERE); - I_EnumLabel(spin::ConstraintsNode::MESH); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ConstraintsNode) - I_DeclaringFile("constraintsnode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ConstraintsNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(void, setTarget, IN, const char *, id, - Properties::NON_VIRTUAL, - __void__setTarget__C5_char_P1, - "", - "Sets a target whose properties can be used to limit movement of this node, depending on the type on constraint selected. (this should be a model node or shape node, or a group node ideally not too complex, because large amounts of triangles will lead to excessive calculations) "); - I_Method0(const char *, getTarget, - Properties::NON_VIRTUAL, - __C5_char_P1__getTarget, - "", - "t_symbol which indicates the target ID on which the constraints are based (Note: The target could also be a group node). "); - I_Method1(void, setConstraintMode, IN, spin::ConstraintsNode::ConstraintMode, m, - Properties::NON_VIRTUAL, - __void__setConstraintMode__ConstraintMode, - "", - "Sets the node's constraint mode, based on the types in constrainMode enum (see enum for details) "); - I_Method0(int, getConstraintMode, - Properties::NON_VIRTUAL, - __int__getConstraintMode, - "", - "int which is converted to the type of constraint currently set on the node (drawn from constraintMode enum) "); - I_Method3(void, setCubeSize, IN, float, xScale, IN, float, yScale, IN, float, zScale, - Properties::NON_VIRTUAL, - __void__setCubeSize__float__float__float, - "", - "Sets the size of the imaginary cube beyond which the constrained node cannot pass, when constraint type BASIC is set. "); - I_Method3(void, setCubeOffset, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setCubeOffset__float__float__float, - "", - "Sets the center of the BASIC constraint cube with respect to the local coordinate system (either the parent object or the world grid). "); - I_Method0(osg::Vec3, getCubeSize, - Properties::NON_VIRTUAL, - __osg_Vec3__getCubeSize, - "", - "Vec3 indicating the size of the cubic BASIC constraint "); - I_Method0(osg::Vec3, getCubeOffset, - Properties::NON_VIRTUAL, - __osg_Vec3__getCubeOffset, - "", - "Vec indicating the offset of the cubic BASIC constraint from its local coordinate system. "); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method0(osg::Vec3, getTranslation, - Properties::VIRTUAL, - __osg_Vec3__getTranslation, - "", - "Returns the local translation offset with respect to the node's parent. "); - I_Method3(void, translate, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__translate__float__float__float, - "", - "The translate command increments the node's current translation values (ie, it's position in the scene with respect to it's parent) "); - I_Method3(void, move, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__move__float__float__float, - "", - "The move command adds a relative translation with respect to the node's current orientation. That is, the node will translate along it's direction vector by the supplied number of units. "); - I_Method1(void, applyConstrainedTranslation, IN, osg::Vec3, v, - Properties::NON_VIRTUAL, - __void__applyConstrainedTranslation__osg_Vec3, - "", - "A pseudo-recursive function that checks if a translation results in one or more intersections with the target node. If no intersection, this method defaults to just a setTranslation call. Otherwise, it will do a setTranslation for the collision point, and call itself again until there are no collisions left. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(int, ConstraintMode, - __int__getConstraintMode, - 0); - I_SimpleProperty(osg::Vec3, CubeOffset, - __osg_Vec3__getCubeOffset, - 0); - I_SimpleProperty(osg::Vec3, CubeSize, - __osg_Vec3__getCubeSize, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, Target, - __C5_char_P1__getTarget, - __void__setTarget__C5_char_P1); - I_SimpleProperty(osg::Vec3, Translation, - __osg_Vec3__getTranslation, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/contour.cpp b/src/osgWrappers/introspection/contour.cpp deleted file mode 100644 index f68ee25..0000000 --- a/src/osgWrappers/introspection/contour.cpp +++ /dev/null @@ -1,210 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::Contour) - I_DeclaringFile("contour.h"); - I_BaseType(spin::ReferencedNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____Contour__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateNodePath, - Properties::VIRTUAL, - __void__updateNodePath, - "", - "IMPORTANT: subclasses of ReferencedNode are allowed to contain complicated subgraphs and can also change their attachmentNode so that children are attached anywhere in this subgraph. If that is the case, the updateNodePath() function MUST be overridden, and extra nodes must be manually pushed onto the currentNodePath_. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method0(void, updateTransforms, - Properties::NON_VIRTUAL, - __void__updateTransforms, - "", - "Updates the contour with respect to any new parameters recently set. This function is called automatically by most of the other functions, such as setCurrentIndex, add, etc. "); - I_Method1(osg::Quat, getOrientation, IN, float, index, - Properties::NON_VIRTUAL, - __osg_Quat__getOrientation__float, - "", - "This function gets the orientation of a given index into the soundLine. Note that the orientation along a line has only 2 degrees of freedom (roll is not defined). So we specify the Y_AXIS. "); - I_Method1(osg::Vec3, getTranslation, IN, float, index, - Properties::NON_VIRTUAL, - __osg_Vec3__getTranslation__float, - "", - "We allow the index to be a float, so position can be interpolated between two indices: "); - I_Method1(void, setIndex, IN, float, newValue, - Properties::NON_VIRTUAL, - __void__setIndex__float, - "", - "Sets the \"index\" vertex where child nodes will be attached to the contour This is handled using a value in the range 0 to 1. "); - I_Method0(void, prev, - Properties::NON_VIRTUAL, - __void__prev, - "", - "Sets the index to the vertex previous to the current index in the contour "); - I_Method0(void, next, - Properties::NON_VIRTUAL, - __void__next, - "", - "Sets the index to the vertex after the current index in the contour. "); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - "Clears all information from the contour, leaving an empty node. "); - I_Method3(void, add, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__add__float__float__float, - "", - "Add a vertex to the front of the contour the (vectorArray). If the list of vectors reaches maximum size, the final vector is removed from the end of the contour. Please note that the index vertex (where children nodes are attached) remains in the same position on the contour even as the vertices change because this value is set as a proportion of the vertex length (a 0,1 range value). "); - I_Method1(void, setMaxVertices, IN, int, newValue, - Properties::NON_VIRTUAL, - __void__setMaxVertices__int, - "", - "Sets the maximum number of vertices on the contour. "); - I_Method1(void, setTrackingMode, IN, int, newValue, - Properties::NON_VIRTUAL, - __void__setTrackingMode__int, - "", - "Sets the mode of the contour according to the trackingMode enumerator. Determines whether children node will rotate as they move along the contour (FULL6D0F) or move along the contour without rotation (POSITION). "); - I_Method1(void, setVisible, IN, int, newValue, - Properties::NON_VIRTUAL, - __void__setVisible__int, - "", - "Sets whether the contour is visible or not. "); - I_Method1(void, setThickness, IN, float, newValue, - Properties::NON_VIRTUAL, - __void__setThickness__float, - "", - "Sets the thickness of the contour. "); - I_Method1(void, setLineType, IN, int, newValue, - Properties::NON_VIRTUAL, - __void__setLineType__int, - "", - "Sets the contour type according to the contourType enumerator. Determines whether the connections between vertices on the contour will be drawn as line segments (THIN), boxes (CUBIC), or circles (CYLINDRICAL). "); - I_Method4(void, setColor, IN, float, newR, IN, float, newG, IN, float, newB, IN, float, newA, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - "Sets the color of the contour in RGBA value. "); - I_Method0(float, getCurrentIndex, - Properties::NON_VIRTUAL, - __float__getCurrentIndex, - "", - "Returns a float indicating the current index vertex for the contour. A float will interpolate a point between vertices to act as the index. "); - I_Method0(int, getMaxVertices, - Properties::NON_VIRTUAL, - __int__getMaxVertices, - "", - "Returns the maximum number of vertices currently permitted for the contour. "); - I_Method0(int, getTrackingMode, - Properties::NON_VIRTUAL, - __int__getTrackingMode, - "", - "Returns an integer representing the tracking mode of the contour (whether children moving along the contour rotate or not). "); - I_Method0(int, getVisible, - Properties::NON_VIRTUAL, - __int__getVisible, - "", - "Returns an int representing whether the contour is visible or not. "); - I_Method0(float, getThickness, - Properties::NON_VIRTUAL, - __float__getThickness, - "", - "Returns a float representing the thickness value of the contour. "); - I_Method0(float, getLineType, - Properties::NON_VIRTUAL, - __float__getLineType, - "", - "Returns an integer representing the contour type according to the contourType enum. "); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - "Returns a Vector4 representing the RGBA value of the contour. "); - I_Method1(void, setLighting, IN, int, i, - Properties::NON_VIRTUAL, - __void__setLighting__int, - "", - "Set whether the contour is influenced by lighting "); - I_Method0(int, getLighting, - Properties::NON_VIRTUAL, - __int__getLighting, - "", - "Returns a boolean indicating whether the contour is affected by lighting. "); - I_Method0(void, draw, - Properties::NON_VIRTUAL, - __void__draw, - "", - "Draws the contour according to the parameters set, i.e. contour type, color, number of vertices. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(float, CurrentIndex, - __float__getCurrentIndex, - 0); - I_SimpleProperty(float, Index, - 0, - __void__setIndex__float); - I_SimpleProperty(int, Lighting, - __int__getLighting, - __void__setLighting__int); - I_SimpleProperty(float, LineType, - __float__getLineType, - 0); - I_SimpleProperty(int, MaxVertices, - __int__getMaxVertices, - __void__setMaxVertices__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(float, Thickness, - __float__getThickness, - __void__setThickness__float); - I_SimpleProperty(int, TrackingMode, - __int__getTrackingMode, - __void__setTrackingMode__int); - I_SimpleProperty(int, Visible, - __int__getVisible, - __void__setVisible__int); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::ContourTypeEnum) - I_DeclaringFile("contour.h"); - I_EnumLabel(spin::THIN); - I_EnumLabel(spin::CUBIC); - I_EnumLabel(spin::CYLINDRICAL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::trackingModeEnum) - I_DeclaringFile("contour.h"); - I_EnumLabel(spin::POSITION); - I_EnumLabel(spin::FULL6DOF); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/draggertrackball.cpp b/src/osgWrappers/introspection/draggertrackball.cpp deleted file mode 100644 index f2dd7ab..0000000 --- a/src/osgWrappers/introspection/draggertrackball.cpp +++ /dev/null @@ -1,36 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgManipulator::DraggerTrackball) - I_DeclaringFile("draggertrackball.h"); - I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, - Properties::NON_EXPLICIT, - ____DraggerTrackball__bool, - "", - ""); - I_Method2(, META_OSGMANIPULATOR_Object, IN, osgManipulator, x, IN, osgManipulator::DraggerTrackball, x, - Properties::NON_VIRTUAL, - ____META_OSGMANIPULATOR_Object__osgManipulator__DraggerTrackball, - "", - "Setup default geometry for dragger. "); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/draggerwith3axes.cpp b/src/osgWrappers/introspection/draggerwith3axes.cpp deleted file mode 100644 index f23dcf0..0000000 --- a/src/osgWrappers/introspection/draggerwith3axes.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(osgManipulator::DraggerWith3Axes) - I_DeclaringFile("draggerwith3axes.h"); - I_Constructor0(____DraggerWith3Axes, - "", - ""); - I_Method2(, META_OSGMANIPULATOR_Object, IN, osgManipulator, x, IN, osgManipulator::DraggerWith3Axes, x, - Properties::NON_VIRTUAL, - ____META_OSGMANIPULATOR_Object__osgManipulator__DraggerWith3Axes, - "", - "Setup default geometry for dragger. "); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/dspnode.cpp b/src/osgWrappers/introspection/dspnode.cpp deleted file mode 100644 index 737b2b5..0000000 --- a/src/osgWrappers/introspection/dspnode.cpp +++ /dev/null @@ -1,236 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::DSPNode) - I_DeclaringFile("dspnode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____DSPNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_MethodWithDefaults1(bool, dumpGlobals, IN, bool, forced, false, - Properties::VIRTUAL, - __bool__dumpGlobals__bool, - "", - "The dumpGlobals method results in a broadcast of this node's translation and orientation. It is called by callbackUpdate() every frame, however the 'forced' flag will be set to false, so it will only send a message if the node's matrix has changed. If the 'forced' flag is set to true, it will definitely result in a message broadcast. This should only be used when necessary (eg, when a stateDump is requested).Note: the return value is only to fool wx so that it doesn't consider this as an editable property. "); - I_Method1(void, setURI, IN, const char *, uri, - Properties::VIRTUAL, - __void__setURI__C5_char_P1, - "", - "Set the media for the sound node using a URI pattern.Examples: file://soundfilename.wav file:///home/johndoe/soundfilename.wav http://www.server.com/soundfile.wav adc://1:1 adc://1 content://media/external/audio/media/710 mms://some_media_stream rtsp://127.0.0.1:12311 pd_plugin://audio_plugin_patch.pd "); - I_Method0(const char *, getURI, - Properties::NON_VIRTUAL, - __C5_char_P1__getURI, - "", - "Returns the currently-set URI associated with the sound node. "); - I_Method1(void, setActive, IN, int, i, - Properties::VIRTUAL, - __void__setActive__int, - "", - "Activate or deactivate the DSP processing "); - I_Method0(int, getActive, - Properties::NON_VIRTUAL, - __int__getActive, - "", - "Returns whether the DSP processing is active or inactive. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_Method1(void, setRolloff, IN, const char *, newvalue, - Properties::VIRTUAL, - __void__setRolloff__C5_char_P1, - "", - ""); - I_Method1(void, setSpread, IN, float, newvalue, - Properties::VIRTUAL, - __void__setSpread__float, - "", - ""); - I_Method1(void, setLength, IN, float, newvalue, - Properties::VIRTUAL, - __void__setLength__float, - "", - ""); - I_Method1(void, setRadius, IN, float, newvalue, - Properties::VIRTUAL, - __void__setRadius__float, - "", - ""); - I_Method4(void, setDebugColor, IN, float, r, IN, float, g, IN, float, b, IN, float, a, - Properties::NON_VIRTUAL, - __void__setDebugColor__float__float__float__float, - "", - ""); - I_Method1(void, setVUmeterFlag, IN, float, newFlag, - Properties::NON_VIRTUAL, - __void__setVUmeterFlag__float, - "", - ""); - I_Method1(void, setDirectivityFlag, IN, float, newFlag, - Properties::NON_VIRTUAL, - __void__setDirectivityFlag__float, - "", - ""); - I_Method1(void, setLaserFlag, IN, float, newFlag, - Properties::NON_VIRTUAL, - __void__setLaserFlag__float, - "", - ""); - I_Method1(void, setRadiusFlag, IN, float, newFlag, - Properties::NON_VIRTUAL, - __void__setRadiusFlag__float, - "", - ""); - I_Method1(void, setIntensity, IN, float, newvalue, - Properties::NON_VIRTUAL, - __void__setIntensity__float, - "", - ""); - I_Method0(const char *, getRolloff, - Properties::NON_VIRTUAL, - __C5_char_P1__getRolloff, - "", - ""); - I_Method0(float, getSpread, - Properties::NON_VIRTUAL, - __float__getSpread, - "", - ""); - I_Method0(float, getLength, - Properties::NON_VIRTUAL, - __float__getLength, - "", - ""); - I_Method0(float, getRadius, - Properties::NON_VIRTUAL, - __float__getRadius, - "", - ""); - I_Method0(osg::Vec4, getDebugColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getDebugColor, - "", - ""); - I_Method0(float, getVUmeterFlag, - Properties::NON_VIRTUAL, - __float__getVUmeterFlag, - "", - ""); - I_Method0(float, getDirectivityFlag, - Properties::NON_VIRTUAL, - __float__getDirectivityFlag, - "", - ""); - I_Method0(float, getLaserFlag, - Properties::NON_VIRTUAL, - __float__getLaserFlag, - "", - ""); - I_Method0(float, getRadiusFlag, - Properties::NON_VIRTUAL, - __float__getRadiusFlag, - "", - ""); - I_Method0(void, updateVUmeter, - Properties::NON_VIRTUAL, - __void__updateVUmeter, - "", - ""); - I_Method0(void, updateLaser, - Properties::NON_VIRTUAL, - __void__updateLaser, - "", - ""); - I_Method0(void, drawVUmeter, - Properties::NON_VIRTUAL, - __void__drawVUmeter, - "", - ""); - I_Method0(void, drawDirectivity, - Properties::NON_VIRTUAL, - __void__drawDirectivity, - "", - ""); - I_Method0(void, drawLaser, - Properties::NON_VIRTUAL, - __void__drawLaser, - "", - ""); - I_Method0(void, drawRadius, - Properties::NON_VIRTUAL, - __void__drawRadius, - "", - ""); - I_SimpleProperty(int, Active, - __int__getActive, - __void__setActive__int); - I_SimpleProperty(osg::Vec4, DebugColor, - __osg_Vec4__getDebugColor, - 0); - I_SimpleProperty(float, DirectivityFlag, - __float__getDirectivityFlag, - __void__setDirectivityFlag__float); - I_SimpleProperty(float, Intensity, - 0, - __void__setIntensity__float); - I_SimpleProperty(float, LaserFlag, - __float__getLaserFlag, - __void__setLaserFlag__float); - I_SimpleProperty(float, Length, - __float__getLength, - __void__setLength__float); - I_SimpleProperty(float, Radius, - __float__getRadius, - __void__setRadius__float); - I_SimpleProperty(float, RadiusFlag, - __float__getRadiusFlag, - __void__setRadiusFlag__float); - I_SimpleProperty(const char *, Rolloff, - __C5_char_P1__getRolloff, - __void__setRolloff__C5_char_P1); - I_SimpleProperty(float, Spread, - __float__getSpread, - __void__setSpread__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, URI, - __C5_char_P1__getURI, - __void__setURI__C5_char_P1); - I_SimpleProperty(float, VUmeterFlag, - __float__getVUmeterFlag, - __void__setVUmeterFlag__float); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/eventhandler.cpp b/src/osgWrappers/introspection/eventhandler.cpp deleted file mode 100644 index acbeae3..0000000 --- a/src/osgWrappers/introspection/eventhandler.cpp +++ /dev/null @@ -1,53 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::EventHandler) - I_DeclaringFile("eventhandler.h"); - I_Constructor0(____EventHandler, - "", - ""); - I_Method1(void, onServerChange, IN, std::vector< spin::InfoMessage * >, serverList, - Properties::VIRTUAL, - __void__onServerChange__std_vectorT1_InfoMessage_P1_, - "", - "An event that occurs whenever the server list changes (spin clients only) "); - I_Method3(void, onSceneMessage, IN, const char *, x, IN, lo_arg **, x, IN, int, x, - Properties::VIRTUAL, - __void__onSceneMessage__C5_char_P1__lo_arg_P1P1__int, - "", - "Event handler for scene messages (eg, createNode, deleteNode, etc). "); - I_Method4(void, onNodeMessage, IN, spin::ReferencedNode *, x, IN, const char *, x, IN, lo_arg **, x, IN, int, x, - Properties::VIRTUAL, - __void__onNodeMessage__ReferencedNode_P1__C5_char_P1__lo_arg_P1P1__int, - "", - "Event handler for node messages "); - I_Method1(void, onInfoMessage, IN, spin::InfoMessage *, x, - Properties::VIRTUAL, - __void__onInfoMessage__spin_InfoMessage_P1, - "", - "Event handler for info messages.Note: this is sent repeatedly at the ping rate of the server (but only in the case where this spin context is running in client mode). "); -END_REFLECTOR - -STD_VECTOR_REFLECTOR(std::vector< spin::InfoMessage * >) - diff --git a/src/osgWrappers/introspection/eventtypes.cpp b/src/osgWrappers/introspection/eventtypes.cpp deleted file mode 100644 index 34d29ee..0000000 --- a/src/osgWrappers/introspection/eventtypes.cpp +++ /dev/null @@ -1,39 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::InfoMessage) - I_DeclaringFile("eventtypes.h"); - I_Constructor1(IN, const std::string &, s, - Properties::NON_EXPLICIT, - ____InfoMessage__C5_std_string_R1, - "", - ""); - I_PublicMemberProperty(std::string, sceneID); - I_PublicMemberProperty(std::string, serverAddr); - I_PublicMemberProperty(int, serverUDPPort); - I_PublicMemberProperty(int, serverTCPport); - I_PublicMemberProperty(std::string, multicastAddr); - I_PublicMemberProperty(int, multicastDataPort); - I_PublicMemberProperty(int, multicastSyncPort); - I_PublicMemberProperty(osg::Timer_t, lastUpdate); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/fog.cpp b/src/osgWrappers/introspection/fog.cpp deleted file mode 100644 index ee46c1d..0000000 --- a/src/osgWrappers/introspection/fog.cpp +++ /dev/null @@ -1,74 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::Fog) - I_DeclaringFile("fog.h"); - I_BaseType(spin::ReferencedStateSet); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____Fog__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(const char *, getPath, - Properties::NON_VIRTUAL, - __C5_char_P1__getPath, - "", - "need to implement abstract method... ?! "); - I_Method1(void, setFogDensity, IN, float, density, - Properties::NON_VIRTUAL, - __void__setFogDensity__float, - "", - "Set fog density (good values are around 0.001 - 0.1) "); - I_Method0(float, getFogDensity, - Properties::NON_VIRTUAL, - __float__getFogDensity, - "", - "Get fog density (good values are around 0.001 - 0.1) "); - I_Method4(void, setFogColor, IN, float, r, IN, float, g, IN, float, b, IN, float, a, - Properties::NON_VIRTUAL, - __void__setFogColor__float__float__float__float, - "", - "Set fog color in RGBA value. "); - I_Method0(osg::Vec4, getFogColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getFogColor, - "", - "Returns fog color "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "must reimplement "); - I_SimpleProperty(osg::Vec4, FogColor, - __osg_Vec4__getFogColor, - 0); - I_SimpleProperty(float, FogDensity, - __float__getFogDensity, - __void__setFogDensity__float); - I_SimpleProperty(const char *, Path, - __C5_char_P1__getPath, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/geometrynode.cpp b/src/osgWrappers/introspection/geometrynode.cpp deleted file mode 100644 index 4d470e4..0000000 --- a/src/osgWrappers/introspection/geometrynode.cpp +++ /dev/null @@ -1,86 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::GeometryNode) - I_DeclaringFile("geometrynode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____GeometryNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform_. "); - I_Method1(void, setNumVertices, IN, int, i, - Properties::NON_VIRTUAL, - __void__setNumVertices__int, - "", - "Sets the number of vertices that this geometry is supposed to have.This should be a multiple of 3 if you want to draw using GL_TRIANGLES or amultiple of 4 if you want to draw using GL_QUADS. Anything else will draw using GL_LINES.If you grow the number of vertices, all new vertices will be created with default values: position of (0,0,0), full white color, and texcoords of (0,0). "); - I_Method4(void, setVertex, IN, int, index, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setVertex__int__float__float__float, - "", - "Update the position of one vertex in the geometry, using an index. "); - I_Method5(void, setColor, IN, int, index, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__int__float__float__float__float, - "", - "Update the color of one vertex in the geometry, using an index. "); - I_Method3(void, setTexCoord, IN, int, index, IN, float, x, IN, float, y, - Properties::NON_VIRTUAL, - __void__setTexCoord__int__float__float, - "", - "Update the texture coord of one vertex in the geometry, using an index. "); - I_Method1(void, setSingleSided, IN, int, singleSided, - Properties::NON_VIRTUAL, - __void__setSingleSided__int, - "", - "Specify whether both sides or only one side of the shape is rendered. ie, whether the backface is culled or not. "); - I_Method0(int, getSingleSided, - Properties::NON_VIRTUAL, - __int__getSingleSided, - "", - "Returns whether both sides of the shape are being rendered or if the backface is being culled. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(int, NumVertices, - 0, - __void__setNumVertices__int); - I_SimpleProperty(int, SingleSided, - __int__getSingleSided, - __void__setSingleSided__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/gridnode.cpp b/src/osgWrappers/introspection/gridnode.cpp deleted file mode 100644 index a2c4488..0000000 --- a/src/osgWrappers/introspection/gridnode.cpp +++ /dev/null @@ -1,66 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::GridNode) - I_DeclaringFile("gridnode.h"); - I_BaseType(spin::ReferencedNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____GridNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, setSize, IN, int, _size, - Properties::NON_VIRTUAL, - __void__setSize__int, - "", - "The grid size is measured in meters, and defines how far out from the center the grid is drawn (ie, half width). "); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - "Sets the grid's line color in RGBA value. "); - I_Method0(int, getSize, - Properties::NON_VIRTUAL, - __int__getSize, - "", - "Returns the size of the grid (in meters from the center). "); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - "Returns the color of the grid's lines in a Vector4 of RGBA values. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(int, Size, - __int__getSize, - __void__setSize__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/groupnode.cpp b/src/osgWrappers/introspection/groupnode.cpp deleted file mode 100644 index 98c5b54..0000000 --- a/src/osgWrappers/introspection/groupnode.cpp +++ /dev/null @@ -1,467 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::DraggerCallback) - I_DeclaringFile("groupnode.h"); - I_Constructor1(IN, spin::GroupNode *, g, - Properties::NON_EXPLICIT, - ____DraggerCallback__GroupNode_P1, - "", - ""); - I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, command, - Properties::NON_VIRTUAL, - __bool__receive__C5_osgManipulator_MotionCommand_R1, - "", - ""); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::GroupNode::InteractionMode) - I_DeclaringFile("groupnode.h"); - I_EnumLabel(spin::GroupNode::STATIC); - I_EnumLabel(spin::GroupNode::PASSTHRU); - I_EnumLabel(spin::GroupNode::SELECT); - I_EnumLabel(spin::GroupNode::DRAG); - I_EnumLabel(spin::GroupNode::THROW); - I_EnumLabel(spin::GroupNode::DRAW); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::GroupNode::globalsReportMode) - I_DeclaringFile("groupnode.h"); - I_EnumLabel(spin::GroupNode::NONE); - I_EnumLabel(spin::GroupNode::GLOBAL_6DOF); - I_EnumLabel(spin::GroupNode::GLOBAL_ALL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::GroupNode::velocityMode) - I_DeclaringFile("groupnode.h"); - I_EnumLabel(spin::GroupNode::TRANSLATE); - I_EnumLabel(spin::GroupNode::MOVE); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::GroupNode::ComputationMode) - I_DeclaringFile("groupnode.h"); - I_EnumLabel(spin::GroupNode::SERVER_SIDE); - I_EnumLabel(spin::GroupNode::CLIENT_SIDE); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::GroupNode::OrientationMode) - I_DeclaringFile("groupnode.h"); - I_EnumLabel(spin::GroupNode::NORMAL); - I_EnumLabel(spin::GroupNode::POINT_TO_TARGET); - I_EnumLabel(spin::GroupNode::POINT_TO_TARGET_CENTROID); - I_EnumLabel(spin::GroupNode::POINT_TO_ORIGIN); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::GroupNode) - I_DeclaringFile("groupnode.h"); - I_BaseType(spin::ReferencedNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____GroupNode__SceneManager_P1__C5_char_P1, - "", - " param initID will be converted into a t_symbol "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(void, setUpdateRate, IN, float, seconds, - Properties::VIRTUAL, - __void__setUpdateRate__float, - "", - "The update rate tells the server how fast to send both velocity updates and reporting. Generally, we want to throttle network messages on the server-side so that messages don't flood the network when there is a lot of activity. "); - I_Method0(float, getUpdateRate, - Properties::NON_VIRTUAL, - __float__getUpdateRate, - "", - "Returns the currently-set update rate. "); - I_MethodWithDefaults1(void, updateNodePath, IN, bool, updateChildren, true, - Properties::VIRTUAL, - __void__updateNodePath__bool, - "", - "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_. "); - I_Method5(void, mouseEvent, IN, int, event, IN, int, keyMask, IN, int, buttonMask, IN, float, x, IN, float, y, - Properties::NON_VIRTUAL, - __void__mouseEvent__int__int__int__float__float, - "", - ""); - I_Method7(void, event, IN, int, event, IN, const char *, userString, IN, float, eData1, IN, float, eData2, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__event__int__C5_char_P1__float__float__float__float__float, - "", - ""); - I_Method2(void, setLock, IN, const char *, userString, IN, int, lock, - Properties::NON_VIRTUAL, - __void__setLock__C5_char_P1__int, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, setStateSetFromFile, IN, const char *, filename, - Properties::NON_VIRTUAL, - __void__setStateSetFromFile__C5_char_P1, - "", - "setStateSetFromFile guesses the type of stateset from the filename extension, creates a new stateset of that type and assigns it to this node "); - I_Method1(void, setStateSet, IN, const char *, s, - Properties::NON_VIRTUAL, - __void__setStateSet__C5_char_P1, - "", - "Assign an existing stateset to this node "); - I_Method0(spin::t_symbol *, getStateSetSymbol, - Properties::NON_VIRTUAL, - __t_symbol_P1__getStateSetSymbol, - "", - ""); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform_. "); - I_Method1(void, setReportMode, IN, spin::GroupNode::globalsReportMode, mode, - Properties::NON_VIRTUAL, - __void__setReportMode__globalsReportMode, - "", - "Sets the report mode with reference to the globalsReportMode enum. "); - I_Method1(void, setInteractionMode, IN, spin::GroupNode::InteractionMode, mode, - Properties::NON_VIRTUAL, - __void__setInteractionMode__InteractionMode, - "", - "Sets the interaction mode with reference to the InteractionMode enum. "); - I_Method1(void, setComputationMode, IN, spin::GroupNode::ComputationMode, mode, - Properties::NON_VIRTUAL, - __void__setComputationMode__ComputationMode, - "", - "Sets the Computation mode as either server or client side with respect to the ComputationMode enum. "); - I_Method0(int, getComputationMode, - Properties::NON_VIRTUAL, - __int__getComputationMode, - "", - "Returns the currently-set computation mode with respect to the ComputationMode enum. "); - I_Method3(void, setClipping, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setClipping__float__float__float, - "", - "Set a clipping rectangle for the model so that geometry outside of the region (+-x, +-y, +-z) will not be shown (or used in interactive events) "); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method1(void, setOrientationMode, IN, spin::GroupNode::OrientationMode, m, - Properties::NON_VIRTUAL, - __void__setOrientationMode__OrientationMode, - "", - "Set the OrientationMode of the node, which will be applied after every transformation. "); - I_Method0(int, getOrientationMode, - Properties::NON_VIRTUAL, - __int__getOrientationMode, - "", - "Returns the currently-set Orientation Mode, with respect to the OrientationMode enum. "); - I_Method1(void, setOrientationTarget, IN, const char *, target, - Properties::NON_VIRTUAL, - __void__setOrientationTarget__C5_char_P1, - "", - ""); - I_Method0(char *, getOrientationTarget, - Properties::NON_VIRTUAL, - __char_P1__getOrientationTarget, - "", - ""); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "The local orientation offset for this node with respect to its parent "); - I_Method4(void, setOrientationQuat, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::VIRTUAL, - __void__setOrientationQuat__float__float__float__float, - "", - "Set the orientation offset as a quaternion "); - I_Method3(void, setScale, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setScale__float__float__float, - "", - "A grouped scale operation. "); - I_Method3(void, setVelocity, IN, float, dx, IN, float, dy, IN, float, dz, - Properties::VIRTUAL, - __void__setVelocity__float__float__float, - "", - "A translational velocity (m/s). This is computed in the callbackUpdate() function. "); - I_Method1(void, setVelocityMode, IN, spin::GroupNode::velocityMode, mode, - Properties::VIRTUAL, - __void__setVelocityMode__velocityMode, - "", - "Applying velocity to an object can either result in translational motion, where velocityMode is TRANSLATE (0). This is the default and applies and motion is relative to the local coordinate system of the node. When velocityMode is MOVE (1), then motion is relative to the current orientation of the node, analogous to the move() command. "); - I_Method3(void, setSpin, IN, float, dp, IN, float, dr, IN, float, dy, - Properties::VIRTUAL, - __void__setSpin__float__float__float, - "", - "A rotational velocity (deg/sec), computed in callbackUpdate(). "); - I_Method1(void, setDamping, IN, float, d, - Properties::VIRTUAL, - __void__setDamping__float, - "", - "A Damping value (negative acceleration) that gets applied to velocity and spin over time. Units are in -m/sec2 or -deg/sec2, meaning that: zero damping will not change velocity/spin valuesany positive value will decrease the speeds "); - I_Method3(void, translate, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__translate__float__float__float, - "", - "The translate command increments the node's current translation values (ie, it's position in the scene with respect to it's parent) "); - I_Method3(void, move, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__move__float__float__float, - "", - "The move command adds a relative translation with respect to the node's current orientation. That is, the node will translate along it's direction vector by the supplied number of units. "); - I_Method3(void, rotate, IN, float, dPitch, IN, float, dRoll, IN, float, dYaw, - Properties::VIRTUAL, - __void__rotate__float__float__float, - "", - "The rotate command adds to the (absolute) orientation of the node "); - I_Method3(void, addRotation, IN, float, dPitch, IN, float, dRoll, IN, float, dYaw, - Properties::VIRTUAL, - __void__addRotation__float__float__float, - "", - "The addRotation command adds a (relative) rotation to the node's current orientation. "); - I_MethodWithDefaults5(void, translateTo, IN, float, x, , IN, float, y, , IN, float, z, , IN, float, time, , IN, const char *, motion, "Linear", - Properties::VIRTUAL, - __void__translateTo__float__float__float__float__C5_char_P1, - "", - "Instead of instantaneous setTranslation, this method uses an ease motion to animate the node to the target position. "); - I_Method1(void, setManipulator, IN, const char *, manipulatorType, - Properties::VIRTUAL, - __void__setManipulator__C5_char_P1, - "", - ""); - I_Method0(const char *, getManipulator, - Properties::NON_VIRTUAL, - __C5_char_P1__getManipulator, - "", - ""); - I_Method16(void, setManipulatorMatrix, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a03, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a13, IN, float, a20, IN, float, a21, IN, float, a22, IN, float, a23, IN, float, a30, IN, float, a31, IN, float, a32, IN, float, a33, - Properties::VIRTUAL, - __void__setManipulatorMatrix__float__float__float__float__float__float__float__float__float__float__float__float__float__float__float__float, - "", - ""); - I_Method1(void, setBroadcastLock, IN, bool, lock, - Properties::NON_VIRTUAL, - __void__setBroadcastLock__bool, - "", - ""); - I_Method0(int, getReportMode, - Properties::NON_VIRTUAL, - __int__getReportMode, - "", - "Returns the currently-set Report Mode with reference to the globalsReportMode enum. "); - I_Method0(int, getInteractionMode, - Properties::NON_VIRTUAL, - __int__getInteractionMode, - "", - "Returns the currently-set Interaction Mode with reference to the InteractionMode enum. "); - I_Method0(osg::Vec3, getClipping, - Properties::NON_VIRTUAL, - __osg_Vec3__getClipping, - "", - ""); - I_Method0(osg::Vec3, getOrientation, - Properties::NON_VIRTUAL, - __osg_Vec3__getOrientation, - "", - "Returns the currently-set local orientation offset for this node with respect to its parent. "); - I_Method0(osg::Vec3, getTranslation, - Properties::VIRTUAL, - __osg_Vec3__getTranslation, - "", - "Returns the currently-set local translation offset for this node with respect to its parent. "); - I_Method0(osg::Quat, getOrientationQuat, - Properties::VIRTUAL, - __osg_Quat__getOrientationQuat, - "", - "Returns the currently-set "); - I_Method0(osg::Vec3, getScale, - Properties::VIRTUAL, - __osg_Vec3__getScale, - "", - ""); - I_Method0(osg::Vec3, getVelocity, - Properties::NON_VIRTUAL, - __osg_Vec3__getVelocity, - "", - ""); - I_Method0(int, getVelocityMode, - Properties::NON_VIRTUAL, - __int__getVelocityMode, - "", - ""); - I_Method0(float, getDamping, - Properties::NON_VIRTUAL, - __float__getDamping, - "", - ""); - I_Method0(osg::Matrix, getGlobalMatrix, - Properties::NON_VIRTUAL, - __osg_Matrix__getGlobalMatrix, - "", - ""); - I_Method0(osg::Vec3, getCenter, - Properties::NON_VIRTUAL, - __osg_Vec3__getCenter, - "", - ""); - I_MethodWithDefaults1(bool, dumpGlobals, IN, bool, forced, false, - Properties::VIRTUAL, - __bool__dumpGlobals__bool, - "", - "The dumpGlobals method results in a broadcast of this node's translation and orientation. It is called by callbackUpdate() every frame, however the 'forced' flag will be set to false, so it will only send a message if the node's matrix has changed. If the 'forced' flag is set to true, it will definitely result in a message broadcast. This should only be used when necessary (eg, when a stateDump is requested).Note: the return value is only to fool wx so that it doesn't consider this as an editable property. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_Method0(void, stateDump, - Properties::VIRTUAL, - __void__stateDump, - "", - "We override stateDump so that we can additionally force a dumpGlobals() call whenever a dump is requested "); - I_Method0(osg::MatrixTransform *, getTransform, - Properties::NON_VIRTUAL, - __osg_MatrixTransform_P1__getTransform, - "", - ""); - I_Method0(void, updateDraggerMatrix, - Properties::NON_VIRTUAL, - __void__updateDraggerMatrix, - "", - ""); - I_Method1(void, removeOrientationTargetter, IN, spin::GroupNode *, gn, - Properties::NON_VIRTUAL, - __void__removeOrientationTargetter__GroupNode_P1, - "", - ""); - I_Method1(void, addOrientationTargetter, IN, spin::GroupNode *, gn, - Properties::NON_VIRTUAL, - __void__addOrientationTargetter__GroupNode_P1, - "", - ""); - I_Method0(void, applyOrientationModeToTargetters, - Properties::NON_VIRTUAL, - __void__applyOrientationModeToTargetters, - "", - ""); - I_ProtectedMethod0(void, updateQuat, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__updateQuat, - "", - ""); - I_ProtectedMethod0(void, updateMatrix, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__updateMatrix, - "", - ""); - I_ProtectedMethod0(void, drawManipulator, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__drawManipulator, - "", - ""); - I_ProtectedMethod0(void, applyOrientationMode, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__applyOrientationMode, - "", - ""); - I_SimpleProperty(bool, BroadcastLock, - 0, - __void__setBroadcastLock__bool); - I_SimpleProperty(osg::Vec3, Center, - __osg_Vec3__getCenter, - 0); - I_SimpleProperty(osg::Vec3, Clipping, - __osg_Vec3__getClipping, - 0); - I_SimpleProperty(int, ComputationMode, - __int__getComputationMode, - 0); - I_SimpleProperty(float, Damping, - __float__getDamping, - __void__setDamping__float); - I_SimpleProperty(osg::Matrix, GlobalMatrix, - __osg_Matrix__getGlobalMatrix, - 0); - I_SimpleProperty(int, InteractionMode, - __int__getInteractionMode, - 0); - I_SimpleProperty(const char *, Manipulator, - __C5_char_P1__getManipulator, - __void__setManipulator__C5_char_P1); - I_SimpleProperty(osg::Vec3, Orientation, - __osg_Vec3__getOrientation, - 0); - I_SimpleProperty(int, OrientationMode, - __int__getOrientationMode, - 0); - I_SimpleProperty(osg::Quat, OrientationQuat, - __osg_Quat__getOrientationQuat, - 0); - I_SimpleProperty(char *, OrientationTarget, - __char_P1__getOrientationTarget, - 0); - I_SimpleProperty(int, ReportMode, - __int__getReportMode, - 0); - I_SimpleProperty(osg::Vec3, Scale, - __osg_Vec3__getScale, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, StateSet, - 0, - __void__setStateSet__C5_char_P1); - I_SimpleProperty(const char *, StateSetFromFile, - 0, - __void__setStateSetFromFile__C5_char_P1); - I_SimpleProperty(spin::t_symbol *, StateSetSymbol, - __t_symbol_P1__getStateSetSymbol, - 0); - I_SimpleProperty(osg::MatrixTransform *, Transform, - __osg_MatrixTransform_P1__getTransform, - 0); - I_SimpleProperty(osg::Vec3, Translation, - __osg_Vec3__getTranslation, - 0); - I_SimpleProperty(float, UpdateRate, - __float__getUpdateRate, - __void__setUpdateRate__float); - I_SimpleProperty(osg::Vec3, Velocity, - __osg_Vec3__getVelocity, - 0); - I_SimpleProperty(int, VelocityMode, - __int__getVelocityMode, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/imagetexture.cpp b/src/osgWrappers/introspection/imagetexture.cpp deleted file mode 100644 index a827b15..0000000 --- a/src/osgWrappers/introspection/imagetexture.cpp +++ /dev/null @@ -1,101 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::ImageTexture::TextureMode) - I_DeclaringFile("imagetexture.h"); - I_EnumLabel(spin::ImageTexture::TEXTURE_2D); - I_EnumLabel(spin::ImageTexture::TEXTURE_RECTANGLE); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ImageTexture) - I_DeclaringFile("imagetexture.h"); - I_BaseType(spin::Shader); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ImageTexture__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information to console. "); - I_Method0(bool, isValid, - Properties::NON_VIRTUAL, - __bool__isValid, - "", - "Returns whether there is a currently valid image texture "); - I_Method1(void, setPath, IN, const char *, newPath, - Properties::NON_VIRTUAL, - __void__setPath__C5_char_P1, - "", - "Creates a texture from a path on disk. "); - I_Method0(const char *, getPath, - Properties::NON_VIRTUAL, - __C5_char_P1__getPath, - "", - "Returns the path on disk from where the texture is pulled. "); - I_Method1(void, setTextureMode, IN, spin::ImageTexture::TextureMode, mode, - Properties::NON_VIRTUAL, - __void__setTextureMode__TextureMode, - "", - ""); - I_Method0(int, getTextureMode, - Properties::NON_VIRTUAL, - __int__getTextureMode, - "", - ""); - I_Method1(void, setTextureResize, IN, bool, b, - Properties::NON_VIRTUAL, - __void__setTextureResize__bool, - "", - ""); - I_Method0(int, getTextureResize, - Properties::NON_VIRTUAL, - __int__getTextureResize, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "Just like a ReferencedNode, each subclass of ReferencedStateSet must override the getState() method to pass it's current state. "); - I_ProtectedMethod0(void, draw, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__draw, - "", - ""); - I_SimpleProperty(const char *, Path, - __C5_char_P1__getPath, - __void__setPath__C5_char_P1); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(int, TextureMode, - __int__getTextureMode, - 0); - I_SimpleProperty(bool, TextureResize, - 0, - __void__setTextureResize__bool); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/introspect_helpers.cpp b/src/osgWrappers/introspection/introspect_helpers.cpp deleted file mode 100644 index 5320039..0000000 --- a/src/osgWrappers/introspection/introspect_helpers.cpp +++ /dev/null @@ -1,22 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - diff --git a/src/osgWrappers/introspection/kinectcloud.cpp b/src/osgWrappers/introspection/kinectcloud.cpp deleted file mode 100644 index b2d81ea..0000000 --- a/src/osgWrappers/introspection/kinectcloud.cpp +++ /dev/null @@ -1,135 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::KinectCloud::DrawMode) - I_DeclaringFile("kinectcloud.h"); - I_EnumLabel(spin::KinectCloud::NONE); - I_EnumLabel(spin::KinectCloud::POINTS); - I_EnumLabel(spin::KinectCloud::LINES); - I_EnumLabel(spin::KinectCloud::LINE_STRIP); - I_EnumLabel(spin::KinectCloud::LINE_LOOP); - I_EnumLabel(spin::KinectCloud::TRIANGLES); - I_EnumLabel(spin::KinectCloud::TRIANGLE_STRIP); - I_EnumLabel(spin::KinectCloud::TRIANGLE_FAN); - I_EnumLabel(spin::KinectCloud::QUADS); - I_EnumLabel(spin::KinectCloud::QUAD_STRIP); - I_EnumLabel(spin::KinectCloud::POLYGON); - I_EnumLabel(spin::KinectCloud::LIGHTPOINTS); - I_EnumLabel(spin::KinectCloud::BOXES); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::KinectCloud) - I_DeclaringFile("kinectcloud.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____KinectCloud__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "update from kinect "); - I_Method1(void, setDrawMode, IN, spin::KinectCloud::DrawMode, mode, - Properties::NON_VIRTUAL, - __void__setDrawMode__DrawMode, - "", - "Sets the mode for drawing the point cloud, based on the types in the DrawMode enumerator. "); - I_Method1(void, setSpacing, IN, float, spacing, - Properties::NON_VIRTUAL, - __void__setSpacing__float, - "", - "Sets the spacing between points generated by the point cloud. "); - I_Method1(void, setRandomCoeff, IN, float, randomCoeff, - Properties::NON_VIRTUAL, - __void__setRandomCoeff__float, - "", - ""); - I_Method1(void, setPointSize, IN, float, pointsize, - Properties::NON_VIRTUAL, - __void__setPointSize__float, - "", - "Sets the size of the points in the point cloud. "); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - "Sets the color of the drawn point cloud in RGBA. "); - I_Method0(int, getDrawMode, - Properties::NON_VIRTUAL, - __int__getDrawMode, - "", - "Returns the Draw Mode set from the choices in the DrawMode enumerator. "); - I_Method0(float, getSpacing, - Properties::NON_VIRTUAL, - __float__getSpacing, - "", - "Returns the current spacing between points generated by the point cloud. "); - I_Method0(float, getRandomCoeff, - Properties::NON_VIRTUAL, - __float__getRandomCoeff, - "", - "Returns the current random coefficient. "); - I_Method0(float, getPointSize, - Properties::NON_VIRTUAL, - __float__getPointSize, - "", - "Returns the current size of the points generated by the point cloud. "); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - "Returns a Vector4 indicating the color in RGBA values. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_StaticMethod1(void *, freenectThreadFunction, IN, void *, arg, - __void_P1__freenectThreadFunction__void_P1_S, - "", - "thread function (grabs data from freenect) "); - I_StaticMethod3(void, depthCallback, IN, freenect_device *, dev, IN, void *, v_depth, IN, uint32_t, timestamp, - __void__depthCallback__freenect_device_P1__void_P1__uint32_t_S, - "", - ""); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(int, DrawMode, - __int__getDrawMode, - 0); - I_SimpleProperty(float, PointSize, - __float__getPointSize, - __void__setPointSize__float); - I_SimpleProperty(float, RandomCoeff, - __float__getRandomCoeff, - __void__setRandomCoeff__float); - I_SimpleProperty(float, Spacing, - __float__getSpacing, - __void__setSpacing__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/libloutil.cpp b/src/osgWrappers/introspection/libloutil.cpp deleted file mode 100644 index e9c4651..0000000 --- a/src/osgWrappers/introspection/libloutil.cpp +++ /dev/null @@ -1,53 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(_lo_method) - I_DeclaringFile("libloutil.h"); - I_Constructor0(_____lo_method, - "", - ""); - I_PublicMemberProperty(lo_method_handler, handler); - I_PublicMemberProperty(char *, user_data); - I_PublicMemberProperty(struct _lo_method *, next); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(_lo_server) - I_DeclaringFile("libloutil.h"); - I_Constructor0(_____lo_server, - "", - ""); - I_PublicMemberProperty(struct addrinfo *, ai); - I_PublicMemberProperty(lo_method, first); - I_PublicMemberProperty(lo_err_handler, err_h); - I_PublicMemberProperty(int, port); - I_PublicMemberProperty(char *, hostname); - I_PublicMemberProperty(char *, path); - I_PublicMemberProperty(int, protocol); - I_PublicMemberProperty(void *, queued); - I_PublicMemberProperty(struct sockaddr_storage, addr); - I_PublicMemberProperty(socklen_t, addr_len); - I_PublicMemberProperty(int, sockets_len); - I_PublicMemberProperty(int, sockets_alloc); - I_PublicMemberProperty(int, fd); - I_PublicMemberProperty(struct _lo_server::@0 *, sockets); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/lightsource.cpp b/src/osgWrappers/introspection/lightsource.cpp deleted file mode 100644 index 38827fe..0000000 --- a/src/osgWrappers/introspection/lightsource.cpp +++ /dev/null @@ -1,131 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::LightSource) - I_DeclaringFile("lightsource.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____LightSource__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, setVisible, IN, int, visibilityFlag, - Properties::NON_VIRTUAL, - __void__setVisible__int, - "", - "Set whether the light source is visible. "); - I_Method1(void, setCutoff, IN, float, cutoff, - Properties::NON_VIRTUAL, - __void__setCutoff__float, - "", - "Cutoff is an angle (in degrees), measured from the center of the cone to the outer edge. 0 would give us a single laser-point, while 90 degrees will give us a hemisphere of light. Note that 0 is the min, and 90 is the max, but a special value of 180 degrees will turn the spotlight into an omnidirectional light. "); - I_Method1(void, setExponent, IN, float, exponent, - Properties::NON_VIRTUAL, - __void__setExponent__float, - "", - "This value defines the intensity of the light towards the edges of the cone. As objects move from the center of the spotlight to the edges, we have the option of attenuating the intensity of the light on the surface of the objects "); - I_Method1(void, setAttenuation, IN, float, attenuation, - Properties::NON_VIRTUAL, - __void__setAttenuation__float, - "", - "The attenuation parameter controls the amount of attenuation that occurs, as a light moves away from a surface. A value of 0 means no attenuation, so light intensity will be the same for any distance. A value of 1 means full linear attenuation. "); - I_Method4(void, setAmbient, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setAmbient__float__float__float__float, - "", - "Sets the ambient value for the light source in RGBA. "); - I_Method4(void, setDiffuse, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setDiffuse__float__float__float__float, - "", - "Sets the diffuse value for the light source in RGBA. "); - I_Method4(void, setSpecular, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setSpecular__float__float__float__float, - "", - "Sets the specular value for the light source in RGBA. "); - I_Method0(int, getVisible, - Properties::NON_VIRTUAL, - __int__getVisible, - "", - "Returns a boolean indicating whether the light source is visible. "); - I_Method0(float, getCutoff, - Properties::NON_VIRTUAL, - __float__getCutoff, - "", - "Returns the current cutoff angle, measured from the center of the cone to the outer edge. "); - I_Method0(float, getExponent, - Properties::NON_VIRTUAL, - __float__getExponent, - "", - "Returns the current exponent value that defines the intensity of the light around the edges of the cone. "); - I_Method0(float, getAttenuation, - Properties::NON_VIRTUAL, - __float__getAttenuation, - "", - "Returns the current attenuation, which is the amount of attenuation that occurs as the light moves away from a surface. "); - I_Method0(osg::Vec4, getAmbient, - Properties::NON_VIRTUAL, - __osg_Vec4__getAmbient, - "", - "Returns the ambient value of the light source in RGBA. "); - I_Method0(osg::Vec4, getDiffuse, - Properties::NON_VIRTUAL, - __osg_Vec4__getDiffuse, - "", - "Returns the diffuse value of the light source in RGBA. "); - I_Method0(osg::Vec4, getSpecular, - Properties::NON_VIRTUAL, - __osg_Vec4__getSpecular, - "", - "Returns the specular value of the light source in RGBA. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(osg::Vec4, Ambient, - __osg_Vec4__getAmbient, - 0); - I_SimpleProperty(float, Attenuation, - __float__getAttenuation, - __void__setAttenuation__float); - I_SimpleProperty(float, Cutoff, - __float__getCutoff, - __void__setCutoff__float); - I_SimpleProperty(osg::Vec4, Diffuse, - __osg_Vec4__getDiffuse, - 0); - I_SimpleProperty(float, Exponent, - __float__getExponent, - __void__setExponent__float); - I_SimpleProperty(osg::Vec4, Specular, - __osg_Vec4__getSpecular, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(int, Visible, - __int__getVisible, - __void__setVisible__int); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/listener.cpp b/src/osgWrappers/introspection/listener.cpp deleted file mode 100644 index 9cf3cfe..0000000 --- a/src/osgWrappers/introspection/listener.cpp +++ /dev/null @@ -1,88 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::Listener) - I_DeclaringFile("listener.h"); - I_BaseType(spin::DSPNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____Listener__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_MethodWithDefaults1(bool, dumpGlobals, IN, bool, forced, false, - Properties::VIRTUAL, - __bool__dumpGlobals__bool, - "", - "The dumpGlobals method results in a broadcast of this node's translation and orientation. It is called by callbackUpdate() every frame, however the 'forced' flag will be set to false, so it will only send a message if the node's matrix has changed. If the 'forced' flag is set to true, it will definitely result in a message broadcast. This should only be used when necessary (eg, when a stateDump is requested).Note: the return value is only to fool wx so that it doesn't consider this as an editable property. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_Method2(void, setParam, IN, const char *, paramName, IN, const char *, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__C5_char_P1, - "", - ""); - I_Method2(void, setParam, IN, const char *, paramName, IN, float, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__float, - "", - ""); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "The local orientation offset for this node with respect to its parent "); - I_Method4(void, setOrientationQuat, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::VIRTUAL, - __void__setOrientationQuat__float__float__float__float, - "", - "Set the orientation offset as a quaternion "); - I_Method1(void, setURI, IN, const char *, uri, - Properties::VIRTUAL, - __void__setURI__C5_char_P1, - "", - "Set the media for the sound node using a URI pattern.Examples: file://soundfilename.wav file:///home/johndoe/soundfilename.wav http://www.server.com/soundfile.wav adc://1:1 adc://1 content://media/external/audio/media/710 mms://some_media_stream rtsp://127.0.0.1:12311 pd_plugin://audio_plugin_patch.pd "); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, URI, - 0, - __void__setURI__C5_char_P1); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/lodnode.cpp b/src/osgWrappers/introspection/lodnode.cpp deleted file mode 100644 index bac4e76..0000000 --- a/src/osgWrappers/introspection/lodnode.cpp +++ /dev/null @@ -1,50 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::LODNode) - I_DeclaringFile("lodnode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____LODNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateNodePath, - Properties::VIRTUAL, - __void__updateNodePath, - "", - ""); - I_Method3(void, setRange, IN, const char *, childID, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setRange__C5_char_P1__float__float, - "", - "Set the visible range of a child node "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/menu3d.cpp b/src/osgWrappers/introspection/menu3d.cpp deleted file mode 100644 index 813d2af..0000000 --- a/src/osgWrappers/introspection/menu3d.cpp +++ /dev/null @@ -1,178 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::Menu3D) - I_DeclaringFile("menu3d.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____Menu3D__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateNodePath, - Properties::VIRTUAL, - __void__updateNodePath, - "", - "This should likely be a private function. TO_BE_VERIFIED. "); - I_Method1(void, setEnabled, IN, int, i, - Properties::NON_VIRTUAL, - __void__setEnabled__int, - "", - "Toggle whether this menu node is enabled or disabled. "); - I_Method0(int, getEnabled, - Properties::NON_VIRTUAL, - __int__getEnabled, - "", - "Returns a boolean (int) indicating whether this menu node is enabled or disabled. "); - I_Method1(void, addItem, IN, const char *, itemText, - Properties::NON_VIRTUAL, - __void__addItem__C5_char_P1, - "", - "Add an item (TextNode) to the list (server-side only) "); - I_Method1(void, removeItem, IN, int, itemIndex, - Properties::NON_VIRTUAL, - __void__removeItem__int, - "", - "Remove an item (textNode) from the list by its itemIndex. "); - I_Method1(void, removeItem, IN, const char *, itemID, - Properties::NON_VIRTUAL, - __void__removeItem__C5_char_P1, - "", - "Remove an item (textNode) from the list by its ID. "); - I_Method1(int, doRemoveItem, IN, osg::observer_ptr< spin::TextNode >, n, - Properties::NON_VIRTUAL, - __int__doRemoveItem__osg_observer_ptrT1_TextNode_, - "", - "This should be a private function. "); - I_Method0(void, clearItems, - Properties::NON_VIRTUAL, - __void__clearItems, - "", - "Removes all text nodes from the menu. "); - I_Method0(void, redraw, - Properties::NON_VIRTUAL, - __void__redraw, - "", - "Redraws the menu after items are removed to eliminate the space left by the recently removed item(s). "); - I_Method1(void, setHighlighted, IN, int, itemIndex, - Properties::NON_VIRTUAL, - __void__setHighlighted__int, - "", - "Highlight an item from the list by its itemIndex. "); - I_Method1(void, setHighlighted, IN, const char *, itemID, - Properties::NON_VIRTUAL, - __void__setHighlighted__C5_char_P1, - "", - "Highlight an item from the list by its itemID. "); - I_Method1(int, doHighlight, IN, osg::observer_ptr< spin::TextNode >, n, - Properties::NON_VIRTUAL, - __int__doHighlight__osg_observer_ptrT1_TextNode_, - "", - "This should be a private function. "); - I_Method0(const char *, getHighlighted, - Properties::NON_VIRTUAL, - __C5_char_P1__getHighlighted, - "", - "Returns the id of the currently highlighted menu item. "); - I_Method4(void, setHighlightColor, IN, float, r, IN, float, g, IN, float, b, IN, float, a, - Properties::NON_VIRTUAL, - __void__setHighlightColor__float__float__float__float, - "", - "Set the color of the font in RGBA values when highlighted "); - I_Method0(osg::Vec4, getHighlightColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getHighlightColor, - "", - "Returns the color of the font in RGBA values when highlighted. "); - I_Method0(void, highlightNext, - Properties::NON_VIRTUAL, - __void__highlightNext, - "", - "Highlights the item that follows the currently highlighted item. "); - I_Method0(void, highlightPrev, - Properties::NON_VIRTUAL, - __void__highlightPrev, - "", - "Highlights the item previous to the currently highlighted item. "); - I_Method0(void, select, - Properties::NON_VIRTUAL, - __void__select, - "", - ""); - I_Method3(void, setItemOffset, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setItemOffset__float__float__float, - "", - "Each successive menu item will appear at an offset from the previous "); - I_Method0(osg::Vec3, getItemOffset, - Properties::NON_VIRTUAL, - __osg_Vec3__getItemOffset, - "", - "Returns the Vector3 value used to offset successive menu entries. "); - I_Method1(void, setFont, IN, const char *, s, - Properties::NON_VIRTUAL, - __void__setFont__C5_char_P1, - "", - "wrapped from TextNode: sets font type "); - I_Method1(void, setBillboard, IN, spin::TextNode::billboardType, t, - Properties::NON_VIRTUAL, - __void__setBillboard__TextNode_billboardType, - "", - "wrapped from TextNode: types come from billboardType enum: RELATIVE, POINT_EYE, STAY_UP "); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - "wrapped from TextNode: sets color in RGBA values "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(spin::TextNode::billboardType, Billboard, - 0, - __void__setBillboard__TextNode_billboardType); - I_SimpleProperty(int, Enabled, - __int__getEnabled, - __void__setEnabled__int); - I_SimpleProperty(const char *, Font, - 0, - __void__setFont__C5_char_P1); - I_SimpleProperty(osg::Vec4, HighlightColor, - __osg_Vec4__getHighlightColor, - 0); - I_SimpleProperty(const char *, Highlighted, - __C5_char_P1__getHighlighted, - __void__setHighlighted__C5_char_P1); - I_SimpleProperty(osg::Vec3, ItemOffset, - __osg_Vec3__getItemOffset, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< spin::TextNode > >, spin::MenuVector) - -STD_VECTOR_REFLECTOR(std::vector< osg::observer_ptr< spin::TextNode > >) - diff --git a/src/osgWrappers/introspection/modelnode.cpp b/src/osgWrappers/introspection/modelnode.cpp deleted file mode 100644 index 6dcbe29..0000000 --- a/src/osgWrappers/introspection/modelnode.cpp +++ /dev/null @@ -1,199 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::ModelNode::animationModeType) - I_DeclaringFile("modelnode.h"); - I_EnumLabel(spin::ModelNode::OFF); - I_EnumLabel(spin::ModelNode::SWITCH); - I_EnumLabel(spin::ModelNode::SEQUENCE); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ModelNode) - I_DeclaringFile("modelnode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ModelNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method0(void, listAnimations, - Properties::NON_VIRTUAL, - __void__listAnimations, - "", - ""); - I_MethodWithDefaults1(void, updateNodePath, IN, bool, updateChildren, true, - Properties::VIRTUAL, - __void__updateNodePath__bool, - "", - "We change our attachmentNode (add attachment to the centroid), so we MUST override updateNodePath(), and manually push the centroid transform onto the currentNodePath_. "); - I_Method1(void, setContext, IN, const char *, newvalue, - Properties::VIRTUAL, - __void__setContext__C5_char_P1, - "", - "The context is an arbitrary keyword that associates this node with a particular behaviour. Currently, it is used to prevent display if the context matches the name of a machine. ie, allowing it to be seen on all machines except for the one that is named by setContext. "); - I_Method1(void, setModelFromFile, IN, const char *, filename, - Properties::NON_VIRTUAL, - __void__setModelFromFile__C5_char_P1, - "", - "Load a 3D model from a file (eg, .osg, .3ds, .obj, .dae, etc). Make sure that StateRegistration flag is set if you want to have control over any textures or shaders withing the model "); - I_Method0(const char *, getModelFromFile, - Properties::NON_VIRTUAL, - __C5_char_P1__getModelFromFile, - "", - "Returns the file path of the 3d model attached to this node. "); - I_Method1(void, setAttachCentroid, IN, int, i, - Properties::NON_VIRTUAL, - __void__setAttachCentroid__int, - "", - "If attachCentroid is enabled, then children will be attached to the centroid of the currently loaded model. If not then it will be attached to this ModelNode's local origin. "); - I_Method0(int, getAttachCentroid, - Properties::NON_VIRTUAL, - __int__getAttachCentroid, - "", - "Returns a boolean indicating whether attachCentroid is enabled. "); - I_Method0(void, makeCentered, - Properties::NON_VIRTUAL, - __void__makeCentered, - "", - "Translate the model so that the centroid is at the local (0,0,0) "); - I_Method1(void, setStateRegistration, IN, int, i, - Properties::NON_VIRTUAL, - __void__setStateRegistration__int, - "", - "The StateRegistration flag should be set if you want any textures or shaders to be parsed out when loading a model. Any statesets found in the file will generate corresponding ReferencedStateSets for use within SPIN. This way, you'll be able to swap textures, control videos, adjust shader parameters, etc. "); - I_Method0(int, getStateRegistration, - Properties::NON_VIRTUAL, - __int__getStateRegistration, - "", - "Returns a boolean indicating whether StateRegistration is set. See setStateRegistration for more information. "); - I_Method1(void, setRenderBin, IN, int, i, - Properties::NON_VIRTUAL, - __void__setRenderBin__int, - "", - "Render bins allow you to control drawing order, and manage Z-fighting. The higher the number, the later it gets processed (ie, appears on top). Default renderBin = 11 "); - I_Method0(int, getRenderBin, - Properties::NON_VIRTUAL, - __int__getRenderBin, - "", - "Returns an integer representing the render bin of the node. See setRenderBin for more information. "); - I_Method2(void, setAnimationIndex, IN, const char *, animName, IN, float, index, - Properties::NON_VIRTUAL, - __void__setAnimationIndex__C5_char_P1__float, - "", - "Control the seek index of a particular animation saved within the model "); - I_Method2(void, setAnimationLoopMode, IN, const char *, animName, IN, int, mode, - Properties::NON_VIRTUAL, - __void__setAnimationLoopMode__C5_char_P1__int, - "", - "Set the loop mode of a particular animation saved within the model "); - I_Method2(void, setPlaying, IN, const char *, animName, IN, int, playState, - Properties::NON_VIRTUAL, - __void__setPlaying__C5_char_P1__int, - "", - "Set the playing state of a particular animation (paused by default) "); - I_Method2(void, setStateSet, IN, int, index, IN, const char *, replacement, - Properties::NON_VIRTUAL, - __void__setStateSet__int__C5_char_P1, - "", - "For statesets embedded in the model, it is possible to swap with some other (already existing) stateset.Note: for this to work, stateRegistration must be enabled. "); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform_. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_Method1(void, setLighting, IN, int, i, - Properties::NON_VIRTUAL, - __void__setLighting__int, - "", - "This lets you enable or disable the lighting for the entire model, BUT, really this should be done in individual statesets and can be overridden "); - I_Method0(int, getLighting, - Properties::NON_VIRTUAL, - __int__getLighting, - "", - "Returns a boolean indicating whether lighting is enabled for the model. "); - I_SimpleProperty(int, AttachCentroid, - __int__getAttachCentroid, - __void__setAttachCentroid__int); - I_SimpleProperty(const char *, Context, - 0, - __void__setContext__C5_char_P1); - I_SimpleProperty(int, Lighting, - __int__getLighting, - __void__setLighting__int); - I_SimpleProperty(const char *, ModelFromFile, - __C5_char_P1__getModelFromFile, - __void__setModelFromFile__C5_char_P1); - I_SimpleProperty(int, RenderBin, - __int__getRenderBin, - __void__setRenderBin__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(int, StateRegistration, - __int__getStateRegistration, - __void__setStateRegistration__int); - I_PublicMemberProperty(std::vector< spin::t_symbol * >, _statesetList); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::ModelNodeAnimation::AnimationType) - I_DeclaringFile("modelnode.h"); - I_EnumLabel(spin::ModelNodeAnimation::INVALID); - I_EnumLabel(spin::ModelNodeAnimation::SWITCH); - I_EnumLabel(spin::ModelNodeAnimation::SEQUENCE); - I_EnumLabel(spin::ModelNodeAnimation::ANIMATION); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::ModelNodeAnimation::AnimationLoopMode) - I_DeclaringFile("modelnode.h"); - I_EnumLabel(spin::ModelNodeAnimation::LOOP); - I_EnumLabel(spin::ModelNodeAnimation::NO_LOOPING); - I_EnumLabel(spin::ModelNodeAnimation::SWING); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::ModelNodeAnimation) - I_DeclaringFile("modelnode.h"); - I_Constructor0(____ModelNodeAnimation, - "", - ""); - I_PublicMemberProperty(spin::ModelNodeAnimation::AnimationType, _type); - I_PublicMemberProperty(spin::ModelNodeAnimation::AnimationLoopMode, _loopMode); - I_PublicMemberProperty(bool, _playState); - I_PublicMemberProperty(float, _index); - I_PublicMemberProperty(osg::ref_ptr< osg::Switch >, _switch); - I_PublicMemberProperty(osg::ref_ptr< osg::Sequence >, _sequence); - I_PublicMemberProperty(osg::ref_ptr< osgAnimation::Animation >, _animation); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< spin::ModelNodeAnimation > >, spin::AnimationList) - -STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< spin::ModelNodeAnimation > >) - diff --git a/src/osgWrappers/introspection/particlesystem.cpp b/src/osgWrappers/introspection/particlesystem.cpp deleted file mode 100644 index 01eaf80..0000000 --- a/src/osgWrappers/introspection/particlesystem.cpp +++ /dev/null @@ -1,769 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::ParticleSystem::PlacerType) - I_DeclaringFile("particlesystem.h"); - I_EnumLabel(spin::ParticleSystem::RADIAL); - I_EnumLabel(spin::ParticleSystem::CUBIC); - I_EnumLabel(spin::ParticleSystem::LINEAR); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ParticleSystem) - I_DeclaringFile("particlesystem.h"); - I_BaseType(spin::ConstraintsNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ParticleSystem__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(void, updateNodePath, IN, bool, updateChildren, - Properties::VIRTUAL, - __void__updateNodePath__bool, - "", - "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_. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, setConnected, IN, int, b, - Properties::NON_VIRTUAL, - __void__setConnected__int, - "", - ""); - I_Method1(void, setPlacerType, IN, int, type, - Properties::NON_VIRTUAL, - __void__setPlacerType__int, - "", - ""); - I_Method0(int, getPlacerType, - Properties::NON_VIRTUAL, - __int__getPlacerType, - "", - ""); - I_Method2(void, setRadialRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setRadialRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getRadialRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getRadialRange, - "", - ""); - I_Method2(void, setRadialPhiRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setRadialPhiRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getRadialPhiRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getRadialPhiRange, - "", - ""); - I_Method2(void, setCubicXRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setCubicXRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getCubicXRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getCubicXRange, - "", - ""); - I_Method2(void, setCubicYRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setCubicYRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getCubicYRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getCubicYRange, - "", - ""); - I_Method2(void, setCubicZRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setCubicZRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getCubicZRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getCubicZRange, - "", - ""); - I_Method3(void, addLinearPlacerVertex, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__addLinearPlacerVertex__float__float__float, - "", - ""); - I_Method0(void, removeLinearPlacerVertices, - Properties::NON_VIRTUAL, - __void__removeLinearPlacerVertices, - "", - ""); - I_Method1(void, enableOrbiter, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableOrbiter__int, - "", - "The orbiter forces particles in the orbit around a point. "); - I_Method0(int, getEnabledOrbiter, - Properties::NON_VIRTUAL, - __int__getEnabledOrbiter, - "", - ""); - I_Method1(void, enableAttractor, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableAttractor__int, - "", - "Applies an attractive force towards a specific point. "); - I_Method0(int, getEnabledAttractor, - Properties::NON_VIRTUAL, - __int__getEnabledAttractor, - "", - ""); - I_Method1(void, enableOscillator, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableOscillator__int, - "", - "Applies an oscilating motion. "); - I_Method0(int, getEnabledOscillator, - Properties::NON_VIRTUAL, - __int__getEnabledOscillator, - "", - ""); - I_Method1(void, enableAccelerator, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableAccelerator__int, - "", - "Applies a constant acceleration to the particles (eg, gravity). "); - I_Method0(int, getEnabledAccelerator, - Properties::NON_VIRTUAL, - __int__getEnabledAccelerator, - "", - ""); - I_Method1(void, enableAngularAccelerator, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableAngularAccelerator__int, - "", - "Applies a constant angular acceleration to the particles. "); - I_Method0(int, getEnabledAngularAccelerator, - Properties::NON_VIRTUAL, - __int__getEnabledAngularAccelerator, - "", - ""); - I_Method1(void, enableAngularDamping, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableAngularDamping__int, - "", - "Applies damping constant to particle's angular velocity. "); - I_Method0(int, getEnabledAngularDamping, - Properties::NON_VIRTUAL, - __int__getEnabledAngularDamping, - "", - ""); - I_Method1(void, enableDamping, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableDamping__int, - "", - "Applies damping constant to particle's velocity. "); - I_Method0(int, getEnabledDamping, - Properties::NON_VIRTUAL, - __int__getEnabledDamping, - "", - ""); - I_Method1(void, enableFluidFriction, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableFluidFriction__int, - "", - "Simulates the friction of a fluid.By using this operator you can let the particles move in a fluid of a given density and viscosity. There are two functions to quickly setup the parameters for pure water and air. You can decide whether to compute the forces using the particle's physical radius or another value, by calling the setOverrideRadius() method. "); - I_Method0(int, getEnabledFluidFriction, - Properties::NON_VIRTUAL, - __int__getEnabledFluidFriction, - "", - ""); - I_Method1(void, enableExplosion, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableExplosion__int, - "", - "Exerts force on each particle away from the explosion center. "); - I_Method0(int, getEnabledExplosion, - Properties::NON_VIRTUAL, - __int__getEnabledExplosion, - "", - ""); - I_Method1(void, enableForce, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableForce__int, - "", - "Applies a constant force to the particles. Remember that if the mass of particles is expressed in kg and the lengths are expressed in meters, then the force should be expressed in Newtons. "); - I_Method0(int, getEnabledForce, - Properties::NON_VIRTUAL, - __int__getEnabledForce, - "", - ""); - I_Method1(void, enableBouncer, IN, int, b, - Properties::NON_VIRTUAL, - __void__enableBouncer__int, - "", - "Can affect the particle's velocity to make it rebound. "); - I_Method0(int, getEnabledBouncer, - Properties::NON_VIRTUAL, - __int__getEnabledBouncer, - "", - ""); - I_Method3(void, setAccel, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setAccel__float__float__float, - "", - ""); - I_Method3(void, setAngularAccel, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setAngularAccel__float__float__float, - "", - ""); - I_Method1(void, setAngularDamping, IN, float, d, - Properties::NON_VIRTUAL, - __void__setAngularDamping__float, - "", - ""); - I_Method1(void, setDamping, IN, float, d, - Properties::VIRTUAL, - __void__setDamping__float, - "", - "A Damping value (negative acceleration) that gets applied to velocity and spin over time. Units are in -m/sec2 or -deg/sec2, meaning that: zero damping will not change velocity/spin valuesany positive value will decrease the speeds "); - I_Method3(void, setOrbitCenter, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setOrbitCenter__float__float__float, - "", - ""); - I_Method1(void, setOrbitMagnitude, IN, float, mag, - Properties::NON_VIRTUAL, - __void__setOrbitMagnitude__float, - "", - ""); - I_Method1(void, setOrbitEpsilon, IN, float, eps, - Properties::NON_VIRTUAL, - __void__setOrbitEpsilon__float, - "", - ""); - I_Method1(void, setOrbitMaxRadius, IN, float, max, - Properties::NON_VIRTUAL, - __void__setOrbitMaxRadius__float, - "", - ""); - I_Method3(void, setAttractorCenter, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setAttractorCenter__float__float__float, - "", - ""); - I_Method1(void, setAttractorMagnitude, IN, float, mag, - Properties::NON_VIRTUAL, - __void__setAttractorMagnitude__float, - "", - ""); - I_Method1(void, setAttractorRatio, IN, float, ratio, - Properties::NON_VIRTUAL, - __void__setAttractorRatio__float, - "", - ""); - I_Method1(void, setAttractorKillSink, IN, int, kill, - Properties::NON_VIRTUAL, - __void__setAttractorKillSink__int, - "", - ""); - I_Method1(void, setOscillatorAmplitude, IN, float, amp, - Properties::NON_VIRTUAL, - __void__setOscillatorAmplitude__float, - "", - ""); - I_Method1(void, setOscillatorFrequency, IN, float, f, - Properties::NON_VIRTUAL, - __void__setOscillatorFrequency__float, - "", - ""); - I_Method1(void, setOscillatorLockAngle, IN, int, lock, - Properties::NON_VIRTUAL, - __void__setOscillatorLockAngle__int, - "", - ""); - I_Method1(void, setExplosionTarget, IN, const char *, targetID, - Properties::NON_VIRTUAL, - __void__setExplosionTarget__C5_char_P1, - "", - ""); - I_Method0(std::string, getExplosionTarget, - Properties::NON_VIRTUAL, - __std_string__getExplosionTarget, - "", - ""); - I_Method1(void, setExplosionDebugView, IN, int, b, - Properties::NON_VIRTUAL, - __void__setExplosionDebugView__int, - "", - ""); - I_Method0(int, getExplosionDebugView, - Properties::NON_VIRTUAL, - __int__getExplosionDebugView, - "", - ""); - I_Method3(void, setExplosionCenter, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setExplosionCenter__float__float__float, - "sets the center of the explosion (Note: an explosion target overrides this) ", - ""); - I_Method1(void, setExplosionRadius, IN, float, r, - Properties::NON_VIRTUAL, - __void__setExplosionRadius__float, - "radius defines how far away the shockwave peaks ", - ""); - I_Method1(void, setExplosionMagnitude, IN, float, mag, - Properties::NON_VIRTUAL, - __void__setExplosionMagnitude__float, - "magnitude defines the amount of force exerted on the particles. Try 100+ ", - ""); - I_Method1(void, setExplosionEpsilon, IN, float, eps, - Properties::NON_VIRTUAL, - __void__setExplosionEpsilon__float, - "epsilon sets the distance from the center ", - ""); - I_Method1(void, setExplosionSigma, IN, float, s, - Properties::NON_VIRTUAL, - __void__setExplosionSigma__float, - "sigma (in degrees) determines the broadness of the explosion shockwave ", - ""); - I_Method3(void, setForce, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setForce__float__float__float, - "", - ""); - I_Method1(void, setFluidDensity, IN, float, d, - Properties::NON_VIRTUAL, - __void__setFluidDensity__float, - "", - ""); - I_Method1(void, setFluidViscosity, IN, float, v, - Properties::NON_VIRTUAL, - __void__setFluidViscosity__float, - "", - ""); - I_Method3(void, setFluidDirection, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setFluidDirection__float__float__float, - "", - ""); - I_Method1(void, addBounceTarget, IN, const char *, nodeID, - Properties::NON_VIRTUAL, - __void__addBounceTarget__C5_char_P1, - "", - ""); - I_Method1(void, removeBounceTarget, IN, const char *, nodeID, - Properties::NON_VIRTUAL, - __void__removeBounceTarget__C5_char_P1, - "", - ""); - I_Method0(void, removeAllBounceTargets, - Properties::NON_VIRTUAL, - __void__removeAllBounceTargets, - "", - ""); - I_Method6(void, addBouncePlane, IN, float, normalX, IN, float, normalY, IN, float, normalZ, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__addBouncePlane__float__float__float__float__float__float, - "", - ""); - I_Method6(void, addBounceBox, IN, float, minX, IN, float, minY, IN, float, minZ, IN, float, maxX, IN, float, maxY, IN, float, maxZ, - Properties::NON_VIRTUAL, - __void__addBounceBox__float__float__float__float__float__float, - "", - ""); - I_Method4(void, addBounceSphere, IN, float, x, IN, float, y, IN, float, z, IN, float, radius, - Properties::NON_VIRTUAL, - __void__addBounceSphere__float__float__float__float, - "", - ""); - I_Method0(void, removeAllBouncers, - Properties::NON_VIRTUAL, - __void__removeAllBouncers, - "", - ""); - I_Method1(void, setBounceFriction, IN, float, f, - Properties::NON_VIRTUAL, - __void__setBounceFriction__float, - "", - ""); - I_Method1(void, setBounceResilience, IN, float, r, - Properties::NON_VIRTUAL, - __void__setBounceResilience__float, - "", - ""); - I_Method1(void, setBounceCutoff, IN, float, v, - Properties::NON_VIRTUAL, - __void__setBounceCutoff__float, - "", - ""); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "The local orientation offset for this node with respect to its parent "); - I_Method4(void, setOrientationQuat, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::VIRTUAL, - __void__setOrientationQuat__float__float__float__float, - "", - "Set the orientation offset as a quaternion "); - I_Method0(osg::Vec3, getTranslation, - Properties::VIRTUAL, - __osg_Vec3__getTranslation, - "", - "Returns the local translation offset with respect to the node's parent. "); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform_. "); - I_Method1(void, setParticleShape, IN, int, shp, - Properties::NON_VIRTUAL, - __void__setParticleShape__int, - "", - ""); - I_Method0(int, getParticleShape, - Properties::NON_VIRTUAL, - __int__getParticleShape, - "", - ""); - I_Method1(void, setLifeTime, IN, float, seconds, - Properties::NON_VIRTUAL, - __void__setLifeTime__float, - "", - ""); - I_Method0(float, getLifeTime, - Properties::NON_VIRTUAL, - __float__getLifeTime, - "", - ""); - I_Method1(void, setRadius, IN, float, radius, - Properties::NON_VIRTUAL, - __void__setRadius__float, - "", - ""); - I_Method0(float, getRadius, - Properties::NON_VIRTUAL, - __float__getRadius, - "", - ""); - I_Method1(void, setMass, IN, float, mass, - Properties::NON_VIRTUAL, - __void__setMass__float, - "", - ""); - I_Method0(float, getMass, - Properties::NON_VIRTUAL, - __float__getMass, - "", - ""); - I_Method2(void, setParticleSizeRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setParticleSizeRange__float__float, - "", - ""); - I_Method2(void, setParticleAlphaRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setParticleAlphaRange__float__float, - "", - ""); - I_Method6(void, setParticleColorRange, IN, float, minR, IN, float, minG, IN, float, minB, IN, float, maxR, IN, float, maxG, IN, float, maxB, - Properties::NON_VIRTUAL, - __void__setParticleColorRange__float__float__float__float__float__float, - "", - ""); - I_Method1(void, setEmissive, IN, int, emissiveFlag, - Properties::NON_VIRTUAL, - __void__setEmissive__int, - "", - ""); - I_Method0(int, getEmissive, - Properties::NON_VIRTUAL, - __int__getEmissive, - "", - ""); - I_Method1(void, setLighting, IN, int, lightingFlag, - Properties::NON_VIRTUAL, - __void__setLighting__int, - "", - ""); - I_Method0(int, getLighting, - Properties::NON_VIRTUAL, - __int__getLighting, - "", - ""); - I_Method1(void, setUseShaders, IN, int, shaderFlag, - Properties::NON_VIRTUAL, - __void__setUseShaders__int, - "", - ""); - I_Method0(int, getUseShaders, - Properties::NON_VIRTUAL, - __int__getUseShaders, - "", - ""); - I_Method1(void, setImagePath, IN, const char *, path, - Properties::NON_VIRTUAL, - __void__setImagePath__C5_char_P1, - "", - ""); - I_Method0(const char *, getImagePath, - Properties::NON_VIRTUAL, - __C5_char_P1__getImagePath, - "", - ""); - I_Method1(void, setImage, IN, const char *, path, - Properties::NON_VIRTUAL, - __void__setImage__C5_char_P1, - "", - ""); - I_Method2(void, setFrequencyRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setFrequencyRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getFrequencyRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getFrequencyRange, - "", - ""); - I_Method2(void, setShooterThetaRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setShooterThetaRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getShooterThetaRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getShooterThetaRange, - "", - ""); - I_Method2(void, setShooterPhiRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setShooterPhiRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getShooterPhiRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getShooterPhiRange, - "", - ""); - I_Method2(void, setShooterSpeedRange, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setShooterSpeedRange__float__float, - "", - ""); - I_Method0(osg::Vec2, getShooterSpeedRange, - Properties::NON_VIRTUAL, - __osg_Vec2__getShooterSpeedRange, - "", - ""); - I_Method6(void, setShooterRotationalSpeedRange, IN, float, minX, IN, float, minY, IN, float, minZ, IN, float, maxX, IN, float, maxY, IN, float, maxZ, - Properties::NON_VIRTUAL, - __void__setShooterRotationalSpeedRange__float__float__float__float__float__float, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(float, AngularDamping, - 0, - __void__setAngularDamping__float); - I_SimpleProperty(int, AttractorKillSink, - 0, - __void__setAttractorKillSink__int); - I_SimpleProperty(float, AttractorMagnitude, - 0, - __void__setAttractorMagnitude__float); - I_SimpleProperty(float, AttractorRatio, - 0, - __void__setAttractorRatio__float); - I_SimpleProperty(float, BounceCutoff, - 0, - __void__setBounceCutoff__float); - I_SimpleProperty(float, BounceFriction, - 0, - __void__setBounceFriction__float); - I_SimpleProperty(float, BounceResilience, - 0, - __void__setBounceResilience__float); - I_SimpleProperty(int, Connected, - 0, - __void__setConnected__int); - I_SimpleProperty(osg::Vec2, CubicXRange, - __osg_Vec2__getCubicXRange, - 0); - I_SimpleProperty(osg::Vec2, CubicYRange, - __osg_Vec2__getCubicYRange, - 0); - I_SimpleProperty(osg::Vec2, CubicZRange, - __osg_Vec2__getCubicZRange, - 0); - I_SimpleProperty(float, Damping, - 0, - __void__setDamping__float); - I_SimpleProperty(int, Emissive, - __int__getEmissive, - __void__setEmissive__int); - I_SimpleProperty(int, EnabledAccelerator, - __int__getEnabledAccelerator, - 0); - I_SimpleProperty(int, EnabledAngularAccelerator, - __int__getEnabledAngularAccelerator, - 0); - I_SimpleProperty(int, EnabledAngularDamping, - __int__getEnabledAngularDamping, - 0); - I_SimpleProperty(int, EnabledAttractor, - __int__getEnabledAttractor, - 0); - I_SimpleProperty(int, EnabledBouncer, - __int__getEnabledBouncer, - 0); - I_SimpleProperty(int, EnabledDamping, - __int__getEnabledDamping, - 0); - I_SimpleProperty(int, EnabledExplosion, - __int__getEnabledExplosion, - 0); - I_SimpleProperty(int, EnabledFluidFriction, - __int__getEnabledFluidFriction, - 0); - I_SimpleProperty(int, EnabledForce, - __int__getEnabledForce, - 0); - I_SimpleProperty(int, EnabledOrbiter, - __int__getEnabledOrbiter, - 0); - I_SimpleProperty(int, EnabledOscillator, - __int__getEnabledOscillator, - 0); - I_SimpleProperty(int, ExplosionDebugView, - __int__getExplosionDebugView, - __void__setExplosionDebugView__int); - I_SimpleProperty(float, ExplosionEpsilon, - 0, - __void__setExplosionEpsilon__float); - I_SimpleProperty(float, ExplosionMagnitude, - 0, - __void__setExplosionMagnitude__float); - I_SimpleProperty(float, ExplosionRadius, - 0, - __void__setExplosionRadius__float); - I_SimpleProperty(float, ExplosionSigma, - 0, - __void__setExplosionSigma__float); - I_SimpleProperty(std::string, ExplosionTarget, - __std_string__getExplosionTarget, - 0); - I_SimpleProperty(float, FluidDensity, - 0, - __void__setFluidDensity__float); - I_SimpleProperty(float, FluidViscosity, - 0, - __void__setFluidViscosity__float); - I_SimpleProperty(osg::Vec2, FrequencyRange, - __osg_Vec2__getFrequencyRange, - 0); - I_SimpleProperty(const char *, Image, - 0, - __void__setImage__C5_char_P1); - I_SimpleProperty(const char *, ImagePath, - __C5_char_P1__getImagePath, - __void__setImagePath__C5_char_P1); - I_SimpleProperty(float, LifeTime, - __float__getLifeTime, - __void__setLifeTime__float); - I_SimpleProperty(int, Lighting, - __int__getLighting, - __void__setLighting__int); - I_SimpleProperty(float, Mass, - __float__getMass, - __void__setMass__float); - I_SimpleProperty(float, OrbitEpsilon, - 0, - __void__setOrbitEpsilon__float); - I_SimpleProperty(float, OrbitMagnitude, - 0, - __void__setOrbitMagnitude__float); - I_SimpleProperty(float, OrbitMaxRadius, - 0, - __void__setOrbitMaxRadius__float); - I_SimpleProperty(float, OscillatorAmplitude, - 0, - __void__setOscillatorAmplitude__float); - I_SimpleProperty(float, OscillatorFrequency, - 0, - __void__setOscillatorFrequency__float); - I_SimpleProperty(int, OscillatorLockAngle, - 0, - __void__setOscillatorLockAngle__int); - I_SimpleProperty(int, ParticleShape, - __int__getParticleShape, - __void__setParticleShape__int); - I_SimpleProperty(int, PlacerType, - __int__getPlacerType, - __void__setPlacerType__int); - I_SimpleProperty(osg::Vec2, RadialPhiRange, - __osg_Vec2__getRadialPhiRange, - 0); - I_SimpleProperty(osg::Vec2, RadialRange, - __osg_Vec2__getRadialRange, - 0); - I_SimpleProperty(float, Radius, - __float__getRadius, - __void__setRadius__float); - I_SimpleProperty(osg::Vec2, ShooterPhiRange, - __osg_Vec2__getShooterPhiRange, - 0); - I_SimpleProperty(osg::Vec2, ShooterSpeedRange, - __osg_Vec2__getShooterSpeedRange, - 0); - I_SimpleProperty(osg::Vec2, ShooterThetaRange, - __osg_Vec2__getShooterThetaRange, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(osg::Vec3, Translation, - __osg_Vec3__getTranslation, - 0); - I_SimpleProperty(int, UseShaders, - __int__getUseShaders, - __void__setUseShaders__int); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/particlesystemutil.cpp b/src/osgWrappers/introspection/particlesystemutil.cpp deleted file mode 100644 index c4fd0cb..0000000 --- a/src/osgWrappers/introspection/particlesystemutil.cpp +++ /dev/null @@ -1,226 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::AttractOperator) - I_DeclaringFile("particlesystemutil.h"); - I_Constructor0(____AttractOperator, - "", - ""); - I_ConstructorWithDefaults2(IN, const spin::AttractOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____AttractOperator__C5_AttractOperator_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method2(, META_Object, IN, spin, x, IN, spin::AttractOperator, x, - Properties::NON_VIRTUAL, - ____META_Object__spin__AttractOperator, - "", - ""); - I_Method1(void, setCenter, IN, const osg::Vec3 &, c, - Properties::NON_VIRTUAL, - __void__setCenter__C5_osg_Vec3_R1, - "Set the center of the attractive force. ", - ""); - I_Method0(const osg::Vec3 &, getCenter, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getCenter, - "Get the center of the attractive force. ", - ""); - I_Method1(void, setMagnitude, IN, float, mag, - Properties::NON_VIRTUAL, - __void__setMagnitude__float, - "Set the acceleration scale. ", - ""); - I_Method0(float, getMagnitude, - Properties::NON_VIRTUAL, - __float__getMagnitude, - "Get the acceleration scale. ", - ""); - I_Method1(void, setRatio, IN, float, r, - Properties::NON_VIRTUAL, - __void__setRatio__float, - "Set the attraction ratio (CURRENTLY UNUSED) ", - ""); - I_Method0(float, getRatio, - Properties::NON_VIRTUAL, - __float__getRatio, - "Get the attraction ratio. ", - ""); - I_Method1(void, setKillSink, IN, bool, kill, - Properties::NON_VIRTUAL, - __void__setKillSink__bool, - "Set whether the attractor kills the particles once they arrive. ", - ""); - I_Method0(bool, getKillSink, - Properties::NON_VIRTUAL, - __bool__getKillSink, - "Get whether the attractor kills the particles once they arrive. ", - ""); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, - Properties::NON_VIRTUAL, - __void__operate__osgParticle_Particle_P1__double, - "Apply attraction to a particle. Do not call this method manually. ", - ""); - I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, - Properties::NON_VIRTUAL, - __void__beginOperate__osgParticle_Program_P1, - "Perform some initializations. Do not call this method manually. ", - ""); - I_SimpleProperty(const osg::Vec3 &, Center, - __C5_osg_Vec3_R1__getCenter, - __void__setCenter__C5_osg_Vec3_R1); - I_SimpleProperty(bool, KillSink, - __bool__getKillSink, - __void__setKillSink__bool); - I_SimpleProperty(float, Magnitude, - __float__getMagnitude, - __void__setMagnitude__float); - I_SimpleProperty(float, Ratio, - __float__getRatio, - __void__setRatio__float); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::BouncerOperator) - I_DeclaringFile("particlesystemutil.h"); - I_Constructor0(____BouncerOperator, - "", - ""); - I_Method1(osgParticle::DomainOperator::Domain *, getDomainPointer, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osgParticle_DomainOperator_Domain_P1__getDomainPointer__unsigned_int, - "", - ""); - I_Method1(void, updatePlane, IN, osgParticle::DomainOperator::Domain *, d, - Properties::NON_VIRTUAL, - __void__updatePlane__osgParticle_DomainOperator_Domain_P1, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::NullOperator) - I_DeclaringFile("particlesystemutil.h"); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::OscillatorOperator) - I_DeclaringFile("particlesystemutil.h"); - I_Constructor0(____OscillatorOperator, - "", - ""); - I_ConstructorWithDefaults2(IN, const spin::OscillatorOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____OscillatorOperator__C5_OscillatorOperator_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method2(, META_Object, IN, spin, x, IN, spin::OscillatorOperator, x, - Properties::NON_VIRTUAL, - ____META_Object__spin__OscillatorOperator, - "", - ""); - I_Method1(void, setAmplitude, IN, float, amp, - Properties::NON_VIRTUAL, - __void__setAmplitude__float, - "Set the amplitude scalar. ", - ""); - I_Method0(float, getAmplitude, - Properties::NON_VIRTUAL, - __float__getAmplitude, - "Get the amplitude. ", - ""); - I_Method1(void, setFrequency, IN, float, f, - Properties::NON_VIRTUAL, - __void__setFrequency__float, - "Set frequency. ", - ""); - I_Method0(float, getFrequency, - Properties::NON_VIRTUAL, - __float__getFrequency, - "Get the frequency. ", - ""); - I_Method1(void, setAngleLock, IN, bool, lock, - Properties::NON_VIRTUAL, - __void__setAngleLock__bool, - "Set whether the particle's angle is locked to the oscillation. ", - ""); - I_Method0(bool, getAngleLock, - Properties::NON_VIRTUAL, - __bool__getAngleLock, - "Get whether the particle's angle is locked to the oscillation. ", - ""); - I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, - Properties::NON_VIRTUAL, - __void__operate__osgParticle_Particle_P1__double, - "Apply attraction to a particle. Do not call this method manually. ", - ""); - I_SimpleProperty(float, Amplitude, - __float__getAmplitude, - __void__setAmplitude__float); - I_SimpleProperty(bool, AngleLock, - __bool__getAngleLock, - __void__setAngleLock__bool); - I_SimpleProperty(float, Frequency, - __float__getFrequency, - __void__setFrequency__float); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::SwitchableParticleSystem) - I_DeclaringFile("particlesystemutil.h"); - I_Constructor0(____SwitchableParticleSystem, - "", - ""); - I_ConstructorWithDefaults2(IN, const spin::SwitchableParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____SwitchableParticleSystem__C5_SwitchableParticleSystem_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method2(, META_Object, IN, spin, x, IN, spin::SwitchableParticleSystem, x, - Properties::NON_VIRTUAL, - ____META_Object__spin__SwitchableParticleSystem, - "", - ""); - I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, - Properties::VIRTUAL, - __osgParticle_Particle_P1__createParticle__C5_osgParticle_Particle_P1, - "", - ""); - I_Method1(void, reuseParticle, IN, int, i, - Properties::VIRTUAL, - __void__reuseParticle__int, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1, - "", - ""); - I_Method1(void, setConnected, IN, bool, b, - Properties::NON_VIRTUAL, - __void__setConnected__bool, - "", - ""); - I_Method0(bool, getConnected, - Properties::NON_VIRTUAL, - __bool__getConnected, - "", - ""); - I_SimpleProperty(bool, Connected, - __bool__getConnected, - __void__setConnected__bool); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/pocoutil.cpp b/src/osgWrappers/introspection/pocoutil.cpp deleted file mode 100644 index aed8532..0000000 --- a/src/osgWrappers/introspection/pocoutil.cpp +++ /dev/null @@ -1,78 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::FormRequestHandler) - I_DeclaringFile("pocoutil.h"); - I_Constructor0(____FormRequestHandler, - "", - ""); - I_Method2(void, handleRequest, IN, Poco::Net::HTTPServerRequest &, request, IN, Poco::Net::HTTPServerResponse &, response, - Properties::NON_VIRTUAL, - __void__handleRequest__Poco_Net_HTTPServerRequest_R1__Poco_Net_HTTPServerResponse_R1, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::FormRequestHandlerFactory) - I_DeclaringFile("pocoutil.h"); - I_Constructor0(____FormRequestHandlerFactory, - "", - ""); - I_Method1(Poco::Net::HTTPRequestHandler *, createRequestHandler, IN, const Poco::Net::HTTPServerRequest &, request, - Properties::NON_VIRTUAL, - __Poco_Net_HTTPRequestHandler_P1__createRequestHandler__C5_Poco_Net_HTTPServerRequest_R1, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::PartHandler) - I_DeclaringFile("pocoutil.h"); - I_Constructor0(____PartHandler, - "", - ""); - I_Method2(void, handlePart, IN, const Poco::Net::MessageHeader &, header, IN, std::istream &, stream, - Properties::NON_VIRTUAL, - __void__handlePart__C5_Poco_Net_MessageHeader_R1__std_istream_R1, - "", - ""); - I_Method0(int, length, - Properties::NON_VIRTUAL, - __int__length, - "", - ""); - I_Method0(const std::string &, name, - Properties::NON_VIRTUAL, - __C5_std_string_R1__name, - "", - ""); - I_Method0(const std::string &, fileName, - Properties::NON_VIRTUAL, - __C5_std_string_R1__fileName, - "", - ""); - I_Method0(const std::string &, contentType, - Properties::NON_VIRTUAL, - __C5_std_string_R1__contentType, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/pointcloud.cpp b/src/osgWrappers/introspection/pointcloud.cpp deleted file mode 100644 index 04322bd..0000000 --- a/src/osgWrappers/introspection/pointcloud.cpp +++ /dev/null @@ -1,260 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::PointCloud::DrawMode) - I_DeclaringFile("pointcloud.h"); - I_EnumLabel(spin::PointCloud::NONE); - I_EnumLabel(spin::PointCloud::POINTS); - I_EnumLabel(spin::PointCloud::LINES); - I_EnumLabel(spin::PointCloud::LINE_STRIP); - I_EnumLabel(spin::PointCloud::LINE_LOOP); - I_EnumLabel(spin::PointCloud::TRIANGLES); - I_EnumLabel(spin::PointCloud::TRIANGLE_STRIP); - I_EnumLabel(spin::PointCloud::TRIANGLE_FAN); - I_EnumLabel(spin::PointCloud::QUADS); - I_EnumLabel(spin::PointCloud::QUAD_STRIP); - I_EnumLabel(spin::PointCloud::POLYGON); - I_EnumLabel(spin::PointCloud::LIGHTPOINTS); - I_EnumLabel(spin::PointCloud::BOXES); - I_EnumLabel(spin::PointCloud::CUSTOM); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::PointCloud::ColorMode) - I_DeclaringFile("pointcloud.h"); - I_EnumLabel(spin::PointCloud::NORMAL); - I_EnumLabel(spin::PointCloud::OVERRIDE); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::PointCloud) - I_DeclaringFile("pointcloud.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____PointCloud__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(void, setURI, IN, const char *, filename, - Properties::NON_VIRTUAL, - __void__setURI__C5_char_P1, - "", - ""); - I_Method1(void, grabberCallback, IN, const pcl::PointCloud< pcl::PointXYZRGBA >::ConstPtr &, cloud, - Properties::NON_VIRTUAL, - __void__grabberCallback__C5_pcl_PointCloudT1_pcl_PointXYZRGBA__ConstPtr_R1, - "", - ""); - I_Method1(void, applyFilters, IN, const pcl::PointCloud< pcl::PointXYZRGBA >::ConstPtr &, rawCloud, - Properties::NON_VIRTUAL, - __void__applyFilters__C5_pcl_PointCloudT1_pcl_PointXYZRGBA__ConstPtr_R1, - "", - ""); - I_Method1(osg::Vec3, getPos, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osg_Vec3__getPos__unsigned_int, - "", - ""); - I_Method2(void, getPos, IN, unsigned int, i, IN, osg::Vec3 &, point, - Properties::NON_VIRTUAL, - __void__getPos__unsigned_int__osg_Vec3_R1, - "", - ""); - I_Method1(osg::Vec4f, getColor, IN, unsigned int, i, - Properties::NON_VIRTUAL, - __osg_Vec4f__getColor__unsigned_int, - "", - ""); - I_Method2(void, getColor, IN, unsigned int, i, IN, osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__getColor__unsigned_int__osg_Vec4_R1, - "", - ""); - I_Method0(float, computeDistanceFromCamera, - Properties::NON_VIRTUAL, - __float__computeDistanceFromCamera, - "", - ""); - I_Method0(void, updatePoints, - Properties::VIRTUAL, - __void__updatePoints, - "", - ""); - I_Method0(void, draw, - Properties::VIRTUAL, - __void__draw, - "", - ""); - I_Method1(void, setCustomNode, IN, const char *, nodeID, - Properties::NON_VIRTUAL, - __void__setCustomNode__C5_char_P1, - "", - ""); - I_Method1(void, setDrawMode, IN, spin::PointCloud::DrawMode, mode, - Properties::NON_VIRTUAL, - __void__setDrawMode__DrawMode, - "", - ""); - I_Method1(void, setSpacing, IN, float, spacing, - Properties::NON_VIRTUAL, - __void__setSpacing__float, - "", - ""); - I_Method1(void, setRandomCoeff, IN, float, randomCoeff, - Properties::NON_VIRTUAL, - __void__setRandomCoeff__float, - "", - ""); - I_Method1(void, setPointSize, IN, float, pointsize, - Properties::NON_VIRTUAL, - __void__setPointSize__float, - "", - ""); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - ""); - I_Method1(void, setColorMode, IN, spin::PointCloud::ColorMode, mode, - Properties::NON_VIRTUAL, - __void__setColorMode__ColorMode, - "", - ""); - I_Method1(void, setModulatePointSize, IN, int, a, - Properties::NON_VIRTUAL, - __void__setModulatePointSize__int, - "", - ""); - I_Method1(void, setVoxelSize, IN, float, voxelSize, - Properties::NON_VIRTUAL, - __void__setVoxelSize__float, - "", - "Set the voxelSize for the pcl::VoxelGrid filter, which downsamples points to the nearest voxel in a 3D voxel grid. Think about a voxel grid as a set of tiny 3D boxes in space. param voxelSize in metres (default is 0.01, ie, 1cm). A value of 0 will disable the VoxelGrid filter. "); - I_Method2(void, setDistCrop, IN, float, min, IN, float, max, - Properties::NON_VIRTUAL, - __void__setDistCrop__float__float, - "", - "Set the minimum and maximum distance of valid points (in metres) "); - I_Method0(const char *, getCustomNode, - Properties::NON_VIRTUAL, - __C5_char_P1__getCustomNode, - "", - ""); - I_Method0(int, getDrawMode, - Properties::NON_VIRTUAL, - __int__getDrawMode, - "", - ""); - I_Method0(float, getSpacing, - Properties::NON_VIRTUAL, - __float__getSpacing, - "", - ""); - I_Method0(float, getRandomCoeff, - Properties::NON_VIRTUAL, - __float__getRandomCoeff, - "", - ""); - I_Method0(float, getPointSize, - Properties::NON_VIRTUAL, - __float__getPointSize, - "", - ""); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - ""); - I_Method0(int, getColorMode, - Properties::NON_VIRTUAL, - __int__getColorMode, - "", - ""); - I_Method0(float, getFilterSize, - Properties::NON_VIRTUAL, - __float__getFilterSize, - "", - ""); - I_Method0(osg::Vec2, getDistCrop, - Properties::NON_VIRTUAL, - __osg_Vec2__getDistCrop, - "", - ""); - I_Method0(int, getModulatePointSize, - Properties::NON_VIRTUAL, - __int__getModulatePointSize, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(int, ColorMode, - __int__getColorMode, - 0); - I_SimpleProperty(const char *, CustomNode, - __C5_char_P1__getCustomNode, - __void__setCustomNode__C5_char_P1); - I_SimpleProperty(osg::Vec2, DistCrop, - __osg_Vec2__getDistCrop, - 0); - I_SimpleProperty(int, DrawMode, - __int__getDrawMode, - 0); - I_SimpleProperty(float, FilterSize, - __float__getFilterSize, - 0); - I_SimpleProperty(int, ModulatePointSize, - __int__getModulatePointSize, - __void__setModulatePointSize__int); - I_SimpleProperty(float, PointSize, - __float__getPointSize, - __void__setPointSize__float); - I_SimpleProperty(float, RandomCoeff, - __float__getRandomCoeff, - __void__setRandomCoeff__float); - I_SimpleProperty(float, Spacing, - __float__getSpacing, - __void__setSpacing__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, URI, - 0, - __void__setURI__C5_char_P1); - I_SimpleProperty(float, VoxelSize, - 0, - __void__setVoxelSize__float); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/pointernode.cpp b/src/osgWrappers/introspection/pointernode.cpp deleted file mode 100644 index 5f59c54..0000000 --- a/src/osgWrappers/introspection/pointernode.cpp +++ /dev/null @@ -1,152 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::PointerNode::GrabMode) - I_DeclaringFile("pointernode.h"); - I_EnumLabel(spin::PointerNode::ORIENTATION_LOCK); - I_EnumLabel(spin::PointerNode::RELATIVE); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::PointerNode) - I_DeclaringFile("pointernode.h"); - I_BaseType(spin::RayNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____PointerNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_Method1(spin::GroupNode *, getNodeFromIntersections, IN, int, index, - Properties::NON_VIRTUAL, - __GroupNode_P1__getNodeFromIntersections__int, - "", - "Get the first GroupNode encountered with interaction mode greater than passthru "); - I_Method0(osgManipulator::Dragger *, getDraggerFromIntersections, - Properties::NON_VIRTUAL, - __osgManipulator_Dragger_P1__getDraggerFromIntersections, - "", - "return the first dragger in the intersection list "); - I_Method1(void, manipulate, IN, int, b, - Properties::NON_VIRTUAL, - __void__manipulate__int, - "", - ""); - I_Method0(int, getManipulate, - Properties::NON_VIRTUAL, - __int__getManipulate, - "", - ""); - I_Method1(void, lockToTarget, IN, const char *, nodeToLock, - Properties::NON_VIRTUAL, - __void__lockToTarget__C5_char_P1, - "", - "This looks to see if there is a node being pointed at, and if so, it tells the nodeToLock to lock it's orientation to always point at that target. Useful for cameras. "); - I_Method1(void, setManipulator, IN, const char *, manipulatorType, - Properties::VIRTUAL, - __void__setManipulator__C5_char_P1, - "", - "We can call setManipulator and pass the name of a dragger, and the pointer will enable the dragger on the current GroupNode that it is currently pointing at. If the pointer is not intersecting with any node, this will set the dragger on the last manipulated node; this was found to be a desired behaviour instead of constantly ensuring an intersection whenever the user wanted to use a different manipulator. "); - I_Method1(void, setGrabMode, IN, spin::PointerNode::GrabMode, mode, - Properties::NON_VIRTUAL, - __void__setGrabMode__GrabMode, - "", - "Set the OrientationMode of the node, which will be applied after every transformation. "); - I_Method0(int, getGrabMode, - Properties::NON_VIRTUAL, - __int__getGrabMode, - "", - ""); - I_Method1(void, grab, IN, int, b, - Properties::NON_VIRTUAL, - __void__grab__int, - "", - "The grab method selects the closest intersected node and temporarily attaches it to the pointer, allowing it to inherit any translation or rotation offsets.Notes: Only nodes derived from GroupNode can be grabbed.If no node is intersected, the grab won't do anything.The node is re-attached to it's original parent when released, so don't delete the parent in the meantime param b A boolean grab indicator (1 to grab, 0 to release) "); - I_Method1(void, translateOnPointer, IN, float, f, - Properties::NON_VIRTUAL, - __void__translateOnPointer__float, - "", - "Slides the currently grabbed node (if there is one) along the pointer axis (ie, increasing or decreasing the distance). param f The amount by which to slide (positive values slide the attached node AWAY from the pointer "); - I_Method1(void, rotateOnPointer, IN, float, f, - Properties::NON_VIRTUAL, - __void__rotateOnPointer__float, - "", - "Rotates the currently grabbed node (if there is one) around the pointer axis. param f The amount by which to rotate around the pointer ray (in degrees) "); - I_Method0(int, getGrab, - Properties::NON_VIRTUAL, - __int__getGrab, - "", - "Whether there is a valid node that is currently 'grabbed' "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_ProtectedMethod3(void, applyManipulation, IN, osg::Matrix, mat, IN, osg::Vec3, start, IN, osg::Vec3, end, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__applyManipulation__osg_Matrix__osg_Vec3__osg_Vec3, - "", - "Checks intersections for draggers and if so, we apply the drag events "); - I_ProtectedMethod1(void, applyGrab, IN, osg::Matrix, mat, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__applyGrab__osg_Matrix, - "", - ""); - I_ProtectedMethod0(void, reportIntersections, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__reportIntersections, - "", - "Reports the list of intersected nodes (server-side only) "); - I_SimpleProperty(osgManipulator::Dragger *, DraggerFromIntersections, - __osgManipulator_Dragger_P1__getDraggerFromIntersections, - 0); - I_SimpleProperty(int, Grab, - __int__getGrab, - 0); - I_SimpleProperty(int, GrabMode, - __int__getGrabMode, - 0); - I_SimpleProperty(int, Manipulate, - __int__getManipulate, - 0); - I_SimpleProperty(const char *, Manipulator, - 0, - __void__setManipulator__C5_char_P1); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::PointerNodeActionAdapter) - I_DeclaringFile("pointernode.h"); - I_Constructor0(____PointerNodeActionAdapter, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/raynode.cpp b/src/osgWrappers/introspection/raynode.cpp deleted file mode 100644 index b2a2605..0000000 --- a/src/osgWrappers/introspection/raynode.cpp +++ /dev/null @@ -1,92 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::RayNode) - I_DeclaringFile("raynode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____RayNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, setVisible, IN, int, visibilityFlag, - Properties::NON_VIRTUAL, - __void__setVisible__int, - "", - "Set whether the ray is visible or not. "); - I_Method1(void, setLength, IN, float, length, - Properties::NON_VIRTUAL, - __void__setLength__float, - "", - "Sets the length of the ray from its origin. "); - I_Method1(void, setThickness, IN, float, thickness, - Properties::NON_VIRTUAL, - __void__setThickness__float, - "", - "Sets the thickness of the ray's line. "); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - "Sets the color of the ray's line. "); - I_Method0(int, getVisible, - Properties::NON_VIRTUAL, - __int__getVisible, - "", - "Returns whether the ray is currently set as visible or invisible. "); - I_Method0(float, getLength, - Properties::NON_VIRTUAL, - __float__getLength, - "", - "Returns the currently set length of the ray from its origin. "); - I_Method0(float, getThickness, - Properties::NON_VIRTUAL, - __float__getThickness, - "", - "Returns the currently set thickness of the ray's line. "); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - "Returns the currently set color of the ray in RGBA value. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(float, Length, - __float__getLength, - __void__setLength__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(float, Thickness, - __float__getThickness, - __void__setThickness__float); - I_SimpleProperty(int, Visible, - __int__getVisible, - __void__setVisible__int); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/referencednode.cpp b/src/osgWrappers/introspection/referencednode.cpp deleted file mode 100644 index 17bdcc8..0000000 --- a/src/osgWrappers/introspection/referencednode.cpp +++ /dev/null @@ -1,405 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::CronScript) - I_DeclaringFile("referencednode.h"); - I_Constructor0(____CronScript, - "", - ""); - I_PublicMemberProperty(boost::python::object, run); - I_PublicMemberProperty(double, freq); - I_PublicMemberProperty(double, lastRun); - I_PublicMemberProperty(bool, enabled); - I_PublicMemberProperty(bool, serverSide); - I_PublicMemberProperty(std::string, path); - I_PublicMemberProperty(std::string, params); - I_PublicMemberProperty(std::string, pyScript); - I_PublicMemberProperty(std::string, pyModule); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::EventScript) - I_DeclaringFile("referencednode.h"); - I_Constructor0(____EventScript, - "", - ""); - I_PublicMemberProperty(boost::python::object, run); - I_PublicMemberProperty(std::string, eventName); - I_PublicMemberProperty(bool, enabled); - I_PublicMemberProperty(bool, serverSide); - I_PublicMemberProperty(std::string, path); - I_PublicMemberProperty(std::string, params); - I_PublicMemberProperty(std::string, pyScript); - I_PublicMemberProperty(std::string, pyModule); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::ReferencedNode) - I_DeclaringFile("referencednode.h"); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ReferencedNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, registerNode, IN, spin::SceneManager *, s, - Properties::VIRTUAL, - __void__registerNode__SceneManager_P1, - "", - ""); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_MethodWithDefaults1(void, updateNodePath, IN, bool, updateChildren, true, - Properties::VIRTUAL, - __void__updateNodePath__bool, - "", - "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_. "); - I_Method1(int, setAttachmentNode, IN, osg::Group *, n, - Properties::NON_VIRTUAL, - __int__setAttachmentNode__osg_Group_P1, - "", - ""); - I_Method0(void, updateChildNodePaths, - Properties::NON_VIRTUAL, - __void__updateChildNodePaths, - "", - "An internal method that keeps track of the nodepath (for efficient computation of global position, etc. "); - I_Method1(void, setParent, IN, const char *, newvalue, - Properties::NON_VIRTUAL, - __void__setParent__C5_char_P1, - "", - "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. "); - I_Method1(void, attachTo, IN, const char *, parentID, - Properties::NON_VIRTUAL, - __void__attachTo__C5_char_P1, - "", - "Attach this node to the node with parentID (if found). "); - I_Method1(void, detachFrom, IN, const char *, parentID, - Properties::NON_VIRTUAL, - __void__detachFrom__C5_char_P1, - "", - "Detaches the node from the parentID (if found). Note: you can pass \"*\" for the parentID and the node will be detached from ALL parents. "); - I_Method0(bool, inGraph, - Properties::NON_VIRTUAL, - __bool__inGraph, - "", - "The inGraph method checks if the node is actually attached to the scene graph. There are cases (eg, SwitchNode or using detachFrom) that may cause a node to be orphaned (not attached anywhere). In these cases, reporters and pointers and anything that maintains a list of targets must check if the node is inGraph(). "); - I_Method0(unsigned int, getNumParents, - Properties::NON_VIRTUAL, - __unsigned_int__getNumParents, - "", - ""); - I_Method1(std::string, getParentID, IN, int, i, - Properties::NON_VIRTUAL, - __std_string__getParentID__int, - "", - "Returns the parent id (string) "); - I_Method1(spin::ReferencedNode *, getParentNode, IN, int, i, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__getParentNode__int, - "", - "Returns the current parent as an osg::Group "); - I_Method0(std::vector< spin::ReferencedNode * >, getChildren, - Properties::NON_VIRTUAL, - __std_vectorT1_ReferencedNode_P1___getChildren, - "", - ""); - I_Method1(void, setContext, IN, const char *, newvalue, - Properties::VIRTUAL, - __void__setContext__C5_char_P1, - "", - "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. "); - I_Method1(void, setAlpha, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setAlpha__float, - "", - ""); - I_Method0(float, getAlpha, - Properties::NON_VIRTUAL, - __float__getAlpha, - "", - ""); - I_Method1(void, setCastShadows, IN, int, b, - Properties::NON_VIRTUAL, - __void__setCastShadows__int, - "", - "Flag to determine whether this node casts shadows or not. "); - I_Method0(int, getCastShadows, - Properties::NON_VIRTUAL, - __int__getCastShadows, - "", - ""); - I_Method0(const char *, getContext, - Properties::NON_VIRTUAL, - __C5_char_P1__getContext, - "", - "Returns the current host "); - I_Method0(std::string, getContextString, - Properties::NON_VIRTUAL, - __std_string__getContextString, - "", - ""); - I_Method2(void, setParam, IN, const char *, paramName, IN, const char *, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__C5_char_P1, - "", - ""); - I_Method2(void, setParam, IN, const char *, paramName, IN, float, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__float, - "", - ""); - I_Method1(void, setStateSetFromFile, IN, const char *, filename, - Properties::NON_VIRTUAL, - __void__setStateSetFromFile__C5_char_P1, - "", - ""); - I_Method1(void, setStateSet, IN, const char *, s, - Properties::NON_VIRTUAL, - __void__setStateSet__C5_char_P1, - "", - ""); - I_Method0(const char *, getStateSet, - Properties::NON_VIRTUAL, - __C5_char_P1__getStateSet, - "", - ""); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "In derived classes, you can handle how a stateset gets applied to a node (eg, which part of the subgraph it is attached by overriding the updateStateSet method. "); - I_Method0(osg::Group *, getAttachmentNode, - Properties::NON_VIRTUAL, - __osg_Group_P1__getAttachmentNode, - "", - "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. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Debug print (to log/console) "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node. "); - I_Method0(void, stateDump, - Properties::VIRTUAL, - __void__stateDump, - "", - "Request to broadcast the node state via SceneManager. "); - I_Method1(void, stateDump, IN, lo_address, addr, - Properties::VIRTUAL, - __void__stateDump__lo_address, - "", - "Request to send the node state to one address "); - I_Method0(std::string, getID, - Properties::NON_VIRTUAL, - __std_string__getID, - "", - "Return the string id for this node "); - I_Method0(std::string, getNodeType, - Properties::NON_VIRTUAL, - __std_string__getNodeType, - "", - ""); - I_Method0(spin::t_symbol *, getNodeSymbol, - Properties::NON_VIRTUAL, - __t_symbol_P1__getNodeSymbol, - "", - ""); - I_Method0(std::string, getOSCPath, - Properties::NON_VIRTUAL, - __std_string__getOSCPath, - "", - ""); - 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, - Properties::NON_VIRTUAL, - __bool__addCronScript__bool__C5_std_string_R1__C5_std_string_R1__double__C5_std_string_R1, - "", - ""); - I_Method0(bool, callCronScripts, - Properties::NON_VIRTUAL, - __bool__callCronScripts, - "", - ""); - I_Method2(bool, enableCronScript, IN, const char *, label, IN, int, enable, - Properties::NON_VIRTUAL, - __bool__enableCronScript__C5_char_P1__int, - "", - ""); - I_Method1(bool, removeCronScript, IN, const char *, label, - Properties::NON_VIRTUAL, - __bool__removeCronScript__C5_char_P1, - "", - ""); - 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, - Properties::NON_VIRTUAL, - __bool__addEventScript__bool__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, - "", - ""); - I_Method2(bool, callEventScript, IN, const std::string &, eventName, IN, cppintrospection::ValueList &, args, - Properties::NON_VIRTUAL, - __bool__callEventScript__C5_std_string_R1__cppintrospection_ValueList_R1, - "", - ""); - I_Method2(bool, enableEventScript, IN, const char *, label, IN, int, enable, - Properties::NON_VIRTUAL, - __bool__enableEventScript__C5_char_P1__int, - "", - ""); - I_Method1(bool, removeEventScript, IN, const char *, label, - Properties::NON_VIRTUAL, - __bool__removeEventScript__C5_char_P1, - "", - ""); - I_Method1(void, setNodeMask, IN, osg::Node::NodeMask, nm, - Properties::NON_VIRTUAL, - __void__setNodeMask__osg_Node_NodeMask, - "", - ""); - I_ProtectedMethod1(bool, legalParent, IN, spin::t_symbol *, newParent, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __bool__legalParent__t_symbol_P1, - "", - "TO BE DEPRECATED? The idea is that one type of node can only be attached to certain types of other nodes, but that has not been implemented. Currently, the only illegal parents include the node itself, or any children. "); - I_ProtectedMethod1(void, setNodeType, IN, std::string, t, - Properties::NON_VIRTUAL, - Properties::NON_CONST, - __void__setNodeType__std_string, - "", - ""); - I_SimpleProperty(float, Alpha, - __float__getAlpha, - __void__setAlpha__float); - I_SimpleProperty(osg::Group *, AttachmentNode, - __osg_Group_P1__getAttachmentNode, - __int__setAttachmentNode__osg_Group_P1); - I_SimpleProperty(int, CastShadows, - __int__getCastShadows, - __void__setCastShadows__int); - I_SimpleProperty(std::vector< spin::ReferencedNode * >, Children, - __std_vectorT1_ReferencedNode_P1___getChildren, - 0); - I_SimpleProperty(const char *, Context, - __C5_char_P1__getContext, - __void__setContext__C5_char_P1); - I_SimpleProperty(std::string, ContextString, - __std_string__getContextString, - 0); - I_SimpleProperty(std::string, ID, - __std_string__getID, - 0); - I_SimpleProperty(osg::Node::NodeMask, NodeMask, - 0, - __void__setNodeMask__osg_Node_NodeMask); - I_SimpleProperty(spin::t_symbol *, NodeSymbol, - __t_symbol_P1__getNodeSymbol, - 0); - I_SimpleProperty(std::string, NodeType, - __std_string__getNodeType, - 0); - I_SimpleProperty(std::string, OSCPath, - __std_string__getOSCPath, - 0); - I_SimpleProperty(const char *, Parent, - 0, - __void__setParent__C5_char_P1); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, StateSet, - __C5_char_P1__getStateSet, - __void__setStateSet__C5_char_P1); - I_SimpleProperty(const char *, StateSetFromFile, - 0, - __void__setStateSetFromFile__C5_char_P1); - I_PublicMemberProperty(osg::NodePath, currentNodePath_); - I_PublicMemberProperty(bool, scheduleForDeletion_); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::ReferencedNode_callback) - I_DeclaringFile("referencednode.h"); - I_Constructor0(____ReferencedNode_callback, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::ReferencedNode_data) - I_DeclaringFile("referencednode.h"); - I_Constructor1(IN, spin::ReferencedNode *, n, - Properties::NON_EXPLICIT, - ____ReferencedNode_data__ReferencedNode_P1, - "", - ""); - I_Method1(void, update, IN, osg::NodeVisitor *, nv, - Properties::NON_VIRTUAL, - __void__update__osg_NodeVisitor_P1, - "", - ""); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< spin::ReferencedNode > >, spin::nodeListType) - -TYPE_NAME_ALIAS(std::map< std::string COMMA spin::nodeListType >, spin::nodeMapType) - -TYPE_NAME_ALIAS(std::pair< std::string COMMA spin::nodeListType >, spin::nodeMapPair) - -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< spin::ReferencedStateSet > >, spin::ReferencedStateSetList) - -TYPE_NAME_ALIAS(std::map< std::string COMMA spin::ReferencedStateSetList >, spin::ReferencedStateSetMap) - -TYPE_NAME_ALIAS(std::pair< std::string COMMA spin::ReferencedStateSetList >, spin::ReferencedStateSetPair) - -TYPE_NAME_ALIAS(std::map< const std::string COMMA spin::CronScript * >, spin::CronScriptList) - -TYPE_NAME_ALIAS(std::map< const std::string COMMA spin::EventScript * >, spin::EventScriptList) - -TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, spin::stringParamType) - -TYPE_NAME_ALIAS(std::map< std::string COMMA float >, spin::floatParamType) - -STD_MAP_REFLECTOR(std::map< const std::string COMMA spin::CronScript * >) - -STD_MAP_REFLECTOR(std::map< const std::string COMMA spin::EventScript * >) - -STD_MAP_REFLECTOR(std::map< std::string COMMA float >) - -STD_MAP_REFLECTOR(std::map< std::string COMMA spin::ReferencedStateSetList >) - -STD_MAP_REFLECTOR(std::map< std::string COMMA spin::nodeListType >) - -STD_MAP_REFLECTOR(std::map< std::string COMMA std::string >) - -STD_PAIR_REFLECTOR(std::pair< std::string COMMA spin::ReferencedStateSetList >) - -STD_PAIR_REFLECTOR(std::pair< std::string COMMA spin::nodeListType >) - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< spin::ReferencedNode > >) - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< spin::ReferencedStateSet > >) - -STD_VECTOR_REFLECTOR(std::vector< spin::ReferencedNode * >) - diff --git a/src/osgWrappers/introspection/referencedstateset.cpp b/src/osgWrappers/introspection/referencedstateset.cpp deleted file mode 100644 index e0d3c8c..0000000 --- a/src/osgWrappers/introspection/referencedstateset.cpp +++ /dev/null @@ -1,160 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::ReferencedStateSet) - I_DeclaringFile("referencedstateset.h"); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ReferencedStateSet__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateCallback, - Properties::VIRTUAL, - __void__updateCallback, - "", - "This callback occurs every frame to update the state with any parameter changes. "); - I_Method0(std::string, getID, - Properties::NON_VIRTUAL, - __std_string__getID, - "", - "Return the string id for this stateset "); - I_Method0(spin::t_symbol *, getIDSymbol, - Properties::NON_VIRTUAL, - __t_symbol_P1__getIDSymbol, - "", - ""); - I_Method0(std::string, getClassType, - Properties::NON_VIRTUAL, - __std_string__getClassType, - "", - ""); - I_Method0(void, removeFromScene, - Properties::NON_VIRTUAL, - __void__removeFromScene, - "", - "Abstract method getPath needs to be implemented Remove this stateset from all parents... essentially destroying the state, since no reference to it will exist anymore, and OSG will kill it. "); - I_Method1(void, replace, IN, osg::StateSet *, ss, - Properties::NON_VIRTUAL, - __void__replace__osg_StateSet_P1, - "", - "Replaces a StateSet in the scene graph with this one. ie, goes through all parents of the provided stateset and replaces the object's state with this. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information to console. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "Just like a ReferencedNode, each subclass of ReferencedStateSet must override the getState() method to pass it's current state. "); - I_Method0(void, stateDump, - Properties::VIRTUAL, - __void__stateDump, - "", - "StateDump() is a request to broadcast the node state via SceneManager. "); - I_Method1(void, stateDump, IN, lo_address, txAddr, - Properties::VIRTUAL, - __void__stateDump__lo_address, - "", - "StateDump() is a request to broadcast the node state via SceneMangager. "); - I_Method1(void, setTextureBlend, IN, int, mode, - Properties::VIRTUAL, - __void__setTextureBlend__int, - "", - "Set the blend mode for the texture (with material color). 0=GL_MODULATE, 1=GL_DECAL, 2=GL_BLEND, 3=GL_REPLACE. Default is 0 (GL_MODULATE) "); - I_Method0(int, getTextureBlend, - Properties::NON_VIRTUAL, - __int__getTextureBlend, - "", - ""); - I_Method2(void, setTextureRepeat, IN, int, s, IN, int, t, - Properties::VIRTUAL, - __void__setTextureRepeat__int__int, - "", - "Set whether the texture repeats after wrapping or not (in both the x and Y directions "); - I_Method1(void, setLighting, IN, int, i, - Properties::VIRTUAL, - __void__setLighting__int, - "", - "Set whether the texture is influenced by lighting "); - I_Method0(int, getLighting, - Properties::VIRTUAL, - __int__getLighting, - "", - "Returns a boolean indicating whether lighting affects the texture. "); - I_Method1(void, setTransparent, IN, int, i, - Properties::VIRTUAL, - __void__setTransparent__int, - "", - "Set whether the stateset is rendered in the transparent bin or not (ie, this is a different rendering pass with different optimizations) "); - I_Method0(int, getTransparent, - Properties::VIRTUAL, - __int__getTransparent, - "", - "Returns a boolean indicating whether stateset is rendered in transparent bin "); - I_Method1(void, setRenderBin, IN, int, i, - Properties::VIRTUAL, - __void__setRenderBin__int, - "", - "Set the render bin for this texture. The higher the number, the later it gets processed (ie, it appears on top). Default renderBin = 11 "); - I_Method0(int, getRenderBin, - Properties::VIRTUAL, - __int__getRenderBin, - "", - "Returns an integer indicating the render bin for this texture. Higher numbers get processed later (i.e. it appears on top). Default = 11 "); - I_SimpleProperty(std::string, ClassType, - __std_string__getClassType, - 0); - I_SimpleProperty(std::string, ID, - __std_string__getID, - 0); - I_SimpleProperty(spin::t_symbol *, IDSymbol, - __t_symbol_P1__getIDSymbol, - 0); - I_SimpleProperty(int, Lighting, - __int__getLighting, - __void__setLighting__int); - I_SimpleProperty(int, RenderBin, - __int__getRenderBin, - __void__setRenderBin__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(int, TextureBlend, - __int__getTextureBlend, - __void__setTextureBlend__int); - I_SimpleProperty(int, Transparent, - __int__getTransparent, - __void__setTransparent__int); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(spin::ReferencedStateSet_callback) - I_DeclaringFile("referencedstateset.h"); - I_Constructor0(____ReferencedStateSet_callback, - "", - ""); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< spin::ReferencedStateSet > >, spin::stateListType) - diff --git a/src/osgWrappers/introspection/reporternode.cpp b/src/osgWrappers/introspection/reporternode.cpp deleted file mode 100644 index a3d091f..0000000 --- a/src/osgWrappers/introspection/reporternode.cpp +++ /dev/null @@ -1,107 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::_reporterTarget) - I_DeclaringFile("reporternode.h"); - I_Constructor0(_____reporterTarget, - "", - ""); - I_PublicMemberProperty(osg::observer_ptr< spin::ReferencedNode >, node); - I_PublicMemberProperty(osg::Matrix, matrix); - I_PublicMemberProperty(bool, contained); - I_PublicMemberProperty(bool, needReport); - I_PublicMemberProperty(bool, inGraph); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ReporterNode) - I_DeclaringFile("reporternode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ReporterNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "The update callback for ReporterNode checks to see if a target or the the ReporterNode's global matrix has changed (ie, whether it has been moved or not). If so, it updates the internal matrices, and calls sendReports() "); - I_Method0(void, forceAllReports, - Properties::NON_VIRTUAL, - __void__forceAllReports, - "", - "Sometimes something happens in the scene that might not change the matrices of the reporter or the target (eg, a SwitchNode changes the visibility of the node). This method allows us to force a recomputation of all reports in such a case. "); - I_Method1(void, sendReports, IN, spin::reporterTarget *, target, - Properties::NON_VIRTUAL, - __void__sendReports__reporterTarget_P1, - "", - "sendReports checks which reportTypes are enabled, and actually performs computation for necessary reports, which are then sent out on the network "); - I_Method1(void, addTarget, IN, const char *, targetID, - Properties::NON_VIRTUAL, - __void__addTarget__C5_char_P1, - "", - "Add a target node to the report list "); - I_Method1(void, removeTarget, IN, const char *, targetID, - Properties::NON_VIRTUAL, - __void__removeTarget__C5_char_P1, - "", - "Remove a target from the report list "); - I_Method2(void, setReporting, IN, const char *, type, IN, bool, enabled, - Properties::NON_VIRTUAL, - __void__setReporting__C5_char_P1__bool, - "", - "This enables or disables a particular reporting type "); - I_Method1(int, getReporting, IN, const char *, type, - Properties::NON_VIRTUAL, - __int__getReporting__C5_char_P1, - "", - "This returns the reporting type that is currently set. "); - I_Method1(void, setMaxRate, IN, float, hz, - Properties::NON_VIRTUAL, - __void__setMaxRate__float, - "", - "Set the maximum reporting rate (hz). Note: updates are only sent when necessary, so there is no constant reporting mode. "); - I_Method0(float, getMaxRate, - Properties::NON_VIRTUAL, - __float__getMaxRate, - "", - "This returns the current set reporting rate in Hz. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(float, MaxRate, - __float__getMaxRate, - __void__setMaxRate__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - -TYPE_NAME_ALIAS(struct spin::_reporterTarget, spin::reporterTarget) - diff --git a/src/osgWrappers/introspection/scenemanager.cpp b/src/osgWrappers/introspection/scenemanager.cpp deleted file mode 100644 index a57afab..0000000 --- a/src/osgWrappers/introspection/scenemanager.cpp +++ /dev/null @@ -1,386 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_VALUE_REFLECTOR(spin::SceneManager) - I_DeclaringFile("scenemanager.h"); - I_Constructor1(IN, std::string, id, - Properties::NON_EXPLICIT, - ____SceneManager__std_string, - "", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "", - ""); - I_Method0(void, debugContext, - Properties::NON_VIRTUAL, - __void__debugContext, - "", - ""); - I_Method0(void, debugNodes, - Properties::NON_VIRTUAL, - __void__debugNodes, - "", - ""); - I_Method0(void, debugStateSets, - Properties::NON_VIRTUAL, - __void__debugStateSets, - "", - ""); - I_Method0(void, debugSceneGraph, - Properties::NON_VIRTUAL, - __void__debugSceneGraph, - "", - ""); - I_Method0(void, debug, - Properties::NON_VIRTUAL, - __void__debug, - "", - ""); - I_Method1(void, setGraphical, IN, bool, b, - Properties::NON_VIRTUAL, - __void__setGraphical__bool, - "", - ""); - I_Method0(bool, isGraphical, - Properties::NON_VIRTUAL, - __bool__isGraphical, - "", - ""); - I_Method1(void, setLog, IN, spin::spinLog &, log, - Properties::NON_VIRTUAL, - __void__setLog__spinLog_R1, - "", - ""); - I_Method1(void, registerStateSet, IN, spin::ReferencedStateSet *, s, - Properties::NON_VIRTUAL, - __void__registerStateSet__ReferencedStateSet_P1, - "", - ""); - I_Method1(void, unregisterStateSet, IN, spin::ReferencedStateSet *, s, - Properties::NON_VIRTUAL, - __void__unregisterStateSet__ReferencedStateSet_P1, - "", - ""); - I_MethodWithDefaults1(void, sendNodeTypes, IN, lo_address, txAddr, 0, - Properties::NON_VIRTUAL, - __void__sendNodeTypes__lo_address, - "", - ""); - I_MethodWithDefaults1(void, sendStateTypes, IN, lo_address, txAddr, 0, - Properties::NON_VIRTUAL, - __void__sendStateTypes__lo_address, - "", - ""); - I_MethodWithDefaults2(void, sendNodeList, IN, std::string, type, , IN, lo_address, txAddr, 0, - Properties::NON_VIRTUAL, - __void__sendNodeList__std_string__lo_address, - "", - ""); - I_MethodWithDefaults1(void, sendConnectionList, IN, lo_address, txAddr, 0, - Properties::NON_VIRTUAL, - __void__sendConnectionList__lo_address, - "", - ""); - I_Method0(std::vector< std::string >, getAllNodeTypes, - Properties::NON_VIRTUAL, - __std_vectorT1_std_string___getAllNodeTypes, - "", - ""); - I_Method2(spin::ReferencedNode *, createNode, IN, std::string, id, IN, std::string, type, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__createNode__std_string__std_string, - "", - ""); - I_Method2(spin::ReferencedNode *, createNode, IN, const char *, id, IN, const char *, type, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__createNode__C5_char_P1__C5_char_P1, - "", - ""); - I_Method1(spin::ReferencedNode *, getNode, IN, std::string, id, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__getNode__std_string, - "", - ""); - I_Method1(spin::ReferencedNode *, getNode, IN, const char *, id, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__getNode__C5_char_P1, - "", - ""); - I_Method2(spin::ReferencedNode *, getNode, IN, const char *, id, IN, const char *, type, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__getNode__C5_char_P1__C5_char_P1, - "", - ""); - I_Method2(spin::ReferencedNode *, getOrCreateNode, IN, const char *, id, IN, const char *, type, - Properties::NON_VIRTUAL, - __ReferencedNode_P1__getOrCreateNode__C5_char_P1__C5_char_P1, - "", - ""); - I_Method1(spin::ReferencedStateSet *, getStateSet, IN, const char *, id, - Properties::NON_VIRTUAL, - __ReferencedStateSet_P1__getStateSet__C5_char_P1, - "", - ""); - I_Method2(spin::ReferencedStateSet *, createStateSet, IN, const char *, id, IN, const char *, type, - Properties::NON_VIRTUAL, - __ReferencedStateSet_P1__createStateSet__C5_char_P1__C5_char_P1, - "", - ""); - I_Method1(spin::ReferencedStateSet *, createStateSet, IN, const char *, fname, - Properties::NON_VIRTUAL, - __ReferencedStateSet_P1__createStateSet__C5_char_P1, - "", - ""); - I_Method1(void, setWorldStateSet, IN, const char *, s, - Properties::NON_VIRTUAL, - __void__setWorldStateSet__C5_char_P1, - "", - ""); - I_Method1(std::vector< spin::ReferencedNode * >, findNodes, IN, const char *, pattern, - Properties::NON_VIRTUAL, - __std_vectorT1_ReferencedNode_P1___findNodes__C5_char_P1, - "", - ""); - I_Method1(std::vector< spin::ReferencedStateSet * >, findStateSets, IN, const char *, pattern, - Properties::NON_VIRTUAL, - __std_vectorT1_ReferencedStateSet_P1___findStateSets__C5_char_P1, - "", - ""); - I_Method1(void, deleteNode, IN, const char *, id, - Properties::NON_VIRTUAL, - __void__deleteNode__C5_char_P1, - "", - "This method removes a node from the scene, however the actual work is done by the doDelete() method.NOTE: All children of the node will remain, but will be re-attached to the 'world' node instead. If you want to destroy all children as well, then use deleteGraph(). "); - I_Method1(void, deleteGraph, IN, const char *, id, - Properties::NON_VIRTUAL, - __void__deleteGraph__C5_char_P1, - "", - "deleteGraph() operates similarly to deleteNode(), except that all children are also deleted. "); - I_Method1(void, doDelete, IN, spin::ReferencedNode *, n, - Properties::NON_VIRTUAL, - __void__doDelete__ReferencedNode_P1, - "", - "The doDelete method performs all of the necessary steps to remove a node from the scene: The node's detach() method is called, which will actually remove it from the scene graph, and eliminate the OSC callback. The callbackUpdate() function is unregistered. And finally, a message is broadcasted to all clients. "); - I_Method1(void, doDelete, IN, spin::ReferencedStateSet *, n, - Properties::NON_VIRTUAL, - __void__doDelete__ReferencedStateSet_P1, - "", - "The doDelete method performs all of the necessary steps to delete a stateset. It is similar to the doDelete method for a note: it calls the node's removeFromScene() method, releases resources (eg, videos), removes it from the stateMap list, etc. "); - I_Method0(void, clear, - Properties::NON_VIRTUAL, - __void__clear, - "", - "Clears scene elements that are not part of any user's subgraphs "); - I_Method0(void, clearUsers, - Properties::NON_VIRTUAL, - __void__clearUsers, - "", - "Clears only the users from the scene (and any attached nodes in their subgraphs "); - I_Method0(void, clearStates, - Properties::NON_VIRTUAL, - __void__clearStates, - "", - "Forces a removal of all states from the scene graph. This should only be used to clean up upon exit. "); - I_Method0(void, update, - Properties::NON_VIRTUAL, - __void__update, - "", - "The update method is where any thread-safe changes to the scene graph should go. The method is guaranteed to be called only when there are no traversals being performed. "); - I_Method1(osg::Matrix, getWorldCoords, IN, spin::t_symbol *, id, - Properties::NON_VIRTUAL, - __osg_Matrix__getWorldCoords__t_symbol_P1, - "", - ""); - I_Method2(void, exportScene, IN, const char *, nodeID, IN, const char *, filename, - Properties::NON_VIRTUAL, - __void__exportScene__C5_char_P1__C5_char_P1, - "", - ""); - I_Method1(std::string, getStateAsXML, IN, std::vector< lo_message >, nodeState, - Properties::NON_VIRTUAL, - __std_string__getStateAsXML__std_vectorT1_lo_message_, - "", - ""); - I_Method3(std::string, getNodeAsXML, IN, spin::ReferencedNode *, n, IN, bool, withUsers, IN, bool, withChildren, - Properties::NON_VIRTUAL, - __std_string__getNodeAsXML__ReferencedNode_P1__bool__bool, - "", - ""); - I_Method0(std::string, getConnectionsAsXML, - Properties::NON_VIRTUAL, - __std_string__getConnectionsAsXML, - "", - ""); - I_Method2(std::vector< spin::t_symbol * >, getSavableStateSets, IN, spin::ReferencedNode *, n, IN, bool, withUsers, - Properties::NON_VIRTUAL, - __std_vectorT1_t_symbol_P1___getSavableStateSets__ReferencedNode_P1__bool, - "", - ""); - I_MethodWithDefaults2(bool, saveXML, IN, const char *, filename, , IN, bool, withUsers, false, - Properties::NON_VIRTUAL, - __bool__saveXML__C5_char_P1__bool, - "", - "Write the entire scene to an XML file. If no absolute path is specified, the file will be written to the ~/.spinframework folder. "); - I_Method2(bool, saveNode, IN, const char *, nodeID, IN, const char *, filename, - Properties::NON_VIRTUAL, - __bool__saveNode__C5_char_P1__C5_char_P1, - "", - "Write exactly one node to an XML file, without it's subgraph (ie, children nodes) or statesets. "); - I_Method1(bool, saveUsers, IN, const char *, filename, - Properties::NON_VIRTUAL, - __bool__saveUsers__C5_char_P1, - "", - "Save all the UserNodes in a scene to an XML file. "); - I_Method2(bool, createNodeFromXML, IN, TiXmlElement *, XMLnode, IN, const char *, parentNode, - Properties::NON_VIRTUAL, - __bool__createNodeFromXML__TiXmlElement_P1__C5_char_P1, - "", - "Loads any nodes or statesets from a file, and sets the parent node "); - I_Method1(bool, createStateSetFromXML, IN, TiXmlElement *, XMLnode, - Properties::NON_VIRTUAL, - __bool__createStateSetFromXML__TiXmlElement_P1, - "", - ""); - I_Method1(bool, createConnectionsFromXML, IN, TiXmlElement *, XMLnode, - Properties::NON_VIRTUAL, - __bool__createConnectionsFromXML__TiXmlElement_P1, - "", - ""); - I_Method1(bool, loadXML, IN, const char *, filename, - Properties::NON_VIRTUAL, - __bool__loadXML__C5_char_P1, - "", - ""); - I_Method0(void, refreshAll, - Properties::NON_VIRTUAL, - __void__refreshAll, - "", - "The refreshAll method results in a broadcast of all nodelists so that clients can create any missing nodes. Then, the full node state is broadcasted, for ALL nodes. "); - I_Method1(void, refreshSubscribers, IN, const std::map< std::string COMMA lo_address > &, clients, - Properties::NON_VIRTUAL, - __void__refreshSubscribers__C5_std_mapT1_std_stringComma_lo_address__R1, - "", - "The refreshSubscribers method results in a publication of all nodelists to the given TCP subscribers. Then, the full node state is published to the subscribers, for ALL nodes. "); - I_Method1(void, setShadows, IN, bool, b, - Properties::NON_VIRTUAL, - __void__setShadows__bool, - "", - "Enable the shadow system "); - I_Method1(void, setShadowSoftness, IN, float, f, - Properties::NON_VIRTUAL, - __void__setShadowSoftness__float, - "", - "Set the values for width of the soft penumbra the shader will use. "); - I_Method1(void, setShadowJitter, IN, float, f, - Properties::NON_VIRTUAL, - __void__setShadowJitter__float, - "", - "Set the values for jittering scale the shader will use. "); - I_Method1(void, setShadowBias, IN, float, f, - Properties::NON_VIRTUAL, - __void__setShadowBias__float, - "", - "Add a small bias to the z-value, this can reduce shadow acne problem. "); - I_Method2(void, setShadowAmbientBias, IN, float, x, IN, float, y, - Properties::NON_VIRTUAL, - __void__setShadowAmbientBias__float__float, - "", - "The ambiantBias defines how much shadows darken the scene. It is usually used to set up lower bound for shadowing factor, in the range [0..1]. Sometimes we want to make shadows to be only a bit darker than lit areas. This is called \"AmbientBias\" because shadowed areas are lit only by the ambient light component). AmbientBias.y is usually set up to 1 - AmbientBias.x but it may be also set bit larger or smaller values used to make shadow range more dynamic or flat. "); - I_Method3(void, setGravity, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setGravity__float__float__float, - "", - "Set the gravity vector for the physics engine (only used by some nodes). "); - I_Method3(void, setWind, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setWind__float__float__float, - "", - ""); - I_Method1(void, setUpdateRate, IN, float, seconds, - Properties::NON_VIRTUAL, - __void__setUpdateRate__float, - "", - "Sets the update delay for the physics engine (in seconds). The default is 0.02 seconds (ie, 50hz). "); - I_Method2(void, detectCollision, IN, bool &, lastColState, IN, btCollisionWorld *, cw, - Properties::NON_VIRTUAL, - __void__detectCollision__bool_R1__btCollisionWorld_P1, - "", - ""); - I_SimpleProperty(std::vector< std::string >, AllNodeTypes, - __std_vectorT1_std_string___getAllNodeTypes, - 0); - I_SimpleProperty(std::string, ConnectionsAsXML, - __std_string__getConnectionsAsXML, - 0); - I_SimpleProperty(bool, Graphical, - 0, - __void__setGraphical__bool); - I_SimpleProperty(spin::spinLog &, Log, - 0, - __void__setLog__spinLog_R1); - I_SimpleProperty(float, ShadowBias, - 0, - __void__setShadowBias__float); - I_SimpleProperty(float, ShadowJitter, - 0, - __void__setShadowJitter__float); - I_SimpleProperty(float, ShadowSoftness, - 0, - __void__setShadowSoftness__float); - I_SimpleProperty(bool, Shadows, - 0, - __void__setShadows__bool); - I_SimpleProperty(float, UpdateRate, - 0, - __void__setUpdateRate__float); - I_SimpleProperty(const char *, WorldStateSet, - 0, - __void__setWorldStateSet__C5_char_P1); - I_PublicMemberProperty(std::string, sceneID); - I_PublicMemberProperty(osg::ref_ptr< osg::ClearNode >, rootNode); - I_PublicMemberProperty(osg::ref_ptr< spin::ReferencedNode >, worldNode); - I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, gridGeode); - I_PublicMemberProperty(spin::t_symbol *, worldStateSet_); - I_PublicMemberProperty(bool, graphicalMode); - I_PublicMemberProperty(osg::ref_ptr< spin::GroupNode >, globalObserver); - I_PublicMemberProperty(std::string, resourcesPath); - I_PublicMemberProperty(osg::ref_ptr< osgDB::SharedStateManager >, sharedStateManager); - I_PublicMemberProperty(bool, lastColState); - I_PublicMemberProperty(btDynamicsWorld *, dynamicsWorld_); - I_PublicMemberProperty(btVector3, wind_); - I_PublicMemberProperty(bool, windy_); -END_REFLECTOR - -STD_MAP_REFLECTOR(std::map< std::string COMMA lo_address >) - -STD_VECTOR_REFLECTOR(std::vector< spin::ReferencedStateSet * >) - -STD_VECTOR_REFLECTOR(std::vector< spin::t_symbol * >) - -STD_VECTOR_REFLECTOR(std::vector< std::string >) - diff --git a/src/osgWrappers/introspection/shader.cpp b/src/osgWrappers/introspection/shader.cpp deleted file mode 100644 index 3502c1a..0000000 --- a/src/osgWrappers/introspection/shader.cpp +++ /dev/null @@ -1,123 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::Shader) - I_DeclaringFile("shader.h"); - I_BaseType(spin::ReferencedStateSet); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____Shader__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateCallback, - Properties::VIRTUAL, - __void__updateCallback, - "", - "This callback occurs every frame to update the state with any parameter changes. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information to console. "); - I_Method0(void, printShaderSource, - Properties::NON_VIRTUAL, - __void__printShaderSource, - "", - ""); - I_Method0(void, clearUniforms, - Properties::NON_VIRTUAL, - __void__clearUniforms, - "", - "Remove all uniforms from this stateset "); - I_Method2(void, registerUniform, IN, const char *, name, IN, const char *, type, - Properties::NON_VIRTUAL, - __void__registerUniform__C5_char_P1__C5_char_P1, - "", - "Create a uniform with the provided name and type. The value will be set to some default value "); - I_Method3(void, registerUniform, IN, const char *, name, IN, const char *, type, IN, const char *, defaultValue, - Properties::NON_VIRTUAL, - __void__registerUniform__C5_char_P1__C5_char_P1__C5_char_P1, - "", - "Create a uniform with the provided name and type, and set the initial value for the uniform.Note that defaults are provided as strings in all cases. So in the case of several values, the defaultValue would be a space-separated list of values.It is also possible to specify an array of vectors. For example, if the type is vec2, you can specify a defaultValue of 0.0 0.1 1.0 1.0 and this will generate two vec2 uniforms with indexes automatically added to the name: uniform name[0] = vec2(0.0,0.1); uniform name[1] = vec2(1.0,1.0); To send OSC messages to control these uniforms, you need to use the full name including square brackets. For example: /SPIN/default/shader setUniform_vec2 name[0] 0.0 0.0 "); - I_Method1(bool, loadJitterShader, IN, std::string, path, - Properties::NON_VIRTUAL, - __bool__loadJitterShader__std_string, - "", - ""); - I_Method1(void, loadGLSLShader, IN, std::string, path, - Properties::NON_VIRTUAL, - __void__loadGLSLShader__std_string, - "", - ""); - I_Method2(void, setUniform_bool, IN, const char *, name, IN, int, b, - Properties::NON_VIRTUAL, - __void__setUniform_bool__C5_char_P1__int, - "", - ""); - I_Method2(void, setUniform_int, IN, const char *, name, IN, int, b, - Properties::NON_VIRTUAL, - __void__setUniform_int__C5_char_P1__int, - "", - ""); - I_Method2(void, setUniform_float, IN, const char *, name, IN, float, f, - Properties::NON_VIRTUAL, - __void__setUniform_float__C5_char_P1__float, - "", - ""); - I_Method3(void, setUniform_vec2, IN, const char *, name, IN, float, x, IN, float, y, - Properties::NON_VIRTUAL, - __void__setUniform_vec2__C5_char_P1__float__float, - "", - ""); - I_Method4(void, setUniform_vec3, IN, const char *, name, IN, float, x, IN, float, y, IN, float, z, - Properties::NON_VIRTUAL, - __void__setUniform_vec3__C5_char_P1__float__float__float, - "", - ""); - I_Method5(void, setUniform_vec4, IN, const char *, name, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::NON_VIRTUAL, - __void__setUniform_vec4__C5_char_P1__float__float__float__float, - "", - ""); - I_Method1(void, setShader, IN, const char *, path, - Properties::NON_VIRTUAL, - __void__setShader__C5_char_P1, - "", - "Creates a texture from a path on disk. "); - I_Method0(const char *, getShader, - Properties::NON_VIRTUAL, - __C5_char_P1__getShader, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "Just like a ReferencedNode, each subclass of ReferencedStateSet must override the getState() method to pass it's current state. "); - I_SimpleProperty(const char *, Shader, - __C5_char_P1__getShader, - __void__setShader__C5_char_P1); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/shaderutil.cpp b/src/osgWrappers/introspection/shaderutil.cpp deleted file mode 100644 index 3c76960..0000000 --- a/src/osgWrappers/introspection/shaderutil.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, spin::ParsedUniforms) - diff --git a/src/osgWrappers/introspection/shapenode.cpp b/src/osgWrappers/introspection/shapenode.cpp deleted file mode 100644 index 4daea9a..0000000 --- a/src/osgWrappers/introspection/shapenode.cpp +++ /dev/null @@ -1,179 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::ShapeNode::shapeType) - I_DeclaringFile("shapenode.h"); - I_EnumLabel(spin::ShapeNode::NONE); - I_EnumLabel(spin::ShapeNode::SPHERE); - I_EnumLabel(spin::ShapeNode::BOX); - I_EnumLabel(spin::ShapeNode::CYLINDER); - I_EnumLabel(spin::ShapeNode::CAPSULE); - I_EnumLabel(spin::ShapeNode::CONE); - I_EnumLabel(spin::ShapeNode::PLANE); - I_EnumLabel(spin::ShapeNode::DISC); - I_EnumLabel(spin::ShapeNode::MODEL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(spin::ShapeNode::billboardType) - I_DeclaringFile("shapenode.h"); - I_EnumLabel(spin::ShapeNode::RELATIVE); - I_EnumLabel(spin::ShapeNode::POINT_EYE); - I_EnumLabel(spin::ShapeNode::STAY_UP); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(spin::ShapeNode) - I_DeclaringFile("shapenode.h"); - I_BaseType(spin::GroupNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____ShapeNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, setContext, IN, const char *, newvalue, - Properties::VIRTUAL, - __void__setContext__C5_char_P1, - "", - "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. "); - I_Method1(void, setShape, IN, spin::ShapeNode::shapeType, t, - Properties::NON_VIRTUAL, - __void__setShape__shapeType, - "", - "Sets the shape this ShapeNode should have, identified by its number. "); - I_Method1(void, setBillboard, IN, spin::ShapeNode::billboardType, t, - Properties::NON_VIRTUAL, - __void__setBillboard__billboardType, - "", - "Set the object's billboarding, with reference to the setbillboardType enum. "); - I_Method4(void, setColor, IN, float, red, IN, float, green, IN, float, blue, IN, float, alpha, - Properties::NON_VIRTUAL, - __void__setColor__float__float__float__float, - "", - " param red Red channel. Number in the range [0, 1] green Green channel. Number in the range [0, 1] blue Blue channel. Number in the range [0, 1] alpha Opacity channel. Number in the range [0, 1] "); - I_Method1(void, setRenderBin, IN, int, i, - Properties::NON_VIRTUAL, - __void__setRenderBin__int, - "", - "Sets the render bin. "); - I_Method1(void, setLighting, IN, int, i, - Properties::NON_VIRTUAL, - __void__setLighting__int, - "", - ""); - I_Method1(void, setSingleSided, IN, int, singleSided, - Properties::NON_VIRTUAL, - __void__setSingleSided__int, - "", - "Specify whether both sides or only one side of the shape is rendered. ie, whether the backface is culled or not. "); - I_Method0(int, getSingleSided, - Properties::NON_VIRTUAL, - __int__getSingleSided, - "", - ""); - I_Method1(void, setDetailRatio, IN, float, detailRatio, - Properties::NON_VIRTUAL, - __void__setDetailRatio__float, - "", - ""); - I_Method0(float, getDetailRatio, - Properties::NON_VIRTUAL, - __float__getDetailRatio, - "", - ""); - I_Method0(void, updateStateSet, - Properties::VIRTUAL, - __void__updateStateSet, - "", - "This method actually applies the stateset to the subgraph, replacing any existing stateset with this one. The setStateSet and setStateSetFromFile methods just set the stateset_ symbol, while updateStateSet does the actual work.Override this method in subclasses in order to change how stateset should be applied. For example, to which node in the subgraph it should be attached, or whether it should be merged with the existing stateset (rather than merged).By default it is applied to the mainTransform_. "); - I_Method0(int, getShape, - Properties::NON_VIRTUAL, - __int__getShape, - "", - "Returns the currently set shape of the ShapeNode, with reference to the shapeType enum. "); - I_Method0(int, getBillboard, - Properties::NON_VIRTUAL, - __int__getBillboard, - "", - "Returns the current billboarding setting, with reference to the billboardType enum. "); - I_Method0(osg::Vec4, getColor, - Properties::NON_VIRTUAL, - __osg_Vec4__getColor, - "", - "Returns the currently set color in RGBA value. "); - I_Method0(int, getRenderBin, - Properties::NON_VIRTUAL, - __int__getRenderBin, - "", - "Returns the currently set render bin. "); - I_Method0(int, getLighting, - Properties::NON_VIRTUAL, - __int__getLighting, - "", - "Returns whether lighting is enabled or disabled on the object. "); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_ProtectedMethod0(void, drawShape, - Properties::VIRTUAL, - Properties::NON_CONST, - __void__drawShape, - "", - ""); - I_SimpleProperty(int, Billboard, - __int__getBillboard, - 0); - I_SimpleProperty(osg::Vec4, Color, - __osg_Vec4__getColor, - 0); - I_SimpleProperty(const char *, Context, - 0, - __void__setContext__C5_char_P1); - I_SimpleProperty(float, DetailRatio, - __float__getDetailRatio, - __void__setDetailRatio__float); - I_SimpleProperty(int, Lighting, - __int__getLighting, - __void__setLighting__int); - I_SimpleProperty(int, RenderBin, - __int__getRenderBin, - __void__setRenderBin__int); - I_SimpleProperty(int, Shape, - __int__getShape, - 0); - I_SimpleProperty(int, SingleSided, - __int__getSingleSided, - __void__setSingleSided__int); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_PublicMemberProperty(spin::ShapeNode::shapeType, shape); - I_PublicMemberProperty(spin::ShapeNode::billboardType, billboard); - I_PublicMemberProperty(osg::Vec4, _color); - I_PublicMemberProperty(std::string, texturePath); - I_PublicMemberProperty(int, renderBin); - I_PublicMemberProperty(int, lightingEnabled); - I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, shapeGeode); - I_PublicMemberProperty(osg::ref_ptr< osg::ShapeDrawable >, _shapeDrawable); - I_PublicMemberProperty(osgUtil::Optimizer, optimizer); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/sharedvideotexture.cpp b/src/osgWrappers/introspection/sharedvideotexture.cpp deleted file mode 100644 index b2e0c48..0000000 --- a/src/osgWrappers/introspection/sharedvideotexture.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::SharedVideoTexture) - I_DeclaringFile("sharedvideotexture.h"); - I_BaseType(spin::Shader); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____SharedVideoTexture__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, updateCallback, - Properties::VIRTUAL, - __void__updateCallback, - "", - "This callback occurs every frame to update the state with any parameter changes. "); - I_Method1(void, setTextureID, IN, const char *, id, - Properties::NON_VIRTUAL, - __void__setTextureID__C5_char_P1, - "", - ""); - I_Method0(const char *, getTextureID, - Properties::NON_VIRTUAL, - __C5_char_P1__getTextureID, - "", - ""); - I_Method0(const char *, getPath, - Properties::NON_VIRTUAL, - __C5_char_P1__getPath, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "Just like a ReferencedNode, each subclass of ReferencedStateSet must override the getState() method to pass it's current state. "); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information to console. "); - I_Method0(void, play, - Properties::NON_VIRTUAL, - __void__play, - "", - ""); - I_Method0(void, pause, - Properties::NON_VIRTUAL, - __void__pause, - "", - ""); - I_SimpleProperty(const char *, Path, - __C5_char_P1__getPath, - 0); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(const char *, TextureID, - __C5_char_P1__getTextureID, - __void__setTextureID__C5_char_P1); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/soundnode.cpp b/src/osgWrappers/introspection/soundnode.cpp deleted file mode 100644 index 03cb2d1..0000000 --- a/src/osgWrappers/introspection/soundnode.cpp +++ /dev/null @@ -1,124 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::SoundNode) - I_DeclaringFile("soundnode.h"); - I_BaseType(spin::DSPNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____SoundNode__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method0(void, debug, - Properties::VIRTUAL, - __void__debug, - "", - "Print debug information about the node to standard out (when running in console mode). It may be possible to redirect this to a text box for GUI logs. "); - I_Method1(void, callbackUpdate, IN, osg::NodeVisitor *, nv, - Properties::VIRTUAL, - __void__callbackUpdate__osg_NodeVisitor_P1, - "", - "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. "); - I_MethodWithDefaults1(bool, dumpGlobals, IN, bool, forced, false, - Properties::VIRTUAL, - __bool__dumpGlobals__bool, - "", - "The dumpGlobals method results in a broadcast of this node's translation and orientation. It is called by callbackUpdate() every frame, however the 'forced' flag will be set to false, so it will only send a message if the node's matrix has changed. If the 'forced' flag is set to true, it will definitely result in a message broadcast. This should only be used when necessary (eg, when a stateDump is requested).Note: the return value is only to fool wx so that it doesn't consider this as an editable property. "); - I_Method2(void, setParam, IN, const char *, paramName, IN, const char *, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__C5_char_P1, - "", - ""); - I_Method2(void, setParam, IN, const char *, paramName, IN, float, paramValue, - Properties::VIRTUAL, - __void__setParam__C5_char_P1__float, - "", - ""); - I_Method3(void, setTranslation, IN, float, x, IN, float, y, IN, float, z, - Properties::VIRTUAL, - __void__setTranslation__float__float__float, - "", - "The local translation offset for this node with respect to it's parent "); - I_Method3(void, setOrientation, IN, float, pitch, IN, float, roll, IN, float, yaw, - Properties::VIRTUAL, - __void__setOrientation__float__float__float, - "", - "The local orientation offset for this node with respect to its parent "); - I_Method4(void, setOrientationQuat, IN, float, x, IN, float, y, IN, float, z, IN, float, w, - Properties::VIRTUAL, - __void__setOrientationQuat__float__float__float__float, - "", - "Set the orientation offset as a quaternion "); - I_Method1(void, setRadius, IN, float, f, - Properties::VIRTUAL, - __void__setRadius__float, - "", - ""); - I_Method1(void, setTransitionFactor, IN, float, f, - Properties::VIRTUAL, - __void__setTransitionFactor__float, - "", - ""); - I_Method1(void, setURI, IN, const char *, uri, - Properties::VIRTUAL, - __void__setURI__C5_char_P1, - "", - "Set the media for the sound node using a URI pattern.Examples: file://soundfilename.wav file:///home/johndoe/soundfilename.wav http://www.server.com/soundfile.wav adc://1:1 adc://1 content://media/external/audio/media/710 mms://some_media_stream rtsp://127.0.0.1:12311 pd_plugin://audio_plugin_patch.pd "); - I_Method2(void, setDirectivity, IN, const char *, horizPattern, IN, const char *, vertPattern, - Properties::VIRTUAL, - __void__setDirectivity__C5_char_P1__C5_char_P1, - "", - ""); - I_Method1(void, connect, IN, const char *, sinkNodeID, - Properties::VIRTUAL, - __void__connect__C5_char_P1, - "", - ""); - I_Method1(void, disconnect, IN, const char *, sinkNodeID, - Properties::VIRTUAL, - __void__disconnect__C5_char_P1, - "", - ""); - I_Method3(void, setConnectionParam, IN, const char *, sinkNodeID, IN, const char *, method, IN, float, value, - Properties::VIRTUAL, - __void__setConnectionParam__C5_char_P1__C5_char_P1__float, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(float, Radius, - 0, - __void__setRadius__float); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(float, TransitionFactor, - 0, - __void__setTransitionFactor__float); - I_SimpleProperty(const char *, URI, - 0, - __void__setURI__C5_char_P1); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/soundspace.cpp b/src/osgWrappers/introspection/soundspace.cpp deleted file mode 100644 index 26ba17b..0000000 --- a/src/osgWrappers/introspection/soundspace.cpp +++ /dev/null @@ -1,68 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_OBJECT_REFLECTOR(spin::SoundSpace) - I_DeclaringFile("soundspace.h"); - I_BaseType(spin::DSPNode); - I_Constructor2(IN, spin::SceneManager *, sceneManager, IN, const char *, initID, - ____SoundSpace__SceneManager_P1__C5_char_P1, - "", - ""); - I_Method1(void, setAbsorption, IN, spin::t_floatarg, newval, - Properties::NON_VIRTUAL, - __void__setAbsorption__t_floatarg, - "", - ""); - I_Method1(void, setFilterCoef, IN, spin::t_floatarg, newval, - Properties::NON_VIRTUAL, - __void__setFilterCoef__t_floatarg, - "", - ""); - I_Method1(void, setTransition, IN, spin::t_floatarg, newval, - Properties::NON_VIRTUAL, - __void__setTransition__t_floatarg, - "", - ""); - I_Method0(std::vector< lo_message >, getState, - Properties::VIRTUAL, - __std_vectorT1_lo_message___getState, - "", - "For each subclass of ReferencedNode, we override the getState() method to fill the vector with the correct set of methods for this particular node "); - I_SimpleProperty(spin::t_floatarg, Absorption, - 0, - __void__setAbsorption__t_floatarg); - I_SimpleProperty(spin::t_floatarg, FilterCoef, - 0, - __void__setFilterCoef__t_floatarg); - I_SimpleProperty(std::vector< lo_message >, State, - __std_vectorT1_lo_message___getState, - 0); - I_SimpleProperty(spin::t_floatarg, Transition, - 0, - __void__setTransition__t_floatarg); - I_PublicMemberProperty(spin::t_float, absorption); - I_PublicMemberProperty(spin::t_float, filterCoef); - I_PublicMemberProperty(spin::t_float, transition); -END_REFLECTOR - diff --git a/src/osgWrappers/introspection/spinbasecontext.cpp b/src/osgWrappers/introspection/spinbasecontext.cpp deleted file mode 100644 index 1db0665..0000000 --- a/src/osgWrappers/introspection/spinbasecontext.cpp +++ /dev/null @@ -1,166 +0,0 @@ -// *************************************************************************** -// -// Generated automatically by genwrapper. -// Please DO NOT EDIT this file! -// -// *************************************************************************** - -#include -#include -#include -#include - -#include -#include - -// Must undefine IN and OUT macros defined in Windows headers -#ifdef IN -#undef IN -#endif -#ifdef OUT -#undef OUT -#endif - -BEGIN_ENUM_REFLECTOR(spin::spinBaseContext::SpinContextMode) - I_DeclaringFile("spinbasecontext.h"); - I_EnumLabel(spin::spinBaseContext::SERVER_MODE); - I_EnumLabel(spin::spinBaseContext::CLIENT_MODE); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(spin::spinBaseContext) - I_DeclaringFile("spinbasecontext.h"); - I_Constructor0(____spinBaseContext, - "", - "Constructor.This is where the actual default port numbers and multicast groups are defined. "); - I_Method0(bool, isServer, - Properties::NON_VIRTUAL, - __bool__isServer, - "", - ""); - I_Method0(bool, start, - Properties::PURE_VIRTUAL, - __bool__start, - "", - ""); - I_Method0(void, debugPrint, - Properties::VIRTUAL, - __void__debugPrint, - "", - ""); - I_Method1(void, addCommandLineOptions, IN, osg::ArgumentParser *, arguments, - Properties::VIRTUAL, - __void__addCommandLineOptions__osg_ArgumentParser_P1, - "", - ""); - I_Method1(int, parseCommandLineOptions, IN, osg::ArgumentParser *, arguments, - Properties::VIRTUAL, - __int__parseCommandLineOptions__osg_ArgumentParser_P1, - "", - ""); - I_Method1(bool, startThread, IN, void *(*)(void *), threadFunction, - Properties::NON_VIRTUAL, - __bool__startThread__void_P1(P1)(void_P1), - "", - "Starts the context thread (passed as *threadFunction from a derived class)Startup point of the server's thread.Startup point of the server's thread. "); - I_Method0(void, stop, - Properties::NON_VIRTUAL, - __void__stop, - "", - "Stops the currently running thread WARNING: Must be called explicitly before destroying an instance of spinServerContext. "); - I_Method0(bool, isRunning, - Properties::NON_VIRTUAL, - __bool__isRunning, - "", - ""); - I_Method1(void, addInfoHandler, IN, spin::EventHandler *, obs, - Properties::NON_VIRTUAL, - __void__addInfoHandler__EventHandler_P1, - "", - "Add an event handler to the list of classes that will be notified when a message is received on the INFO channel: "); - I_Method1(void, removeInfoHandler, IN, spin::EventHandler *, obs, - Properties::NON_VIRTUAL, - __void__removeInfoHandler__EventHandler_P1, - "", - "Remove an INFO channel event handler "); - I_Method1(void, removeHandlerForAllEvents, IN, spin::EventHandler *, obs, - Properties::NON_VIRTUAL, - __void__removeHandlerForAllEvents__EventHandler_P1, - "", - ""); - I_Method0(bool, canAutoAssignPorts, - Properties::NON_VIRTUAL, - __bool__canAutoAssignPorts, - "", - "Check if spin is allowed to assign automatic ports (eg, in the case where a port is busy). This is usually true, but if a user specifies ports manually with command-line options, this becomes false. "); - I_Method1(void, setTTL, IN, int, ttl, - Properties::NON_VIRTUAL, - __void__setTTL__int, - "", - "Set the time-to-live for multicast packets (corresponds to the number of routers a packet will hop). "); - I_Method1(void, setReliableBroadcast, IN, bool, b, - Properties::VIRTUAL, - __void__setReliableBroadcast__bool, - "", - "Reliable broadcast means that TCP subscribers will be notified by TCP of EVERY node and scene update. This is in addition to the regular multicast, so subscribers who also listen to multicast will receive duplicate messages. In the case of spinviewer, we stop polling UDP receivers when this flag is set (see pollUpdates() in spinClientContext). "); - I_Method0(bool, hasReliableBroadcast, - Properties::NON_VIRTUAL, - __bool__hasReliableBroadcast, - "", - ""); - I_StaticMethod1(void, sigHandler, IN, int, signum, - __void__sigHandler__int_S, - "", - ""); - I_StaticMethod6(int, connectionCallback, IN, const char *, path, IN, const char *, types, IN, lo_arg **, argv, IN, int, argc, IN, void *, data, IN, void *, user_data, - __int__connectionCallback__C5_char_P1__C5_char_P1__lo_arg_P1P1__int__void_P1__void_P1_S, - "", - ""); - I_StaticMethod6(int, nodeCallback, IN, const char *, path, IN, const char *, types, IN, lo_arg **, argv, IN, int, argc, IN, void *, data, IN, void *, user_data, - __int__nodeCallback__C5_char_P1__C5_char_P1__lo_arg_P1P1__int__void_P1__void_P1_S, - "", - "Callback for messages sent to a node in the scene graph.Messages to node should have an OSC address in the form /SPIN/=\"\">/=\"\"> Their first argument is the name of the method to call.Methods to manage Python scripts for a node: addCronScript