Skip to content

Commit

Permalink
Updated wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 14, 2007
1 parent f6eaa58 commit 8051c48
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 279 deletions.
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/AnimationPathManipulator.cpp
Expand Up @@ -41,8 +41,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator)
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, setPrintOutTimingInfo, IN, bool, printOutTimingInfo,
Properties::NON_VIRTUAL,
__void__setPrintOutTimingInfo__bool,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/DriveManipulator.cpp
Expand Up @@ -34,8 +34,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator)
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, setByMatrix, IN, const osg::Matrixd &, matrix,
Properties::VIRTUAL,
__void__setByMatrix__C5_osg_Matrixd_R1,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/FlightManipulator.cpp
Expand Up @@ -40,8 +40,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator)
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, setByMatrix, IN, const osg::Matrixd &, matrix,
Properties::VIRTUAL,
__void__setByMatrix__C5_osg_Matrixd_R1,
Expand Down
253 changes: 3 additions & 250 deletions src/osgWrappers/osgGA/GUIEventHandler.cpp
Expand Up @@ -18,7 +18,7 @@
#include <osg/Object>
#include <osgGA/GUIActionAdapter>
#include <osgGA/GUIEventAdapter>
#include <osgGA/GUIEventHandler.bkp>
#include <osgGA/GUIEventHandler>

// Must undefine IN and OUT macros defined in Windows headers
#ifdef IN
Expand All @@ -29,9 +29,7 @@
#endif

BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler)
I_DeclaringFile("osgGA/GUIEventHandler.bkp");
I_BaseType(osg::NodeCallback);
I_BaseType(osg::Drawable::EventCallback);
I_DeclaringFile("osgGA/GUIEventHandler");
I_BaseType(osg::NodeCallback);
I_BaseType(osg::Drawable::EventCallback);
I_Constructor0(____GUIEventHandler,
Expand Down Expand Up @@ -106,253 +104,13 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler)
__unsigned_int__getIgnoreHandledEventsMask,
"Get the event mask of the osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_Constructor0(____GUIEventHandler,
"",
"");
I_Constructor2(IN, const osgGA::GUIEventHandler &, eh, IN, const osg::CopyOp &, x,
____GUIEventHandler__C5_GUIEventHandler_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_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable,
Properties::VIRTUAL,
__void__event__osg_NodeVisitor_P1__osg_Drawable_P1,
"Event traversal drawable callback method. ",
"");
I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1,
"Handle events, return true if handled, false otherwise. ",
"");
I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"deprecated, Handle events, return true if handled, false otherwise. ",
"");
I_Method2(bool, handleWithCheckAgainstIgnoreUsedEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa,
Properties::NON_VIRTUAL,
__bool__handleWithCheckAgainstIgnoreUsedEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"",
"");
I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x,
Properties::VIRTUAL,
__void__getUsage__osg_ApplicationUsage_R1,
"Get the keyboard and mouse usage of this manipulator. ",
"");
I_Method1(void, setIgnoreUsedEventsMask, IN, unsigned int, mask,
Properties::NON_VIRTUAL,
__void__setIgnoreUsedEventsMask__unsigned_int,
"Set a mask of osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_Method0(unsigned int, getIgnoreUsedEventsMask,
Properties::NON_VIRTUAL,
__unsigned_int__getIgnoreUsedEventsMask,
"Get the event mask of the osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_SimpleProperty(unsigned int, IgnoreHandledEventsMask,
__unsigned_int__getIgnoreHandledEventsMask,
__void__setIgnoreHandledEventsMask__unsigned_int);
I_SimpleProperty(unsigned int, IgnoreUsedEventsMask,
__unsigned_int__getIgnoreUsedEventsMask,
__void__setIgnoreUsedEventsMask__unsigned_int);
END_REFLECTOR

BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler)
I_DeclaringFile("osgGA/GUIEventHandler.bkp");
I_BaseType(osg::NodeCallback);
I_BaseType(osg::Drawable::EventCallback);
I_BaseType(osg::NodeCallback);
I_BaseType(osg::Drawable::EventCallback);
I_Constructor0(____GUIEventHandler,
"",
"");
I_Constructor2(IN, const osgGA::GUIEventHandler &, eh, IN, const osg::CopyOp &, x,
____GUIEventHandler__C5_GUIEventHandler_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_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable,
Properties::VIRTUAL,
__void__event__osg_NodeVisitor_P1__osg_Drawable_P1,
"Event traversal drawable callback method. ",
"");
I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1,
"Handle events, return true if handled, false otherwise. ",
"");
I_Method4(bool, handleWithCheckAgainstIgnoreHandledEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, object, IN, osg::NodeVisitor *, nv,
Properties::NON_VIRTUAL,
__bool__handleWithCheckAgainstIgnoreHandledEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1,
"Convnience method that only passes on to the handle(,,,) method events that either haven't been handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. ",
"Note, this method is an inline method, and not appropriate for users to override, override the handle(,,,) method instead. ");
I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"Deprecated, Handle events, return true if handled, false otherwise. ",
"");
I_Method2(bool, handleWithCheckAgainstIgnoreHandledEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa,
Properties::NON_VIRTUAL,
__bool__handleWithCheckAgainstIgnoreHandledEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"Convnience method that only passes on to the handle(,) method events that either haven't been handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. ",
"Note, this method is an inline method, and not appropriate for users to override, override the handle(,) method instead. ");
I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x,
Properties::VIRTUAL,
__void__getUsage__osg_ApplicationUsage_R1,
"Get the keyboard and mouse usage of this manipulator. ",
"");
I_Method1(void, setIgnoreHandledEventsMask, IN, unsigned int, mask,
Properties::NON_VIRTUAL,
__void__setIgnoreHandledEventsMask__unsigned_int,
"Set a mask of osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_Method0(unsigned int, getIgnoreHandledEventsMask,
Properties::NON_VIRTUAL,
__unsigned_int__getIgnoreHandledEventsMask,
"Get the event mask of the osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_Constructor0(____GUIEventHandler,
"",
"");
I_Constructor2(IN, const osgGA::GUIEventHandler &, eh, IN, const osg::CopyOp &, x,
____GUIEventHandler__C5_GUIEventHandler_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_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable,
Properties::VIRTUAL,
__void__event__osg_NodeVisitor_P1__osg_Drawable_P1,
"Event traversal drawable callback method. ",
"");
I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1,
"Handle events, return true if handled, false otherwise. ",
"");
I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x,
Properties::VIRTUAL,
__bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"deprecated, Handle events, return true if handled, false otherwise. ",
"");
I_Method2(bool, handleWithCheckAgainstIgnoreUsedEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa,
Properties::NON_VIRTUAL,
__bool__handleWithCheckAgainstIgnoreUsedEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1,
"",
"");
I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x,
Properties::VIRTUAL,
__void__getUsage__osg_ApplicationUsage_R1,
"Get the keyboard and mouse usage of this manipulator. ",
"");
I_Method1(void, setIgnoreUsedEventsMask, IN, unsigned int, mask,
Properties::NON_VIRTUAL,
__void__setIgnoreUsedEventsMask__unsigned_int,
"Set a mask of osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_Method0(unsigned int, getIgnoreUsedEventsMask,
Properties::NON_VIRTUAL,
__unsigned_int__getIgnoreUsedEventsMask,
"Get the event mask of the osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ",
"");
I_SimpleProperty(unsigned int, IgnoreHandledEventsMask,
__unsigned_int__getIgnoreHandledEventsMask,
__void__setIgnoreHandledEventsMask__unsigned_int);
I_SimpleProperty(unsigned int, IgnoreUsedEventsMask,
__unsigned_int__getIgnoreUsedEventsMask,
__void__setIgnoreUsedEventsMask__unsigned_int);
END_REFLECTOR

BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor)
I_DeclaringFile("osgGA/GUIEventHandler.bkp");
I_Constructor0(____GUIEventHandlerVisitor,
"",
"");
I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x,
Properties::NON_VIRTUAL,
__void__visit__GUIEventHandler_R1,
"",
"");
I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x,
Properties::NON_VIRTUAL,
__void__visit__GUIEventHandler_R1,
"",
"");
END_REFLECTOR

BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor)
I_DeclaringFile("osgGA/GUIEventHandler.bkp");
I_DeclaringFile("osgGA/GUIEventHandler");
I_Constructor0(____GUIEventHandlerVisitor,
"",
"");
Expand All @@ -361,10 +119,5 @@ BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor)
__void__visit__GUIEventHandler_R1,
"",
"");
I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x,
Properties::NON_VIRTUAL,
__void__visit__GUIEventHandler_R1,
"",
"");
END_REFLECTOR

4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp
Expand Up @@ -41,8 +41,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator)
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_Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm,
Properties::NON_VIRTUAL,
__void__addMatrixManipulator__int__std_string__MatrixManipulator_P1,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/MatrixManipulator.cpp
Expand Up @@ -33,8 +33,8 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator)
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, setMinimumDistance, IN, float, minimumDistance,
Properties::VIRTUAL,
__void__setMinimumDistance__float,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/NodeTrackerManipulator.cpp
Expand Up @@ -50,8 +50,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator)
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, setTrackNodePath, IN, const osg::NodePath &, nodePath,
Properties::NON_VIRTUAL,
__void__setTrackNodePath__C5_osg_NodePath_R1,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/StateSetManipulator.cpp
Expand Up @@ -36,8 +36,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator)
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, setStateSet, IN, osg::StateSet *, x,
Properties::VIRTUAL,
__void__setStateSet__osg_StateSet_P1,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/TerrainManipulator.cpp
Expand Up @@ -41,8 +41,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator)
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, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode,
Properties::NON_VIRTUAL,
__void__setRotationMode__RotationMode,
Expand Down
4 changes: 2 additions & 2 deletions src/osgWrappers/osgGA/TrackballManipulator.cpp
Expand Up @@ -37,8 +37,8 @@ BEGIN_OBJECT_REFLECTOR(osgGA::TrackballManipulator)
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, setByMatrix, IN, const osg::Matrixd &, matrix,
Properties::VIRTUAL,
__void__setByMatrix__C5_osg_Matrixd_R1,
Expand Down
2 changes: 1 addition & 1 deletion src/osgWrappers/osgGA/UFOManipulator.cpp
Expand Up @@ -98,7 +98,7 @@ BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator)
"Handles incoming osgGA events. ",
"");
I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage,
Properties::NON_VIRTUAL,
Properties::VIRTUAL,
__void__getUsage__osg_ApplicationUsage_R1,
"Reports Usage parameters to the application. ",
"");
Expand Down

0 comments on commit 8051c48

Please sign in to comment.