Updated wrappers
This commit is contained in:
@@ -13,7 +13,6 @@ CXXFILES =\
|
||||
KeySwitchMatrixManipulator.cpp\
|
||||
MatrixManipulator.cpp\
|
||||
NodeTrackerManipulator.cpp\
|
||||
SimpleViewer.cpp\
|
||||
StateSetManipulator.cpp\
|
||||
TerrainManipulator.cpp\
|
||||
TrackballManipulator.cpp\
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osgGA/EventQueue>
|
||||
#include <osgGA/GraphicsWindow>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgGA::GraphicsWindow)
|
||||
I_BaseType(osg::GraphicsContext);
|
||||
I_BaseType(osgGA::GUIActionAdapter);
|
||||
I_Constructor0();
|
||||
I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue);
|
||||
I_Method0(osgGA::EventQueue *, getEventQueue);
|
||||
I_Method0(const osgGA::EventQueue *, getEventQueue);
|
||||
I_Method0(bool, realizeImplementation);
|
||||
I_Method0(bool, isRealizedImplementation);
|
||||
I_Method0(void, closeImplementation);
|
||||
I_Method0(void, makeCurrentImplementation);
|
||||
I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x);
|
||||
I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x);
|
||||
I_Method0(void, swapBuffersImplementation);
|
||||
I_Method0(void, requestRedraw);
|
||||
I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true);
|
||||
I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x);
|
||||
I_Property(osgGA::EventQueue *, EventQueue);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <osg/Vec3>
|
||||
#include <osgGA/EventQueue>
|
||||
#include <osgGA/EventVisitor>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
#include <osgGA/KeySwitchMatrixManipulator>
|
||||
#include <osgGA/MatrixManipulator>
|
||||
#include <osgProducer/KeyboardMouseCallback>
|
||||
@@ -410,5 +411,40 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer)
|
||||
__void__setWriteImageWhenDone__bool);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >)
|
||||
I_Constructor0(____ref_ptr,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osgGA::GUIEventHandler *, ptr,
|
||||
____ref_ptr__T_P1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp,
|
||||
____ref_ptr__C5_ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::GUIEventHandler *, get,
|
||||
__T_P1__get,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, valid,
|
||||
__bool__valid,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::GUIEventHandler *, release,
|
||||
__T_P1__release,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp,
|
||||
__void__swap__ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgGA::GUIEventHandler *, ,
|
||||
__T_P1__get,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >);
|
||||
|
||||
STD_LIST_REFLECTOR(std::list< std::string >);
|
||||
|
||||
|
||||
@@ -6,12 +6,14 @@ CXXFILES =\
|
||||
ColorRange.cpp\
|
||||
DOFTransform.cpp\
|
||||
GeographicLocation.cpp\
|
||||
HeightAboveTerrain.cpp\
|
||||
Impostor.cpp\
|
||||
ImpostorSprite.cpp\
|
||||
InsertImpostorsVisitor.cpp\
|
||||
LightPoint.cpp\
|
||||
LightPointNode.cpp\
|
||||
LightPointSystem.cpp\
|
||||
LineOfSight.cpp\
|
||||
MultiSwitch.cpp\
|
||||
OpenFlightOptimizer.cpp\
|
||||
OverlayNode.cpp\
|
||||
|
||||
22
src/osgWrappers/osgViewer/Export.cpp
Normal file
22
src/osgWrappers/osgViewer/Export.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgViewer/Export>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
17
src/osgWrappers/osgViewer/GNUmakefile
Normal file
17
src/osgWrappers/osgViewer/GNUmakefile
Normal file
@@ -0,0 +1,17 @@
|
||||
TOPDIR = ../../..
|
||||
include $(TOPDIR)/Make/makedefs
|
||||
|
||||
CXXFILES =\
|
||||
Export.cpp\
|
||||
GraphicsWindow.cpp\
|
||||
SimpleViewer.cpp\
|
||||
|
||||
LIBS += -losgViewer -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS)
|
||||
|
||||
OPTF = -O
|
||||
|
||||
TARGET_BASENAME = osgViewer
|
||||
include $(TOPDIR)/Make/cygwin_wrapper_def
|
||||
WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT)
|
||||
|
||||
include $(TOPDIR)/Make/makerules
|
||||
87
src/osgWrappers/osgViewer/GraphicsWindow.cpp
Normal file
87
src/osgWrappers/osgViewer/GraphicsWindow.cpp
Normal file
@@ -0,0 +1,87 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/GraphicsContext>
|
||||
#include <osgGA/EventQueue>
|
||||
#include <osgViewer/GraphicsWindow>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow)
|
||||
I_BaseType(osg::GraphicsContext);
|
||||
I_BaseType(osgGA::GUIActionAdapter);
|
||||
I_Constructor0(____GraphicsWindow,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue,
|
||||
__void__setEventQueue__osgGA_EventQueue_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::EventQueue *, getEventQueue,
|
||||
__osgGA_EventQueue_P1__getEventQueue,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgGA::EventQueue *, getEventQueue,
|
||||
__C5_osgGA_EventQueue_P1__getEventQueue,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, realizeImplementation,
|
||||
__bool__realizeImplementation,
|
||||
"Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ",
|
||||
"");
|
||||
I_Method0(bool, isRealizedImplementation,
|
||||
__bool__isRealizedImplementation,
|
||||
"Return true if the graphics context has been realised, and is ready to use, implementation. ",
|
||||
"Pure virtual - must be implemented by concrate implementations of GraphicsContext. ");
|
||||
I_Method0(void, closeImplementation,
|
||||
__void__closeImplementation,
|
||||
"Close the graphics context implementation. ",
|
||||
"Pure virtual - must be implemented by concrate implementations of GraphicsContext. ");
|
||||
I_Method0(void, makeCurrentImplementation,
|
||||
__void__makeCurrentImplementation,
|
||||
"Make this graphics context current implementation. ",
|
||||
"Pure virtual - must be implemented by concrate implementations of GraphicsContext. ");
|
||||
I_Method1(void, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x,
|
||||
__void__makeContextCurrentImplementation__GraphicsContext_P1,
|
||||
"Make this graphics context current with specified read context implementation. ",
|
||||
"Pure virtual - must be implemented by concrate implementations of GraphicsContext. ");
|
||||
I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x,
|
||||
__void__bindPBufferToTextureImplementation__GLenum,
|
||||
"Pure virtual, Bind the graphics context to associated texture implementation. ",
|
||||
"Pure virtual - must be implemented by concrate implementations of GraphicsContext. ");
|
||||
I_Method0(void, swapBuffersImplementation,
|
||||
__void__swapBuffersImplementation,
|
||||
"Swap the front and back buffers implementation. ",
|
||||
"Pure virtual - must be implemented by Concrate implementations of GraphicsContext. ");
|
||||
I_Method0(void, requestRedraw,
|
||||
__void__requestRedraw,
|
||||
"requestRedraw() requests a single redraw. ",
|
||||
"");
|
||||
I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true,
|
||||
__void__requestContinuousUpdate__bool,
|
||||
"requestContinousUpdate(bool) is for en/disabling a throw or idle callback to be requested by a GUIEventHandler (typically a MatrixManipulator, though other GUIEventHandler's may also provide functionality). ",
|
||||
"GUI toolkits can respond to this immediately by registering an idle/timed callback, or can delay setting the callback and update at their own leisure.");
|
||||
I_Method2(void, requestWarpPointer, IN, float, x, IN, float, x,
|
||||
__void__requestWarpPointer__float__float,
|
||||
"requestWarpPointer(int,int) is requesting a repositioning of the mouse pointer to a specified x,y location on the window. ",
|
||||
"This is used by some camera manipulators to initialise the mouse pointer when mouse position relative to a controls neutral mouse position is required, i.e when mimicking a aircrafts joystick.");
|
||||
I_SimpleProperty(osgGA::EventQueue *, EventQueue,
|
||||
__osgGA_EventQueue_P1__getEventQueue,
|
||||
__void__setEventQueue__osgGA_EventQueue_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include <osgDB/DatabasePager>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
#include <osgGA/MatrixManipulator>
|
||||
#include <osgGA/SimpleViewer>
|
||||
#include <osgUtil/SceneView>
|
||||
#include <osgViewer/SimpleViewer>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
@@ -26,10 +26,10 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgGA::SimpleViewer::EventHandlers);
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::SimpleViewer::EventHandlers);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgGA::SimpleViewer)
|
||||
I_VirtualBaseType(osgGA::GraphicsWindow);
|
||||
BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer)
|
||||
I_VirtualBaseType(osgViewer::GraphicsWindow);
|
||||
I_Constructor0(____SimpleViewer,
|
||||
"",
|
||||
"");
|
||||
@@ -54,26 +54,26 @@ BEGIN_OBJECT_REFLECTOR(osgGA::SimpleViewer)
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator,
|
||||
__void__setCameraManipulator__MatrixManipulator_P1,
|
||||
__void__setCameraManipulator__osgGA_MatrixManipulator_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::MatrixManipulator *, getCameraManipulator,
|
||||
__MatrixManipulator_P1__getCameraManipulator,
|
||||
__osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator,
|
||||
__C5_MatrixManipulator_P1__getCameraManipulator,
|
||||
__C5_osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler,
|
||||
__void__addEventHandler__GUIEventHandler_P1,
|
||||
__void__addEventHandler__osgGA_GUIEventHandler_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::SimpleViewer::EventHandlers &, getEventHandlers,
|
||||
I_Method0(osgViewer::SimpleViewer::EventHandlers &, getEventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgGA::SimpleViewer::EventHandlers &, getEventHandlers,
|
||||
I_Method0(const osgViewer::SimpleViewer::EventHandlers &, getEventHandlers,
|
||||
__C5_EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
@@ -137,12 +137,12 @@ BEGIN_OBJECT_REFLECTOR(osgGA::SimpleViewer)
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
0);
|
||||
I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator,
|
||||
__MatrixManipulator_P1__getCameraManipulator,
|
||||
__void__setCameraManipulator__MatrixManipulator_P1);
|
||||
__osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
__void__setCameraManipulator__osgGA_MatrixManipulator_P1);
|
||||
I_SimpleProperty(osgDB::DatabasePager *, DatabasePager,
|
||||
__osgDB_DatabasePager_P1__getDatabasePager,
|
||||
__void__setDatabasePager__osgDB_DatabasePager_P1);
|
||||
I_SimpleProperty(osgGA::SimpleViewer::EventHandlers &, EventHandlers,
|
||||
I_SimpleProperty(osgViewer::SimpleViewer::EventHandlers &, EventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
0);
|
||||
I_SimpleProperty(osg::Node *, SceneData,
|
||||
@@ -153,38 +153,3 @@ BEGIN_OBJECT_REFLECTOR(osgGA::SimpleViewer)
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >)
|
||||
I_Constructor0(____ref_ptr,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osgGA::GUIEventHandler *, ptr,
|
||||
____ref_ptr__T_P1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp,
|
||||
____ref_ptr__C5_ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::GUIEventHandler *, get,
|
||||
__T_P1__get,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, valid,
|
||||
__bool__valid,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::GUIEventHandler *, release,
|
||||
__T_P1__release,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp,
|
||||
__void__swap__ref_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgGA::GUIEventHandler *, ,
|
||||
__T_P1__get,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >);
|
||||
|
||||
Reference in New Issue
Block a user