From d03e9aee0b07e1c3557c628154f800f8e4bd5d14 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Feb 2007 20:27:02 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osgShadow/ShadowTechnique.cpp | 33 +++++++++++++++++++ src/osgWrappers/osgShadow/ShadowVolume.cpp | 17 ++++++++++ src/osgWrappers/osgShadow/ShadowedScene.cpp | 8 +++++ src/osgWrappers/osgUtil/Optimizer.cpp | 5 +++ src/osgWrappers/osgViewer/Viewer.cpp | 6 +++- 5 files changed, 68 insertions(+), 1 deletion(-) diff --git a/src/osgWrappers/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/osgShadow/ShadowTechnique.cpp index e74690706..38fe71991 100644 --- a/src/osgWrappers/osgShadow/ShadowTechnique.cpp +++ b/src/osgWrappers/osgShadow/ShadowTechnique.cpp @@ -11,8 +11,10 @@ #include #include +#include #include #include +#include // 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 diff --git a/src/osgWrappers/osgShadow/ShadowVolume.cpp b/src/osgWrappers/osgShadow/ShadowVolume.cpp index 00aaa4491..1666f89f1 100644 --- a/src/osgWrappers/osgShadow/ShadowVolume.cpp +++ b/src/osgWrappers/osgShadow/ShadowVolume.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -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 diff --git a/src/osgWrappers/osgShadow/ShadowedScene.cpp b/src/osgWrappers/osgShadow/ShadowedScene.cpp index 0aee58d76..5bcdb0ab3 100644 --- a/src/osgWrappers/osgShadow/ShadowedScene.cpp +++ b/src/osgWrappers/osgShadow/ShadowedScene.cpp @@ -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); diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp index b21bf0228..029d10a8a 100644 --- a/src/osgWrappers/osgUtil/Optimizer.cpp +++ b/src/osgWrappers/osgUtil/Optimizer.cpp @@ -21,6 +21,7 @@ #include #include #include +#include #include #include #include @@ -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, "", diff --git a/src/osgWrappers/osgViewer/Viewer.cpp b/src/osgWrappers/osgViewer/Viewer.cpp index 8cbf7543e..461d229c3 100644 --- a/src/osgWrappers/osgViewer/Viewer.cpp +++ b/src/osgWrappers/osgViewer/Viewer.cpp @@ -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,