diff --git a/src/osgWrappers/osg/GraphicsContext.cpp b/src/osgWrappers/osg/GraphicsContext.cpp index 760b06c79..4611cf6b8 100644 --- a/src/osgWrappers/osg/GraphicsContext.cpp +++ b/src/osgWrappers/osg/GraphicsContext.cpp @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -268,6 +269,21 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) __C5_Cameras_R1__getCameras, "Get the the const list of cameras associated with this graphics context. ", ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_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_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface, __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S, "Set the querry the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ", @@ -311,24 +327,6 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); - I_ProtectedMethod1(bool, isSameKindAs, IN, const osg::Object *, object, - Properties::VIRTUAL, - Properties::CONST, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_ProtectedMethod0(const char *, libraryName, - Properties::VIRTUAL, - Properties::CONST, - __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_ProtectedMethod0(const char *, className, - Properties::VIRTUAL, - Properties::CONST, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); I_ProtectedMethod1(void, addCamera, IN, osg::Camera *, camera, Properties::NON_VIRTUAL, Properties::NON_CONST, diff --git a/src/osgWrappers/osgViewer/GraphicsWindow.cpp b/src/osgWrappers/osgViewer/GraphicsWindow.cpp index 55d446511..9efd1ecd6 100644 --- a/src/osgWrappers/osgViewer/GraphicsWindow.cpp +++ b/src/osgWrappers/osgViewer/GraphicsWindow.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include @@ -55,6 +56,21 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) I_Constructor0(____GraphicsWindow, "", ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_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, setEventQueue, IN, osgGA::EventQueue *, eventQueue, Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, @@ -211,6 +227,21 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindowEmbedded) ____GraphicsWindowEmbedded__int__int__int__int, "", ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_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_Method0(void, init, Properties::NON_VIRTUAL, __void__init,