Updated wrappers

This commit is contained in:
Robert Osfield
2007-09-24 16:25:55 +00:00
parent d11d5b819a
commit e725f30d81
5 changed files with 66 additions and 3 deletions

View File

@@ -69,6 +69,11 @@ BEGIN_OBJECT_REFLECTOR(osg::View)
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, take, IN, osg::View &, rhs,
Properties::VIRTUAL,
__void__take__View_R1,
"Take all the settings, Camera and Slaves from the passed in view, leaving it empty. ",
"");
I_Method1(void, setStats, IN, osg::Stats *, stats,
Properties::NON_VIRTUAL,
__void__setStats__osg_Stats_P1,
@@ -154,6 +159,11 @@ BEGIN_OBJECT_REFLECTOR(osg::View)
__C5_Slave_R1__getSlave__unsigned_int,
"",
"");
I_Method1(unsigned int, findSlaveIndexForCamera, IN, osg::Camera *, camera,
Properties::NON_VIRTUAL,
__unsigned_int__findSlaveIndexForCamera__osg_Camera_P1,
"",
"");
I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera,
Properties::NON_VIRTUAL,
__Slave_P1__findSlaveForCamera__osg_Camera_P1,

View File

@@ -90,6 +90,11 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer)
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(bool, readConfiguration, IN, const std::string &, filename,
Properties::NON_VIRTUAL,
__bool__readConfiguration__C5_std_string_R1,
"read the viewer configuration from a configuration file. ",
"");
I_Method1(void, addView, IN, osgViewer::View *, view,
Properties::NON_VIRTUAL,
__void__addView__osgViewer_View_P1,

View File

@@ -25,9 +25,6 @@
BEGIN_OBJECT_REFLECTOR(osgViewer::Scene)
I_DeclaringFile("osgViewer/Scene");
I_BaseType(osg::Referenced);
I_Constructor0(____Scene,
"",
"");
I_Method1(void, setSceneData, IN, osg::Node *, node,
Properties::NON_VIRTUAL,
__void__setSceneData__osg_Node_P1,
@@ -62,6 +59,9 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Scene)
__Scene_P1__getScene__osg_Node_P1_S,
"Get the Scene object that has the specified node assigned to it. ",
"return 0 if no Scene has yet been assigned the specified node. ");
I_ProtectedConstructor0(____Scene,
"",
"");
I_SimpleProperty(osgDB::DatabasePager *, DatabasePager,
__osgDB_DatabasePager_P1__getDatabasePager,
__void__setDatabasePager__osgDB_DatabasePager_P1);

View File

@@ -18,6 +18,7 @@
#include <osg/Node>
#include <osg/Object>
#include <osg/Timer>
#include <osg/View>
#include <osgDB/DatabasePager>
#include <osgGA/EventQueue>
#include <osgGA/GUIEventHandler>
@@ -73,6 +74,11 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::View)
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, take, IN, osg::View &, rhs,
Properties::VIRTUAL,
__void__take__osg_View_R1,
"Take all the settings, Camera and Slaves from the passed in view, leaving it empty. ",
"");
I_Method1(void, setStartTick, IN, osg::Timer_t, tick,
Properties::VIRTUAL,
__void__setStartTick__osg_Timer_t,

View File

@@ -13,12 +13,15 @@
#include <osg/ApplicationUsage>
#include <osg/ArgumentParser>
#include <osg/Camera>
#include <osg/CopyOp>
#include <osg/Node>
#include <osg/Object>
#include <osg/OperationThread>
#include <osg/Timer>
#include <osgGA/EventVisitor>
#include <osgUtil/UpdateVisitor>
#include <osgViewer/GraphicsWindow>
#include <osgViewer/View>
#include <osgViewer/Viewer>
// Must undefine IN and OUT macros defined in Windows headers
@@ -65,6 +68,45 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer)
____Viewer__osg_ArgumentParser_R1,
"",
"");
I_ConstructorWithDefaults2(IN, const osgViewer::Viewer &, viewer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
____Viewer__C5_osgViewer_Viewer_R1__C5_osg_CopyOp_R1,
"",
"");
I_Method0(osg::Object *, cloneType,
Properties::VIRTUAL,
__osg_Object_P1__cloneType,
"Clone the type of an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
Properties::VIRTUAL,
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
"Clone an object, with Object* return type. ",
"Must be defined by derived classes. ");
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
Properties::VIRTUAL,
__bool__isSameKindAs__C5_osg_Object_P1,
"",
"");
I_Method0(const char *, libraryName,
Properties::VIRTUAL,
__C5_char_P1__libraryName,
"return the name of the object's library. ",
"Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. ");
I_Method0(const char *, className,
Properties::VIRTUAL,
__C5_char_P1__className,
"return the name of the object's class type. ",
"Must be defined by derived classes. ");
I_Method1(void, take, IN, osgViewer::View &, rhs,
Properties::VIRTUAL,
__void__take__View_R1,
"Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. ",
"");
I_Method1(bool, readConfiguration, IN, const std::string &, filename,
Properties::NON_VIRTUAL,
__bool__readConfiguration__C5_std_string_R1,
"read the viewer configuration from a configuration file. ",
"");
I_Method0(bool, isRealized,
Properties::NON_VIRTUAL,
__bool__isRealized,