Updated wrappers

This commit is contained in:
Robert Osfield
2007-02-08 20:27:02 +00:00
parent c2665963bb
commit d03e9aee0b
5 changed files with 68 additions and 1 deletions

View File

@@ -11,8 +11,10 @@
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/NodeVisitor>
#include <osg/Object>
#include <osgShadow/ShadowTechnique>
#include <osgShadow/ShadowedScene>
// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
@@ -51,5 +53,36 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique)
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(osgShadow::ShadowedScene *, getShadowedScene,
__ShadowedScene_P1__getShadowedScene,
"",
"");
I_Method0(void, init,
__void__init,
"initialize the ShadowedScene and local cached data structures. ",
"");
I_Method1(void, update, IN, osg::NodeVisitor &, nv,
__void__update__osg_NodeVisitor_R1,
"run the update traversal of the ShadowedScene and update any loca chached data structures. ",
"");
I_Method1(void, cull, IN, osg::NodeVisitor &, nv,
__void__cull__osg_NodeVisitor_R1,
"run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ",
"");
I_Method0(void, cleanSceneGraph,
__void__cleanSceneGraph,
"Clean scene graph from any shadow technique specific nodes, state and drawables. ",
"");
I_Method1(void, traverse, IN, osg::NodeVisitor &, nv,
__void__traverse__osg_NodeVisitor_R1,
"",
"");
I_Method0(void, dirty,
__void__dirty,
"Dirty so that cached data structurese are updated. ",
"");
I_SimpleProperty(osgShadow::ShadowedScene *, ShadowedScene,
__ShadowedScene_P1__getShadowedScene,
0);
END_REFLECTOR

View File

@@ -11,6 +11,7 @@
#include <osgIntrospection/Attributes>
#include <osg/CopyOp>
#include <osg/NodeVisitor>
#include <osg/Object>
#include <osgShadow/ShadowVolume>
@@ -51,5 +52,21 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume)
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method0(void, init,
__void__init,
"initialize the ShadowedScene and local cached data structures. ",
"");
I_Method1(void, update, IN, osg::NodeVisitor &, nv,
__void__update__osg_NodeVisitor_R1,
"run the update traversal of the ShadowedScene and update any loca chached data structures. ",
"");
I_Method1(void, cull, IN, osg::NodeVisitor &, nv,
__void__cull__osg_NodeVisitor_R1,
"run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ",
"");
I_Method0(void, cleanSceneGraph,
__void__cleanSceneGraph,
"Clean scene graph from any shadow technique specific nodes, state and drawables. ",
"");
END_REFLECTOR

View File

@@ -89,6 +89,14 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene)
__C5_ShadowTechnique_P1__getShadowTechnique,
"",
"");
I_Method0(void, cleanSceneGraph,
__void__cleanSceneGraph,
"Clean scene graph from any shadow technique specific nodes, state and drawables. ",
"");
I_Method0(void, dirty,
__void__dirty,
"Dirty any cache data structures held in the attached ShadowTechnqiue. ",
"");
I_SimpleProperty(unsigned int, CastsShadowTraversalMask,
__unsigned_int__getCastsShadowTraversalMask,
__void__setCastsShadowTraversalMask__unsigned_int);

View File

@@ -21,6 +21,7 @@
#include <osg/MatrixTransform>
#include <osg/Node>
#include <osg/Object>
#include <osg/PagedLOD>
#include <osg/PrimitiveSet>
#include <osg/ProxyNode>
#include <osg/StateAttribute>
@@ -277,6 +278,10 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor)
__void__apply__osg_ProxyNode_R1,
"",
"");
I_Method1(void, apply, IN, osg::PagedLOD &, node,
__void__apply__osg_PagedLOD_R1,
"",
"");
I_Method1(void, apply, IN, osg::Transform &, transform,
__void__apply__osg_Transform_R1,
"",

View File

@@ -205,13 +205,17 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer)
__osg_Operation_P1__getRealizeOperation,
"Get the graphics operation to call on realization of the viewers graphics windows. ",
"");
I_Method0(void, setUpThreading,
__void__setUpThreading,
"Set up the threading and processor affinity as per the viewers threading model. ",
"");
I_Method0(void, stopThreading,
__void__stopThreading,
"Stop any threads begin run by viewer. ",
"");
I_Method0(void, startThreading,
__void__startThreading,
"Start any threads required by the viewer, as per viewers ThreadingModel. ",
"Start any threads required by the viewer. ",
"");
I_Method0(void, setUpRenderingSupport,
__void__setUpRenderingSupport,