Renamed osg::CameraNode to osg::Camera, cleaned up osg::View.
Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer and GraphicsWindowProxy files.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/ColorMask>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/GraphicsContext>
|
||||
@@ -35,49 +35,49 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::map< osg::CameraNode::BufferComponent COMMA osg::CameraNode::Attachment >, osg::CameraNode::BufferAttachmentMap);
|
||||
TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >, osg::Camera::BufferAttachmentMap);
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::CameraNode::TransformOrder)
|
||||
I_EnumLabel(osg::CameraNode::PRE_MULTIPLY);
|
||||
I_EnumLabel(osg::CameraNode::POST_MULTIPLY);
|
||||
BEGIN_ENUM_REFLECTOR(osg::Camera::TransformOrder)
|
||||
I_EnumLabel(osg::Camera::PRE_MULTIPLY);
|
||||
I_EnumLabel(osg::Camera::POST_MULTIPLY);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::CameraNode::RenderOrder)
|
||||
I_EnumLabel(osg::CameraNode::PRE_RENDER);
|
||||
I_EnumLabel(osg::CameraNode::NESTED_RENDER);
|
||||
I_EnumLabel(osg::CameraNode::POST_RENDER);
|
||||
BEGIN_ENUM_REFLECTOR(osg::Camera::RenderOrder)
|
||||
I_EnumLabel(osg::Camera::PRE_RENDER);
|
||||
I_EnumLabel(osg::Camera::NESTED_RENDER);
|
||||
I_EnumLabel(osg::Camera::POST_RENDER);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::CameraNode::RenderTargetImplementation)
|
||||
I_EnumLabel(osg::CameraNode::FRAME_BUFFER_OBJECT);
|
||||
I_EnumLabel(osg::CameraNode::PIXEL_BUFFER_RTT);
|
||||
I_EnumLabel(osg::CameraNode::PIXEL_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::FRAME_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::SEPERATE_WINDOW);
|
||||
BEGIN_ENUM_REFLECTOR(osg::Camera::RenderTargetImplementation)
|
||||
I_EnumLabel(osg::Camera::FRAME_BUFFER_OBJECT);
|
||||
I_EnumLabel(osg::Camera::PIXEL_BUFFER_RTT);
|
||||
I_EnumLabel(osg::Camera::PIXEL_BUFFER);
|
||||
I_EnumLabel(osg::Camera::FRAME_BUFFER);
|
||||
I_EnumLabel(osg::Camera::SEPERATE_WINDOW);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ENUM_REFLECTOR(osg::CameraNode::BufferComponent)
|
||||
I_EnumLabel(osg::CameraNode::DEPTH_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::STENCIL_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER0);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER1);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER2);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER3);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER4);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER5);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER6);
|
||||
I_EnumLabel(osg::CameraNode::COLOR_BUFFER7);
|
||||
BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent)
|
||||
I_EnumLabel(osg::Camera::DEPTH_BUFFER);
|
||||
I_EnumLabel(osg::Camera::STENCIL_BUFFER);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER0);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER1);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER2);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER3);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER4);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER5);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER6);
|
||||
I_EnumLabel(osg::Camera::COLOR_BUFFER7);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
BEGIN_OBJECT_REFLECTOR(osg::Camera)
|
||||
I_BaseType(osg::Transform);
|
||||
I_BaseType(osg::CullSettings);
|
||||
I_Constructor0(____CameraNode,
|
||||
I_Constructor0(____Camera,
|
||||
"",
|
||||
"");
|
||||
I_ConstructorWithDefaults2(IN, const osg::CameraNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____CameraNode__C5_CameraNode_R1__C5_CopyOp_R1,
|
||||
I_ConstructorWithDefaults2(IN, const osg::Camera &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____Camera__C5_Camera_R1__C5_CopyOp_R1,
|
||||
"Copy constructor using CopyOp to manage deep vs shallow copy. ",
|
||||
"");
|
||||
I_Method0(osg::Object *, cloneType,
|
||||
@@ -164,11 +164,11 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__Viewport_P1__getViewport,
|
||||
"Get the viewport. ",
|
||||
"");
|
||||
I_Method1(void, setTransformOrder, IN, osg::CameraNode::TransformOrder, order,
|
||||
I_Method1(void, setTransformOrder, IN, osg::Camera::TransformOrder, order,
|
||||
__void__setTransformOrder__TransformOrder,
|
||||
"Set the transformation order for world-to-local and local-to-world transformation. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode::TransformOrder, getTransformOrder,
|
||||
I_Method0(osg::Camera::TransformOrder, getTransformOrder,
|
||||
__TransformOrder__getTransformOrder,
|
||||
"Get the transformation order. ",
|
||||
"");
|
||||
@@ -244,11 +244,11 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__Matrixd__getInverseViewMatrix,
|
||||
"Get the inverse view matrix. ",
|
||||
"");
|
||||
I_MethodWithDefaults2(void, setRenderOrder, IN, osg::CameraNode::RenderOrder, order, , IN, int, orderNum, 0,
|
||||
I_MethodWithDefaults2(void, setRenderOrder, IN, osg::Camera::RenderOrder, order, , IN, int, orderNum, 0,
|
||||
__void__setRenderOrder__RenderOrder__int,
|
||||
"Set the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. ",
|
||||
"For rendering to a texture, one typically uses PRE_RENDER. For Head Up Displays, one would typically use POST_RENDER. ");
|
||||
I_Method0(osg::CameraNode::RenderOrder, getRenderOrder,
|
||||
I_Method0(osg::Camera::RenderOrder, getRenderOrder,
|
||||
__RenderOrder__getRenderOrder,
|
||||
"Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. ",
|
||||
"");
|
||||
@@ -260,19 +260,19 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__bool__isRenderToTextureCamera,
|
||||
"Return true if this Camera is set up as a render to texture camera, i.e. ",
|
||||
"it has textures assigned to it. ");
|
||||
I_Method1(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl,
|
||||
I_Method1(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl,
|
||||
__void__setRenderTargetImplementation__RenderTargetImplementation,
|
||||
"Set the render target. ",
|
||||
"");
|
||||
I_Method2(void, setRenderTargetImplementation, IN, osg::CameraNode::RenderTargetImplementation, impl, IN, osg::CameraNode::RenderTargetImplementation, fallback,
|
||||
I_Method2(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, IN, osg::Camera::RenderTargetImplementation, fallback,
|
||||
__void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation,
|
||||
"Set the render target and fall-back that's used if the former isn't available. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetImplementation,
|
||||
I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetImplementation,
|
||||
__RenderTargetImplementation__getRenderTargetImplementation,
|
||||
"Get the render target. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode::RenderTargetImplementation, getRenderTargetFallback,
|
||||
I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetFallback,
|
||||
__RenderTargetImplementation__getRenderTargetFallback,
|
||||
"Get the render target fallback. ",
|
||||
"");
|
||||
@@ -292,27 +292,27 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__GLenum__getReadBuffer,
|
||||
"Get the read buffer for any required copy operations to use. ",
|
||||
"");
|
||||
I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, GLenum, internalFormat,
|
||||
I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, GLenum, internalFormat,
|
||||
__void__attach__BufferComponent__GLenum,
|
||||
"",
|
||||
"");
|
||||
I_MethodWithDefaults5(void, attach, IN, osg::CameraNode::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false,
|
||||
I_MethodWithDefaults5(void, attach, IN, osg::Camera::BufferComponent, buffer, , IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, IN, bool, mipMapGeneration, false,
|
||||
__void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, attach, IN, osg::CameraNode::BufferComponent, buffer, IN, osg::Image *, image,
|
||||
I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image,
|
||||
__void__attach__BufferComponent__osg_Image_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, detach, IN, osg::CameraNode::BufferComponent, buffer,
|
||||
I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer,
|
||||
__void__detach__BufferComponent,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap,
|
||||
I_Method0(osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap,
|
||||
__BufferAttachmentMap_R1__getBufferAttachmentMap,
|
||||
"Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode::BufferAttachmentMap &, getBufferAttachmentMap,
|
||||
I_Method0(const osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap,
|
||||
__C5_BufferAttachmentMap_R1__getBufferAttachmentMap,
|
||||
"Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ",
|
||||
"");
|
||||
@@ -340,15 +340,15 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__C5_osg_Object_P1__getRenderingCache__unsigned_int,
|
||||
"Get the const Rendering object that is used to implement rendering of the subgraph. ",
|
||||
"");
|
||||
I_Method1(void, setPostDrawCallback, IN, osg::CameraNode::DrawCallback *, cb,
|
||||
I_Method1(void, setPostDrawCallback, IN, osg::Camera::DrawCallback *, cb,
|
||||
__void__setPostDrawCallback__DrawCallback_P1,
|
||||
"Set the post draw callback for custom operations to do done after the drawing of the camera's subgraph has been completed. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode::DrawCallback *, getPostDrawCallback,
|
||||
I_Method0(osg::Camera::DrawCallback *, getPostDrawCallback,
|
||||
__DrawCallback_P1__getPostDrawCallback,
|
||||
"Get the post draw callback. ",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode::DrawCallback *, getPostDrawCallback,
|
||||
I_Method0(const osg::Camera::DrawCallback *, getPostDrawCallback,
|
||||
__C5_DrawCallback_P1__getPostDrawCallback,
|
||||
"Get the const post draw callback. ",
|
||||
"");
|
||||
@@ -368,7 +368,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1,
|
||||
"Transform method that must be defined to provide generic interface for scene graph traversals. ",
|
||||
"");
|
||||
I_SimpleProperty(osg::CameraNode::BufferAttachmentMap &, BufferAttachmentMap,
|
||||
I_SimpleProperty(osg::Camera::BufferAttachmentMap &, BufferAttachmentMap,
|
||||
__BufferAttachmentMap_R1__getBufferAttachmentMap,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Vec4 &, ClearColor,
|
||||
@@ -392,7 +392,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
I_SimpleProperty(osg::Matrixd, InverseViewMatrix,
|
||||
__Matrixd__getInverseViewMatrix,
|
||||
0);
|
||||
I_SimpleProperty(osg::CameraNode::DrawCallback *, PostDrawCallback,
|
||||
I_SimpleProperty(osg::Camera::DrawCallback *, PostDrawCallback,
|
||||
__DrawCallback_P1__getPostDrawCallback,
|
||||
__void__setPostDrawCallback__DrawCallback_P1);
|
||||
I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix,
|
||||
@@ -401,23 +401,23 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
I_SimpleProperty(GLenum, ReadBuffer,
|
||||
__GLenum__getReadBuffer,
|
||||
__void__setReadBuffer__GLenum);
|
||||
I_SimpleProperty(osg::CameraNode::RenderOrder, RenderOrder,
|
||||
I_SimpleProperty(osg::Camera::RenderOrder, RenderOrder,
|
||||
__RenderOrder__getRenderOrder,
|
||||
0);
|
||||
I_SimpleProperty(int, RenderOrderNum,
|
||||
__int__getRenderOrderNum,
|
||||
0);
|
||||
I_SimpleProperty(osg::CameraNode::RenderTargetImplementation, RenderTargetFallback,
|
||||
I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetFallback,
|
||||
__RenderTargetImplementation__getRenderTargetFallback,
|
||||
0);
|
||||
I_SimpleProperty(osg::CameraNode::RenderTargetImplementation, RenderTargetImplementation,
|
||||
I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetImplementation,
|
||||
__RenderTargetImplementation__getRenderTargetImplementation,
|
||||
__void__setRenderTargetImplementation__RenderTargetImplementation);
|
||||
I_IndexedProperty(osg::Object *, RenderingCache,
|
||||
__osg_Object_P1__getRenderingCache__unsigned_int,
|
||||
__void__setRenderingCache__unsigned_int__osg_Object_P1,
|
||||
0);
|
||||
I_SimpleProperty(osg::CameraNode::TransformOrder, TransformOrder,
|
||||
I_SimpleProperty(osg::Camera::TransformOrder, TransformOrder,
|
||||
__TransformOrder__getTransformOrder,
|
||||
__void__setTransformOrder__TransformOrder);
|
||||
I_SimpleProperty(osg::View *, View,
|
||||
@@ -431,7 +431,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode)
|
||||
__void__setViewport__osg_Viewport_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::CameraNode::Attachment)
|
||||
BEGIN_VALUE_REFLECTOR(osg::Camera::Attachment)
|
||||
I_Constructor0(____Attachment,
|
||||
"",
|
||||
"");
|
||||
@@ -455,12 +455,12 @@ BEGIN_VALUE_REFLECTOR(osg::CameraNode::Attachment)
|
||||
I_PublicMemberProperty(bool, _mipMapGeneration);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osg::CameraNode::DrawCallback)
|
||||
BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback)
|
||||
I_VirtualBaseType(osg::Object);
|
||||
I_Constructor0(____DrawCallback,
|
||||
"",
|
||||
"");
|
||||
I_Constructor2(IN, const osg::CameraNode::DrawCallback &, x, IN, const osg::CopyOp &, x,
|
||||
I_Constructor2(IN, const osg::Camera::DrawCallback &, x, IN, const osg::CopyOp &, x,
|
||||
____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1,
|
||||
"",
|
||||
"");
|
||||
@@ -486,5 +486,5 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraNode::DrawCallback)
|
||||
"Must be defined by derived classes. ");
|
||||
END_REFLECTOR
|
||||
|
||||
STD_MAP_REFLECTOR(std::map< osg::CameraNode::BufferComponent COMMA osg::CameraNode::Attachment >);
|
||||
STD_MAP_REFLECTOR(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/FrameBufferObject>
|
||||
#include <osg/Object>
|
||||
@@ -113,8 +113,8 @@ BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment)
|
||||
____FrameBufferAttachment__TextureRectangle_P1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, osg::CameraNode::Attachment &, attachment,
|
||||
____FrameBufferAttachment__CameraNode_Attachment_R1,
|
||||
I_Constructor1(IN, osg::Camera::Attachment &, attachment,
|
||||
____FrameBufferAttachment__Camera_Attachment_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext,
|
||||
|
||||
@@ -15,7 +15,7 @@ CXXFILES =\
|
||||
BoundingBox.cpp\
|
||||
BoundingSphere.cpp\
|
||||
BufferObject.cpp\
|
||||
CameraNode.cpp\
|
||||
Camera.cpp\
|
||||
CameraView.cpp\
|
||||
ClampColor.cpp\
|
||||
ClearNode.cpp\
|
||||
|
||||
@@ -102,6 +102,10 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd)
|
||||
__void__makeIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, isIdentity,
|
||||
__bool__isIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, makeScale, IN, const osg::Vec3f &, x,
|
||||
__void__makeScale__C5_Vec3f_R1,
|
||||
"",
|
||||
@@ -246,14 +250,6 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd)
|
||||
__Vec4d__postMult__C5_Vec4d_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, set, IN, const osg::Quat &, q,
|
||||
__void__set__C5_Quat_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, get, IN, osg::Quat &, q,
|
||||
__void__get__Quat_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setRotate, IN, const osg::Quat &, q,
|
||||
__void__setRotate__C5_Quat_R1,
|
||||
"",
|
||||
|
||||
@@ -98,6 +98,10 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf)
|
||||
__C5_value_type_P1__ptr,
|
||||
"",
|
||||
"");
|
||||
I_Method0(bool, isIdentity,
|
||||
__bool__isIdentity,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, makeIdentity,
|
||||
__void__makeIdentity,
|
||||
"",
|
||||
@@ -246,14 +250,6 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf)
|
||||
__Vec4d__postMult__C5_Vec4d_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, set, IN, const osg::Quat &, q,
|
||||
__void__set__C5_Quat_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, get, IN, osg::Quat &, q,
|
||||
__void__get__Quat_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setRotate, IN, const osg::Quat &, q,
|
||||
__void__setRotate__C5_Quat_R1,
|
||||
"",
|
||||
|
||||
@@ -82,7 +82,7 @@ BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osg::Node >)
|
||||
____observer_ptr__C5_observer_ptr_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, objectDeleted, IN, void *, ptr,
|
||||
I_Method1(void, objectDeleted, IN, void *, x,
|
||||
__void__objectDeleted__void_P1,
|
||||
"",
|
||||
"");
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Billboard>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/CameraView>
|
||||
#include <osg/ClearNode>
|
||||
#include <osg/ClipNode>
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <osg/TexGenNode>
|
||||
#include <osg/Transform>
|
||||
#include <osg/Vec3>
|
||||
#include <osg/View>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
@@ -221,12 +220,8 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeVisitor)
|
||||
__void__apply__Transform_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::View &, node,
|
||||
__void__apply__View_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::CameraNode &, node,
|
||||
__void__apply__CameraNode_R1,
|
||||
I_Method1(void, apply, IN, osg::Camera &, node,
|
||||
__void__apply__Camera_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::CameraView &, node,
|
||||
|
||||
@@ -121,6 +121,10 @@ BEGIN_VALUE_REFLECTOR(osg::Plane)
|
||||
__float__distance__C5_osg_Vec3_R1,
|
||||
"calculate the distance between a point and the plane. ",
|
||||
"");
|
||||
I_Method1(float, dotProductNormal, IN, const osg::Vec3 &, v,
|
||||
__float__dotProductNormal__C5_osg_Vec3_R1,
|
||||
"calculate the dot product of the plane normal and a point. ",
|
||||
"");
|
||||
I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices,
|
||||
__int__intersect__C5_std_vectorT1_Vec3__R1,
|
||||
"intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. ",
|
||||
|
||||
@@ -10,14 +10,9 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Camera>
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Matrixd>
|
||||
#include <osg/Matrixf>
|
||||
#include <osg/NodeVisitor>
|
||||
#include <osg/Object>
|
||||
#include <osg/Vec3>
|
||||
#include <osg/View>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
@@ -29,182 +24,71 @@
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osg::View)
|
||||
I_BaseType(osg::Transform);
|
||||
I_BaseType(osg::CullSettings);
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0(____View,
|
||||
"",
|
||||
"");
|
||||
I_ConstructorWithDefaults2(IN, const osg::View &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____View__C5_View_R1__C5_CopyOp_R1,
|
||||
"Copy constructor using CopyOp to manage deep vs shallow copy. ",
|
||||
"");
|
||||
I_Method0(osg::Object *, cloneType,
|
||||
__osg_Object_P1__cloneType,
|
||||
"clone an object of the same type as the node. ",
|
||||
I_Method1(void, setCamera, IN, osg::Camera *, camera,
|
||||
__void__setCamera__osg_Camera_P1,
|
||||
"Set the master camera of the view. ",
|
||||
"");
|
||||
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop,
|
||||
__osg_Object_P1__clone__C5_osg_CopyOp_R1,
|
||||
"return a clone of a node, with Object* return type. ",
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"Get the master camera of the view. ",
|
||||
"");
|
||||
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj,
|
||||
__bool__isSameKindAs__C5_osg_Object_P1,
|
||||
"return true if this and obj are of the same kind of object. ",
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"Get the const master camera of the view. ",
|
||||
"");
|
||||
I_Method0(const char *, className,
|
||||
__C5_char_P1__className,
|
||||
"return the name of the node's class type. ",
|
||||
"");
|
||||
I_Method0(const char *, libraryName,
|
||||
__C5_char_P1__libraryName,
|
||||
"return the name of the node's library. ",
|
||||
"");
|
||||
I_Method1(void, accept, IN, osg::NodeVisitor &, nv,
|
||||
__void__accept__osg_NodeVisitor_R1,
|
||||
"Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ",
|
||||
"");
|
||||
I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix,
|
||||
__void__setProjectionMatrix__C5_osg_Matrixf_R1,
|
||||
"Set the projection matrix. ",
|
||||
"Can be thought of as setting the lens of a camera. ");
|
||||
I_Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix,
|
||||
__void__setProjectionMatrix__C5_osg_Matrixd_R1,
|
||||
"Set the projection matrix. ",
|
||||
"Can be thought of as setting the lens of a camera. ");
|
||||
I_Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar,
|
||||
__void__setProjectionMatrixAsOrtho__double__double__double__double__double__double,
|
||||
"Set to an orthographic projection. ",
|
||||
"See OpenGL glOrtho for documentation further details. ");
|
||||
I_Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top,
|
||||
__void__setProjectionMatrixAsOrtho2D__double__double__double__double,
|
||||
"Set to a 2D orthographic projection. ",
|
||||
"See OpenGL glOrtho2D documentation for further details. ");
|
||||
I_Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar,
|
||||
__void__setProjectionMatrixAsFrustum__double__double__double__double__double__double,
|
||||
"Set to a perspective projection. ",
|
||||
"See OpenGL glFrustum documentation for further details. ");
|
||||
I_Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar,
|
||||
__void__setProjectionMatrixAsPerspective__double__double__double__double,
|
||||
"Create a symmetrical perspective projection, See OpenGL gluPerspective documentation for further details. ",
|
||||
"Aspect ratio is defined as width/height. ");
|
||||
I_Method0(osg::Matrixd &, getProjectionMatrix,
|
||||
__osg_Matrixd_R1__getProjectionMatrix,
|
||||
"Get the projection matrix. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrixd &, getProjectionMatrix,
|
||||
__C5_osg_Matrixd_R1__getProjectionMatrix,
|
||||
"Get the const projection matrix. ",
|
||||
"");
|
||||
I_Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar,
|
||||
__bool__getProjectionMatrixAsOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1,
|
||||
"Get the othographic settings of the orthographic projection matrix. ",
|
||||
"Returns false if matrix is not an orthographic matrix, where parameter values are undefined. ");
|
||||
I_Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar,
|
||||
__bool__getProjectionMatrixAsFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1,
|
||||
"Get the frustum setting of a perspective projection matrix. ",
|
||||
"Returns false if matrix is not a perspective matrix, where parameter values are undefined. ");
|
||||
I_Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar,
|
||||
__bool__getProjectionMatrixAsPerspective__double_R1__double_R1__double_R1__double_R1,
|
||||
"Get the frustum setting of a symmetric perspective projection matrix. ",
|
||||
"Returns false if matrix is not a perspective matrix, where parameter values are undefined. Note, if matrix is not a symmetric perspective matrix then the shear will be lost. Asymmetric matrices occur when stereo, power walls, caves and reality center display are used. In these configurations one should use the 'getProjectionMatrixAsFrustum' method instead. ");
|
||||
I_Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix,
|
||||
__void__setViewMatrix__C5_osg_Matrixf_R1,
|
||||
"Set the view matrix. ",
|
||||
"Can be thought of as setting the position of the world relative to the camera in camera coordinates. ");
|
||||
I_Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix,
|
||||
__void__setViewMatrix__C5_osg_Matrixd_R1,
|
||||
"Set the view matrix. ",
|
||||
"Can be thought of as setting the position of the world relative to the camera in camera coordinates. ");
|
||||
I_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up,
|
||||
__void__setViewMatrixAsLookAt__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1,
|
||||
"Set to the position and orientation of view matrix, using the same convention as gluLookAt. ",
|
||||
"");
|
||||
I_Method0(osg::Matrixd &, getViewMatrix,
|
||||
__osg_Matrixd_R1__getViewMatrix,
|
||||
"Get the view matrix. ",
|
||||
"");
|
||||
I_Method0(const osg::Matrixd &, getViewMatrix,
|
||||
__C5_osg_Matrixd_R1__getViewMatrix,
|
||||
"Get the const view matrix. ",
|
||||
"");
|
||||
I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f,
|
||||
__void__getViewMatrixAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1__float,
|
||||
"Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ",
|
||||
"");
|
||||
I_Method0(osg::Matrixd, getInverseViewMatrix,
|
||||
__Matrixd__getInverseViewMatrix,
|
||||
"Get the inverse view matrix. ",
|
||||
"");
|
||||
I_Method1(bool, addCamera, IN, osg::CameraNode *, camera,
|
||||
__bool__addCamera__osg_CameraNode_P1,
|
||||
I_Method1(bool, addSlave, IN, osg::Camera *, camera,
|
||||
__bool__addSlave__osg_Camera_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method3(bool, addCamera, IN, osg::CameraNode *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse,
|
||||
__bool__addCamera__osg_CameraNode_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1,
|
||||
I_Method3(bool, addSlave, IN, osg::Camera *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse,
|
||||
__bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, removeCamera, IN, unsigned int, pos,
|
||||
__bool__removeCamera__unsigned_int,
|
||||
I_Method1(bool, removeSlave, IN, unsigned int, pos,
|
||||
__bool__removeSlave__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method0(unsigned int, getNumCameras,
|
||||
__unsigned_int__getNumCameras,
|
||||
I_Method0(unsigned int, getNumSlaves,
|
||||
__unsigned_int__getNumSlaves,
|
||||
"",
|
||||
"");
|
||||
I_Method1(osg::CameraNode *, getCamera, IN, unsigned int, pos,
|
||||
__CameraNode_P1__getCamera__unsigned_int,
|
||||
I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos,
|
||||
__Slave_R1__getSlave__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method1(const osg::CameraNode *, getCamera, IN, unsigned int, pos,
|
||||
__C5_CameraNode_P1__getCamera__unsigned_int,
|
||||
I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos,
|
||||
__C5_Slave_R1__getSlave__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method1(osg::View::CameraData &, getCameraData, IN, unsigned int, pos,
|
||||
__CameraData_R1__getCameraData__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method1(const osg::View::CameraData &, getCameraData, IN, unsigned int, pos,
|
||||
__C5_CameraData_R1__getCameraData__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x,
|
||||
__bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1,
|
||||
"Transform method that must be defined to provide generic interface for scene graph traversals. ",
|
||||
"");
|
||||
I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x,
|
||||
__bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1,
|
||||
"Transform method that must be defined to provide generic interface for scene graph traversals. ",
|
||||
"");
|
||||
I_ArrayProperty(osg::CameraNode *, Camera,
|
||||
__CameraNode_P1__getCamera__unsigned_int,
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
__void__setCamera__osg_Camera_P1);
|
||||
I_ArrayProperty(osg::View::Slave &, Slave,
|
||||
__Slave_R1__getSlave__unsigned_int,
|
||||
0,
|
||||
__unsigned_int__getNumCameras,
|
||||
__bool__addCamera__osg_CameraNode_P1,
|
||||
__unsigned_int__getNumSlaves,
|
||||
0,
|
||||
__bool__removeCamera__unsigned_int);
|
||||
I_SimpleProperty(osg::Matrixd, InverseViewMatrix,
|
||||
__Matrixd__getInverseViewMatrix,
|
||||
0);
|
||||
I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix,
|
||||
__C5_osg_Matrixd_R1__getProjectionMatrix,
|
||||
__void__setProjectionMatrix__C5_osg_Matrixd_R1);
|
||||
I_SimpleProperty(const osg::Matrixd &, ViewMatrix,
|
||||
__C5_osg_Matrixd_R1__getViewMatrix,
|
||||
__void__setViewMatrix__C5_osg_Matrixd_R1);
|
||||
0,
|
||||
__bool__removeSlave__unsigned_int);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osg::View::CameraData)
|
||||
I_Constructor0(____CameraData,
|
||||
BEGIN_VALUE_REFLECTOR(osg::View::Slave)
|
||||
I_Constructor0(____Slave,
|
||||
"",
|
||||
"");
|
||||
I_Constructor3(IN, osg::CameraNode *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset,
|
||||
____CameraData__osg_CameraNode_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1,
|
||||
I_Constructor3(IN, osg::Camera *, camera, IN, const osg::Matrixd &, projectionOffset, IN, const osg::Matrixd &, viewOffset,
|
||||
____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1,
|
||||
"",
|
||||
"");
|
||||
I_Constructor1(IN, const osg::View::CameraData &, rhs,
|
||||
____CameraData__C5_CameraData_R1,
|
||||
I_Constructor1(IN, const osg::View::Slave &, rhs,
|
||||
____Slave__C5_Slave_R1,
|
||||
"",
|
||||
"");
|
||||
I_PublicMemberProperty(osg::ref_ptr< osg::CameraNode >, _camera);
|
||||
I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera);
|
||||
I_PublicMemberProperty(osg::Matrixd, _projectionOffset);
|
||||
I_PublicMemberProperty(osg::Matrixd, _viewOffset);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -76,13 +76,3 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler)
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor)
|
||||
I_Constructor0(____GUIEventHandlerVisitor,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x,
|
||||
__void__visit__GUIEventHandler_R1,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ CXXFILES =\
|
||||
Viewer.cpp\
|
||||
ViewerEventHandler.cpp\
|
||||
|
||||
LIBS += -losgProducer -losg -losgIntrospection -losgUtil -losgGA -losgDB -lProducer -losgGA -losgText $(GL_LIBS) $(OTHER_LIBS)
|
||||
LIBS += -losgProducer -losg -losgIntrospection -losgUtil -losgDB -lProducer -losgGA -losgText $(GL_LIBS) $(OTHER_LIBS)
|
||||
|
||||
OPTF = -O
|
||||
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
#include <osg/Matrix>
|
||||
#include <osg/Node>
|
||||
#include <osg/Object>
|
||||
#include <osg/Polytope>
|
||||
#include <osg/RenderInfo>
|
||||
#include <osg/Vec4>
|
||||
#include <osgShadow/OccluderGeometry>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
@@ -31,8 +33,6 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List)
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList);
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< osgShadow::OccluderGeometry::Edge >, osgShadow::OccluderGeometry::EdgeList);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry)
|
||||
I_BaseType(osg::Drawable);
|
||||
I_Constructor0(____OccluderGeometry,
|
||||
@@ -70,6 +70,22 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry)
|
||||
__void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float,
|
||||
"Compute an occluder geometry containing the geometry in specified drawable. ",
|
||||
"");
|
||||
I_Method2(void, comptueShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg,
|
||||
__void__comptueShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1,
|
||||
"Compute ShadowVolumeGeometry. ",
|
||||
"");
|
||||
I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope,
|
||||
__void__setBoundingPolytope__C5_osg_Polytope_R1,
|
||||
"Set the bounding polytope of the OccluderGeometry. ",
|
||||
"");
|
||||
I_Method0(osg::Polytope &, getBoundingPolytope,
|
||||
__osg_Polytope_R1__getBoundingPolytope,
|
||||
"Get the bounding polytope of the OccluderGeometry. ",
|
||||
"");
|
||||
I_Method0(const osg::Polytope &, getBoundingPolytope,
|
||||
__C5_osg_Polytope_R1__getBoundingPolytope,
|
||||
"Get the const bounding polytope of the OccluderGeometry. ",
|
||||
"");
|
||||
I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
|
||||
__void__drawImplementation__osg_RenderInfo_R1,
|
||||
"Render the occluder geometry. ",
|
||||
@@ -78,23 +94,87 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry)
|
||||
__osg_BoundingBox__computeBound,
|
||||
"Compute the bounding box around occluder geometry. ",
|
||||
"");
|
||||
I_MethodWithDefaults3(void, processGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f,
|
||||
__void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(const osg::Polytope &, BoundingPolytope,
|
||||
__C5_osg_Polytope_R1__getBoundingPolytope,
|
||||
__void__setBoundingPolytope__C5_osg_Polytope_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgShadow::OccluderGeometry::Edge)
|
||||
I_Constructor0(____Edge,
|
||||
TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List);
|
||||
|
||||
TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry)
|
||||
I_BaseType(osg::Drawable);
|
||||
I_Constructor0(____ShadowVolumeGeometry,
|
||||
"",
|
||||
"");
|
||||
I_Constructor4(IN, unsigned int, p1, IN, unsigned int, p2, IN, unsigned int, t1, IN, unsigned int, t2,
|
||||
____Edge__unsigned_int__unsigned_int__unsigned_int__unsigned_int,
|
||||
"",
|
||||
"");
|
||||
I_PublicMemberProperty(unsigned int, _p1);
|
||||
I_PublicMemberProperty(unsigned int, _p2);
|
||||
I_PublicMemberProperty(unsigned int, _t1);
|
||||
I_PublicMemberProperty(unsigned int, _t2);
|
||||
I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY,
|
||||
____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Object *, cloneType,
|
||||
__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,
|
||||
__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,
|
||||
__bool__isSameKindAs__C5_osg_Object_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const char *, libraryName,
|
||||
__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,
|
||||
__C5_char_P1__className,
|
||||
"return the name of the object's class type. ",
|
||||
"Must be defined by derived classes. ");
|
||||
I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices,
|
||||
__void__setVertices__C5_Vec3List_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices,
|
||||
__Vec3List_R1__getVertices,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices,
|
||||
__C5_Vec3List_R1__getVertices,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals,
|
||||
__void__setNormals__C5_Vec3List_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals,
|
||||
__Vec3List_R1__getNormals,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals,
|
||||
__C5_Vec3List_R1__getNormals,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo,
|
||||
__void__drawImplementation__osg_RenderInfo_R1,
|
||||
"Render the occluder geometry. ",
|
||||
"");
|
||||
I_Method0(osg::BoundingBox, computeBound,
|
||||
__osg_BoundingBox__computeBound,
|
||||
"Compute the bounding box around occluder geometry. ",
|
||||
"");
|
||||
I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Normals,
|
||||
__C5_Vec3List_R1__getNormals,
|
||||
__void__setNormals__C5_Vec3List_R1);
|
||||
I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Vertices,
|
||||
__C5_Vec3List_R1__getVertices,
|
||||
__void__setVertices__C5_Vec3List_R1);
|
||||
END_REFLECTOR
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< GLuint >);
|
||||
|
||||
STD_VECTOR_REFLECTOR(std::vector< osgShadow::OccluderGeometry::Edge >);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/BoundingBox>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Drawable>
|
||||
#include <osg/Matrix>
|
||||
@@ -166,21 +166,21 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite)
|
||||
__osg_BoundingBox__computeBound,
|
||||
"Compute the bounding box around Drawables's geometry. ",
|
||||
"");
|
||||
I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera,
|
||||
__void__setCameraNode__osg_CameraNode_P1,
|
||||
I_Method1(void, setCamera, IN, osg::Camera *, camera,
|
||||
__void__setCamera__osg_Camera_P1,
|
||||
"Set the camera node to use for pre rendering the impostor sprite's texture. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode *, getCameraNode,
|
||||
__osg_CameraNode_P1__getCameraNode,
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"Get the camera node to use for pre rendering the impostor sprite's texture. ",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode *, getCameraNode,
|
||||
__C5_osg_CameraNode_P1__getCameraNode,
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"Get the const camera node to use for pre rendering the impostor sprite's texture. ",
|
||||
"");
|
||||
I_SimpleProperty(osg::CameraNode *, CameraNode,
|
||||
__osg_CameraNode_P1__getCameraNode,
|
||||
__void__setCameraNode__osg_CameraNode_P1);
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
__void__setCamera__osg_Camera_P1);
|
||||
I_SimpleProperty(osg::Vec3 *, ControlCoords,
|
||||
__osg_Vec3_P1__getControlCoords,
|
||||
0);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/Node>
|
||||
#include <osg/NodeVisitor>
|
||||
@@ -119,16 +119,16 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode)
|
||||
__unsigned_int__getOverlayTextureSizeHint,
|
||||
"Get the texture size hint. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode *, getCamera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"Get the camera used to implement the render to texture of the overlay subgraph. ",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode *, getCamera,
|
||||
__C5_osg_CameraNode_P1__getCamera,
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"Get the const camera used to implement the render to texture of the overlay subgraph. ",
|
||||
"");
|
||||
I_SimpleProperty(osg::CameraNode *, Camera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
0);
|
||||
I_SimpleProperty(bool, ContinuousUpdate,
|
||||
__bool__getContinuousUpdate,
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
#include <osg/Billboard>
|
||||
#include <osg/BoundingBox>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/ClearNode>
|
||||
#include <osg/ClipNode>
|
||||
#include <osg/Drawable>
|
||||
@@ -124,8 +124,8 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor)
|
||||
__void__apply__osg_ClearNode_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::CameraNode &, node,
|
||||
__void__apply__osg_CameraNode_R1,
|
||||
I_Method1(void, apply, IN, osg::Camera &, node,
|
||||
__void__apply__osg_Camera_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::OccluderNode &, node,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Billboard>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/Drawable>
|
||||
#include <osg/Geode>
|
||||
#include <osg/Group>
|
||||
@@ -280,8 +280,8 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor)
|
||||
__void__apply__osg_Projection_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::CameraNode &, camera,
|
||||
__void__apply__osg_CameraNode_R1,
|
||||
I_Method1(void, apply, IN, osg::Camera &, camera,
|
||||
__void__apply__osg_Camera_R1,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Billboard>
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/Drawable>
|
||||
#include <osg/Geode>
|
||||
#include <osg/Group>
|
||||
@@ -152,8 +152,8 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor)
|
||||
__void__apply__osg_Projection_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, apply, IN, osg::CameraNode &, camera,
|
||||
__void__apply__osg_CameraNode_R1,
|
||||
I_Method1(void, apply, IN, osg::Camera &, camera,
|
||||
__void__apply__osg_Camera_R1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgUtil::Intersector *, Intersector,
|
||||
|
||||
@@ -442,6 +442,10 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor)
|
||||
__void__apply__osg_Transform_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(bool, isOperationPermissible, IN, osg::Node &, node,
|
||||
__bool__isOperationPermissible__osg_Node_R1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, removeRedundantNodes,
|
||||
__void__removeRedundantNodes,
|
||||
"",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/ColorMask>
|
||||
#include <osg/CopyOp>
|
||||
#include <osg/FrameBufferObject>
|
||||
@@ -150,16 +150,16 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage)
|
||||
__int__getClearStencil,
|
||||
"Get the clear color. ",
|
||||
"");
|
||||
I_Method1(void, setCameraNode, IN, osg::CameraNode *, camera,
|
||||
__void__setCameraNode__osg_CameraNode_P1,
|
||||
I_Method1(void, setCamera, IN, osg::Camera *, camera,
|
||||
__void__setCamera__osg_Camera_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::CameraNode *, getCameraNode,
|
||||
__osg_CameraNode_P1__getCameraNode,
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode *, getCameraNode,
|
||||
__C5_osg_CameraNode_P1__getCameraNode,
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCameraRequiresSetUp, IN, bool, flag,
|
||||
@@ -306,9 +306,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage)
|
||||
__bool__getStats__Statistics_R1,
|
||||
"Extract stats for current draw list. ",
|
||||
"");
|
||||
I_SimpleProperty(osg::CameraNode *, CameraNode,
|
||||
__osg_CameraNode_P1__getCameraNode,
|
||||
__void__setCameraNode__osg_CameraNode_P1);
|
||||
I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image,
|
||||
__void__attach__osg_Camera_BufferComponent__osg_Image_P1,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
__void__setCamera__osg_Camera_P1);
|
||||
I_SimpleProperty(bool, CameraRequiresSetUp,
|
||||
__bool__getCameraRequiresSetUp,
|
||||
__void__setCameraRequiresSetUp__bool);
|
||||
@@ -368,3 +372,12 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage)
|
||||
__void__setViewport__osg_Viewport_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgUtil::RenderStage::Attachment)
|
||||
I_Constructor0(____Attachment,
|
||||
"",
|
||||
"");
|
||||
I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image);
|
||||
I_PublicMemberProperty(GLenum, _imageReadPixelFormat);
|
||||
I_PublicMemberProperty(GLenum, _imageReadPixelDataType);
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/CollectOccludersVisitor>
|
||||
#include <osg/DisplaySettings>
|
||||
#include <osg/FrameStamp>
|
||||
@@ -76,16 +76,16 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView)
|
||||
__void__setDefaults__unsigned_int,
|
||||
"Set scene view to use default global state, light, camera and render visitor. ",
|
||||
"");
|
||||
I_Method1(void, setCamera, IN, osg::CameraNode *, camera,
|
||||
__void__setCamera__osg_CameraNode_P1,
|
||||
I_Method1(void, setCamera, IN, osg::Camera *, camera,
|
||||
__void__setCamera__osg_Camera_P1,
|
||||
"Set the camera used to represent the camera view of this SceneView. ",
|
||||
"");
|
||||
I_Method0(osg::CameraNode *, getCamera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"Get the camera used to represent the camera view of this SceneView. ",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode *, getCamera,
|
||||
__C5_osg_CameraNode_P1__getCamera,
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"Get the const camera used to represent the camera view of this SceneView. ",
|
||||
"");
|
||||
I_Method1(void, setSceneData, IN, osg::Node *, node,
|
||||
@@ -583,9 +583,9 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView)
|
||||
I_SimpleProperty(int, ActiveUniforms,
|
||||
__int__getActiveUniforms,
|
||||
__void__setActiveUniforms__int);
|
||||
I_SimpleProperty(osg::CameraNode *, Camera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
__void__setCamera__osg_CameraNode_P1);
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
__void__setCamera__osg_Camera_P1);
|
||||
I_SimpleProperty(const osg::Vec4 &, ClearColor,
|
||||
__C5_osg_Vec4_R1__getClearColor,
|
||||
__void__setClearColor__C5_osg_Vec4_R1);
|
||||
|
||||
88
src/osgWrappers/osgViewer/CompositeViewer.cpp
Normal file
88
src/osgWrappers/osgViewer/CompositeViewer.cpp
Normal file
@@ -0,0 +1,88 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgViewer/CompositeViewer>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer)
|
||||
I_BaseType(osg::Referenced);
|
||||
I_Constructor0(____CompositeViewer,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, addView, IN, osgViewer *, view,
|
||||
__void__addView__osgViewer_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method1(osgViewer *, getView, IN, unsigned, i,
|
||||
__osgViewer_P1__getView__unsigned,
|
||||
"",
|
||||
"");
|
||||
I_Method1(const osgViewer *, getView, IN, unsigned, i,
|
||||
__C5_osgViewer_P1__getView__unsigned,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, getNumViews,
|
||||
__void__getNumViews,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frame,
|
||||
__void__frame,
|
||||
"Render a complete new frame. ",
|
||||
"Calls frameAdvance(), frameEventTraversal(), frameUpateTraversal(), frameCullTraversal() and frameDrawTraversal(). Note, no internal makeCurrent() is issued before, or swap buffers called after frame(), these operations are the responsibility of the calling code. ");
|
||||
I_Method0(void, frameAdvance,
|
||||
__void__frameAdvance,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameEventTraversal,
|
||||
__void__frameEventTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameUpdateTraversal,
|
||||
__void__frameUpdateTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameCullTraversal,
|
||||
__void__frameCullTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameDrawTraversal,
|
||||
__void__frameDrawTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, releaseAllGLObjects,
|
||||
__void__releaseAllGLObjects,
|
||||
"Release all OpenGL objects associated with this viewer's scenegraph. ",
|
||||
"Note, does not deleted the actual OpenGL objects, it just releases them to the pending GL object delete lists which will need flushing once a valid graphics context is obtained. ");
|
||||
I_Method0(void, cleanup,
|
||||
__void__cleanup,
|
||||
"Clean up all OpenGL objects associated with this viewer's scenegraph. ",
|
||||
"Note, must only be called from the graphics context associated with this viewer. ");
|
||||
I_Method0(void, init,
|
||||
__void__init,
|
||||
"",
|
||||
"");
|
||||
I_ArrayProperty(osgViewer *, View,
|
||||
__osgViewer_P1__getView__unsigned,
|
||||
0,
|
||||
__void__getNumViews,
|
||||
__void__addView__osgViewer_P1,
|
||||
0,
|
||||
0);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -2,9 +2,13 @@ TOPDIR = ../../..
|
||||
include $(TOPDIR)/Make/makedefs
|
||||
|
||||
CXXFILES =\
|
||||
Export.cpp\
|
||||
CompositeViewer.cpp\
|
||||
GraphicsWindow.cpp\
|
||||
GraphicsWindowProxy.cpp\
|
||||
Scene.cpp\
|
||||
SimpleViewer.cpp\
|
||||
View.cpp\
|
||||
Viewer.cpp\
|
||||
|
||||
LIBS += -losgViewer -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS)
|
||||
|
||||
|
||||
86
src/osgWrappers/osgViewer/GraphicsWindowProxy.cpp
Normal file
86
src/osgWrappers/osgViewer/GraphicsWindowProxy.cpp
Normal file
@@ -0,0 +1,86 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// 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 <osgViewer/GraphicsWindow>
|
||||
#include <osgViewer/GraphicsWindowProxy>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindowProxy)
|
||||
I_BaseType(osgViewer::GraphicsWindow);
|
||||
I_Constructor0(____GraphicsWindowProxy,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setGraphicsWindowImplentation, IN, osgViewer::GraphicsWindow *, gw,
|
||||
__void__setGraphicsWindowImplentation__osgViewer_GraphicsWindow_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgViewer::GraphicsWindow *, getGraphicsWindowImplentation,
|
||||
__osgViewer_GraphicsWindow_P1__getGraphicsWindowImplentation,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgViewer::GraphicsWindow *, getGraphicsWindowImplentation,
|
||||
__C5_osgViewer_GraphicsWindow_P1__getGraphicsWindowImplentation,
|
||||
"",
|
||||
"");
|
||||
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 *, readContext,
|
||||
__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, buffer,
|
||||
__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, needed, 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, y,
|
||||
__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(osgViewer::GraphicsWindow *, GraphicsWindowImplentation,
|
||||
__osgViewer_GraphicsWindow_P1__getGraphicsWindowImplentation,
|
||||
__void__setGraphicsWindowImplentation__osgViewer_GraphicsWindow_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
111
src/osgWrappers/osgViewer/Scene.cpp
Normal file
111
src/osgWrappers/osgViewer/Scene.cpp
Normal file
@@ -0,0 +1,111 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osgDB/DatabasePager>
|
||||
#include <osgGA/EventQueue>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
#include <osgViewer/Scene>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::Scene::EventHandlers);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgViewer::Scene)
|
||||
I_VirtualBaseType(osg::Referenced);
|
||||
I_Constructor0(____Scene,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setSceneData, IN, osg::Node *, node,
|
||||
__void__setSceneData__osg_Node_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getSceneData,
|
||||
__osg_Node_P1__getSceneData,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Node *, getSceneData,
|
||||
__C5_osg_Node_P1__getSceneData,
|
||||
"",
|
||||
"");
|
||||
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_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler,
|
||||
__void__addEventHandler__osgGA_GUIEventHandler_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgViewer::Scene::EventHandlers &, getEventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgViewer::Scene::EventHandlers &, getEventHandlers,
|
||||
__C5_EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp,
|
||||
__void__setDatabasePager__osgDB_DatabasePager_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgDB::DatabasePager *, getDatabasePager,
|
||||
__osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgDB::DatabasePager *, getDatabasePager,
|
||||
__C5_osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameAdvance,
|
||||
__void__frameAdvance,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameEventTraversal,
|
||||
__void__frameEventTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameUpdateTraversal,
|
||||
__void__frameUpdateTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, init,
|
||||
__void__init,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgDB::DatabasePager *, DatabasePager,
|
||||
__osgDB_DatabasePager_P1__getDatabasePager,
|
||||
__void__setDatabasePager__osgDB_DatabasePager_P1);
|
||||
I_SimpleProperty(osgViewer::Scene::EventHandlers &, EventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
0);
|
||||
I_SimpleProperty(osgGA::EventQueue *, EventQueue,
|
||||
__osgGA_EventQueue_P1__getEventQueue,
|
||||
__void__setEventQueue__osgGA_EventQueue_P1);
|
||||
I_SimpleProperty(osg::Node *, SceneData,
|
||||
__osg_Node_P1__getSceneData,
|
||||
__void__setSceneData__osg_Node_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/CameraNode>
|
||||
#include <osg/Camera>
|
||||
#include <osg/Node>
|
||||
#include <osgDB/DatabasePager>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
@@ -45,12 +45,24 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer)
|
||||
__C5_osg_Node_P1__getSceneData,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::CameraNode *, getCamera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp,
|
||||
__void__setDatabasePager__osgDB_DatabasePager_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::CameraNode *, getCamera,
|
||||
__C5_osg_CameraNode_P1__getCamera,
|
||||
I_Method0(osgDB::DatabasePager *, getDatabasePager,
|
||||
__osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgDB::DatabasePager *, getDatabasePager,
|
||||
__C5_osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Camera *, getCamera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Camera *, getCamera,
|
||||
__C5_osg_Camera_P1__getCamera,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator,
|
||||
@@ -77,18 +89,6 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer)
|
||||
__C5_EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp,
|
||||
__void__setDatabasePager__osgDB_DatabasePager_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgDB::DatabasePager *, getDatabasePager,
|
||||
__osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgDB::DatabasePager *, getDatabasePager,
|
||||
__C5_osgDB_DatabasePager_P1__getDatabasePager,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frame,
|
||||
__void__frame,
|
||||
"Render a complete new frame. ",
|
||||
@@ -133,8 +133,8 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::SimpleViewer)
|
||||
__void__init,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osg::CameraNode *, Camera,
|
||||
__osg_CameraNode_P1__getCamera,
|
||||
I_SimpleProperty(osg::Camera *, Camera,
|
||||
__osg_Camera_P1__getCamera,
|
||||
0);
|
||||
I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator,
|
||||
__osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
|
||||
84
src/osgWrappers/osgViewer/View.cpp
Normal file
84
src/osgWrappers/osgViewer/View.cpp
Normal file
@@ -0,0 +1,84 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osg/Node>
|
||||
#include <osgGA/GUIEventHandler>
|
||||
#include <osgGA/MatrixManipulator>
|
||||
#include <osgViewer/View>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, View::EventHandlers);
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(View)
|
||||
I_VirtualBaseType(osg::View);
|
||||
I_BaseType(osgViewer::Scene);
|
||||
I_Constructor0(____View,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setSceneData, IN, osg::Node *, node,
|
||||
__void__setSceneData__osg_Node_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osg::Node *, getSceneData,
|
||||
__osg_Node_P1__getSceneData,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osg::Node *, getSceneData,
|
||||
__C5_osg_Node_P1__getSceneData,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator,
|
||||
__void__setCameraManipulator__osgGA_MatrixManipulator_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(osgGA::MatrixManipulator *, getCameraManipulator,
|
||||
__osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator,
|
||||
__C5_osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
"",
|
||||
"");
|
||||
I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler,
|
||||
__void__addEventHandler__osgGA_GUIEventHandler_P1,
|
||||
"",
|
||||
"");
|
||||
I_Method0(View::EventHandlers &, getEventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method0(const View::EventHandlers &, getEventHandlers,
|
||||
__C5_EventHandlers_R1__getEventHandlers,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, init,
|
||||
__void__init,
|
||||
"",
|
||||
"");
|
||||
I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator,
|
||||
__osgGA_MatrixManipulator_P1__getCameraManipulator,
|
||||
__void__setCameraManipulator__osgGA_MatrixManipulator_P1);
|
||||
I_SimpleProperty(View::EventHandlers &, EventHandlers,
|
||||
__EventHandlers_R1__getEventHandlers,
|
||||
0);
|
||||
I_SimpleProperty(osg::Node *, SceneData,
|
||||
__osg_Node_P1__getSceneData,
|
||||
__void__setSceneData__osg_Node_P1);
|
||||
END_REFLECTOR
|
||||
|
||||
64
src/osgWrappers/osgViewer/Viewer.cpp
Normal file
64
src/osgWrappers/osgViewer/Viewer.cpp
Normal file
@@ -0,0 +1,64 @@
|
||||
// ***************************************************************************
|
||||
//
|
||||
// Generated automatically by genwrapper.
|
||||
// Please DO NOT EDIT this file!
|
||||
//
|
||||
// ***************************************************************************
|
||||
|
||||
#include <osgIntrospection/ReflectionMacros>
|
||||
#include <osgIntrospection/TypedMethodInfo>
|
||||
#include <osgIntrospection/StaticMethodInfo>
|
||||
#include <osgIntrospection/Attributes>
|
||||
|
||||
#include <osgViewer/Viewer>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
#ifdef IN
|
||||
#undef IN
|
||||
#endif
|
||||
#ifdef OUT
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_VALUE_REFLECTOR(osgViewer::Viewer)
|
||||
I_Constructor0(____Viewer,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frame,
|
||||
__void__frame,
|
||||
"Render a complete new frame. ",
|
||||
"Calls frameAdvance(), frameEventTraversal(), frameUpateTraversal(), frameCullTraversal() and frameDrawTraversal(). Note, no internal makeCurrent() is issued before, or swap buffers called after frame(), these operations are the responsibility of the calling code. ");
|
||||
I_Method0(void, frameAdvance,
|
||||
__void__frameAdvance,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameEventTraversal,
|
||||
__void__frameEventTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameUpdateTraversal,
|
||||
__void__frameUpdateTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameCullTraversal,
|
||||
__void__frameCullTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, frameDrawTraversal,
|
||||
__void__frameDrawTraversal,
|
||||
"",
|
||||
"");
|
||||
I_Method0(void, releaseAllGLObjects,
|
||||
__void__releaseAllGLObjects,
|
||||
"Release all OpenGL objects associated with this viewer's scenegraph. ",
|
||||
"Note, does not deleted the actual OpenGL objects, it just releases them to the pending GL object delete lists which will need flushing once a valid graphics context is obtained. ");
|
||||
I_Method0(void, cleanup,
|
||||
__void__cleanup,
|
||||
"Clean up all OpenGL objects associated with this viewer's scenegraph. ",
|
||||
"Note, must only be called from the graphics context associated with this viewer. ");
|
||||
I_Method0(void, init,
|
||||
__void__init,
|
||||
"",
|
||||
"");
|
||||
END_REFLECTOR
|
||||
|
||||
Reference in New Issue
Block a user