From 3a48c95fc5926e2266e50bbaf0ad2acd8ec5856f Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 12 Feb 2007 18:02:15 +0000 Subject: [PATCH] Updated wrappers --- src/osgWrappers/osg/AlphaFunc.cpp | 16 +- src/osgWrappers/osg/AnimationPath.cpp | 60 ++- src/osgWrappers/osg/ApplicationUsage.cpp | 27 +- src/osgWrappers/osg/ArgumentParser.cpp | 45 +++ src/osgWrappers/osg/Array.cpp | 342 ++++++++++++++++-- src/osgWrappers/osg/AutoTransform.cpp | 28 +- src/osgWrappers/osg/Billboard.cpp | 24 +- src/osgWrappers/osg/BlendColor.cpp | 25 +- src/osgWrappers/osg/BlendEquation.cpp | 26 +- src/osgWrappers/osg/BlendFunc.cpp | 35 +- src/osgWrappers/osg/BoundingBox.cpp | 27 ++ src/osgWrappers/osg/BoundingSphere.cpp | 18 + src/osgWrappers/osg/BufferObject.cpp | 46 ++- src/osgWrappers/osg/Camera.cpp | 92 ++++- src/osgWrappers/osg/CameraView.cpp | 20 +- src/osgWrappers/osg/ClampColor.cpp | 26 +- src/osgWrappers/osg/ClearNode.cpp | 14 +- src/osgWrappers/osg/ClipNode.cpp | 27 +- src/osgWrappers/osg/ClipPlane.cpp | 18 +- .../osg/ClusterCullingCallback.cpp | 20 +- .../osg/CollectOccludersVisitor.cpp | 23 +- src/osgWrappers/osg/ColorMask.cpp | 19 +- src/osgWrappers/osg/ColorMatrix.cpp | 13 +- src/osgWrappers/osg/ConvexPlanarOccluder.cpp | 14 +- src/osgWrappers/osg/ConvexPlanarPolygon.cpp | 4 + src/osgWrappers/osg/CoordinateSystemNode.cpp | 34 +- src/osgWrappers/osg/CopyOp.cpp | 3 +- src/osgWrappers/osg/CullFace.cpp | 14 +- src/osgWrappers/osg/CullSettings.cpp | 41 ++- src/osgWrappers/osg/CullingSet.cpp | 37 +- src/osgWrappers/osg/DeleteHandler.cpp | 9 + src/osgWrappers/osg/Depth.cpp | 20 +- src/osgWrappers/osg/DisplaySettings.cpp | 56 ++- src/osgWrappers/osg/DrawPixels.cpp | 19 +- src/osgWrappers/osg/Drawable.cpp | 192 +++++++++- src/osgWrappers/osg/Fog.cpp | 23 +- src/osgWrappers/osg/FragmentProgram.cpp | 40 +- src/osgWrappers/osg/FrameBufferObject.cpp | 40 +- src/osgWrappers/osg/FrameStamp.cpp | 11 +- src/osgWrappers/osg/FrontFace.cpp | 13 +- src/osgWrappers/osg/GL2Extensions.cpp | 114 +++++- src/osgWrappers/osg/Geode.cpp | 31 +- src/osgWrappers/osg/Geometry.cpp | 133 ++++++- src/osgWrappers/osg/GraphicsContext.cpp | 63 +++- src/osgWrappers/osg/GraphicsThread.cpp | 33 +- src/osgWrappers/osg/Group.cpp | 33 +- src/osgWrappers/osg/Image.cpp | 57 ++- src/osgWrappers/osg/ImageStream.cpp | 20 +- src/osgWrappers/osg/LOD.cpp | 27 +- src/osgWrappers/osg/Light.cpp | 35 +- src/osgWrappers/osg/LightModel.cpp | 18 +- src/osgWrappers/osg/LightSource.cpp | 17 +- src/osgWrappers/osg/LineSegment.cpp | 16 +- src/osgWrappers/osg/LineStipple.cpp | 15 +- src/osgWrappers/osg/LineWidth.cpp | 13 +- src/osgWrappers/osg/LogicOp.cpp | 14 +- src/osgWrappers/osg/Material.cpp | 30 +- src/osgWrappers/osg/MatrixTransform.cpp | 18 +- src/osgWrappers/osg/Matrixd.cpp | 78 +++- src/osgWrappers/osg/Matrixf.cpp | 78 +++- src/osgWrappers/osg/Multisample.cpp | 29 +- src/osgWrappers/osg/Node.cpp | 70 +++- src/osgWrappers/osg/NodeCallback.cpp | 13 +- src/osgWrappers/osg/NodeTrackerCallback.cpp | 18 +- src/osgWrappers/osg/NodeVisitor.cpp | 56 ++- src/osgWrappers/osg/Object.cpp | 16 + src/osgWrappers/osg/OccluderNode.cpp | 12 +- src/osgWrappers/osg/PagedLOD.cpp | 33 +- src/osgWrappers/osg/Plane.cpp | 28 ++ src/osgWrappers/osg/Point.cpp | 32 +- src/osgWrappers/osg/PointSprite.cpp | 15 +- src/osgWrappers/osg/PolygonMode.cpp | 13 +- src/osgWrappers/osg/PolygonOffset.cpp | 15 +- src/osgWrappers/osg/PolygonStipple.cpp | 13 +- src/osgWrappers/osg/Polytope.cpp | 41 +++ .../osg/PositionAttitudeTransform.cpp | 20 +- src/osgWrappers/osg/PrimitiveSet.cpp | 151 +++++++- src/osgWrappers/osg/Program.cpp | 44 ++- src/osgWrappers/osg/Projection.cpp | 13 +- src/osgWrappers/osg/ProxyNode.cpp | 24 +- src/osgWrappers/osg/Quat.cpp | 36 ++ src/osgWrappers/osg/Referenced.cpp | 12 +- src/osgWrappers/osg/RenderInfo.cpp | 11 + src/osgWrappers/osg/Scissor.cpp | 21 +- src/osgWrappers/osg/Sequence.cpp | 22 +- src/osgWrappers/osg/ShadeModel.cpp | 12 +- src/osgWrappers/osg/Shader.cpp | 21 +- src/osgWrappers/osg/ShadowVolumeOccluder.cpp | 18 + src/osgWrappers/osg/Shape.cpp | 221 ++++++++++- src/osgWrappers/osg/ShapeDrawable.cpp | 46 ++- src/osgWrappers/osg/State.cpp | 112 +++++- src/osgWrappers/osg/StateAttribute.cpp | 35 +- src/osgWrappers/osg/StateSet.cpp | 107 +++++- src/osgWrappers/osg/Stats.cpp | 18 +- src/osgWrappers/osg/Stencil.cpp | 27 +- src/osgWrappers/osg/StencilTwoSided.cpp | 36 +- src/osgWrappers/osg/Switch.cpp | 26 +- src/osgWrappers/osg/TexEnv.cpp | 17 +- src/osgWrappers/osg/TexEnvCombine.cpp | 47 ++- src/osgWrappers/osg/TexEnvFilter.cpp | 14 +- src/osgWrappers/osg/TexGen.cpp | 18 +- src/osgWrappers/osg/TexGenNode.cpp | 17 +- src/osgWrappers/osg/TexMat.cpp | 17 +- src/osgWrappers/osg/Texture.cpp | 124 ++++++- src/osgWrappers/osg/Texture1D.cpp | 30 ++ src/osgWrappers/osg/Texture2D.cpp | 33 ++ src/osgWrappers/osg/Texture3D.cpp | 59 ++- src/osgWrappers/osg/TextureCubeMap.cpp | 38 +- src/osgWrappers/osg/TextureRectangle.cpp | 31 ++ src/osgWrappers/osg/Timer.cpp | 13 + src/osgWrappers/osg/Transform.cpp | 19 +- src/osgWrappers/osg/Uniform.cpp | 122 ++++++- src/osgWrappers/osg/Vec2b.cpp | 12 + src/osgWrappers/osg/Vec2d.cpp | 13 + src/osgWrappers/osg/Vec2f.cpp | 12 + src/osgWrappers/osg/Vec2s.cpp | 12 + src/osgWrappers/osg/Vec3b.cpp | 16 + src/osgWrappers/osg/Vec3d.cpp | 16 + src/osgWrappers/osg/Vec3f.cpp | 15 + src/osgWrappers/osg/Vec3s.cpp | 16 + src/osgWrappers/osg/Vec4b.cpp | 19 + src/osgWrappers/osg/Vec4d.cpp | 27 ++ src/osgWrappers/osg/Vec4f.cpp | 26 ++ src/osgWrappers/osg/Vec4s.cpp | 19 + src/osgWrappers/osg/Vec4ub.cpp | 11 + src/osgWrappers/osg/VertexProgram.cpp | 40 +- src/osgWrappers/osg/View.cpp | 18 +- src/osgWrappers/osg/Viewport.cpp | 22 +- src/osgWrappers/osg/observer_ptr.cpp | 3 +- src/osgWrappers/osgDB/Archive.cpp | 15 + src/osgWrappers/osgDB/DatabasePager.cpp | 54 ++- src/osgWrappers/osgDB/DotOsgWrapper.cpp | 8 +- src/osgWrappers/osgDB/DynamicLibrary.cpp | 6 +- src/osgWrappers/osgDB/Field.cpp | 33 +- src/osgWrappers/osgDB/FieldReader.cpp | 9 +- src/osgWrappers/osgDB/FieldReaderIterator.cpp | 34 +- src/osgWrappers/osgDB/ImageOptions.cpp | 14 +- src/osgWrappers/osgDB/Input.cpp | 17 +- src/osgWrappers/osgDB/ParameterOutput.cpp | 4 + src/osgWrappers/osgDB/ReaderWriter.cpp | 76 +++- src/osgWrappers/osgDB/ReentrantMutex.cpp | 9 + src/osgWrappers/osgDB/Registry.cpp | 99 ++++- src/osgWrappers/osgDB/SharedStateManager.cpp | 8 +- src/osgWrappers/osgFX/AnisotropicLighting.cpp | 16 +- src/osgWrappers/osgFX/BumpMapping.cpp | 27 +- src/osgWrappers/osgFX/Cartoon.cpp | 17 +- src/osgWrappers/osgFX/Effect.cpp | 16 + src/osgWrappers/osgFX/MultiTextureControl.cpp | 11 +- src/osgWrappers/osgFX/Registry.cpp | 5 +- src/osgWrappers/osgFX/Scribe.cpp | 15 +- src/osgWrappers/osgFX/SpecularHighlights.cpp | 19 +- src/osgWrappers/osgFX/Technique.cpp | 8 + src/osgWrappers/osgFX/Validator.cpp | 13 +- .../osgGA/AnimationPathManipulator.cpp | 20 +- src/osgWrappers/osgGA/DriveManipulator.cpp | 21 +- src/osgWrappers/osgGA/EventQueue.cpp | 51 ++- src/osgWrappers/osgGA/EventVisitor.cpp | 23 +- src/osgWrappers/osgGA/FlightManipulator.cpp | 21 +- src/osgWrappers/osgGA/GUIActionAdapter.cpp | 3 + src/osgWrappers/osgGA/GUIEventAdapter.cpp | 45 ++- src/osgWrappers/osgGA/GUIEventHandler.cpp | 12 +- .../osgGA/KeySwitchMatrixManipulator.cpp | 39 +- src/osgWrappers/osgGA/MatrixManipulator.cpp | 31 ++ .../osgGA/NodeTrackerManipulator.cpp | 27 +- src/osgWrappers/osgGA/StateSetManipulator.cpp | 20 +- src/osgWrappers/osgGA/TerrainManipulator.cpp | 18 +- .../osgGA/TrackballManipulator.cpp | 27 +- src/osgWrappers/osgGA/UFOManipulator.cpp | 27 +- src/osgWrappers/osgManipulator/AntiSquish.cpp | 11 +- src/osgWrappers/osgManipulator/Command.cpp | 81 ++++- .../osgManipulator/CommandManager.cpp | 7 +- src/osgWrappers/osgManipulator/Constraint.cpp | 17 +- src/osgWrappers/osgManipulator/Dragger.cpp | 40 +- src/osgWrappers/osgManipulator/Projector.cpp | 46 ++- .../osgManipulator/RotateCylinderDragger.cpp | 8 +- .../osgManipulator/RotateSphereDragger.cpp | 8 +- .../osgManipulator/Scale1DDragger.cpp | 19 +- .../osgManipulator/Scale2DDragger.cpp | 27 +- .../osgManipulator/ScaleAxisDragger.cpp | 3 +- src/osgWrappers/osgManipulator/Selection.cpp | 9 +- .../osgManipulator/TabBoxDragger.cpp | 4 +- .../osgManipulator/TabPlaneDragger.cpp | 5 +- .../TabPlaneTrackballDragger.cpp | 4 +- .../osgManipulator/TrackballDragger.cpp | 4 +- .../osgManipulator/Translate1DDragger.cpp | 9 +- .../osgManipulator/Translate2DDragger.cpp | 9 +- .../osgManipulator/TranslateAxisDragger.cpp | 3 +- .../osgManipulator/TranslatePlaneDragger.cpp | 7 +- src/osgWrappers/osgParticle/AccelOperator.cpp | 12 +- .../osgParticle/AngularAccelOperator.cpp | 11 +- src/osgWrappers/osgParticle/BoxPlacer.cpp | 18 +- .../osgParticle/CenteredPlacer.cpp | 6 + .../osgParticle/ConnectedParticleSystem.cpp | 14 +- .../osgParticle/ConstantRateCounter.cpp | 12 +- src/osgWrappers/osgParticle/Counter.cpp | 4 + src/osgWrappers/osgParticle/Emitter.cpp | 8 + .../osgParticle/ExplosionDebrisEffect.cpp | 15 +- .../osgParticle/ExplosionEffect.cpp | 15 +- src/osgWrappers/osgParticle/FireEffect.cpp | 15 +- .../osgParticle/FluidFrictionOperator.cpp | 19 +- src/osgWrappers/osgParticle/FluidProgram.cpp | 19 +- src/osgWrappers/osgParticle/ForceOperator.cpp | 11 +- src/osgWrappers/osgParticle/Interpolator.cpp | 7 + .../osgParticle/LinearInterpolator.cpp | 8 +- .../osgParticle/ModularEmitter.cpp | 19 +- .../osgParticle/ModularProgram.cpp | 13 +- .../osgParticle/MultiSegmentPlacer.cpp | 16 +- src/osgWrappers/osgParticle/Operator.cpp | 8 + src/osgWrappers/osgParticle/Particle.cpp | 57 +++ .../osgParticle/ParticleEffect.cpp | 38 ++ .../osgParticle/ParticleProcessor.cpp | 32 ++ .../osgParticle/ParticleSystem.cpp | 41 ++- .../osgParticle/ParticleSystemUpdater.cpp | 20 +- src/osgWrappers/osgParticle/Placer.cpp | 5 + src/osgWrappers/osgParticle/PointPlacer.cpp | 9 +- .../osgParticle/PrecipitationEffect.cpp | 62 +++- src/osgWrappers/osgParticle/Program.cpp | 4 + src/osgWrappers/osgParticle/RadialShooter.cpp | 20 +- .../osgParticle/RandomRateCounter.cpp | 8 +- src/osgWrappers/osgParticle/SectorPlacer.cpp | 15 +- src/osgWrappers/osgParticle/SegmentPlacer.cpp | 16 +- src/osgWrappers/osgParticle/Shooter.cpp | 4 + src/osgWrappers/osgParticle/SmokeEffect.cpp | 15 +- .../osgParticle/SmokeTrailEffect.cpp | 15 +- .../osgParticle/VariableRateCounter.cpp | 6 + src/osgWrappers/osgParticle/range.cpp | 16 + .../GraphicsContextImplementation.cpp | 13 + .../osgProducer/KeyboardMouseCallback.cpp | 30 ++ .../osgProducer/OsgCameraGroup.cpp | 60 ++- .../osgProducer/OsgSceneHandler.cpp | 30 +- src/osgWrappers/osgProducer/Viewer.cpp | 78 +++- .../osgProducer/ViewerEventHandler.cpp | 17 +- .../osgShadow/OccluderGeometry.cpp | 33 +- .../osgShadow/ParallelSplitShadowMap.cpp | 7 +- src/osgWrappers/osgShadow/ShadowMap.cpp | 7 +- src/osgWrappers/osgShadow/ShadowTechnique.cpp | 14 +- src/osgWrappers/osgShadow/ShadowTexture.cpp | 7 +- src/osgWrappers/osgShadow/ShadowVolume.cpp | 15 +- src/osgWrappers/osgShadow/ShadowedScene.cpp | 18 +- src/osgWrappers/osgSim/BlinkSequence.cpp | 27 +- src/osgWrappers/osgSim/ColorRange.cpp | 4 +- src/osgWrappers/osgSim/DOFTransform.cpp | 49 ++- src/osgWrappers/osgSim/ElevationSlice.cpp | 10 + src/osgWrappers/osgSim/GeographicLocation.cpp | 11 +- src/osgWrappers/osgSim/HeightAboveTerrain.cpp | 12 + src/osgWrappers/osgSim/Impostor.cpp | 23 +- src/osgWrappers/osgSim/ImpostorSprite.cpp | 47 ++- .../osgSim/InsertImpostorsVisitor.cpp | 11 +- src/osgWrappers/osgSim/LightPoint.cpp | 1 + src/osgWrappers/osgSim/LightPointNode.cpp | 28 +- src/osgWrappers/osgSim/LightPointSystem.cpp | 11 +- src/osgWrappers/osgSim/LineOfSight.cpp | 19 +- src/osgWrappers/osgSim/MultiSwitch.cpp | 27 +- .../osgSim/OpenFlightOptimizer.cpp | 14 +- src/osgWrappers/osgSim/OverlayNode.cpp | 28 +- src/osgWrappers/osgSim/ScalarBar.cpp | 32 +- src/osgWrappers/osgSim/ScalarsToColors.cpp | 5 +- src/osgWrappers/osgSim/Sector.cpp | 62 +++- src/osgWrappers/osgSim/SphereSegment.cpp | 39 +- src/osgWrappers/osgSim/VisibilityGroup.cpp | 16 +- src/osgWrappers/osgTerrain/DataSet.cpp | 255 ++++++++++++- .../osgTerrain/HeightFieldNode.cpp | 29 +- .../osgTerrain/HeightFieldRenderer.cpp | 6 + src/osgWrappers/osgText/FadeText.cpp | 10 +- src/osgWrappers/osgText/Font.cpp | 76 +++- src/osgWrappers/osgText/String.cpp | 9 + src/osgWrappers/osgText/Text.cpp | 94 ++++- src/osgWrappers/osgUtil/CubeMapGenerator.cpp | 4 + src/osgWrappers/osgUtil/CullVisitor.cpp | 55 ++- .../osgUtil/DelaunayTriangulator.cpp | 32 +- .../osgUtil/DisplayRequirementsVisitor.cpp | 7 +- src/osgWrappers/osgUtil/GLObjectsVisitor.cpp | 14 +- .../osgUtil/HalfWayMapGenerator.cpp | 2 +- .../osgUtil/HighlightMapGenerator.cpp | 2 +- src/osgWrappers/osgUtil/IntersectVisitor.cpp | 43 ++- .../osgUtil/IntersectionVisitor.cpp | 61 +++- .../osgUtil/LineSegmentIntersector.cpp | 15 +- src/osgWrappers/osgUtil/Optimizer.cpp | 154 +++++++- src/osgWrappers/osgUtil/PlaneIntersector.cpp | 14 +- .../osgUtil/PolytopeIntersector.cpp | 12 +- .../osgUtil/PositionalStateContainer.cpp | 19 +- .../osgUtil/ReflectionMapGenerator.cpp | 3 +- src/osgWrappers/osgUtil/RenderBin.cpp | 52 ++- src/osgWrappers/osgUtil/RenderLeaf.cpp | 6 +- src/osgWrappers/osgUtil/RenderStage.cpp | 69 +++- src/osgWrappers/osgUtil/SceneView.cpp | 139 ++++++- src/osgWrappers/osgUtil/Simplifier.cpp | 23 +- src/osgWrappers/osgUtil/SmoothingVisitor.cpp | 3 +- src/osgWrappers/osgUtil/StateGraph.cpp | 28 +- src/osgWrappers/osgUtil/Statistics.cpp | 43 ++- .../osgUtil/TangentSpaceGenerator.cpp | 13 +- src/osgWrappers/osgUtil/Tessellator.cpp | 27 +- .../osgUtil/TransformAttributeFunctor.cpp | 4 +- src/osgWrappers/osgUtil/TransformCallback.cpp | 3 +- src/osgWrappers/osgUtil/TriStripVisitor.cpp | 14 +- src/osgWrappers/osgUtil/UpdateVisitor.cpp | 13 +- src/osgWrappers/osgViewer/CompositeViewer.cpp | 46 ++- src/osgWrappers/osgViewer/GraphicsWindow.cpp | 20 + src/osgWrappers/osgViewer/HelpHandler.cpp | 10 +- src/osgWrappers/osgViewer/Scene.cpp | 14 +- src/osgWrappers/osgViewer/SimpleViewer.cpp | 24 ++ src/osgWrappers/osgViewer/StatsHandler.cpp | 9 +- src/osgWrappers/osgViewer/View.cpp | 38 +- src/osgWrappers/osgViewer/Viewer.cpp | 45 ++- 304 files changed, 8597 insertions(+), 376 deletions(-) diff --git a/src/osgWrappers/osg/AlphaFunc.cpp b/src/osgWrappers/osg/AlphaFunc.cpp index a82bbc47a..e9ed5c95b 100644 --- a/src/osgWrappers/osg/AlphaFunc.cpp +++ b/src/osgWrappers/osg/AlphaFunc.cpp @@ -35,7 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::AlphaFunc::ComparisonFunction) I_EnumLabel(osg::AlphaFunc::ALWAYS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AlphaFunc) I_BaseType(osg::StateAttribute); I_Constructor0(____AlphaFunc, "", @@ -49,58 +49,72 @@ BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method2(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + Properties::NON_VIRTUAL, __void__setFunction__ComparisonFunction__float, "", ""); I_Method1(void, setFunction, IN, osg::AlphaFunc::ComparisonFunction, func, + Properties::NON_VIRTUAL, __void__setFunction__ComparisonFunction, "", ""); I_Method0(osg::AlphaFunc::ComparisonFunction, getFunction, + Properties::NON_VIRTUAL, __ComparisonFunction__getFunction, "", ""); I_Method1(void, setReferenceValue, IN, float, value, + Properties::NON_VIRTUAL, __void__setReferenceValue__float, "", ""); I_Method0(float, getReferenceValue, + Properties::NON_VIRTUAL, __float__getReferenceValue, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/AnimationPath.cpp b/src/osgWrappers/osg/AnimationPath.cpp index dedb293f1..4f781c5f0 100644 --- a/src/osgWrappers/osg/AnimationPath.cpp +++ b/src/osgWrappers/osg/AnimationPath.cpp @@ -36,7 +36,7 @@ BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) I_EnumLabel(osg::AnimationPath::NO_LOOPING); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AnimationPath) I_VirtualBaseType(osg::Object); I_Constructor0(____AnimationPath, "", @@ -46,90 +46,112 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) "", ""); 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(bool, getMatrix, IN, double, time, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __bool__getMatrix__double__Matrixf_R1, "Given a specific time, return the transformation matrix for a point. ", ""); I_Method2(bool, getMatrix, IN, double, time, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __bool__getMatrix__double__Matrixd_R1, "Given a specific time, return the transformation matrix for a point. ", ""); I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __bool__getInverse__double__Matrixf_R1, "Given a specific time, return the inverse transformation matrix for a point. ", ""); I_Method2(bool, getInverse, IN, double, time, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __bool__getInverse__double__Matrixd_R1, "", ""); I_Method2(bool, getInterpolatedControlPoint, IN, double, time, IN, osg::AnimationPath::ControlPoint &, controlPoint, + Properties::VIRTUAL, __bool__getInterpolatedControlPoint__double__ControlPoint_R1, "Given a specific time, return the local ControlPoint frame for a point. ", ""); I_Method2(void, insert, IN, double, time, IN, const osg::AnimationPath::ControlPoint &, controlPoint, + Properties::NON_VIRTUAL, __void__insert__double__C5_ControlPoint_R1, "", ""); I_Method0(double, getFirstTime, + Properties::NON_VIRTUAL, __double__getFirstTime, "", ""); I_Method0(double, getLastTime, + Properties::NON_VIRTUAL, __double__getLastTime, "", ""); I_Method0(double, getPeriod, + Properties::NON_VIRTUAL, __double__getPeriod, "", ""); I_Method1(void, setLoopMode, IN, osg::AnimationPath::LoopMode, lm, + Properties::NON_VIRTUAL, __void__setLoopMode__LoopMode, "", ""); I_Method0(osg::AnimationPath::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, __LoopMode__getLoopMode, "", ""); I_Method1(void, setTimeControlPointMap, IN, osg::AnimationPath::TimeControlPointMap &, tcpm, + Properties::NON_VIRTUAL, __void__setTimeControlPointMap__TimeControlPointMap_R1, "", ""); I_Method0(osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, __TimeControlPointMap_R1__getTimeControlPointMap, "", ""); I_Method0(const osg::AnimationPath::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, __C5_TimeControlPointMap_R1__getTimeControlPointMap, "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); I_Method1(void, read, IN, std::istream &, in, + Properties::NON_VIRTUAL, __void__read__std_istream_R1, "Read the animation path from a flat ASCII file stream. ", ""); I_Method1(void, write, IN, std::ostream &, out, + Properties::NON_VIRTUAL, __void__write__std_ostream_R1, "Write the animation path to a flat ASCII file stream. ", ""); @@ -155,6 +177,7 @@ BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) "", ""); I_Constructor1(IN, const osg::Vec3d &, position, + Properties::NON_EXPLICIT, ____ControlPoint__C5_osg_Vec3d_R1, "", ""); @@ -167,50 +190,62 @@ BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) "", ""); I_Method1(void, setPosition, IN, const osg::Vec3d &, position, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getPosition, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, __void__setRotation__C5_osg_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_osg_Quat_R1__getRotation, "", ""); I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, __void__setScale__C5_osg_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getScale, "", ""); I_Method3(void, interpolate, IN, float, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + Properties::NON_VIRTUAL, __void__interpolate__float__C5_ControlPoint_R1__C5_ControlPoint_R1, "", ""); I_Method3(void, interpolate, IN, double, ratio, IN, const osg::AnimationPath::ControlPoint &, first, IN, const osg::AnimationPath::ControlPoint &, second, + Properties::NON_VIRTUAL, __void__interpolate__double__C5_ControlPoint_R1__C5_ControlPoint_R1, "", ""); I_Method1(void, getMatrix, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __void__getMatrix__Matrixf_R1, "", ""); I_Method1(void, getMatrix, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__getMatrix__Matrixd_R1, "", ""); I_Method1(void, getInverse, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __void__getInverse__Matrixf_R1, "", ""); I_Method1(void, getInverse, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__getInverse__Matrixd_R1, "", ""); @@ -225,7 +260,7 @@ BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) __void__setScale__C5_osg_Vec3d_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AnimationPathCallback) I_BaseType(osg::NodeCallback); I_Constructor0(____AnimationPathCallback, "", @@ -235,22 +270,27 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) "", ""); 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. "); @@ -263,66 +303,82 @@ BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) "Construct an AnimationPathCallback and automatical create an animation path to produce a rotation about a point. ", ""); I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + Properties::NON_VIRTUAL, __void__setAnimationPath__AnimationPath_P1, "", ""); I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __AnimationPath_P1__getAnimationPath, "", ""); I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __C5_AnimationPath_P1__getAnimationPath, "", ""); I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, __void__setPivotPoint__C5_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, __C5_Vec3d_R1__getPivotPoint, "", ""); I_Method1(void, setUseInverseMatrix, IN, bool, useInverseMatrix, + Properties::NON_VIRTUAL, __void__setUseInverseMatrix__bool, "", ""); I_Method0(bool, getUseInverseMatrix, + Properties::NON_VIRTUAL, __bool__getUseInverseMatrix, "", ""); I_Method1(void, setTimeOffset, IN, double, offset, + Properties::NON_VIRTUAL, __void__setTimeOffset__double, "", ""); I_Method0(double, getTimeOffset, + Properties::NON_VIRTUAL, __double__getTimeOffset, "", ""); I_Method1(void, setTimeMultiplier, IN, double, multiplier, + Properties::NON_VIRTUAL, __void__setTimeMultiplier__double, "", ""); I_Method0(double, getTimeMultiplier, + Properties::NON_VIRTUAL, __double__getTimeMultiplier, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, __void__setPause__bool, "", ""); I_Method0(bool, getPause, + Properties::NON_VIRTUAL, __bool__getPause, "", ""); I_Method0(double, getAnimationTime, + Properties::NON_VIRTUAL, __double__getAnimationTime, "Get the animation time that is used to specify the position along the AnimationPath. ", "Animation time is computed from the formula: ((_latestTime-_firstTime)-_timeOffset)*_timeMultiplier. "); I_Method1(void, update, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__update__osg_Node_R1, "", ""); diff --git a/src/osgWrappers/osg/ApplicationUsage.cpp b/src/osgWrappers/osg/ApplicationUsage.cpp index c91bf696d..ea17bed55 100644 --- a/src/osgWrappers/osg/ApplicationUsage.cpp +++ b/src/osgWrappers/osg/ApplicationUsage.cpp @@ -28,108 +28,133 @@ BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) I_EnumLabel(osg::ApplicationUsage::KEYBOARD_MOUSE_BINDING); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ApplicationUsage) I_BaseType(osg::Referenced); I_Constructor0(____ApplicationUsage, "", ""); I_Constructor1(IN, const std::string &, commandLineUsage, + Properties::NON_EXPLICIT, ____ApplicationUsage__C5_std_string_R1, "", ""); I_Method1(void, setApplicationName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setApplicationName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getApplicationName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getApplicationName, "", ""); I_Method1(void, setDescription, IN, const std::string &, desc, + Properties::NON_VIRTUAL, __void__setDescription__C5_std_string_R1, "", ""); I_Method0(const std::string &, getDescription, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDescription, "", ""); I_Method3(void, addUsageExplanation, IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, __void__addUsageExplanation__Type__C5_std_string_R1__C5_std_string_R1, "", ""); I_Method1(void, setCommandLineUsage, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, __void__setCommandLineUsage__C5_std_string_R1, "", ""); I_Method0(const std::string &, getCommandLineUsage, + Properties::NON_VIRTUAL, __C5_std_string_R1__getCommandLineUsage, "", ""); I_MethodWithDefaults3(void, addCommandLineOption, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, __void__addCommandLineOption__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, "", ""); I_Method1(void, setCommandLineOptions, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, __void__setCommandLineOptions__C5_UsageMap_R1, "", ""); I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptions, + Properties::NON_VIRTUAL, __C5_UsageMap_R1__getCommandLineOptions, "", ""); I_Method1(void, setCommandLineOptionsDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, __void__setCommandLineOptionsDefaults__C5_UsageMap_R1, "", ""); I_Method0(const osg::ApplicationUsage::UsageMap &, getCommandLineOptionsDefaults, + Properties::NON_VIRTUAL, __C5_UsageMap_R1__getCommandLineOptionsDefaults, "", ""); I_MethodWithDefaults3(void, addEnvironmentalVariable, IN, const std::string &, option, , IN, const std::string &, explanation, , IN, const std::string &, defaultValue, "", + Properties::NON_VIRTUAL, __void__addEnvironmentalVariable__C5_std_string_R1__C5_std_string_R1__C5_std_string_R1, "", ""); I_Method1(void, setEnvironmentalVariables, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, __void__setEnvironmentalVariables__C5_UsageMap_R1, "", ""); I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariables, + Properties::NON_VIRTUAL, __C5_UsageMap_R1__getEnvironmentalVariables, "", ""); I_Method1(void, setEnvironmentalVariablesDefaults, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1, "", ""); I_Method0(const osg::ApplicationUsage::UsageMap &, getEnvironmentalVariablesDefaults, + Properties::NON_VIRTUAL, __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, "", ""); I_Method2(void, addKeyboardMouseBinding, IN, const std::string &, option, IN, const std::string &, explanation, + Properties::NON_VIRTUAL, __void__addKeyboardMouseBinding__C5_std_string_R1__C5_std_string_R1, "", ""); I_Method1(void, setKeyboardMouseBindings, IN, const osg::ApplicationUsage::UsageMap &, usageMap, + Properties::NON_VIRTUAL, __void__setKeyboardMouseBindings__C5_UsageMap_R1, "", ""); I_Method0(const osg::ApplicationUsage::UsageMap &, getKeyboardMouseBindings, + Properties::NON_VIRTUAL, __C5_UsageMap_R1__getKeyboardMouseBindings, "", ""); I_MethodWithDefaults5(void, getFormattedString, IN, std::string &, str, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap(), + Properties::NON_VIRTUAL, __void__getFormattedString__std_string_R1__C5_UsageMap_R1__unsigned_int__bool__C5_UsageMap_R1, "", ""); I_MethodWithDefaults5(void, write, IN, std::ostream &, output, , IN, const osg::ApplicationUsage::UsageMap &, um, , IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, IN, const osg::ApplicationUsage::UsageMap &, ud, osg::ApplicationUsage::UsageMap(), + Properties::NON_VIRTUAL, __void__write__std_ostream_R1__C5_UsageMap_R1__unsigned_int__bool__C5_UsageMap_R1, "", ""); I_MethodWithDefaults4(void, write, IN, std::ostream &, output, , IN, unsigned int, type, osg::ApplicationUsage::COMMAND_LINE_OPTION, IN, unsigned int, widthOfOutput, 80, IN, bool, showDefaults, false, + Properties::NON_VIRTUAL, __void__write__std_ostream_R1__unsigned_int__unsigned_int__bool, "", ""); I_Method1(void, writeEnvironmentSettings, IN, std::ostream &, output, + Properties::NON_VIRTUAL, __void__writeEnvironmentSettings__std_ostream_R1, "", ""); diff --git a/src/osgWrappers/osg/ArgumentParser.cpp b/src/osgWrappers/osg/ArgumentParser.cpp index fcfdd49b2..13531eb2c 100644 --- a/src/osgWrappers/osg/ArgumentParser.cpp +++ b/src/osgWrappers/osg/ArgumentParser.cpp @@ -34,150 +34,187 @@ BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) "", ""); I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, usage, + Properties::NON_VIRTUAL, __void__setApplicationUsage__ApplicationUsage_P1, "", ""); I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __C5_ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method0(int &, argc, + Properties::NON_VIRTUAL, __int_R1__argc, "Return the argument count. ", ""); I_Method0(char **, argv, + Properties::NON_VIRTUAL, __char_P1P1__argv, "Return the argument array. ", ""); I_Method0(std::string, getApplicationName, + Properties::NON_VIRTUAL, __std_string__getApplicationName, "Return the application name, as specified by argv[0]. ", ""); I_Method1(int, find, IN, const std::string &, str, + Properties::NON_VIRTUAL, __int__find__C5_std_string_R1, "Return the position of an occurance of a string in the argument list. ", "Return -1 if no string is found. "); I_Method1(bool, isOption, IN, int, pos, + Properties::NON_VIRTUAL, __bool__isOption__int, "Return true if the specified parameter is an option in the form of -option or --option. ", ""); I_Method1(bool, isString, IN, int, pos, + Properties::NON_VIRTUAL, __bool__isString__int, "Return true if the specified parameter is a string not in the form of an option. ", ""); I_Method1(bool, isNumber, IN, int, pos, + Properties::NON_VIRTUAL, __bool__isNumber__int, "Return true if the specified parameter is a number. ", ""); I_Method0(bool, containsOptions, + Properties::NON_VIRTUAL, __bool__containsOptions, "", ""); I_MethodWithDefaults2(void, remove, IN, int, pos, , IN, int, num, 1, + Properties::NON_VIRTUAL, __void__remove__int__int, "Remove one or more arguments from the argv argument list, and decrement the argc respectively. ", ""); I_Method2(bool, match, IN, int, pos, IN, const std::string &, str, + Properties::NON_VIRTUAL, __bool__match__int__C5_std_string_R1, "Return true if the specified argument matches the given string. ", ""); I_Method1(bool, read, IN, const std::string &, str, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1, "Search for an occurance of a string in the argument list. ", "If found, remove that occurance and return true. Otherwise, return false. "); I_Method2(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter, "", ""); I_Method3(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter, "", ""); I_Method4(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter, "", ""); I_Method5(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method6(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method7(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method8(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method9(bool, read, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8, + Properties::NON_VIRTUAL, __bool__read__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method2(bool, read, IN, int, pos, IN, const std::string &, str, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1, "If the argument value at the specified position matches the given string, and subsequent parameters are also matched, then set the parameter values, remove the arguments from the list, and return true. ", "Otherwise, return false. "); I_Method3(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter, "", ""); I_Method4(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter, "", ""); I_Method5(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter, "", ""); I_Method6(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method7(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method8(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method9(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_Method10(bool, read, IN, int, pos, IN, const std::string &, str, IN, osg::ArgumentParser::Parameter, value1, IN, osg::ArgumentParser::Parameter, value2, IN, osg::ArgumentParser::Parameter, value3, IN, osg::ArgumentParser::Parameter, value4, IN, osg::ArgumentParser::Parameter, value5, IN, osg::ArgumentParser::Parameter, value6, IN, osg::ArgumentParser::Parameter, value7, IN, osg::ArgumentParser::Parameter, value8, + Properties::NON_VIRTUAL, __bool__read__int__C5_std_string_R1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, "", ""); I_MethodWithDefaults1(bool, errors, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN, + Properties::NON_VIRTUAL, __bool__errors__ErrorSeverity, "Return the error flag, true if an error has occured when reading arguments. ", ""); I_MethodWithDefaults2(void, reportError, IN, const std::string &, message, , IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::CRITICAL, + Properties::NON_VIRTUAL, __void__reportError__C5_std_string_R1__ErrorSeverity, "Report an error message by adding to the ErrorMessageMap. ", ""); I_MethodWithDefaults1(void, reportRemainingOptionsAsUnrecognized, IN, osg::ArgumentParser::ErrorSeverity, severity, osg::ArgumentParser::BENIGN, + Properties::NON_VIRTUAL, __void__reportRemainingOptionsAsUnrecognized__ErrorSeverity, "For each remaining option, report it as unrecognized. ", ""); I_Method0(osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, __ErrorMessageMap_R1__getErrorMessageMap, "Return the error message, if any has occured. ", ""); I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, __C5_ErrorMessageMap_R1__getErrorMessageMap, "Return the error message, if any has occured. ", ""); I_MethodWithDefaults2(void, writeErrorMessages, IN, std::ostream &, output, , IN, osg::ArgumentParser::ErrorSeverity, sevrity, osg::ArgumentParser::BENIGN, + Properties::NON_VIRTUAL, __void__writeErrorMessages__std_ostream_R1__ErrorSeverity, "Write error messages to the given ostream, if at or above the given severiity. ", ""); @@ -214,34 +251,42 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter) I_Constructor1(IN, float &, value, + Properties::NON_EXPLICIT, ____Parameter__float_R1, "", ""); I_Constructor1(IN, double &, value, + Properties::NON_EXPLICIT, ____Parameter__double_R1, "", ""); I_Constructor1(IN, int &, value, + Properties::NON_EXPLICIT, ____Parameter__int_R1, "", ""); I_Constructor1(IN, unsigned int &, value, + Properties::NON_EXPLICIT, ____Parameter__unsigned_int_R1, "", ""); I_Constructor1(IN, std::string &, value, + Properties::NON_EXPLICIT, ____Parameter__std_string_R1, "", ""); I_Constructor1(IN, const osg::ArgumentParser::Parameter &, param, + Properties::NON_EXPLICIT, ____Parameter__C5_Parameter_R1, "", ""); I_Method1(bool, valid, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__valid__C5_char_P1, "", ""); I_Method1(bool, assign, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__assign__C5_char_P1, "", ""); diff --git a/src/osgWrappers/osg/Array.cpp b/src/osgWrappers/osg/Array.cpp index 3628c3baf..8a567e9e5 100644 --- a/src/osgWrappers/osg/Array.cpp +++ b/src/osgWrappers/osg/Array.cpp @@ -64,74 +64,92 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + 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, accept, IN, osg::ArrayVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::PURE_VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(osg::Array::Type, getType, + Properties::NON_VIRTUAL, __Type__getType, "", ""); I_Method0(GLint, getDataSize, + Properties::NON_VIRTUAL, __GLint__getDataSize, "", ""); I_Method0(GLenum, getDataType, + Properties::NON_VIRTUAL, __GLenum__getDataType, "", ""); I_Method0(const GLvoid *, getDataPointer, + Properties::PURE_VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::PURE_VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::PURE_VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(void, dirty, + Properties::NON_VIRTUAL, __void__dirty, "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", ""); I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, __void__setModifiedCount__unsigned_int, "Set the modified count value. ", ""); I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, __unsigned_int__getModifiedCount, "Get modified count value. ", ""); @@ -155,231 +173,284 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) 0); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ArrayVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ArrayVisitor) I_Constructor0(____ArrayVisitor, "", ""); I_Method1(void, apply, IN, osg::Array &, x, + Properties::VIRTUAL, __void__apply__Array_R1, "", ""); I_Method1(void, apply, IN, osg::ByteArray &, x, + Properties::VIRTUAL, __void__apply__ByteArray_R1, "", ""); I_Method1(void, apply, IN, osg::ShortArray &, x, + Properties::VIRTUAL, __void__apply__ShortArray_R1, "", ""); I_Method1(void, apply, IN, osg::IntArray &, x, + Properties::VIRTUAL, __void__apply__IntArray_R1, "", ""); I_Method1(void, apply, IN, osg::UByteArray &, x, + Properties::VIRTUAL, __void__apply__UByteArray_R1, "", ""); I_Method1(void, apply, IN, osg::UShortArray &, x, + Properties::VIRTUAL, __void__apply__UShortArray_R1, "", ""); I_Method1(void, apply, IN, osg::UIntArray &, x, + Properties::VIRTUAL, __void__apply__UIntArray_R1, "", ""); I_Method1(void, apply, IN, osg::FloatArray &, x, + Properties::VIRTUAL, __void__apply__FloatArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2Array &, x, + Properties::VIRTUAL, __void__apply__Vec2Array_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3Array &, x, + Properties::VIRTUAL, __void__apply__Vec3Array_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4Array &, x, + Properties::VIRTUAL, __void__apply__Vec4Array_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4ubArray &, x, + Properties::VIRTUAL, __void__apply__Vec4ubArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2bArray &, x, + Properties::VIRTUAL, __void__apply__Vec2bArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3bArray &, x, + Properties::VIRTUAL, __void__apply__Vec3bArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4bArray &, x, + Properties::VIRTUAL, __void__apply__Vec4bArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2sArray &, x, + Properties::VIRTUAL, __void__apply__Vec2sArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3sArray &, x, + Properties::VIRTUAL, __void__apply__Vec3sArray_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4sArray &, x, + Properties::VIRTUAL, __void__apply__Vec4sArray_R1, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ConstArrayVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ConstArrayVisitor) I_Constructor0(____ConstArrayVisitor, "", ""); I_Method1(void, apply, IN, const osg::Array &, x, + Properties::VIRTUAL, __void__apply__C5_Array_R1, "", ""); I_Method1(void, apply, IN, const osg::ByteArray &, x, + Properties::VIRTUAL, __void__apply__C5_ByteArray_R1, "", ""); I_Method1(void, apply, IN, const osg::ShortArray &, x, + Properties::VIRTUAL, __void__apply__C5_ShortArray_R1, "", ""); I_Method1(void, apply, IN, const osg::IntArray &, x, + Properties::VIRTUAL, __void__apply__C5_IntArray_R1, "", ""); I_Method1(void, apply, IN, const osg::UByteArray &, x, + Properties::VIRTUAL, __void__apply__C5_UByteArray_R1, "", ""); I_Method1(void, apply, IN, const osg::UShortArray &, x, + Properties::VIRTUAL, __void__apply__C5_UShortArray_R1, "", ""); I_Method1(void, apply, IN, const osg::UIntArray &, x, + Properties::VIRTUAL, __void__apply__C5_UIntArray_R1, "", ""); I_Method1(void, apply, IN, const osg::FloatArray &, x, + Properties::VIRTUAL, __void__apply__C5_FloatArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2Array &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2Array_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3Array &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3Array_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4Array &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4Array_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4ubArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4ubArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2bArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2bArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3bArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3bArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4bArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4bArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2sArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2sArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3sArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3sArray_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4sArray &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4sArray_R1, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ConstValueVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ConstValueVisitor) I_Constructor0(____ConstValueVisitor, "", ""); I_Method1(void, apply, IN, const GLbyte &, x, + Properties::VIRTUAL, __void__apply__C5_GLbyte_R1, "", ""); I_Method1(void, apply, IN, const GLshort &, x, + Properties::VIRTUAL, __void__apply__C5_GLshort_R1, "", ""); I_Method1(void, apply, IN, const GLint &, x, + Properties::VIRTUAL, __void__apply__C5_GLint_R1, "", ""); I_Method1(void, apply, IN, const GLushort &, x, + Properties::VIRTUAL, __void__apply__C5_GLushort_R1, "", ""); I_Method1(void, apply, IN, const GLubyte &, x, + Properties::VIRTUAL, __void__apply__C5_GLubyte_R1, "", ""); I_Method1(void, apply, IN, const GLuint &, x, + Properties::VIRTUAL, __void__apply__C5_GLuint_R1, "", ""); I_Method1(void, apply, IN, const GLfloat &, x, + Properties::VIRTUAL, __void__apply__C5_GLfloat_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4ub &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4ub_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2 &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3 &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4 &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2b &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2b_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3b &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3b_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4b &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4b_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec2s &, x, + Properties::VIRTUAL, __void__apply__C5_Vec2s_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec3s &, x, + Properties::VIRTUAL, __void__apply__C5_Vec3s_R1, "", ""); I_Method1(void, apply, IN, const osg::Vec4s &, x, + Properties::VIRTUAL, __void__apply__C5_Vec4s_R1, "", ""); @@ -396,84 +467,103 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ValueVisitor) I_Constructor0(____ValueVisitor, "", ""); I_Method1(void, apply, IN, GLbyte &, x, + Properties::VIRTUAL, __void__apply__GLbyte_R1, "", ""); I_Method1(void, apply, IN, GLshort &, x, + Properties::VIRTUAL, __void__apply__GLshort_R1, "", ""); I_Method1(void, apply, IN, GLint &, x, + Properties::VIRTUAL, __void__apply__GLint_R1, "", ""); I_Method1(void, apply, IN, GLushort &, x, + Properties::VIRTUAL, __void__apply__GLushort_R1, "", ""); I_Method1(void, apply, IN, GLubyte &, x, + Properties::VIRTUAL, __void__apply__GLubyte_R1, "", ""); I_Method1(void, apply, IN, GLuint &, x, + Properties::VIRTUAL, __void__apply__GLuint_R1, "", ""); I_Method1(void, apply, IN, GLfloat &, x, + Properties::VIRTUAL, __void__apply__GLfloat_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2 &, x, + Properties::VIRTUAL, __void__apply__Vec2_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3 &, x, + Properties::VIRTUAL, __void__apply__Vec3_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4 &, x, + Properties::VIRTUAL, __void__apply__Vec4_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4ub &, x, + Properties::VIRTUAL, __void__apply__Vec4ub_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2b &, x, + Properties::VIRTUAL, __void__apply__Vec2b_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3b &, x, + Properties::VIRTUAL, __void__apply__Vec3b_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4b &, x, + Properties::VIRTUAL, __void__apply__Vec4b_R1, "", ""); I_Method1(void, apply, IN, osg::Vec2s &, x, + Properties::VIRTUAL, __void__apply__Vec2s_R1, "", ""); I_Method1(void, apply, IN, osg::Vec3s &, x, + Properties::VIRTUAL, __void__apply__Vec3s_R1, "", ""); I_Method1(void, apply, IN, osg::Vec4s &, x, + Properties::VIRTUAL, __void__apply__Vec4s_R1, "", ""); @@ -513,7 +603,7 @@ TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >, osg::Vec4bArray); -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -524,6 +614,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArray "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -532,46 +623,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArray "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -583,7 +685,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArray 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -594,6 +696,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2Arra "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -602,46 +705,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2Arra "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -653,7 +767,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2Arra 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -664,6 +778,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -672,46 +787,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -723,7 +849,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -734,6 +860,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -742,46 +869,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -793,7 +931,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -804,6 +942,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3Arra "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -812,46 +951,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3Arra "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -863,7 +1013,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3Arra 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -874,6 +1024,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -882,46 +1033,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -933,7 +1095,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -944,6 +1106,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -952,46 +1115,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -1003,7 +1177,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -1014,6 +1188,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4Arra "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -1022,46 +1197,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4Arra "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -1073,7 +1259,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4Arra 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -1084,6 +1270,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -1092,46 +1279,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -1143,7 +1341,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -1154,6 +1352,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -1162,46 +1361,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -1213,7 +1423,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE >) I_BaseType(osg::Array); I_BaseType(std::vector); I_Constructor0(____TemplateArray, @@ -1224,6 +1434,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ub "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateArray__unsigned_int, "", ""); @@ -1232,46 +1443,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ub "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); @@ -1283,7 +1505,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ub 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1294,6 +1516,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1302,50 +1525,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); @@ -1357,7 +1592,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1368,6 +1603,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArra "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1376,50 +1612,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArra "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); @@ -1431,7 +1679,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArra 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1442,6 +1690,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::Short "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1450,50 +1699,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::Short "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); @@ -1505,7 +1766,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLshort COMMA osg::Array::Short 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1516,6 +1777,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByte "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1524,50 +1786,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByte "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); @@ -1579,7 +1853,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByte 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1590,6 +1864,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntAr "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1598,50 +1873,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntAr "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); @@ -1653,7 +1940,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntAr 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT >) I_BaseType(osg::IndexArray); I_BaseType(std::vector); I_Constructor0(____TemplateIndexArray, @@ -1664,6 +1951,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLushort COMMA osg::Array::USho "", ""); I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, ____TemplateIndexArray__unsigned_int, "", ""); @@ -1672,50 +1960,62 @@ BEGIN_OBJECT_REFLECTOR(osg::TemplateIndexArray< GLushort COMMA osg::Array::USho "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ArrayVisitor_R1, "", ""); I_Method1(void, accept, IN, osg::ConstArrayVisitor &, av, + Properties::VIRTUAL, __void__accept__ConstArrayVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ValueVisitor_R1, "", ""); I_Method2(void, accept, IN, unsigned int, index, IN, osg::ConstValueVisitor &, vv, + Properties::VIRTUAL, __void__accept__unsigned_int__ConstValueVisitor_R1, "", ""); I_Method2(int, compare, IN, unsigned int, lhs, IN, unsigned int, rhs, + Properties::VIRTUAL, __int__compare__unsigned_int__unsigned_int, "Return -1 if lhs element is less than rhs element, 0 if equal, 1 if lhs element is greater than rhs element. ", ""); I_Method0(void, trim, + Properties::VIRTUAL, __void__trim, "Frees unused space on this vector - i.e. ", "the difference between size() and max_size() of the underlying vector. "); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(unsigned int, getNumElements, + Properties::VIRTUAL, __unsigned_int__getNumElements, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); diff --git a/src/osgWrappers/osg/AutoTransform.cpp b/src/osgWrappers/osg/AutoTransform.cpp index 9ca904d68..cefe7c9a8 100644 --- a/src/osgWrappers/osg/AutoTransform.cpp +++ b/src/osgWrappers/osg/AutoTransform.cpp @@ -33,7 +33,7 @@ BEGIN_ENUM_REFLECTOR(osg::AutoTransform::AutoRotateMode) I_EnumLabel(osg::AutoTransform::ROTATE_TO_CAMERA); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::AutoTransform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AutoTransform) I_BaseType(osg::Transform); I_Constructor0(____AutoTransform, "", @@ -43,106 +43,132 @@ BEGIN_OBJECT_REFLECTOR(osg::AutoTransform) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osg::AutoTransform *, asAutoTransform, + Properties::VIRTUAL, __AutoTransform_P1__asAutoTransform, "", ""); I_Method0(const osg::AutoTransform *, asAutoTransform, + Properties::VIRTUAL, __C5_AutoTransform_P1__asAutoTransform, "", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getPosition, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method1(void, setScale, IN, float, scale, + Properties::NON_VIRTUAL, __void__setScale__float, "", ""); I_Method1(void, setScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__setScale__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getScale, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getScale, "", ""); I_Method1(void, setPivotPoint, IN, const osg::Vec3 &, pivot, + Properties::NON_VIRTUAL, __void__setPivotPoint__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPivotPoint, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getPivotPoint, "", ""); I_Method1(void, setAutoUpdateEyeMovementTolerance, IN, float, tolerance, + Properties::NON_VIRTUAL, __void__setAutoUpdateEyeMovementTolerance__float, "", ""); I_Method0(float, getAutoUpdateEyeMovementTolerance, + Properties::NON_VIRTUAL, __float__getAutoUpdateEyeMovementTolerance, "", ""); I_Method1(void, setAutoRotateMode, IN, osg::AutoTransform::AutoRotateMode, mode, + Properties::NON_VIRTUAL, __void__setAutoRotateMode__AutoRotateMode, "", ""); I_Method0(osg::AutoTransform::AutoRotateMode, getAutoRotateMode, + Properties::NON_VIRTUAL, __AutoRotateMode__getAutoRotateMode, "", ""); I_Method1(void, setAutoScaleToScreen, IN, bool, autoScaleToScreen, + Properties::NON_VIRTUAL, __void__setAutoScaleToScreen__bool, "", ""); I_Method0(bool, getAutoScaleToScreen, + Properties::NON_VIRTUAL, __bool__getAutoScaleToScreen, "", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Overrides Group's computeBound. ", "There is no need to override in subclasses from osg::Transform since this computeBound() uses the underlying matrix (calling computeMatrix if required)."); diff --git a/src/osgWrappers/osg/Billboard.cpp b/src/osgWrappers/osg/Billboard.cpp index 632a2bced..3175afcd0 100644 --- a/src/osgWrappers/osg/Billboard.cpp +++ b/src/osgWrappers/osg/Billboard.cpp @@ -35,7 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::Billboard::Mode) I_EnumLabel(osg::Billboard::AXIAL_ROT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Billboard) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Billboard) I_BaseType(osg::Geode); I_Constructor0(____Billboard, "", @@ -45,90 +45,112 @@ BEGIN_OBJECT_REFLECTOR(osg::Billboard) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setMode, IN, osg::Billboard::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "Set the billboard rotation mode. ", ""); I_Method0(osg::Billboard::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "Get the billboard rotation mode. ", ""); I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + Properties::NON_VIRTUAL, __void__setAxis__C5_Vec3_R1, "Set the rotation axis for the billboard's child Drawables. ", "Only utlized when mode==AXIAL_ROT. "); I_Method0(const osg::Vec3 &, getAxis, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getAxis, "Get the rotation axis. ", ""); I_Method1(void, setNormal, IN, const osg::Vec3 &, normal, + Properties::NON_VIRTUAL, __void__setNormal__C5_Vec3_R1, "This normal defines child Drawables' front face direction when unrotated. ", ""); I_Method0(const osg::Vec3 &, getNormal, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getNormal, "Get the front face direction normal. ", ""); I_Method2(void, setPosition, IN, unsigned int, i, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__setPosition__unsigned_int__C5_Vec3_R1, "Set the specified child Drawable's position. ", ""); I_Method1(const osg::Vec3 &, getPosition, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getPosition__unsigned_int, "Get the specified child Drawable's position. ", ""); I_Method1(void, setPositionList, IN, osg::Billboard::PositionList &, pl, + Properties::NON_VIRTUAL, __void__setPositionList__PositionList_R1, "Set the list of pivot point positions. ", ""); I_Method0(osg::Billboard::PositionList &, getPositionList, + Properties::NON_VIRTUAL, __PositionList_R1__getPositionList, "Get the list of pivot point positions. ", ""); I_Method0(const osg::Billboard::PositionList &, getPositionList, + Properties::NON_VIRTUAL, __C5_PositionList_R1__getPositionList, "Get a const list of pivot point positions. ", ""); I_Method1(bool, addDrawable, IN, osg::Drawable *, gset, + Properties::VIRTUAL, __bool__addDrawable__Drawable_P1, "Add a Drawable with a default position of Vec3(0,0,0). ", "Call the base-class Geode::addDrawble() to add the given Drawable gset as a child. If Geode::addDrawable() returns true, add the default position to the pivot point position list and return true. Otherwise, return false. "); I_Method2(bool, addDrawable, IN, osg::Drawable *, gset, IN, const osg::Vec3 &, pos, + Properties::VIRTUAL, __bool__addDrawable__Drawable_P1__C5_Vec3_R1, "Add a Drawable with a specified position. ", "Call the base-class Geode::addDrawble() to add the given Drawable gset as a child. If Geode::addDrawable() returns true, add the given position pos to the pivot point position list and return true. Otherwise, return false. "); I_Method1(bool, removeDrawable, IN, osg::Drawable *, gset, + Properties::VIRTUAL, __bool__removeDrawable__Drawable_P1, "Remove a Drawable and its associated position. ", "If gset is a child, remove it, decrement its reference count, remove its pivot point position. and return true. Otherwise, return false. "); I_Method3(bool, computeMatrix, IN, osg::Matrix &, modelview, IN, const osg::Vec3 &, eye_local, IN, const osg::Vec3 &, pos_local, + Properties::NON_VIRTUAL, __bool__computeMatrix__Matrix_R1__C5_Vec3_R1__C5_Vec3_R1, "", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osg/BlendColor.cpp b/src/osgWrappers/osg/BlendColor.cpp index b523dc89e..f84f0e4c2 100644 --- a/src/osgWrappers/osg/BlendColor.cpp +++ b/src/osgWrappers/osg/BlendColor.cpp @@ -25,12 +25,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::BlendColor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendColor) I_BaseType(osg::StateAttribute); I_Constructor0(____BlendColor, "", ""); I_Constructor1(IN, const osg::Vec4 &, constantColor, + Properties::NON_EXPLICIT, ____BlendColor__C5_osg_Vec4_R1, "", ""); @@ -39,50 +40,62 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setConstantColor__C5_osg_Vec4_R1, "", ""); I_Method0(osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, __osg_Vec4_R1__getConstantColor, "", ""); I_Method0(const osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getConstantColor, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -102,37 +115,45 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendColor) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BlendColor::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendColor::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::BlendColor::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::BlendColor::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setBlendColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setBlendColorSupported__bool, "", ""); I_Method0(bool, isBlendColorSupported, + Properties::NON_VIRTUAL, __bool__isBlendColorSupported, "", ""); I_Method1(void, setBlendColorProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setBlendColorProc__void_P1, "", ""); I_Method4(void, glBlendColor, IN, GLclampf, red, IN, GLclampf, green, IN, GLclampf, blue, IN, GLclampf, alpha, + Properties::NON_VIRTUAL, __void__glBlendColor__GLclampf__GLclampf__GLclampf__GLclampf, "", ""); diff --git a/src/osgWrappers/osg/BlendEquation.cpp b/src/osgWrappers/osg/BlendEquation.cpp index b775f152c..7f3804398 100644 --- a/src/osgWrappers/osg/BlendEquation.cpp +++ b/src/osgWrappers/osg/BlendEquation.cpp @@ -35,12 +35,13 @@ BEGIN_ENUM_REFLECTOR(osg::BlendEquation::Equation) I_EnumLabel(osg::BlendEquation::FUNC_REVERSE_SUBTRACT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendEquation) I_BaseType(osg::StateAttribute); I_Constructor0(____BlendEquation, "", ""); I_Constructor1(IN, osg::BlendEquation::Equation, equation, + Properties::NON_EXPLICIT, ____BlendEquation__Equation, "", ""); @@ -49,46 +50,57 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setEquation, IN, osg::BlendEquation::Equation, equation, + Properties::NON_VIRTUAL, __void__setEquation__Equation, "", ""); I_Method0(osg::BlendEquation::Equation, getEquation, + Properties::NON_VIRTUAL, __Equation__getEquation, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -108,45 +120,55 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BlendEquation::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendEquation::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::BlendEquation::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::BlendEquation::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setBlendEquationSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setBlendEquationSupported__bool, "", ""); I_Method0(bool, isBlendEquationSupported, + Properties::NON_VIRTUAL, __bool__isBlendEquationSupported, "", ""); I_Method0(bool, isSGIXMinMaxSupported, + Properties::NON_VIRTUAL, __bool__isSGIXMinMaxSupported, "", ""); I_Method0(bool, isLogicOpSupported, + Properties::NON_VIRTUAL, __bool__isLogicOpSupported, "", ""); I_Method1(void, setBlendEquationProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setBlendEquationProc__void_P1, "", ""); I_Method1(void, glBlendEquation, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__glBlendEquation__GLenum, "", ""); diff --git a/src/osgWrappers/osg/BlendFunc.cpp b/src/osgWrappers/osg/BlendFunc.cpp index 5ead0b7cb..b5a9d023e 100644 --- a/src/osgWrappers/osg/BlendFunc.cpp +++ b/src/osgWrappers/osg/BlendFunc.cpp @@ -42,7 +42,7 @@ BEGIN_ENUM_REFLECTOR(osg::BlendFunc::BlendFuncMode) I_EnumLabel(osg::BlendFunc::ZERO); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendFunc) I_BaseType(osg::StateAttribute); I_Constructor0(____BlendFunc, "", @@ -60,94 +60,117 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method2(void, setFunction, IN, GLenum, source, IN, GLenum, destination, + Properties::NON_VIRTUAL, __void__setFunction__GLenum__GLenum, "", ""); I_Method4(void, setFunction, IN, GLenum, source_rgb, IN, GLenum, destination_rgb, IN, GLenum, source_alpha, IN, GLenum, destination_alpha, + Properties::NON_VIRTUAL, __void__setFunction__GLenum__GLenum__GLenum__GLenum, "", ""); I_Method1(void, setSource, IN, GLenum, source, + Properties::NON_VIRTUAL, __void__setSource__GLenum, "", ""); I_Method0(GLenum, getSource, + Properties::NON_VIRTUAL, __GLenum__getSource, "", ""); I_Method1(void, setSourceRGB, IN, GLenum, source, + Properties::NON_VIRTUAL, __void__setSourceRGB__GLenum, "", ""); I_Method0(GLenum, getSourceRGB, + Properties::NON_VIRTUAL, __GLenum__getSourceRGB, "", ""); I_Method1(void, setSourceAlpha, IN, GLenum, source, + Properties::NON_VIRTUAL, __void__setSourceAlpha__GLenum, "", ""); I_Method0(GLenum, getSourceAlpha, + Properties::NON_VIRTUAL, __GLenum__getSourceAlpha, "", ""); I_Method1(void, setDestination, IN, GLenum, destination, + Properties::NON_VIRTUAL, __void__setDestination__GLenum, "", ""); I_Method0(GLenum, getDestination, + Properties::NON_VIRTUAL, __GLenum__getDestination, "", ""); I_Method1(void, setDestinationRGB, IN, GLenum, destination, + Properties::NON_VIRTUAL, __void__setDestinationRGB__GLenum, "", ""); I_Method0(GLenum, getDestinationRGB, + Properties::NON_VIRTUAL, __GLenum__getDestinationRGB, "", ""); I_Method1(void, setDestinationAlpha, IN, GLenum, destination, + Properties::NON_VIRTUAL, __void__setDestinationAlpha__GLenum, "", ""); I_Method0(GLenum, getDestinationAlpha, + Properties::NON_VIRTUAL, __GLenum__getDestinationAlpha, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -182,37 +205,45 @@ BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BlendFunc::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BlendFunc::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::BlendFunc::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::BlendFunc::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtensions__unsigned_int, "", ""); I_Method1(void, setBlendFuncSeparateSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setBlendFuncSeparateSupported__bool, "", ""); I_Method0(bool, isBlendFuncSeparateSupported, + Properties::NON_VIRTUAL, __bool__isBlendFuncSeparateSupported, "", ""); I_Method1(void, setBlendFuncSeparateProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setBlendFuncSeparateProc__void_P1, "", ""); I_Method4(void, glBlendFuncSeparate, IN, GLenum, sfactorRGB, IN, GLenum, dfactorRGB, IN, GLenum, sfactorAlpha, IN, GLenum, dfactorAlpha, + Properties::NON_VIRTUAL, __void__glBlendFuncSeparate__GLenum__GLenum__GLenum__GLenum, "", ""); diff --git a/src/osgWrappers/osg/BoundingBox.cpp b/src/osgWrappers/osg/BoundingBox.cpp index 82e0d24b5..d36dedffa 100644 --- a/src/osgWrappers/osg/BoundingBox.cpp +++ b/src/osgWrappers/osg/BoundingBox.cpp @@ -35,110 +35,137 @@ BEGIN_VALUE_REFLECTOR(osg::BoundingBox) "Creates a bounding box initialized to the given extents. ", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "Clear the bounding box. ", "Erases existing minimum and maximum extents. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "Returns true if the bounding box extents are valid, false otherwise. ", ""); I_Method6(void, set, IN, float, xmin, IN, float, ymin, IN, float, zmin, IN, float, xmax, IN, float, ymax, IN, float, zmax, + Properties::NON_VIRTUAL, __void__set__float__float__float__float__float__float, "Sets the bounding box extents. ", ""); I_Method2(void, set, IN, const osg::Vec3 &, min, IN, const osg::Vec3 &, max, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__C5_Vec3_R1, "Sets the bounding box extents. ", ""); I_Method0(float &, xMin, + Properties::NON_VIRTUAL, __float_R1__xMin, "", ""); I_Method0(float, xMin, + Properties::NON_VIRTUAL, __float__xMin, "", ""); I_Method0(float &, yMin, + Properties::NON_VIRTUAL, __float_R1__yMin, "", ""); I_Method0(float, yMin, + Properties::NON_VIRTUAL, __float__yMin, "", ""); I_Method0(float &, zMin, + Properties::NON_VIRTUAL, __float_R1__zMin, "", ""); I_Method0(float, zMin, + Properties::NON_VIRTUAL, __float__zMin, "", ""); I_Method0(float &, xMax, + Properties::NON_VIRTUAL, __float_R1__xMax, "", ""); I_Method0(float, xMax, + Properties::NON_VIRTUAL, __float__xMax, "", ""); I_Method0(float &, yMax, + Properties::NON_VIRTUAL, __float_R1__yMax, "", ""); I_Method0(float, yMax, + Properties::NON_VIRTUAL, __float__yMax, "", ""); I_Method0(float &, zMax, + Properties::NON_VIRTUAL, __float_R1__zMax, "", ""); I_Method0(float, zMax, + Properties::NON_VIRTUAL, __float__zMax, "", ""); I_Method0(const osg::Vec3, center, + Properties::NON_VIRTUAL, __C5_Vec3__center, "Calculates and returns the bounding box center. ", ""); I_Method0(float, radius, + Properties::NON_VIRTUAL, __float__radius, "Calculates and returns the bounding box radius. ", ""); I_Method0(float, radius2, + Properties::NON_VIRTUAL, __float__radius2, "Calculates and returns the squared length of the bounding box radius. ", "Note, radius2() is faster to calculate than radius(). "); I_Method1(const osg::Vec3, corner, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __C5_Vec3__corner__unsigned_int, "Returns a specific corner of the bounding box. ", "pos specifies the corner as a number between 0 and 7. Each bit selects an axis, X, Y, or Z from least- to most-significant. Unset bits select the minimum value for that axis, and set bits select the maximum. "); I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__expandBy__C5_Vec3_R1, "Expands the bounding box to include the given coordinate. ", "If the box is uninitialized, set its min and max extents to v. "); I_Method3(void, expandBy, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__expandBy__float__float__float, "Expands the bounding box to include the given coordinate. ", "If the box is uninitialized, set its min and max extents to Vec3(x,y,z). "); I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __void__expandBy__C5_BoundingBox_R1, "Expands this bounding box to include the given bounding box. ", "If this box is uninitialized, set it equal to bb. "); I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + Properties::NON_VIRTUAL, __void__expandBy__C5_BoundingSphere_R1, "Expands this bounding box to include the given sphere. ", "If this box is uninitialized, set it to include sh. "); I_Method1(osg::BoundingBox, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __BoundingBox__intersect__C5_BoundingBox_R1, "Returns the intesection of this bounding box and the specified bounding box. ", ""); I_Method1(bool, intersects, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__intersects__C5_BoundingBox_R1, "Return true if this bounding box intersects the specified bounding box. ", ""); I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __bool__contains__C5_Vec3_R1, "Returns true if this bounding box contains the specified coordinate. ", ""); diff --git a/src/osgWrappers/osg/BoundingSphere.cpp b/src/osgWrappers/osg/BoundingSphere.cpp index fa28d6d77..1979ce949 100644 --- a/src/osgWrappers/osg/BoundingSphere.cpp +++ b/src/osgWrappers/osg/BoundingSphere.cpp @@ -31,74 +31,92 @@ BEGIN_VALUE_REFLECTOR(osg::BoundingSphere) "Creates a bounding sphere initialized to the given extents. ", ""); I_Constructor1(IN, const osg::BoundingSphere &, bs, + Properties::NON_EXPLICIT, ____BoundingSphere__C5_BoundingSphere_R1, "Creates a bounding sphere initialized to the given extents. ", ""); I_Constructor1(IN, const osg::BoundingBox &, bb, + Properties::NON_EXPLICIT, ____BoundingSphere__C5_BoundingBox_R1, "Creates a bounding sphere initialized to the given extents. ", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "Clear the bounding sphere. ", "Reset to default values. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "Returns true of the bounding sphere extents are valid, false otherwise. ", ""); I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__float, "Set the bounding sphere to the given center/radius. ", ""); I_Method0(osg::Vec3 &, center, + Properties::NON_VIRTUAL, __Vec3_R1__center, "Returns the center of the bounding sphere. ", ""); I_Method0(const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __C5_Vec3_R1__center, "Returns the const center of the bounding sphere. ", ""); I_Method0(float &, radius, + Properties::NON_VIRTUAL, __float_R1__radius, "Returns the radius of the bounding sphere. ", ""); I_Method0(float, radius, + Properties::NON_VIRTUAL, __float__radius, "Returns the const radius of the bounding sphere. ", ""); I_Method0(float, radius2, + Properties::NON_VIRTUAL, __float__radius2, "Returns the squared length of the radius. ", "Note, For performance reasons, the calling method is responsible for checking to make sure the sphere is valid. "); I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__expandBy__C5_Vec3_R1, "Expands the sphere to encompass the given point. ", "Repositions the sphere center to minimize the radius increase. If the sphere is uninitialized, set its center to v and radius to zero. "); I_Method1(void, expandRadiusBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__expandRadiusBy__C5_Vec3_R1, "Expands the sphere to encompass the given point. ", "Does not reposition the sphere center. If the sphere is uninitialized, set its center to v and radius to zero. "); I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + Properties::NON_VIRTUAL, __void__expandBy__C5_BoundingSphere_R1, "Expands the sphere to encompass the given sphere. ", "Repositions the sphere center to minimize the radius increase. If the sphere is uninitialized, set its center and radius to match sh. "); I_Method1(void, expandRadiusBy, IN, const osg::BoundingSphere &, sh, + Properties::NON_VIRTUAL, __void__expandRadiusBy__C5_BoundingSphere_R1, "Expands the sphere to encompass the given sphere. ", "Does not repositions the sphere center. If the sphere is uninitialized, set its center and radius to match sh. "); I_Method1(void, expandBy, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __void__expandBy__C5_BoundingBox_R1, "Expands the sphere to encompass the given box. ", "Repositions the sphere center to minimize the radius increase. "); I_Method1(void, expandRadiusBy, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __void__expandRadiusBy__C5_BoundingBox_R1, "Expands the sphere to encompass the given box. ", "Does not repositions the sphere center. "); I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __bool__contains__C5_Vec3_R1, "Returns true if v is within the sphere. ", ""); I_Method1(bool, intersects, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __bool__intersects__C5_BoundingSphere_R1, "Returns true if there is a non-empty intersection with the given bounding sphere. ", ""); diff --git a/src/osgWrappers/osg/BufferObject.cpp b/src/osgWrappers/osg/BufferObject.cpp index edf1ee58c..3ca195f36 100644 --- a/src/osgWrappers/osg/BufferObject.cpp +++ b/src/osgWrappers/osg/BufferObject.cpp @@ -34,50 +34,62 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferObject) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + 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(bool, isBufferObjectSupported, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __bool__isBufferObjectSupported__unsigned_int, "", ""); I_Method1(bool, isPBOSupported, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __bool__isPBOSupported__unsigned_int, "", ""); I_Method1(GLuint &, buffer, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __GLuint_R1__buffer__unsigned_int, "", ""); I_Method1(void, bindBuffer, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__bindBuffer__unsigned_int, "", ""); I_Method1(void, unbindBuffer, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__unbindBuffer__unsigned_int, "", ""); I_Method1(bool, needsCompile, IN, unsigned int, contextID, + Properties::PURE_VIRTUAL, __bool__needsCompile__unsigned_int, "", ""); I_Method1(void, compileBuffer, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__compileBuffer__State_R1, "", ""); I_Method1(void, releaseBuffer, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__releaseBuffer__State_P1, "", ""); I_Method3(void, flushDeletedBufferObjects, IN, unsigned int, contextID, IN, double, x, IN, double &, availableTime, + Properties::NON_VIRTUAL, __void__flushDeletedBufferObjects__unsigned_int__double__double_R1, "flush all the cached display list which need to be deleted in the OpenGL context related to contextID. ", ""); @@ -100,6 +112,7 @@ BEGIN_VALUE_REFLECTOR(osg::BufferObject::BufferEntry) "", ""); I_Constructor1(IN, const osg::BufferObject::BufferEntry &, be, + Properties::NON_EXPLICIT, ____BufferEntry__C5_BufferEntry_R1, "", ""); @@ -108,73 +121,90 @@ BEGIN_VALUE_REFLECTOR(osg::BufferObject::BufferEntry) I_PublicMemberProperty(unsigned int, offset); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BufferObject::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferObject::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::BufferObject::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method0(bool, isBufferObjectSupported, + Properties::NON_VIRTUAL, __bool__isBufferObjectSupported, "", ""); I_Method0(bool, isPBOSupported, + Properties::NON_VIRTUAL, __bool__isPBOSupported, "", ""); I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, __void__glGenBuffers__GLsizei__GLuint_P1, "", ""); I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, __void__glBindBuffer__GLenum__GLuint, "", ""); I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, __void__glBufferData__GLenum__GLsizeiptrARB__C5_GLvoid_P1__GLenum, "", ""); I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, "", ""); I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, "", ""); I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, __GLboolean__glIsBuffer__GLuint, "", ""); I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, "", ""); I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, __GLvoid_P1__glMapBuffer__GLenum__GLenum, "", ""); I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, __GLboolean__glUnmapBuffer__GLenum, "", ""); I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, "", ""); I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, "", ""); @@ -182,9 +212,10 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::pair< osg::BufferObject::BufferEntry COMMA osg::Image * >, osg::PixelBufferObject::BufferEntryImagePair); -BEGIN_OBJECT_REFLECTOR(osg::PixelBufferObject) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PixelBufferObject) I_BaseType(osg::BufferObject); I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, ____PixelBufferObject__osg_Image_P1, "", ""); @@ -193,46 +224,57 @@ BEGIN_OBJECT_REFLECTOR(osg::PixelBufferObject) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __Image_P1__getImage, "", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_Image_P1__getImage, "", ""); I_Method0(unsigned int, offset, + Properties::NON_VIRTUAL, __unsigned_int__offset, "", ""); I_Method1(bool, needsCompile, IN, unsigned int, contextID, + Properties::VIRTUAL, __bool__needsCompile__unsigned_int, "", ""); I_Method1(void, compileBuffer, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileBuffer__State_R1, "", ""); diff --git a/src/osgWrappers/osg/Camera.cpp b/src/osgWrappers/osg/Camera.cpp index 68fca3b74..03a80736a 100644 --- a/src/osgWrappers/osg/Camera.cpp +++ b/src/osgWrappers/osg/Camera.cpp @@ -72,7 +72,7 @@ BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent) I_EnumLabel(osg::Camera::COLOR_BUFFER7); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Camera) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Camera) I_BaseType(osg::Transform); I_BaseType(osg::CullSettings); I_Constructor0(____Camera, @@ -83,322 +83,402 @@ BEGIN_OBJECT_REFLECTOR(osg::Camera) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, __void__setView__View_P1, "Set the View that this Camera is part of. ", ""); I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, __View_P1__getView, "Get the View that this Camera is part of. ", ""); I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, __C5_View_P1__getView, "Get the const View that this Camera is part of. ", ""); I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, __void__setStats__osg_Stats_P1, "Set the Stats object used for collect various frame related timing and scene graph stats. ", ""); I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, __osg_Stats_P1__getStats, "Get the Stats object. ", ""); I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, __C5_osg_Stats_P1__getStats, "Get the const Stats object. ", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearColor__C5_Vec4_R1, "Sets the clear color. ", ""); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getClearColor, "Returns the clear color. ", ""); I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, __void__setClearMask__GLbitfield, "Set the clear mask used in glClear(. ", ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, __GLbitfield__getClearMask, "Get the clear mask. ", ""); I_Method1(void, setColorMask, IN, osg::ColorMask *, colorMask, + Properties::NON_VIRTUAL, __void__setColorMask__osg_ColorMask_P1, "Set the color mask of the camera to use specified osg::ColorMask. ", ""); I_Method4(void, setColorMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + Properties::NON_VIRTUAL, __void__setColorMask__bool__bool__bool__bool, "Set the color mask of the camera to specified values. ", ""); I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, __C5_ColorMask_P1__getColorMask, "Get the const ColorMask. ", ""); I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, __ColorMask_P1__getColorMask, "Get the ColorMask. ", ""); I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, __void__setViewport__osg_Viewport_P1, "Set the viewport of the camera to use specified osg::Viewport. ", ""); I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setViewport__int__int__int__int, "Set the viewport of the camera to specified dimensions. ", ""); I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __C5_Viewport_P1__getViewport, "Get the const viewport. ", ""); I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __Viewport_P1__getViewport, "Get the viewport. ", ""); I_Method1(void, setTransformOrder, IN, osg::Camera::TransformOrder, order, + Properties::NON_VIRTUAL, __void__setTransformOrder__TransformOrder, "Set the transformation order for world-to-local and local-to-world transformation. ", ""); I_Method0(osg::Camera::TransformOrder, getTransformOrder, + Properties::NON_VIRTUAL, __TransformOrder__getTransformOrder, "Get the transformation order. ", ""); I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __osg_Matrixd_R1__getProjectionMatrix, "Get the projection matrix. ", ""); I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __osg_Matrixd_R1__getViewMatrix, "Get the view matrix. ", ""); I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __Matrixd__getInverseViewMatrix, "Get the inverse view matrix. ", ""); I_MethodWithDefaults2(void, setRenderOrder, IN, osg::Camera::RenderOrder, order, , IN, int, orderNum, 0, + Properties::NON_VIRTUAL, __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::Camera::RenderOrder, getRenderOrder, + Properties::NON_VIRTUAL, __RenderOrder__getRenderOrder, "Get the rendering order of this camera's subgraph relative to any camera that this subgraph is nested within. ", ""); I_Method0(int, getRenderOrderNum, + Properties::NON_VIRTUAL, __int__getRenderOrderNum, "Get the rendering order number of this camera relative to any sibling cameras in this subgraph. ", ""); I_Method0(bool, isRenderToTextureCamera, + Properties::NON_VIRTUAL, __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::Camera::RenderTargetImplementation, impl, + Properties::NON_VIRTUAL, __void__setRenderTargetImplementation__RenderTargetImplementation, "Set the render target. ", ""); I_Method2(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, IN, osg::Camera::RenderTargetImplementation, fallback, + Properties::NON_VIRTUAL, __void__setRenderTargetImplementation__RenderTargetImplementation__RenderTargetImplementation, "Set the render target and fall-back that's used if the former isn't available. ", ""); I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetImplementation, + Properties::NON_VIRTUAL, __RenderTargetImplementation__getRenderTargetImplementation, "Get the render target. ", ""); I_Method0(osg::Camera::RenderTargetImplementation, getRenderTargetFallback, + Properties::NON_VIRTUAL, __RenderTargetImplementation__getRenderTargetFallback, "Get the render target fallback. ", ""); I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, __void__setDrawBuffer__GLenum, "Set the draw buffer used at the start of each frame draw. ", "Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer. "); I_Method0(GLenum, getDrawBuffer, + Properties::NON_VIRTUAL, __GLenum__getDrawBuffer, "Get the draw buffer used at the start of each frame draw. ", ""); I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, __void__setReadBuffer__GLenum, "Set the read buffer for any required copy operations to use. ", "Note, a buffer value of GL_NONE is used to sepecify that the rendering back-end should choose the most appropriate buffer. "); I_Method0(GLenum, getReadBuffer, + Properties::NON_VIRTUAL, __GLenum__getReadBuffer, "Get the read buffer for any required copy operations to use. ", ""); I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, GLenum, internalFormat, + Properties::NON_VIRTUAL, __void__attach__BufferComponent__GLenum, "", ""); 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, + Properties::NON_VIRTUAL, __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool, "", ""); I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__attach__BufferComponent__osg_Image_P1, "", ""); I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer, + Properties::NON_VIRTUAL, __void__detach__BufferComponent, "", ""); I_Method0(osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, __BufferAttachmentMap_R1__getBufferAttachmentMap, "Get the BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", ""); I_Method0(const osg::Camera::BufferAttachmentMap &, getBufferAttachmentMap, + Properties::NON_VIRTUAL, __C5_BufferAttachmentMap_R1__getBufferAttachmentMap, "Get the const BufferAttachmentMap, used to configure frame buffer objects, pbuffers and texture reads. ", ""); I_Method0(void, createCameraThread, + Properties::NON_VIRTUAL, __void__createCameraThread, "Create a operation thread for this camera. ", ""); I_Method1(void, setCameraThread, IN, osg::OperationsThread *, gt, + Properties::NON_VIRTUAL, __void__setCameraThread__OperationsThread_P1, "Assign a operation thread to the camera. ", ""); I_Method0(osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, __OperationsThread_P1__getCameraThread, "Get the operation thread assigned to this camera. ", ""); I_Method0(const osg::OperationsThread *, getCameraThread, + Properties::NON_VIRTUAL, __C5_OperationsThread_P1__getCameraThread, "Get the const operation thread assigned to this camera. ", ""); I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, __void__setGraphicsContext__GraphicsContext_P1, "Set the GraphicsContext that provides the mechansim for managing the OpenGL graphics context associated with this camera. ", ""); I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __GraphicsContext_P1__getGraphicsContext, "Get the GraphicsContext. ", ""); I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __C5_GraphicsContext_P1__getGraphicsContext, "Get the const GraphicsContext. ", ""); I_Method2(void, setRenderingCache, IN, unsigned int, contextID, IN, osg::Object *, rc, + Properties::NON_VIRTUAL, __void__setRenderingCache__unsigned_int__osg_Object_P1, "Set the Rendering object that is used to implement rendering of the subgraph. ", ""); I_Method1(osg::Object *, getRenderingCache, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __osg_Object_P1__getRenderingCache__unsigned_int, "Get the Rendering object that is used to implement rendering of the subgraph. ", ""); I_Method1(const osg::Object *, getRenderingCache, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __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::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, __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::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, __DrawCallback_P1__getPostDrawCallback, "Get the post draw callback. ", ""); I_Method0(const osg::Camera::DrawCallback *, getPostDrawCallback, + Properties::NON_VIRTUAL, __C5_DrawCallback_P1__getPostDrawCallback, "Get the const post draw callback. ", ""); I_Method0(OpenThreads::Mutex *, getDataChangeMutex, + Properties::NON_VIRTUAL, __OpenThreads_Mutex_P1__getDataChangeMutex, "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "Transform method that must be defined to provide generic interface for scene graph traversals. ", ""); @@ -476,14 +556,17 @@ BEGIN_VALUE_REFLECTOR(osg::Camera::Attachment) "", ""); I_Method0(int, width, + Properties::NON_VIRTUAL, __int__width, "", ""); I_Method0(int, height, + Properties::NON_VIRTUAL, __int__height, "", ""); I_Method0(int, depth, + Properties::NON_VIRTUAL, __int__depth, "", ""); @@ -495,7 +578,7 @@ BEGIN_VALUE_REFLECTOR(osg::Camera::Attachment) I_PublicMemberProperty(bool, _mipMapGeneration); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Camera::DrawCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____DrawCallback, "", @@ -505,22 +588,27 @@ BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback) "", ""); 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. "); diff --git a/src/osgWrappers/osg/CameraView.cpp b/src/osgWrappers/osg/CameraView.cpp index 1875e5664..5275a2a7b 100644 --- a/src/osgWrappers/osg/CameraView.cpp +++ b/src/osgWrappers/osg/CameraView.cpp @@ -32,7 +32,7 @@ BEGIN_ENUM_REFLECTOR(osg::CameraView::FieldOfViewMode) I_EnumLabel(osg::CameraView::VERTICAL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::CameraView) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CameraView) I_BaseType(osg::Transform); I_Constructor0(____CameraView, "", @@ -42,74 +42,92 @@ BEGIN_OBJECT_REFLECTOR(osg::CameraView) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_Vec3d_R1, "Set the position of the camera view. ", ""); I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, __C5_Vec3d_R1__getPosition, "Get the position of the camera view. ", ""); I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setAttitude__C5_Quat_R1, "Set the attitide of the camera view. ", ""); I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, __C5_Quat_R1__getAttitude, "Get the attitide of the camera view. ", ""); I_Method1(void, setFieldOfView, IN, double, fieldOfView, + Properties::NON_VIRTUAL, __void__setFieldOfView__double, "Set the field of view. ", "The cameras field of view can be contrained to either the horizontal or vertex axis of the camera, or unconstrained in which case the camera/application are left to choose an appropriate field of view. The default value if 60 degrres. "); I_Method0(double, getFieldOfView, + Properties::NON_VIRTUAL, __double__getFieldOfView, "Get the field of view. ", ""); I_Method1(void, setFieldOfViewMode, IN, osg::CameraView::FieldOfViewMode, mode, + Properties::NON_VIRTUAL, __void__setFieldOfViewMode__FieldOfViewMode, "Set the field of view mode - controlling how the field of view of the camera is contrained by the CameaView settings. ", ""); I_Method0(osg::CameraView::FieldOfViewMode, getFieldOfViewMode, + Properties::NON_VIRTUAL, __FieldOfViewMode__getFieldOfViewMode, "Get the field of view mode. ", ""); I_Method1(void, setFocalLength, IN, double, focalLength, + Properties::NON_VIRTUAL, __void__setFocalLength__double, "Set the focal length of the camera. ", "A focal length of 0.0 indicates that the camera/application should determine the focal length. The default value is 0.0. "); I_Method0(double, getFocalLength, + Properties::NON_VIRTUAL, __double__getFocalLength, "Get the focal length of the camera. ", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "", ""); diff --git a/src/osgWrappers/osg/ClampColor.cpp b/src/osgWrappers/osg/ClampColor.cpp index 2fe825572..8bd00d74e 100644 --- a/src/osgWrappers/osg/ClampColor.cpp +++ b/src/osgWrappers/osg/ClampColor.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ClampColor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClampColor) I_BaseType(osg::StateAttribute); I_Constructor0(____ClampColor, "", @@ -38,58 +38,72 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setClampVertexColor, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__setClampVertexColor__GLenum, "", ""); I_Method0(GLenum, getClampVertexColor, + Properties::NON_VIRTUAL, __GLenum__getClampVertexColor, "", ""); I_Method1(void, setClampFragmentColor, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__setClampFragmentColor__GLenum, "", ""); I_Method0(GLenum, getClampFragmentColor, + Properties::NON_VIRTUAL, __GLenum__getClampFragmentColor, "", ""); I_Method1(void, setClampReadColor, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__setClampReadColor__GLenum, "", ""); I_Method0(GLenum, getClampReadColor, + Properties::NON_VIRTUAL, __GLenum__getClampReadColor, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -115,37 +129,45 @@ BEGIN_OBJECT_REFLECTOR(osg::ClampColor) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ClampColor::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClampColor::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::ClampColor::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::ClampColor::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setClampColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setClampColorSupported__bool, "", ""); I_Method0(bool, isClampColorSupported, + Properties::NON_VIRTUAL, __bool__isClampColorSupported, "", ""); I_Method1(void, setClampColorProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setClampColorProc__void_P1, "", ""); I_Method2(void, glClampColor, IN, GLenum, target, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__glClampColor__GLenum__GLenum, "", ""); diff --git a/src/osgWrappers/osg/ClearNode.cpp b/src/osgWrappers/osg/ClearNode.cpp index bb9611055..463883c35 100644 --- a/src/osgWrappers/osg/ClearNode.cpp +++ b/src/osgWrappers/osg/ClearNode.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ClearNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClearNode) I_BaseType(osg::Group); I_Constructor0(____ClearNode, "", @@ -34,50 +34,62 @@ BEGIN_OBJECT_REFLECTOR(osg::ClearNode) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setRequiresClear, IN, bool, requiresClear, + Properties::NON_VIRTUAL, __void__setRequiresClear__bool, "Enable/disable clearing via glClear. ", ""); I_Method0(bool, getRequiresClear, + Properties::NON_VIRTUAL, __bool__getRequiresClear, "Gets whether clearing is enabled or disabled. ", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearColor__C5_Vec4_R1, "Sets the clear color. ", ""); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getClearColor, "Returns the clear color. ", ""); I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, __void__setClearMask__GLbitfield, "Set the clear mask used in glClear(. ", ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, __GLbitfield__getClearMask, "Get the clear mask. ", ""); diff --git a/src/osgWrappers/osg/ClipNode.cpp b/src/osgWrappers/osg/ClipNode.cpp index 10269e2a4..07d7c3793 100644 --- a/src/osgWrappers/osg/ClipNode.cpp +++ b/src/osgWrappers/osg/ClipNode.cpp @@ -30,7 +30,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::ClipPlane > >, osg::ClipNode::ClipPlaneList); -BEGIN_OBJECT_REFLECTOR(osg::ClipNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClipNode) I_BaseType(osg::Group); I_Constructor0(____ClipNode, "", @@ -40,78 +40,97 @@ BEGIN_OBJECT_REFLECTOR(osg::ClipNode) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_MethodWithDefaults2(void, createClipBox, IN, const osg::BoundingBox &, bb, , IN, unsigned int, clipPlaneNumberBase, 0, + Properties::NON_VIRTUAL, __void__createClipBox__C5_BoundingBox_R1__unsigned_int, "Creates six clip planes corresponding to the given BoundingBox. ", ""); I_Method1(bool, addClipPlane, IN, osg::ClipPlane *, clipplane, + Properties::NON_VIRTUAL, __bool__addClipPlane__ClipPlane_P1, "Adds the clipplane. ", "Returns true on success, and false if the plane has already been added, or if clipplane is NULL. "); I_Method1(bool, removeClipPlane, IN, osg::ClipPlane *, clipplane, + Properties::NON_VIRTUAL, __bool__removeClipPlane__ClipPlane_P1, "Removes the clipplane. ", "Returns true on success, false if clipplane isn't in this ClipNode. "); I_Method1(bool, removeClipPlane, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__removeClipPlane__unsigned_int, "Remove the ClipPlane with the given index. ", "Returns true on success, false if pos is not a valid plane index. "); I_Method0(unsigned int, getNumClipPlanes, + Properties::NON_VIRTUAL, __unsigned_int__getNumClipPlanes, "Returns the number of ClipPlanes. ", ""); I_Method1(osg::ClipPlane *, getClipPlane, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __ClipPlane_P1__getClipPlane__unsigned_int, "Get ClipPlane at the given index position. ", ""); I_Method1(const osg::ClipPlane *, getClipPlane, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __C5_ClipPlane_P1__getClipPlane__unsigned_int, "Get const ClipPlane at the given index position. ", ""); I_Method1(void, getClipPlaneList, IN, const osg::ClipNode::ClipPlaneList &, cpl, + Properties::NON_VIRTUAL, __void__getClipPlaneList__C5_ClipPlaneList_R1, "Set the ClipPlaneList. ", ""); I_Method0(osg::ClipNode::ClipPlaneList &, getClipPlaneList, + Properties::NON_VIRTUAL, __ClipPlaneList_R1__getClipPlaneList, "Get the ClipPlaneList. ", ""); I_Method0(const osg::ClipNode::ClipPlaneList &, getClipPlaneList, + Properties::NON_VIRTUAL, __C5_ClipPlaneList_R1__getClipPlaneList, "Get the const ClipPlaneList. ", ""); I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x, + Properties::NON_VIRTUAL, __void__setStateSetModes__StateSet_R1__StateAttribute_GLModeValue, "Set the GLModes for all ClipPlanes, on the StateSet. ", ""); I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, x, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, __void__setLocalStateSetModes__StateAttribute_GLModeValue, "Set up the local StateSet. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); @@ -135,26 +154,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::ClipPlane >) "", ""); I_Constructor1(IN, osg::ClipPlane *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::ClipPlane > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::ClipPlane *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::ClipPlane *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::ClipPlane > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/ClipPlane.cpp b/src/osgWrappers/osg/ClipPlane.cpp index 66ebacd8d..1157ba6f7 100644 --- a/src/osgWrappers/osg/ClipPlane.cpp +++ b/src/osgWrappers/osg/ClipPlane.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClipPlane) I_BaseType(osg::StateAttribute); I_Constructor0(____ClipPlane, "", @@ -48,66 +48,82 @@ BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(unsigned int, getMember, + Properties::VIRTUAL, __unsigned_int__getMember, "Return the member identifier within the attribute's class type. ", "Used for light number/clip plane number etc. "); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setClipPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, __void__setClipPlane__C5_Plane_R1, "Set the clip plane with the given Plane. ", ""); I_Method4(void, setClipPlane, IN, double, a, IN, double, b, IN, double, c, IN, double, d, + Properties::NON_VIRTUAL, __void__setClipPlane__double__double__double__double, "Defines the plane as [ a b c d ]. ", ""); I_Method1(void, setClipPlane, IN, const osg::Vec4d &, plane, + Properties::NON_VIRTUAL, __void__setClipPlane__C5_Vec4d_R1, "Set the clip plane with the given Vec4. ", ""); I_Method0(const osg::Vec4d &, getClipPlane, + Properties::NON_VIRTUAL, __C5_Vec4d_R1__getClipPlane, "Gets the clip plane as a Vec4d. ", ""); I_Method1(void, setClipPlaneNum, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setClipPlaneNum__unsigned_int, "Sets the clip plane number. ", ""); I_Method0(unsigned int, getClipPlaneNum, + Properties::NON_VIRTUAL, __unsigned_int__getClipPlaneNum, "Gets the clip plane number. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Applies the clip plane's state to the OpenGL state machine. ", ""); diff --git a/src/osgWrappers/osg/ClusterCullingCallback.cpp b/src/osgWrappers/osg/ClusterCullingCallback.cpp index ed87616a8..f371f458d 100644 --- a/src/osgWrappers/osg/ClusterCullingCallback.cpp +++ b/src/osgWrappers/osg/ClusterCullingCallback.cpp @@ -28,7 +28,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ClusterCullingCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ClusterCullingCallback) I_BaseType(osg::Drawable::CullCallback); I_BaseType(osg::NodeCallback); I_Constructor0(____ClusterCullingCallback, @@ -43,74 +43,92 @@ BEGIN_OBJECT_REFLECTOR(osg::ClusterCullingCallback) "", ""); I_Constructor1(IN, const osg::Drawable *, drawable, + Properties::NON_EXPLICIT, ____ClusterCullingCallback__C5_osg_Drawable_P1, "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, computeFrom, IN, const osg::Drawable *, drawable, + Properties::NON_VIRTUAL, __void__computeFrom__C5_osg_Drawable_P1, "Computes the control point, normal, and deviation from the given drawable contents. ", ""); I_Method1(void, transform, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__transform__C5_osg_Matrixd_R1, "Transform the ClusterCullingCallback's positional members to a new coordinate frame. ", ""); I_Method4(void, set, IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation, IN, float, radius, + Properties::NON_VIRTUAL, __void__set__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float__float, "", ""); I_Method1(void, setControlPoint, IN, const osg::Vec3 &, controlPoint, + Properties::NON_VIRTUAL, __void__setControlPoint__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getControlPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getControlPoint, "", ""); I_Method1(void, setNormal, IN, const osg::Vec3 &, normal, + Properties::NON_VIRTUAL, __void__setNormal__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getNormal, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getNormal, "", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "", ""); I_Method1(void, setDeviation, IN, float, deviation, + Properties::NON_VIRTUAL, __void__setDeviation__float, "", ""); I_Method0(float, getDeviation, + Properties::NON_VIRTUAL, __float__getDeviation, "", ""); I_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + Properties::VIRTUAL, __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_State_P1, "deprecated. ", ""); diff --git a/src/osgWrappers/osg/CollectOccludersVisitor.cpp b/src/osgWrappers/osg/CollectOccludersVisitor.cpp index eb2a113ac..134fc4c98 100644 --- a/src/osgWrappers/osg/CollectOccludersVisitor.cpp +++ b/src/osgWrappers/osg/CollectOccludersVisitor.cpp @@ -29,93 +29,114 @@ TYPE_NAME_ALIAS(std::set< osg::ShadowVolumeOccluder >, osg::CollectOccludersVisitor::ShadowVolumeOccluderSet); -BEGIN_OBJECT_REFLECTOR(osg::CollectOccludersVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CollectOccludersVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::CullStack); I_Constructor0(____CollectOccludersVisitor, "", ""); I_Method0(osg::CollectOccludersVisitor *, cloneType, + Properties::VIRTUAL, __CollectOccludersVisitor_P1__cloneType, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_Vec3_R1__bool, "Get the distance from a point to the view point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceToViewPoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceFromEyePoint__C5_Vec3_R1__bool, "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, __void__apply__osg_OccluderNode_R1, "", ""); I_Method1(void, setMinimumShadowOccluderVolume, IN, float, vol, + Properties::NON_VIRTUAL, __void__setMinimumShadowOccluderVolume__float, "Sets the minimum shadow occluder volume that an active occluder must have. ", "vol is units relative the clip space volume where 1.0 is the whole clip space. "); I_Method0(float, getMinimumShadowOccluderVolume, + Properties::NON_VIRTUAL, __float__getMinimumShadowOccluderVolume, "", ""); I_Method1(void, setMaximumNumberOfActiveOccluders, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setMaximumNumberOfActiveOccluders__unsigned_int, "Sets the maximum number of occluders to have active for culling purposes. ", ""); I_Method0(unsigned int, getMaximumNumberOfActiveOccluders, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumNumberOfActiveOccluders, "", ""); I_Method1(void, setCreateDrawablesOnOccludeNodes, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setCreateDrawablesOnOccludeNodes__bool, "", ""); I_Method0(bool, getCreateDrawablesOnOccludeNodes, + Properties::NON_VIRTUAL, __bool__getCreateDrawablesOnOccludeNodes, "", ""); I_Method1(void, setCollectedOcculderSet, IN, const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, svol, + Properties::NON_VIRTUAL, __void__setCollectedOcculderSet__C5_ShadowVolumeOccluderSet_R1, "", ""); I_Method0(osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet, + Properties::NON_VIRTUAL, __ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, "", ""); I_Method0(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, getCollectedOccluderSet, + Properties::NON_VIRTUAL, __C5_ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, "", ""); I_Method0(void, removeOccludedOccluders, + Properties::NON_VIRTUAL, __void__removeOccludedOccluders, "Removes occluded occluders for the collected occluders list, then discards all but MaximumNumberOfActiveOccluders of occluders, discarding the occluders with the lowests shadow occluder volume. ", ""); diff --git a/src/osgWrappers/osg/ColorMask.cpp b/src/osgWrappers/osg/ColorMask.cpp index b31f1b84d..46c2363a2 100644 --- a/src/osgWrappers/osg/ColorMask.cpp +++ b/src/osgWrappers/osg/ColorMask.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ColorMask) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ColorMask) I_BaseType(osg::StateAttribute); I_Constructor0(____ColorMask, "", @@ -38,70 +38,87 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMask) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method4(void, setMask, IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + Properties::NON_VIRTUAL, __void__setMask__bool__bool__bool__bool, "", ""); I_Method1(void, setRedMask, IN, bool, mask, + Properties::NON_VIRTUAL, __void__setRedMask__bool, "", ""); I_Method0(bool, getRedMask, + Properties::NON_VIRTUAL, __bool__getRedMask, "", ""); I_Method1(void, setGreenMask, IN, bool, mask, + Properties::NON_VIRTUAL, __void__setGreenMask__bool, "", ""); I_Method0(bool, getGreenMask, + Properties::NON_VIRTUAL, __bool__getGreenMask, "", ""); I_Method1(void, setBlueMask, IN, bool, mask, + Properties::NON_VIRTUAL, __void__setBlueMask__bool, "", ""); I_Method0(bool, getBlueMask, + Properties::NON_VIRTUAL, __bool__getBlueMask, "", ""); I_Method1(void, setAlphaMask, IN, bool, mask, + Properties::NON_VIRTUAL, __void__setAlphaMask__bool, "", ""); I_Method0(bool, getAlphaMask, + Properties::NON_VIRTUAL, __bool__getAlphaMask, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/ColorMatrix.cpp b/src/osgWrappers/osg/ColorMatrix.cpp index d870551fe..82d613658 100644 --- a/src/osgWrappers/osg/ColorMatrix.cpp +++ b/src/osgWrappers/osg/ColorMatrix.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ColorMatrix) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ColorMatrix) I_BaseType(osg::StateAttribute); I_Constructor0(____ColorMatrix, "", @@ -35,46 +35,57 @@ BEGIN_OBJECT_REFLECTOR(osg::ColorMatrix) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setMatrix__C5_Matrix_R1, "Sets the color matrix. ", ""); I_Method0(osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __Matrix_R1__getMatrix, "Gets the color matrix. ", ""); I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __C5_Matrix_R1__getMatrix, "Gets the const color matrix. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Applies as OpenGL texture matrix. ", ""); diff --git a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp index 36fae392a..41aba28f2 100644 --- a/src/osgWrappers/osg/ConvexPlanarOccluder.cpp +++ b/src/osgWrappers/osg/ConvexPlanarOccluder.cpp @@ -25,7 +25,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ConvexPlanarPolygon >, osg::ConvexPlanarOccluder::HoleList); -BEGIN_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) I_BaseType(osg::Object); I_Constructor0(____ConvexPlanarOccluder, "", @@ -35,50 +35,62 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setOccluder, IN, const osg::ConvexPlanarPolygon &, cpp, + Properties::NON_VIRTUAL, __void__setOccluder__C5_ConvexPlanarPolygon_R1, "", ""); I_Method0(osg::ConvexPlanarPolygon &, getOccluder, + Properties::NON_VIRTUAL, __ConvexPlanarPolygon_R1__getOccluder, "", ""); I_Method0(const osg::ConvexPlanarPolygon &, getOccluder, + Properties::NON_VIRTUAL, __C5_ConvexPlanarPolygon_R1__getOccluder, "", ""); I_Method1(void, addHole, IN, const osg::ConvexPlanarPolygon &, cpp, + Properties::NON_VIRTUAL, __void__addHole__C5_ConvexPlanarPolygon_R1, "", ""); I_Method1(void, setHoleList, IN, const osg::ConvexPlanarOccluder::HoleList &, holeList, + Properties::NON_VIRTUAL, __void__setHoleList__C5_HoleList_R1, "", ""); I_Method0(osg::ConvexPlanarOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, __HoleList_R1__getHoleList, "", ""); I_Method0(const osg::ConvexPlanarOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, __C5_HoleList_R1__getHoleList, "", ""); diff --git a/src/osgWrappers/osg/ConvexPlanarPolygon.cpp b/src/osgWrappers/osg/ConvexPlanarPolygon.cpp index 05c3fc0d2..e1c495a74 100644 --- a/src/osgWrappers/osg/ConvexPlanarPolygon.cpp +++ b/src/osgWrappers/osg/ConvexPlanarPolygon.cpp @@ -28,18 +28,22 @@ BEGIN_VALUE_REFLECTOR(osg::ConvexPlanarPolygon) "", ""); I_Method1(void, add, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__add__C5_Vec3_R1, "", ""); I_Method1(void, setVertexList, IN, const osg::ConvexPlanarPolygon::VertexList &, vertexList, + Properties::NON_VIRTUAL, __void__setVertexList__C5_VertexList_R1, "", ""); I_Method0(osg::ConvexPlanarPolygon::VertexList &, getVertexList, + Properties::NON_VIRTUAL, __VertexList_R1__getVertexList, "", ""); I_Method0(const osg::ConvexPlanarPolygon::VertexList &, getVertexList, + Properties::NON_VIRTUAL, __C5_VertexList_R1__getVertexList, "", ""); diff --git a/src/osgWrappers/osg/CoordinateSystemNode.cpp b/src/osgWrappers/osg/CoordinateSystemNode.cpp index 050a64fa0..3bc4ffa5f 100644 --- a/src/osgWrappers/osg/CoordinateSystemNode.cpp +++ b/src/osgWrappers/osg/CoordinateSystemNode.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::CoordinateSystemNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CoordinateSystemNode) I_BaseType(osg::Group); I_Constructor0(____CoordinateSystemNode, "", @@ -39,66 +39,82 @@ BEGIN_OBJECT_REFLECTOR(osg::CoordinateSystemNode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, set, IN, const osg::CoordinateSystemNode &, csn, + Properties::NON_VIRTUAL, __void__set__C5_CoordinateSystemNode_R1, "Set the coordinate system node up by copy the format, coordinate system string, and ellipsoid model of another coordinate system node. ", ""); I_Method1(void, setFormat, IN, const std::string &, format, + Properties::NON_VIRTUAL, __void__setFormat__C5_std_string_R1, "Set the coordinate system format string. ", "Typical values would be WKT, PROJ4, USGS etc. "); I_Method0(const std::string &, getFormat, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFormat, "Get the coordinate system format string. ", ""); I_Method1(void, setCoordinateSystem, IN, const std::string &, cs, + Properties::NON_VIRTUAL, __void__setCoordinateSystem__C5_std_string_R1, "Set the CoordinateSystem reference string, should be stored in a form consistent with the Format. ", ""); I_Method0(const std::string &, getCoordinateSystem, + Properties::NON_VIRTUAL, __C5_std_string_R1__getCoordinateSystem, "Get the CoordinateSystem reference string. ", ""); I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, ellipsode, + Properties::NON_VIRTUAL, __void__setEllipsoidModel__EllipsoidModel_P1, "Set EllipsoidModel to describe the model used to map lat, long and height into geocentric XYZ and back. ", ""); I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, __EllipsoidModel_P1__getEllipsoidModel, "Get the EllipsoidModel. ", ""); I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, __C5_EllipsoidModel_P1__getEllipsoidModel, "Get the const EllipsoidModel. ", ""); I_Method1(osg::CoordinateFrame, computeLocalCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::NON_VIRTUAL, __CoordinateFrame__computeLocalCoordinateFrame__C5_Vec3d_R1, "Compute the local coordinate frame for specified point. ", ""); I_Method1(osg::Vec3d, computeLocalUpVector, IN, const osg::Vec3d &, position, + Properties::NON_VIRTUAL, __osg_Vec3d__computeLocalUpVector__C5_Vec3d_R1, "Compute the local coordinate frame for specified point. ", ""); @@ -113,7 +129,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CoordinateSystemNode) __void__setFormat__C5_std_string_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::EllipsoidModel) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::EllipsoidModel) I_BaseType(osg::Object); I_ConstructorWithDefaults2(IN, double, radiusEquator, osg::WGS_84_RADIUS_EQUATOR, IN, double, radiusPolar, osg::WGS_84_RADIUS_POLAR, ____EllipsoidModel__double__double, @@ -124,58 +140,72 @@ BEGIN_OBJECT_REFLECTOR(osg::EllipsoidModel) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setRadiusEquator, IN, double, radius, + Properties::NON_VIRTUAL, __void__setRadiusEquator__double, "", ""); I_Method0(double, getRadiusEquator, + Properties::NON_VIRTUAL, __double__getRadiusEquator, "", ""); I_Method1(void, setRadiusPolar, IN, double, radius, + Properties::NON_VIRTUAL, __void__setRadiusPolar__double, "", ""); I_Method0(double, getRadiusPolar, + Properties::NON_VIRTUAL, __double__getRadiusPolar, "", ""); I_Method6(void, convertLatLongHeightToXYZ, IN, double, latitude, IN, double, longitude, IN, double, height, IN, double &, X, IN, double &, Y, IN, double &, Z, + Properties::NON_VIRTUAL, __void__convertLatLongHeightToXYZ__double__double__double__double_R1__double_R1__double_R1, "", ""); I_Method6(void, convertXYZToLatLongHeight, IN, double, X, IN, double, Y, IN, double, Z, IN, double &, latitude, IN, double &, longitude, IN, double &, height, + Properties::NON_VIRTUAL, __void__convertXYZToLatLongHeight__double__double__double__double_R1__double_R1__double_R1, "", ""); I_Method4(void, computeLocalToWorldTransformFromLatLongHeight, IN, double, latitude, IN, double, longitude, IN, double, height, IN, osg::Matrixd &, localToWorld, + Properties::NON_VIRTUAL, __void__computeLocalToWorldTransformFromLatLongHeight__double__double__double__osg_Matrixd_R1, "", ""); I_Method4(void, computeLocalToWorldTransformFromXYZ, IN, double, X, IN, double, Y, IN, double, Z, IN, osg::Matrixd &, localToWorld, + Properties::NON_VIRTUAL, __void__computeLocalToWorldTransformFromXYZ__double__double__double__osg_Matrixd_R1, "", ""); I_Method3(osg::Vec3d, computeLocalUpVector, IN, double, X, IN, double, Y, IN, double, Z, + Properties::NON_VIRTUAL, __osg_Vec3d__computeLocalUpVector__double__double__double, "", ""); diff --git a/src/osgWrappers/osg/CopyOp.cpp b/src/osgWrappers/osg/CopyOp.cpp index 5e296c83c..a05fc61d3 100644 --- a/src/osgWrappers/osg/CopyOp.cpp +++ b/src/osgWrappers/osg/CopyOp.cpp @@ -50,8 +50,9 @@ BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options) I_EnumLabel(osg::CopyOp::DEEP_COPY_ALL); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::CopyOp) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CopyOp) I_ConstructorWithDefaults1(IN, osg::CopyOp::CopyFlags, flags, osg::CopyOp::SHALLOW_COPY, + Properties::NON_EXPLICIT, ____CopyOp__CopyFlags, "", ""); diff --git a/src/osgWrappers/osg/CullFace.cpp b/src/osgWrappers/osg/CullFace.cpp index 4d044053f..013be997d 100644 --- a/src/osgWrappers/osg/CullFace.cpp +++ b/src/osgWrappers/osg/CullFace.cpp @@ -30,9 +30,10 @@ BEGIN_ENUM_REFLECTOR(osg::CullFace::Mode) I_EnumLabel(osg::CullFace::FRONT_AND_BACK); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::CullFace) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullFace) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, osg::CullFace::Mode, mode, osg::CullFace::BACK, + Properties::NON_EXPLICIT, ____CullFace__Mode, "", ""); @@ -41,46 +42,57 @@ BEGIN_OBJECT_REFLECTOR(osg::CullFace) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setMode, IN, osg::CullFace::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::CullFace::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/CullSettings.cpp b/src/osgWrappers/osg/CullSettings.cpp index f54ba5605..a0136996b 100644 --- a/src/osgWrappers/osg/CullSettings.cpp +++ b/src/osgWrappers/osg/CullSettings.cpp @@ -64,155 +64,192 @@ BEGIN_ENUM_REFLECTOR(osg::CullSettings::CullingModeValues) I_EnumLabel(osg::CullSettings::ENABLE_ALL_CULLING); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::CullSettings) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullSettings) I_Constructor0(____CullSettings, "", ""); I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, ____CullSettings__ArgumentParser_R1, "", ""); I_Constructor1(IN, const osg::CullSettings &, cs, + Properties::NON_EXPLICIT, ____CullSettings__C5_CullSettings_R1, "", ""); I_Method0(void, setDefaults, + Properties::NON_VIRTUAL, __void__setDefaults, "", ""); I_Method1(void, setInheritanceMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setInheritanceMask__unsigned_int, "Set the inheritance mask used in inheritCullSettings to control which variables get overritten by the passed in CullSettings object. ", ""); I_Method0(unsigned int, getInheritanceMask, + Properties::NON_VIRTUAL, __unsigned_int__getInheritanceMask, "Get the inheritance mask used in inheritCullSettings to control which variables get overritten by the passed in CullSettings object. ", ""); I_Method1(void, setCullSettings, IN, const osg::CullSettings &, settings, + Properties::NON_VIRTUAL, __void__setCullSettings__C5_CullSettings_R1, "Set the local cull settings values from specified CullSettings object. ", ""); I_Method1(void, inheritCullSettings, IN, const osg::CullSettings &, settings, + Properties::NON_VIRTUAL, __void__inheritCullSettings__C5_CullSettings_R1, "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", ""); I_Method2(void, inheritCullSettings, IN, const osg::CullSettings &, settings, IN, unsigned int, inheritanceMask, + Properties::NON_VIRTUAL, __void__inheritCullSettings__C5_CullSettings_R1__unsigned_int, "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", ""); I_Method0(void, readEnvironmentalVariables, + Properties::NON_VIRTUAL, __void__readEnvironmentalVariables, "read the environmental variables. ", ""); I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments, + Properties::NON_VIRTUAL, __void__readCommandLine__ArgumentParser_R1, "read the commandline arguments. ", ""); I_Method1(void, setImpostorsActive, IN, bool, active, + Properties::NON_VIRTUAL, __void__setImpostorsActive__bool, "Switch the creation of Impostors on or off. ", "Setting active to false forces the CullVisitor to use the Impostor LOD children for rendering. Setting active to true forces the CullVisitor to create the appropriate pre-rendering stages which render to the ImpostorSprite's texture. "); I_Method0(bool, getImpostorsActive, + Properties::NON_VIRTUAL, __bool__getImpostorsActive, "Get whether impostors are active or not. ", ""); I_Method1(void, setImpostorPixelErrorThreshold, IN, float, numPixels, + Properties::NON_VIRTUAL, __void__setImpostorPixelErrorThreshold__float, "Set the impostor error threshold. ", "Used in calculation of whether impostors remain valid. "); I_Method0(float, getImpostorPixelErrorThreshold, + Properties::NON_VIRTUAL, __float__getImpostorPixelErrorThreshold, "Get the impostor error threshold. ", ""); I_Method1(void, setDepthSortImpostorSprites, IN, bool, doDepthSort, + Properties::NON_VIRTUAL, __void__setDepthSortImpostorSprites__bool, "Set whether ImpostorSprite's should be placed in a depth sorted bin for rendering. ", ""); I_Method0(bool, getDepthSortImpostorSprites, + Properties::NON_VIRTUAL, __bool__getDepthSortImpostorSprites, "Get whether ImpostorSprite's are depth sorted bin for rendering. ", ""); I_Method1(void, setNumberOfFrameToKeepImpostorSprites, IN, int, numFrames, + Properties::NON_VIRTUAL, __void__setNumberOfFrameToKeepImpostorSprites__int, "Set the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ", ""); I_Method0(int, getNumberOfFrameToKeepImpostorSprites, + Properties::NON_VIRTUAL, __int__getNumberOfFrameToKeepImpostorSprites, "Get the number of frames that an ImpostorSprite is kept whilst not being beyond, before being recycled. ", ""); I_Method1(void, setComputeNearFarMode, IN, osg::CullSettings::ComputeNearFarMode, cnfm, + Properties::NON_VIRTUAL, __void__setComputeNearFarMode__ComputeNearFarMode, "", ""); I_Method0(osg::CullSettings::ComputeNearFarMode, getComputeNearFarMode, + Properties::NON_VIRTUAL, __ComputeNearFarMode__getComputeNearFarMode, "", ""); I_Method1(void, setNearFarRatio, IN, double, ratio, + Properties::NON_VIRTUAL, __void__setNearFarRatio__double, "", ""); I_Method0(double, getNearFarRatio, + Properties::NON_VIRTUAL, __double__getNearFarRatio, "", ""); I_Method1(void, setCullingMode, IN, osg::CullSettings::CullingMode, mode, + Properties::NON_VIRTUAL, __void__setCullingMode__CullingMode, "Set the culling mode for the CullVisitor to use. ", ""); I_Method0(osg::CullSettings::CullingMode, getCullingMode, + Properties::NON_VIRTUAL, __CullingMode__getCullingMode, "Returns the current CullingMode. ", ""); I_Method1(void, setCullMask, IN, osg::Node::NodeMask, nm, + Properties::NON_VIRTUAL, __void__setCullMask__osg_Node_NodeMask, "", ""); I_Method0(osg::Node::NodeMask, getCullMask, + Properties::NON_VIRTUAL, __osg_Node_NodeMask__getCullMask, "", ""); I_Method1(void, setCullMaskLeft, IN, osg::Node::NodeMask, nm, + Properties::NON_VIRTUAL, __void__setCullMaskLeft__osg_Node_NodeMask, "", ""); I_Method0(osg::Node::NodeMask, getCullMaskLeft, + Properties::NON_VIRTUAL, __osg_Node_NodeMask__getCullMaskLeft, "", ""); I_Method1(void, setCullMaskRight, IN, osg::Node::NodeMask, nm, + Properties::NON_VIRTUAL, __void__setCullMaskRight__osg_Node_NodeMask, "", ""); I_Method0(osg::Node::NodeMask, getCullMaskRight, + Properties::NON_VIRTUAL, __osg_Node_NodeMask__getCullMaskRight, "", ""); I_Method1(void, setLODScale, IN, float, bias, + Properties::NON_VIRTUAL, __void__setLODScale__float, "Set the LOD bias for the CullVisitor to use. ", ""); I_Method0(float, getLODScale, + Properties::NON_VIRTUAL, __float__getLODScale, "Get the LOD bias. ", ""); I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value, + Properties::NON_VIRTUAL, __void__setSmallFeatureCullingPixelSize__float, "Set the Small Feature Culling Pixel Size. ", ""); I_Method0(float, getSmallFeatureCullingPixelSize, + Properties::NON_VIRTUAL, __float__getSmallFeatureCullingPixelSize, "Get the Small Feature Culling Pixel Size. ", ""); I_Method1(void, setClampProjectionMatrixCallback, IN, osg::CullSettings::ClampProjectionMatrixCallback *, cpmc, + Properties::NON_VIRTUAL, __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1, "set the ClampProjectionMatrixCallback. ", ""); I_Method0(osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback, + Properties::NON_VIRTUAL, __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, "get the non const ClampProjectionMatrixCallback. ", ""); I_Method0(const osg::CullSettings::ClampProjectionMatrixCallback *, getClampProjectionMatrixCallback, + Properties::NON_VIRTUAL, __C5_ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, "get the const ClampProjectionMatrixCallback. ", ""); @@ -269,10 +306,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullSettings::ClampProjectionMatrixCallback "", ""); I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar, + Properties::PURE_VIRTUAL, __bool__clampProjectionMatrixImplementation__osg_Matrixf_R1__double_R1__double_R1, "", ""); I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar, + Properties::PURE_VIRTUAL, __bool__clampProjectionMatrixImplementation__osg_Matrixd_R1__double_R1__double_R1, "", ""); diff --git a/src/osgWrappers/osg/CullingSet.cpp b/src/osgWrappers/osg/CullingSet.cpp index 0e6e461df..7ef3972dd 100644 --- a/src/osgWrappers/osg/CullingSet.cpp +++ b/src/osgWrappers/osg/CullingSet.cpp @@ -50,12 +50,13 @@ BEGIN_ENUM_REFLECTOR(osg::CullingSet::MaskValues) I_EnumLabel(osg::CullingSet::ENABLE_ALL_CULLING); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::CullingSet) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullingSet) I_BaseType(osg::Referenced); I_Constructor0(____CullingSet, "", ""); I_Constructor1(IN, const osg::CullingSet &, cs, + Properties::NON_EXPLICIT, ____CullingSet__C5_CullingSet_R1, "", ""); @@ -64,114 +65,142 @@ BEGIN_OBJECT_REFLECTOR(osg::CullingSet) "", ""); I_Method1(void, set, IN, const osg::CullingSet &, cs, + Properties::NON_VIRTUAL, __void__set__C5_CullingSet_R1, "", ""); I_Method3(void, set, IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector, + Properties::NON_VIRTUAL, __void__set__C5_CullingSet_R1__C5_Matrix_R1__C5_Vec4_R1, "", ""); I_Method1(void, setCullingMask, IN, osg::CullingSet::Mask, mask, + Properties::NON_VIRTUAL, __void__setCullingMask__Mask, "", ""); I_Method0(osg::CullingSet::Mask, getCullingMask, + Properties::NON_VIRTUAL, __Mask__getCullingMask, "", ""); I_Method1(void, setFrustum, IN, osg::Polytope &, cv, + Properties::NON_VIRTUAL, __void__setFrustum__Polytope_R1, "", ""); I_Method0(osg::Polytope &, getFrustum, + Properties::NON_VIRTUAL, __Polytope_R1__getFrustum, "", ""); I_Method0(const osg::Polytope &, getFrustum, + Properties::NON_VIRTUAL, __C5_Polytope_R1__getFrustum, "", ""); I_Method2(void, addStateFrustum, IN, osg::StateSet *, stateset, IN, osg::Polytope &, polytope, + Properties::NON_VIRTUAL, __void__addStateFrustum__StateSet_P1__Polytope_R1, "", ""); I_Method1(void, getStateFrustumList, IN, osg::CullingSet::StateFrustumList &, sfl, + Properties::NON_VIRTUAL, __void__getStateFrustumList__StateFrustumList_R1, "", ""); I_Method0(osg::CullingSet::StateFrustumList &, getStateFrustumList, + Properties::NON_VIRTUAL, __StateFrustumList_R1__getStateFrustumList, "", ""); I_Method1(void, addOccluder, IN, osg::ShadowVolumeOccluder &, cv, + Properties::NON_VIRTUAL, __void__addOccluder__ShadowVolumeOccluder_R1, "", ""); I_Method1(void, setPixelSizeVector, IN, const osg::Vec4 &, v, + Properties::NON_VIRTUAL, __void__setPixelSizeVector__C5_Vec4_R1, "", ""); I_Method0(osg::Vec4 &, getPixelSizeVector, + Properties::NON_VIRTUAL, __Vec4_R1__getPixelSizeVector, "", ""); I_Method0(const osg::Vec4 &, getPixelSizeVector, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getPixelSizeVector, "", ""); I_Method1(void, setSmallFeatureCullingPixelSize, IN, float, value, + Properties::NON_VIRTUAL, __void__setSmallFeatureCullingPixelSize__float, "", ""); I_Method0(float &, getSmallFeatureCullingPixelSize, + Properties::NON_VIRTUAL, __float_R1__getSmallFeatureCullingPixelSize, "", ""); I_Method0(float, getSmallFeatureCullingPixelSize, + Properties::NON_VIRTUAL, __float__getSmallFeatureCullingPixelSize, "", ""); I_Method2(float, pixelSize, IN, const osg::Vec3 &, v, IN, float, radius, + Properties::NON_VIRTUAL, __float__pixelSize__C5_Vec3_R1__float, "Compute the pixel of an object at position v, with specified radius. ", ""); I_Method1(float, pixelSize, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __float__pixelSize__C5_BoundingSphere_R1, "Compute the pixel of a bounding sphere. ", ""); I_Method2(float, clampedPixelSize, IN, const osg::Vec3 &, v, IN, float, radius, + Properties::NON_VIRTUAL, __float__clampedPixelSize__C5_Vec3_R1__float, "Compute the pixel of an object at position v, with specified radius. ", "fabs()ed to always be positive. "); I_Method1(float, clampedPixelSize, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __float__clampedPixelSize__C5_BoundingSphere_R1, "Compute the pixel of a bounding sphere. ", "fabs()ed to always be positive. "); I_Method1(bool, isCulled, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, __bool__isCulled__C5_std_vectorT1_Vec3__R1, "", ""); I_Method1(bool, isCulled, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__isCulled__C5_BoundingBox_R1, "", ""); I_Method1(bool, isCulled, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __bool__isCulled__C5_BoundingSphere_R1, "", ""); I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, __void__pushCurrentMask, "", ""); I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, __void__popCurrentMask, "", ""); I_Method1(void, disableAndPushOccludersCurrentMask, IN, osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, __void__disableAndPushOccludersCurrentMask__NodePath_R1, "", ""); I_Method1(void, popOccludersCurrentMask, IN, osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, __void__popOccludersCurrentMask__NodePath_R1, "", ""); @@ -201,26 +230,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateSet >) "", ""); I_Constructor1(IN, osg::StateSet *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::StateSet > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::StateSet *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::StateSet *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::StateSet > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/DeleteHandler.cpp b/src/osgWrappers/osg/DeleteHandler.cpp index 710f98bda..dea93b37f 100644 --- a/src/osgWrappers/osg/DeleteHandler.cpp +++ b/src/osgWrappers/osg/DeleteHandler.cpp @@ -27,38 +27,47 @@ TYPE_NAME_ALIAS(std::list< osg::DeleteHandler::FrameNumberObjectPair >, osg::Del BEGIN_OBJECT_REFLECTOR(osg::DeleteHandler) I_ConstructorWithDefaults1(IN, int, numberOfFramesToRetainObjects, 0, + Properties::NON_EXPLICIT, ____DeleteHandler__int, "", ""); I_Method1(void, setNumFramesToRetainObjects, IN, int, numberOfFramesToRetainObjects, + Properties::NON_VIRTUAL, __void__setNumFramesToRetainObjects__int, "Set the number of frames to retain objects that are have been requested for deletion. ", "When set to zero objects are deleted immediately, by set to 1 there are kept around for an extra frame etc. The ability to retain obejcts for several frames is useful to prevent premature deletion when objects are stil be used the graphics threads that are using double buffering of rendering data structures with non ref_ptr<> pointers to scene graph elements. "); I_Method0(int, getNumFramesToRetainObjects, + Properties::NON_VIRTUAL, __int__getNumFramesToRetainObjects, "", ""); I_Method1(void, setFrameNumber, IN, int, frameNumber, + Properties::NON_VIRTUAL, __void__setFrameNumber__int, "Set the current frame numberso that subsequent deletes get tagged as associated with this frame. ", ""); I_Method0(int, getFrameNumber, + Properties::NON_VIRTUAL, __int__getFrameNumber, "Get the current frame number. ", ""); I_Method1(void, doDelete, IN, const osg::Referenced *, object, + Properties::NON_VIRTUAL, __void__doDelete__C5_Referenced_P1, "", ""); I_Method0(void, flush, + Properties::VIRTUAL, __void__flush, "Flush objects that ready to be fully deleted. ", ""); I_Method0(void, flushAll, + Properties::VIRTUAL, __void__flushAll, "Flush all objects that the DeleteHandler holds. ", "Note, this should only be called if there are no threads running with non ref_ptr<> pointers, such as graphics threads. "); I_Method1(void, requestDelete, IN, const osg::Referenced *, object, + Properties::VIRTUAL, __void__requestDelete__C5_osg_Referenced_P1, "Request the deletion of an object. ", "Depending on users implementation of DeleteHandler, the delete of the object may occur straight away or be delayed until doDelete is called. The default implementation does a delete straight away. "); diff --git a/src/osgWrappers/osg/Depth.cpp b/src/osgWrappers/osg/Depth.cpp index c4af0ee00..8566d3f54 100644 --- a/src/osgWrappers/osg/Depth.cpp +++ b/src/osgWrappers/osg/Depth.cpp @@ -35,7 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::Depth::Function) I_EnumLabel(osg::Depth::ALWAYS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Depth) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Depth) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults4(IN, osg::Depth::Function, func, osg::Depth::LESS, IN, double, zNear, 0.0, IN, double, zFar, 1.0, IN, bool, writeMask, true, ____Depth__Function__double__double__bool, @@ -46,74 +46,92 @@ BEGIN_OBJECT_REFLECTOR(osg::Depth) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setFunction, IN, osg::Depth::Function, func, + Properties::NON_VIRTUAL, __void__setFunction__Function, "", ""); I_Method0(osg::Depth::Function, getFunction, + Properties::NON_VIRTUAL, __Function__getFunction, "", ""); I_Method2(void, setRange, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__setRange__double__double, "", ""); I_Method1(void, setZNear, IN, double, zNear, + Properties::NON_VIRTUAL, __void__setZNear__double, "", ""); I_Method0(double, getZNear, + Properties::NON_VIRTUAL, __double__getZNear, "", ""); I_Method1(void, setZFar, IN, double, zFar, + Properties::NON_VIRTUAL, __void__setZFar__double, "", ""); I_Method0(double, getZFar, + Properties::NON_VIRTUAL, __double__getZFar, "", ""); I_Method1(void, setWriteMask, IN, bool, mask, + Properties::NON_VIRTUAL, __void__setWriteMask__bool, "", ""); I_Method0(bool, getWriteMask, + Properties::NON_VIRTUAL, __bool__getWriteMask, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/DisplaySettings.cpp b/src/osgWrappers/osg/DisplaySettings.cpp index 52f3baaec..ffc7fd150 100644 --- a/src/osgWrappers/osg/DisplaySettings.cpp +++ b/src/osgWrappers/osg/DisplaySettings.cpp @@ -49,224 +49,278 @@ BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::SplitStereoVerticalEyeMapping) I_EnumLabel(osg::DisplaySettings::LEFT_EYE_BOTTOM_VIEWPORT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DisplaySettings) I_BaseType(osg::Referenced); I_Constructor0(____DisplaySettings, "", ""); I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, ____DisplaySettings__ArgumentParser_R1, "", ""); I_Constructor1(IN, const osg::DisplaySettings &, vs, + Properties::NON_EXPLICIT, ____DisplaySettings__C5_DisplaySettings_R1, "", ""); I_Method1(void, setDisplaySettings, IN, const osg::DisplaySettings &, vs, + Properties::NON_VIRTUAL, __void__setDisplaySettings__C5_DisplaySettings_R1, "", ""); I_Method1(void, merge, IN, const osg::DisplaySettings &, vs, + Properties::NON_VIRTUAL, __void__merge__C5_DisplaySettings_R1, "", ""); I_Method0(void, setDefaults, + Properties::NON_VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, readEnvironmentalVariables, + Properties::NON_VIRTUAL, __void__readEnvironmentalVariables, "read the environmental variables. ", ""); I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, arguments, + Properties::NON_VIRTUAL, __void__readCommandLine__ArgumentParser_R1, "read the commandline arguments. ", ""); I_Method1(void, setDisplayType, IN, osg::DisplaySettings::DisplayType, type, + Properties::NON_VIRTUAL, __void__setDisplayType__DisplayType, "", ""); I_Method0(osg::DisplaySettings::DisplayType, getDisplayType, + Properties::NON_VIRTUAL, __DisplayType__getDisplayType, "", ""); I_Method1(void, setStereo, IN, bool, on, + Properties::NON_VIRTUAL, __void__setStereo__bool, "", ""); I_Method0(bool, getStereo, + Properties::NON_VIRTUAL, __bool__getStereo, "", ""); I_Method1(void, setStereoMode, IN, osg::DisplaySettings::StereoMode, mode, + Properties::NON_VIRTUAL, __void__setStereoMode__StereoMode, "", ""); I_Method0(osg::DisplaySettings::StereoMode, getStereoMode, + Properties::NON_VIRTUAL, __StereoMode__getStereoMode, "", ""); I_Method1(void, setEyeSeparation, IN, float, eyeSeparation, + Properties::NON_VIRTUAL, __void__setEyeSeparation__float, "", ""); I_Method0(float, getEyeSeparation, + Properties::NON_VIRTUAL, __float__getEyeSeparation, "", ""); I_Method1(void, setSplitStereoHorizontalEyeMapping, IN, osg::DisplaySettings::SplitStereoHorizontalEyeMapping, m, + Properties::NON_VIRTUAL, __void__setSplitStereoHorizontalEyeMapping__SplitStereoHorizontalEyeMapping, "", ""); I_Method0(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, getSplitStereoHorizontalEyeMapping, + Properties::NON_VIRTUAL, __SplitStereoHorizontalEyeMapping__getSplitStereoHorizontalEyeMapping, "", ""); I_Method1(void, setSplitStereoHorizontalSeparation, IN, int, s, + Properties::NON_VIRTUAL, __void__setSplitStereoHorizontalSeparation__int, "", ""); I_Method0(int, getSplitStereoHorizontalSeparation, + Properties::NON_VIRTUAL, __int__getSplitStereoHorizontalSeparation, "", ""); I_Method1(void, setSplitStereoVerticalEyeMapping, IN, osg::DisplaySettings::SplitStereoVerticalEyeMapping, m, + Properties::NON_VIRTUAL, __void__setSplitStereoVerticalEyeMapping__SplitStereoVerticalEyeMapping, "", ""); I_Method0(osg::DisplaySettings::SplitStereoVerticalEyeMapping, getSplitStereoVerticalEyeMapping, + Properties::NON_VIRTUAL, __SplitStereoVerticalEyeMapping__getSplitStereoVerticalEyeMapping, "", ""); I_Method1(void, setSplitStereoVerticalSeparation, IN, int, s, + Properties::NON_VIRTUAL, __void__setSplitStereoVerticalSeparation__int, "", ""); I_Method0(int, getSplitStereoVerticalSeparation, + Properties::NON_VIRTUAL, __int__getSplitStereoVerticalSeparation, "", ""); I_Method1(void, setSplitStereoAutoAjustAspectRatio, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setSplitStereoAutoAjustAspectRatio__bool, "", ""); I_Method0(bool, getSplitStereoAutoAjustAspectRatio, + Properties::NON_VIRTUAL, __bool__getSplitStereoAutoAjustAspectRatio, "", ""); I_Method1(void, setScreenWidth, IN, float, width, + Properties::NON_VIRTUAL, __void__setScreenWidth__float, "", ""); I_Method0(float, getScreenWidth, + Properties::NON_VIRTUAL, __float__getScreenWidth, "", ""); I_Method1(void, setScreenHeight, IN, float, height, + Properties::NON_VIRTUAL, __void__setScreenHeight__float, "", ""); I_Method0(float, getScreenHeight, + Properties::NON_VIRTUAL, __float__getScreenHeight, "", ""); I_Method1(void, setScreenDistance, IN, float, distance, + Properties::NON_VIRTUAL, __void__setScreenDistance__float, "", ""); I_Method0(float, getScreenDistance, + Properties::NON_VIRTUAL, __float__getScreenDistance, "", ""); I_Method1(void, setDoubleBuffer, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDoubleBuffer__bool, "", ""); I_Method0(bool, getDoubleBuffer, + Properties::NON_VIRTUAL, __bool__getDoubleBuffer, "", ""); I_Method1(void, setRGB, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setRGB__bool, "", ""); I_Method0(bool, getRGB, + Properties::NON_VIRTUAL, __bool__getRGB, "", ""); I_Method1(void, setDepthBuffer, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDepthBuffer__bool, "", ""); I_Method0(bool, getDepthBuffer, + Properties::NON_VIRTUAL, __bool__getDepthBuffer, "", ""); I_Method1(void, setMinimumNumAlphaBits, IN, unsigned int, bits, + Properties::NON_VIRTUAL, __void__setMinimumNumAlphaBits__unsigned_int, "", ""); I_Method0(unsigned int, getMinimumNumAlphaBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumAlphaBits, "", ""); I_Method0(bool, getAlphaBuffer, + Properties::NON_VIRTUAL, __bool__getAlphaBuffer, "", ""); I_Method1(void, setMinimumNumStencilBits, IN, unsigned int, bits, + Properties::NON_VIRTUAL, __void__setMinimumNumStencilBits__unsigned_int, "", ""); I_Method0(unsigned int, getMinimumNumStencilBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumStencilBits, "", ""); I_Method0(bool, getStencilBuffer, + Properties::NON_VIRTUAL, __bool__getStencilBuffer, "", ""); I_Method4(void, setMinimumNumAccumBits, IN, unsigned int, red, IN, unsigned int, green, IN, unsigned int, blue, IN, unsigned int, alpha, + Properties::NON_VIRTUAL, __void__setMinimumNumAccumBits__unsigned_int__unsigned_int__unsigned_int__unsigned_int, "", ""); I_Method0(unsigned int, getMinimumNumAccumRedBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumAccumRedBits, "", ""); I_Method0(unsigned int, getMinimumNumAccumGreenBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumAccumGreenBits, "", ""); I_Method0(unsigned int, getMinimumNumAccumBlueBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumAccumBlueBits, "", ""); I_Method0(unsigned int, getMinimumNumAccumAlphaBits, + Properties::NON_VIRTUAL, __unsigned_int__getMinimumNumAccumAlphaBits, "", ""); I_Method0(bool, getAccumBuffer, + Properties::NON_VIRTUAL, __bool__getAccumBuffer, "", ""); I_Method1(void, setMaxNumberOfGraphicsContexts, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setMaxNumberOfGraphicsContexts__unsigned_int, "", ""); I_Method0(unsigned int, getMaxNumberOfGraphicsContexts, + Properties::NON_VIRTUAL, __unsigned_int__getMaxNumberOfGraphicsContexts, "", ""); I_Method1(void, setNumMultiSamples, IN, unsigned int, samples, + Properties::NON_VIRTUAL, __void__setNumMultiSamples__unsigned_int, "", ""); I_Method0(unsigned int, getNumMultiSamples, + Properties::NON_VIRTUAL, __unsigned_int__getNumMultiSamples, "", ""); I_Method0(bool, getMultiSamples, + Properties::NON_VIRTUAL, __bool__getMultiSamples, "", ""); diff --git a/src/osgWrappers/osg/DrawPixels.cpp b/src/osgWrappers/osg/DrawPixels.cpp index f6199918e..23787e540 100644 --- a/src/osgWrappers/osg/DrawPixels.cpp +++ b/src/osgWrappers/osg/DrawPixels.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawPixels) I_BaseType(osg::Drawable); I_Constructor0(____DrawPixels, "", @@ -36,70 +36,87 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "", ""); I_Method0(osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __osg_Vec3_R1__getPosition, "", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getImage, "", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getImage, "", ""); I_Method1(void, setUseSubImage, IN, bool, useSubImage, + Properties::NON_VIRTUAL, __void__setUseSubImage__bool, "", ""); I_Method0(bool, getUseSubImage, + Properties::NON_VIRTUAL, __bool__getUseSubImage, "", ""); I_Method4(void, setSubImageDimensions, IN, unsigned int, offsetX, IN, unsigned int, offsetY, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, __void__setSubImageDimensions__unsigned_int__unsigned_int__unsigned_int__unsigned_int, "", ""); I_Method4(void, getSubImageDimensions, IN, unsigned int &, offsetX, IN, unsigned int &, offsetY, IN, unsigned int &, width, IN, unsigned int &, height, + Properties::NON_VIRTUAL, __void__getSubImageDimensions__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, "", ""); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__State_R1, "Deprecated. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); diff --git a/src/osgWrappers/osg/Drawable.cpp b/src/osgWrappers/osg/Drawable.cpp index aaaac6020..cecdc8680 100644 --- a/src/osgWrappers/osg/Drawable.cpp +++ b/src/osgWrappers/osg/Drawable.cpp @@ -69,254 +69,317 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + 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(osg::Geometry *, asGeometry, + Properties::VIRTUAL, __Geometry_P1__asGeometry, "Convert 'this' into a Geometry pointer if Drawable is a Geometry, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Geometry *, asGeometry, + Properties::VIRTUAL, __C5_Geometry_P1__asGeometry, "Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Drawable::ParentList &, getParents, + Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of drawable. ", ""); I_Method0(osg::Drawable::ParentList, getParents, + Properties::NON_VIRTUAL, __ParentList__getParents, "Get the a copy of parent list of node. ", "A copy is returned to prevent modification of the parent list. "); I_Method1(osg::Node *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Node_P1__getParent__unsigned_int, "Get a single parent of Drawable. ", " param i index of the parent to get. return the parent i."); I_Method1(const osg::Node *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Node_P1__getParent__unsigned_int, "Get a single const parent of Drawable. ", " param i index of the parent to get. return the parent i."); I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of node. ", "the number of parents of this node. "); I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, __void__setStateSet__StateSet_P1, "Set the StateSet attached to the Drawable. ", "Previously attached StateSet are automatically unreferenced on assignment of a new drawstate. "); I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __StateSet_P1__getStateSet, "Get the attached StateSet. ", ""); I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __C5_StateSet_P1__getStateSet, "Get the attached const StateSet. ", ""); I_Method0(osg::StateSet *, getOrCreateStateSet, + Properties::NON_VIRTUAL, __StateSet_P1__getOrCreateStateSet, "Get the attached const StateSet, if one is not already attached create one, attach it to the drawable and return a pointer to it. ", ""); I_Method1(void, setInitialBound, IN, const osg::BoundingBox &, bbox, + Properties::NON_VIRTUAL, __void__setInitialBound__C5_osg_BoundingBox_R1, "Set the initial bounding volume to use when computing the overall bounding volume. ", ""); I_Method0(const osg::BoundingBox &, getInitialBound, + Properties::NON_VIRTUAL, __C5_BoundingBox_R1__getInitialBound, "Set the initial bounding volume to use when computing the overall bounding volume. ", ""); I_Method0(void, dirtyBound, + Properties::NON_VIRTUAL, __void__dirtyBound, "Dirty the bounding box, forcing a computeBound() on the next call to getBound(). ", "Should be called in the internal geometry of the Drawable is modified. "); I_Method0(const osg::BoundingBox &, getBound, + Properties::NON_VIRTUAL, __C5_BoundingBox_R1__getBound, "Get BoundingBox of Drawable. ", "If the BoundingBox is not up to date then its updated via an internal call to computeBond()."); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); I_Method1(void, setComputeBoundingBoxCallback, IN, osg::Drawable::ComputeBoundingBoxCallback *, callback, + Properties::NON_VIRTUAL, __void__setComputeBoundingBoxCallback__ComputeBoundingBoxCallback_P1, "Set the compute bound callback to override the default computeBound. ", ""); I_Method0(osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, + Properties::NON_VIRTUAL, __ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, "Get the compute bound callback. ", ""); I_Method0(const osg::Drawable::ComputeBoundingBoxCallback *, getComputeBoundingBoxCallback, + Properties::NON_VIRTUAL, __C5_ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, "Get the const compute bound callback. ", ""); I_Method1(void, setShape, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, __void__setShape__Shape_P1, "Set the Shape of the Drawable. ", "The shape can be used to speed up collision detection or as a guide for procedural geometry generation. osg::Shape. "); I_Method0(osg::Shape *, getShape, + Properties::NON_VIRTUAL, __Shape_P1__getShape, "Get the Shape of the Drawable. ", ""); I_Method0(const osg::Shape *, getShape, + Properties::NON_VIRTUAL, __C5_Shape_P1__getShape, "Get the const Shape of the const Drawable. ", ""); I_Method1(void, setSupportsDisplayList, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setSupportsDisplayList__bool, "Set the drawable so that it can or cannot be used in conjunction with OpenGL display lists. ", "When set to true, calls to Drawable::setUseDisplayList, whereas when set to false, no display lists can be created and calls to setUseDisplayList are ignored, and a warning is produced. The latter is typically used to guard against the switching on of display lists on objects with dynamic internal data such as continuous Level of Detail algorithms. "); I_Method0(bool, getSupportsDisplayList, + Properties::NON_VIRTUAL, __bool__getSupportsDisplayList, "Get whether display lists are supported for this drawable instance. ", ""); I_Method1(void, setUseDisplayList, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setUseDisplayList__bool, "When set to true, force the draw method to use OpenGL Display List for rendering. ", "If false, rendering directly. If the display list has not been compiled already, the next call to draw will automatically create the display list. "); I_Method0(bool, getUseDisplayList, + Properties::NON_VIRTUAL, __bool__getUseDisplayList, "Return whether OpenGL display lists are being used for rendering. ", ""); I_Method1(GLuint &, getDisplayList, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __GLuint_R1__getDisplayList__unsigned_int, "Return OpenGL display list for specified contextID. ", ""); I_Method1(void, setUseVertexBufferObjects, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setUseVertexBufferObjects__bool, "When set to true, ignore the setUseDisplayList() settings, and hints to the drawImplementation method to use OpenGL vertex buffer objects for rendering. ", ""); I_Method0(bool, getUseVertexBufferObjects, + Properties::NON_VIRTUAL, __bool__getUseVertexBufferObjects, "Return whether OpenGL vertex buffer objects should be used when supported by OpenGL driver. ", ""); I_Method0(void, dirtyDisplayList, + Properties::NON_VIRTUAL, __void__dirtyDisplayList, "Force a recompile on next draw() of any OpenGL display list associated with this geoset. ", ""); I_Method0(unsigned int, getGLObjectSizeHint, + Properties::VIRTUAL, __unsigned_int__getGLObjectSizeHint, "Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. ", "This size is used a hint for reuse of deleted display lists/vertex buffer objects. "); I_Method1(void, draw, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__draw__RenderInfo_R1, "Draw OpenGL primitives. ", "If the Drawable has _useDisplayList set to true, then use an OpenGL display list, automatically compiling one if required. Otherwise, call drawImplementation(). This method should not be overridden in subclasses, as it manages the optional display list (notice this is not even virtual). Subclasses should override drawImplementation() instead. "); I_Method1(void, compileGLObjects, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__compileGLObjects__RenderInfo_R1, "Immediately compile this Drawable into an OpenGL Display List. ", "Operation is ignored if _useDisplayList is false. "); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method1(void, setUpdateCallback, IN, osg::Drawable::UpdateCallback *, ac, + Properties::VIRTUAL, __void__setUpdateCallback__UpdateCallback_P1, "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", ""); I_Method0(osg::Drawable::UpdateCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, __UpdateCallback_P1__getUpdateCallback, "Get the non const UpdateCallback. ", ""); I_Method0(const osg::Drawable::UpdateCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, __C5_UpdateCallback_P1__getUpdateCallback, "Get the const UpdateCallback. ", ""); I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, __bool__requiresUpdateTraversal, "Return whether this Drawable has update callbacks associated with it, and therefore must be traversed. ", ""); I_Method1(void, setEventCallback, IN, osg::Drawable::EventCallback *, ac, + Properties::VIRTUAL, __void__setEventCallback__EventCallback_P1, "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", ""); I_Method0(osg::Drawable::EventCallback *, getEventCallback, + Properties::NON_VIRTUAL, __EventCallback_P1__getEventCallback, "Get the non const EventCallback. ", ""); I_Method0(const osg::Drawable::EventCallback *, getEventCallback, + Properties::NON_VIRTUAL, __C5_EventCallback_P1__getEventCallback, "Get the const EventCallback. ", ""); I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, __bool__requiresEventTraversal, "Return whether this Drawable has event callbacks associated with it, and therefore must be traversed. ", ""); I_Method1(void, setCullCallback, IN, osg::Drawable::CullCallback *, cc, + Properties::VIRTUAL, __void__setCullCallback__CullCallback_P1, "Set the CullCallback which allows users to customize the culling of Drawable during the cull traversal. ", ""); I_Method0(osg::Drawable::CullCallback *, getCullCallback, + Properties::NON_VIRTUAL, __CullCallback_P1__getCullCallback, "Get the non const CullCallback. ", ""); I_Method0(const osg::Drawable::CullCallback *, getCullCallback, + Properties::NON_VIRTUAL, __C5_CullCallback_P1__getCullCallback, "Get the const CullCallback. ", ""); I_Method1(void, setDrawCallback, IN, osg::Drawable::DrawCallback *, dc, + Properties::VIRTUAL, __void__setDrawCallback__DrawCallback_P1, "Set the DrawCallback which allows users to attach customize the drawing of existing Drawable object. ", ""); I_Method0(osg::Drawable::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, __DrawCallback_P1__getDrawCallback, "Get the non const DrawCallback. ", ""); I_Method0(const osg::Drawable::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, __C5_DrawCallback_P1__getDrawCallback, "Get the const DrawCallback. ", ""); I_Method1(void, drawImplementation, IN, osg::State &, x, + Properties::VIRTUAL, __void__drawImplementation__State_R1, "Deprecated. ", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__RenderInfo_R1, "drawImplementation(State&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. ", " param state The osg::State object that encapulates the current OpenGL state for the current graphics context. "); I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_AttributeFunctor_R1, "Return true if the Drawable subclass supports accept(AttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __void__accept__AttributeFunctor_R1, "accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. "); I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_ConstAttributeFunctor_R1, "Return true if the Drawable subclass supports accept(ConstAttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __void__accept__ConstAttributeFunctor_R1, "Accept an AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. "); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_PrimitiveFunctor_R1, "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_PrimitiveIndexFunctor_R1, "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); @@ -414,57 +477,68 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) __void__setUseVertexBufferObjects__bool); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::Drawable::AttributeFunctor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::AttributeFunctor) I_Constructor0(____AttributeFunctor, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLbyte *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLbyte_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLshort *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLshort_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLint *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLint_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLubyte *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLubyte_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLushort *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLushort_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, GLuint *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__GLuint_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, float *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__float_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec2 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec2_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec3 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec3_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec4_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4ub *, x, + Properties::VIRTUAL, __void__apply__AttributeType__unsigned__Vec4ub_P1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) I_BaseType(osg::Object); I_Constructor0(____ComputeBoundingBoxCallback, "", @@ -474,82 +548,99 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(osg::BoundingBox, computeBound, IN, const osg::Drawable &, x, + Properties::VIRTUAL, __BoundingBox__computeBound__C5_osg_Drawable_R1, "", ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::Drawable::ConstAttributeFunctor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::ConstAttributeFunctor) I_Constructor0(____ConstAttributeFunctor, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLbyte *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLbyte_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLshort *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLshort_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLint *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLint_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLubyte *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLubyte_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLushort *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLushort_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const GLuint *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_GLuint_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const float *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_float_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_Vec2_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_Vec3_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_Vec4_P1, "", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, const unsigned, int, IN, const osg::Vec4ub *, x, + Properties::VIRTUAL, __void__apply__AttributeType__C5_unsigned__C5_Vec4ub_P1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::CullCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____CullCallback, "", @@ -559,36 +650,43 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) "", ""); 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_Method3(bool, cull, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, IN, osg::State *, x, + Properties::VIRTUAL, __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_State_P1, "deprecated. ", ""); I_Method3(bool, cull, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, IN, osg::RenderInfo *, renderInfo, + Properties::VIRTUAL, __bool__cull__osg_NodeVisitor_P1__osg_Drawable_P1__osg_RenderInfo_P1, "do customized cull code, return true if drawable should be culled. ", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____DrawCallback, "", @@ -598,36 +696,43 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::DrawCallback) "", ""); 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, drawImplementation, IN, osg::State &, x, IN, const osg::Drawable *, x, + Properties::VIRTUAL, __void__drawImplementation__osg_State_R1__C5_osg_Drawable_P1, "Deprecated. ", ""); I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, const osg::Drawable *, drawable, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, "do customized draw code. ", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::EventCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____EventCallback, "", @@ -637,266 +742,331 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) "", ""); 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 *, x, IN, osg::Drawable *, x, + Properties::VIRTUAL, __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, "do customized Event code. ", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::Drawable::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setVertexProgramSupported__bool, "", ""); I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, __bool__isVertexProgramSupported, "", ""); I_Method1(void, setSecondaryColorSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setSecondaryColorSupported__bool, "", ""); I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, __bool__isSecondaryColorSupported, "", ""); I_Method1(void, setFogCoordSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setFogCoordSupported__bool, "", ""); I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, __bool__isFogCoordSupported, "", ""); I_Method1(void, setMultiTexSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setMultiTexSupported__bool, "", ""); I_Method0(bool, isMultiTexSupported, + Properties::NON_VIRTUAL, __bool__isMultiTexSupported, "", ""); I_Method1(void, setOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setOcclusionQuerySupported__bool, "", ""); I_Method0(bool, isOcclusionQuerySupported, + Properties::NON_VIRTUAL, __bool__isOcclusionQuerySupported, "", ""); I_Method1(void, setARBOcclusionQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setARBOcclusionQuerySupported__bool, "", ""); I_Method0(bool, isARBOcclusionQuerySupported, + Properties::NON_VIRTUAL, __bool__isARBOcclusionQuerySupported, "", ""); I_Method1(void, setTimerQuerySupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTimerQuerySupported__bool, "", ""); I_Method0(bool, isTimerQuerySupported, + Properties::NON_VIRTUAL, __bool__isTimerQuerySupported, "", ""); I_Method1(void, glSecondaryColor3ubv, IN, const GLubyte *, coord, + Properties::NON_VIRTUAL, __void__glSecondaryColor3ubv__C5_GLubyte_P1, "", ""); I_Method1(void, glSecondaryColor3fv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, __void__glSecondaryColor3fv__C5_GLfloat_P1, "", ""); I_Method1(void, glFogCoordfv, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, __void__glFogCoordfv__C5_GLfloat_P1, "", ""); I_Method2(void, glMultiTexCoord1f, IN, GLenum, target, IN, GLfloat, coord, + Properties::NON_VIRTUAL, __void__glMultiTexCoord1f__GLenum__GLfloat, "", ""); I_Method2(void, glMultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, __void__glMultiTexCoord2fv__GLenum__C5_GLfloat_P1, "", ""); I_Method2(void, glMultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, __void__glMultiTexCoord3fv__GLenum__C5_GLfloat_P1, "", ""); I_Method2(void, glMultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, coord, + Properties::NON_VIRTUAL, __void__glMultiTexCoord4fv__GLenum__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib1s, IN, unsigned int, index, IN, GLshort, s, + Properties::NON_VIRTUAL, __void__glVertexAttrib1s__unsigned_int__GLshort, "", ""); I_Method2(void, glVertexAttrib1f, IN, unsigned int, index, IN, GLfloat, f, + Properties::NON_VIRTUAL, __void__glVertexAttrib1f__unsigned_int__GLfloat, "", ""); I_Method2(void, glVertexAttrib2fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib2fv__unsigned_int__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib3fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib3fv__unsigned_int__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib4fv, IN, unsigned int, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4fv__unsigned_int__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib4ubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4ubv__unsigned_int__C5_GLubyte_P1, "", ""); I_Method2(void, glVertexAttrib4Nubv, IN, unsigned int, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nubv__unsigned_int__C5_GLubyte_P1, "", ""); I_Method2(void, glGenBuffers, IN, GLsizei, n, IN, GLuint *, buffers, + Properties::NON_VIRTUAL, __void__glGenBuffers__GLsizei__GLuint_P1, "", ""); I_Method2(void, glBindBuffer, IN, GLenum, target, IN, GLuint, buffer, + Properties::NON_VIRTUAL, __void__glBindBuffer__GLenum__GLuint, "", ""); I_Method4(void, glBufferData, IN, GLenum, target, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, IN, GLenum, usage, + Properties::NON_VIRTUAL, __void__glBufferData__GLenum__GLsizeiptrARB__C5_GLvoid_P1__GLenum, "", ""); I_Method4(void, glBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__C5_GLvoid_P1, "", ""); I_Method2(void, glDeleteBuffers, IN, GLsizei, n, IN, const GLuint *, buffers, + Properties::NON_VIRTUAL, __void__glDeleteBuffers__GLsizei__C5_GLuint_P1, "", ""); I_Method1(GLboolean, glIsBuffer, IN, GLuint, buffer, + Properties::NON_VIRTUAL, __GLboolean__glIsBuffer__GLuint, "", ""); I_Method4(void, glGetBufferSubData, IN, GLenum, target, IN, GLintptrARB, offset, IN, GLsizeiptrARB, size, IN, GLvoid *, data, + Properties::NON_VIRTUAL, __void__glGetBufferSubData__GLenum__GLintptrARB__GLsizeiptrARB__GLvoid_P1, "", ""); I_Method2(GLvoid *, glMapBuffer, IN, GLenum, target, IN, GLenum, access, + Properties::NON_VIRTUAL, __GLvoid_P1__glMapBuffer__GLenum__GLenum, "", ""); I_Method1(GLboolean, glUnmapBuffer, IN, GLenum, target, + Properties::NON_VIRTUAL, __GLboolean__glUnmapBuffer__GLenum, "", ""); I_Method3(void, glGetBufferParameteriv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetBufferParameteriv__GLenum__GLenum__GLint_P1, "", ""); I_Method3(void, glGetBufferPointerv, IN, GLenum, target, IN, GLenum, pname, IN, GLvoid **, params, + Properties::NON_VIRTUAL, __void__glGetBufferPointerv__GLenum__GLenum__GLvoid_P1P1, "", ""); I_Method2(void, glGenOcclusionQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, __void__glGenOcclusionQueries__GLsizei__GLuint_P1, "", ""); I_Method2(void, glDeleteOcclusionQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, __void__glDeleteOcclusionQueries__GLsizei__C5_GLuint_P1, "", ""); I_Method1(GLboolean, glIsOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, __GLboolean__glIsOcclusionQuery__GLuint, "", ""); I_Method1(void, glBeginOcclusionQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, __void__glBeginOcclusionQuery__GLuint, "", ""); I_Method0(void, glEndOcclusionQuery, + Properties::NON_VIRTUAL, __void__glEndOcclusionQuery, "", ""); I_Method3(void, glGetOcclusionQueryiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetOcclusionQueryiv__GLuint__GLenum__GLint_P1, "", ""); I_Method3(void, glGetOcclusionQueryuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, __void__glGetOcclusionQueryuiv__GLuint__GLenum__GLuint_P1, "", ""); I_Method3(void, glGetQueryiv, IN, GLenum, target, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetQueryiv__GLenum__GLenum__GLint_P1, "", ""); I_Method2(void, glGenQueries, IN, GLsizei, n, IN, GLuint *, ids, + Properties::NON_VIRTUAL, __void__glGenQueries__GLsizei__GLuint_P1, "", ""); I_Method2(void, glBeginQuery, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, __void__glBeginQuery__GLenum__GLuint, "", ""); I_Method1(void, glEndQuery, IN, GLenum, target, + Properties::NON_VIRTUAL, __void__glEndQuery__GLenum, "", ""); I_Method1(GLboolean, glIsQuery, IN, GLuint, id, + Properties::NON_VIRTUAL, __GLboolean__glIsQuery__GLuint, "", ""); I_Method2(void, glDeleteQueries, IN, GLsizei, n, IN, const GLuint *, ids, + Properties::NON_VIRTUAL, __void__glDeleteQueries__GLsizei__C5_GLuint_P1, "", ""); I_Method3(void, glGetQueryObjectiv, IN, GLuint, id, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetQueryObjectiv__GLuint__GLenum__GLint_P1, "", ""); I_Method3(void, glGetQueryObjectuiv, IN, GLuint, id, IN, GLenum, pname, IN, GLuint *, params, + Properties::NON_VIRTUAL, __void__glGetQueryObjectuiv__GLuint__GLenum__GLuint_P1, "", ""); I_Method3(void, glGetQueryObjectui64v, IN, GLuint, id, IN, GLenum, pname, IN, GLuint64EXT *, params, + Properties::NON_VIRTUAL, __void__glGetQueryObjectui64v__GLuint__GLenum__GLuint64EXT_P1, "", ""); @@ -923,7 +1093,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::Extensions) __void__setVertexProgramSupported__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____UpdateCallback, "", @@ -933,26 +1103,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Drawable::UpdateCallback) "", ""); 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, update, IN, osg::NodeVisitor *, x, IN, osg::Drawable *, x, + Properties::VIRTUAL, __void__update__osg_NodeVisitor_P1__osg_Drawable_P1, "do customized update code. ", ""); diff --git a/src/osgWrappers/osg/Fog.cpp b/src/osgWrappers/osg/Fog.cpp index 744a613b4..21b1c6b19 100644 --- a/src/osgWrappers/osg/Fog.cpp +++ b/src/osgWrappers/osg/Fog.cpp @@ -36,7 +36,7 @@ BEGIN_ENUM_REFLECTOR(osg::Fog::FogCoordinateSource) I_EnumLabel(osg::Fog::FRAGMENT_DEPTH); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Fog) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Fog) I_BaseType(osg::StateAttribute); I_Constructor0(____Fog, "", @@ -46,86 +46,107 @@ BEGIN_OBJECT_REFLECTOR(osg::Fog) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setMode, IN, osg::Fog::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::Fog::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method1(void, setDensity, IN, float, density, + Properties::NON_VIRTUAL, __void__setDensity__float, "", ""); I_Method0(float, getDensity, + Properties::NON_VIRTUAL, __float__getDensity, "", ""); I_Method1(void, setStart, IN, float, start, + Properties::NON_VIRTUAL, __void__setStart__float, "", ""); I_Method0(float, getStart, + Properties::NON_VIRTUAL, __float__getStart, "", ""); I_Method1(void, setEnd, IN, float, end, + Properties::NON_VIRTUAL, __void__setEnd__float, "", ""); I_Method0(float, getEnd, + Properties::NON_VIRTUAL, __float__getEnd, "", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getColor, "", ""); I_Method1(void, setFogCoordinateSource, IN, GLint, source, + Properties::NON_VIRTUAL, __void__setFogCoordinateSource__GLint, "", ""); I_Method0(GLint, getFogCoordinateSource, + Properties::NON_VIRTUAL, __GLint__getFogCoordinateSource, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/FragmentProgram.cpp b/src/osgWrappers/osg/FragmentProgram.cpp index c93e16073..e71bc78d5 100644 --- a/src/osgWrappers/osg/FragmentProgram.cpp +++ b/src/osgWrappers/osg/FragmentProgram.cpp @@ -30,7 +30,7 @@ TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::FragmentProgram::Local TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::FragmentProgram::MatrixList); -BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FragmentProgram) I_BaseType(osg::StateAttribute); I_Constructor0(____FragmentProgram, "", @@ -40,102 +40,127 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_osg_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(GLuint &, getFragmentProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __GLuint_R1__getFragmentProgramID__unsigned_int, "Get the handle to the fragment program id for the current context. ", ""); I_Method1(void, setFragmentProgram, IN, const char *, program, + Properties::NON_VIRTUAL, __void__setFragmentProgram__C5_char_P1, "Set the fragment program using a C style string. ", ""); I_Method1(void, setFragmentProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, __void__setFragmentProgram__C5_std_string_R1, "Set the fragment program using C++ style string. ", ""); I_Method0(const std::string &, getFragmentProgram, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFragmentProgram, "Get the fragment program. ", ""); I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, "Set Program Parameters. ", ""); I_Method1(void, setLocalParameters, IN, const osg::FragmentProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, __void__setLocalParameters__C5_LocalParamList_R1, "Set list of Program Parameters. ", ""); I_Method0(osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, __LocalParamList_R1__getLocalParameters, "Get list of Program Parameters. ", ""); I_Method0(const osg::FragmentProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, __C5_LocalParamList_R1__getLocalParameters, "Get const list of Program Parameters. ", ""); I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setMatrix__C5_GLenum__C5_Matrix_R1, "Matrix. ", ""); I_Method1(void, setMatrices, IN, const osg::FragmentProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, __void__setMatrices__C5_MatrixList_R1, "Set list of Matrices. ", ""); I_Method0(osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, __MatrixList_R1__getMatrices, "Get list of Matrices. ", ""); I_Method0(const osg::FragmentProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, __C5_MatrixList_R1__getMatrices, "Get list of Matrices. ", ""); I_Method0(void, dirtyFragmentProgramObject, + Properties::NON_VIRTUAL, __void__dirtyFragmentProgramObject, "Force a recompile on next apply() of associated OpenGL vertex program objects. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Default to nothing to compile - all state is applied immediately. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "release an OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer == NULL. ", ""); @@ -169,49 +194,60 @@ BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FragmentProgram::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::FragmentProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setFragmentProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setFragmentProgramSupported__bool, "", ""); I_Method0(bool, isFragmentProgramSupported, + Properties::NON_VIRTUAL, __bool__isFragmentProgramSupported, "", ""); I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, __void__glBindProgram__GLenum__GLuint, "", ""); I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, __void__glGenPrograms__GLsizei__GLuint_P1, "", ""); I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, __void__glDeletePrograms__GLsizei__GLuint_P1, "", ""); I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, "", ""); I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, "", ""); diff --git a/src/osgWrappers/osg/FrameBufferObject.cpp b/src/osgWrappers/osg/FrameBufferObject.cpp index cae97c3f0..ac8015e2a 100644 --- a/src/osgWrappers/osg/FrameBufferObject.cpp +++ b/src/osgWrappers/osg/FrameBufferObject.cpp @@ -56,9 +56,10 @@ TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglFramebufferRenderbufferEXT); TYPE_NAME_ALIAS(void , osg::FBOExtensions::TglGenerateMipmapEXT); -BEGIN_OBJECT_REFLECTOR(osg::FBOExtensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FBOExtensions) I_BaseType(osg::Referenced); I_Method0(bool, isSupported, + Properties::NON_VIRTUAL, __bool__isSupported, "", ""); @@ -86,10 +87,12 @@ BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) "", ""); I_Constructor1(IN, const osg::FrameBufferAttachment &, copy, + Properties::NON_EXPLICIT, ____FrameBufferAttachment__C5_FrameBufferAttachment_R1, "", ""); I_Constructor1(IN, osg::RenderBuffer *, target, + Properties::EXPLICIT, ____FrameBufferAttachment__RenderBuffer_P1, "", ""); @@ -110,22 +113,27 @@ BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) "", ""); I_Constructor1(IN, osg::TextureRectangle *, target, + Properties::EXPLICIT, ____FrameBufferAttachment__TextureRectangle_P1, "", ""); I_Constructor1(IN, osg::Camera::Attachment &, attachment, + Properties::EXPLICIT, ____FrameBufferAttachment__Camera_Attachment_R1, "", ""); I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, "", ""); I_Method3(void, attach, IN, osg::State &, state, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, __void__attach__State_R1__GLenum__C5_FBOExtensions_P1, "", ""); I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + Properties::NON_VIRTUAL, __int__compare__C5_FrameBufferAttachment_R1, "", ""); @@ -133,7 +141,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap); -BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FrameBufferObject) I_BaseType(osg::StateAttribute); I_Constructor0(____FrameBufferObject, "", @@ -143,50 +151,62 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(const osg::FrameBufferObject::AttachmentMap &, getAttachmentMap, + Properties::NON_VIRTUAL, __C5_AttachmentMap_R1__getAttachmentMap, "", ""); I_Method1(bool, hasAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, __bool__hasAttachment__GLenum, "", ""); I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, GLenum, attachment_point, + Properties::NON_VIRTUAL, __C5_FrameBufferAttachment_R1__getAttachment__GLenum, "", ""); I_Method2(void, setAttachment, IN, GLenum, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, + Properties::NON_VIRTUAL, __void__setAttachment__GLenum__C5_FrameBufferAttachment_R1, "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -210,7 +230,7 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::RenderBuffer) I_BaseType(osg::Object); I_Constructor0(____RenderBuffer, "", @@ -224,58 +244,72 @@ BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) "", ""); 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_Method0(int, getWidth, + Properties::NON_VIRTUAL, __int__getWidth, "", ""); I_Method0(int, getHeight, + Properties::NON_VIRTUAL, __int__getHeight, "", ""); I_Method1(void, setWidth, IN, int, w, + Properties::NON_VIRTUAL, __void__setWidth__int, "", ""); I_Method1(void, setHeight, IN, int, h, + Properties::NON_VIRTUAL, __void__setHeight__int, "", ""); I_Method2(void, setSize, IN, int, w, IN, int, h, + Properties::NON_VIRTUAL, __void__setSize__int__int, "", ""); I_Method0(GLenum, getInternalFormat, + Properties::NON_VIRTUAL, __GLenum__getInternalFormat, "", ""); I_Method1(void, setInternalFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, __void__setInternalFormat__GLenum, "", ""); I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, "", ""); I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + Properties::NON_VIRTUAL, __int__compare__C5_RenderBuffer_R1, "", ""); diff --git a/src/osgWrappers/osg/FrameStamp.cpp b/src/osgWrappers/osg/FrameStamp.cpp index 3a2fa1c48..45ba66262 100644 --- a/src/osgWrappers/osg/FrameStamp.cpp +++ b/src/osgWrappers/osg/FrameStamp.cpp @@ -20,44 +20,53 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::FrameStamp) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FrameStamp) I_BaseType(osg::Referenced); I_Constructor0(____FrameStamp, "", ""); I_Constructor1(IN, const osg::FrameStamp &, fs, + Properties::NON_EXPLICIT, ____FrameStamp__C5_FrameStamp_R1, "", ""); I_Method1(void, setFrameNumber, IN, int, fnum, + Properties::NON_VIRTUAL, __void__setFrameNumber__int, "", ""); I_Method0(int, getFrameNumber, + Properties::NON_VIRTUAL, __int__getFrameNumber, "", ""); I_Method1(void, setReferenceTime, IN, double, refTime, + Properties::NON_VIRTUAL, __void__setReferenceTime__double, "", ""); I_Method0(double, getReferenceTime, + Properties::NON_VIRTUAL, __double__getReferenceTime, "", ""); I_Method1(void, setSimulationTime, IN, double, refTime, + Properties::NON_VIRTUAL, __void__setSimulationTime__double, "", ""); I_Method0(double, getSimulationTime, + Properties::NON_VIRTUAL, __double__getSimulationTime, "", ""); I_Method1(void, setCalendarTime, IN, const tm &, calendarTime, + Properties::NON_VIRTUAL, __void__setCalendarTime__C5_tm_R1, "", ""); I_Method1(void, getCalendarTime, IN, tm &, calendarTime, + Properties::NON_VIRTUAL, __void__getCalendarTime__tm_R1, "", ""); diff --git a/src/osgWrappers/osg/FrontFace.cpp b/src/osgWrappers/osg/FrontFace.cpp index 7e153924c..6e7bac448 100644 --- a/src/osgWrappers/osg/FrontFace.cpp +++ b/src/osgWrappers/osg/FrontFace.cpp @@ -29,9 +29,10 @@ BEGIN_ENUM_REFLECTOR(osg::FrontFace::Mode) I_EnumLabel(osg::FrontFace::COUNTER_CLOCKWISE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::FrontFace) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::FrontFace) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + Properties::NON_EXPLICIT, ____FrontFace__Mode, "", ""); @@ -40,42 +41,52 @@ BEGIN_OBJECT_REFLECTOR(osg::FrontFace) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setMode, IN, osg::FrontFace::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::FrontFace::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/GL2Extensions.cpp b/src/osgWrappers/osg/GL2Extensions.cpp index 4f450188a..ed80b97c2 100644 --- a/src/osgWrappers/osg/GL2Extensions.cpp +++ b/src/osgWrappers/osg/GL2Extensions.cpp @@ -20,453 +20,565 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::GL2Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GL2Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____GL2Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::GL2Extensions &, rhs, + Properties::NON_EXPLICIT, ____GL2Extensions__C5_GL2Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::GL2Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_GL2Extensions_R1, "", ""); I_Method1(void, setupGL2Extensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGL2Extensions__unsigned_int, "", ""); I_Method0(bool, isGlslSupported, + Properties::NON_VIRTUAL, __bool__isGlslSupported, "Does the GL driver support OpenGL Shading Language? ", ""); I_Method0(float, getGlVersion, + Properties::NON_VIRTUAL, __float__getGlVersion, "", ""); I_Method0(float, getLanguageVersion, + Properties::NON_VIRTUAL, __float__getLanguageVersion, "", ""); I_Method1(void, setShaderObjectsSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setShaderObjectsSupported__bool, "", ""); I_Method0(bool, isShaderObjectsSupported, + Properties::NON_VIRTUAL, __bool__isShaderObjectsSupported, "", ""); I_Method1(void, setVertexShaderSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setVertexShaderSupported__bool, "", ""); I_Method0(bool, isVertexShaderSupported, + Properties::NON_VIRTUAL, __bool__isVertexShaderSupported, "", ""); I_Method1(void, setFragmentShaderSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setFragmentShaderSupported__bool, "", ""); I_Method0(bool, isFragmentShaderSupported, + Properties::NON_VIRTUAL, __bool__isFragmentShaderSupported, "", ""); I_Method1(void, setLanguage100Supported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setLanguage100Supported__bool, "", ""); I_Method0(bool, isLanguage100Supported, + Properties::NON_VIRTUAL, __bool__isLanguage100Supported, "", ""); I_Method2(void, glBlendEquationSeparate, IN, GLenum, modeRGB, IN, GLenum, modeAlpha, + Properties::NON_VIRTUAL, __void__glBlendEquationSeparate__GLenum__GLenum, "", ""); I_Method2(void, glDrawBuffers, IN, GLsizei, n, IN, const GLenum *, bufs, + Properties::NON_VIRTUAL, __void__glDrawBuffers__GLsizei__C5_GLenum_P1, "", ""); I_Method4(void, glStencilOpSeparate, IN, GLenum, face, IN, GLenum, sfail, IN, GLenum, dpfail, IN, GLenum, dppass, + Properties::NON_VIRTUAL, __void__glStencilOpSeparate__GLenum__GLenum__GLenum__GLenum, "", ""); I_Method4(void, glStencilFuncSeparate, IN, GLenum, frontfunc, IN, GLenum, backfunc, IN, GLint, ref, IN, GLuint, mask, + Properties::NON_VIRTUAL, __void__glStencilFuncSeparate__GLenum__GLenum__GLint__GLuint, "", ""); I_Method2(void, glStencilMaskSeparate, IN, GLenum, face, IN, GLuint, mask, + Properties::NON_VIRTUAL, __void__glStencilMaskSeparate__GLenum__GLuint, "", ""); I_Method2(void, glAttachShader, IN, GLuint, program, IN, GLuint, shader, + Properties::NON_VIRTUAL, __void__glAttachShader__GLuint__GLuint, "", ""); I_Method3(void, glBindAttribLocation, IN, GLuint, program, IN, GLuint, index, IN, const GLchar *, name, + Properties::NON_VIRTUAL, __void__glBindAttribLocation__GLuint__GLuint__C5_GLchar_P1, "", ""); I_Method1(void, glCompileShader, IN, GLuint, shader, + Properties::NON_VIRTUAL, __void__glCompileShader__GLuint, "", ""); I_Method0(GLuint, glCreateProgram, + Properties::NON_VIRTUAL, __GLuint__glCreateProgram, "", ""); I_Method1(GLuint, glCreateShader, IN, GLenum, type, + Properties::NON_VIRTUAL, __GLuint__glCreateShader__GLenum, "", ""); I_Method1(void, glDeleteProgram, IN, GLuint, program, + Properties::NON_VIRTUAL, __void__glDeleteProgram__GLuint, "", ""); I_Method1(void, glDeleteShader, IN, GLuint, shader, + Properties::NON_VIRTUAL, __void__glDeleteShader__GLuint, "", ""); I_Method2(void, glDetachShader, IN, GLuint, program, IN, GLuint, shader, + Properties::NON_VIRTUAL, __void__glDetachShader__GLuint__GLuint, "", ""); I_Method1(void, glDisableVertexAttribArray, IN, GLuint, index, + Properties::NON_VIRTUAL, __void__glDisableVertexAttribArray__GLuint, "", ""); I_Method1(void, glEnableVertexAttribArray, IN, GLuint, index, + Properties::NON_VIRTUAL, __void__glEnableVertexAttribArray__GLuint, "", ""); I_Method7(void, glGetActiveAttrib, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name, + Properties::NON_VIRTUAL, __void__glGetActiveAttrib__GLuint__GLuint__GLsizei__GLsizei_P1__GLint_P1__GLenum_P1__GLchar_P1, "", ""); I_Method7(void, glGetActiveUniform, IN, GLuint, program, IN, GLuint, index, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLint *, size, IN, GLenum *, type, IN, GLchar *, name, + Properties::NON_VIRTUAL, __void__glGetActiveUniform__GLuint__GLuint__GLsizei__GLsizei_P1__GLint_P1__GLenum_P1__GLchar_P1, "", ""); I_Method4(void, glGetAttachedShaders, IN, GLuint, program, IN, GLsizei, maxCount, IN, GLsizei *, count, IN, GLuint *, obj, + Properties::NON_VIRTUAL, __void__glGetAttachedShaders__GLuint__GLsizei__GLsizei_P1__GLuint_P1, "", ""); I_Method2(GLint, glGetAttribLocation, IN, GLuint, program, IN, const GLchar *, name, + Properties::NON_VIRTUAL, __GLint__glGetAttribLocation__GLuint__C5_GLchar_P1, "", ""); I_Method3(void, glGetProgramiv, IN, GLuint, program, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetProgramiv__GLuint__GLenum__GLint_P1, "", ""); I_Method4(void, glGetProgramInfoLog, IN, GLuint, program, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog, + Properties::NON_VIRTUAL, __void__glGetProgramInfoLog__GLuint__GLsizei__GLsizei_P1__GLchar_P1, "", ""); I_Method3(void, glGetShaderiv, IN, GLuint, shader, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetShaderiv__GLuint__GLenum__GLint_P1, "", ""); I_Method4(void, glGetShaderInfoLog, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, infoLog, + Properties::NON_VIRTUAL, __void__glGetShaderInfoLog__GLuint__GLsizei__GLsizei_P1__GLchar_P1, "", ""); I_Method4(void, glGetShaderSource, IN, GLuint, shader, IN, GLsizei, bufSize, IN, GLsizei *, length, IN, GLchar *, source, + Properties::NON_VIRTUAL, __void__glGetShaderSource__GLuint__GLsizei__GLsizei_P1__GLchar_P1, "", ""); I_Method2(GLint, glGetUniformLocation, IN, GLuint, program, IN, const GLchar *, name, + Properties::NON_VIRTUAL, __GLint__glGetUniformLocation__GLuint__C5_GLchar_P1, "", ""); I_Method3(void, glGetUniformfv, IN, GLuint, program, IN, GLint, location, IN, GLfloat *, params, + Properties::NON_VIRTUAL, __void__glGetUniformfv__GLuint__GLint__GLfloat_P1, "", ""); I_Method3(void, glGetUniformiv, IN, GLuint, program, IN, GLint, location, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetUniformiv__GLuint__GLint__GLint_P1, "", ""); I_Method3(void, glGetVertexAttribdv, IN, GLuint, index, IN, GLenum, pname, IN, GLdouble *, params, + Properties::NON_VIRTUAL, __void__glGetVertexAttribdv__GLuint__GLenum__GLdouble_P1, "", ""); I_Method3(void, glGetVertexAttribfv, IN, GLuint, index, IN, GLenum, pname, IN, GLfloat *, params, + Properties::NON_VIRTUAL, __void__glGetVertexAttribfv__GLuint__GLenum__GLfloat_P1, "", ""); I_Method3(void, glGetVertexAttribiv, IN, GLuint, index, IN, GLenum, pname, IN, GLint *, params, + Properties::NON_VIRTUAL, __void__glGetVertexAttribiv__GLuint__GLenum__GLint_P1, "", ""); I_Method3(void, glGetVertexAttribPointerv, IN, GLuint, index, IN, GLenum, pname, IN, GLvoid **, pointer, + Properties::NON_VIRTUAL, __void__glGetVertexAttribPointerv__GLuint__GLenum__GLvoid_P1P1, "", ""); I_Method1(GLboolean, glIsProgram, IN, GLuint, program, + Properties::NON_VIRTUAL, __GLboolean__glIsProgram__GLuint, "", ""); I_Method1(GLboolean, glIsShader, IN, GLuint, shader, + Properties::NON_VIRTUAL, __GLboolean__glIsShader__GLuint, "", ""); I_Method1(void, glLinkProgram, IN, GLuint, program, + Properties::NON_VIRTUAL, __void__glLinkProgram__GLuint, "", ""); I_Method4(void, glShaderSource, IN, GLuint, shader, IN, GLsizei, count, IN, const GLchar **, string, IN, const GLint *, length, + Properties::NON_VIRTUAL, __void__glShaderSource__GLuint__GLsizei__C5_GLchar_P1P1__C5_GLint_P1, "", ""); I_Method1(void, glUseProgram, IN, GLuint, program, + Properties::NON_VIRTUAL, __void__glUseProgram__GLuint, "", ""); I_Method2(void, glUniform1f, IN, GLint, location, IN, GLfloat, v0, + Properties::NON_VIRTUAL, __void__glUniform1f__GLint__GLfloat, "", ""); I_Method3(void, glUniform2f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, + Properties::NON_VIRTUAL, __void__glUniform2f__GLint__GLfloat__GLfloat, "", ""); I_Method4(void, glUniform3f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, + Properties::NON_VIRTUAL, __void__glUniform3f__GLint__GLfloat__GLfloat__GLfloat, "", ""); I_Method5(void, glUniform4f, IN, GLint, location, IN, GLfloat, v0, IN, GLfloat, v1, IN, GLfloat, v2, IN, GLfloat, v3, + Properties::NON_VIRTUAL, __void__glUniform4f__GLint__GLfloat__GLfloat__GLfloat__GLfloat, "", ""); I_Method2(void, glUniform1i, IN, GLint, location, IN, GLint, v0, + Properties::NON_VIRTUAL, __void__glUniform1i__GLint__GLint, "", ""); I_Method3(void, glUniform2i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, + Properties::NON_VIRTUAL, __void__glUniform2i__GLint__GLint__GLint, "", ""); I_Method4(void, glUniform3i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, + Properties::NON_VIRTUAL, __void__glUniform3i__GLint__GLint__GLint__GLint, "", ""); I_Method5(void, glUniform4i, IN, GLint, location, IN, GLint, v0, IN, GLint, v1, IN, GLint, v2, IN, GLint, v3, + Properties::NON_VIRTUAL, __void__glUniform4i__GLint__GLint__GLint__GLint__GLint, "", ""); I_Method3(void, glUniform1fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniform1fv__GLint__GLsizei__C5_GLfloat_P1, "", ""); I_Method3(void, glUniform2fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniform2fv__GLint__GLsizei__C5_GLfloat_P1, "", ""); I_Method3(void, glUniform3fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniform3fv__GLint__GLsizei__C5_GLfloat_P1, "", ""); I_Method3(void, glUniform4fv, IN, GLint, location, IN, GLsizei, count, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniform4fv__GLint__GLsizei__C5_GLfloat_P1, "", ""); I_Method3(void, glUniform1iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + Properties::NON_VIRTUAL, __void__glUniform1iv__GLint__GLsizei__C5_GLint_P1, "", ""); I_Method3(void, glUniform2iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + Properties::NON_VIRTUAL, __void__glUniform2iv__GLint__GLsizei__C5_GLint_P1, "", ""); I_Method3(void, glUniform3iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + Properties::NON_VIRTUAL, __void__glUniform3iv__GLint__GLsizei__C5_GLint_P1, "", ""); I_Method3(void, glUniform4iv, IN, GLint, location, IN, GLsizei, count, IN, const GLint *, value, + Properties::NON_VIRTUAL, __void__glUniform4iv__GLint__GLsizei__C5_GLint_P1, "", ""); I_Method4(void, glUniformMatrix2fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniformMatrix2fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, "", ""); I_Method4(void, glUniformMatrix3fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniformMatrix3fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, "", ""); I_Method4(void, glUniformMatrix4fv, IN, GLint, location, IN, GLsizei, count, IN, GLboolean, transpose, IN, const GLfloat *, value, + Properties::NON_VIRTUAL, __void__glUniformMatrix4fv__GLint__GLsizei__GLboolean__C5_GLfloat_P1, "", ""); I_Method1(void, glValidateProgram, IN, GLuint, program, + Properties::NON_VIRTUAL, __void__glValidateProgram__GLuint, "", ""); I_Method2(void, glVertexAttrib1d, IN, GLuint, index, IN, GLdouble, x, + Properties::NON_VIRTUAL, __void__glVertexAttrib1d__GLuint__GLdouble, "", ""); I_Method2(void, glVertexAttrib1dv, IN, GLuint, index, IN, const GLdouble *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib1dv__GLuint__C5_GLdouble_P1, "", ""); I_Method2(void, glVertexAttrib1f, IN, GLuint, index, IN, GLfloat, x, + Properties::NON_VIRTUAL, __void__glVertexAttrib1f__GLuint__GLfloat, "", ""); I_Method2(void, glVertexAttrib1fv, IN, GLuint, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib1fv__GLuint__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib1s, IN, GLuint, index, IN, GLshort, x, + Properties::NON_VIRTUAL, __void__glVertexAttrib1s__GLuint__GLshort, "", ""); I_Method2(void, glVertexAttrib1sv, IN, GLuint, index, IN, const GLshort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib1sv__GLuint__C5_GLshort_P1, "", ""); I_Method3(void, glVertexAttrib2d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, + Properties::NON_VIRTUAL, __void__glVertexAttrib2d__GLuint__GLdouble__GLdouble, "", ""); I_Method2(void, glVertexAttrib2dv, IN, GLuint, index, IN, const GLdouble *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib2dv__GLuint__C5_GLdouble_P1, "", ""); I_Method3(void, glVertexAttrib2f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, + Properties::NON_VIRTUAL, __void__glVertexAttrib2f__GLuint__GLfloat__GLfloat, "", ""); I_Method2(void, glVertexAttrib2fv, IN, GLuint, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib2fv__GLuint__C5_GLfloat_P1, "", ""); I_Method3(void, glVertexAttrib2s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, + Properties::NON_VIRTUAL, __void__glVertexAttrib2s__GLuint__GLshort__GLshort, "", ""); I_Method2(void, glVertexAttrib2sv, IN, GLuint, index, IN, const GLshort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib2sv__GLuint__C5_GLshort_P1, "", ""); I_Method4(void, glVertexAttrib3d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, __void__glVertexAttrib3d__GLuint__GLdouble__GLdouble__GLdouble, "", ""); I_Method2(void, glVertexAttrib3dv, IN, GLuint, index, IN, const GLdouble *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib3dv__GLuint__C5_GLdouble_P1, "", ""); I_Method4(void, glVertexAttrib3f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, __void__glVertexAttrib3f__GLuint__GLfloat__GLfloat__GLfloat, "", ""); I_Method2(void, glVertexAttrib3fv, IN, GLuint, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib3fv__GLuint__C5_GLfloat_P1, "", ""); I_Method4(void, glVertexAttrib3s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, + Properties::NON_VIRTUAL, __void__glVertexAttrib3s__GLuint__GLshort__GLshort__GLshort, "", ""); I_Method2(void, glVertexAttrib3sv, IN, GLuint, index, IN, const GLshort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib3sv__GLuint__C5_GLshort_P1, "", ""); I_Method2(void, glVertexAttrib4Nbv, IN, GLuint, index, IN, const GLbyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nbv__GLuint__C5_GLbyte_P1, "", ""); I_Method2(void, glVertexAttrib4Niv, IN, GLuint, index, IN, const GLint *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Niv__GLuint__C5_GLint_P1, "", ""); I_Method2(void, glVertexAttrib4Nsv, IN, GLuint, index, IN, const GLshort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nsv__GLuint__C5_GLshort_P1, "", ""); I_Method5(void, glVertexAttrib4Nub, IN, GLuint, index, IN, GLubyte, x, IN, GLubyte, y, IN, GLubyte, z, IN, GLubyte, w, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nub__GLuint__GLubyte__GLubyte__GLubyte__GLubyte, "", ""); I_Method2(void, glVertexAttrib4Nubv, IN, GLuint, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nubv__GLuint__C5_GLubyte_P1, "", ""); I_Method2(void, glVertexAttrib4Nuiv, IN, GLuint, index, IN, const GLuint *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nuiv__GLuint__C5_GLuint_P1, "", ""); I_Method2(void, glVertexAttrib4Nusv, IN, GLuint, index, IN, const GLushort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4Nusv__GLuint__C5_GLushort_P1, "", ""); I_Method2(void, glVertexAttrib4bv, IN, GLuint, index, IN, const GLbyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4bv__GLuint__C5_GLbyte_P1, "", ""); I_Method5(void, glVertexAttrib4d, IN, GLuint, index, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, IN, GLdouble, w, + Properties::NON_VIRTUAL, __void__glVertexAttrib4d__GLuint__GLdouble__GLdouble__GLdouble__GLdouble, "", ""); I_Method2(void, glVertexAttrib4dv, IN, GLuint, index, IN, const GLdouble *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4dv__GLuint__C5_GLdouble_P1, "", ""); I_Method5(void, glVertexAttrib4f, IN, GLuint, index, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + Properties::NON_VIRTUAL, __void__glVertexAttrib4f__GLuint__GLfloat__GLfloat__GLfloat__GLfloat, "", ""); I_Method2(void, glVertexAttrib4fv, IN, GLuint, index, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4fv__GLuint__C5_GLfloat_P1, "", ""); I_Method2(void, glVertexAttrib4iv, IN, GLuint, index, IN, const GLint *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4iv__GLuint__C5_GLint_P1, "", ""); I_Method5(void, glVertexAttrib4s, IN, GLuint, index, IN, GLshort, x, IN, GLshort, y, IN, GLshort, z, IN, GLshort, w, + Properties::NON_VIRTUAL, __void__glVertexAttrib4s__GLuint__GLshort__GLshort__GLshort__GLshort, "", ""); I_Method2(void, glVertexAttrib4sv, IN, GLuint, index, IN, const GLshort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4sv__GLuint__C5_GLshort_P1, "", ""); I_Method2(void, glVertexAttrib4ubv, IN, GLuint, index, IN, const GLubyte *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4ubv__GLuint__C5_GLubyte_P1, "", ""); I_Method2(void, glVertexAttrib4uiv, IN, GLuint, index, IN, const GLuint *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4uiv__GLuint__C5_GLuint_P1, "", ""); I_Method2(void, glVertexAttrib4usv, IN, GLuint, index, IN, const GLushort *, v, + Properties::NON_VIRTUAL, __void__glVertexAttrib4usv__GLuint__C5_GLushort_P1, "", ""); I_Method6(void, glVertexAttribPointer, IN, GLuint, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, pointer, + Properties::NON_VIRTUAL, __void__glVertexAttribPointer__GLuint__GLint__GLenum__GLboolean__GLsizei__C5_GLvoid_P1, "", ""); I_Method0(GLuint, getCurrentProgram, + Properties::NON_VIRTUAL, __GLuint__getCurrentProgram, "", ""); I_Method2(bool, getProgramInfoLog, IN, GLuint, program, IN, std::string &, result, + Properties::NON_VIRTUAL, __bool__getProgramInfoLog__GLuint__std_string_R1, "", ""); I_Method2(bool, getShaderInfoLog, IN, GLuint, shader, IN, std::string &, result, + Properties::NON_VIRTUAL, __bool__getShaderInfoLog__GLuint__std_string_R1, "", ""); I_Method2(bool, getAttribLocation, IN, const char *, attribName, IN, GLuint &, slot, + Properties::NON_VIRTUAL, __bool__getAttribLocation__C5_char_P1__GLuint_R1, "", ""); diff --git a/src/osgWrappers/osg/Geode.cpp b/src/osgWrappers/osg/Geode.cpp index 11efb3f1b..09c6f023a 100644 --- a/src/osgWrappers/osg/Geode.cpp +++ b/src/osgWrappers/osg/Geode.cpp @@ -30,7 +30,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osg::Geode::DrawableList); -BEGIN_OBJECT_REFLECTOR(osg::Geode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Geode) I_BaseType(osg::Node); I_Constructor0(____Geode, "", @@ -40,94 +40,117 @@ BEGIN_OBJECT_REFLECTOR(osg::Geode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(bool, addDrawable, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __bool__addDrawable__Drawable_P1, "Add a Drawable to the Geode. ", " param drawable The Drawable to be added to the Geode. return true for success; false otherwise."); I_Method1(bool, removeDrawable, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __bool__removeDrawable__Drawable_P1, "Remove a Drawable from the Geode. ", " param drawable The drawable to be removed. return true if at least one Drawable was removed. false otherwise."); I_MethodWithDefaults2(bool, removeDrawables, IN, unsigned int, i, , IN, unsigned int, numDrawablesToRemove, 1, + Properties::VIRTUAL, __bool__removeDrawables__unsigned_int__unsigned_int, "Remove Drawable(s) from the specified position in Geode's drawable list. ", " param i The index of the first Drawable to remove. numDrawablesToRemove The number of Drawable to remove. return true if at least one Drawable was removed. false otherwise."); I_Method2(bool, replaceDrawable, IN, osg::Drawable *, origDraw, IN, osg::Drawable *, newDraw, + Properties::VIRTUAL, __bool__replaceDrawable__Drawable_P1__Drawable_P1, "Replace specified Drawable with another Drawable. ", "Equivalent to setDrawable(getDrawableIndex(origDraw),newDraw), see docs for setDrawable() for further details on implementation."); I_Method2(bool, setDrawable, IN, unsigned int, i, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __bool__setDrawable__unsigned_int__Drawable_P1, "Set Drawable at position i. ", "Decrement the reference count origGSet and increments the reference count of newGset, and dirty the bounding sphere to force it to recompute on next getBound() and returns true. If origDrawable is not found then return false and do not add newGset. If newGset is NULL then return false and do not remove origGset. true if set correctly, false on failure (if node==NULL || i is out of range). "); I_Method0(unsigned int, getNumDrawables, + Properties::NON_VIRTUAL, __unsigned_int__getNumDrawables, "Return the number of Drawables currently attached to the Geode. ", ""); I_Method1(osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Drawable_P1__getDrawable__unsigned_int, "Return the Drawable at position i. ", ""); I_Method1(const osg::Drawable *, getDrawable, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Drawable_P1__getDrawable__unsigned_int, "Return the Drawable at position i. ", ""); I_Method1(bool, containsDrawable, IN, const osg::Drawable *, gset, + Properties::NON_VIRTUAL, __bool__containsDrawable__C5_Drawable_P1, "Return true if a given Drawable is contained within Geode. ", ""); I_Method1(unsigned int, getDrawableIndex, IN, const osg::Drawable *, drawable, + Properties::NON_VIRTUAL, __unsigned_int__getDrawableIndex__C5_Drawable_P1, "Get the index number of drawable. ", "A value between 0 and getNumDrawables()-1 if drawable is found; if not found, then getNumDrawables() is returned. "); I_Method0(const osg::Geode::DrawableList &, getDrawableList, + Properties::NON_VIRTUAL, __C5_DrawableList_R1__getDrawableList, "Get the list of drawables. ", ""); I_Method1(void, compileDrawables, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__compileDrawables__RenderInfo_R1, "Compile OpenGL Display List for each drawable. ", ""); I_Method0(const osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, __C5_BoundingBox_R1__getBoundingBox, "Return the Geode's bounding box, which is the union of all the bounding boxes of the geode's drawables. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); @@ -154,26 +177,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Drawable >) "", ""); I_Constructor1(IN, osg::Drawable *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Drawable > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Drawable *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Drawable *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Drawable > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/Geometry.cpp b/src/osgWrappers/osg/Geometry.cpp index 5e25e1a3d..9ce732de7 100644 --- a/src/osgWrappers/osg/Geometry.cpp +++ b/src/osgWrappers/osg/Geometry.cpp @@ -38,7 +38,7 @@ BEGIN_ENUM_REFLECTOR(osg::Geometry::AttributeBinding) I_EnumLabel(osg::Geometry::BIND_PER_VERTEX); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Geometry) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Geometry) I_BaseType(osg::Drawable); I_Constructor0(____Geometry, "", @@ -48,494 +48,617 @@ BEGIN_OBJECT_REFLECTOR(osg::Geometry) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(osg::Geometry *, asGeometry, + Properties::VIRTUAL, __Geometry_P1__asGeometry, "Convert 'this' into a Geometry pointer if Drawable is a Geometry, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Geometry *, asGeometry, + Properties::VIRTUAL, __C5_Geometry_P1__asGeometry, "Convert 'const this' into a const Geometry pointer if Drawable is a Geometry, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); I_Method1(void, setVertexArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setVertexArray__Array_P1, "", ""); I_Method0(osg::Array *, getVertexArray, + Properties::NON_VIRTUAL, __Array_P1__getVertexArray, "", ""); I_Method0(const osg::Array *, getVertexArray, + Properties::NON_VIRTUAL, __C5_Array_P1__getVertexArray, "", ""); I_Method1(void, setVertexIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setVertexIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getVertexIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getVertexIndices, "", ""); I_Method0(const osg::IndexArray *, getVertexIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getVertexIndices, "", ""); I_Method1(void, setVertexData, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setVertexData__C5_ArrayData_R1, "", ""); I_Method0(osg::Geometry::ArrayData &, getVertexData, + Properties::NON_VIRTUAL, __ArrayData_R1__getVertexData, "", ""); I_Method0(const osg::Geometry::ArrayData &, getVertexData, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getVertexData, "", ""); I_Method1(void, setNormalBinding, IN, osg::Geometry::AttributeBinding, ab, + Properties::NON_VIRTUAL, __void__setNormalBinding__AttributeBinding, "", ""); I_Method0(osg::Geometry::AttributeBinding, getNormalBinding, + Properties::NON_VIRTUAL, __AttributeBinding__getNormalBinding, "", ""); I_Method1(void, setNormalArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setNormalArray__Array_P1, "", ""); I_Method0(osg::Array *, getNormalArray, + Properties::NON_VIRTUAL, __Array_P1__getNormalArray, "", ""); I_Method0(const osg::Array *, getNormalArray, + Properties::NON_VIRTUAL, __C5_Array_P1__getNormalArray, "", ""); I_Method1(void, setNormalIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setNormalIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getNormalIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getNormalIndices, "", ""); I_Method0(const osg::IndexArray *, getNormalIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getNormalIndices, "", ""); I_Method1(void, setNormalData, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setNormalData__C5_ArrayData_R1, "", ""); I_Method0(osg::Geometry::ArrayData &, getNormalData, + Properties::NON_VIRTUAL, __ArrayData_R1__getNormalData, "", ""); I_Method0(const osg::Geometry::ArrayData &, getNormalData, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getNormalData, "", ""); I_Method1(void, setColorBinding, IN, osg::Geometry::AttributeBinding, ab, + Properties::NON_VIRTUAL, __void__setColorBinding__AttributeBinding, "", ""); I_Method0(osg::Geometry::AttributeBinding, getColorBinding, + Properties::NON_VIRTUAL, __AttributeBinding__getColorBinding, "", ""); I_Method1(void, setColorArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setColorArray__Array_P1, "", ""); I_Method0(osg::Array *, getColorArray, + Properties::NON_VIRTUAL, __Array_P1__getColorArray, "", ""); I_Method0(const osg::Array *, getColorArray, + Properties::NON_VIRTUAL, __C5_Array_P1__getColorArray, "", ""); I_Method1(void, setColorIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setColorIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getColorIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getColorIndices, "", ""); I_Method0(const osg::IndexArray *, getColorIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getColorIndices, "", ""); I_Method1(void, setColorData, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setColorData__C5_ArrayData_R1, "", ""); I_Method0(osg::Geometry::ArrayData &, getColorData, + Properties::NON_VIRTUAL, __ArrayData_R1__getColorData, "", ""); I_Method0(const osg::Geometry::ArrayData &, getColorData, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getColorData, "", ""); I_Method1(void, setSecondaryColorBinding, IN, osg::Geometry::AttributeBinding, ab, + Properties::NON_VIRTUAL, __void__setSecondaryColorBinding__AttributeBinding, "", ""); I_Method0(osg::Geometry::AttributeBinding, getSecondaryColorBinding, + Properties::NON_VIRTUAL, __AttributeBinding__getSecondaryColorBinding, "", ""); I_Method1(void, setSecondaryColorArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setSecondaryColorArray__Array_P1, "", ""); I_Method0(osg::Array *, getSecondaryColorArray, + Properties::NON_VIRTUAL, __Array_P1__getSecondaryColorArray, "", ""); I_Method0(const osg::Array *, getSecondaryColorArray, + Properties::NON_VIRTUAL, __C5_Array_P1__getSecondaryColorArray, "", ""); I_Method1(void, setSecondaryColorIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setSecondaryColorIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getSecondaryColorIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getSecondaryColorIndices, "", ""); I_Method0(const osg::IndexArray *, getSecondaryColorIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getSecondaryColorIndices, "", ""); I_Method1(void, setSecondaryColorData, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setSecondaryColorData__C5_ArrayData_R1, "", ""); I_Method0(osg::Geometry::ArrayData &, getSecondaryColorData, + Properties::NON_VIRTUAL, __ArrayData_R1__getSecondaryColorData, "", ""); I_Method0(const osg::Geometry::ArrayData &, getSecondaryColorData, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getSecondaryColorData, "", ""); I_Method1(void, setFogCoordBinding, IN, osg::Geometry::AttributeBinding, ab, + Properties::NON_VIRTUAL, __void__setFogCoordBinding__AttributeBinding, "", ""); I_Method0(osg::Geometry::AttributeBinding, getFogCoordBinding, + Properties::NON_VIRTUAL, __AttributeBinding__getFogCoordBinding, "", ""); I_Method1(void, setFogCoordArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setFogCoordArray__Array_P1, "", ""); I_Method0(osg::Array *, getFogCoordArray, + Properties::NON_VIRTUAL, __Array_P1__getFogCoordArray, "", ""); I_Method0(const osg::Array *, getFogCoordArray, + Properties::NON_VIRTUAL, __C5_Array_P1__getFogCoordArray, "", ""); I_Method1(void, setFogCoordIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setFogCoordIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getFogCoordIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getFogCoordIndices, "", ""); I_Method0(const osg::IndexArray *, getFogCoordIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getFogCoordIndices, "", ""); I_Method1(void, setFogCoordData, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setFogCoordData__C5_ArrayData_R1, "", ""); I_Method0(osg::Geometry::ArrayData &, getFogCoordData, + Properties::NON_VIRTUAL, __ArrayData_R1__getFogCoordData, "", ""); I_Method0(const osg::Geometry::ArrayData &, getFogCoordData, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getFogCoordData, "", ""); I_Method2(void, setTexCoordArray, IN, unsigned int, unit, IN, osg::Array *, x, + Properties::NON_VIRTUAL, __void__setTexCoordArray__unsigned_int__Array_P1, "", ""); I_Method1(osg::Array *, getTexCoordArray, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __Array_P1__getTexCoordArray__unsigned_int, "", ""); I_Method1(const osg::Array *, getTexCoordArray, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __C5_Array_P1__getTexCoordArray__unsigned_int, "", ""); I_Method2(void, setTexCoordIndices, IN, unsigned int, unit, IN, osg::IndexArray *, x, + Properties::NON_VIRTUAL, __void__setTexCoordIndices__unsigned_int__IndexArray_P1, "", ""); I_Method1(osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __IndexArray_P1__getTexCoordIndices__unsigned_int, "", ""); I_Method1(const osg::IndexArray *, getTexCoordIndices, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getTexCoordIndices__unsigned_int, "", ""); I_Method2(void, setTexCoordData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setTexCoordData__unsigned_int__C5_ArrayData_R1, "", ""); I_Method1(osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index, + Properties::NON_VIRTUAL, __ArrayData_R1__getTexCoordData__unsigned_int, "", ""); I_Method1(const osg::Geometry::ArrayData &, getTexCoordData, IN, unsigned int, index, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getTexCoordData__unsigned_int, "", ""); I_Method0(unsigned int, getNumTexCoordArrays, + Properties::NON_VIRTUAL, __unsigned_int__getNumTexCoordArrays, "", ""); I_Method0(osg::Geometry::ArrayList &, getTexCoordArrayList, + Properties::NON_VIRTUAL, __ArrayList_R1__getTexCoordArrayList, "", ""); I_Method0(const osg::Geometry::ArrayList &, getTexCoordArrayList, + Properties::NON_VIRTUAL, __C5_ArrayList_R1__getTexCoordArrayList, "", ""); I_Method2(void, setVertexAttribArray, IN, unsigned int, index, IN, osg::Array *, array, + Properties::NON_VIRTUAL, __void__setVertexAttribArray__unsigned_int__Array_P1, "", ""); I_Method1(osg::Array *, getVertexAttribArray, IN, unsigned int, index, + Properties::NON_VIRTUAL, __Array_P1__getVertexAttribArray__unsigned_int, "", ""); I_Method1(const osg::Array *, getVertexAttribArray, IN, unsigned int, index, + Properties::NON_VIRTUAL, __C5_Array_P1__getVertexAttribArray__unsigned_int, "", ""); I_Method2(void, setVertexAttribIndices, IN, unsigned int, index, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, __void__setVertexAttribIndices__unsigned_int__IndexArray_P1, "", ""); I_Method1(osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index, + Properties::NON_VIRTUAL, __IndexArray_P1__getVertexAttribIndices__unsigned_int, "", ""); I_Method1(const osg::IndexArray *, getVertexAttribIndices, IN, unsigned int, index, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getVertexAttribIndices__unsigned_int, "", ""); I_Method2(void, setVertexAttribBinding, IN, unsigned int, index, IN, osg::Geometry::AttributeBinding, ab, + Properties::NON_VIRTUAL, __void__setVertexAttribBinding__unsigned_int__AttributeBinding, "", ""); I_Method1(osg::Geometry::AttributeBinding, getVertexAttribBinding, IN, unsigned int, index, + Properties::NON_VIRTUAL, __AttributeBinding__getVertexAttribBinding__unsigned_int, "", ""); I_Method2(void, setVertexAttribNormalize, IN, unsigned int, index, IN, GLboolean, norm, + Properties::NON_VIRTUAL, __void__setVertexAttribNormalize__unsigned_int__GLboolean, "", ""); I_Method1(GLboolean, getVertexAttribNormalize, IN, unsigned int, index, + Properties::NON_VIRTUAL, __GLboolean__getVertexAttribNormalize__unsigned_int, "", ""); I_Method2(void, setVertexAttribData, IN, unsigned int, index, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, __void__setVertexAttribData__unsigned_int__C5_ArrayData_R1, "", ""); I_Method1(osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index, + Properties::NON_VIRTUAL, __ArrayData_R1__getVertexAttribData__unsigned_int, "", ""); I_Method1(const osg::Geometry::ArrayData &, getVertexAttribData, IN, unsigned int, index, + Properties::NON_VIRTUAL, __C5_ArrayData_R1__getVertexAttribData__unsigned_int, "", ""); I_Method0(unsigned int, getNumVertexAttribArrays, + Properties::NON_VIRTUAL, __unsigned_int__getNumVertexAttribArrays, "", ""); I_Method0(osg::Geometry::ArrayList &, getVertexAttribArrayList, + Properties::NON_VIRTUAL, __ArrayList_R1__getVertexAttribArrayList, "", ""); I_Method0(const osg::Geometry::ArrayList &, getVertexAttribArrayList, + Properties::NON_VIRTUAL, __C5_ArrayList_R1__getVertexAttribArrayList, "", ""); I_Method1(void, setPrimitiveSetList, IN, const osg::Geometry::PrimitiveSetList &, primitives, + Properties::NON_VIRTUAL, __void__setPrimitiveSetList__C5_PrimitiveSetList_R1, "", ""); I_Method0(osg::Geometry::PrimitiveSetList &, getPrimitiveSetList, + Properties::NON_VIRTUAL, __PrimitiveSetList_R1__getPrimitiveSetList, "", ""); I_Method0(const osg::Geometry::PrimitiveSetList &, getPrimitiveSetList, + Properties::NON_VIRTUAL, __C5_PrimitiveSetList_R1__getPrimitiveSetList, "", ""); I_Method0(unsigned int, getNumPrimitiveSets, + Properties::NON_VIRTUAL, __unsigned_int__getNumPrimitiveSets, "", ""); I_Method1(osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __PrimitiveSet_P1__getPrimitiveSet__unsigned_int, "", ""); I_Method1(const osg::PrimitiveSet *, getPrimitiveSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __C5_PrimitiveSet_P1__getPrimitiveSet__unsigned_int, "", ""); I_Method1(bool, addPrimitiveSet, IN, osg::PrimitiveSet *, primitiveset, + Properties::NON_VIRTUAL, __bool__addPrimitiveSet__PrimitiveSet_P1, "Add a primitive set to the geometry. ", ""); I_Method2(bool, setPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset, + Properties::NON_VIRTUAL, __bool__setPrimitiveSet__unsigned_int__PrimitiveSet_P1, "Set a primitive set to the specified position in geometry's primitive set list. ", ""); I_Method2(bool, insertPrimitiveSet, IN, unsigned int, i, IN, osg::PrimitiveSet *, primitiveset, + Properties::NON_VIRTUAL, __bool__insertPrimitiveSet__unsigned_int__PrimitiveSet_P1, "Insert a primitive set to the specified position in geometry's primitive set list. ", ""); I_MethodWithDefaults2(bool, removePrimitiveSet, IN, unsigned int, i, , IN, unsigned int, numElementsToRemove, 1, + Properties::NON_VIRTUAL, __bool__removePrimitiveSet__unsigned_int__unsigned_int, "Remove primitive set(s) from the specified position in geometry's primitive set list. ", ""); I_Method1(unsigned int, getPrimitiveSetIndex, IN, const osg::PrimitiveSet *, primitiveset, + Properties::NON_VIRTUAL, __unsigned_int__getPrimitiveSetIndex__C5_PrimitiveSet_P1, "Get the index number of a primitive set, return a value between 0 and getNumPrimitiveSet()-1 if found, if not found then return getNumPrimitiveSet(). ", "When checking for a valid find value use if ((value=geometry->getPrimitiveSetIndex(primitive))!=geometry.getNumPrimitiveSet())"); I_Method1(void, setFastPathHint, IN, bool, on, + Properties::NON_VIRTUAL, __void__setFastPathHint__bool, "Set whether fast paths should be used when supported. ", ""); I_Method0(bool, getFastPathHint, + Properties::NON_VIRTUAL, __bool__getFastPathHint, "Get whether fast paths should be used when supported. ", ""); I_Method0(bool, areFastPathsUsed, + Properties::NON_VIRTUAL, __bool__areFastPathsUsed, "Return true if OpenGL fast paths will be used with drawing this Geometry. ", "Fast paths use vertex arrays, and glDrawArrays/glDrawElements. Slow paths use glBegin()/glVertex.../glEnd(). Use of per primitive bindings or per vertex indexed arrays will drop the rendering path off the fast path."); I_Method0(bool, computeFastPathsUsed, + Properties::NON_VIRTUAL, __bool__computeFastPathsUsed, "", ""); I_Method0(bool, verifyBindings, + Properties::NON_VIRTUAL, __bool__verifyBindings, "", ""); I_Method0(void, computeCorrectBindingsAndArraySizes, + Properties::NON_VIRTUAL, __void__computeCorrectBindingsAndArraySizes, "", ""); I_Method0(bool, suitableForOptimization, + Properties::NON_VIRTUAL, __bool__suitableForOptimization, "", ""); I_Method1(void, copyToAndOptimize, IN, osg::Geometry &, target, + Properties::NON_VIRTUAL, __void__copyToAndOptimize__Geometry_R1, "", ""); I_Method0(void, computeInternalOptimizedGeometry, + Properties::NON_VIRTUAL, __void__computeInternalOptimizedGeometry, "", ""); I_Method0(void, removeInternalOptimizedGeometry, + Properties::NON_VIRTUAL, __void__removeInternalOptimizedGeometry, "", ""); I_Method1(void, setInternalOptimizedGeometry, IN, osg::Geometry *, geometry, + Properties::NON_VIRTUAL, __void__setInternalOptimizedGeometry__osg_Geometry_P1, "", ""); I_Method0(osg::Geometry *, getInternalOptimizedGeometry, + Properties::NON_VIRTUAL, __osg_Geometry_P1__getInternalOptimizedGeometry, "", ""); I_Method0(const osg::Geometry *, getInternalOptimizedGeometry, + Properties::NON_VIRTUAL, __C5_osg_Geometry_P1__getInternalOptimizedGeometry, "", ""); I_Method0(unsigned int, getGLObjectSizeHint, + Properties::VIRTUAL, __unsigned_int__getGLObjectSizeHint, "Return the estimated size of GLObjects (display lists/vertex buffer objects) that are associated with this drawable. ", "This size is used a hint for reuse of deleteed display lists/vertex buffer objects. "); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__State_R1, "Draw Geometry directly ignoring an OpenGL display list which could be attached. ", "This is the internal draw method which does the drawing itself, and is the method to override when deriving from Geometry for user-drawn objects."); I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_AttributeFunctor_R1, "Return true, osg::Geometry does support accept(AttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__AttributeFunctor_R1, "Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_ConstAttributeFunctor_R1, "Return true, osg::Geometry does support accept(ConstAttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__ConstAttributeFunctor_R1, "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_PrimitiveFunctor_R1, "Return true, osg::Geometry does support accept(PrimitiveFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_PrimitiveIndexFunctor_R1, "Return true, osg::Geometry does support accept(PrimitiveIndexFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, pf, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "Accept a PrimitiveFunctor and call its methods to tell it about the interal primitives that this Drawable has. ", ""); @@ -696,6 +819,7 @@ BEGIN_VALUE_REFLECTOR(osg::Geometry::ArrayData) "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); @@ -723,6 +847,7 @@ BEGIN_VALUE_REFLECTOR(osg::Geometry::Vec3ArrayData) "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); @@ -738,26 +863,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PrimitiveSet >) "", ""); I_Constructor1(IN, osg::PrimitiveSet *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::PrimitiveSet > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::PrimitiveSet *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::PrimitiveSet *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::PrimitiveSet > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/GraphicsContext.cpp b/src/osgWrappers/osg/GraphicsContext.cpp index a55364702..60c26ee14 100644 --- a/src/osgWrappers/osg/GraphicsContext.cpp +++ b/src/osgWrappers/osg/GraphicsContext.cpp @@ -32,190 +32,237 @@ TYPE_NAME_ALIAS(std::list< osg::Camera * >, osg::GraphicsContext::Cameras); BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext) I_BaseType(osg::Object); I_Method1(void, add, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, __void__add__Operation_P1, "Add operation to end of OperationQueue. ", ""); I_Method1(void, remove, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, __void__remove__Operation_P1, "Remove operation from OperationQueue. ", ""); I_Method1(void, remove, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__remove__C5_std_string_R1, "Remove named operation from OperationQueue. ", ""); I_Method0(void, removeAllOperations, + Properties::NON_VIRTUAL, __void__removeAllOperations, "Remove all operations from OperationQueue. ", ""); I_Method0(void, runOperations, + Properties::NON_VIRTUAL, __void__runOperations, "Run the operations. ", ""); I_Method0(osg::GraphicsContext::OperationQueue &, getOperationsQueue, + Properties::NON_VIRTUAL, __OperationQueue_R1__getOperationsQueue, "Get the operations queue, not you must use the OperationsMutex when accessing the queue. ", ""); I_Method0(OpenThreads::Mutex *, getOperationsMutex, + Properties::NON_VIRTUAL, __OpenThreads_Mutex_P1__getOperationsMutex, "Get the operations queue mutex. ", ""); I_Method0(osg::Block *, getOperationsBlock, + Properties::NON_VIRTUAL, __osg_Block_P1__getOperationsBlock, "Get the operations queue block used to mark an empty queue, if you end items into the empty queu you must release this block. ", ""); I_Method0(osg::Operation *, getCurrentOperation, + Properties::NON_VIRTUAL, __Operation_P1__getCurrentOperation, "Get the current operations that is being run. ", ""); I_Method0(const osg::GraphicsContext::Traits *, getTraits, + Properties::NON_VIRTUAL, __C5_Traits_P1__getTraits, "Get the traits of the GraphicsContext. ", ""); I_Method0(bool, valid, + Properties::PURE_VIRTUAL, __bool__valid, "Return whether a valid and usable GraphicsContext has been created. ", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__State_P1, "Set the State object which tracks the current OpenGL state for this graphics context. ", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __State_P1__getState, "Get the State object which tracks the current OpenGL state for this graphics context. ", ""); I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, __C5_State_P1__getState, "Get the const State object which tracks the current OpenGL state for this graphics context. ", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearColor__C5_Vec4_R1, "Sets the clear color. ", ""); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getClearColor, "Returns the clear color. ", ""); I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, __void__setClearMask__GLbitfield, "Set the clear mask used in glClear(. ", ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, __GLbitfield__getClearMask, "Get the clear mask. ", ""); I_Method0(void, clear, + Properties::VIRTUAL, __void__clear, "Do an OpenGL clear of the full graphics context/window. ", "Note, must only be called from a thread with this context current. "); I_Method0(bool, realize, + Properties::NON_VIRTUAL, __bool__realize, "Realise the GraphicsContext. ", ""); I_MethodWithDefaults1(void, close, IN, bool, callCloseImplementation, true, + Properties::NON_VIRTUAL, __void__close__bool, "close the graphics context. ", "close(bool) stops any associated graphics threads, releases the contextID for the GraphicsContext then optional calls closeImplementation() to do the actual deletion of the graphics. This call is made optional as there are times when the graphics context has already been deleted externally and only the OSG side of the its data need to be closed down. "); I_Method0(void, swapBuffers, + Properties::NON_VIRTUAL, __void__swapBuffers, "swap the front and back buffers. ", ""); I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, __bool__isRealized, "Return true if the graphics context has been realised and is ready to use. ", ""); I_Method0(bool, makeCurrent, + Properties::NON_VIRTUAL, __bool__makeCurrent, "Make this graphics context current. ", "Implementated by calling makeCurrentImplementation(). Returns true on success. "); I_Method1(bool, makeContextCurrent, IN, osg::GraphicsContext *, readContext, + Properties::NON_VIRTUAL, __bool__makeContextCurrent__GraphicsContext_P1, "Make this graphics context current with specified read context. ", "Implementated by calling makeContextCurrentImplementation(). Returns true on success. "); I_Method0(bool, releaseContext, + Properties::NON_VIRTUAL, __bool__releaseContext, "Release the graphics context. ", "Returns true on success. "); I_Method0(bool, isCurrent, + Properties::NON_VIRTUAL, __bool__isCurrent, "Return true if the current thread has this OpenGL graphics context. ", ""); I_Method1(void, bindPBufferToTexture, IN, GLenum, buffer, + Properties::NON_VIRTUAL, __void__bindPBufferToTexture__GLenum, "Bind the graphics context to associated texture. ", ""); I_Method0(void, createGraphicsThread, + Properties::NON_VIRTUAL, __void__createGraphicsThread, "Create a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ", ""); I_Method1(void, setGraphicsThread, IN, osg::OperationsThread *, gt, + Properties::NON_VIRTUAL, __void__setGraphicsThread__OperationsThread_P1, "Assign a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ", ""); I_Method0(osg::OperationsThread *, getGraphicsThread, + Properties::NON_VIRTUAL, __OperationsThread_P1__getGraphicsThread, "Get the graphics thread assigned the graphics context. ", ""); I_Method0(const osg::OperationsThread *, getGraphicsThread, + Properties::NON_VIRTUAL, __C5_OperationsThread_P1__getGraphicsThread, "Get the const graphics thread assigned the graphics context. ", ""); I_Method0(bool, realizeImplementation, + Properties::PURE_VIRTUAL, __bool__realizeImplementation, "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", ""); I_Method0(bool, isRealizedImplementation, + Properties::PURE_VIRTUAL, __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, + Properties::PURE_VIRTUAL, __void__closeImplementation, "Close the graphics context implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method0(bool, makeCurrentImplementation, + Properties::PURE_VIRTUAL, __bool__makeCurrentImplementation, "Make this graphics context current implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + Properties::PURE_VIRTUAL, __bool__makeContextCurrentImplementation__GraphicsContext_P1, "Make this graphics context current with specified read context implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method0(bool, releaseContextImplementation, + Properties::PURE_VIRTUAL, __bool__releaseContextImplementation, "Release the graphics context implementation. ", ""); I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::PURE_VIRTUAL, __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, + Properties::PURE_VIRTUAL, __void__swapBuffersImplementation, "Swap the front and back buffers implementation. ", "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); I_Method4(void, resized, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__resized__int__int__int__int, "resized method should be called when the underlying window has been resized and the GraphicsWindow and associated Cameras must be updated to keep in sync with the new size. ", ""); I_Method1(void, setResizedCallback, IN, osg::GraphicsContext::ResizedCallback *, rc, + Properties::NON_VIRTUAL, __void__setResizedCallback__ResizedCallback_P1, "Set the resized callback which overrides the GraphicsConext::realizedImplementation(), allow developers to provide custom behavior in response to a window being resized. ", ""); I_Method0(osg::GraphicsContext::ResizedCallback *, getResizedCallback, + Properties::NON_VIRTUAL, __ResizedCallback_P1__getResizedCallback, "Get the resized callback which overrides the GraphicsConext::realizedImplementation(). ", ""); I_Method0(const osg::GraphicsContext::ResizedCallback *, getResizedCallback, + Properties::NON_VIRTUAL, __C5_ResizedCallback_P1__getResizedCallback, "Get the const resized callback which overrides the GraphicsConext::realizedImplementation(). ", ""); I_Method4(void, resizedImplementation, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::VIRTUAL, __void__resizedImplementation__int__int__int__int, "resized implementation, by default resizes the viewports and aspect ratios the cameras associated with the graphics Window. ", ""); I_Method0(osg::GraphicsContext::Cameras &, getCameras, + Properties::NON_VIRTUAL, __Cameras_R1__getCameras, "Get the the list of cameras associated with this graphics context. ", ""); I_Method0(const osg::GraphicsContext::Cameras &, getCameras, + Properties::NON_VIRTUAL, __C5_Cameras_R1__getCameras, "Get the the const list of cameras associated with this graphics context. ", ""); @@ -284,6 +331,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::ResizedCallback) "", ""); I_Method5(void, resizedImplementation, IN, osg::GraphicsContext *, gc, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::PURE_VIRTUAL, __void__resizedImplementation__GraphicsContext_P1__int__int__int__int, "", ""); @@ -294,6 +342,7 @@ BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier) "", ""); I_Constructor1(IN, unsigned int, in_screenNum, + Properties::NON_EXPLICIT, ____ScreenIdentifier__unsigned_int, "", ""); @@ -302,6 +351,7 @@ BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier) "", ""); I_Method0(std::string, displayName, + Properties::NON_VIRTUAL, __std_string__displayName, "", ""); @@ -310,7 +360,7 @@ BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier) I_PublicMemberProperty(unsigned int, screenNum); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::Traits) I_BaseType(osg::Referenced); I_BaseType(osg::GraphicsContext::ScreenIdentifier); I_Constructor0(____Traits, @@ -349,22 +399,27 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::WindowingSystemInterface) "", ""); I_MethodWithDefaults1(unsigned int, getNumScreens, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, osg::GraphicsContext::ScreenIdentifier(), + Properties::PURE_VIRTUAL, __unsigned_int__getNumScreens__C5_ScreenIdentifier_R1, "", ""); I_Method3(void, getScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int &, width, IN, unsigned int &, height, + Properties::PURE_VIRTUAL, __void__getScreenResolution__C5_ScreenIdentifier_R1__unsigned_int_R1__unsigned_int_R1, "", ""); I_Method3(bool, setScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, unsigned, int, IN, unsigned, int, + Properties::VIRTUAL, __bool__setScreenResolution__C5_ScreenIdentifier_R1__unsigned__unsigned, "", ""); I_Method2(bool, setScreenRefreshRate, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, double, x, + Properties::VIRTUAL, __bool__setScreenRefreshRate__C5_ScreenIdentifier_R1__double, "", ""); I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + Properties::PURE_VIRTUAL, __GraphicsContext_P1__createGraphicsContext__Traits_P1, "", ""); @@ -375,26 +430,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Operation >) "", ""); I_Constructor1(IN, osg::Operation *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Operation > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Operation *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Operation *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Operation > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/GraphicsThread.cpp b/src/osgWrappers/osg/GraphicsThread.cpp index f73a2df13..e7aa3da30 100644 --- a/src/osgWrappers/osg/GraphicsThread.cpp +++ b/src/osgWrappers/osg/GraphicsThread.cpp @@ -27,37 +27,42 @@ BEGIN_ENUM_REFLECTOR(osg::BarrierOperation::PreBlockOp) I_EnumLabel(osg::BarrierOperation::GL_FINISH); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::BarrierOperation) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BarrierOperation) I_BaseType(osg::Operation); I_ConstructorWithDefaults2(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION, ____BarrierOperation__int__PreBlockOp, "", ""); I_Method0(void, release, + Properties::VIRTUAL, __void__release, "if this operation is a barrier then release it. ", ""); I_PublicMemberProperty(osg::BarrierOperation::PreBlockOp, _preBlockOp); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Block) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Block) I_VirtualBaseType(osg::Referenced); I_Constructor0(____Block, "", ""); I_Method0(void, block, + Properties::NON_VIRTUAL, __void__block, "", ""); I_Method0(void, release, + Properties::NON_VIRTUAL, __void__release, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method1(void, set, IN, bool, doRelease, + Properties::NON_VIRTUAL, __void__set__bool, "", ""); @@ -70,22 +75,27 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Operation) "", ""); I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setName__C5_std_string_R1, "Set the human readable name of the operation. ", ""); I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getName, "Get the human readable name of the operation. ", ""); I_Method1(void, setKeep, IN, bool, keep, + Properties::NON_VIRTUAL, __void__setKeep__bool, "Set whether the operation should be kept once its been applied. ", ""); I_Method0(bool, getKeep, + Properties::NON_VIRTUAL, __bool__getKeep, "Get whether the operation should be kept once its been applied. ", ""); I_Method0(void, release, + Properties::VIRTUAL, __void__release, "if this operation is a barrier then release it. ", ""); @@ -99,56 +109,68 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Operation) I_PublicMemberProperty(bool, _keep); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::OperationsThread) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::OperationsThread) I_BaseType(osg::Referenced); I_Constructor0(____OperationsThread, "", ""); I_Method1(void, setParent, IN, osg::Object *, parent, + Properties::NON_VIRTUAL, __void__setParent__Object_P1, "", ""); I_Method0(osg::Object *, getParent, + Properties::NON_VIRTUAL, __Object_P1__getParent, "", ""); I_Method0(const osg::Object *, getParent, + Properties::NON_VIRTUAL, __C5_Object_P1__getParent, "", ""); I_MethodWithDefaults2(void, add, IN, osg::Operation *, operation, , IN, bool, waitForCompletion, false, + Properties::NON_VIRTUAL, __void__add__Operation_P1__bool, "Add operation to end of OperationQueue, this will be executed by the graphics thread once this operation gets to the head of the queue. ", ""); I_Method1(void, remove, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, __void__remove__Operation_P1, "Remove operation from OperationQueue. ", ""); I_Method1(void, remove, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__remove__C5_std_string_R1, "Remove named operation from OperationQueue. ", ""); I_Method0(void, removeAllOperations, + Properties::NON_VIRTUAL, __void__removeAllOperations, "Remove all operations from OperationQueue. ", ""); I_Method0(osg::ref_ptr< osg::Operation >, getCurrentOperation, + Properties::NON_VIRTUAL, __osg_ref_ptrT1_Operation___getCurrentOperation, "Get the operation currently being run. ", ""); I_Method0(void, run, + Properties::VIRTUAL, __void__run, "Run does the graphics thread run loop. ", ""); I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, __void__setDone__bool, "", ""); I_Method0(bool, getDone, + Properties::NON_VIRTUAL, __bool__getDone, "", ""); I_Method0(int, cancel, + Properties::VIRTUAL, __int__cancel, "Cancel this graphics thread. ", ""); @@ -163,19 +185,20 @@ BEGIN_OBJECT_REFLECTOR(osg::OperationsThread) __void__setParent__Object_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) I_BaseType(osg::Operation); I_BaseType(osg::Block); I_Constructor0(____ReleaseContext_Block_MakeCurrentOperation, "", ""); I_Method0(void, release, + Properties::VIRTUAL, __void__release, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::SwapBuffersOperation) I_BaseType(osg::Operation); I_Constructor0(____SwapBuffersOperation, "", diff --git a/src/osgWrappers/osg/Group.cpp b/src/osgWrappers/osg/Group.cpp index c29aef42a..daac71258 100644 --- a/src/osgWrappers/osg/Group.cpp +++ b/src/osgWrappers/osg/Group.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Group) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Group) I_BaseType(osg::Node); I_Constructor0(____Group, "", @@ -36,102 +36,127 @@ BEGIN_OBJECT_REFLECTOR(osg::Group) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osg::Group *, asGroup, + Properties::VIRTUAL, __Group_P1__asGroup, "convert 'this' into a Group pointer if Node is a Group, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Group *, asGroup, + Properties::VIRTUAL, __C5_Group_P1__asGroup, "convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__insertChild__unsigned_int__Node_P1, "Insert Node to Group at specific location. ", "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::NON_VIRTUAL, __bool__removeChild__Node_P1, "Remove Node from Group. ", "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); I_MethodWithDefaults2(bool, removeChild, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + Properties::NON_VIRTUAL, __bool__removeChild__unsigned_int__unsigned_int, "Remove Node from Group. ", "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, __bool__removeChildren__unsigned_int__unsigned_int, "Remove children from Group. ", "Note, must be override by subclasses of Group which add per child attributes. "); I_Method2(bool, replaceChild, IN, osg::Node *, origChild, IN, osg::Node *, newChild, + Properties::VIRTUAL, __bool__replaceChild__Node_P1__Node_P1, "Replace specified Node with another Node. ", "Equivalent to setChild(getChildIndex(orignChild),node) See docs for setChild for futher details on implementation."); I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildren, "Return the number of chilren nodes. ", ""); I_Method2(bool, setChild, IN, unsigned int, i, IN, osg::Node *, node, + Properties::VIRTUAL, __bool__setChild__unsigned_int__Node_P1, "Set child node at position i. ", "Return true if set correctly, false on failure (if node==NULL || i is out of range). When Set can be successful applied, the algorithm is : decrement the reference count origNode and increment the reference count of newNode, and dirty the bounding sphere to force it to recompute on next getBound() and return true. If origNode is not found then return false and do not add newNode. If newNode is NULL then return false and do not remove origNode. Also returns false if newChild is a Scene node."); I_Method1(osg::Node *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Node_P1__getChild__unsigned_int, "Return child node at position i. ", ""); I_Method1(const osg::Node *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Node_P1__getChild__unsigned_int, "Return child node at position i. ", ""); I_Method1(bool, containsNode, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, __bool__containsNode__C5_Node_P1, "Return true if node is contained within Group. ", ""); I_Method1(unsigned int, getChildIndex, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, __unsigned_int__getChildIndex__C5_Node_P1, "Get the index number of child, return a value between 0 and _children.size()-1 if found, if not found then return _children.size(). ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); @@ -154,26 +179,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Node >) "", ""); I_Constructor1(IN, osg::Node *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Node > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Node *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Node *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Node > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/Image.cpp b/src/osgWrappers/osg/Image.cpp index ebf2c5fce..14ef02a36 100644 --- a/src/osgWrappers/osg/Image.cpp +++ b/src/osgWrappers/osg/Image.cpp @@ -31,7 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::Image::AllocationMode) I_EnumLabel(osg::Image::USE_MALLOC_FREE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Image) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Image) I_BaseType(osg::Object); I_Constructor0(____Image, "", @@ -41,222 +41,277 @@ BEGIN_OBJECT_REFLECTOR(osg::Image) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(int, compare, IN, const osg::Image &, rhs, + Properties::VIRTUAL, __int__compare__C5_Image_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setFileName, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __void__setFileName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFileName, "", ""); I_Method1(void, setAllocationMode, IN, osg::Image::AllocationMode, mode, + Properties::NON_VIRTUAL, __void__setAllocationMode__AllocationMode, "Set the method used for deleting data once it goes out of scope. ", ""); I_Method0(osg::Image::AllocationMode, getAllocationMode, + Properties::NON_VIRTUAL, __AllocationMode__getAllocationMode, "Get the method used for deleting data once it goes out of scope. ", ""); I_MethodWithDefaults6(void, allocateImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, int, packing, 1, + Properties::NON_VIRTUAL, __void__allocateImage__int__int__int__GLenum__GLenum__int, "Allocate a pixel block of specified size and type. ", ""); I_MethodWithDefaults9(void, setImage, IN, int, s, , IN, int, t, , IN, int, r, , IN, GLint, internalTextureformat, , IN, GLenum, pixelFormat, , IN, GLenum, type, , IN, unsigned char *, data, , IN, osg::Image::AllocationMode, mode, , IN, int, packing, 1, + Properties::NON_VIRTUAL, __void__setImage__int__int__int__GLint__GLenum__GLenum__unsigned_char_P1__AllocationMode__int, "Set the image dimensions, format and data. ", ""); I_Method6(void, readPixels, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, GLenum, pixelFormat, IN, GLenum, type, + Properties::NON_VIRTUAL, __void__readPixels__int__int__int__int__GLenum__GLenum, "Read pixels from current frame buffer at specified position and size, using glReadPixels. ", "Create memory for storage if required, reuse existing pixel coords if possible."); I_MethodWithDefaults3(void, readImageFromCurrentTexture, IN, unsigned int, contextID, , IN, bool, copyMipMapsIfAvailable, , IN, GLenum, type, GL_UNSIGNED_BYTE, + Properties::NON_VIRTUAL, __void__readImageFromCurrentTexture__unsigned_int__bool__GLenum, "Read the contents of the current bound texture, handling compressed pixelFormats if present. ", "Create memory for storage if required, reuse existing pixel coords if possible."); I_Method3(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, + Properties::NON_VIRTUAL, __void__scaleImage__int__int__int, "Scale image to specified size. ", ""); I_Method4(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, IN, GLenum, newDataType, + Properties::NON_VIRTUAL, __void__scaleImage__int__int__int__GLenum, "Scale image to specified size and with specified data type. ", ""); I_Method4(void, copySubImage, IN, int, s_offset, IN, int, t_offset, IN, int, r_offset, IN, osg::Image *, source, + Properties::NON_VIRTUAL, __void__copySubImage__int__int__int__osg_Image_P1, "Copy a source Image into a subpart of this Image at specified position. ", "Typically used to copy to an already allocated image, such as creating a 3D image from a stack 2D images. If this Image is empty then image data is created to accomodate the source image in its offset position. If source is NULL then no operation happens, this Image is left unchanged."); I_Method0(int, s, + Properties::NON_VIRTUAL, __int__s, "Width of image. ", ""); I_Method0(int, t, + Properties::NON_VIRTUAL, __int__t, "Height of image. ", ""); I_Method0(int, r, + Properties::NON_VIRTUAL, __int__r, "Depth of image. ", ""); I_Method1(void, setInternalTextureFormat, IN, GLint, internalFormat, + Properties::NON_VIRTUAL, __void__setInternalTextureFormat__GLint, "", ""); I_Method0(GLint, getInternalTextureFormat, + Properties::NON_VIRTUAL, __GLint__getInternalTextureFormat, "", ""); I_Method1(void, setPixelFormat, IN, GLenum, pixelFormat, + Properties::NON_VIRTUAL, __void__setPixelFormat__GLenum, "", ""); I_Method0(GLenum, getPixelFormat, + Properties::NON_VIRTUAL, __GLenum__getPixelFormat, "", ""); I_Method1(void, setDataType, IN, GLenum, dataType, + Properties::NON_VIRTUAL, __void__setDataType__GLenum, "", ""); I_Method0(GLenum, getDataType, + Properties::NON_VIRTUAL, __GLenum__getDataType, "", ""); I_Method1(void, setPacking, IN, unsigned int, packing, + Properties::NON_VIRTUAL, __void__setPacking__unsigned_int, "", ""); I_Method0(unsigned int, getPacking, + Properties::NON_VIRTUAL, __unsigned_int__getPacking, "", ""); I_Method0(unsigned int, getPixelSizeInBits, + Properties::NON_VIRTUAL, __unsigned_int__getPixelSizeInBits, "Return the number of bits required for each pixel. ", ""); I_Method0(unsigned int, getRowSizeInBytes, + Properties::NON_VIRTUAL, __unsigned_int__getRowSizeInBytes, "Return the number of bytes each row of pixels occupies once it has been packed. ", ""); I_Method0(unsigned int, getImageSizeInBytes, + Properties::NON_VIRTUAL, __unsigned_int__getImageSizeInBytes, "Return the number of bytes each image (_s*_t) of pixels occupies. ", ""); I_Method0(unsigned int, getTotalSizeInBytes, + Properties::NON_VIRTUAL, __unsigned_int__getTotalSizeInBytes, "Return the number of bytes the whole row/image/volume of pixels occupies. ", ""); I_Method0(unsigned int, getTotalSizeInBytesIncludingMipmaps, + Properties::NON_VIRTUAL, __unsigned_int__getTotalSizeInBytesIncludingMipmaps, "Return the number of bytes the whole row/image/volume of pixels occupies, including all mip maps if included. ", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "Return true if the Image represent a valid and usable imagery. ", ""); I_Method0(unsigned char *, data, + Properties::NON_VIRTUAL, __unsigned_char_P1__data, "Raw image data. ", ""); I_Method0(const unsigned char *, data, + Properties::NON_VIRTUAL, __C5_unsigned_char_P1__data, "Raw const image data. ", ""); I_MethodWithDefaults3(unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0, + Properties::NON_VIRTUAL, __unsigned_char_P1__data__int__int__int, "", ""); I_MethodWithDefaults3(const unsigned char *, data, IN, int, column, , IN, int, row, 0, IN, int, image, 0, + Properties::NON_VIRTUAL, __C5_unsigned_char_P1__data__int__int__int, "", ""); I_Method0(void, flipHorizontal, + Properties::NON_VIRTUAL, __void__flipHorizontal, "Flip the image horizontally. ", ""); I_Method0(void, flipVertical, + Properties::NON_VIRTUAL, __void__flipVertical, "Flip the image vertically. ", ""); I_Method1(void, ensureValidSizeForTexturing, IN, GLint, maxTextureSize, + Properties::NON_VIRTUAL, __void__ensureValidSizeForTexturing__GLint, "Ensure image dimensions are a power of two. ", "Mipmapped textures require the image dimensions to be power of two and are within the maxiumum texture size for the host machine."); I_Method0(void, dirty, + Properties::NON_VIRTUAL, __void__dirty, "Dirty the image, which increments the modified count, to force osg::Texture to reload the image. ", ""); I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, __void__setModifiedCount__unsigned_int, "Set the modified count value. ", "Used by osg::Texture when using texture subloading. "); I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, __unsigned_int__getModifiedCount, "Get modified count value. ", "Used by osg::Texture when using texture subloading. "); I_Method0(bool, isMipmap, + Properties::NON_VIRTUAL, __bool__isMipmap, "", ""); I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumMipmapLevels, "", ""); I_Method1(void, setMipmapLevels, IN, const osg::Image::MipmapDataType &, mipmapDataVector, + Properties::NON_VIRTUAL, __void__setMipmapLevels__C5_MipmapDataType_R1, "Send offsets into data. ", "It is assumed that first mipmap offset (index 0) is 0. "); I_Method0(const osg::Image::MipmapDataType &, getMipmapLevels, + Properties::NON_VIRTUAL, __C5_MipmapDataType_R1__getMipmapLevels, "", ""); I_Method1(unsigned int, getMipmapOffset, IN, unsigned int, mipmapLevel, + Properties::NON_VIRTUAL, __unsigned_int__getMipmapOffset__unsigned_int, "", ""); I_Method1(unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel, + Properties::NON_VIRTUAL, __unsigned_char_P1__getMipmapData__unsigned_int, "", ""); I_Method1(const unsigned char *, getMipmapData, IN, unsigned int, mipmapLevel, + Properties::NON_VIRTUAL, __C5_unsigned_char_P1__getMipmapData__unsigned_int, "", ""); I_Method0(bool, isImageTranslucent, + Properties::NON_VIRTUAL, __bool__isImageTranslucent, "Return true if this image is translucent - i.e. ", "it has alpha values that are less 1.0 (when normalized). "); I_Method1(void, setPixelBufferObject, IN, osg::PixelBufferObject *, buffer, + Properties::NON_VIRTUAL, __void__setPixelBufferObject__PixelBufferObject_P1, "Set the optional PixelBufferObject used to map the image memory efficiently to graphics memory. ", ""); I_Method0(osg::PixelBufferObject *, getPixelBufferObject, + Properties::NON_VIRTUAL, __PixelBufferObject_P1__getPixelBufferObject, "Get the PixelBufferObject. ", ""); I_Method0(const osg::PixelBufferObject *, getPixelBufferObject, + Properties::NON_VIRTUAL, __C5_PixelBufferObject_P1__getPixelBufferObject, "Get the const PixelBufferObject. ", ""); diff --git a/src/osgWrappers/osg/ImageStream.cpp b/src/osgWrappers/osg/ImageStream.cpp index 877c3ee50..253b13711 100644 --- a/src/osgWrappers/osg/ImageStream.cpp +++ b/src/osgWrappers/osg/ImageStream.cpp @@ -35,7 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::ImageStream::LoopingMode) I_EnumLabel(osg::ImageStream::LOOPING); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ImageStream) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ImageStream) I_BaseType(osg::Image); I_Constructor0(____ImageStream, "", @@ -45,74 +45,92 @@ BEGIN_OBJECT_REFLECTOR(osg::ImageStream) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(int, compare, IN, const osg::Image &, rhs, + Properties::VIRTUAL, __int__compare__C5_Image_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(void, play, + Properties::VIRTUAL, __void__play, "", ""); I_Method0(void, pause, + Properties::VIRTUAL, __void__pause, "", ""); I_Method0(void, rewind, + Properties::VIRTUAL, __void__rewind, "", ""); I_MethodWithDefaults1(void, quit, IN, bool, x, true, + Properties::VIRTUAL, __void__quit__bool, "", ""); I_Method0(osg::ImageStream::StreamStatus, getStatus, + Properties::NON_VIRTUAL, __StreamStatus__getStatus, "", ""); I_Method1(void, setLoopingMode, IN, osg::ImageStream::LoopingMode, mode, + Properties::NON_VIRTUAL, __void__setLoopingMode__LoopingMode, "", ""); I_Method0(osg::ImageStream::LoopingMode, getLoopingMode, + Properties::NON_VIRTUAL, __LoopingMode__getLoopingMode, "", ""); I_Method1(void, setReferenceTime, IN, double, x, + Properties::VIRTUAL, __void__setReferenceTime__double, "", ""); I_Method0(double, getReferenceTime, + Properties::VIRTUAL, __double__getReferenceTime, "", ""); I_Method1(void, setTimeMultiplier, IN, double, x, + Properties::VIRTUAL, __void__setTimeMultiplier__double, "", ""); I_Method0(double, getTimeMultiplier, + Properties::VIRTUAL, __double__getTimeMultiplier, "", ""); I_Method0(void, update, + Properties::VIRTUAL, __void__update, "", ""); diff --git a/src/osgWrappers/osg/LOD.cpp b/src/osgWrappers/osg/LOD.cpp index a4872c027..d491a2d7b 100644 --- a/src/osgWrappers/osg/LOD.cpp +++ b/src/osgWrappers/osg/LOD.cpp @@ -40,7 +40,7 @@ BEGIN_ENUM_REFLECTOR(osg::LOD::RangeMode) I_EnumLabel(osg::LOD::PIXEL_SIZE_ON_SCREEN); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::LOD) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LOD) I_BaseType(osg::Group); I_Constructor0(____LOD, "", @@ -50,102 +50,127 @@ BEGIN_OBJECT_REFLECTOR(osg::LOD) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + Properties::VIRTUAL, __bool__addChild__Node_P1__float__float, "", ""); I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + Properties::VIRTUAL, __bool__removeChildren__unsigned_int__unsigned_int, "Remove children from Group. ", "Note, must be override by subclasses of Group which add per child attributes. "); I_Method1(void, setCenterMode, IN, osg::LOD::CenterMode, mode, + Properties::NON_VIRTUAL, __void__setCenterMode__CenterMode, "Set how the center of object should be determined when computing which child is active. ", ""); I_Method0(osg::LOD::CenterMode, getCenterMode, + Properties::NON_VIRTUAL, __CenterMode__getCenterMode, "Get how the center of object should be determined when computing which child is active. ", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "Sets the object-space point which defines the center of the osg::LOD. ", "center is affected by any transforms in the hierarchy above the osg::LOD. "); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "return the LOD center point. ", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "Set the object-space reference radius of the volume enclosed by the LOD. ", "Used to detmine the bounding sphere of the LOD in the absense of any children. "); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "Get the object-space radius of the volume enclosed by the LOD. ", ""); I_Method1(void, setRangeMode, IN, osg::LOD::RangeMode, mode, + Properties::NON_VIRTUAL, __void__setRangeMode__RangeMode, "Set how the range values should be intepreted when computing which child is active. ", ""); I_Method0(osg::LOD::RangeMode, getRangeMode, + Properties::NON_VIRTUAL, __RangeMode__getRangeMode, "Get how the range values should be intepreted when computing which child is active. ", ""); I_Method3(void, setRange, IN, unsigned int, childNo, IN, float, min, IN, float, max, + Properties::NON_VIRTUAL, __void__setRange__unsigned_int__float__float, "Sets the min and max visible ranges of range of specifiec child. ", "Values are floating point distance specified in local objects coordinates. "); I_Method1(float, getMinRange, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __float__getMinRange__unsigned_int, "returns the min visible range for specified child. ", ""); I_Method1(float, getMaxRange, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __float__getMaxRange__unsigned_int, "returns the max visible range for specified child. ", ""); I_Method0(unsigned int, getNumRanges, + Properties::NON_VIRTUAL, __unsigned_int__getNumRanges, "returns the number of ranges currently set. ", "An LOD which has been fully set up will have getNumChildren()==getNumRanges(). "); I_Method1(void, setRangeList, IN, const osg::LOD::RangeList &, rangeList, + Properties::NON_VIRTUAL, __void__setRangeList__C5_RangeList_R1, "set the list of MinMax ranges for each child. ", ""); I_Method0(const osg::LOD::RangeList &, getRangeList, + Properties::NON_VIRTUAL, __C5_RangeList_R1__getRangeList, "return the list of MinMax ranges for each child. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osg/Light.cpp b/src/osgWrappers/osg/Light.cpp index 2133f56a7..1fae263df 100644 --- a/src/osgWrappers/osg/Light.cpp +++ b/src/osgWrappers/osg/Light.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Light) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Light) I_BaseType(osg::StateAttribute); I_Constructor0(____Light, "", @@ -36,134 +36,167 @@ BEGIN_OBJECT_REFLECTOR(osg::Light) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(unsigned int, getMember, + Properties::VIRTUAL, __unsigned_int__getMember, "Return the member identifier within the attribute's class type. ", "Used for light number/clip plane number etc. "); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setLightNum, IN, int, num, + Properties::NON_VIRTUAL, __void__setLightNum__int, "Set which OpenGL light to operate on. ", ""); I_Method0(int, getLightNum, + Properties::NON_VIRTUAL, __int__getLightNum, "Get which OpenGL light this osg::Light operates on. ", ""); I_Method1(void, setAmbient, IN, const osg::Vec4 &, ambient, + Properties::NON_VIRTUAL, __void__setAmbient__C5_Vec4_R1, "Set the ambient component of the light. ", ""); I_Method0(const osg::Vec4 &, getAmbient, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getAmbient, "Get the ambient component of the light. ", ""); I_Method1(void, setDiffuse, IN, const osg::Vec4 &, diffuse, + Properties::NON_VIRTUAL, __void__setDiffuse__C5_Vec4_R1, "Set the diffuse component of the light. ", ""); I_Method0(const osg::Vec4 &, getDiffuse, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getDiffuse, "Get the diffuse component of the light. ", ""); I_Method1(void, setSpecular, IN, const osg::Vec4 &, specular, + Properties::NON_VIRTUAL, __void__setSpecular__C5_Vec4_R1, "Set the specular component of the light. ", ""); I_Method0(const osg::Vec4 &, getSpecular, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getSpecular, "Get the specular component of the light. ", ""); I_Method1(void, setPosition, IN, const osg::Vec4 &, position, + Properties::NON_VIRTUAL, __void__setPosition__C5_Vec4_R1, "Set the position of the light. ", ""); I_Method0(const osg::Vec4 &, getPosition, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getPosition, "Get the position of the light. ", ""); I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, __void__setDirection__C5_Vec3_R1, "Set the direction of the light. ", ""); I_Method0(const osg::Vec3 &, getDirection, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getDirection, "Get the direction of the light. ", ""); I_Method1(void, setConstantAttenuation, IN, float, constant_attenuation, + Properties::NON_VIRTUAL, __void__setConstantAttenuation__float, "Set the constant attenuation of the light. ", ""); I_Method0(float, getConstantAttenuation, + Properties::NON_VIRTUAL, __float__getConstantAttenuation, "Get the constant attenuation of the light. ", ""); I_Method1(void, setLinearAttenuation, IN, float, linear_attenuation, + Properties::NON_VIRTUAL, __void__setLinearAttenuation__float, "Set the linear attenuation of the light. ", ""); I_Method0(float, getLinearAttenuation, + Properties::NON_VIRTUAL, __float__getLinearAttenuation, "Get the linear attenuation of the light. ", ""); I_Method1(void, setQuadraticAttenuation, IN, float, quadratic_attenuation, + Properties::NON_VIRTUAL, __void__setQuadraticAttenuation__float, "Set the quadratic attenuation of the light. ", ""); I_Method0(float, getQuadraticAttenuation, + Properties::NON_VIRTUAL, __float__getQuadraticAttenuation, "Get the quadratic attenuation of the light. ", ""); I_Method1(void, setSpotExponent, IN, float, spot_exponent, + Properties::NON_VIRTUAL, __void__setSpotExponent__float, "Set the spot exponent of the light. ", ""); I_Method0(float, getSpotExponent, + Properties::NON_VIRTUAL, __float__getSpotExponent, "Get the spot exponent of the light. ", ""); I_Method1(void, setSpotCutoff, IN, float, spot_cutoff, + Properties::NON_VIRTUAL, __void__setSpotCutoff__float, "Set the spot cutoff of the light. ", ""); I_Method0(float, getSpotCutoff, + Properties::NON_VIRTUAL, __float__getSpotCutoff, "Get the spot cutoff of the light. ", ""); I_Method0(void, captureLightState, + Properties::NON_VIRTUAL, __void__captureLightState, "Capture the lighting settings of the current OpenGL state and store them in this object. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Apply the light's state to the OpenGL state machine. ", ""); diff --git a/src/osgWrappers/osg/LightModel.cpp b/src/osgWrappers/osg/LightModel.cpp index 11505cef8..a9660ea49 100644 --- a/src/osgWrappers/osg/LightModel.cpp +++ b/src/osgWrappers/osg/LightModel.cpp @@ -30,7 +30,7 @@ BEGIN_ENUM_REFLECTOR(osg::LightModel::ColorControl) I_EnumLabel(osg::LightModel::SINGLE_COLOR); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::LightModel) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LightModel) I_BaseType(osg::StateAttribute); I_Constructor0(____LightModel, "", @@ -40,66 +40,82 @@ BEGIN_OBJECT_REFLECTOR(osg::LightModel) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setAmbientIntensity, IN, const osg::Vec4 &, ambient, + Properties::NON_VIRTUAL, __void__setAmbientIntensity__C5_osg_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getAmbientIntensity, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getAmbientIntensity, "", ""); I_Method1(void, setColorControl, IN, osg::LightModel::ColorControl, cc, + Properties::NON_VIRTUAL, __void__setColorControl__ColorControl, "", ""); I_Method0(osg::LightModel::ColorControl, getColorControl, + Properties::NON_VIRTUAL, __ColorControl__getColorControl, "", ""); I_Method1(void, setLocalViewer, IN, bool, localViewer, + Properties::NON_VIRTUAL, __void__setLocalViewer__bool, "", ""); I_Method0(bool, getLocalViewer, + Properties::NON_VIRTUAL, __bool__getLocalViewer, "", ""); I_Method1(void, setTwoSided, IN, bool, twoSided, + Properties::NON_VIRTUAL, __void__setTwoSided__bool, "", ""); I_Method0(bool, getTwoSided, + Properties::NON_VIRTUAL, __bool__getTwoSided, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/LightSource.cpp b/src/osgWrappers/osg/LightSource.cpp index 434d62330..f449a7e6f 100644 --- a/src/osgWrappers/osg/LightSource.cpp +++ b/src/osgWrappers/osg/LightSource.cpp @@ -32,7 +32,7 @@ BEGIN_ENUM_REFLECTOR(osg::LightSource::ReferenceFrame) I_EnumLabel(osg::LightSource::ABSOLUTE_RF); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::LightSource) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LightSource) I_BaseType(osg::Group); I_Constructor0(____LightSource, "", @@ -42,62 +42,77 @@ BEGIN_OBJECT_REFLECTOR(osg::LightSource) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setReferenceFrame, IN, osg::LightSource::ReferenceFrame, rf, + Properties::NON_VIRTUAL, __void__setReferenceFrame__ReferenceFrame, "Set the light sources's ReferenceFrame, either to be relative to its parent reference frame, or relative to an absolute coordinate frame. ", "RELATIVE_RF is the default. Note: setting the ReferenceFrame to be ABSOLUTE_RF will also set the CullingActive flag on the light source, and hence all of its parents, to false, thereby disabling culling of it and all its parents. This is necessary to prevent inappropriate culling, but may impact cull times if the absolute light source is deep in the scene graph. It is therefore recommended to only use absolute light source at the top of the scene."); I_Method0(osg::LightSource::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, __ReferenceFrame__getReferenceFrame, "", ""); I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, __void__setLight__Light_P1, "Set the attached light. ", ""); I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, __Light_P1__getLight, "Get the attached light. ", ""); I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, __C5_Light_P1__getLight, "Get the const attached light. ", ""); I_Method2(void, setStateSetModes, IN, osg::StateSet &, x, IN, osg::StateAttribute::GLModeValue, x, + Properties::NON_VIRTUAL, __void__setStateSetModes__StateSet_R1__StateAttribute_GLModeValue, "Set the GLModes on StateSet associated with the LightSource. ", ""); I_MethodWithDefaults1(void, setLocalStateSetModes, IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, __void__setLocalStateSetModes__StateAttribute_GLModeValue, "Set up the local StateSet. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osg/LineSegment.cpp b/src/osgWrappers/osg/LineSegment.cpp index 868313ca7..8a680656a 100644 --- a/src/osgWrappers/osg/LineSegment.cpp +++ b/src/osgWrappers/osg/LineSegment.cpp @@ -24,12 +24,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::LineSegment) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LineSegment) I_BaseType(osg::Referenced); I_Constructor0(____LineSegment, "", ""); I_Constructor1(IN, const osg::LineSegment &, seg, + Properties::NON_EXPLICIT, ____LineSegment__C5_LineSegment_R1, "", ""); @@ -38,54 +39,67 @@ BEGIN_OBJECT_REFLECTOR(osg::LineSegment) "", ""); I_Method2(void, set, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__C5_Vec3_R1, "", ""); I_Method0(osg::Vec3 &, start, + Properties::NON_VIRTUAL, __Vec3_R1__start, "", ""); I_Method0(const osg::Vec3 &, start, + Properties::NON_VIRTUAL, __C5_Vec3_R1__start, "", ""); I_Method0(osg::Vec3 &, end, + Properties::NON_VIRTUAL, __Vec3_R1__end, "", ""); I_Method0(const osg::Vec3 &, end, + Properties::NON_VIRTUAL, __C5_Vec3_R1__end, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method1(bool, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__intersect__C5_BoundingBox_R1, "return true if segment intersects BoundingBox. ", ""); I_Method3(bool, intersect, IN, const osg::BoundingBox &, bb, IN, float &, r1, IN, float &, r2, + Properties::NON_VIRTUAL, __bool__intersect__C5_BoundingBox_R1__float_R1__float_R1, "return true if segment intersects BoundingBox and return the intersection ratios. ", ""); I_Method1(bool, intersect, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __bool__intersect__C5_BoundingSphere_R1, "return true if segment intersects BoundingSphere. ", ""); I_Method3(bool, intersect, IN, const osg::BoundingSphere &, bs, IN, float &, r1, IN, float &, r2, + Properties::NON_VIRTUAL, __bool__intersect__C5_BoundingSphere_R1__float_R1__float_R1, "return true if segment intersects BoundingSphere and return the intersection ratio. ", ""); I_Method4(bool, intersect, IN, const osg::Vec3 &, v1, IN, const osg::Vec3 &, v2, IN, const osg::Vec3 &, v3, IN, float &, r, + Properties::NON_VIRTUAL, __bool__intersect__C5_Vec3_R1__C5_Vec3_R1__C5_Vec3_R1__float_R1, "return true if segment intersects triangle and set ratio long segment. ", ""); I_Method2(void, mult, IN, const osg::LineSegment &, seg, IN, const osg::Matrix &, m, + Properties::NON_VIRTUAL, __void__mult__C5_LineSegment_R1__C5_Matrix_R1, "post multiply a segment by matrix. ", ""); I_Method2(void, mult, IN, const osg::Matrix &, m, IN, const osg::LineSegment &, seg, + Properties::NON_VIRTUAL, __void__mult__C5_Matrix_R1__C5_LineSegment_R1, "pre multiply a segment by matrix. ", ""); diff --git a/src/osgWrappers/osg/LineStipple.cpp b/src/osgWrappers/osg/LineStipple.cpp index d876cf6c9..7298bb614 100644 --- a/src/osgWrappers/osg/LineStipple.cpp +++ b/src/osgWrappers/osg/LineStipple.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::LineStipple) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LineStipple) I_BaseType(osg::StateAttribute); I_Constructor0(____LineStipple, "", @@ -34,54 +34,67 @@ BEGIN_OBJECT_REFLECTOR(osg::LineStipple) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setFactor, IN, GLint, factor, + Properties::NON_VIRTUAL, __void__setFactor__GLint, "", ""); I_Method0(GLint, getFactor, + Properties::NON_VIRTUAL, __GLint__getFactor, "", ""); I_Method1(void, setPattern, IN, GLushort, pattern, + Properties::NON_VIRTUAL, __void__setPattern__GLushort, "", ""); I_Method0(GLushort, getPattern, + Properties::NON_VIRTUAL, __GLushort__getPattern, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/LineWidth.cpp b/src/osgWrappers/osg/LineWidth.cpp index ceece15f3..5527a13d7 100644 --- a/src/osgWrappers/osg/LineWidth.cpp +++ b/src/osgWrappers/osg/LineWidth.cpp @@ -24,9 +24,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::LineWidth) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LineWidth) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, float, width, 1.0f, + Properties::NON_EXPLICIT, ____LineWidth__float, "", ""); @@ -35,42 +36,52 @@ BEGIN_OBJECT_REFLECTOR(osg::LineWidth) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, __void__setWidth__float, "", ""); I_Method0(float, getWidth, + Properties::NON_VIRTUAL, __float__getWidth, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/LogicOp.cpp b/src/osgWrappers/osg/LogicOp.cpp index 658fd0392..4b2ab8176 100644 --- a/src/osgWrappers/osg/LogicOp.cpp +++ b/src/osgWrappers/osg/LogicOp.cpp @@ -43,12 +43,13 @@ BEGIN_ENUM_REFLECTOR(osg::LogicOp::Opcode) I_EnumLabel(osg::LogicOp::OR_INVERTED); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::LogicOp) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::LogicOp) I_BaseType(osg::StateAttribute); I_Constructor0(____LogicOp, "", ""); I_Constructor1(IN, osg::LogicOp::Opcode, opcode, + Properties::NON_EXPLICIT, ____LogicOp__Opcode, "", ""); @@ -57,46 +58,57 @@ BEGIN_OBJECT_REFLECTOR(osg::LogicOp) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setOpcode, IN, osg::LogicOp::Opcode, opcode, + Properties::NON_VIRTUAL, __void__setOpcode__Opcode, "", ""); I_Method0(osg::LogicOp::Opcode, getOpcode, + Properties::NON_VIRTUAL, __Opcode__getOpcode, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/Material.cpp b/src/osgWrappers/osg/Material.cpp index 83209d89e..0a4e7f954 100644 --- a/src/osgWrappers/osg/Material.cpp +++ b/src/osgWrappers/osg/Material.cpp @@ -40,7 +40,7 @@ BEGIN_ENUM_REFLECTOR(osg::Material::ColorMode) I_EnumLabel(osg::Material::OFF); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Material) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Material) I_BaseType(osg::StateAttribute); I_Constructor0(____Material, "", @@ -50,114 +50,142 @@ BEGIN_OBJECT_REFLECTOR(osg::Material) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, setColorMode, IN, osg::Material::ColorMode, mode, + Properties::NON_VIRTUAL, __void__setColorMode__ColorMode, "", ""); I_Method0(osg::Material::ColorMode, getColorMode, + Properties::NON_VIRTUAL, __ColorMode__getColorMode, "", ""); I_Method2(void, setAmbient, IN, osg::Material::Face, face, IN, const osg::Vec4 &, ambient, + Properties::NON_VIRTUAL, __void__setAmbient__Face__C5_Vec4_R1, "", ""); I_Method1(const osg::Vec4 &, getAmbient, IN, osg::Material::Face, face, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getAmbient__Face, "", ""); I_Method0(bool, getAmbientFrontAndBack, + Properties::NON_VIRTUAL, __bool__getAmbientFrontAndBack, "", ""); I_Method2(void, setDiffuse, IN, osg::Material::Face, face, IN, const osg::Vec4 &, diffuse, + Properties::NON_VIRTUAL, __void__setDiffuse__Face__C5_Vec4_R1, "", ""); I_Method1(const osg::Vec4 &, getDiffuse, IN, osg::Material::Face, face, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getDiffuse__Face, "", ""); I_Method0(bool, getDiffuseFrontAndBack, + Properties::NON_VIRTUAL, __bool__getDiffuseFrontAndBack, "", ""); I_Method2(void, setSpecular, IN, osg::Material::Face, face, IN, const osg::Vec4 &, specular, + Properties::NON_VIRTUAL, __void__setSpecular__Face__C5_Vec4_R1, "Set specular value of specified face(s) of the material, valid specular[0. ", ".3] range is 0.0 to 1.0."); I_Method1(const osg::Vec4 &, getSpecular, IN, osg::Material::Face, face, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getSpecular__Face, "Get the specular value for specified face. ", ""); I_Method0(bool, getSpecularFrontAndBack, + Properties::NON_VIRTUAL, __bool__getSpecularFrontAndBack, "Return whether specular values are equal for front and back faces or not. ", ""); I_Method2(void, setEmission, IN, osg::Material::Face, face, IN, const osg::Vec4 &, emission, + Properties::NON_VIRTUAL, __void__setEmission__Face__C5_Vec4_R1, "Set emission value of specified face(s) of the material, valid emission[0. ", ".3] range is 0.0 to 1.0."); I_Method1(const osg::Vec4 &, getEmission, IN, osg::Material::Face, face, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getEmission__Face, "Get the emission value for specified face. ", ""); I_Method0(bool, getEmissionFrontAndBack, + Properties::NON_VIRTUAL, __bool__getEmissionFrontAndBack, "Return whether emission values are equal for front and back faces or not. ", ""); I_Method2(void, setShininess, IN, osg::Material::Face, face, IN, float, shininess, + Properties::NON_VIRTUAL, __void__setShininess__Face__float, "Set shininess of specified face(s) of the material. ", "valid shininess range is 0.0 to 128.0."); I_Method1(float, getShininess, IN, osg::Material::Face, face, + Properties::NON_VIRTUAL, __float__getShininess__Face, "Get the shininess value for specified face. ", ""); I_Method0(bool, getShininessFrontAndBack, + Properties::NON_VIRTUAL, __bool__getShininessFrontAndBack, "Return whether shininess values are equal for front and back faces or not. ", ""); I_Method2(void, setTransparency, IN, osg::Material::Face, face, IN, float, trans, + Properties::NON_VIRTUAL, __void__setTransparency__Face__float, "Set the alpha value of ambient, diffuse, specular and emission colors of specified face, to 1-transparency. ", "Valid transparency range is 0.0 to 1.0."); I_Method2(void, setAlpha, IN, osg::Material::Face, face, IN, float, alpha, + Properties::NON_VIRTUAL, __void__setAlpha__Face__float, "Set the alpha value of ambient, diffuse, specular and emission colors. ", "Valid transparency range is 0.0 to 1.0."); diff --git a/src/osgWrappers/osg/MatrixTransform.cpp b/src/osgWrappers/osg/MatrixTransform.cpp index e875048af..862da3135 100644 --- a/src/osgWrappers/osg/MatrixTransform.cpp +++ b/src/osgWrappers/osg/MatrixTransform.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::MatrixTransform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::MatrixTransform) I_BaseType(osg::Transform); I_Constructor0(____MatrixTransform, "", @@ -34,66 +34,82 @@ BEGIN_OBJECT_REFLECTOR(osg::MatrixTransform) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Constructor1(IN, const osg::Matrix &, matix, + Properties::NON_EXPLICIT, ____MatrixTransform__C5_Matrix_R1, "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, __MatrixTransform_P1__asMatrixTransform, "", ""); I_Method0(const osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, __C5_MatrixTransform_P1__asMatrixTransform, "", ""); I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__setMatrix__C5_Matrix_R1, "Set the transform's matrix. ", ""); I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __C5_Matrix_R1__getMatrix, "Get the matrix. ", ""); I_Method1(void, preMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__preMult__C5_Matrix_R1, "pre multiply the transform's matrix. ", ""); I_Method1(void, postMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__postMult__C5_Matrix_R1, "post multiply the transform's matrix. ", ""); I_Method0(const osg::Matrix &, getInverseMatrix, + Properties::NON_VIRTUAL, __C5_Matrix_R1__getInverseMatrix, "Get the inverse matrix. ", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "", ""); diff --git a/src/osgWrappers/osg/Matrixd.cpp b/src/osgWrappers/osg/Matrixd.cpp index 0f0f3bf2e..043a956ae 100644 --- a/src/osgWrappers/osg/Matrixd.cpp +++ b/src/osgWrappers/osg/Matrixd.cpp @@ -35,22 +35,27 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd) "", ""); I_Constructor1(IN, const osg::Matrixd &, mat, + Properties::NON_EXPLICIT, ____Matrixd__C5_Matrixd_R1, "", ""); I_Constructor1(IN, const osg::Matrixf &, mat, + Properties::NON_EXPLICIT, ____Matrixd__C5_Matrixf_R1, "", ""); I_Constructor1(IN, float const *const, ptr, + Properties::EXPLICIT, ____Matrixd__float_C5_P1C5, "", ""); I_Constructor1(IN, double const *const, ptr, + Properties::EXPLICIT, ____Matrixd__double_C5_P1C5, "", ""); I_Constructor1(IN, const osg::Quat &, quat, + Properties::EXPLICIT, ____Matrixd__C5_Quat_R1, "", ""); @@ -59,250 +64,312 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd) "", ""); I_Method1(int, compare, IN, const osg::Matrixd &, m, + Properties::NON_VIRTUAL, __int__compare__C5_Matrixd_R1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method1(void, set, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrixd_R1, "", ""); I_Method1(void, set, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrixf_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method1(void, set, IN, double const *const, ptr, + Properties::NON_VIRTUAL, __void__set__double_C5_P1C5, "", ""); I_Method16(void, set, IN, osg::Matrixd::value_type, a00, IN, osg::Matrixd::value_type, a01, IN, osg::Matrixd::value_type, a02, IN, osg::Matrixd::value_type, a03, IN, osg::Matrixd::value_type, a10, IN, osg::Matrixd::value_type, a11, IN, osg::Matrixd::value_type, a12, IN, osg::Matrixd::value_type, a13, IN, osg::Matrixd::value_type, a20, IN, osg::Matrixd::value_type, a21, IN, osg::Matrixd::value_type, a22, IN, osg::Matrixd::value_type, a23, IN, osg::Matrixd::value_type, a30, IN, osg::Matrixd::value_type, a31, IN, osg::Matrixd::value_type, a32, IN, osg::Matrixd::value_type, a33, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Matrixd::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Matrixd::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method0(bool, isIdentity, + Properties::NON_VIRTUAL, __bool__isIdentity, "", ""); I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, __void__makeIdentity, "", ""); I_Method1(void, makeScale, IN, const osg::Vec3f &, x, + Properties::NON_VIRTUAL, __void__makeScale__C5_Vec3f_R1, "", ""); I_Method1(void, makeScale, IN, const osg::Vec3d &, x, + Properties::NON_VIRTUAL, __void__makeScale__C5_Vec3d_R1, "", ""); I_Method3(void, makeScale, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, + Properties::NON_VIRTUAL, __void__makeScale__value_type__value_type__value_type, "", ""); I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x, + Properties::NON_VIRTUAL, __void__makeTranslate__C5_Vec3f_R1, "", ""); I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x, + Properties::NON_VIRTUAL, __void__makeTranslate__C5_Vec3d_R1, "", ""); I_Method3(void, makeTranslate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, x, + Properties::NON_VIRTUAL, __void__makeTranslate__value_type__value_type__value_type, "", ""); I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, "", ""); I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, "", ""); I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1, "", ""); I_Method2(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1, "", ""); I_Method4(void, makeRotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__value_type__value_type__value_type, "", ""); I_Method1(void, makeRotate, IN, const osg::Quat &, x, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Quat_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3f &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Matrixd::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixd::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixd::value_type, angle3, IN, const osg::Vec3d &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, "", ""); I_Method4(void, decompose, IN, osg::Vec3f &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3f &, scale, IN, osg::Quat &, so, + Properties::NON_VIRTUAL, __void__decompose__osg_Vec3f_R1__osg_Quat_R1__osg_Vec3f_R1__osg_Quat_R1, "decompose the matrix into translation, rotation, scale and scale orietation. ", ""); I_Method4(void, decompose, IN, osg::Vec3d &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3d &, scale, IN, osg::Quat &, so, + Properties::NON_VIRTUAL, __void__decompose__osg_Vec3d_R1__osg_Quat_R1__osg_Vec3d_R1__osg_Quat_R1, "decompose the matrix into translation, rotation, scale and scale orietation. ", ""); I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makeOrtho__double__double__double__double__double__double, "Set to an orthographic projection. ", "See glOrtho for further details."); I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, "Get the othogrraphic settings of the orthographic projection matrix. ", "Note, if matrix is not an orthographic matrix then invalid values will be returned."); I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + Properties::NON_VIRTUAL, __void__makeOrtho2D__double__double__double__double, "Set to a 2D orthographic projection. ", "See glOrtho2D for further details."); I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makeFrustum__double__double__double__double__double__double, "Set to a perspective projection. ", "See glFrustum for further details."); I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, "Get the frustum settings of a perspective projection matrix. ", "Note, if matrix is not a perspective matrix then invalid values will be returned."); I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makePerspective__double__double__double__double, "Set to a symmetrical perspective projection. ", "See gluPerspective for further details. Aspect ratio is defined as width/height."); I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getPerspective__double_R1__double_R1__double_R1__double_R1, "Get the frustum settings of a symmetric perspective projection matrix. ", "Return 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 configuration one should use the AsFrustum method instead."); I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, __void__makeLookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1, "Set the position and orientation to be a view matrix, using the same convention as gluLookAt. ", ""); I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f, + Properties::NON_VIRTUAL, __void__getLookAt__Vec3f_R1__Vec3f_R1__Vec3f_R1__value_type, "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", ""); I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixd::value_type, lookDistance, 1.0f, + Properties::NON_VIRTUAL, __void__getLookAt__Vec3d_R1__Vec3d_R1__Vec3d_R1__value_type, "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", ""); I_Method1(bool, invert, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __bool__invert__C5_Matrixd_R1, "invert the matrix rhs, automatically select invert_4x3 or invert_4x4. ", ""); I_Method1(bool, invert_4x3, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __bool__invert_4x3__C5_Matrixd_R1, "4x3 matrix invert, not right hand column is assumed to be 0,0,0,1. ", ""); I_Method1(bool, invert_4x4, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __bool__invert_4x4__C5_Matrixd_R1, "full 4x4 matrix invert. ", ""); I_Method1(void, orthoNormalize, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __void__orthoNormalize__C5_Matrixd_R1, "ortho-normalize the 3x3 rotation & scale matrix ", ""); I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __Vec3f__preMult__C5_Vec3f_R1, "", ""); I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __Vec3d__preMult__C5_Vec3d_R1, "", ""); I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __Vec3f__postMult__C5_Vec3f_R1, "", ""); I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __Vec3d__postMult__C5_Vec3d_R1, "", ""); I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, __Vec4f__preMult__C5_Vec4f_R1, "", ""); I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, __Vec4d__preMult__C5_Vec4d_R1, "", ""); I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, __Vec4f__postMult__C5_Vec4f_R1, "", ""); I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, __Vec4d__postMult__C5_Vec4d_R1, "", ""); I_Method1(void, set, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, __void__set__C5_Quat_R1, "", ""); I_Method1(void, get, IN, osg::Quat &, q, + Properties::NON_VIRTUAL, __void__get__Quat_R1, "", ""); I_Method1(void, setRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, __void__setRotate__C5_Quat_R1, "", ""); I_Method0(osg::Quat, getRotate, + Properties::NON_VIRTUAL, __Quat__getRotate, "", ""); I_Method3(void, setTrans, IN, osg::Matrixd::value_type, tx, IN, osg::Matrixd::value_type, ty, IN, osg::Matrixd::value_type, tz, + Properties::NON_VIRTUAL, __void__setTrans__value_type__value_type__value_type, "", ""); I_Method1(void, setTrans, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __void__setTrans__C5_Vec3f_R1, "", ""); I_Method1(void, setTrans, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __void__setTrans__C5_Vec3d_R1, "", ""); I_Method0(osg::Vec3d, getTrans, + Properties::NON_VIRTUAL, __Vec3d__getTrans, "", ""); I_Method0(osg::Vec3d, getScale, + Properties::NON_VIRTUAL, __Vec3d__getScale, "", ""); I_Method2(void, mult, IN, const osg::Matrixd &, x, IN, const osg::Matrixd &, x, + Properties::NON_VIRTUAL, __void__mult__C5_Matrixd_R1__C5_Matrixd_R1, "", ""); I_Method1(void, preMult, IN, const osg::Matrixd &, x, + Properties::NON_VIRTUAL, __void__preMult__C5_Matrixd_R1, "", ""); I_Method1(void, postMult, IN, const osg::Matrixd &, x, + Properties::NON_VIRTUAL, __void__postMult__C5_Matrixd_R1, "", ""); @@ -425,25 +492,29 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixd) __void__setTrans__C5_Vec3d_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::RefMatrixd) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::RefMatrixd) I_BaseType(osg::Object); I_BaseType(osg::Matrixd); I_Constructor0(____RefMatrixd, "", ""); I_Constructor1(IN, const osg::Matrixd &, other, + Properties::NON_EXPLICIT, ____RefMatrixd__C5_Matrixd_R1, "", ""); I_Constructor1(IN, const osg::Matrixf &, other, + Properties::NON_EXPLICIT, ____RefMatrixd__C5_Matrixf_R1, "", ""); I_Constructor1(IN, const osg::RefMatrixd &, other, + Properties::NON_EXPLICIT, ____RefMatrixd__C5_RefMatrixd_R1, "", ""); I_Constructor1(IN, osg::Matrixd::value_type const *const, def, + Properties::EXPLICIT, ____RefMatrixd__Matrixd_value_type_C5_P1C5, "", ""); @@ -452,22 +523,27 @@ BEGIN_OBJECT_REFLECTOR(osg::RefMatrixd) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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 &, x, + Properties::VIRTUAL, __Object_P1__clone__C5_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_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. "); diff --git a/src/osgWrappers/osg/Matrixf.cpp b/src/osgWrappers/osg/Matrixf.cpp index 68ee30fd9..224f9ed92 100644 --- a/src/osgWrappers/osg/Matrixf.cpp +++ b/src/osgWrappers/osg/Matrixf.cpp @@ -35,22 +35,27 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf) "", ""); I_Constructor1(IN, const osg::Matrixf &, mat, + Properties::NON_EXPLICIT, ____Matrixf__C5_Matrixf_R1, "", ""); I_Constructor1(IN, const osg::Matrixd &, mat, + Properties::NON_EXPLICIT, ____Matrixf__C5_Matrixd_R1, "", ""); I_Constructor1(IN, float const *const, ptr, + Properties::EXPLICIT, ____Matrixf__float_C5_P1C5, "", ""); I_Constructor1(IN, double const *const, ptr, + Properties::EXPLICIT, ____Matrixf__double_C5_P1C5, "", ""); I_Constructor1(IN, const osg::Quat &, quat, + Properties::EXPLICIT, ____Matrixf__C5_Quat_R1, "", ""); @@ -59,250 +64,312 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf) "", ""); I_Method1(int, compare, IN, const osg::Matrixf &, m, + Properties::NON_VIRTUAL, __int__compare__C5_Matrixf_R1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method1(void, set, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrixf_R1, "", ""); I_Method1(void, set, IN, const osg::Matrixd &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrixd_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method1(void, set, IN, double const *const, ptr, + Properties::NON_VIRTUAL, __void__set__double_C5_P1C5, "", ""); I_Method16(void, set, IN, osg::Matrixf::value_type, a00, IN, osg::Matrixf::value_type, a01, IN, osg::Matrixf::value_type, a02, IN, osg::Matrixf::value_type, a03, IN, osg::Matrixf::value_type, a10, IN, osg::Matrixf::value_type, a11, IN, osg::Matrixf::value_type, a12, IN, osg::Matrixf::value_type, a13, IN, osg::Matrixf::value_type, a20, IN, osg::Matrixf::value_type, a21, IN, osg::Matrixf::value_type, a22, IN, osg::Matrixf::value_type, a23, IN, osg::Matrixf::value_type, a30, IN, osg::Matrixf::value_type, a31, IN, osg::Matrixf::value_type, a32, IN, osg::Matrixf::value_type, a33, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Matrixf::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Matrixf::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method0(bool, isIdentity, + Properties::NON_VIRTUAL, __bool__isIdentity, "", ""); I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, __void__makeIdentity, "", ""); I_Method1(void, makeScale, IN, const osg::Vec3f &, x, + Properties::NON_VIRTUAL, __void__makeScale__C5_Vec3f_R1, "", ""); I_Method1(void, makeScale, IN, const osg::Vec3d &, x, + Properties::NON_VIRTUAL, __void__makeScale__C5_Vec3d_R1, "", ""); I_Method3(void, makeScale, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, + Properties::NON_VIRTUAL, __void__makeScale__value_type__value_type__value_type, "", ""); I_Method1(void, makeTranslate, IN, const osg::Vec3f &, x, + Properties::NON_VIRTUAL, __void__makeTranslate__C5_Vec3f_R1, "", ""); I_Method1(void, makeTranslate, IN, const osg::Vec3d &, x, + Properties::NON_VIRTUAL, __void__makeTranslate__C5_Vec3d_R1, "", ""); I_Method3(void, makeTranslate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, x, + Properties::NON_VIRTUAL, __void__makeTranslate__value_type__value_type__value_type, "", ""); I_Method2(void, makeRotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, "", ""); I_Method2(void, makeRotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, "", ""); I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1, "", ""); I_Method2(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1, "", ""); I_Method4(void, makeRotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__value_type__value_type__value_type, "", ""); I_Method1(void, makeRotate, IN, const osg::Quat &, x, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Quat_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3f &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Matrixf::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Matrixf::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Matrixf::value_type, angle3, IN, const osg::Vec3d &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, "", ""); I_Method4(void, decompose, IN, osg::Vec3f &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3f &, scale, IN, osg::Quat &, so, + Properties::NON_VIRTUAL, __void__decompose__osg_Vec3f_R1__osg_Quat_R1__osg_Vec3f_R1__osg_Quat_R1, "decompose the matrix into translation, rotation, scale and scale orietation. ", ""); I_Method4(void, decompose, IN, osg::Vec3d &, translation, IN, osg::Quat &, rotation, IN, osg::Vec3d &, scale, IN, osg::Quat &, so, + Properties::NON_VIRTUAL, __void__decompose__osg_Vec3d_R1__osg_Quat_R1__osg_Vec3d_R1__osg_Quat_R1, "decompose the matrix into translation, rotation, scale and scale orietation. ", ""); I_Method6(void, makeOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makeOrtho__double__double__double__double__double__double, "Set to an orthographic projection. ", "See glOrtho for further details."); I_Method6(bool, getOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, "Get the othogrraphic settings of the orthographic projection matrix. ", "Note, if matrix is not an orthographic matrix then invalid values will be returned."); I_Method4(void, makeOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + Properties::NON_VIRTUAL, __void__makeOrtho2D__double__double__double__double, "Set to a 2D orthographic projection. ", "See glOrtho2D for further details."); I_Method6(void, makeFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makeFrustum__double__double__double__double__double__double, "Set to a perspective projection. ", "See glFrustum for further details."); I_Method6(bool, getFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getFrustum__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, "Get the frustum settings of a perspective projection matrix. ", "Note, if matrix is not a perspective matrix then invalid values will be returned."); I_Method4(void, makePerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + Properties::NON_VIRTUAL, __void__makePerspective__double__double__double__double, "Set to a symmetrical perspective projection. ", "See gluPerspective for further details. Aspect ratio is defined as width/height."); I_Method4(bool, getPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar, + Properties::NON_VIRTUAL, __bool__getPerspective__double_R1__double_R1__double_R1__double_R1, "Get the frustum settings of a symmetric perspective projection matrix. ", "Return 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 configuration one should use the AsFrustum method instead."); I_Method3(void, makeLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, __void__makeLookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1, "Set the position and orientation to be a view matrix, using the same convention as gluLookAt. ", ""); I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f, + Properties::NON_VIRTUAL, __void__getLookAt__Vec3f_R1__Vec3f_R1__Vec3f_R1__value_type, "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", ""); I_MethodWithDefaults4(void, getLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, osg::Matrixf::value_type, lookDistance, 1.0f, + Properties::NON_VIRTUAL, __void__getLookAt__Vec3d_R1__Vec3d_R1__Vec3d_R1__value_type, "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", ""); I_Method1(bool, invert, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __bool__invert__C5_Matrixf_R1, "invert the matrix rhs, automatically select invert_4x3 or invert_4x4. ", ""); I_Method1(bool, invert_4x3, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __bool__invert_4x3__C5_Matrixf_R1, "4x3 matrix invert, not right hand column is assumed to be 0,0,0,1. ", ""); I_Method1(bool, invert_4x4, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __bool__invert_4x4__C5_Matrixf_R1, "full 4x4 matrix invert. ", ""); I_Method1(void, orthoNormalize, IN, const osg::Matrixf &, rhs, + Properties::NON_VIRTUAL, __void__orthoNormalize__C5_Matrixf_R1, "ortho-normalize the 3x3 rotation & scale matrix ", ""); I_Method1(osg::Vec3f, preMult, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __Vec3f__preMult__C5_Vec3f_R1, "", ""); I_Method1(osg::Vec3d, preMult, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __Vec3d__preMult__C5_Vec3d_R1, "", ""); I_Method1(osg::Vec3f, postMult, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __Vec3f__postMult__C5_Vec3f_R1, "", ""); I_Method1(osg::Vec3d, postMult, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __Vec3d__postMult__C5_Vec3d_R1, "", ""); I_Method1(osg::Vec4f, preMult, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, __Vec4f__preMult__C5_Vec4f_R1, "", ""); I_Method1(osg::Vec4d, preMult, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, __Vec4d__preMult__C5_Vec4d_R1, "", ""); I_Method1(osg::Vec4f, postMult, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, __Vec4f__postMult__C5_Vec4f_R1, "", ""); I_Method1(osg::Vec4d, postMult, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, __Vec4d__postMult__C5_Vec4d_R1, "", ""); I_Method1(void, set, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, __void__set__C5_Quat_R1, "", ""); I_Method1(void, get, IN, osg::Quat &, q, + Properties::NON_VIRTUAL, __void__get__Quat_R1, "", ""); I_Method1(void, setRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, __void__setRotate__C5_Quat_R1, "", ""); I_Method0(osg::Quat, getRotate, + Properties::NON_VIRTUAL, __Quat__getRotate, "", ""); I_Method3(void, setTrans, IN, osg::Matrixf::value_type, tx, IN, osg::Matrixf::value_type, ty, IN, osg::Matrixf::value_type, tz, + Properties::NON_VIRTUAL, __void__setTrans__value_type__value_type__value_type, "", ""); I_Method1(void, setTrans, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __void__setTrans__C5_Vec3f_R1, "", ""); I_Method1(void, setTrans, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __void__setTrans__C5_Vec3d_R1, "", ""); I_Method0(osg::Vec3d, getTrans, + Properties::NON_VIRTUAL, __Vec3d__getTrans, "", ""); I_Method0(osg::Vec3d, getScale, + Properties::NON_VIRTUAL, __Vec3d__getScale, "", ""); I_Method2(void, mult, IN, const osg::Matrixf &, x, IN, const osg::Matrixf &, x, + Properties::NON_VIRTUAL, __void__mult__C5_Matrixf_R1__C5_Matrixf_R1, "", ""); I_Method1(void, preMult, IN, const osg::Matrixf &, x, + Properties::NON_VIRTUAL, __void__preMult__C5_Matrixf_R1, "", ""); I_Method1(void, postMult, IN, const osg::Matrixf &, x, + Properties::NON_VIRTUAL, __void__postMult__C5_Matrixf_R1, "", ""); @@ -425,25 +492,29 @@ BEGIN_VALUE_REFLECTOR(osg::Matrixf) __void__setTrans__C5_Vec3d_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::RefMatrixf) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::RefMatrixf) I_BaseType(osg::Object); I_BaseType(osg::Matrixf); I_Constructor0(____RefMatrixf, "", ""); I_Constructor1(IN, const osg::Matrixf &, other, + Properties::NON_EXPLICIT, ____RefMatrixf__C5_Matrixf_R1, "", ""); I_Constructor1(IN, const osg::Matrixd &, other, + Properties::NON_EXPLICIT, ____RefMatrixf__C5_Matrixd_R1, "", ""); I_Constructor1(IN, const osg::RefMatrixf &, other, + Properties::NON_EXPLICIT, ____RefMatrixf__C5_RefMatrixf_R1, "", ""); I_Constructor1(IN, osg::Matrixf::value_type const *const, def, + Properties::EXPLICIT, ____RefMatrixf__Matrixf_value_type_C5_P1C5, "", ""); @@ -452,22 +523,27 @@ BEGIN_OBJECT_REFLECTOR(osg::RefMatrixf) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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 &, x, + Properties::VIRTUAL, __Object_P1__clone__C5_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_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. "); diff --git a/src/osgWrappers/osg/Multisample.cpp b/src/osgWrappers/osg/Multisample.cpp index e3f2bf034..b5d631e30 100644 --- a/src/osgWrappers/osg/Multisample.cpp +++ b/src/osgWrappers/osg/Multisample.cpp @@ -30,7 +30,7 @@ BEGIN_ENUM_REFLECTOR(osg::Multisample::Mode) I_EnumLabel(osg::Multisample::DONT_CARE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Multisample) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Multisample) I_BaseType(osg::StateAttribute); I_Constructor0(____Multisample, "", @@ -40,62 +40,77 @@ BEGIN_OBJECT_REFLECTOR(osg::Multisample) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method2(void, setSampleCoverage, IN, float, coverage, IN, bool, invert, + Properties::NON_VIRTUAL, __void__setSampleCoverage__float__bool, "", ""); I_Method1(void, setCoverage, IN, float, coverage, + Properties::NON_VIRTUAL, __void__setCoverage__float, "", ""); I_Method0(float, getCoverage, + Properties::NON_VIRTUAL, __float__getCoverage, "", ""); I_Method1(void, setInvert, IN, bool, invert, + Properties::NON_VIRTUAL, __void__setInvert__bool, "", ""); I_Method0(bool, getInvert, + Properties::NON_VIRTUAL, __bool__getInvert, "", ""); I_Method1(void, setHint, IN, osg::Multisample::Mode, mode, + Properties::NON_VIRTUAL, __void__setHint__Mode, "", ""); I_Method0(osg::Multisample::Mode, getHint, + Properties::NON_VIRTUAL, __Mode__getHint, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -121,45 +136,55 @@ BEGIN_OBJECT_REFLECTOR(osg::Multisample) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Multisample::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Multisample::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::Multisample::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::Multisample::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setMultisampleSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setMultisampleSupported__bool, "", ""); I_Method1(void, setMultisampleFilterHintSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setMultisampleFilterHintSupported__bool, "", ""); I_Method0(bool, isMultisampleSupported, + Properties::NON_VIRTUAL, __bool__isMultisampleSupported, "", ""); I_Method0(bool, isMultisampleFilterHintSupported, + Properties::NON_VIRTUAL, __bool__isMultisampleFilterHintSupported, "", ""); I_Method1(void, setSampleCoverageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setSampleCoverageProc__void_P1, "", ""); I_Method2(void, glSampleCoverage, IN, GLclampf, value, IN, GLboolean, invert, + Properties::NON_VIRTUAL, __void__glSampleCoverage__GLclampf__GLboolean, "", ""); diff --git a/src/osgWrappers/osg/Node.cpp b/src/osgWrappers/osg/Node.cpp index 569ab3571..3a2ea8076 100644 --- a/src/osgWrappers/osg/Node.cpp +++ b/src/osgWrappers/osg/Node.cpp @@ -35,7 +35,7 @@ TYPE_NAME_ALIAS(unsigned int, osg::Node::NodeMask); TYPE_NAME_ALIAS(std::vector< std::string >, osg::Node::DescriptionList); -BEGIN_OBJECT_REFLECTOR(osg::Node) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Node) I_BaseType(osg::Object); I_Constructor0(____Node, "Construct a node. ", @@ -45,242 +45,302 @@ BEGIN_OBJECT_REFLECTOR(osg::Node) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(osg::Group *, asGroup, + Properties::VIRTUAL, __Group_P1__asGroup, "convert 'this' into a Group pointer if Node is a Group, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Group *, asGroup, + Properties::VIRTUAL, __C5_Group_P1__asGroup, "convert 'const this' into a const Group pointer if Node is a Group, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(osg::Transform *, asTransform, + Properties::VIRTUAL, __Transform_P1__asTransform, "Convert 'this' into a Transform pointer if Node is a Transform, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Transform *, asTransform, + Properties::VIRTUAL, __C5_Transform_P1__asTransform, "convert 'const this' into a const Transform pointer if Node is a Transform, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, ascend, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__ascend__NodeVisitor_R1, "Traverse upwards : calls parents' accept method with NodeVisitor. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method0(const osg::Node::ParentList &, getParents, + Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of node. ", ""); I_Method0(osg::Node::ParentList, getParents, + Properties::NON_VIRTUAL, __ParentList__getParents, "Get the a copy of parent list of node. ", "A copy is returned to prevent modification of the parent list. "); I_Method1(osg::Group *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Group_P1__getParent__unsigned_int, "", ""); I_Method1(const osg::Group *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Group_P1__getParent__unsigned_int, "Get a single const parent of node. ", " param i index of the parent to get. return the parent i."); I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of node. ", "the number of parents of this node. "); I_MethodWithDefaults1(osg::NodePathList, getParentalNodePaths, IN, osg::Node *, haltTraversalAtNode, 0, + Properties::NON_VIRTUAL, __NodePathList__getParentalNodePaths__osg_Node_P1, "Get the list of node paths parent paths. ", "The optional Node* haltTraversalAtNode allows the user to prevent traversal beyond a specifed node. "); I_MethodWithDefaults1(osg::MatrixList, getWorldMatrices, IN, osg::Node *, haltTraversalAtNode, 0, + Properties::NON_VIRTUAL, __MatrixList__getWorldMatrices__osg_Node_P1, "Get the list of matrices that transform this node from local coordinates to world coordinates. ", "The optional Node* haltTraversalAtNode allows the user to prevent traversal beyond a specifed node. "); I_Method1(void, setUpdateCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__setUpdateCallback__NodeCallback_P1, "Set update node callback, called during update traversal. ", ""); I_Method0(osg::NodeCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, __NodeCallback_P1__getUpdateCallback, "Get update node callback, called during update traversal. ", ""); I_Method0(const osg::NodeCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, __C5_NodeCallback_P1__getUpdateCallback, "Get const update node callback, called during update traversal. ", ""); I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenRequiringUpdateTraversal, "Get the number of Children of this node which require Update traversal, since they have an Update Callback attached to them or their children. ", ""); I_Method1(void, setEventCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__setEventCallback__NodeCallback_P1, "Set update node callback, called during update traversal. ", ""); I_Method0(osg::NodeCallback *, getEventCallback, + Properties::NON_VIRTUAL, __NodeCallback_P1__getEventCallback, "Get update node callback, called during update traversal. ", ""); I_Method0(const osg::NodeCallback *, getEventCallback, + Properties::NON_VIRTUAL, __C5_NodeCallback_P1__getEventCallback, "Get const update node callback, called during update traversal. ", ""); I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenRequiringEventTraversal, "Get the number of Children of this node which require Event traversal, since they have an Event Callback attached to them or their children. ", ""); I_Method1(void, setCullCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__setCullCallback__NodeCallback_P1, "Set cull node callback, called during cull traversal. ", ""); I_Method0(osg::NodeCallback *, getCullCallback, + Properties::NON_VIRTUAL, __NodeCallback_P1__getCullCallback, "Get cull node callback, called during cull traversal. ", ""); I_Method0(const osg::NodeCallback *, getCullCallback, + Properties::NON_VIRTUAL, __C5_NodeCallback_P1__getCullCallback, "Get const cull node callback, called during cull traversal. ", ""); I_Method1(void, setCullingActive, IN, bool, active, + Properties::NON_VIRTUAL, __void__setCullingActive__bool, "Set the view frustum/small feature culling of this node to be active or inactive. ", "The default value is true for _cullingActive. Used as a guide to the cull traversal. "); I_Method0(bool, getCullingActive, + Properties::NON_VIRTUAL, __bool__getCullingActive, "Get the view frustum/small feature _cullingActive flag for this node. ", "Used as a guide to the cull traversal. "); I_Method0(unsigned int, getNumChildrenWithCullingDisabled, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenWithCullingDisabled, "Get the number of Children of this node which have culling disabled. ", ""); I_Method0(bool, isCullingActive, + Properties::NON_VIRTUAL, __bool__isCullingActive, "Return true if this node can be culled by view frustum, occlusion or small feature culling during the cull traversal. ", "Note, returns true only if no children have culling disabled, and the local _cullingActive flag is true. "); I_Method0(unsigned int, getNumChildrenWithOccluderNodes, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenWithOccluderNodes, "Get the number of Children of this node which are or have OccluderNode's. ", ""); I_Method0(bool, containsOccluderNodes, + Properties::NON_VIRTUAL, __bool__containsOccluderNodes, "return true if this node is an OccluderNode or the subgraph below this node are OccluderNodes. ", ""); I_Method1(void, setNodeMask, IN, osg::Node::NodeMask, nm, + Properties::NON_VIRTUAL, __void__setNodeMask__NodeMask, "Set the node mask. ", ""); I_Method0(osg::Node::NodeMask, getNodeMask, + Properties::NON_VIRTUAL, __NodeMask__getNodeMask, "Get the node Mask. ", ""); I_Method1(void, setDescriptions, IN, const osg::Node::DescriptionList &, descriptions, + Properties::NON_VIRTUAL, __void__setDescriptions__C5_DescriptionList_R1, "Set the description list of the node. ", ""); I_Method0(osg::Node::DescriptionList &, getDescriptions, + Properties::NON_VIRTUAL, __DescriptionList_R1__getDescriptions, "Get the description list of the node. ", ""); I_Method0(const osg::Node::DescriptionList &, getDescriptions, + Properties::NON_VIRTUAL, __C5_DescriptionList_R1__getDescriptions, "Get the const description list of the const node. ", ""); I_Method1(const std::string &, getDescription, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDescription__unsigned_int, "Get a single const description of the const node. ", ""); I_Method1(std::string &, getDescription, IN, unsigned int, i, + Properties::NON_VIRTUAL, __std_string_R1__getDescription__unsigned_int, "Get a single description of the node. ", ""); I_Method0(unsigned int, getNumDescriptions, + Properties::NON_VIRTUAL, __unsigned_int__getNumDescriptions, "Get the number of descriptions of the node. ", ""); I_Method1(void, addDescription, IN, const std::string &, desc, + Properties::NON_VIRTUAL, __void__addDescription__C5_std_string_R1, "Add a description string to the node. ", ""); I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, __void__setStateSet__osg_StateSet_P1, "Set the node's StateSet. ", ""); I_Method0(osg::StateSet *, getOrCreateStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getOrCreateStateSet, "return the node's StateSet, if one does not already exist create it set the node and return the newly created StateSet. ", "This ensures that a valid StateSet is always returned and can be used directly. "); I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getStateSet, "Return the node's StateSet. ", "returns NULL if a stateset is not attached. "); I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getStateSet, "Return the node's const StateSet. ", "Returns NULL if a stateset is not attached. "); I_Method1(void, setInitialBound, IN, const osg::BoundingSphere &, bsphere, + Properties::NON_VIRTUAL, __void__setInitialBound__C5_osg_BoundingSphere_R1, "Set the intial bounding volume to use when computing the overall bounding volume. ", ""); I_Method0(const osg::BoundingSphere &, getInitialBound, + Properties::NON_VIRTUAL, __C5_BoundingSphere_R1__getInitialBound, "Set the intial bounding volume to use when computing the overall bounding volume. ", ""); I_Method0(void, dirtyBound, + Properties::NON_VIRTUAL, __void__dirtyBound, "Mark this node's bounding sphere dirty. ", "Forcing it to be computed on the next call to getBound(). "); I_Method0(const osg::BoundingSphere &, getBound, + Properties::NON_VIRTUAL, __C5_BoundingSphere_R1__getBound, "Get the bounding sphere of node. ", "Using lazy evaluation computes the bounding sphere if it is 'dirty'. "); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); I_Method1(void, setComputeBoundingSphereCallback, IN, osg::Node::ComputeBoundingSphereCallback *, callback, + Properties::NON_VIRTUAL, __void__setComputeBoundingSphereCallback__ComputeBoundingSphereCallback_P1, "Set the compute bound callback to override the default computeBound. ", ""); I_Method0(osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback, + Properties::NON_VIRTUAL, __ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, "Get the compute bound callback. ", ""); I_Method0(const osg::Node::ComputeBoundingSphereCallback *, getComputeBoundingSphereCallback, + Properties::NON_VIRTUAL, __C5_ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, "Get the const compute bound callback. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); @@ -336,7 +396,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Node) __void__setUpdateCallback__NodeCallback_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) I_BaseType(osg::Object); I_Constructor0(____ComputeBoundingSphereCallback, "", @@ -346,26 +406,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(osg::BoundingSphere, computeBound, IN, const osg::Node &, x, + Properties::VIRTUAL, __BoundingSphere__computeBound__C5_osg_Node_R1, "", ""); diff --git a/src/osgWrappers/osg/NodeCallback.cpp b/src/osgWrappers/osg/NodeCallback.cpp index 4d4d8a202..a5939c6b3 100644 --- a/src/osgWrappers/osg/NodeCallback.cpp +++ b/src/osgWrappers/osg/NodeCallback.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::NodeCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeCallback) I_VirtualBaseType(osg::Object); I_Constructor0(____NodeCallback, "", @@ -34,46 +34,57 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeCallback) "", ""); 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, traverse, IN, osg::Node *, node, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, __void__traverse__Node_P1__NodeVisitor_P1, "Call any nested callbacks and then traverse the scene graph. ", ""); I_Method1(void, setNestedCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__setNestedCallback__NodeCallback_P1, "", ""); I_Method0(osg::NodeCallback *, getNestedCallback, + Properties::NON_VIRTUAL, __NodeCallback_P1__getNestedCallback, "", ""); I_Method0(const osg::NodeCallback *, getNestedCallback, + Properties::NON_VIRTUAL, __C5_NodeCallback_P1__getNestedCallback, "", ""); I_Method1(void, addNestedCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__addNestedCallback__NodeCallback_P1, "", ""); I_Method1(void, removeNestedCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, __void__removeNestedCallback__NodeCallback_P1, "", ""); diff --git a/src/osgWrappers/osg/NodeTrackerCallback.cpp b/src/osgWrappers/osg/NodeTrackerCallback.cpp index 60a3e3035..15d7e79b9 100644 --- a/src/osgWrappers/osg/NodeTrackerCallback.cpp +++ b/src/osgWrappers/osg/NodeTrackerCallback.cpp @@ -24,40 +24,48 @@ TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osg::NodeTrackerCallback::ObserveredNodePath); -BEGIN_OBJECT_REFLECTOR(osg::NodeTrackerCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeTrackerCallback) I_BaseType(osg::NodeCallback); I_Constructor0(____NodeTrackerCallback, "", ""); I_Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, __void__setTrackNodePath__C5_osg_NodePath_R1, "", ""); I_Method1(void, setTrackNodePath, IN, const osg::NodeTrackerCallback::ObserveredNodePath &, nodePath, + Properties::NON_VIRTUAL, __void__setTrackNodePath__C5_ObserveredNodePath_R1, "", ""); I_Method0(osg::NodeTrackerCallback::ObserveredNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, __ObserveredNodePath_R1__getTrackNodePath, "", ""); I_Method1(void, setTrackNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setTrackNode__osg_Node_P1, "", ""); I_Method0(osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getTrackNode, "", ""); I_Method0(const osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getTrackNode, "", ""); I_Method1(void, update, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__update__osg_Node_R1, "Update the node to track the nodepath. ", ""); I_Method0(bool, validateNodePath, + Properties::NON_VIRTUAL, __bool__validateNodePath, "", ""); @@ -69,32 +77,38 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeTrackerCallback) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osg::Node >) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::observer_ptr< osg::Node >) I_BaseType(osg::Observer); I_Constructor0(____observer_ptr, "", ""); I_Constructor1(IN, osg::Node *, t, + Properties::NON_EXPLICIT, ____observer_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::observer_ptr< osg::Node > &, rp, + Properties::NON_EXPLICIT, ____observer_ptr__C5_observer_ptr_R1, "", ""); I_Method1(void, objectDeleted, IN, void *, x, + Properties::VIRTUAL, __void__objectDeleted__void_P1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Node *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(const osg::Node *, get, + Properties::NON_VIRTUAL, __C5_T_P1__get, "", ""); diff --git a/src/osgWrappers/osg/NodeVisitor.cpp b/src/osgWrappers/osg/NodeVisitor.cpp index 048a194a2..099577dbf 100644 --- a/src/osgWrappers/osg/NodeVisitor.cpp +++ b/src/osgWrappers/osg/NodeVisitor.cpp @@ -46,6 +46,7 @@ BEGIN_VALUE_REFLECTOR(osg::NodeAcceptOp) I_Constructor1(IN, osg::NodeVisitor &, nv, + Properties::NON_EXPLICIT, ____NodeAcceptOp__NodeVisitor_R1, "", ""); @@ -66,9 +67,10 @@ BEGIN_ENUM_REFLECTOR(osg::NodeVisitor::VisitorType) I_EnumLabel(osg::NodeVisitor::CULL_VISITOR); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::NodeVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeVisitor) I_VirtualBaseType(osg::Referenced); I_ConstructorWithDefaults1(IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE, + Properties::NON_EXPLICIT, ____NodeVisitor__TraversalMode, "", ""); @@ -77,206 +79,257 @@ BEGIN_OBJECT_REFLECTOR(osg::NodeVisitor) "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, setVisitorType, IN, osg::NodeVisitor::VisitorType, type, + Properties::NON_VIRTUAL, __void__setVisitorType__VisitorType, "Set the VisitorType, used to distinguish different visitors during traversal of the scene, typically used in the Node::traverse() method to select which behaviour to use for different types of traversal/visitors. ", ""); I_Method0(osg::NodeVisitor::VisitorType, getVisitorType, + Properties::NON_VIRTUAL, __VisitorType__getVisitorType, "Get the VisitorType. ", ""); I_Method1(void, setTraversalNumber, IN, int, fn, + Properties::NON_VIRTUAL, __void__setTraversalNumber__int, "Set the traversal number. ", "Typically used to denote the frame count. "); I_Method0(int, getTraversalNumber, + Properties::NON_VIRTUAL, __int__getTraversalNumber, "Get the traversal number. ", "Typically used to denote the frame count. "); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, __void__setFrameStamp__FrameStamp_P1, "Set the FrameStamp that this traversal is associated with. ", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_FrameStamp_P1__getFrameStamp, "Get the FrameStamp that this traversal is associated with. ", ""); I_Method1(void, setTraversalMask, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, __void__setTraversalMask__Node_NodeMask, "Set the TraversalMask of this NodeVisitor. ", "The TraversalMask is used by the NodeVisitor::validNodeMask() method to determine whether to operate on a node and its subgraph. validNodeMask() is called automatically in the Node::accept() method before any call to NodeVisitor::apply(), apply() is only ever called if validNodeMask returns true. Note, if NodeVisitor::_traversalMask is 0 then all operations will be switched off for all nodes. Whereas setting both _traversalMask and _nodeMaskOverride to 0xffffffff will allow a visitor to work on all nodes regardless of their own Node::_nodeMask state. "); I_Method0(osg::Node::NodeMask, getTraversalMask, + Properties::NON_VIRTUAL, __Node_NodeMask__getTraversalMask, "Get the TraversalMask. ", ""); I_Method1(void, setNodeMaskOverride, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, __void__setNodeMaskOverride__Node_NodeMask, "Set the NodeMaskOverride mask. ", "Used in validNodeMask() to determine whether to operate on a node or its subgraph, by OR'ing NodeVisitor::_nodeMaskOverride with the Node's own Node::_nodeMask. Typically used to force on nodes which may have been switched off by their own Node::_nodeMask. "); I_Method0(osg::Node::NodeMask, getNodeMaskOverride, + Properties::NON_VIRTUAL, __Node_NodeMask__getNodeMaskOverride, "Get the NodeMaskOverride mask. ", ""); I_Method1(bool, validNodeMask, IN, const osg::Node &, node, + Properties::NON_VIRTUAL, __bool__validNodeMask__C5_osg_Node_R1, "Method to called by Node and its subclass' Node::accept() method, if the result is true it is used to cull operations of nodes and their subgraphs. ", "Return true if the result of a bit wise and of the NodeVisitor::_traversalMask with the bit or between NodeVistor::_nodeMaskOverride and the Node::_nodeMask. default values for _traversalMask is 0xffffffff, _nodeMaskOverride is 0x0, and osg::Node::_nodeMask is 0xffffffff. "); I_Method1(void, setTraversalMode, IN, osg::NodeVisitor::TraversalMode, mode, + Properties::NON_VIRTUAL, __void__setTraversalMode__TraversalMode, "Set the traversal mode for Node::traverse() to use when deciding which children of a node to traverse. ", "If a NodeVisitor has been attached via setTraverseVisitor() and the new mode is not TRAVERSE_VISITOR then the attached visitor is detached. Default mode is TRAVERSE_NONE. "); I_Method0(osg::NodeVisitor::TraversalMode, getTraversalMode, + Properties::NON_VIRTUAL, __TraversalMode__getTraversalMode, "Get the traversal mode. ", ""); I_Method1(void, setUserData, IN, osg::Referenced *, obj, + Properties::NON_VIRTUAL, __void__setUserData__Referenced_P1, "Set user data, data must be subclased from Referenced to allow automatic memory handling. ", "If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own objects and handles the memory addressing."); I_Method0(osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __Referenced_P1__getUserData, "Get user data. ", ""); I_Method0(const osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __C5_Referenced_P1__getUserData, "Get const user data. ", ""); I_Method1(void, traverse, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__traverse__Node_R1, "Method for handling traversal of a nodes. ", "If you intend to use the visitor for actively traversing the scene graph then make sure the accept() methods call this method unless they handle traversal directly. "); I_Method1(void, pushOntoNodePath, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__pushOntoNodePath__Node_P1, "Method called by osg::Node::accept() method before a call to the NodeVisitor::apply(. ", ".). The back of the list will, therefore, be the current node being visited inside the apply(..), and the rest of the list will be the parental sequence of nodes from the top most node applied down the graph to the current node. Note, the user does not typically call pushNodeOnPath() as it will be called automatically by the Node::accept() method. "); I_Method0(void, popFromNodePath, + Properties::NON_VIRTUAL, __void__popFromNodePath, "Method called by osg::Node::accept() method after a call to NodeVisitor::apply(. ", ".). Note, the user does not typically call popFromNodePath() as it will be called automatically by the Node::accept() method. "); I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __NodePath_R1__getNodePath, "Get the non const NodePath from the top most node applied down to the current Node being visited. ", ""); I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __C5_NodePath_R1__getNodePath, "Get the const NodePath from the top most node applied down to the current Node being visited. ", ""); I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, __osg_Vec3__getEyePoint, "Get the eye point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); I_Method0(osg::Vec3, getViewPoint, + Properties::VIRTUAL, __osg_Vec3__getViewPoint, "Get the view point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, + Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, x, IN, bool, x, + Properties::VIRTUAL, __float__getDistanceFromEyePoint__C5_Vec3_R1__bool, "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, x, IN, bool, x, + Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_Vec3_R1__bool, "Get the distance from a point to the view point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceToViewPoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, __void__apply__Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__Group_R1, "", ""); I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, __void__apply__ProxyNode_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, __void__apply__Projection_R1, "", ""); I_Method1(void, apply, IN, osg::CoordinateSystemNode &, node, + Properties::VIRTUAL, __void__apply__CoordinateSystemNode_R1, "", ""); I_Method1(void, apply, IN, osg::ClipNode &, node, + Properties::VIRTUAL, __void__apply__ClipNode_R1, "", ""); I_Method1(void, apply, IN, osg::TexGenNode &, node, + Properties::VIRTUAL, __void__apply__TexGenNode_R1, "", ""); I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, __void__apply__LightSource_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Camera &, node, + Properties::VIRTUAL, __void__apply__Camera_R1, "", ""); I_Method1(void, apply, IN, osg::CameraView &, node, + Properties::VIRTUAL, __void__apply__CameraView_R1, "", ""); I_Method1(void, apply, IN, osg::MatrixTransform &, node, + Properties::VIRTUAL, __void__apply__MatrixTransform_R1, "", ""); I_Method1(void, apply, IN, osg::PositionAttitudeTransform &, node, + Properties::VIRTUAL, __void__apply__PositionAttitudeTransform_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__Switch_R1, "", ""); I_Method1(void, apply, IN, osg::Sequence &, node, + Properties::VIRTUAL, __void__apply__Sequence_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__LOD_R1, "", ""); I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, __void__apply__PagedLOD_R1, "", ""); I_Method1(void, apply, IN, osg::ClearNode &, node, + Properties::VIRTUAL, __void__apply__ClearNode_R1, "", ""); I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, __void__apply__OccluderNode_R1, "", ""); I_Method1(void, setDatabaseRequestHandler, IN, osg::NodeVisitor::DatabaseRequestHandler *, handler, + Properties::NON_VIRTUAL, __void__setDatabaseRequestHandler__DatabaseRequestHandler_P1, "Set the handler for database requests. ", ""); I_Method0(osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler, + Properties::NON_VIRTUAL, __DatabaseRequestHandler_P1__getDatabaseRequestHandler, "Get the handler for database requests. ", ""); I_Method0(const osg::NodeVisitor::DatabaseRequestHandler *, getDatabaseRequestHandler, + Properties::NON_VIRTUAL, __C5_DatabaseRequestHandler_P1__getDatabaseRequestHandler, "Get the const handler for database requests. ", ""); @@ -321,6 +374,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeVisitor::DatabaseRequestHandler) "", ""); I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, + Properties::PURE_VIRTUAL, __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_FrameStamp_P1, "", ""); diff --git a/src/osgWrappers/osg/Object.cpp b/src/osgWrappers/osg/Object.cpp index 435ed3e46..4ca76a3d8 100644 --- a/src/osgWrappers/osg/Object.cpp +++ b/src/osgWrappers/osg/Object.cpp @@ -34,6 +34,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object) "Construct an object. ", "Note Object is a pure virtual base class and therefore cannot be constructed on its own, only derived classes which override the clone and className methods are concrete classes and can be constructed. "); I_Constructor1(IN, bool, threadSafeRefUnref, + Properties::EXPLICIT, ____Object__bool, "", ""); @@ -42,62 +43,77 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object) "Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. ", ""); I_Method0(osg::Object *, cloneType, + Properties::PURE_VIRTUAL, __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 &, x, + Properties::PURE_VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, x, + Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::PURE_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::PURE_VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setName__C5_std_string_R1, "Set the name of object using C++ style string. ", ""); I_Method1(void, setName, IN, const char *, name, + Properties::NON_VIRTUAL, __void__setName__C5_char_P1, "Set the name of object using a C style string. ", ""); I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getName, "Get the name of object. ", ""); I_Method1(void, setDataVariance, IN, osg::Object::DataVariance, dv, + Properties::NON_VIRTUAL, __void__setDataVariance__DataVariance, "Set the data variance of this object. ", "Can be set to either STATIC for values that do not change over the lifetime of the object, or DYNAMIC for values that vary over the lifetime of the object. The DataVariance value can be used by routines such as optimzation codes that wish to share static data. "); I_Method0(osg::Object::DataVariance, getDataVariance, + Properties::NON_VIRTUAL, __DataVariance__getDataVariance, "Get the data variance of this object. ", ""); I_Method1(void, setUserData, IN, osg::Referenced *, obj, + Properties::NON_VIRTUAL, __void__setUserData__Referenced_P1, "Set user data, data must be subclassed from Referenced to allow automatic memory handling. ", "If your own data isn't directly subclassed from Referenced then create an adapter object which points to your own object and handles the memory addressing."); I_Method0(osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __Referenced_P1__getUserData, "Get user data. ", ""); I_Method0(const osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __C5_Referenced_P1__getUserData, "Get const user data. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); diff --git a/src/osgWrappers/osg/OccluderNode.cpp b/src/osgWrappers/osg/OccluderNode.cpp index d2527d7f0..7e35b1e3f 100644 --- a/src/osgWrappers/osg/OccluderNode.cpp +++ b/src/osgWrappers/osg/OccluderNode.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::OccluderNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::OccluderNode) I_BaseType(osg::Group); I_Constructor0(____OccluderNode, "", @@ -35,42 +35,52 @@ BEGIN_OBJECT_REFLECTOR(osg::OccluderNode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setOccluder, IN, osg::ConvexPlanarOccluder *, occluder, + Properties::NON_VIRTUAL, __void__setOccluder__ConvexPlanarOccluder_P1, "Attach a ConvexPlanarOccluder to an OccluderNode. ", ""); I_Method0(osg::ConvexPlanarOccluder *, getOccluder, + Properties::NON_VIRTUAL, __ConvexPlanarOccluder_P1__getOccluder, "Get the ConvexPlanarOccluder* attached to a OccluderNode. ", ""); I_Method0(const osg::ConvexPlanarOccluder *, getOccluder, + Properties::NON_VIRTUAL, __C5_ConvexPlanarOccluder_P1__getOccluder, "Get the const ConvexPlanarOccluder* attached to a OccluderNode. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Overrides Group's computeBound. ", ""); diff --git a/src/osgWrappers/osg/PagedLOD.cpp b/src/osgWrappers/osg/PagedLOD.cpp index 79be32c82..982a8b527 100644 --- a/src/osgWrappers/osg/PagedLOD.cpp +++ b/src/osgWrappers/osg/PagedLOD.cpp @@ -27,7 +27,7 @@ TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRangeDataList); -BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PagedLOD) I_BaseType(osg::LOD); I_Constructor0(____PagedLOD, "", @@ -37,122 +37,152 @@ BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method3(bool, addChild, IN, osg::Node *, child, IN, float, min, IN, float, max, + Properties::VIRTUAL, __bool__addChild__Node_P1__float__float, "", ""); I_MethodWithDefaults6(bool, addChild, IN, osg::Node *, child, , IN, float, min, , IN, float, max, , IN, const std::string &, filename, , IN, float, priorityOffset, 0.0f, IN, float, priorityScale, 1.0f, + Properties::VIRTUAL, __bool__addChild__Node_P1__float__float__C5_std_string_R1__float__float, "", ""); I_MethodWithDefaults2(bool, removeChildren, IN, unsigned int, pos, , IN, unsigned int, numChildrenToRemove, 1, + Properties::VIRTUAL, __bool__removeChildren__unsigned_int__unsigned_int, "Remove children from Group. ", "Note, must be override by subclasses of Group which add per child attributes. "); I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, __void__setDatabasePath__C5_std_string_R1, "Set the database path to prepend to children's filenames. ", ""); I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDatabasePath, "Get the database path used to prepend to children's filenames. ", ""); I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setFileName__unsigned_int__C5_std_string_R1, "", ""); I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFileName__unsigned_int, "", ""); I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, __unsigned_int__getNumFileNames, "", ""); I_Method2(void, setPriorityOffset, IN, unsigned int, childNo, IN, float, priorityOffset, + Properties::NON_VIRTUAL, __void__setPriorityOffset__unsigned_int__float, "", ""); I_Method1(float, getPriorityOffset, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __float__getPriorityOffset__unsigned_int, "", ""); I_Method0(unsigned int, getNumPriorityOffsets, + Properties::NON_VIRTUAL, __unsigned_int__getNumPriorityOffsets, "", ""); I_Method2(void, setPriorityScale, IN, unsigned int, childNo, IN, float, priorityScale, + Properties::NON_VIRTUAL, __void__setPriorityScale__unsigned_int__float, "", ""); I_Method1(float, getPriorityScale, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __float__getPriorityScale__unsigned_int, "", ""); I_Method0(unsigned int, getNumPriorityScales, + Properties::NON_VIRTUAL, __unsigned_int__getNumPriorityScales, "", ""); I_Method2(void, setTimeStamp, IN, unsigned int, childNo, IN, double, timeStamp, + Properties::NON_VIRTUAL, __void__setTimeStamp__unsigned_int__double, "", ""); I_Method1(double, getTimeStamp, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __double__getTimeStamp__unsigned_int, "", ""); I_Method0(unsigned int, getNumTimeStamps, + Properties::NON_VIRTUAL, __unsigned_int__getNumTimeStamps, "", ""); I_Method1(void, setFrameNumberOfLastTraversal, IN, int, frameNumber, + Properties::NON_VIRTUAL, __void__setFrameNumberOfLastTraversal__int, "Set the frame number of the last time that this PageLOD node was traversed. ", "Note, this frame number is automatically set by the traverse() method for all traversals (update, cull etc.)."); I_Method0(int, getFrameNumberOfLastTraversal, + Properties::NON_VIRTUAL, __int__getFrameNumberOfLastTraversal, "Get the frame number of the last time that this PageLOD node was traversed. ", ""); I_Method1(void, setNumChildrenThatCannotBeExpired, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setNumChildrenThatCannotBeExpired__unsigned_int, "Set the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ", ""); I_Method0(unsigned int, getNumChildrenThatCannotBeExpired, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenThatCannotBeExpired, "Get the number of children that the PagedLOD must keep around, even if they are older than their expiry time. ", ""); I_Method2(bool, removeExpiredChildren, IN, double, expiryTime, IN, osg::NodeList &, removedChildren, + Properties::VIRTUAL, __bool__removeExpiredChildren__double__NodeList_R1, "Remove the children from the PagedLOD which haven't been visited since specified expiry time. ", "The removed children are added to the removeChildren list passed into the method, this allows the children to be deleted later at the caller's discretion. Return true if children are removed, false otherwise. "); @@ -200,6 +230,7 @@ BEGIN_VALUE_REFLECTOR(osg::PagedLOD::PerRangeData) "", ""); I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd, + Properties::NON_EXPLICIT, ____PerRangeData__C5_PerRangeData_R1, "", ""); diff --git a/src/osgWrappers/osg/Plane.cpp b/src/osgWrappers/osg/Plane.cpp index 4b9651dfe..3e4dcec8a 100644 --- a/src/osgWrappers/osg/Plane.cpp +++ b/src/osgWrappers/osg/Plane.cpp @@ -43,6 +43,7 @@ BEGIN_VALUE_REFLECTOR(osg::Plane) "", ""); I_Constructor1(IN, const osg::Plane &, pl, + Properties::NON_EXPLICIT, ____Plane__C5_Plane_R1, "", ""); @@ -51,10 +52,12 @@ BEGIN_VALUE_REFLECTOR(osg::Plane) "", ""); I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, ____Plane__C5_Vec4f_R1, "", ""); I_Constructor1(IN, const osg::Vec4d &, vec, + Properties::NON_EXPLICIT, ____Plane__C5_Vec4d_R1, "", ""); @@ -71,102 +74,127 @@ BEGIN_VALUE_REFLECTOR(osg::Plane) "", ""); I_Method1(void, set, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, __void__set__C5_Plane_R1, "", ""); I_Method4(void, set, IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec4f &, vec, + Properties::NON_VIRTUAL, __void__set__C5_Vec4f_R1, "", ""); I_Method1(void, set, IN, const osg::Vec4d &, vec, + Properties::NON_VIRTUAL, __void__set__C5_Vec4d_R1, "", ""); I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, double, d, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_type_R1__double, "", ""); I_Method3(void, set, IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, "", ""); I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1, "", ""); I_Method0(void, flip, + Properties::NON_VIRTUAL, __void__flip, "flip/reverse the orientation of the plane. ", ""); I_Method0(void, makeUnitLength, + Properties::NON_VIRTUAL, __void__makeUnitLength, "", ""); I_Method0(void, calculateUpperLowerBBCorners, + Properties::NON_VIRTUAL, __void__calculateUpperLowerBBCorners, "calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations. ", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method0(osg::Plane::Vec4_type, asVec4, + Properties::NON_VIRTUAL, __Vec4_type__asVec4, "", ""); I_Method0(osg::Plane::Vec3_type, getNormal, + Properties::NON_VIRTUAL, __Vec3_type__getNormal, "", ""); I_Method1(float, distance, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __float__distance__C5_osg_Vec3f_R1, "calculate the distance between a point and the plane. ", ""); I_Method1(double, distance, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __double__distance__C5_osg_Vec3d_R1, "", ""); I_Method1(float, dotProductNormal, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, __float__dotProductNormal__C5_osg_Vec3f_R1, "calculate the dot product of the plane normal and a point. ", ""); I_Method1(double, dotProductNormal, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, __double__dotProductNormal__C5_osg_Vec3d_R1, "calculate the dot product of the plane normal and a point. ", ""); I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, __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. ", ""); I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __int__intersect__C5_BoundingSphere_R1, "intersection test between plane and bounding sphere. ", "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. "); I_Method1(int, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __int__intersect__C5_BoundingBox_R1, "intersection test between plane and bounding sphere. ", "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. "); I_Method1(void, transform, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__transform__C5_osg_Matrix_R1, "Transform the plane by matrix. ", "Note, this operation carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__transformProvidingInverse__C5_osg_Matrix_R1, "Transform the plane by providing a pre inverted matrix. ", "see transform for details. "); diff --git a/src/osgWrappers/osg/Point.cpp b/src/osgWrappers/osg/Point.cpp index 0c5ad3a3c..1fae9c086 100644 --- a/src/osgWrappers/osg/Point.cpp +++ b/src/osgWrappers/osg/Point.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Point) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Point) I_BaseType(osg::StateAttribute); I_Constructor0(____Point, "", @@ -35,78 +35,97 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setSize, IN, float, size, + Properties::NON_VIRTUAL, __void__setSize__float, "", ""); I_Method0(float, getSize, + Properties::NON_VIRTUAL, __float__getSize, "", ""); I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + Properties::NON_VIRTUAL, __void__setFadeThresholdSize__float, "", ""); I_Method0(float, getFadeThresholdSize, + Properties::NON_VIRTUAL, __float__getFadeThresholdSize, "", ""); I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + Properties::NON_VIRTUAL, __void__setDistanceAttenuation__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getDistanceAttenuation, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getDistanceAttenuation, "", ""); I_Method1(void, setMinSize, IN, float, minSize, + Properties::NON_VIRTUAL, __void__setMinSize__float, "", ""); I_Method0(float, getMinSize, + Properties::NON_VIRTUAL, __float__getMinSize, "", ""); I_Method1(void, setMaxSize, IN, float, maxSize, + Properties::NON_VIRTUAL, __void__setMaxSize__float, "", ""); I_Method0(float, getMaxSize, + Properties::NON_VIRTUAL, __float__getMaxSize, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -138,41 +157,50 @@ BEGIN_OBJECT_REFLECTOR(osg::Point) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Point::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Point::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::Point::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::Point::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setPointParametersSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setPointParametersSupported__bool, "", ""); I_Method0(bool, isPointParametersSupported, + Properties::NON_VIRTUAL, __bool__isPointParametersSupported, "", ""); I_Method2(void, glPointParameteri, IN, GLenum, pname, IN, GLint, param, + Properties::NON_VIRTUAL, __void__glPointParameteri__GLenum__GLint, "", ""); I_Method2(void, glPointParameterf, IN, GLenum, pname, IN, GLfloat, param, + Properties::NON_VIRTUAL, __void__glPointParameterf__GLenum__GLfloat, "", ""); I_Method2(void, glPointParameterfv, IN, GLenum, pname, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, __void__glPointParameterfv__GLenum__C5_GLfloat_P1, "", ""); diff --git a/src/osgWrappers/osg/PointSprite.cpp b/src/osgWrappers/osg/PointSprite.cpp index 1250b3361..d7e29ac0a 100644 --- a/src/osgWrappers/osg/PointSprite.cpp +++ b/src/osgWrappers/osg/PointSprite.cpp @@ -29,7 +29,7 @@ BEGIN_ENUM_REFLECTOR(osg::PointSprite::CoordOriginMode) I_EnumLabel(osg::PointSprite::LOWER_LEFT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::PointSprite) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PointSprite) I_BaseType(osg::StateAttribute); I_Constructor0(____PointSprite, "", @@ -39,54 +39,67 @@ BEGIN_OBJECT_REFLECTOR(osg::PointSprite) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + Properties::VIRTUAL, __bool__checkValidityOfAssociatedModes__osg_State_R1, "Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", "Return true if all associated modes are valid. "); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__osg_State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, setCoordOriginMode, IN, osg::PointSprite::CoordOriginMode, mode, + Properties::NON_VIRTUAL, __void__setCoordOriginMode__CoordOriginMode, "", ""); I_Method0(osg::PointSprite::CoordOriginMode, getCoordOriginMode, + Properties::NON_VIRTUAL, __CoordOriginMode__getCoordOriginMode, "", ""); diff --git a/src/osgWrappers/osg/PolygonMode.cpp b/src/osgWrappers/osg/PolygonMode.cpp index c4bf14ef8..f6e7a7b62 100644 --- a/src/osgWrappers/osg/PolygonMode.cpp +++ b/src/osgWrappers/osg/PolygonMode.cpp @@ -36,7 +36,7 @@ BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Face) I_EnumLabel(osg::PolygonMode::BACK); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PolygonMode) I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonMode, "", @@ -50,46 +50,57 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method2(void, setMode, IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Face__Mode, "", ""); I_Method1(osg::PolygonMode::Mode, getMode, IN, osg::PolygonMode::Face, face, + Properties::NON_VIRTUAL, __Mode__getMode__Face, "", ""); I_Method0(bool, getFrontAndBack, + Properties::NON_VIRTUAL, __bool__getFrontAndBack, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/PolygonOffset.cpp b/src/osgWrappers/osg/PolygonOffset.cpp index d697b6077..9dcf930ca 100644 --- a/src/osgWrappers/osg/PolygonOffset.cpp +++ b/src/osgWrappers/osg/PolygonOffset.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PolygonOffset) I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonOffset, "", @@ -38,54 +38,67 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setFactor, IN, float, factor, + Properties::NON_VIRTUAL, __void__setFactor__float, "", ""); I_Method0(float, getFactor, + Properties::NON_VIRTUAL, __float__getFactor, "", ""); I_Method1(void, setUnits, IN, float, units, + Properties::NON_VIRTUAL, __void__setUnits__float, "", ""); I_Method0(float, getUnits, + Properties::NON_VIRTUAL, __float__getUnits, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/PolygonStipple.cpp b/src/osgWrappers/osg/PolygonStipple.cpp index ad7b47231..fadb8e510 100644 --- a/src/osgWrappers/osg/PolygonStipple.cpp +++ b/src/osgWrappers/osg/PolygonStipple.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PolygonStipple) I_BaseType(osg::StateAttribute); I_Constructor0(____PolygonStipple, "", @@ -34,46 +34,57 @@ BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, setMask, IN, const GLubyte *, mask, + Properties::NON_VIRTUAL, __void__setMask__C5_GLubyte_P1, "set the mask up, copying 128 bytes (32x32 bitfield) from mask into the local _mask. ", ""); I_Method0(const GLubyte *, getMask, + Properties::NON_VIRTUAL, __C5_GLubyte_P1__getMask, "get a pointer to the mask. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/Polytope.cpp b/src/osgWrappers/osg/Polytope.cpp index 60e7ae44d..528d69996 100644 --- a/src/osgWrappers/osg/Polytope.cpp +++ b/src/osgWrappers/osg/Polytope.cpp @@ -38,126 +38,157 @@ BEGIN_VALUE_REFLECTOR(osg::Polytope) "", ""); I_Constructor1(IN, const osg::Polytope &, cv, + Properties::NON_EXPLICIT, ____Polytope__C5_Polytope_R1, "", ""); I_Constructor1(IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_EXPLICIT, ____Polytope__C5_PlaneList_R1, "", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "", ""); I_MethodWithDefaults2(void, setToUnitFrustum, IN, bool, withNear, true, IN, bool, withFar, true, + Properties::NON_VIRTUAL, __void__setToUnitFrustum__bool__bool, "Create a Polytope which is a cube, centered at 0,0,0, with sides of 2 units. ", ""); I_Method2(void, setAndTransformProvidingInverse, IN, const osg::Polytope &, pt, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setAndTransformProvidingInverse__C5_Polytope_R1__C5_osg_Matrix_R1, "", ""); I_Method1(void, set, IN, const osg::Polytope::PlaneList &, pl, + Properties::NON_VIRTUAL, __void__set__C5_PlaneList_R1, "", ""); I_Method1(void, add, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, __void__add__C5_osg_Plane_R1, "", ""); I_Method0(void, flip, + Properties::NON_VIRTUAL, __void__flip, "flip/reverse the orientation of all the planes. ", ""); I_Method0(osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, __PlaneList_R1__getPlaneList, "", ""); I_Method0(const osg::Polytope::PlaneList &, getPlaneList, + Properties::NON_VIRTUAL, __C5_PlaneList_R1__getPlaneList, "", ""); I_Method1(void, setReferenceVertexList, IN, osg::Polytope::VertexList &, vertices, + Properties::NON_VIRTUAL, __void__setReferenceVertexList__VertexList_R1, "", ""); I_Method0(osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, __VertexList_R1__getReferenceVertexList, "", ""); I_Method0(const osg::Polytope::VertexList &, getReferenceVertexList, + Properties::NON_VIRTUAL, __C5_VertexList_R1__getReferenceVertexList, "", ""); I_Method0(void, setupMask, + Properties::NON_VIRTUAL, __void__setupMask, "", ""); I_Method0(osg::Polytope::ClippingMask &, getCurrentMask, + Properties::NON_VIRTUAL, __ClippingMask_R1__getCurrentMask, "", ""); I_Method0(osg::Polytope::ClippingMask, getCurrentMask, + Properties::NON_VIRTUAL, __ClippingMask__getCurrentMask, "", ""); I_Method1(void, setResultMask, IN, osg::Polytope::ClippingMask, mask, + Properties::NON_VIRTUAL, __void__setResultMask__ClippingMask, "", ""); I_Method0(osg::Polytope::ClippingMask, getResultMask, + Properties::NON_VIRTUAL, __ClippingMask__getResultMask, "", ""); I_Method0(osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, __MaskStack_R1__getMaskStack, "", ""); I_Method0(const osg::Polytope::MaskStack &, getMaskStack, + Properties::NON_VIRTUAL, __C5_MaskStack_R1__getMaskStack, "", ""); I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, __void__pushCurrentMask, "", ""); I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, __void__popCurrentMask, "", ""); I_Method1(bool, contains, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __bool__contains__C5_osg_Vec3_R1, "Check whether a vertex is contained within clipping set. ", ""); I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, __bool__contains__C5_std_vectorT1_Vec3__R1, "Check whether any part of vertex list is contained within clipping set. ", ""); I_Method1(bool, contains, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __bool__contains__C5_osg_BoundingSphere_R1, "Check whether any part of a bounding sphere is contained within clipping set. ", "Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking. "); I_Method1(bool, contains, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__contains__C5_osg_BoundingBox_R1, "Check whether any part of a bounding box is contained within clipping set. ", "Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking. "); I_Method1(bool, containsAllOf, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, __bool__containsAllOf__C5_std_vectorT1_Vec3__R1, "Check whether all of vertex list is contained with clipping set. ", ""); I_Method1(bool, containsAllOf, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, __bool__containsAllOf__C5_osg_BoundingSphere_R1, "Check whether the entire bounding sphere is contained within clipping set. ", ""); I_Method1(bool, containsAllOf, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__containsAllOf__C5_osg_BoundingBox_R1, "Check whether the entire bounding box is contained within clipping set. ", ""); I_Method1(void, transform, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__transform__C5_osg_Matrix_R1, "Transform the clipping set by matrix. ", "Note, this operations carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This makes this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__transformProvidingInverse__C5_osg_Matrix_R1, "Transform the clipping set by provide a pre inverted matrix. ", "see transform for details. "); @@ -183,42 +214,52 @@ BEGIN_VALUE_REFLECTOR(osg::fast_back_stack< osg::Polytope::ClippingMask >) "", ""); I_Constructor1(IN, const osg::fast_back_stack< osg::Polytope::ClippingMask > &, fbs, + Properties::NON_EXPLICIT, ____fast_back_stack__C5_fast_back_stack_R1, "", ""); I_Constructor1(IN, const osg::Polytope::ClippingMask &, value, + Properties::NON_EXPLICIT, ____fast_back_stack__C5_T_R1, "", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); I_Method0(unsigned int, size, + Properties::NON_VIRTUAL, __unsigned_int__size, "", ""); I_Method0(osg::Polytope::ClippingMask &, back, + Properties::NON_VIRTUAL, __T_R1__back, "", ""); I_Method0(const osg::Polytope::ClippingMask &, back, + Properties::NON_VIRTUAL, __C5_T_R1__back, "", ""); I_Method0(void, push_back, + Properties::NON_VIRTUAL, __void__push_back, "", ""); I_Method1(void, push_back, IN, const osg::Polytope::ClippingMask &, value, + Properties::NON_VIRTUAL, __void__push_back__C5_T_R1, "", ""); I_Method0(void, pop_back, + Properties::NON_VIRTUAL, __void__pop_back, "", ""); diff --git a/src/osgWrappers/osg/PositionAttitudeTransform.cpp b/src/osgWrappers/osg/PositionAttitudeTransform.cpp index 2e41462ae..360403918 100644 --- a/src/osgWrappers/osg/PositionAttitudeTransform.cpp +++ b/src/osgWrappers/osg/PositionAttitudeTransform.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) I_BaseType(osg::Transform); I_Constructor0(____PositionAttitudeTransform, "", @@ -36,74 +36,92 @@ BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, __PositionAttitudeTransform_P1__asPositionAttitudeTransform, "", ""); I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, "", ""); I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, __C5_Vec3d_R1__getPosition, "", ""); I_Method1(void, setAttitude, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setAttitude__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, __C5_Quat_R1__getAttitude, "", ""); I_Method1(void, setScale, IN, const osg::Vec3d &, scale, + Properties::NON_VIRTUAL, __void__setScale__C5_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getScale, + Properties::NON_VIRTUAL, __C5_Vec3d_R1__getScale, "", ""); I_Method1(void, setPivotPoint, IN, const osg::Vec3d &, pivot, + Properties::NON_VIRTUAL, __void__setPivotPoint__C5_Vec3d_R1, "", ""); I_Method0(const osg::Vec3d &, getPivotPoint, + Properties::NON_VIRTUAL, __C5_Vec3d_R1__getPivotPoint, "", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "", ""); diff --git a/src/osgWrappers/osg/PrimitiveSet.cpp b/src/osgWrappers/osg/PrimitiveSet.cpp index 51e73e902..361c47c58 100644 --- a/src/osgWrappers/osg/PrimitiveSet.cpp +++ b/src/osgWrappers/osg/PrimitiveSet.cpp @@ -28,10 +28,11 @@ TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type); -BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawArrayLengths) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLsizei); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, ____DrawArrayLengths__GLenum, "", ""); @@ -52,58 +53,72 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, __void__setFirst__GLint, "", ""); I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, __GLint__getFirst, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, __void__offsetIndices__int, "", ""); I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, __unsigned_int__getNumPrimitives, "", ""); @@ -112,9 +127,10 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrayLengths) __void__setFirst__GLint); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawArrays) I_BaseType(osg::PrimitiveSet); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, ____DrawArrays__GLenum, "", ""); @@ -127,66 +143,82 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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_Method3(void, set, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::NON_VIRTUAL, __void__set__GLenum__GLint__GLsizei, "", ""); I_Method1(void, setFirst, IN, GLint, first, + Properties::NON_VIRTUAL, __void__setFirst__GLint, "", ""); I_Method0(GLint, getFirst, + Properties::NON_VIRTUAL, __GLint__getFirst, "", ""); I_Method1(void, setCount, IN, GLsizei, count, + Properties::NON_VIRTUAL, __void__setCount__GLsizei, "", ""); I_Method0(GLsizei, getCount, + Properties::NON_VIRTUAL, __GLsizei__getCount, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, __void__offsetIndices__int, "", ""); @@ -200,10 +232,11 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type); -BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawElementsUByte) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLubyte); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, ____DrawElementsUByte__GLenum, "", ""); @@ -220,70 +253,87 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUByte) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, __bool__supportsBufferObject, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, __void__offsetIndices__int, "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(void, computeRange, + Properties::VIRTUAL, __void__computeRange, "", ""); @@ -297,10 +347,11 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type); -BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawElementsUInt) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLuint); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, ____DrawElementsUInt__GLenum, "", ""); @@ -317,70 +368,87 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUInt) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, __bool__supportsBufferObject, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, __void__offsetIndices__int, "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(void, computeRange, + Properties::VIRTUAL, __void__computeRange, "", ""); @@ -394,10 +462,11 @@ END_REFLECTOR TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type); -BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawElementsUShort) I_BaseType(osg::PrimitiveSet); I_BaseType(osg::VectorGLushort); I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, ____DrawElementsUShort__GLenum, "", ""); @@ -414,70 +483,87 @@ BEGIN_OBJECT_REFLECTOR(osg::DrawElementsUShort) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, __bool__supportsBufferObject, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::VIRTUAL, __void__offsetIndices__int, "", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(void, computeRange, + Properties::VIRTUAL, __void__computeRange, "", ""); @@ -494,62 +580,77 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) "", ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec2_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec3_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec4_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::PURE_VIRTUAL, __void__drawArrays__GLenum__GLint__GLsizei, "Mimics the OpenGL glDrawArrays() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, __void__begin__GLenum, "Mimics the OpenGL glBegin() function. ", ""); I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + Properties::PURE_VIRTUAL, __void__vertex__C5_Vec2_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + Properties::PURE_VIRTUAL, __void__vertex__C5_Vec3_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + Properties::PURE_VIRTUAL, __void__vertex__C5_Vec4_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method2(void, vertex, IN, float, x, IN, float, y, + Properties::PURE_VIRTUAL, __void__vertex__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method3(void, vertex, IN, float, x, IN, float, y, IN, float, z, + Properties::PURE_VIRTUAL, __void__vertex__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method4(void, vertex, IN, float, x, IN, float, y, IN, float, z, IN, float, w, + Properties::PURE_VIRTUAL, __void__vertex__float__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method0(void, end, + Properties::PURE_VIRTUAL, __void__end, "Mimics the OpenGL glEnd() function. ", ""); @@ -560,42 +661,52 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) "", ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec2_P1, "", ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec3_P1, "", ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, vertices, + Properties::PURE_VIRTUAL, __void__setVertexArray__unsigned_int__C5_Vec4_P1, "", ""); I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::PURE_VIRTUAL, __void__drawArrays__GLenum__GLint__GLsizei, "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::PURE_VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, "", ""); I_Method1(void, begin, IN, GLenum, mode, + Properties::PURE_VIRTUAL, __void__begin__GLenum, "", ""); I_Method1(void, vertex, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, __void__vertex__unsigned_int, "", ""); I_Method0(void, end, + Properties::PURE_VIRTUAL, __void__end, "", ""); @@ -634,90 +745,112 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + 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(osg::PrimitiveSet::Type, getType, + Properties::NON_VIRTUAL, __Type__getType, "", ""); I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, __C5_GLvoid_P1__getDataPointer, "", ""); I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, __unsigned_int__getTotalDataSize, "", ""); I_Method0(bool, supportsBufferObject, + Properties::VIRTUAL, __bool__supportsBufferObject, "", ""); I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__setMode__GLenum, "", ""); I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, __GLenum__getMode, "", ""); I_Method2(void, draw, IN, osg::State &, state, IN, bool, useVertexBufferObjects, + Properties::PURE_VIRTUAL, __void__draw__State_R1__bool, "", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, functor, + Properties::PURE_VIRTUAL, __void__accept__PrimitiveFunctor_R1, "", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, functor, + Properties::PURE_VIRTUAL, __void__accept__PrimitiveIndexFunctor_R1, "", ""); I_Method1(unsigned int, index, IN, unsigned int, pos, + Properties::PURE_VIRTUAL, __unsigned_int__index__unsigned_int, "", ""); I_Method0(unsigned int, getNumIndices, + Properties::PURE_VIRTUAL, __unsigned_int__getNumIndices, "", ""); I_Method1(void, offsetIndices, IN, int, offset, + Properties::PURE_VIRTUAL, __void__offsetIndices__int, "", ""); I_Method0(unsigned int, getNumPrimitives, + Properties::VIRTUAL, __unsigned_int__getNumPrimitives, "", ""); I_Method0(void, dirty, + Properties::NON_VIRTUAL, __void__dirty, "Dirty the primitive, which increments the modified count, to force buffer objects to update. ", ""); I_Method1(void, setModifiedCount, IN, unsigned int, value, + Properties::NON_VIRTUAL, __void__setModifiedCount__unsigned_int, "Set the modified count value. ", ""); I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, __unsigned_int__getModifiedCount, "Get modified count value. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(void, computeRange, + Properties::VIRTUAL, __void__computeRange, "", ""); @@ -744,6 +877,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLsizei) "", ""); I_Constructor1(IN, const osg::VectorGLsizei &, copy, + Properties::NON_EXPLICIT, ____VectorGLsizei__C5_VectorGLsizei_R1, "", ""); @@ -752,6 +886,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLsizei) "", ""); I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, ____VectorGLsizei__unsigned_int, "", ""); @@ -763,6 +898,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLubyte) "", ""); I_Constructor1(IN, const osg::VectorGLubyte &, copy, + Properties::NON_EXPLICIT, ____VectorGLubyte__C5_VectorGLubyte_R1, "", ""); @@ -771,6 +907,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLubyte) "", ""); I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, ____VectorGLubyte__unsigned_int, "", ""); @@ -782,6 +919,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) "", ""); I_Constructor1(IN, const osg::VectorGLuint &, copy, + Properties::NON_EXPLICIT, ____VectorGLuint__C5_VectorGLuint_R1, "", ""); @@ -790,6 +928,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLuint) "", ""); I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, ____VectorGLuint__unsigned_int, "", ""); @@ -801,6 +940,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) "", ""); I_Constructor1(IN, const osg::VectorGLushort &, copy, + Properties::NON_EXPLICIT, ____VectorGLushort__C5_VectorGLushort_R1, "", ""); @@ -809,6 +949,7 @@ BEGIN_OBJECT_REFLECTOR(osg::VectorGLushort) "", ""); I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, ____VectorGLushort__unsigned_int, "", ""); diff --git a/src/osgWrappers/osg/Program.cpp b/src/osgWrappers/osg/Program.cpp index 789b6f429..a3e25d90b 100644 --- a/src/osgWrappers/osg/Program.cpp +++ b/src/osgWrappers/osg/Program.cpp @@ -30,7 +30,7 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA GLuint >, osg::Program::AttribBindi TYPE_NAME_ALIAS(std::map< std::string COMMA osg::Program::ActiveVarInfo >, osg::Program::ActiveVarInfoMap); -BEGIN_OBJECT_REFLECTOR(osg::Program) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Program) I_BaseType(osg::StateAttribute); I_Constructor0(____Program, "", @@ -40,106 +40,132 @@ BEGIN_OBJECT_REFLECTOR(osg::Program) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_osg_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__osg_State_R1, "If enabled, activate our program in the GL pipeline, performing any rebuild operations that might be pending. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileGLObjects__osg_State_R1, "Compile program and associated shaders. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objects for all graphics context if State object pointer NULL. ", ""); I_Method0(void, dirtyProgram, + Properties::NON_VIRTUAL, __void__dirtyProgram, "Mark our PCSOs as needing relink. ", ""); I_Method1(bool, addShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, __bool__addShader__Shader_P1, "Attach an osg::Shader to this osg::Program. ", "Mark Program as needing relink. Return true for success "); I_Method0(unsigned int, getNumShaders, + Properties::NON_VIRTUAL, __unsigned_int__getNumShaders, "", ""); I_Method1(osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Shader_P1__getShader__unsigned_int, "", ""); I_Method1(const osg::Shader *, getShader, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Shader_P1__getShader__unsigned_int, "", ""); I_Method1(bool, removeShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, __bool__removeShader__Shader_P1, "Remove osg::Shader from this osg::Program. ", "Mark Program as needing relink. Return true for success "); I_Method2(void, addBindAttribLocation, IN, const std::string &, name, IN, GLuint, index, + Properties::NON_VIRTUAL, __void__addBindAttribLocation__C5_std_string_R1__GLuint, "Add an attribute location binding. ", ""); I_Method1(void, removeBindAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__removeBindAttribLocation__C5_std_string_R1, "Add an attribute location binding. ", ""); I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + Properties::NON_VIRTUAL, __C5_AttribBindingList_R1__getAttribBindingList, "", ""); I_Method0(bool, isFixedFunction, + Properties::NON_VIRTUAL, __bool__isFixedFunction, "Return true if this Program represents \"fixed-functionality\" rendering. ", ""); I_Method2(bool, getGlProgramInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + Properties::NON_VIRTUAL, __bool__getGlProgramInfoLog__unsigned_int__std_string_R1, "Query InfoLog from a glProgram. ", ""); I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __C5_ActiveVarInfoMap_R1__getActiveUniforms__unsigned_int, "", ""); I_Method1(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __C5_ActiveVarInfoMap_R1__getActiveAttribs__unsigned_int, "", ""); I_Method1(osg::Program::PerContextProgram *, getPCP, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __PerContextProgram_P1__getPCP__unsigned_int, "Get the PCP for a particular GL context. ", ""); @@ -182,65 +208,79 @@ BEGIN_VALUE_REFLECTOR(osg::Program::ActiveVarInfo) I_PublicMemberProperty(GLint, _size); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Program::PerContextProgram) I_BaseType(osg::Referenced); I_Constructor2(IN, const osg::Program *, program, IN, unsigned int, contextID, ____PerContextProgram__C5_Program_P1__unsigned_int, "", ""); I_Method0(GLuint, getHandle, + Properties::NON_VIRTUAL, __GLuint__getHandle, "", ""); I_Method0(void, requestLink, + Properties::NON_VIRTUAL, __void__requestLink, "", ""); I_Method0(void, linkProgram, + Properties::NON_VIRTUAL, __void__linkProgram, "", ""); I_Method0(bool, validateProgram, + Properties::NON_VIRTUAL, __bool__validateProgram, "", ""); I_Method0(bool, needsLink, + Properties::NON_VIRTUAL, __bool__needsLink, "", ""); I_Method0(bool, isLinked, + Properties::NON_VIRTUAL, __bool__isLinked, "", ""); I_Method1(bool, getInfoLog, IN, std::string &, infoLog, + Properties::NON_VIRTUAL, __bool__getInfoLog__std_string_R1, "", ""); I_Method0(void, useProgram, + Properties::NON_VIRTUAL, __void__useProgram, "", ""); I_Method0(void, resetAppliedUniforms, + Properties::NON_VIRTUAL, __void__resetAppliedUniforms, "", ""); I_Method1(void, apply, IN, const osg::Uniform &, uniform, + Properties::NON_VIRTUAL, __void__apply__C5_Uniform_R1, "", ""); I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveUniforms, + Properties::NON_VIRTUAL, __C5_ActiveVarInfoMap_R1__getActiveUniforms, "", ""); I_Method0(const osg::Program::ActiveVarInfoMap &, getActiveAttribs, + Properties::NON_VIRTUAL, __C5_ActiveVarInfoMap_R1__getActiveAttribs, "", ""); I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, __GLint__getUniformLocation__C5_std_string_R1, "", ""); I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, __GLint__getAttribLocation__C5_std_string_R1, "", ""); diff --git a/src/osgWrappers/osg/Projection.cpp b/src/osgWrappers/osg/Projection.cpp index 95e0d126a..74e0f3d97 100644 --- a/src/osgWrappers/osg/Projection.cpp +++ b/src/osgWrappers/osg/Projection.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Projection) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Projection) I_BaseType(osg::Group); I_Constructor0(____Projection, "", @@ -34,46 +34,57 @@ BEGIN_OBJECT_REFLECTOR(osg::Projection) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Constructor1(IN, const osg::Matrix &, matix, + Properties::NON_EXPLICIT, ____Projection__C5_Matrix_R1, "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setMatrix, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__setMatrix__C5_Matrix_R1, "Set the transform's matrix. ", ""); I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __C5_Matrix_R1__getMatrix, "Get the transform's matrix. ", ""); I_Method1(void, preMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__preMult__C5_Matrix_R1, "preMult transform. ", ""); I_Method1(void, postMult, IN, const osg::Matrix &, mat, + Properties::NON_VIRTUAL, __void__postMult__C5_Matrix_R1, "postMult transform. ", ""); diff --git a/src/osgWrappers/osg/ProxyNode.cpp b/src/osgWrappers/osg/ProxyNode.cpp index 44fb210e4..1f5ecc00d 100644 --- a/src/osgWrappers/osg/ProxyNode.cpp +++ b/src/osgWrappers/osg/ProxyNode.cpp @@ -33,7 +33,7 @@ BEGIN_ENUM_REFLECTOR(osg::ProxyNode::CenterMode) I_EnumLabel(osg::ProxyNode::USER_DEFINED_CENTER); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ProxyNode) I_BaseType(osg::Group); I_Constructor0(____ProxyNode, "", @@ -43,90 +43,112 @@ BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method2(bool, addChild, IN, osg::Node *, child, IN, const std::string &, filename, + Properties::VIRTUAL, __bool__addChild__Node_P1__C5_std_string_R1, "", ""); I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, __bool__removeChildren__unsigned_int__unsigned_int, "Remove children from Group. ", "Note, must be override by subclasses of Group which add per child attributes. "); I_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, __void__setDatabasePath__C5_std_string_R1, "Set the database path to prepend to children's filenames. ", ""); I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDatabasePath, "Get the database path used to prepend to children's filenames. ", ""); I_Method2(void, setFileName, IN, unsigned int, childNo, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setFileName__unsigned_int__C5_std_string_R1, "", ""); I_Method1(const std::string &, getFileName, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFileName__unsigned_int, "", ""); I_Method0(unsigned int, getNumFileNames, + Properties::NON_VIRTUAL, __unsigned_int__getNumFileNames, "", ""); I_Method1(void, setCenterMode, IN, osg::ProxyNode::CenterMode, mode, + Properties::NON_VIRTUAL, __void__setCenterMode__CenterMode, "Set how the center of object should be determined when computed which child is active. ", ""); I_Method0(osg::ProxyNode::CenterMode, getCenterMode, + Properties::NON_VIRTUAL, __CenterMode__getCenterMode, "Get how the center of object should be determined when computed which child is active. ", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "Sets the object-space point which defines the center of the osg::ProxyNode. ", "center is affected by any transforms in the hierarchy above the osg::ProxyNode. "); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "return the ProxyNode center point. ", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "Set the object-space reference radius of the volume enclosed by the ProxyNode. ", "Used to detmine the bounding sphere of the ProxyNode in the absense of any children. "); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "Get the object-space radius of the volume enclosed by the ProxyNode. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osg/Quat.cpp b/src/osgWrappers/osg/Quat.cpp index 84c8f3bee..dc806d967 100644 --- a/src/osgWrappers/osg/Quat.cpp +++ b/src/osgWrappers/osg/Quat.cpp @@ -41,10 +41,12 @@ BEGIN_VALUE_REFLECTOR(osg::Quat) "", ""); I_Constructor1(IN, const osg::Vec4f &, v, + Properties::NON_EXPLICIT, ____Quat__C5_Vec4f_R1, "", ""); I_Constructor1(IN, const osg::Vec4d &, v, + Properties::NON_EXPLICIT, ____Quat__C5_Vec4d_R1, "", ""); @@ -65,138 +67,172 @@ BEGIN_VALUE_REFLECTOR(osg::Quat) "", ""); I_Method0(osg::Vec4d, asVec4, + Properties::NON_VIRTUAL, __Vec4d__asVec4, "", ""); I_Method0(osg::Vec3d, asVec3, + Properties::NON_VIRTUAL, __Vec3d__asVec3, "", ""); I_Method4(void, set, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec4f &, v, + Properties::NON_VIRTUAL, __void__set__C5_osg_Vec4f_R1, "", ""); I_Method1(void, set, IN, const osg::Vec4d &, v, + Properties::NON_VIRTUAL, __void__set__C5_osg_Vec4d_R1, "", ""); I_Method1(void, set, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __void__set__C5_Matrixf_R1, "", ""); I_Method1(void, set, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__set__C5_Matrixd_R1, "", ""); I_Method1(void, get, IN, osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __void__get__Matrixf_R1, "", ""); I_Method1(void, get, IN, osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__get__Matrixd_R1, "", ""); I_Method0(osg::Quat::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Quat::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Quat::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Quat::value_type &, w, + Properties::NON_VIRTUAL, __value_type_R1__w, "", ""); I_Method0(osg::Quat::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Quat::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Quat::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Quat::value_type, w, + Properties::NON_VIRTUAL, __value_type__w, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "return true if the Quat represents a zero rotation, and therefore can be ignored in computations. ", ""); I_Method0(osg::Quat::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the quaternion = sqrt( vec . vec ). ", ""); I_Method0(osg::Quat::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length of the quaternion = vec . vec. ", ""); I_Method0(osg::Quat, conj, + Properties::NON_VIRTUAL, __Quat__conj, "Conjugate. ", ""); I_Method0(const osg::Quat, inverse, + Properties::NON_VIRTUAL, __C5_Quat__inverse, "Multiplicative inverse method: q^(-1) = q^*/(q.q^*). ", ""); I_Method4(void, makeRotate, IN, osg::Quat::value_type, angle, IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__value_type__value_type__value_type, "", ""); I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, vec, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1, "", ""); I_Method2(void, makeRotate, IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, vec, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3f &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3f &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3f &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, "", ""); I_Method6(void, makeRotate, IN, osg::Quat::value_type, angle1, IN, const osg::Vec3d &, axis1, IN, osg::Quat::value_type, angle2, IN, const osg::Vec3d &, axis2, IN, osg::Quat::value_type, angle3, IN, const osg::Vec3d &, axis3, + Properties::NON_VIRTUAL, __void__makeRotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, "", ""); I_Method2(void, makeRotate, IN, const osg::Vec3f &, vec1, IN, const osg::Vec3f &, vec2, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3f_R1__C5_Vec3f_R1, "Make a rotation Quat which will rotate vec1 to vec2. ", "Generally take a dot product to get the angle between these and then use a cross product to get the rotation axis Watch out for the two special cases when the vectors are co-incident or opposite in direction. "); I_Method2(void, makeRotate, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2, + Properties::NON_VIRTUAL, __void__makeRotate__C5_Vec3d_R1__C5_Vec3d_R1, "Make a rotation Quat which will rotate vec1 to vec2. ", "Generally take a dot product to get the angle between these and then use a cross product to get the rotation axis Watch out for the two special cases of when the vectors are co-incident or opposite in direction. "); I_Method2(void, makeRotate_original, IN, const osg::Vec3d &, vec1, IN, const osg::Vec3d &, vec2, + Properties::NON_VIRTUAL, __void__makeRotate_original__C5_Vec3d_R1__C5_Vec3d_R1, "", ""); I_Method4(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Quat::value_type &, x, IN, osg::Quat::value_type &, y, IN, osg::Quat::value_type &, z, + Properties::NON_VIRTUAL, __void__getRotate__value_type_R1__value_type_R1__value_type_R1__value_type_R1, "Return the angle and vector components represented by the quaternion. ", ""); I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3f &, vec, + Properties::NON_VIRTUAL, __void__getRotate__value_type_R1__Vec3f_R1, "Return the angle and vector represented by the quaternion. ", ""); I_Method2(void, getRotate, IN, osg::Quat::value_type &, angle, IN, osg::Vec3d &, vec, + Properties::NON_VIRTUAL, __void__getRotate__value_type_R1__Vec3d_R1, "Return the angle and vector represented by the quaternion. ", ""); I_Method3(void, slerp, IN, osg::Quat::value_type, t, IN, const osg::Quat &, from, IN, const osg::Quat &, to, + Properties::NON_VIRTUAL, __void__slerp__value_type__C5_Quat_R1__C5_Quat_R1, "Spherical Linear Interpolation. ", "As t goes from 0 to 1, the Quat object goes from \"from\" to \"to\". "); diff --git a/src/osgWrappers/osg/Referenced.cpp b/src/osgWrappers/osg/Referenced.cpp index 44a71ddcc..17bc16a58 100644 --- a/src/osgWrappers/osg/Referenced.cpp +++ b/src/osgWrappers/osg/Referenced.cpp @@ -22,47 +22,57 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Referenced) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Referenced) I_Constructor0(____Referenced, "", ""); I_Constructor1(IN, bool, threadSafeRefUnref, + Properties::EXPLICIT, ____Referenced__bool, "", ""); I_Constructor1(IN, const osg::Referenced &, x, + Properties::NON_EXPLICIT, ____Referenced__C5_Referenced_R1, "", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method0(bool, getThreadSafeRefUnref, + Properties::NON_VIRTUAL, __bool__getThreadSafeRefUnref, "Get whether a mutex is used to ensure ref() and unref() are thread safe. ", ""); I_Method0(void, ref, + Properties::NON_VIRTUAL, __void__ref, "Increment the reference count by one, indicating that this object has another pointer which is referencing it. ", ""); I_Method0(void, unref, + Properties::NON_VIRTUAL, __void__unref, "Decrement the reference count by one, indicating that a pointer to this object is referencing it. ", "If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted. "); I_Method0(void, unref_nodelete, + Properties::NON_VIRTUAL, __void__unref_nodelete, "Decrement the reference count by one, indicating that a pointer to this object is referencing it. ", "However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be resonsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks. "); I_Method0(int, referenceCount, + Properties::NON_VIRTUAL, __int__referenceCount, "Return the number pointers currently referencing this object. ", ""); I_Method1(void, addObserver, IN, osg::Observer *, observer, + Properties::NON_VIRTUAL, __void__addObserver__Observer_P1, "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", ""); I_Method1(void, removeObserver, IN, osg::Observer *, observer, + Properties::NON_VIRTUAL, __void__removeObserver__Observer_P1, "Add a Observer that is observering this object, notify the Observer when this object gets deleted. ", ""); diff --git a/src/osgWrappers/osg/RenderInfo.cpp b/src/osgWrappers/osg/RenderInfo.cpp index 716a83d26..62e116aa6 100644 --- a/src/osgWrappers/osg/RenderInfo.cpp +++ b/src/osgWrappers/osg/RenderInfo.cpp @@ -28,6 +28,7 @@ BEGIN_VALUE_REFLECTOR(osg::RenderInfo) "", ""); I_Constructor1(IN, const osg::RenderInfo &, rhs, + Properties::NON_EXPLICIT, ____RenderInfo__C5_RenderInfo_R1, "", ""); @@ -36,42 +37,52 @@ BEGIN_VALUE_REFLECTOR(osg::RenderInfo) "", ""); I_Method0(unsigned int, getContextID, + Properties::NON_VIRTUAL, __unsigned_int__getContextID, "", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__State_P1, "", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __State_P1__getState, "", ""); I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, __C5_State_P1__getState, "", ""); I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, __void__setView__View_P1, "", ""); I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, __View_P1__getView, "", ""); I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, __C5_View_P1__getView, "", ""); I_Method1(void, setUserData, IN, osg::Referenced *, userData, + Properties::NON_VIRTUAL, __void__setUserData__Referenced_P1, "", ""); I_Method0(osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __Referenced_P1__getUserData, "", ""); I_Method0(const osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __C5_Referenced_P1__getUserData, "", ""); diff --git a/src/osgWrappers/osg/Scissor.cpp b/src/osgWrappers/osg/Scissor.cpp index 4975acf3d..47230c11a 100644 --- a/src/osgWrappers/osg/Scissor.cpp +++ b/src/osgWrappers/osg/Scissor.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Scissor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Scissor) I_BaseType(osg::StateAttribute); I_Constructor0(____Scissor, "", @@ -38,78 +38,97 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setScissor__int__int__int__int, "", ""); I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + Properties::NON_VIRTUAL, __void__getScissor__int_R1__int_R1__int_R1__int_R1, "", ""); I_Method0(int &, x, + Properties::NON_VIRTUAL, __int_R1__x, "", ""); I_Method0(int, x, + Properties::NON_VIRTUAL, __int__x, "", ""); I_Method0(int &, y, + Properties::NON_VIRTUAL, __int_R1__y, "", ""); I_Method0(int, y, + Properties::NON_VIRTUAL, __int__y, "", ""); I_Method0(int &, width, + Properties::NON_VIRTUAL, __int_R1__width, "", ""); I_Method0(int, width, + Properties::NON_VIRTUAL, __int__width, "", ""); I_Method0(int &, height, + Properties::NON_VIRTUAL, __int_R1__height, "", ""); I_Method0(int, height, + Properties::NON_VIRTUAL, __int__height, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/Sequence.cpp b/src/osgWrappers/osg/Sequence.cpp index 902e25ff3..2afb6529e 100644 --- a/src/osgWrappers/osg/Sequence.cpp +++ b/src/osgWrappers/osg/Sequence.cpp @@ -35,7 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::Sequence::SequenceMode) I_EnumLabel(osg::Sequence::RESUME); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Sequence) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Sequence) I_BaseType(osg::Group); I_Constructor0(____Sequence, "", @@ -45,82 +45,102 @@ BEGIN_OBJECT_REFLECTOR(osg::Sequence) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setValue, IN, int, value, + Properties::NON_VIRTUAL, __void__setValue__int, "", ""); I_Method0(int, getValue, + Properties::NON_VIRTUAL, __int__getValue, "", ""); I_Method2(void, setTime, IN, int, frame, IN, float, t, + Properties::NON_VIRTUAL, __void__setTime__int__float, "Set time in seconds for child. ", ""); I_Method1(float, getTime, IN, int, frame, + Properties::NON_VIRTUAL, __float__getTime__int, "Get time for child. ", ""); I_Method1(void, setDefaultTime, IN, float, t, + Properties::NON_VIRTUAL, __void__setDefaultTime__float, "Set default time in seconds for new child. ", ""); I_Method0(float, getDefaultTime, + Properties::NON_VIRTUAL, __float__getDefaultTime, "Get default time in seconds for new child. ", ""); I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, __unsigned_int__getNumFrames, "Get number of frames. ", ""); I_Method3(void, setInterval, IN, osg::Sequence::LoopMode, mode, IN, int, begin, IN, int, end, + Properties::NON_VIRTUAL, __void__setInterval__LoopMode__int__int, "Set sequence mode & interval (range of children to be displayed). ", ""); I_Method3(void, getInterval, IN, osg::Sequence::LoopMode &, mode, IN, int &, begin, IN, int &, end, + Properties::NON_VIRTUAL, __void__getInterval__LoopMode_R1__int_R1__int_R1, "Get sequence mode & interval. ", ""); I_MethodWithDefaults2(void, setDuration, IN, float, speed, , IN, int, nreps, -1, + Properties::NON_VIRTUAL, __void__setDuration__float__int, "Set duration: speed-up & number of repeats. ", ""); I_Method2(void, getDuration, IN, float &, speed, IN, int &, nreps, + Properties::NON_VIRTUAL, __void__getDuration__float_R1__int_R1, "Get duration & number of repeats. ", ""); I_Method1(void, setMode, IN, osg::Sequence::SequenceMode, mode, + Properties::NON_VIRTUAL, __void__setMode__SequenceMode, "Set sequence mode. ", "Start/stop & pause/resume. "); I_Method0(osg::Sequence::SequenceMode, getMode, + Properties::NON_VIRTUAL, __SequenceMode__getMode, "Get sequence mode. ", ""); diff --git a/src/osgWrappers/osg/ShadeModel.cpp b/src/osgWrappers/osg/ShadeModel.cpp index 412001f05..9d9f228ff 100644 --- a/src/osgWrappers/osg/ShadeModel.cpp +++ b/src/osgWrappers/osg/ShadeModel.cpp @@ -29,7 +29,7 @@ BEGIN_ENUM_REFLECTOR(osg::ShadeModel::Mode) I_EnumLabel(osg::ShadeModel::SMOOTH); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ShadeModel) I_BaseType(osg::StateAttribute); I_Constructor0(____ShadeModel, "", @@ -39,42 +39,52 @@ BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setMode, IN, osg::ShadeModel::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::ShadeModel::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/Shader.cpp b/src/osgWrappers/osg/Shader.cpp index ea165901d..fbaac60a0 100644 --- a/src/osgWrappers/osg/Shader.cpp +++ b/src/osgWrappers/osg/Shader.cpp @@ -29,9 +29,10 @@ BEGIN_ENUM_REFLECTOR(osg::Shader::Type) I_EnumLabel(osg::Shader::UNDEFINED); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Shader) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shader) I_BaseType(osg::Object); I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + Properties::NON_EXPLICIT, ____Shader__Type, "", ""); @@ -44,74 +45,92 @@ BEGIN_OBJECT_REFLECTOR(osg::Shader) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(int, compare, IN, const osg::Shader &, rhs, + Properties::NON_VIRTUAL, __int__compare__C5_Shader_R1, "", ""); I_Method1(bool, setType, IN, osg::Shader::Type, t, + Properties::NON_VIRTUAL, __bool__setType__Type, "", ""); I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + Properties::NON_VIRTUAL, __void__setShaderSource__C5_std_string_R1, "Load the Shader's source code text from a string. ", ""); I_Method1(bool, loadShaderSourceFromFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __bool__loadShaderSourceFromFile__C5_std_string_R1, "Load the Shader's source code text from a file. ", ""); I_Method0(const std::string &, getShaderSource, + Properties::NON_VIRTUAL, __C5_std_string_R1__getShaderSource, "Query the shader's source code text. ", ""); I_Method0(osg::Shader::Type, getType, + Properties::NON_VIRTUAL, __Type__getType, "Get the Shader type as an enum. ", ""); I_Method0(const char *, getTypename, + Properties::NON_VIRTUAL, __C5_char_P1__getTypename, "Get the Shader type as a descriptive string. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objects for all graphics context if State object pointer NULL. ", ""); I_Method0(void, dirtyShader, + Properties::NON_VIRTUAL, __void__dirtyShader, "Mark our PCSs as needing recompilation. ", "Also mark Programs that depend on us as needing relink "); I_Method1(void, compileShader, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__compileShader__unsigned_int, "If needed, compile the PCS's glShader. ", ""); I_Method2(void, attachShader, IN, unsigned int, contextID, IN, GLuint, program, + Properties::NON_VIRTUAL, __void__attachShader__unsigned_int__GLuint, "For a given GL context, attach a glShader to a glProgram. ", ""); I_Method2(bool, getGlShaderInfoLog, IN, unsigned int, contextID, IN, std::string &, log, + Properties::NON_VIRTUAL, __bool__getGlShaderInfoLog__unsigned_int__std_string_R1, "Query InfoLog from a glShader. ", ""); diff --git a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp index 46fa21388..45fb6e5a0 100644 --- a/src/osgWrappers/osg/ShadowVolumeOccluder.cpp +++ b/src/osgWrappers/osg/ShadowVolumeOccluder.cpp @@ -32,6 +32,7 @@ TYPE_NAME_ALIAS(std::vector< osg::Polytope >, osg::ShadowVolumeOccluder::HoleLis BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + Properties::NON_EXPLICIT, ____ShadowVolumeOccluder__C5_ShadowVolumeOccluder_R1, "", ""); @@ -39,70 +40,87 @@ BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) "", ""); I_MethodWithDefaults4(bool, computeOccluder, IN, const osg::NodePath &, nodePath, , IN, const osg::ConvexPlanarOccluder &, occluder, , IN, osg::CullStack &, cullStack, , IN, bool, createDrawables, false, + Properties::NON_VIRTUAL, __bool__computeOccluder__C5_NodePath_R1__C5_ConvexPlanarOccluder_R1__CullStack_R1__bool, "compute the shadow volume occluder. ", ""); I_Method0(void, disableResultMasks, + Properties::NON_VIRTUAL, __void__disableResultMasks, "", ""); I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, __void__pushCurrentMask, "", ""); I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, __void__popCurrentMask, "", ""); I_Method1(bool, matchProjectionMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __bool__matchProjectionMatrix__C5_osg_Matrix_R1, "return true if the matrix passed in matches the projection matrix that this ShadowVolumeOccluder is associated with. ", ""); I_Method1(void, setNodePath, IN, osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, __void__setNodePath__NodePath_R1, "Set the NodePath which describes which node in the scene graph that this occluder is attached to. ", ""); I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __NodePath_R1__getNodePath, "", ""); I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __C5_NodePath_R1__getNodePath, "", ""); I_Method0(float, getVolume, + Properties::NON_VIRTUAL, __float__getVolume, "get the volume of the occluder minus its holes, in eye coords, the volume is normalized by dividing by the volume of the view frustum in eye coords. ", ""); I_Method0(osg::Polytope &, getOccluder, + Properties::NON_VIRTUAL, __Polytope_R1__getOccluder, "return the occluder polytope. ", ""); I_Method0(const osg::Polytope &, getOccluder, + Properties::NON_VIRTUAL, __C5_Polytope_R1__getOccluder, "return the const occluder polytope. ", ""); I_Method0(osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, __HoleList_R1__getHoleList, "return the list of holes. ", ""); I_Method0(const osg::ShadowVolumeOccluder::HoleList &, getHoleList, + Properties::NON_VIRTUAL, __C5_HoleList_R1__getHoleList, "return the const list of holes. ", ""); I_Method1(bool, contains, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, __bool__contains__C5_std_vectorT1_Vec3__R1, "return true if the specified vertex list is contained entirely within this shadow occluder volume. ", ""); I_Method1(bool, contains, IN, const osg::BoundingSphere &, bound, + Properties::NON_VIRTUAL, __bool__contains__C5_BoundingSphere_R1, "return true if the specified bounding sphere is contained entirely within this shadow occluder volume. ", ""); I_Method1(bool, contains, IN, const osg::BoundingBox &, bound, + Properties::NON_VIRTUAL, __bool__contains__C5_BoundingBox_R1, "return true if the specified bounding box is contained entirely within this shadow occluder volume. ", ""); I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__transformProvidingInverse__C5_osg_Matrix_R1, "", ""); diff --git a/src/osgWrappers/osg/Shape.cpp b/src/osgWrappers/osg/Shape.cpp index d96994408..e53246405 100644 --- a/src/osgWrappers/osg/Shape.cpp +++ b/src/osgWrappers/osg/Shape.cpp @@ -27,7 +27,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Box) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Box) I_BaseType(osg::Shape); I_Constructor0(____Box, "", @@ -45,70 +45,87 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method2(void, set, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__C5_Vec3_R1, "", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "", ""); I_Method1(void, setHalfLengths, IN, const osg::Vec3 &, halfLengths, + Properties::NON_VIRTUAL, __void__setHalfLengths__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getHalfLengths, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getHalfLengths, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, __Matrix__computeRotationMatrix, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "", ""); @@ -123,7 +140,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Box) __void__setRotation__C5_Quat_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Capsule) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Capsule) I_BaseType(osg::Shape); I_Constructor0(____Capsule, "", @@ -137,78 +154,97 @@ BEGIN_OBJECT_REFLECTOR(osg::Capsule) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__float__float, "", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "", ""); I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, __void__setHeight__float, "", ""); I_Method0(float, getHeight, + Properties::NON_VIRTUAL, __float__getHeight, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, __Matrix__computeRotationMatrix, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "", ""); @@ -228,7 +264,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Shape > >, osg::CompositeShape::ChildList); -BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CompositeShape) I_BaseType(osg::Shape); I_Constructor0(____CompositeShape, "", @@ -238,66 +274,82 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, setShape, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, __void__setShape__Shape_P1, "Set the shape that encloses all of the children. ", ""); I_Method0(osg::Shape *, getShape, + Properties::NON_VIRTUAL, __Shape_P1__getShape, "Get the shape that encloses all of the children. ", ""); I_Method0(const osg::Shape *, getShape, + Properties::NON_VIRTUAL, __C5_Shape_P1__getShape, "Get the const shape that encloses all of the children. ", ""); I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildren, "Get the number of children of this composite shape. ", ""); I_Method1(osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Shape_P1__getChild__unsigned_int, "Get a child. ", ""); I_Method1(const osg::Shape *, getChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Shape_P1__getChild__unsigned_int, "Get a const child. ", ""); I_Method1(void, addChild, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, __void__addChild__Shape_P1, "Add a child to the list. ", ""); I_Method1(void, removeChild, IN, unsigned int, i, + Properties::NON_VIRTUAL, __void__removeChild__unsigned_int, "remove a child from the list. ", ""); I_Method1(unsigned int, findChildNo, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, __unsigned_int__findChildNo__Shape_P1, "find the index number of child, if child is not found then it returns getNumChildren(), so should be used in similar style to STL's result!=end(). ", ""); @@ -313,7 +365,7 @@ BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) __void__setShape__Shape_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Cone) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Cone) I_BaseType(osg::Shape); I_Constructor0(____Cone, "", @@ -327,86 +379,107 @@ BEGIN_OBJECT_REFLECTOR(osg::Cone) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__float__float, "", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "", ""); I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, __void__setHeight__float, "", ""); I_Method0(float, getHeight, + Properties::NON_VIRTUAL, __float__getHeight, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, __Matrix__computeRotationMatrix, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "", ""); I_Method0(float, getBaseOffsetFactor, + Properties::NON_VIRTUAL, __float__getBaseOffsetFactor, "", ""); I_Method0(float, getBaseOffset, + Properties::NON_VIRTUAL, __float__getBaseOffset, "", ""); @@ -430,53 +503,63 @@ BEGIN_OBJECT_REFLECTOR(osg::Cone) __void__setRotation__C5_Quat_R1); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ConstShapeVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ConstShapeVisitor) I_Constructor0(____ConstShapeVisitor, "", ""); I_Method1(void, apply, IN, const osg::Sphere &, x, + Properties::VIRTUAL, __void__apply__C5_Sphere_R1, "", ""); I_Method1(void, apply, IN, const osg::Box &, x, + Properties::VIRTUAL, __void__apply__C5_Box_R1, "", ""); I_Method1(void, apply, IN, const osg::Cone &, x, + Properties::VIRTUAL, __void__apply__C5_Cone_R1, "", ""); I_Method1(void, apply, IN, const osg::Cylinder &, x, + Properties::VIRTUAL, __void__apply__C5_Cylinder_R1, "", ""); I_Method1(void, apply, IN, const osg::Capsule &, x, + Properties::VIRTUAL, __void__apply__C5_Capsule_R1, "", ""); I_Method1(void, apply, IN, const osg::InfinitePlane &, x, + Properties::VIRTUAL, __void__apply__C5_InfinitePlane_R1, "", ""); I_Method1(void, apply, IN, const osg::TriangleMesh &, x, + Properties::VIRTUAL, __void__apply__C5_TriangleMesh_R1, "", ""); I_Method1(void, apply, IN, const osg::ConvexHull &, x, + Properties::VIRTUAL, __void__apply__C5_ConvexHull_R1, "", ""); I_Method1(void, apply, IN, const osg::HeightField &, x, + Properties::VIRTUAL, __void__apply__C5_HeightField_R1, "", ""); I_Method1(void, apply, IN, const osg::CompositeShape &, x, + Properties::VIRTUAL, __void__apply__C5_CompositeShape_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ConvexHull) I_BaseType(osg::TriangleMesh); I_Constructor0(____ConvexHull, "", @@ -486,36 +569,43 @@ BEGIN_OBJECT_REFLECTOR(osg::ConvexHull) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Cylinder) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Cylinder) I_BaseType(osg::Shape); I_Constructor0(____Cylinder, "", @@ -529,78 +619,97 @@ BEGIN_OBJECT_REFLECTOR(osg::Cylinder) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method3(void, set, IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__float__float, "", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "", ""); I_Method1(void, setHeight, IN, float, height, + Properties::NON_VIRTUAL, __void__setHeight__float, "", ""); I_Method0(float, getHeight, + Properties::NON_VIRTUAL, __float__getHeight, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, __Matrix__computeRotationMatrix, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "", ""); @@ -620,7 +729,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< float >, osg::HeightField::HeightList); -BEGIN_OBJECT_REFLECTOR(osg::HeightField) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::HeightField) I_BaseType(osg::Shape); I_Constructor0(____HeightField, "", @@ -630,130 +739,162 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method2(void, allocate, IN, unsigned int, numColumns, IN, unsigned int, numRows, + Properties::NON_VIRTUAL, __void__allocate__unsigned_int__unsigned_int, "", ""); I_Method0(unsigned int, getNumColumns, + Properties::NON_VIRTUAL, __unsigned_int__getNumColumns, "", ""); I_Method0(unsigned int, getNumRows, + Properties::NON_VIRTUAL, __unsigned_int__getNumRows, "", ""); I_Method1(void, setOrigin, IN, const osg::Vec3 &, origin, + Properties::NON_VIRTUAL, __void__setOrigin__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getOrigin, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getOrigin, "", ""); I_Method1(void, setXInterval, IN, float, dx, + Properties::NON_VIRTUAL, __void__setXInterval__float, "", ""); I_Method0(float, getXInterval, + Properties::NON_VIRTUAL, __float__getXInterval, "", ""); I_Method1(void, setYInterval, IN, float, dy, + Properties::NON_VIRTUAL, __void__setYInterval__float, "", ""); I_Method0(float, getYInterval, + Properties::NON_VIRTUAL, __float__getYInterval, "", ""); I_Method1(void, setSkirtHeight, IN, float, skirtHeight, + Properties::NON_VIRTUAL, __void__setSkirtHeight__float, "Set the height of the skirt to render around the edge of HeightField. ", "The skirt is used as a means of disguising edge boundaries between adjacent HeightField, particularly of ones with different resolutions. "); I_Method0(float, getSkirtHeight, + Properties::NON_VIRTUAL, __float__getSkirtHeight, "Get the height of the skirt to render around the edge of HeightField. ", ""); I_Method1(void, setBorderWidth, IN, unsigned int, borderWidth, + Properties::NON_VIRTUAL, __void__setBorderWidth__unsigned_int, "Set the width in number of cells in from the edge that the height field should be rendered from. ", "This exists to allow gradient and curvature continutity to be maintained between adjacent HeightField, where the border cells will overlap adjacent HeightField. "); I_Method0(unsigned int, getBorderWidth, + Properties::NON_VIRTUAL, __unsigned_int__getBorderWidth, "Get the width in number of cells in from the edge that the height field should be rendered from. ", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, computeRotationMatrix, + Properties::NON_VIRTUAL, __Matrix__computeRotationMatrix, "", ""); I_Method0(bool, zeroRotation, + Properties::NON_VIRTUAL, __bool__zeroRotation, "", ""); I_Method3(void, setHeight, IN, unsigned int, c, IN, unsigned int, r, IN, float, value, + Properties::NON_VIRTUAL, __void__setHeight__unsigned_int__unsigned_int__float, "", ""); I_Method2(float &, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, __float_R1__getHeight__unsigned_int__unsigned_int, "", ""); I_Method2(float, getHeight, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, __float__getHeight__unsigned_int__unsigned_int, "", ""); I_Method0(osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, __HeightList_R1__getHeightList, "", ""); I_Method0(const osg::HeightField::HeightList &, getHeightList, + Properties::NON_VIRTUAL, __C5_HeightList_R1__getHeightList, "", ""); I_Method2(osg::Vec3, getVertex, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, __Vec3__getVertex__unsigned_int__unsigned_int, "", ""); I_Method2(osg::Vec3, getNormal, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, __Vec3__getNormal__unsigned_int__unsigned_int, "", ""); I_Method2(osg::Vec2, getHeightDelta, IN, unsigned int, c, IN, unsigned int, r, + Properties::NON_VIRTUAL, __Vec2__getHeightDelta__unsigned_int__unsigned_int, "", ""); @@ -784,7 +925,7 @@ BEGIN_OBJECT_REFLECTOR(osg::HeightField) __void__setYInterval__float); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::InfinitePlane) I_BaseType(osg::Shape); I_BaseType(osg::Plane); I_Constructor0(____InfinitePlane, @@ -795,30 +936,37 @@ BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); @@ -834,82 +982,99 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) "", ""); I_Method0(osg::Object *, cloneType, + Properties::PURE_VIRTUAL, __Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::PURE_VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, x, + Properties::PURE_VIRTUAL, __void__accept__ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ShapeVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ShapeVisitor) I_Constructor0(____ShapeVisitor, "", ""); I_Method1(void, apply, IN, osg::Sphere &, x, + Properties::VIRTUAL, __void__apply__Sphere_R1, "", ""); I_Method1(void, apply, IN, osg::Box &, x, + Properties::VIRTUAL, __void__apply__Box_R1, "", ""); I_Method1(void, apply, IN, osg::Cone &, x, + Properties::VIRTUAL, __void__apply__Cone_R1, "", ""); I_Method1(void, apply, IN, osg::Cylinder &, x, + Properties::VIRTUAL, __void__apply__Cylinder_R1, "", ""); I_Method1(void, apply, IN, osg::Capsule &, x, + Properties::VIRTUAL, __void__apply__Capsule_R1, "", ""); I_Method1(void, apply, IN, osg::InfinitePlane &, x, + Properties::VIRTUAL, __void__apply__InfinitePlane_R1, "", ""); I_Method1(void, apply, IN, osg::TriangleMesh &, x, + Properties::VIRTUAL, __void__apply__TriangleMesh_R1, "", ""); I_Method1(void, apply, IN, osg::ConvexHull &, x, + Properties::VIRTUAL, __void__apply__ConvexHull_R1, "", ""); I_Method1(void, apply, IN, osg::HeightField &, x, + Properties::VIRTUAL, __void__apply__HeightField_R1, "", ""); I_Method1(void, apply, IN, osg::CompositeShape &, x, + Properties::VIRTUAL, __void__apply__CompositeShape_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Sphere) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Sphere) I_BaseType(osg::Shape); I_Constructor0(____Sphere, "", @@ -923,54 +1088,67 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method2(void, set, IN, const osg::Vec3 &, center, IN, float, radius, + Properties::NON_VIRTUAL, __void__set__C5_Vec3_R1__float, "", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_Vec3_R1__getCenter, "", ""); I_Method1(void, setRadius, IN, float, radius, + Properties::NON_VIRTUAL, __void__setRadius__float, "", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "", ""); @@ -982,7 +1160,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) __void__setRadius__float); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TriangleMesh) I_BaseType(osg::Shape); I_Constructor0(____TriangleMesh, "", @@ -992,54 +1170,67 @@ BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the attribute's class type. ", ""); I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, __void__accept__osg_ShapeVisitor_R1, "accept a non const shape visitor which can be used on non const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, __void__accept__osg_ConstShapeVisitor_R1, "accept a const shape visitor which can be used on const shape objects. ", "Must be defined by derived classes. "); I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, __void__setVertices__Vec3Array_P1, "", ""); I_Method0(osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, __Vec3Array_P1__getVertices, "", ""); I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, __C5_Vec3Array_P1__getVertices, "", ""); I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, __void__setIndices__IndexArray_P1, "", ""); I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, __IndexArray_P1__getIndices, "", ""); I_Method0(const osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, __C5_IndexArray_P1__getIndices, "", ""); @@ -1058,26 +1249,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Shape >) "", ""); I_Constructor1(IN, osg::Shape *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Shape > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Shape *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Shape *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Shape > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/ShapeDrawable.cpp b/src/osgWrappers/osg/ShapeDrawable.cpp index b9ba80a5e..b0f4b8c11 100644 --- a/src/osgWrappers/osg/ShapeDrawable.cpp +++ b/src/osgWrappers/osg/ShapeDrawable.cpp @@ -28,7 +28,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::ShapeDrawable) I_BaseType(osg::Drawable); I_Constructor0(____ShapeDrawable, "", @@ -42,70 +42,87 @@ BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_Vec4_R1, "Set the color of the shape. ", ""); I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getColor, "Get the color of the shape. ", ""); I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, + Properties::NON_VIRTUAL, __void__setTessellationHints__TessellationHints_P1, "", ""); I_Method0(osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, __TessellationHints_P1__getTessellationHints, "", ""); I_Method0(const osg::TessellationHints *, getTessellationHints, + Properties::NON_VIRTUAL, __C5_TessellationHints_P1__getTessellationHints, "", ""); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__State_R1, "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_AttributeFunctor_R1, "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", ""); I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_ConstAttributeFunctor_R1, "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__ConstAttributeFunctor_R1, "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_PrimitiveFunctor_R1, "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, __void__accept__PrimitiveFunctor_R1, "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); @@ -122,7 +139,7 @@ BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) I_EnumLabel(osg::TessellationHints::USE_TARGET_NUM_FACES); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TessellationHints) I_BaseType(osg::Object); I_Constructor0(____TessellationHints, "", @@ -132,102 +149,127 @@ BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setTessellationMode, IN, osg::TessellationHints::TessellationMode, mode, + Properties::NON_VIRTUAL, __void__setTessellationMode__TessellationMode, "", ""); I_Method0(osg::TessellationHints::TessellationMode, getTessellationMode, + Properties::NON_VIRTUAL, __TessellationMode__getTessellationMode, "", ""); I_Method1(void, setDetailRatio, IN, float, ratio, + Properties::NON_VIRTUAL, __void__setDetailRatio__float, "", ""); I_Method0(float, getDetailRatio, + Properties::NON_VIRTUAL, __float__getDetailRatio, "", ""); I_Method1(void, setTargetNumFaces, IN, unsigned int, target, + Properties::NON_VIRTUAL, __void__setTargetNumFaces__unsigned_int, "", ""); I_Method0(unsigned int, getTargetNumFaces, + Properties::NON_VIRTUAL, __unsigned_int__getTargetNumFaces, "", ""); I_Method1(void, setCreateFrontFace, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateFrontFace__bool, "", ""); I_Method0(bool, getCreateFrontFace, + Properties::NON_VIRTUAL, __bool__getCreateFrontFace, "", ""); I_Method1(void, setCreateBackFace, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateBackFace__bool, "", ""); I_Method0(bool, getCreateBackFace, + Properties::NON_VIRTUAL, __bool__getCreateBackFace, "", ""); I_Method1(void, setCreateNormals, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateNormals__bool, "", ""); I_Method0(bool, getCreateNormals, + Properties::NON_VIRTUAL, __bool__getCreateNormals, "", ""); I_Method1(void, setCreateTextureCoords, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateTextureCoords__bool, "", ""); I_Method0(bool, getCreateTextureCoords, + Properties::NON_VIRTUAL, __bool__getCreateTextureCoords, "", ""); I_Method1(void, setCreateTop, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateTop__bool, "", ""); I_Method0(bool, getCreateTop, + Properties::NON_VIRTUAL, __bool__getCreateTop, "", ""); I_Method1(void, setCreateBody, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateBody__bool, "", ""); I_Method0(bool, getCreateBody, + Properties::NON_VIRTUAL, __bool__getCreateBody, "", ""); I_Method1(void, setCreateBottom, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCreateBottom__bool, "", ""); I_Method0(bool, getCreateBottom, + Properties::NON_VIRTUAL, __bool__getCreateBottom, "", ""); diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index cf6aa253a..c4523a273 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -37,444 +37,553 @@ BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) I_EnumLabel(osg::State::ONCE_PER_ATTRIBUTE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::State) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State) I_BaseType(osg::Referenced); I_Constructor0(____State, "", ""); I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, __void__setGraphicsContext__GraphicsContext_P1, "Set the graphics context associated with that owns this State object. ", ""); I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __GraphicsContext_P1__getGraphicsContext, "Get the graphics context associated with that owns this State object. ", ""); I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __C5_GraphicsContext_P1__getGraphicsContext, "Get the const graphics context associated with that owns this State object. ", ""); I_Method1(void, setContextID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setContextID__unsigned_int, "Set the current OpenGL context uniqueID. ", "Note, it is the application developers responsibility to set up unique ID for each OpenGL context. This value is then used by osg::StateAttribute's and osg::Drawable's to help manage OpenGL display list and texture binds appropriate for each context, the contextID simply acts as an index in local arrays that they maintain for the purpose. Typical settings for contextID are 0,1,2,3... up to the maximum number of graphics contexts you have set up. By default contextID is 0. "); I_Method0(unsigned int, getContextID, + Properties::NON_VIRTUAL, __unsigned_int__getContextID, "Get the current OpenGL context unique ID. ", ""); I_Method1(void, pushStateSet, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, __void__pushStateSet__C5_StateSet_P1, "Push stateset onto state stack. ", ""); I_Method0(void, popStateSet, + Properties::NON_VIRTUAL, __void__popStateSet, "Pop stateset off state stack. ", ""); I_Method0(void, popAllStateSets, + Properties::NON_VIRTUAL, __void__popAllStateSets, "pop all statesets off state stack, ensuring it is empty ready for the next frame. ", "Note, to return OpenGL to default state, one should do any state.popAllStatSets(); state.apply(). "); I_Method0(unsigned int, getStateSetStackSize, + Properties::NON_VIRTUAL, __unsigned_int__getStateSetStackSize, "Get the number of StateSet's on the StateSet stack. ", ""); I_Method1(void, popStateSetStackToSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__popStateSetStackToSize__unsigned_int, "Pop StateSet's for the StateSet stack till its size equals the specified size. ", ""); I_Method0(osg::State::StateSetStack &, getStateSetStack, + Properties::NON_VIRTUAL, __StateSetStack_R1__getStateSetStack, "Get the StateSet stack. ", ""); I_Method1(void, captureCurrentState, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, __void__captureCurrentState__StateSet_R1, "Copy the modes and attributes which capture the current state. ", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "reset the state object to an empty stack. ", ""); I_Method0(const osg::Viewport *, getCurrentViewport, + Properties::NON_VIRTUAL, __C5_Viewport_P1__getCurrentViewport, "", ""); I_Method1(void, setInitialViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__setInitialViewMatrix__C5_osg_RefMatrix_P1, "", ""); I_Method0(const osg::Matrix &, getInitialViewMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getInitialViewMatrix, "", ""); I_Method0(const osg::Matrix &, getInitialInverseViewMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getInitialInverseViewMatrix, "", ""); I_Method1(void, applyProjectionMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__applyProjectionMatrix__C5_osg_RefMatrix_P1, "", ""); I_Method0(const osg::Matrix &, getProjectionMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getProjectionMatrix, "", ""); I_Method1(void, applyModelViewMatrix, IN, const osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__applyModelViewMatrix__C5_osg_RefMatrix_P1, "", ""); I_Method0(const osg::Matrix &, getModelViewMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getModelViewMatrix, "", ""); I_Method0(osg::Polytope, getViewFrustum, + Properties::NON_VIRTUAL, __Polytope__getViewFrustum, "", ""); I_Method1(void, apply, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, __void__apply__C5_StateSet_P1, "Apply stateset. ", ""); I_Method0(void, apply, + Properties::NON_VIRTUAL, __void__apply, "Updates the OpenGL state so that it matches the StateSet at the top of the stack of StateSets maintained internally by a State. ", ""); I_Method2(void, setModeValidity, IN, osg::StateAttribute::GLMode, mode, IN, bool, valid, + Properties::NON_VIRTUAL, __void__setModeValidity__StateAttribute_GLMode__bool, "Set whether a particular OpenGL mode is valid in the current graphics context. ", "Use to disable OpenGL modes that are not supported by current graphics drivers/context. "); I_Method1(bool, getModeValidity, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__getModeValidity__StateAttribute_GLMode, "Get whether a particular OpenGL mode is valid in the current graphics context. ", "Use to disable OpenGL modes that are not supported by current graphics drivers/context. "); I_Method2(void, setGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, "", ""); I_Method1(bool, getGlobalDefaultModeValue, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, "", ""); I_Method2(bool, applyMode, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, __bool__applyMode__StateAttribute_GLMode__bool, "Apply an OpenGL mode if required. ", "This is a wrapper around glEnable() and glDisable(), that just actually calls these functions if the enabled flag is different than the current state. true if the state was actually changed. false otherwise. Notice that a false return does not indicate an error, it just means that the mode was already set to the same value as the enabled parameter. "); I_Method3(void, setGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, "", ""); I_Method2(bool, getGlobalDefaultTextureModeValue, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, "", ""); I_Method3(bool, applyTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, __bool__applyTextureMode__unsigned_int__StateAttribute_GLMode__bool, "", ""); I_Method1(void, setGlobalDefaultAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__setGlobalDefaultAttribute__C5_StateAttribute_P1, "", ""); I_MethodWithDefaults2(const osg::StateAttribute *, getGlobalDefaultAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getGlobalDefaultAttribute__StateAttribute_Type__unsigned_int, "", ""); I_Method1(bool, applyAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __bool__applyAttribute__C5_StateAttribute_P1, "Apply an attribute if required. ", ""); I_Method2(void, setGlobalDefaultTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__setGlobalDefaultTextureAttribute__unsigned_int__C5_StateAttribute_P1, "", ""); I_MethodWithDefaults3(const osg::StateAttribute *, getGlobalDefaultTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getGlobalDefaultTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, "", ""); I_Method2(bool, applyTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __bool__applyTextureAttribute__unsigned_int__C5_StateAttribute_P1, "", ""); I_Method2(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__haveAppliedMode__StateAttribute_GLMode__StateAttribute_GLModeValue, "Mode has been set externally, update state to reflect this setting. ", ""); I_Method1(void, haveAppliedMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __void__haveAppliedMode__StateAttribute_GLMode, "Mode has been set externally, therefore dirty the associated mode in osg::State so it is applied on next call to osg::State::apply(. ", ".) "); I_Method1(void, haveAppliedAttribute, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__haveAppliedAttribute__C5_StateAttribute_P1, "Attribute has been applied externally, update state to reflect this setting. ", ""); I_MethodWithDefaults2(void, haveAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __void__haveAppliedAttribute__StateAttribute_Type__unsigned_int, "Attribute has been applied externally, and therefore this attribute type has been dirtied and will need to be re-applied on next osg::State.apply(. ", ".). note, if you have an osg::StateAttribute which you have applied externally then use the have_applied(attribute) method as this will cause the osg::State to track the current state more accurately and enable lazy state updating such that only changed state will be applied. "); I_Method1(bool, getLastAppliedMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__getLastAppliedMode__StateAttribute_GLMode, "Get whether the current specified mode is enabled (true) or disabled (false). ", ""); I_MethodWithDefaults2(const osg::StateAttribute *, getLastAppliedAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getLastAppliedAttribute__StateAttribute_Type__unsigned_int, "Get the current specified attribute, return NULL if one has not yet been applied. ", ""); I_Method3(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__haveAppliedTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, "texture Mode has been set externally, update state to reflect this setting. ", ""); I_Method2(void, haveAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __void__haveAppliedTextureMode__unsigned_int__StateAttribute_GLMode, "texture Mode has been set externally, therefore dirty the associated mode in osg::State so it is applied on next call to osg::State::apply(. ", ".) "); I_Method2(void, haveAppliedTextureAttribute, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__haveAppliedTextureAttribute__unsigned_int__C5_StateAttribute_P1, "texture Attribute has been applied externally, update state to reflect this setting. ", ""); I_MethodWithDefaults3(void, haveAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __void__haveAppliedTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, "texture Attribute has been applied externally, and therefore this attribute type has been dirtied and will need to be re-appplied on next osg::State.apply(. ", ".). note, if you have an osg::StateAttribute which you have applied externally then use the have_applied(attribute) method as this will the osg::State to track the current state more accurately and enable lazy state updating such that only changed state will be applied. "); I_Method2(bool, getLastAppliedTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__getLastAppliedTextureMode__unsigned_int__StateAttribute_GLMode, "Get whether the current specified texture mode is enabled (true) or disabled (false). ", ""); I_MethodWithDefaults3(const osg::StateAttribute *, getLastAppliedTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getLastAppliedTextureAttribute__unsigned_int__StateAttribute_Type__unsigned_int, "Get the current specified texture attribute, return NULL if one has not yet been applied. ", ""); I_Method0(void, dirtyAllModes, + Properties::NON_VIRTUAL, __void__dirtyAllModes, "Dirty the modes previously applied in osg::State. ", ""); I_Method0(void, dirtyAllAttributes, + Properties::NON_VIRTUAL, __void__dirtyAllAttributes, "Dirty the modes attributes previously applied in osg::State. ", ""); I_Method0(void, disableAllVertexArrays, + Properties::NON_VIRTUAL, __void__disableAllVertexArrays, "disable the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", ""); I_Method0(void, dirtyAllVertexArrays, + Properties::NON_VIRTUAL, __void__dirtyAllVertexArrays, "dirty the vertex, normal, color, tex coords, secondary color, fog coord and index arrays. ", ""); I_Method3(void, setInterleavedArrays, IN, GLenum, format, IN, GLsizei, stride, IN, const GLvoid *, pointer, + Properties::NON_VIRTUAL, __void__setInterleavedArrays__GLenum__GLsizei__C5_GLvoid_P1, "Wrapper around glInterleavedArrays(. ", ".). also resets the internal array points and modes within osg::State to keep the other vertex array operations consistent. "); I_Method4(void, setVertexPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setVertexPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_VERTEX_ARRAY);glVertexPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableVertexPointer, + Properties::NON_VIRTUAL, __void__disableVertexPointer, "wrapper around glDisableClientState(GL_VERTEX_ARRAY). ", "note, only updates values that change. "); I_Method0(void, dirtyVertexPointer, + Properties::NON_VIRTUAL, __void__dirtyVertexPointer, "", ""); I_Method3(void, setNormalPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setNormalPointer__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_NORMAL_ARRAY);glNormalPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableNormalPointer, + Properties::NON_VIRTUAL, __void__disableNormalPointer, "wrapper around glDisableClientState(GL_NORMAL_ARRAY); note, only updates values that change. ", ""); I_Method0(void, dirtyNormalPointer, + Properties::NON_VIRTUAL, __void__dirtyNormalPointer, "", ""); I_Method4(void, setColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setColorPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_COLOR_ARRAY);glColorPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableColorPointer, + Properties::NON_VIRTUAL, __void__disableColorPointer, "wrapper around glDisableClientState(GL_COLOR_ARRAY); note, only updates values that change. ", ""); I_Method0(void, dirtyColorPointer, + Properties::NON_VIRTUAL, __void__dirtyColorPointer, "", ""); I_Method0(bool, isSecondaryColorSupported, + Properties::NON_VIRTUAL, __bool__isSecondaryColorSupported, "", ""); I_Method4(void, setSecondaryColorPointer, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setSecondaryColorPointer__GLint__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_SECONDARY_COLOR_ARRAY);glSecondayColorPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableSecondaryColorPointer, + Properties::NON_VIRTUAL, __void__disableSecondaryColorPointer, "wrapper around glDisableClientState(GL_SECONDARY_COLOR_ARRAY); note, only updates values that change. ", ""); I_Method0(void, dirtySecondaryColorPointer, + Properties::NON_VIRTUAL, __void__dirtySecondaryColorPointer, "", ""); I_Method3(void, setIndexPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setIndexPointer__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_INDEX_ARRAY);glIndexPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableIndexPointer, + Properties::NON_VIRTUAL, __void__disableIndexPointer, "wrapper around glDisableClientState(GL_INDEX_ARRAY); note, only updates values that change. ", ""); I_Method0(void, dirtyIndexPointer, + Properties::NON_VIRTUAL, __void__dirtyIndexPointer, "", ""); I_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, __bool__isFogCoordSupported, "", ""); I_Method3(void, setFogCoordPointer, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setFogCoordPointer__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_FOG_COORDINATE_ARRAY);glFogCoordPointer(. ", ".); note, only updates values that change. "); I_Method0(void, disableFogCoordPointer, + Properties::NON_VIRTUAL, __void__disableFogCoordPointer, "wrapper around glDisableClientState(GL_FOG_COORDINATE_ARRAY); note, only updates values that change. ", ""); I_Method0(void, dirtyFogCoordPointer, + Properties::NON_VIRTUAL, __void__dirtyFogCoordPointer, "", ""); I_Method5(void, setTexCoordPointer, IN, unsigned int, unit, IN, GLint, size, IN, GLenum, type, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setTexCoordPointer__unsigned_int__GLint__GLenum__GLsizei__C5_GLvoid_P1, "wrapper around glEnableClientState(GL_TEXTURE_COORD_ARRAY);glTexCoordPointer(. ", ".); note, only updates values that change. "); I_Method1(void, disableTexCoordPointer, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __void__disableTexCoordPointer__unsigned_int, "wrapper around glDisableClientState(GL_TEXTURE_COORD_ARRAY); note, only updates values that change. ", ""); I_Method1(void, dirtyTexCoordPointer, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __void__dirtyTexCoordPointer__unsigned_int, "", ""); I_Method1(void, disableTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __void__disableTexCoordPointersAboveAndIncluding__unsigned_int, "", ""); I_Method1(void, dirtyTexCoordPointersAboveAndIncluding, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __void__dirtyTexCoordPointersAboveAndIncluding__unsigned_int, "", ""); I_Method1(bool, setActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __bool__setActiveTextureUnit__unsigned_int, "Set the current texture unit, return true if selected, false if selection failed such as when multitexturing is not supported. ", "note, only updates values that change. "); I_Method0(unsigned int, getActiveTextureUnit, + Properties::NON_VIRTUAL, __unsigned_int__getActiveTextureUnit, "Get the current texture unit. ", ""); I_Method1(bool, setClientActiveTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __bool__setClientActiveTextureUnit__unsigned_int, "Set the current tex coord array texture unit, return true if selected, false if selection failed such as when multitexturing is not supported. ", "note, only updates values that change. "); I_Method0(unsigned int, getClientActiveTextureUnit, + Properties::NON_VIRTUAL, __unsigned_int__getClientActiveTextureUnit, "Get the current tex coord array texture unit. ", ""); I_Method6(void, setVertexAttribPointer, IN, unsigned int, index, IN, GLint, size, IN, GLenum, type, IN, GLboolean, normalized, IN, GLsizei, stride, IN, const GLvoid *, ptr, + Properties::NON_VIRTUAL, __void__setVertexAttribPointer__unsigned_int__GLint__GLenum__GLboolean__GLsizei__C5_GLvoid_P1, "wrapper around glEnableVertexAttribArrayARB(index);glVertexAttribPointerARB(. ", ".); note, only updates values that change. "); I_Method1(void, disableVertexAttribPointer, IN, unsigned int, index, + Properties::NON_VIRTUAL, __void__disableVertexAttribPointer__unsigned_int, "wrapper around DisableVertexAttribArrayARB(index); note, only updates values that change. ", ""); I_Method1(void, disableVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, __void__disableVertexAttribPointersAboveAndIncluding__unsigned_int, "", ""); I_Method1(void, dirtyVertexAttribPointersAboveAndIncluding, IN, unsigned int, index, + Properties::NON_VIRTUAL, __void__dirtyVertexAttribPointersAboveAndIncluding__unsigned_int, "", ""); I_Method0(bool, isVertexBufferObjectSupported, + Properties::NON_VIRTUAL, __bool__isVertexBufferObjectSupported, "", ""); I_Method1(void, setLastAppliedProgramObject, IN, const osg::Program::PerContextProgram *, program, + Properties::NON_VIRTUAL, __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1, "", ""); I_Method0(const osg::Program::PerContextProgram *, getLastAppliedProgramObject, + Properties::NON_VIRTUAL, __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, "", ""); I_Method1(GLint, getUniformLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, __GLint__getUniformLocation__C5_std_string_R1, "", ""); I_Method1(GLint, getAttribLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, __GLint__getAttribLocation__C5_std_string_R1, "", ""); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, __void__setFrameStamp__FrameStamp_P1, "Set the frame stamp for the current frame. ", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_FrameStamp_P1__getFrameStamp, "Get the frame stamp for the current frame. ", ""); I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, __void__setDisplaySettings__DisplaySettings_P1, "Set the DisplaySettings. ", "Note, nothing is applied, the visual settings are just used in the State object to pass the current visual settings to Drawables during rendering. "); I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __C5_DisplaySettings_P1__getDisplaySettings, "Get the DisplaySettings. ", ""); I_Method1(void, setAbortRenderingPtr, IN, bool *, abortPtr, + Properties::NON_VIRTUAL, __void__setAbortRenderingPtr__bool_P1, "Set flag for early termination of the draw traversal. ", ""); I_Method0(bool, getAbortRendering, + Properties::NON_VIRTUAL, __bool__getAbortRendering, "Get flag for early termination of the draw traversal, if true steps should be taken to complete rendering early. ", ""); I_Method1(void, setDynamicObjectRenderingCompletedCallback, IN, osg::State::DynamicObjectRenderingCompletedCallback *, cb, + Properties::NON_VIRTUAL, __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_P1, "Set the callback to be called when the dynamic object count hits 0. ", ""); I_Method0(osg::State::DynamicObjectRenderingCompletedCallback *, getDynamicObjectRenderingCompletedCallback, + Properties::NON_VIRTUAL, __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, "Get the callback to be called when the dynamic object count hits 0. ", ""); I_MethodWithDefaults2(void, setDynamicObjectCount, IN, unsigned int, count, , IN, bool, callCallbackOnZero, false, + Properties::NON_VIRTUAL, __void__setDynamicObjectCount__unsigned_int__bool, "Set the number of dynamic objects that will be rendered in this graphics context this frame. ", ""); I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, __unsigned_int__getDynamicObjectCount, "Get the number of dynamic objects that will be rendered in this graphics context this frame. ", ""); I_Method0(void, decrementDynamicObjectCount, + Properties::NON_VIRTUAL, __void__decrementDynamicObjectCount, "Decrement the number of dynamic objects left to render this frame, and once the count goes to zero call the DynamicObjectRenderingCompletedCallback to inform of completion. ", ""); I_Method1(void, setCheckForGLErrors, IN, osg::State::CheckForGLErrors, check, + Properties::NON_VIRTUAL, __void__setCheckForGLErrors__CheckForGLErrors, "Set whether and how often OpenGL errors should be checked for. ", ""); I_Method0(osg::State::CheckForGLErrors, getCheckForGLErrors, + Properties::NON_VIRTUAL, __CheckForGLErrors__getCheckForGLErrors, "Get whether and how often OpenGL errors should be checked for. ", ""); I_Method1(bool, checkGLErrors, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__checkGLErrors__C5_char_P1, "", ""); I_Method1(bool, checkGLErrors, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __bool__checkGLErrors__StateAttribute_GLMode, "", ""); I_Method1(bool, checkGLErrors, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __bool__checkGLErrors__C5_StateAttribute_P1, "", ""); @@ -561,6 +670,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallb "", ""); I_Method1(void, completed, IN, osg::State *, x, + Properties::PURE_VIRTUAL, __void__completed__osg_State_P1, "", ""); diff --git a/src/osgWrappers/osg/StateAttribute.cpp b/src/osgWrappers/osg/StateAttribute.cpp index c50ad76a0..5ef8eb38d 100644 --- a/src/osgWrappers/osg/StateAttribute.cpp +++ b/src/osgWrappers/osg/StateAttribute.cpp @@ -103,106 +103,132 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute) "", ""); I_Method0(osg::Object *, cloneType, + Properties::PURE_VIRTUAL, __Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::PURE_VIRTUAL, __Object_P1__clone__C5_CopyOp_R1, "Clone an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_Object_P1, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::PURE_VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(unsigned int, getMember, + Properties::VIRTUAL, __unsigned_int__getMember, "Return the member identifier within the attribute's class type. ", "Used for light number/clip plane number etc. "); I_Method0(osg::StateAttribute::TypeMemberPair, getTypeMemberPair, + Properties::NON_VIRTUAL, __TypeMemberPair__getTypeMemberPair, "Return the TypeMemberPair that uniquely identifies this type member. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::PURE_VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(const osg::StateAttribute::ParentList &, getParents, + Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of this StateAttribute. ", ""); I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __StateSet_P1__getParent__unsigned_int, "", ""); I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_StateSet_P1__getParent__unsigned_int, "Get a single const parent of this StateAttribute. ", " param i index of the parent to get. return the parent i."); I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of this StateAttribute. ", "the number of parents of this StateAttribute. "); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, x, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "Return the modes associated with this StateAttribute. ", ""); I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, x, + Properties::VIRTUAL, __bool__checkValidityOfAssociatedModes__osg_State_R1, "Check the modes associated with this StateAttribute are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", "Return true if all associated modes are valid. "); I_Method1(void, setUpdateCallback, IN, osg::StateAttribute::Callback *, uc, + Properties::NON_VIRTUAL, __void__setUpdateCallback__Callback_P1, "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", ""); I_Method0(osg::StateAttribute::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __Callback_P1__getUpdateCallback, "Get the non const UpdateCallback. ", ""); I_Method0(const osg::StateAttribute::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getUpdateCallback, "Get the const UpdateCallback. ", ""); I_Method1(void, setEventCallback, IN, osg::StateAttribute::Callback *, ec, + Properties::NON_VIRTUAL, __void__setEventCallback__Callback_P1, "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", ""); I_Method0(osg::StateAttribute::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __Callback_P1__getEventCallback, "Get the non const EventCallback. ", ""); I_Method0(const osg::StateAttribute::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getEventCallback, "Get the const EventCallback. ", ""); I_Method1(void, apply, IN, osg::State &, x, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, compileGLObjects, IN, osg::State &, x, + Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Default to nothing to compile - all state is applied immediately. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "Release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", ""); @@ -233,7 +259,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute) __void__setUpdateCallback__Callback_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StateAttribute::Callback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute::Callback) I_VirtualBaseType(osg::Object); I_Constructor0(____Callback, "", @@ -243,22 +269,27 @@ BEGIN_OBJECT_REFLECTOR(osg::StateAttribute::Callback) "", ""); 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. "); @@ -269,10 +300,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute::ModeUsage) "", ""); I_Method1(void, usesMode, IN, osg::StateAttribute::GLMode, mode, + Properties::PURE_VIRTUAL, __void__usesMode__GLMode, "", ""); I_Method1(void, usesTextureMode, IN, osg::StateAttribute::GLMode, mode, + Properties::PURE_VIRTUAL, __void__usesTextureMode__GLMode, "", ""); diff --git a/src/osgWrappers/osg/StateSet.cpp b/src/osgWrappers/osg/StateSet.cpp index 1e98d38c2..027a179c3 100644 --- a/src/osgWrappers/osg/StateSet.cpp +++ b/src/osgWrappers/osg/StateSet.cpp @@ -54,7 +54,7 @@ BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StateSet) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateSet) I_BaseType(osg::Object); I_Constructor0(____StateSet, "", @@ -64,346 +64,432 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_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_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_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + Properties::NON_VIRTUAL, __int__compare__C5_StateSet_R1__bool, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(const osg::StateSet::ParentList &, getParents, + Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of this StateSet. ", ""); I_Method0(osg::StateSet::ParentList, getParents, + Properties::NON_VIRTUAL, __ParentList__getParents, "Get the a copy of parent list of node. ", "A copy is returned to prevent modification of the parent list. "); I_Method1(osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Object_P1__getParent__unsigned_int, "", ""); I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Object_P1__getParent__unsigned_int, "Get a single const parent of this StateSet. ", " param i index of the parent to get. return the parent i."); I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of this StateSet. ", "the number of parents of this StateSet. "); I_Method0(void, setGlobalDefaults, + Properties::NON_VIRTUAL, __void__setGlobalDefaults, "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "Clear the StateSet of all modes and attributes. ", ""); I_Method1(void, merge, IN, const osg::StateSet &, rhs, + Properties::NON_VIRTUAL, __void__merge__C5_StateSet_R1, "Merge this StateSet with the StateSet passed as parameter. ", "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, "Set this StateSet to contain the specified GLMode with a given value. ", "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __void__removeMode__StateAttribute_GLMode, "Remove mode from this StateSet. ", "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, "Get the value for a given GLMode. ", " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + Properties::NON_VIRTUAL, __void__setModeList__ModeList_R1, "Set the list of all GLModes contained in this StateSet. ", ""); I_Method0(osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, __ModeList_R1__getModeList, "Return the list of all GLModes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, __C5_ModeList_R1__getModeList, "Return the const list of all GLModes contained in this const StateSet. ", ""); I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, "Set this StateSet to contain specified attribute and override flag. ", ""); I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", ""); I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __void__removeAttribute__StateAttribute_Type__unsigned_int, "remove attribute of specified type from StateSet. ", ""); I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__removeAttribute__StateAttribute_P1, "remove attribute from StateSet. ", ""); I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, "Get specified StateAttribute for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, "Get specified const StateAttribute for specified type. ", "Returns NULL if no type is contained within const StateSet. "); I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, "Get specified RefAttributePair for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + Properties::NON_VIRTUAL, __void__setAttributeList__AttributeList_R1, "set the list of all StateAttributes contained in this StateSet. ", ""); I_Method0(osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, __AttributeList_R1__getAttributeList, "return the list of all StateAttributes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, __C5_AttributeList_R1__getAttributeList, "return the const list of all StateAttributes contained in this const StateSet. ", ""); I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, "Set this StateSet to contain specified GLMode with a given value. ", " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, "Remove texture mode from StateSet. ", ""); I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, "Get specified GLModeValue for specified GLMode. ", "returns INHERIT if no GLModeValue is contained within StateSet. "); I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + Properties::NON_VIRTUAL, __void__setTextureModeList__TextureModeList_R1, "set the list of all Texture related GLModes contained in this StateSet. ", ""); I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, __TextureModeList_R1__getTextureModeList, "return the list of all Texture related GLModes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, __C5_TextureModeList_R1__getTextureModeList, "return the const list of all Texture related GLModes contained in this const StateSet. ", ""); I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, "Set this StateSet to contain specified attribute and override flag. ", ""); I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", ""); I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, "remove texture attribute of specified type from StateSet. ", ""); I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, "remove texture attribute from StateSet. ", ""); I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, "Get specified Texture related StateAttribute for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, "Get specified Texture related const StateAttribute for specified type. ", "Returns NULL if no type is contained within const StateSet. "); I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, "Get specified Texture related RefAttributePair for specified type. ", "Returns NULL if no type is contained within StateSet. "); I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + Properties::NON_VIRTUAL, __void__setTextureAttributeList__TextureAttributeList_R1, "Set the list of all Texture related StateAttributes contained in this StateSet. ", ""); I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, __TextureAttributeList_R1__getTextureAttributeList, "Return the list of all Texture related StateAttributes contained in this StateSet. ", ""); I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, __C5_TextureAttributeList_R1__getTextureAttributeList, "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", ""); I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, "", ""); I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, "", ""); I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, "Set this StateSet to contain specified uniform and override flag. ", ""); I_Method1(void, removeUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__removeUniform__C5_std_string_R1, "remove uniform of specified name from StateSet. ", ""); I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + Properties::NON_VIRTUAL, __void__removeUniform__Uniform_P1, "remove Uniform from StateSet. ", ""); I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, __Uniform_P1__getUniform__C5_std_string_R1, "Get Uniform for specified name. ", "Returns NULL if no matching Uniform is contained within StateSet. "); I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + Properties::NON_VIRTUAL, __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", ""); I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, __C5_Uniform_P1__getUniform__C5_std_string_R1, "Get const Uniform for specified name. ", "Returns NULL if no matching Uniform is contained within StateSet. "); I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + Properties::NON_VIRTUAL, __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, "Get specified RefUniformPair for specified Uniform name. ", "Returns NULL if no Uniform is contained within StateSet. "); I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + Properties::NON_VIRTUAL, __void__setUniformList__UniformList_R1, "set the list of all Uniforms contained in this StateSet. ", ""); I_Method0(osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, __UniformList_R1__getUniformList, "return the list of all Uniforms contained in this StateSet. ", ""); I_Method0(const osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, __C5_UniformList_R1__getUniformList, "return the const list of all Uniforms contained in this const StateSet. ", ""); I_Method1(void, setRenderingHint, IN, int, hint, + Properties::NON_VIRTUAL, __void__setRenderingHint__int, "Set the RenderingHint of this StateSet. ", "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); I_Method0(int, getRenderingHint, + Properties::NON_VIRTUAL, __int__getRenderingHint, "Get the RenderingHint of this StateSet. ", ""); I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + Properties::NON_VIRTUAL, __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, "Set the render bin details. ", ""); I_Method0(void, setRenderBinToInherit, + Properties::NON_VIRTUAL, __void__setRenderBinToInherit, "Set the render bin details to inherit. ", ""); I_Method0(bool, useRenderBinDetails, + Properties::NON_VIRTUAL, __bool__useRenderBinDetails, "Get whether the render bin details are set and should be used. ", ""); I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + Properties::NON_VIRTUAL, __void__setRenderBinMode__RenderBinMode, "Set the render bin mode. ", ""); I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + Properties::NON_VIRTUAL, __RenderBinMode__getRenderBinMode, "Get the render bin mode. ", ""); I_Method1(void, setBinNumber, IN, int, num, + Properties::NON_VIRTUAL, __void__setBinNumber__int, "Set the render bin number. ", ""); I_Method0(int, getBinNumber, + Properties::NON_VIRTUAL, __int__getBinNumber, "Get the render bin number. ", ""); I_Method1(void, setBinName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setBinName__C5_std_string_R1, "Set the render bin name. ", ""); I_Method0(const std::string &, getBinName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getBinName, "Get the render bin name. ", ""); I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, __void__setUpdateCallback__Callback_P1, "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", ""); I_Method0(osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __Callback_P1__getUpdateCallback, "Get the non const Update Callback. ", ""); I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getUpdateCallback, "Get the const Update Callback. ", ""); I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, __bool__requiresUpdateTraversal, "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", ""); I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenRequiringUpdateTraversal, "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", ""); I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, __void__runUpdateCallbacks__osg_NodeVisitor_P1, "Run the update callbacks attached directly to this StateSet or to its children. ", ""); I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, __void__setEventCallback__Callback_P1, "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", ""); I_Method0(osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __Callback_P1__getEventCallback, "Get the non const Event Callback. ", ""); I_Method0(const osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getEventCallback, "Get the const Event Callback. ", ""); I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, __bool__requiresEventTraversal, "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", ""); I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, __unsigned_int__getNumChildrenRequiringEventTraversal, "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", ""); I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, __void__runEventCallbacks__osg_NodeVisitor_P1, "Run the event callbacks attached directly to this StateSet or to its children. ", ""); I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + Properties::NON_VIRTUAL, __bool__checkValidityOfAssociatedModes__State_R1, "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", "Return true if all associated modes are valid. "); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::NON_VIRTUAL, __void__compileGLObjects__State_R1, "call compile on all StateAttributes contained within this StateSet. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "call release on all StateAttributes contained within this StateSet. ", ""); @@ -460,7 +546,7 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet) __void__setUpdateCallback__Callback_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateSet::Callback) I_VirtualBaseType(osg::Object); I_Constructor0(____Callback, "", @@ -470,22 +556,27 @@ BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) "", ""); 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. "); @@ -496,26 +587,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateAttribute >) "", ""); I_Constructor1(IN, osg::StateAttribute *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::StateAttribute > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::StateAttribute *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::StateAttribute *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::StateAttribute > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -529,26 +626,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Uniform >) "", ""); I_Constructor1(IN, osg::Uniform *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Uniform > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Uniform *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Uniform *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Uniform > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/Stats.cpp b/src/osgWrappers/osg/Stats.cpp index 6abea30f7..bb574843f 100644 --- a/src/osgWrappers/osg/Stats.cpp +++ b/src/osgWrappers/osg/Stats.cpp @@ -26,9 +26,10 @@ TYPE_NAME_ALIAS(std::vector< osg::Stats::AttributeMap >, osg::Stats::AttributeMa TYPE_NAME_ALIAS(std::map< std::string COMMA bool >, osg::Stats::CollectMap); -BEGIN_OBJECT_REFLECTOR(osg::Stats) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Stats) I_BaseType(osg::Referenced); I_Constructor1(IN, const std::string &, name, + Properties::NON_EXPLICIT, ____Stats__C5_std_string_R1, "", ""); @@ -37,62 +38,77 @@ BEGIN_OBJECT_REFLECTOR(osg::Stats) "", ""); I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getName, "", ""); I_Method1(void, allocate, IN, unsigned int, numberOfFrames, + Properties::NON_VIRTUAL, __void__allocate__unsigned_int, "", ""); I_Method0(int, getEarliestFrameNumber, + Properties::NON_VIRTUAL, __int__getEarliestFrameNumber, "", ""); I_Method0(int, getLatestFrameNumber, + Properties::NON_VIRTUAL, __int__getLatestFrameNumber, "", ""); I_Method3(bool, setAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double, value, + Properties::NON_VIRTUAL, __bool__setAttribute__int__C5_std_string_R1__double, "", ""); I_Method3(bool, getAttribute, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double &, value, + Properties::NON_VIRTUAL, __bool__getAttribute__int__C5_std_string_R1__double_R1, "", ""); I_MethodWithDefaults3(bool, getAveragedAttribute, IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, __bool__getAveragedAttribute__C5_std_string_R1__double_R1__bool, "", ""); I_MethodWithDefaults5(bool, getAveragedAttribute, IN, int, startFrameNumber, , IN, int, endFrameNumber, , IN, const std::string &, attributeName, , IN, double &, value, , IN, bool, averageInInverseSpace, false, + Properties::NON_VIRTUAL, __bool__getAveragedAttribute__int__int__C5_std_string_R1__double_R1__bool, "", ""); I_Method1(osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, __AttributeMap_R1__getAttributeMap__int, "", ""); I_Method1(const osg::Stats::AttributeMap &, getAttributeMap, IN, int, frameNumber, + Properties::NON_VIRTUAL, __C5_AttributeMap_R1__getAttributeMap__int, "", ""); I_Method2(void, collectStats, IN, const std::string &, str, IN, bool, flag, + Properties::NON_VIRTUAL, __void__collectStats__C5_std_string_R1__bool, "", ""); I_Method1(bool, collectStats, IN, const std::string &, str, + Properties::NON_VIRTUAL, __bool__collectStats__C5_std_string_R1, "", ""); I_MethodWithDefaults2(void, report, IN, std::ostream &, out, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, __void__report__std_ostream_R1__C5_char_P1, "", ""); I_MethodWithDefaults3(void, report, IN, std::ostream &, out, , IN, unsigned int, frameNumber, , IN, const char *, indent, 0, + Properties::NON_VIRTUAL, __void__report__std_ostream_R1__unsigned_int__C5_char_P1, "", ""); diff --git a/src/osgWrappers/osg/Stencil.cpp b/src/osgWrappers/osg/Stencil.cpp index 3f0cce3a6..7400ebe04 100644 --- a/src/osgWrappers/osg/Stencil.cpp +++ b/src/osgWrappers/osg/Stencil.cpp @@ -46,7 +46,7 @@ BEGIN_ENUM_REFLECTOR(osg::Stencil::Operation) I_EnumLabel(osg::Stencil::DECR_WRAP); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Stencil) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Stencil) I_BaseType(osg::StateAttribute); I_Constructor0(____Stencil, "", @@ -56,102 +56,127 @@ BEGIN_OBJECT_REFLECTOR(osg::Stencil) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method3(void, setFunction, IN, osg::Stencil::Function, func, IN, int, ref, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setFunction__Function__int__unsigned_int, "", ""); I_Method1(void, setFunction, IN, osg::Stencil::Function, func, + Properties::NON_VIRTUAL, __void__setFunction__Function, "", ""); I_Method0(osg::Stencil::Function, getFunction, + Properties::NON_VIRTUAL, __Function__getFunction, "", ""); I_Method1(void, setFunctionRef, IN, int, ref, + Properties::NON_VIRTUAL, __void__setFunctionRef__int, "", ""); I_Method0(int, getFunctionRef, + Properties::NON_VIRTUAL, __int__getFunctionRef, "", ""); I_Method1(void, setFunctionMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setFunctionMask__unsigned_int, "", ""); I_Method0(unsigned int, getFunctionMask, + Properties::NON_VIRTUAL, __unsigned_int__getFunctionMask, "", ""); I_Method3(void, setOperation, IN, osg::Stencil::Operation, sfail, IN, osg::Stencil::Operation, zfail, IN, osg::Stencil::Operation, zpass, + Properties::NON_VIRTUAL, __void__setOperation__Operation__Operation__Operation, "set the operations to apply when the various stencil and depth tests fail or pass. ", "First parameter is to control the operation when the stencil test fails. The second parameter is to control the operation when the stencil test passes, but depth test fails. The third parameter controls the operation when both the stencil test and depth pass. Ordering of parameter is the same as if using glStencilOp(,,). "); I_Method1(void, setStencilFailOperation, IN, osg::Stencil::Operation, sfail, + Properties::NON_VIRTUAL, __void__setStencilFailOperation__Operation, "set the operation when the stencil test fails. ", ""); I_Method0(osg::Stencil::Operation, getStencilFailOperation, + Properties::NON_VIRTUAL, __Operation__getStencilFailOperation, "get the operation when the stencil test fails. ", ""); I_Method1(void, setStencilPassAndDepthFailOperation, IN, osg::Stencil::Operation, zfail, + Properties::NON_VIRTUAL, __void__setStencilPassAndDepthFailOperation__Operation, "set the operation when the stencil test passes but the depth test fails. ", ""); I_Method0(osg::Stencil::Operation, getStencilPassAndDepthFailOperation, + Properties::NON_VIRTUAL, __Operation__getStencilPassAndDepthFailOperation, "get the operation when the stencil test passes but the depth test fails. ", ""); I_Method1(void, setStencilPassAndDepthPassOperation, IN, osg::Stencil::Operation, zpass, + Properties::NON_VIRTUAL, __void__setStencilPassAndDepthPassOperation__Operation, "set the operation when both the stencil test and the depth test pass. ", ""); I_Method0(osg::Stencil::Operation, getStencilPassAndDepthPassOperation, + Properties::NON_VIRTUAL, __Operation__getStencilPassAndDepthPassOperation, "get the operation when both the stencil test and the depth test pass. ", ""); I_Method1(void, setWriteMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setWriteMask__unsigned_int, "", ""); I_Method0(unsigned int, getWriteMask, + Properties::NON_VIRTUAL, __unsigned_int__getWriteMask, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/StencilTwoSided.cpp b/src/osgWrappers/osg/StencilTwoSided.cpp index 929de30af..95b655ccc 100644 --- a/src/osgWrappers/osg/StencilTwoSided.cpp +++ b/src/osgWrappers/osg/StencilTwoSided.cpp @@ -51,7 +51,7 @@ BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Operation) I_EnumLabel(osg::StencilTwoSided::DECR_WRAP); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StencilTwoSided) I_BaseType(osg::StateAttribute); I_Constructor0(____StencilTwoSided, "", @@ -61,102 +61,127 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method4(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, IN, int, ref, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setFunction__Face__Function__int__unsigned_int, "", ""); I_Method2(void, setFunction, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Function, func, + Properties::NON_VIRTUAL, __void__setFunction__Face__Function, "", ""); I_Method1(osg::StencilTwoSided::Function, getFunction, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __Function__getFunction__Face, "", ""); I_Method2(void, setFunctionRef, IN, osg::StencilTwoSided::Face, face, IN, int, ref, + Properties::NON_VIRTUAL, __void__setFunctionRef__Face__int, "", ""); I_Method1(int, getFunctionRef, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __int__getFunctionRef__Face, "", ""); I_Method2(void, setFunctionMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setFunctionMask__Face__unsigned_int, "", ""); I_Method1(unsigned int, getFunctionMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __unsigned_int__getFunctionMask__Face, "", ""); I_Method4(void, setOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, IN, osg::StencilTwoSided::Operation, zfail, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, __void__setOperation__Face__Operation__Operation__Operation, "set the operations to apply when the various stencil and depth tests fail or pass. ", "First parameter is to control the operation when the stencil test fails. The second parameter is to control the operation when the stencil test passes, but depth test fails. The third parameter controls the operation when both the stencil test and depth pass. Ordering of parameter is the same as if using glStencilOp(,,). "); I_Method2(void, setStencilFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, sfail, + Properties::NON_VIRTUAL, __void__setStencilFailOperation__Face__Operation, "set the operation when the stencil test fails. ", ""); I_Method1(osg::StencilTwoSided::Operation, getStencilFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __Operation__getStencilFailOperation__Face, "get the operation when the stencil test fails. ", ""); I_Method2(void, setStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zfail, + Properties::NON_VIRTUAL, __void__setStencilPassAndDepthFailOperation__Face__Operation, "set the operation when the stencil test passes but the depth test fails. ", ""); I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthFailOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __Operation__getStencilPassAndDepthFailOperation__Face, "get the operation when the stencil test passes but the depth test fails. ", ""); I_Method2(void, setStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, IN, osg::StencilTwoSided::Operation, zpass, + Properties::NON_VIRTUAL, __void__setStencilPassAndDepthPassOperation__Face__Operation, "set the operation when both the stencil test and the depth test pass. ", ""); I_Method1(osg::StencilTwoSided::Operation, getStencilPassAndDepthPassOperation, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __Operation__getStencilPassAndDepthPassOperation__Face, "get the operation when both the stencil test and the depth test pass. ", ""); I_Method2(void, setWriteMask, IN, osg::StencilTwoSided::Face, face, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setWriteMask__Face__unsigned_int, "", ""); I_Method1(unsigned int, getWriteMask, IN, osg::StencilTwoSided::Face, face, + Properties::NON_VIRTUAL, __unsigned_int__getWriteMask__Face, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); @@ -201,33 +226,40 @@ BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StencilTwoSided::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::StencilTwoSided::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::StencilTwoSided::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setStencilTwoSidedSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setStencilTwoSidedSupported__bool, "", ""); I_Method0(bool, isStencilTwoSidedSupported, + Properties::NON_VIRTUAL, __bool__isStencilTwoSidedSupported, "", ""); I_Method1(void, glActiveStencilFace, IN, GLenum, face, + Properties::NON_VIRTUAL, __void__glActiveStencilFace__GLenum, "", ""); diff --git a/src/osgWrappers/osg/Switch.cpp b/src/osgWrappers/osg/Switch.cpp index 582ed7903..2307a5a0e 100644 --- a/src/osgWrappers/osg/Switch.cpp +++ b/src/osgWrappers/osg/Switch.cpp @@ -27,7 +27,7 @@ TYPE_NAME_ALIAS(std::vector< bool >, osg::Switch::ValueList); -BEGIN_OBJECT_REFLECTOR(osg::Switch) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Switch) I_BaseType(osg::Group); I_Constructor0(____Switch, "", @@ -37,98 +37,122 @@ BEGIN_OBJECT_REFLECTOR(osg::Switch) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, __void__setNewChildDefaultValue__bool, "", ""); I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, __bool__getNewChildDefaultValue, "", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method2(bool, addChild, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, __bool__addChild__Node_P1__bool, "", ""); I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__insertChild__unsigned_int__Node_P1, "Insert Node to Group at specific location. ", "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); I_Method3(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, IN, bool, value, + Properties::VIRTUAL, __bool__insertChild__unsigned_int__Node_P1__bool, "", ""); I_Method2(bool, removeChildren, IN, unsigned int, pos, IN, unsigned int, numChildrenToRemove, + Properties::VIRTUAL, __bool__removeChildren__unsigned_int__unsigned_int, "Remove children from Group. ", "Note, must be override by subclasses of Group which add per child attributes. "); I_Method2(void, setValue, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, __void__setValue__unsigned_int__bool, "", ""); I_Method1(bool, getValue, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__getValue__unsigned_int, "", ""); I_Method2(void, setChildValue, IN, const osg::Node *, child, IN, bool, value, + Properties::NON_VIRTUAL, __void__setChildValue__C5_Node_P1__bool, "", ""); I_Method1(bool, getChildValue, IN, const osg::Node *, child, + Properties::NON_VIRTUAL, __bool__getChildValue__C5_Node_P1, "", ""); I_Method0(bool, setAllChildrenOff, + Properties::NON_VIRTUAL, __bool__setAllChildrenOff, "Set all the children off (false), and set the new default child value to off (false). ", ""); I_Method0(bool, setAllChildrenOn, + Properties::NON_VIRTUAL, __bool__setAllChildrenOn, "Set all the children on (true), and set the new default child value to on (true). ", ""); I_Method1(bool, setSingleChildOn, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__setSingleChildOn__unsigned_int, "Set a single child on, switch off all other children. ", ""); I_Method1(void, setValueList, IN, const osg::Switch::ValueList &, values, + Properties::NON_VIRTUAL, __void__setValueList__C5_ValueList_R1, "", ""); I_Method0(const osg::Switch::ValueList &, getValueList, + Properties::NON_VIRTUAL, __C5_ValueList_R1__getValueList, "", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osg/TexEnv.cpp b/src/osgWrappers/osg/TexEnv.cpp index 9cba73753..a06ed62ba 100644 --- a/src/osgWrappers/osg/TexEnv.cpp +++ b/src/osgWrappers/osg/TexEnv.cpp @@ -33,9 +33,10 @@ BEGIN_ENUM_REFLECTOR(osg::TexEnv::Mode) I_EnumLabel(osg::TexEnv::ADD); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TexEnv) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexEnv) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + Properties::NON_EXPLICIT, ____TexEnv__Mode, "", ""); @@ -44,58 +45,72 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnv) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::TexEnv::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_Vec4_R1, "", ""); I_Method0(osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, __Vec4_R1__getColor, "", ""); I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getColor, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/TexEnvCombine.cpp b/src/osgWrappers/osg/TexEnvCombine.cpp index 825f5338a..210d72bab 100644 --- a/src/osgWrappers/osg/TexEnvCombine.cpp +++ b/src/osgWrappers/osg/TexEnvCombine.cpp @@ -59,7 +59,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::OperandParam) I_EnumLabel(osg::TexEnvCombine::ONE_MINUS_SRC_ALPHA); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexEnvCombine) I_BaseType(osg::StateAttribute); I_Constructor0(____TexEnvCombine, "", @@ -69,182 +69,227 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setCombine_RGB, IN, GLint, cm, + Properties::NON_VIRTUAL, __void__setCombine_RGB__GLint, "", ""); I_Method1(void, setCombine_Alpha, IN, GLint, cm, + Properties::NON_VIRTUAL, __void__setCombine_Alpha__GLint, "", ""); I_Method0(GLint, getCombine_RGB, + Properties::NON_VIRTUAL, __GLint__getCombine_RGB, "", ""); I_Method0(GLint, getCombine_Alpha, + Properties::NON_VIRTUAL, __GLint__getCombine_Alpha, "", ""); I_Method1(void, setSource0_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource0_RGB__GLint, "", ""); I_Method1(void, setSource1_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource1_RGB__GLint, "", ""); I_Method1(void, setSource2_RGB, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource2_RGB__GLint, "", ""); I_Method1(void, setSource0_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource0_Alpha__GLint, "", ""); I_Method1(void, setSource1_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource1_Alpha__GLint, "", ""); I_Method1(void, setSource2_Alpha, IN, GLint, sp, + Properties::NON_VIRTUAL, __void__setSource2_Alpha__GLint, "", ""); I_Method0(GLint, getSource0_RGB, + Properties::NON_VIRTUAL, __GLint__getSource0_RGB, "", ""); I_Method0(GLint, getSource1_RGB, + Properties::NON_VIRTUAL, __GLint__getSource1_RGB, "", ""); I_Method0(GLint, getSource2_RGB, + Properties::NON_VIRTUAL, __GLint__getSource2_RGB, "", ""); I_Method0(GLint, getSource0_Alpha, + Properties::NON_VIRTUAL, __GLint__getSource0_Alpha, "", ""); I_Method0(GLint, getSource1_Alpha, + Properties::NON_VIRTUAL, __GLint__getSource1_Alpha, "", ""); I_Method0(GLint, getSource2_Alpha, + Properties::NON_VIRTUAL, __GLint__getSource2_Alpha, "", ""); I_Method1(void, setOperand0_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand0_RGB__GLint, "", ""); I_Method1(void, setOperand1_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand1_RGB__GLint, "", ""); I_Method1(void, setOperand2_RGB, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand2_RGB__GLint, "", ""); I_Method1(void, setOperand0_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand0_Alpha__GLint, "", ""); I_Method1(void, setOperand1_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand1_Alpha__GLint, "", ""); I_Method1(void, setOperand2_Alpha, IN, GLint, op, + Properties::NON_VIRTUAL, __void__setOperand2_Alpha__GLint, "", ""); I_Method0(GLint, getOperand0_RGB, + Properties::NON_VIRTUAL, __GLint__getOperand0_RGB, "", ""); I_Method0(GLint, getOperand1_RGB, + Properties::NON_VIRTUAL, __GLint__getOperand1_RGB, "", ""); I_Method0(GLint, getOperand2_RGB, + Properties::NON_VIRTUAL, __GLint__getOperand2_RGB, "", ""); I_Method0(GLint, getOperand0_Alpha, + Properties::NON_VIRTUAL, __GLint__getOperand0_Alpha, "", ""); I_Method0(GLint, getOperand1_Alpha, + Properties::NON_VIRTUAL, __GLint__getOperand1_Alpha, "", ""); I_Method0(GLint, getOperand2_Alpha, + Properties::NON_VIRTUAL, __GLint__getOperand2_Alpha, "", ""); I_Method1(void, setScale_RGB, IN, float, scale, + Properties::NON_VIRTUAL, __void__setScale_RGB__float, "", ""); I_Method1(void, setScale_Alpha, IN, float, scale, + Properties::NON_VIRTUAL, __void__setScale_Alpha__float, "", ""); I_Method0(float, getScale_RGB, + Properties::NON_VIRTUAL, __float__getScale_RGB, "", ""); I_Method0(float, getScale_Alpha, + Properties::NON_VIRTUAL, __float__getScale_Alpha, "", ""); I_Method1(void, setConstantColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setConstantColor__C5_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getConstantColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getConstantColor, "", ""); I_Method1(void, setConstantColorAsLightDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, __void__setConstantColorAsLightDirection__C5_Vec3_R1, "Set the constant color attribute to the given light direction for use with DOT3 combine operation. ", ""); I_Method0(osg::Vec3, getConstantColorAsLightDirection, + Properties::NON_VIRTUAL, __Vec3__getConstantColorAsLightDirection, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/TexEnvFilter.cpp b/src/osgWrappers/osg/TexEnvFilter.cpp index ea947815b..0d3e4782e 100644 --- a/src/osgWrappers/osg/TexEnvFilter.cpp +++ b/src/osgWrappers/osg/TexEnvFilter.cpp @@ -24,9 +24,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexEnvFilter) I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + Properties::NON_EXPLICIT, ____TexEnvFilter__float, "", ""); @@ -35,46 +36,57 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setLodBias, IN, float, lodBias, + Properties::NON_VIRTUAL, __void__setLodBias__float, "", ""); I_Method0(float, getLodBias, + Properties::NON_VIRTUAL, __float__getLodBias, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/TexGen.cpp b/src/osgWrappers/osg/TexGen.cpp index c6d9d6f1b..a933b859d 100644 --- a/src/osgWrappers/osg/TexGen.cpp +++ b/src/osgWrappers/osg/TexGen.cpp @@ -41,7 +41,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexGen::Coord) I_EnumLabel(osg::TexGen::Q); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TexGen) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexGen) I_BaseType(osg::StateAttribute); I_Constructor0(____TexGen, "", @@ -51,66 +51,82 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "", ""); I_Method0(osg::TexGen::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "", ""); I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, __void__setPlane__Coord__C5_Plane_R1, "", ""); I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, __Plane_R1__getPlane__Coord, "", ""); I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, __C5_Plane_R1__getPlane__Coord, "", ""); I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, __void__setPlanesFromMatrix__C5_Matrixd_R1, "Set the tex gen planes from specified matrix. ", "Typical usage would be to pass in a projection matrix to set up projective texturing."); diff --git a/src/osgWrappers/osg/TexGenNode.cpp b/src/osgWrappers/osg/TexGenNode.cpp index 4a4e5cc5e..ba4792807 100644 --- a/src/osgWrappers/osg/TexGenNode.cpp +++ b/src/osgWrappers/osg/TexGenNode.cpp @@ -29,12 +29,13 @@ BEGIN_ENUM_REFLECTOR(osg::TexGenNode::ReferenceFrame) I_EnumLabel(osg::TexGenNode::ABSOLUTE_RF); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexGenNode) I_BaseType(osg::Group); I_Constructor0(____TexGenNode, "", ""); I_Constructor1(IN, osg::TexGen *, texgen, + Properties::NON_EXPLICIT, ____TexGenNode__TexGen_P1, "", ""); @@ -43,58 +44,72 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, + Properties::NON_VIRTUAL, __void__setReferenceFrame__ReferenceFrame, "Set the TexGenNode's ReferenceFrame, either to be relative to its parent reference frame. ", ""); I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, __ReferenceFrame__getReferenceFrame, "Ge thte TexGenNode's ReferenceFrame. ", ""); I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit, + Properties::NON_VIRTUAL, __void__setTextureUnit__unsigned_int, "Set the texture unit that this TexGenNode is associated with. ", ""); I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, __unsigned_int__getTextureUnit, "", ""); I_Method1(void, setTexGen, IN, osg::TexGen *, texgen, + Properties::NON_VIRTUAL, __void__setTexGen__TexGen_P1, "Set the TexGen. ", ""); I_Method0(osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, __TexGen_P1__getTexGen, "Get the TexGen. ", ""); I_Method0(const osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, __C5_TexGen_P1__getTexGen, "Get the const TexGen. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); diff --git a/src/osgWrappers/osg/TexMat.cpp b/src/osgWrappers/osg/TexMat.cpp index a2a31036f..300163acb 100644 --- a/src/osgWrappers/osg/TexMat.cpp +++ b/src/osgWrappers/osg/TexMat.cpp @@ -25,12 +25,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::TexMat) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TexMat) I_BaseType(osg::StateAttribute); I_Constructor0(____TexMat, "", ""); I_Constructor1(IN, const osg::Matrix &, matrix, + Properties::NON_EXPLICIT, ____TexMat__C5_Matrix_R1, "", ""); @@ -39,58 +40,72 @@ BEGIN_OBJECT_REFLECTOR(osg::TexMat) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setMatrix__C5_Matrix_R1, "Set the texture matrix. ", ""); I_Method0(osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __Matrix_R1__getMatrix, "Get the texture matrix. ", ""); I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, __C5_Matrix_R1__getMatrix, "Get the const texture matrix. ", ""); I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setScaleByTextureRectangleSize__bool, "Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. ", "Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded. "); I_Method0(bool, getScaleByTextureRectangleSize, + Properties::NON_VIRTUAL, __bool__getScaleByTextureRectangleSize, "Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Apply texture matrix to OpenGL state. ", ""); diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index d1a228e37..60773cf70 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -89,262 +89,327 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::PURE_VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::PURE_VIRTUAL, __osg_Object_P1__clone__C5_CopyOp_R1, "Clone an attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, __bool__isTextureAttribute, "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::PURE_VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, + Properties::NON_VIRTUAL, __void__setWrap__WrapParameter__WrapMode, "Sets the texture wrap mode. ", ""); I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, + Properties::NON_VIRTUAL, __WrapMode__getWrap__WrapParameter, "Gets the texture wrap mode. ", ""); I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setBorderColor__C5_Vec4_R1, "Sets the border color. ", "Only used when wrap mode is CLAMP_TO_BORDER. "); I_Method0(const osg::Vec4 &, getBorderColor, + Properties::NON_VIRTUAL, __C5_Vec4_R1__getBorderColor, "Gets the border color. ", ""); I_Method1(void, setBorderWidth, IN, GLint, width, + Properties::NON_VIRTUAL, __void__setBorderWidth__GLint, "Sets the border width. ", ""); I_Method0(GLint, getBorderWidth, + Properties::NON_VIRTUAL, __GLint__getBorderWidth, "", ""); I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, __void__setFilter__FilterParameter__FilterMode, "Sets the texture filter mode. ", ""); I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, + Properties::NON_VIRTUAL, __FilterMode__getFilter__FilterParameter, "Gets the texture filter mode. ", ""); I_Method1(void, setMaxAnisotropy, IN, float, anis, + Properties::NON_VIRTUAL, __void__setMaxAnisotropy__float, "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); I_Method0(float, getMaxAnisotropy, + Properties::NON_VIRTUAL, __float__getMaxAnisotropy, "Gets the maximum anisotropy value. ", ""); I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, + Properties::NON_VIRTUAL, __void__setUseHardwareMipMapGeneration__bool, "Sets the hardware mipmap generation hint. ", "If enabled, it will only be used if supported in the graphics system. "); I_Method0(bool, getUseHardwareMipMapGeneration, + Properties::NON_VIRTUAL, __bool__getUseHardwareMipMapGeneration, "Gets the hardware mipmap generation hint. ", ""); I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setUnRefImageDataAfterApply__bool, "Sets whether or not the apply() function will unreference the image data. ", "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); I_Method0(bool, getUnRefImageDataAfterApply, + Properties::NON_VIRTUAL, __bool__getUnRefImageDataAfterApply, "Gets whether or not apply() unreferences image data. ", ""); I_Method1(void, setClientStorageHint, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setClientStorageHint__bool, "Sets whether to use client storage for the texture, if supported by the graphics system. ", "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); I_Method0(bool, getClientStorageHint, + Properties::NON_VIRTUAL, __bool__getClientStorageHint, "Gets whether to use client storage for the texture. ", ""); I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setResizeNonPowerOfTwoHint__bool, "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); I_Method0(bool, getResizeNonPowerOfTwoHint, + Properties::NON_VIRTUAL, __bool__getResizeNonPowerOfTwoHint, "Gets whether texture will force non power to two images to be resized. ", ""); I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, + Properties::NON_VIRTUAL, __void__setInternalFormatMode__InternalFormatMode, "Sets the internal texture format mode. ", "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, + Properties::NON_VIRTUAL, __InternalFormatMode__getInternalFormatMode, "Gets the internal texture format mode. ", ""); I_Method1(void, setInternalFormat, IN, GLint, internalFormat, + Properties::NON_VIRTUAL, __void__setInternalFormat__GLint, "Sets the internal texture format. ", "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); I_Method0(GLint, getInternalFormat, + Properties::NON_VIRTUAL, __GLint__getInternalFormat, "Gets the internal texture format. ", ""); I_Method0(bool, isCompressedInternalFormat, + Properties::NON_VIRTUAL, __bool__isCompressedInternalFormat, "Return true if the internal format is one of the compressed formats. ", ""); I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, + Properties::NON_VIRTUAL, __void__setSourceFormat__GLenum, "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", ""); I_Method0(GLenum, getSourceFormat, + Properties::NON_VIRTUAL, __GLenum__getSourceFormat, "Gets the external source image format. ", ""); I_Method1(void, setSourceType, IN, GLenum, sourceType, + Properties::NON_VIRTUAL, __void__setSourceType__GLenum, "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", ""); I_Method0(GLenum, getSourceType, + Properties::NON_VIRTUAL, __GLenum__getSourceType, "Gets the external source data type. ", ""); I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __TextureObject_P1__getTextureObject__unsigned_int, "Returns a pointer to the texture object for the current context. ", ""); I_Method0(void, dirtyTextureObject, + Properties::NON_VIRTUAL, __void__dirtyTextureObject, "Forces a recompile on next apply() of associated OpenGL texture objects. ", ""); I_Method0(bool, areAllTextureObjectsLoaded, + Properties::NON_VIRTUAL, __bool__areAllTextureObjectsLoaded, "Returns true if the texture objects for all the required graphics contexts are loaded. ", ""); I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getTextureParameterDirty__unsigned_int, "Gets the dirty flag for the current contextID. ", ""); I_Method0(void, dirtyTextureParameters, + Properties::NON_VIRTUAL, __void__dirtyTextureParameters, "Force a reset on next apply() of associated OpenGL texture parameters. ", ""); I_Method1(void, setShadowComparison, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setShadowComparison__bool, "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", ""); I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, + Properties::NON_VIRTUAL, __void__setShadowCompareFunc__ShadowCompareFunc, "Sets shadow texture comparison function. ", ""); I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, + Properties::NON_VIRTUAL, __ShadowCompareFunc__getShadowCompareFunc, "", ""); I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, + Properties::NON_VIRTUAL, __void__setShadowTextureMode__ShadowTextureMode, "Sets shadow texture mode after comparison. ", ""); I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, + Properties::NON_VIRTUAL, __ShadowTextureMode__getShadowTextureMode, "", ""); I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, + Properties::NON_VIRTUAL, __void__setShadowAmbient__float, "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); I_Method0(float, getShadowAmbient, + Properties::NON_VIRTUAL, __float__getShadowAmbient, "", ""); I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + Properties::PURE_VIRTUAL, __void__setImage__unsigned_int__Image_P1, "Sets the texture image for the specified face. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, __Image_P1__getImage__unsigned_int, "Gets the texture image for the specified face. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + Properties::PURE_VIRTUAL, __C5_Image_P1__getImage__unsigned_int, "Gets the const texture image for specified face. ", ""); I_Method0(unsigned int, getNumImages, + Properties::PURE_VIRTUAL, __unsigned_int__getNumImages, "Gets the number of images that can be assigned to this Texture. ", ""); I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, __void__setReadPBuffer__GraphicsContext_P1, "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); I_Method0(osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, __GraphicsContext_P1__getReadPBuffer, "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); I_Method0(const osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, __C5_GraphicsContext_P1__getReadPBuffer, "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__apply__State_R1, "Texture is a pure virtual base class, apply must be overriden. ", ""); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Calls apply(state) to compile the texture. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, + Properties::NON_VIRTUAL, __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, "Helper method. ", "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, + Properties::NON_VIRTUAL, __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, "Helper method. ", "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, + Properties::NON_VIRTUAL, __void__takeTextureObjects__TextureObjectListMap_R1, "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", ""); @@ -468,153 +533,190 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtensions__unsigned_int, "", ""); I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setMultiTexturingSupported__bool, "", ""); I_Method0(bool, isMultiTexturingSupported, + Properties::NON_VIRTUAL, __bool__isMultiTexturingSupported, "", ""); I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureFilterAnisotropicSupported__bool, "", ""); I_Method0(bool, isTextureFilterAnisotropicSupported, + Properties::NON_VIRTUAL, __bool__isTextureFilterAnisotropicSupported, "", ""); I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureCompressionARBSupported__bool, "", ""); I_Method0(bool, isTextureCompressionARBSupported, + Properties::NON_VIRTUAL, __bool__isTextureCompressionARBSupported, "", ""); I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureCompressionS3TCSupported__bool, "", ""); I_Method0(bool, isTextureCompressionS3TCSupported, + Properties::NON_VIRTUAL, __bool__isTextureCompressionS3TCSupported, "", ""); I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureMirroredRepeatSupported__bool, "", ""); I_Method0(bool, isTextureMirroredRepeatSupported, + Properties::NON_VIRTUAL, __bool__isTextureMirroredRepeatSupported, "", ""); I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureEdgeClampSupported__bool, "", ""); I_Method0(bool, isTextureEdgeClampSupported, + Properties::NON_VIRTUAL, __bool__isTextureEdgeClampSupported, "", ""); I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTextureBorderClampSupported__bool, "", ""); I_Method0(bool, isTextureBorderClampSupported, + Properties::NON_VIRTUAL, __bool__isTextureBorderClampSupported, "", ""); I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setGenerateMipMapSupported__bool, "", ""); I_Method0(bool, isGenerateMipMapSupported, + Properties::NON_VIRTUAL, __bool__isGenerateMipMapSupported, "", ""); I_Method1(void, setShadowSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setShadowSupported__bool, "", ""); I_Method0(bool, isShadowSupported, + Properties::NON_VIRTUAL, __bool__isShadowSupported, "", ""); I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setShadowAmbientSupported__bool, "", ""); I_Method0(bool, isShadowAmbientSupported, + Properties::NON_VIRTUAL, __bool__isShadowAmbientSupported, "", ""); I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, __void__setMaxTextureSize__GLint, "", ""); I_Method0(GLint, maxTextureSize, + Properties::NON_VIRTUAL, __GLint__maxTextureSize, "", ""); I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + Properties::NON_VIRTUAL, __void__setNumTextureUnits__GLint, "", ""); I_Method0(GLint, numTextureUnits, + Properties::NON_VIRTUAL, __GLint__numTextureUnits, "", ""); I_Method0(bool, isCompressedTexImage2DSupported, + Properties::NON_VIRTUAL, __bool__isCompressedTexImage2DSupported, "", ""); I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setCompressedTexImage2DProc__void_P1, "", ""); I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, "", ""); I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setCompressedTexSubImage2DProc__void_P1, "", ""); I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, "", ""); I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setGetCompressedTexImageProc__void_P1, "", ""); I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + Properties::NON_VIRTUAL, __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, "", ""); I_Method0(bool, isClientStorageSupported, + Properties::NON_VIRTUAL, __bool__isClientStorageSupported, "", ""); I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + Properties::NON_VIRTUAL, __bool__isNonPowerOfTwoTextureSupported__GLenum, "", ""); @@ -665,7 +767,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) __void__setTextureMirroredRepeatSupported__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture::TextureObject) I_BaseType(osg::Referenced); I_Constructor2(IN, GLuint, id, IN, GLenum, target, ____TextureObject__GLuint__GLenum, @@ -676,26 +778,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) "", ""); I_Method7(bool, match, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + Properties::NON_VIRTUAL, __bool__match__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, "", ""); I_Method0(void, bind, + Properties::NON_VIRTUAL, __void__bind, "", ""); I_MethodWithDefaults1(void, setAllocated, IN, bool, allocated, true, + Properties::NON_VIRTUAL, __void__setAllocated__bool, "", ""); I_Method6(void, setAllocated, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + Properties::NON_VIRTUAL, __void__setAllocated__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, "", ""); I_Method0(bool, isAllocated, + Properties::NON_VIRTUAL, __bool__isAllocated, "", ""); I_Method0(bool, isReusable, + Properties::NON_VIRTUAL, __bool__isReusable, "", ""); @@ -719,26 +827,32 @@ BEGIN_VALUE_REFLECTOR(osg::buffered_object< osg::Texture::TextureObjectList >) "", ""); I_Constructor1(IN, unsigned int, size, + Properties::NON_EXPLICIT, ____buffered_object__unsigned_int, "", ""); I_Method1(void, setAllElementsTo, IN, const osg::Texture::TextureObjectList &, t, + Properties::NON_VIRTUAL, __void__setAllElementsTo__C5_T_R1, "", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); I_Method0(unsigned int, size, + Properties::NON_VIRTUAL, __unsigned_int__size, "", ""); I_Method1(void, resize, IN, unsigned int, newSize, + Properties::NON_VIRTUAL, __void__resize__unsigned_int, "", ""); @@ -752,26 +866,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture::TextureObject >) "", ""); I_Constructor1(IN, osg::Texture::TextureObject *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Texture::TextureObject > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Texture::TextureObject *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Texture::TextureObject *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture::TextureObject > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osg/Texture1D.cpp b/src/osgWrappers/osg/Texture1D.cpp index 7770ef21a..8f7bd9923 100644 --- a/src/osgWrappers/osg/Texture1D.cpp +++ b/src/osgWrappers/osg/Texture1D.cpp @@ -35,114 +35,142 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture1D) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__Image_P1, "Sets the texture image. ", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __Image_P1__getImage, "Gets the texture image. ", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_Image_P1__getImage, "Gets the const texture image. ", ""); I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getModifiedCount__unsigned_int, "", ""); I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, __void__setImage__unsigned__Image_P1, "Sets the texture image, ignoring face. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __Image_P1__getImage__unsigned, "Gets the texture image, ignoring face. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __C5_Image_P1__getImage__unsigned, "Gets the const texture image, ignoring face. ", ""); I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, __unsigned_int__getNumImages, "Gets the number of images that can be assigned to the Texture. ", ""); I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, __void__setTextureWidth__int, "Sets the texture width. ", "If width is zero, calculate the value from the source image width. "); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "Gets the texture width. ", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method1(void, setSubloadCallback, IN, osg::Texture1D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, __void__setSubloadCallback__SubloadCallback_P1, "", ""); I_Method0(osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __SubloadCallback_P1__getSubloadCallback, "", ""); I_Method0(const osg::Texture1D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __C5_SubloadCallback_P1__getSubloadCallback, "", ""); I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setNumMipmapLevels__unsigned_int, "Helper function. ", "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumMipmapLevels, "Gets the number of mipmap levels created. ", ""); I_Method4(void, copyTexImage1D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, + Properties::NON_VIRTUAL, __void__copyTexImage1D__State_R1__int__int__int, "Copies pixels into a 1D texture image, as per glCopyTexImage1D. ", "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width. width must be a power of two. "); I_Method5(void, copyTexSubImage1D, IN, osg::State &, state, IN, int, xoffset, IN, int, x, IN, int, y, IN, int, width, + Properties::NON_VIRTUAL, __void__copyTexSubImage1D__State_R1__int__int__int__int, "Copies a one-dimensional texture subimage, as per glCopyTexSubImage1D. ", "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width. "); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Bind the texture object. ", "If the texture object hasn't already been compiled, create the texture mipmap levels. "); @@ -178,10 +206,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) "", ""); I_Method2(void, load, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__load__C5_Texture1D_R1__State_R1, "", ""); I_Method2(void, subload, IN, const osg::Texture1D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__subload__C5_Texture1D_R1__State_R1, "", ""); diff --git a/src/osgWrappers/osg/Texture2D.cpp b/src/osgWrappers/osg/Texture2D.cpp index a8f269259..2483ef61c 100644 --- a/src/osgWrappers/osg/Texture2D.cpp +++ b/src/osgWrappers/osg/Texture2D.cpp @@ -31,6 +31,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D) "", ""); I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, ____Texture2D__Image_P1, "", ""); @@ -39,122 +40,152 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture2D) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__Image_P1, "Sets the texture image. ", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __Image_P1__getImage, "Gets the texture image. ", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_Image_P1__getImage, "Gets the const texture image. ", ""); I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getModifiedCount__unsigned_int, "", ""); I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, __void__setImage__unsigned__Image_P1, "Sets the texture image, ignoring face. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __Image_P1__getImage__unsigned, "Gets the texture image, ignoring face. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __C5_Image_P1__getImage__unsigned, "Gets the const texture image, ignoring face. ", ""); I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, __unsigned_int__getNumImages, "Gets the number of images that can be assigned to the Texture. ", ""); I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureSize__int__int, "Sets the texture width and height. ", "If width or height are zero, calculate the respective value from the source image size. "); I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, __void__setTextureWidth__int, "", ""); I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureHeight__int, "", ""); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, __void__setSubloadCallback__SubloadCallback_P1, "", ""); I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __SubloadCallback_P1__getSubloadCallback, "", ""); I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __C5_SubloadCallback_P1__getSubloadCallback, "", ""); I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setNumMipmapLevels__unsigned_int, "Helper function. ", "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumMipmapLevels, "Gets the number of mipmap levels created. ", ""); I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexImage2D__State_R1__int__int__int__int, "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Bind the texture object. ", "If the texture object hasn't already been compiled, create the texture mipmap levels. "); @@ -190,10 +221,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) "", ""); I_Method2(void, load, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__load__C5_Texture2D_R1__State_R1, "", ""); I_Method2(void, subload, IN, const osg::Texture2D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__subload__C5_Texture2D_R1__State_R1, "", ""); diff --git a/src/osgWrappers/osg/Texture3D.cpp b/src/osgWrappers/osg/Texture3D.cpp index d190fa979..a912ecdef 100644 --- a/src/osgWrappers/osg/Texture3D.cpp +++ b/src/osgWrappers/osg/Texture3D.cpp @@ -35,126 +35,157 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__Image_P1, "Sets the texture image. ", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __Image_P1__getImage, "Gets the texture image. ", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_Image_P1__getImage, "Gets the const texture image. ", ""); I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getModifiedCount__unsigned_int, "", ""); I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, __void__setImage__unsigned__Image_P1, "Sets the texture image, ignoring face. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __Image_P1__getImage__unsigned, "Gets the texture image, ignoring face. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __C5_Image_P1__getImage__unsigned, "Gets the const texture image, ignoring face. ", ""); I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, __unsigned_int__getNumImages, "Gets the number of images that can be assigned to the Texture. ", ""); I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth, + Properties::NON_VIRTUAL, __void__setTextureSize__int__int__int, "Sets the texture width, height, and depth. ", "If width, height, or depth are zero, calculate the respective value from the source image size. "); I_Method3(void, getTextureSize, IN, int &, width, IN, int &, height, IN, int &, depth, + Properties::NON_VIRTUAL, __void__getTextureSize__int_R1__int_R1__int_R1, "Gets the texture subload width. ", ""); I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, __void__setTextureWidth__int, "", ""); I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureHeight__int, "", ""); I_Method1(void, setTextureDepth, IN, int, depth, + Properties::NON_VIRTUAL, __void__setTextureDepth__int, "", ""); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method1(void, setSubloadCallback, IN, osg::Texture3D::SubloadCallback *, cb, + Properties::NON_VIRTUAL, __void__setSubloadCallback__SubloadCallback_P1, "", ""); I_Method0(osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __SubloadCallback_P1__getSubloadCallback, "", ""); I_Method0(const osg::Texture3D::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __C5_SubloadCallback_P1__getSubloadCallback, "", ""); I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setNumMipmapLevels__unsigned_int, "Helper function. ", "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumMipmapLevels, "Gets the number of mipmap levels created. ", ""); I_Method8(void, copyTexSubImage3D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, zoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexSubImage3D__State_R1__int__int__int__int__int__int__int, "Copies a two-dimensional texture subimage, as per glCopyTexSubImage3D. ", "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset, yoffset, and zoffset. width and height must be powers of two. "); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "Bind the texture object. ", "If the texture object hasn't already been compiled, create the texture mipmap levels. "); @@ -192,101 +223,125 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtensions__unsigned_int, "", ""); I_Method1(void, setTexture3DSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTexture3DSupported__bool, "", ""); I_Method0(bool, isTexture3DSupported, + Properties::NON_VIRTUAL, __bool__isTexture3DSupported, "", ""); I_Method1(void, setTexture3DFast, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setTexture3DFast__bool, "", ""); I_Method0(bool, isTexture3DFast, + Properties::NON_VIRTUAL, __bool__isTexture3DFast, "", ""); I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, __void__setMaxTexture3DSize__GLint, "", ""); I_Method0(GLint, maxTexture3DSize, + Properties::NON_VIRTUAL, __GLint__maxTexture3DSize, "", ""); I_Method1(void, setTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setTexImage3DProc__void_P1, "", ""); I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + Properties::NON_VIRTUAL, __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, "", ""); I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setTexSubImage3DProc__void_P1, "", ""); I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, + Properties::NON_VIRTUAL, __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, "", ""); I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setCopyTexSubImage3DProc__void_P1, "", ""); I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, + Properties::NON_VIRTUAL, __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, "", ""); I_Method0(bool, isCompressedTexImage3DSupported, + Properties::NON_VIRTUAL, __bool__isCompressedTexImage3DSupported, "", ""); I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setCompressedTexImage3DProc__void_P1, "", ""); I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, "", ""); I_Method0(bool, isCompressedTexSubImage3DSupported, + Properties::NON_VIRTUAL, __bool__isCompressedTexSubImage3DSupported, "", ""); I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setCompressedTexSubImage3DProc__void_P1, "", ""); I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, "", ""); I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, + Properties::NON_VIRTUAL, __void__setBuild3DMipmapsProc__void_P1, "", ""); I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, "", ""); @@ -325,10 +380,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) "", ""); I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__load__C5_Texture3D_R1__State_R1, "", ""); I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__subload__C5_Texture3D_R1__State_R1, "", ""); diff --git a/src/osgWrappers/osg/TextureCubeMap.cpp b/src/osgWrappers/osg/TextureCubeMap.cpp index 349cdc05b..a9a7d84bd 100644 --- a/src/osgWrappers/osg/TextureCubeMap.cpp +++ b/src/osgWrappers/osg/TextureCubeMap.cpp @@ -34,7 +34,7 @@ BEGIN_ENUM_REFLECTOR(osg::TextureCubeMap::Face) I_EnumLabel(osg::TextureCubeMap::NEGATIVE_Z); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap) I_BaseType(osg::Texture); I_Constructor0(____TextureCubeMap, "", @@ -44,106 +44,132 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, + Properties::VIRTUAL, __void__setImage__unsigned_int__Image_P1, "Set the texture image for specified face. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned int, face, + Properties::VIRTUAL, __Image_P1__getImage__unsigned_int, "Get the texture image for specified face. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned int, face, + Properties::VIRTUAL, __C5_Image_P1__getImage__unsigned_int, "Get the const texture image for specified face. ", ""); I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, __unsigned_int__getNumImages, "Get the number of images that can be assigned to the Texture. ", ""); I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, face, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, "", ""); I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureSize__int__int, "Set the texture width and height. ", "If width or height are zero then the repsective size value is calculated from the source image sizes."); I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, __void__setTextureWidth__int, "", ""); I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureHeight__int, "", ""); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method1(void, setSubloadCallback, IN, osg::TextureCubeMap::SubloadCallback *, cb, + Properties::NON_VIRTUAL, __void__setSubloadCallback__SubloadCallback_P1, "", ""); I_Method0(osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __SubloadCallback_P1__getSubloadCallback, "", ""); I_Method0(const osg::TextureCubeMap::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __C5_SubloadCallback_P1__getSubloadCallback, "", ""); I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setNumMipmapLevels__unsigned_int, "Set the number of mip map levels the the texture has been created with. ", "Should only be called within an osg::Texuture::apply() and custom OpenGL texture load."); I_Method0(unsigned int, getNumMipmapLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumMipmapLevels, "Get the number of mip map levels the the texture has been created with. ", ""); I_Method8(void, copyTexSubImageCubeMap, IN, osg::State &, state, IN, int, face, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexSubImageCubeMap__State_R1__int__int__int__int__int__int__int, "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "On first apply (unless already compiled), create the mipmapped texture and bind it. ", "Subsequent apply will simple bind to texture."); @@ -185,29 +211,35 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::TextureCubeMap::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::TextureCubeMap::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setCubeMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setCubeMapSupported__bool, "", ""); I_Method0(bool, isCubeMapSupported, + Properties::NON_VIRTUAL, __bool__isCubeMapSupported, "", ""); @@ -222,10 +254,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) "", ""); I_Method2(void, load, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__load__C5_TextureCubeMap_R1__State_R1, "", ""); I_Method2(void, subload, IN, const osg::TextureCubeMap &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, __void__subload__C5_TextureCubeMap_R1__State_R1, "", ""); diff --git a/src/osgWrappers/osg/TextureRectangle.cpp b/src/osgWrappers/osg/TextureRectangle.cpp index 8f6b14df2..43ac6d0be 100644 --- a/src/osgWrappers/osg/TextureRectangle.cpp +++ b/src/osgWrappers/osg/TextureRectangle.cpp @@ -31,6 +31,7 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) "", ""); I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, ____TextureRectangle__Image_P1, "", ""); @@ -39,114 +40,142 @@ BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(GLenum, getTextureTarget, + Properties::VIRTUAL, __GLenum__getTextureTarget, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__Image_P1, "Set the texture image. ", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __Image_P1__getImage, "Get the texture image. ", ""); I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, __C5_Image_P1__getImage, "Get the const texture image. ", ""); I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __unsigned_int_R1__getModifiedCount__unsigned_int, "", ""); I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, + Properties::VIRTUAL, __void__setImage__unsigned__Image_P1, "Set the texture image, ignoring face value as there is only one image. ", ""); I_Method1(osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __Image_P1__getImage__unsigned, "Get the texture image, ignoring face value as there is only one image. ", ""); I_Method1(const osg::Image *, getImage, IN, unsigned, int, + Properties::VIRTUAL, __C5_Image_P1__getImage__unsigned, "Get the const texture image, ignoring face value as there is only one image. ", ""); I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, __unsigned_int__getNumImages, "Get the number of images that can be assigned to the Texture. ", ""); I_Method2(void, setTextureSize, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureSize__int__int, "Set the texture width and height. ", "If width or height are zero then the repsective size value is calculated from the source image sizes."); I_Method1(void, setTextureWidth, IN, int, width, + Properties::NON_VIRTUAL, __void__setTextureWidth__int, "", ""); I_Method1(void, setTextureHeight, IN, int, height, + Properties::NON_VIRTUAL, __void__setTextureHeight__int, "", ""); I_Method0(int, getTextureWidth, + Properties::VIRTUAL, __int__getTextureWidth, "", ""); I_Method0(int, getTextureHeight, + Properties::VIRTUAL, __int__getTextureHeight, "", ""); I_Method0(int, getTextureDepth, + Properties::VIRTUAL, __int__getTextureDepth, "", ""); I_Method1(void, setSubloadCallback, IN, osg::TextureRectangle::SubloadCallback *, cb, + Properties::NON_VIRTUAL, __void__setSubloadCallback__SubloadCallback_P1, "", ""); I_Method0(osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __SubloadCallback_P1__getSubloadCallback, "", ""); I_Method0(const osg::TextureRectangle::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, __C5_SubloadCallback_P1__getSubloadCallback, "", ""); I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexImage2D__State_R1__int__int__int__int, "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "On first apply (unless already compiled), create and bind the texture, subsequent apply will simply bind to texture. ", ""); @@ -179,10 +208,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle::SubloadCallback) "", ""); I_Method2(void, load, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, + Properties::PURE_VIRTUAL, __void__load__C5_TextureRectangle_R1__State_R1, "", ""); I_Method2(void, subload, IN, const osg::TextureRectangle &, x, IN, osg::State &, x, + Properties::PURE_VIRTUAL, __void__subload__C5_TextureRectangle_R1__State_R1, "", ""); diff --git a/src/osgWrappers/osg/Timer.cpp b/src/osgWrappers/osg/Timer.cpp index 4e9ad6356..d1de5bee7 100644 --- a/src/osgWrappers/osg/Timer.cpp +++ b/src/osgWrappers/osg/Timer.cpp @@ -25,54 +25,67 @@ BEGIN_VALUE_REFLECTOR(osg::Timer) "", ""); I_Method0(osg::Timer_t, tick, + Properties::NON_VIRTUAL, __Timer_t__tick, "Get the timers tick value. ", ""); I_Method0(void, setStartTick, + Properties::NON_VIRTUAL, __void__setStartTick, "Set the start. ", ""); I_Method1(void, setStartTick, IN, osg::Timer_t, t, + Properties::NON_VIRTUAL, __void__setStartTick__Timer_t, "", ""); I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, __Timer_t__getStartTick, "", ""); I_Method0(double, time_s, + Properties::NON_VIRTUAL, __double__time_s, "Get elapsed time in seconds. ", ""); I_Method0(double, time_m, + Properties::NON_VIRTUAL, __double__time_m, "Get elapsed time in milliseconds. ", ""); I_Method0(double, time_u, + Properties::NON_VIRTUAL, __double__time_u, "Get elapsed time in micoseconds. ", ""); I_Method0(double, time_n, + Properties::NON_VIRTUAL, __double__time_n, "Get elapsed time in nanoseconds. ", ""); I_Method2(double, delta_s, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + Properties::NON_VIRTUAL, __double__delta_s__Timer_t__Timer_t, "Get the time in seconds between timer ticks t1 and t2. ", ""); I_Method2(double, delta_m, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + Properties::NON_VIRTUAL, __double__delta_m__Timer_t__Timer_t, "Get the time in milliseconds between timer ticks t1 and t2. ", ""); I_Method2(double, delta_u, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + Properties::NON_VIRTUAL, __double__delta_u__Timer_t__Timer_t, "Get the time in microseconds between timer ticks t1 and t2. ", ""); I_Method2(double, delta_n, IN, osg::Timer_t, t1, IN, osg::Timer_t, t2, + Properties::NON_VIRTUAL, __double__delta_n__Timer_t__Timer_t, "Get the time in nanoseconds between timer ticks t1 and t2. ", ""); I_Method0(double, getSecondsPerTick, + Properties::NON_VIRTUAL, __double__getSecondsPerTick, "Get the the numer of ticks per second. ", ""); diff --git a/src/osgWrappers/osg/Transform.cpp b/src/osgWrappers/osg/Transform.cpp index f8f43e784..02c862026 100644 --- a/src/osgWrappers/osg/Transform.cpp +++ b/src/osgWrappers/osg/Transform.cpp @@ -33,7 +33,7 @@ BEGIN_ENUM_REFLECTOR(osg::Transform::ReferenceFrame) I_EnumLabel(osg::Transform::ABSOLUTE_RF_INHERIT_VIEWPOINT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Transform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Transform) I_BaseType(osg::Group); I_Constructor0(____Transform, "", @@ -43,70 +43,87 @@ BEGIN_OBJECT_REFLECTOR(osg::Transform) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osg::Transform *, asTransform, + Properties::VIRTUAL, __Transform_P1__asTransform, "Convert 'this' into a Transform pointer if Node is a Transform, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(const osg::Transform *, asTransform, + Properties::VIRTUAL, __C5_Transform_P1__asTransform, "convert 'const this' into a const Transform pointer if Node is a Transform, otherwise return 0. ", "Equivalent to dynamic_cast(this). "); I_Method0(osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, __MatrixTransform_P1__asMatrixTransform, "", ""); I_Method0(const osg::MatrixTransform *, asMatrixTransform, + Properties::VIRTUAL, __C5_MatrixTransform_P1__asMatrixTransform, "", ""); I_Method0(osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, __PositionAttitudeTransform_P1__asPositionAttitudeTransform, "", ""); I_Method0(const osg::PositionAttitudeTransform *, asPositionAttitudeTransform, + Properties::VIRTUAL, __C5_PositionAttitudeTransform_P1__asPositionAttitudeTransform, "", ""); I_Method1(void, setReferenceFrame, IN, osg::Transform::ReferenceFrame, rf, + Properties::NON_VIRTUAL, __void__setReferenceFrame__ReferenceFrame, "Set the transform's ReferenceFrame, either to be relative to its parent reference frame, or relative to an absolute coordinate frame. ", "RELATIVE_RF is the default. Note: Setting the ReferenceFrame to be ABSOLUTE_RF will also set the CullingActive flag on the transform, and hence all of its parents, to false, thereby disabling culling of it and all its parents. This is neccessary to prevent inappropriate culling, but may impact cull times if the absolute transform is deep in the scene graph. It is therefore recommended to only use absolute Transforms at the top of the scene, for such things as heads up displays. ABSOLUTE_RF_INHERIT_VIEWPOINT is the same as ABSOLUTE_RF except it adds the ability to use the parents view points position in world coordinates as its local viewpoint in the new coordinates frame. This is useful for Render to texture Cameras that wish to use the main views LOD range computation (which uses the viewpoint rather than the eye point) rather than use the local eye point defined by the this Transforms' abosolute view matrix."); I_Method0(osg::Transform::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, __ReferenceFrame__getReferenceFrame, "", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__Matrix_R1__NodeVisitor_P1, "", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __BoundingSphere__computeBound, "Overrides Group's computeBound. ", "There is no need to override in subclasses from osg::Transform since this computeBound() uses the underlying matrix (calling computeMatrix if required)."); diff --git a/src/osgWrappers/osg/Uniform.cpp b/src/osgWrappers/osg/Uniform.cpp index 4a4c6b724..2f6a8adb9 100644 --- a/src/osgWrappers/osg/Uniform.cpp +++ b/src/osgWrappers/osg/Uniform.cpp @@ -36,6 +36,7 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix2) "", ""); I_Constructor1(IN, const osg::Matrix2 &, mat, + Properties::NON_EXPLICIT, ____Matrix2__C5_Matrix2_R1, "", ""); @@ -44,26 +45,32 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix2) "", ""); I_Method1(void, set, IN, const osg::Matrix2 &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrix2_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method4(void, set, IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + Properties::NON_VIRTUAL, __void__set__float__float__float__float, "", ""); I_Method0(float *, ptr, + Properties::NON_VIRTUAL, __float_P1__ptr, "", ""); I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, __C5_float_P1__ptr, "", ""); I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, __void__makeIdentity, "", ""); @@ -74,6 +81,7 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix3) "", ""); I_Constructor1(IN, const osg::Matrix3 &, mat, + Properties::NON_EXPLICIT, ____Matrix3__C5_Matrix3_R1, "", ""); @@ -82,26 +90,32 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix3) "", ""); I_Method1(void, set, IN, const osg::Matrix3 &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Matrix3_R1, "", ""); I_Method1(void, set, IN, float const *const, ptr, + Properties::NON_VIRTUAL, __void__set__float_C5_P1C5, "", ""); I_Method9(void, set, IN, float, a00, IN, float, a01, IN, float, a02, IN, float, a10, IN, float, a11, IN, float, a12, IN, float, a20, IN, float, a21, IN, float, a22, + Properties::NON_VIRTUAL, __void__set__float__float__float__float__float__float__float__float__float, "", ""); I_Method0(float *, ptr, + Properties::NON_VIRTUAL, __float_P1__ptr, "", ""); I_Method0(const float *, ptr, + Properties::NON_VIRTUAL, __C5_float_P1__ptr, "", ""); I_Method0(void, makeIdentity, + Properties::NON_VIRTUAL, __void__makeIdentity, "", ""); @@ -134,7 +148,7 @@ BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) I_EnumLabel(osg::Uniform::UNDEFINED); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Uniform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Uniform) I_BaseType(osg::Object); I_Constructor0(____Uniform, "", @@ -148,46 +162,57 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(bool, setType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, __bool__setType__Type, "Set the type of glUniform, ensuring it is only set once. ", ""); I_Method0(const osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, __C5_Type__getType, "Get the type of glUniform as enum. ", ""); I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __void__setName__C5_std_string_R1, "Set the name of the glUniform, ensuring it is only set once. ", ""); I_Method1(void, setNumElements, IN, unsigned int, numElements, + Properties::NON_VIRTUAL, __void__setNumElements__unsigned_int, "Set the length of a uniform, ensuring it is only set once (1==scalar). ", ""); I_Method0(unsigned int, getNumElements, + Properties::NON_VIRTUAL, __unsigned_int__getNumElements, "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", ""); I_Method0(unsigned int, getInternalArrayNumElements, + Properties::NON_VIRTUAL, __unsigned_int__getInternalArrayNumElements, "Get the number of elements required for the internal data array. ", "Returns 0 if the osg::Uniform is not properly configured. "); @@ -256,354 +281,442 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform) "", ""); I_Method1(int, compare, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, __int__compare__C5_Uniform_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, __int__compareData__C5_Uniform_R1, "", ""); I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + Properties::NON_VIRTUAL, __void__copyData__C5_Uniform_R1, "", ""); I_Method0(const osg::Uniform::ParentList &, getParents, + Properties::NON_VIRTUAL, __C5_ParentList_R1__getParents, "Get the parent list of this Uniform. ", ""); I_Method0(osg::Uniform::ParentList, getParents, + Properties::NON_VIRTUAL, __ParentList__getParents, "Get the a copy of parent list of node. ", "A copy is returned to prevent modification of the parent list. "); I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __StateSet_P1__getParent__unsigned_int, "", ""); I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_StateSet_P1__getParent__unsigned_int, "Get a single const parent of this Uniform. ", " param i index of the parent to get. return the parent i."); I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, __unsigned_int__getNumParents, "Get the number of parents of this Uniform. ", "the number of parents of this Uniform. "); I_Method1(bool, set, IN, float, f, + Properties::NON_VIRTUAL, __bool__set__float, "convenient scalar (non-array) value assignment ", ""); I_Method1(bool, set, IN, int, i, + Properties::NON_VIRTUAL, __bool__set__int, "", ""); I_Method1(bool, set, IN, bool, b, + Properties::NON_VIRTUAL, __bool__set__bool, "", ""); I_Method1(bool, set, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Vec2_R1, "", ""); I_Method1(bool, set, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Vec3_R1, "", ""); I_Method1(bool, set, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Vec4_R1, "", ""); I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Matrix2_R1, "", ""); I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Matrix3_R1, "", ""); I_Method1(bool, set, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Matrixf_R1, "", ""); I_Method1(bool, set, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, __bool__set__C5_osg_Matrixd_R1, "", ""); I_Method2(bool, set, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, __bool__set__int__int, "", ""); I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, __bool__set__int__int__int, "", ""); I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, __bool__set__int__int__int__int, "", ""); I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, __bool__set__bool__bool, "", ""); I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, __bool__set__bool__bool__bool, "", ""); I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, __bool__set__bool__bool__bool__bool, "", ""); I_Method1(bool, get, IN, float &, f, + Properties::NON_VIRTUAL, __bool__get__float_R1, "convenient scalar (non-array) value query ", ""); I_Method1(bool, get, IN, int &, i, + Properties::NON_VIRTUAL, __bool__get__int_R1, "", ""); I_Method1(bool, get, IN, bool &, b, + Properties::NON_VIRTUAL, __bool__get__bool_R1, "", ""); I_Method1(bool, get, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, __bool__get__osg_Vec2_R1, "", ""); I_Method1(bool, get, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, __bool__get__osg_Vec3_R1, "", ""); I_Method1(bool, get, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, __bool__get__osg_Vec4_R1, "", ""); I_Method1(bool, get, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, __bool__get__osg_Matrix2_R1, "", ""); I_Method1(bool, get, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, __bool__get__osg_Matrix3_R1, "", ""); I_Method1(bool, get, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, __bool__get__osg_Matrixf_R1, "", ""); I_Method1(bool, get, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, __bool__get__osg_Matrixd_R1, "", ""); I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, __bool__get__int_R1__int_R1, "", ""); I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, __bool__get__int_R1__int_R1__int_R1, "", ""); I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, __bool__get__int_R1__int_R1__int_R1__int_R1, "", ""); I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, __bool__get__bool_R1__bool_R1, "", ""); I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, __bool__get__bool_R1__bool_R1__bool_R1, "", ""); I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__float, "value assignment for array uniforms ", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__int, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__bool, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Vec2_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Vec3_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Vec4_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, "", ""); I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, "", ""); I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__int__int, "", ""); I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__int__int__int, "", ""); I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__int__int__int__int, "", ""); I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__bool__bool, "", ""); I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__bool__bool__bool, "", ""); I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, __bool__setElement__unsigned_int__bool__bool__bool__bool, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__float_R1, "value query for array uniforms ", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__int_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__bool_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Vec2_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Vec3_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Vec4_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Matrix2_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Matrix3_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Matrixf_R1, "", ""); I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__osg_Matrixd_R1, "", ""); I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__int_R1__int_R1, "", ""); I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, "", ""); I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, "", ""); I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__bool_R1__bool_R1, "", ""); I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, "", ""); I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, "", ""); I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + Properties::NON_VIRTUAL, __void__setUpdateCallback__Callback_P1, "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", ""); I_Method0(osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __Callback_P1__getUpdateCallback, "Get the non const UpdateCallback. ", ""); I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getUpdateCallback, "Get the const UpdateCallback. ", ""); I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + Properties::NON_VIRTUAL, __void__setEventCallback__Callback_P1, "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", ""); I_Method0(osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __Callback_P1__getEventCallback, "Get the non const EventCallback. ", ""); I_Method0(const osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getEventCallback, "Get the const EventCallback. ", ""); I_Method0(void, dirty, + Properties::NON_VIRTUAL, __void__dirty, "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); I_Method1(bool, setArray, IN, osg::FloatArray *, array, + Properties::NON_VIRTUAL, __bool__setArray__FloatArray_P1, "Set the internal data array for a osg::Uniform. ", ""); I_Method1(bool, setArray, IN, osg::IntArray *, array, + Properties::NON_VIRTUAL, __bool__setArray__IntArray_P1, "", ""); I_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, __FloatArray_P1__getFloatArray, "Get the internal data array for a float osg::Uniform. ", ""); I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, __C5_FloatArray_P1__getFloatArray, "", ""); I_Method0(osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, __IntArray_P1__getIntArray, "Get the internal data array for an int osg::Uniform. ", ""); I_Method0(const osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, __C5_IntArray_P1__getIntArray, "", ""); I_Method1(void, setModifiedCount, IN, unsigned int, mc, + Properties::NON_VIRTUAL, __void__setModifiedCount__unsigned_int, "", ""); I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, __unsigned_int__getModifiedCount, "", ""); I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + Properties::NON_VIRTUAL, __void__apply__C5_GL2Extensions_P1__GLint, "", ""); @@ -676,7 +789,7 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform) __void__setUpdateCallback__Callback_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Uniform::Callback) I_VirtualBaseType(osg::Object); I_Constructor0(____Callback, "", @@ -686,22 +799,27 @@ BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) "", ""); 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. "); diff --git a/src/osgWrappers/osg/Vec2b.cpp b/src/osgWrappers/osg/Vec2b.cpp index f8abc5a43..5f3cbabb2 100644 --- a/src/osgWrappers/osg/Vec2b.cpp +++ b/src/osgWrappers/osg/Vec2b.cpp @@ -35,50 +35,62 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2b) "", ""); I_Method0(osg::Vec2b::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec2b::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method2(void, set, IN, osg::Vec2b::value_type, x, IN, osg::Vec2b::value_type, y, + Properties::NON_VIRTUAL, __void__set__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec2b &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec2b_R1, "", ""); I_Method0(osg::Vec2b::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec2b::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec2b::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec2b::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec2b::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec2b::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec2b::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec2b::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); diff --git a/src/osgWrappers/osg/Vec2d.cpp b/src/osgWrappers/osg/Vec2d.cpp index c43b3f625..b29153730 100644 --- a/src/osgWrappers/osg/Vec2d.cpp +++ b/src/osgWrappers/osg/Vec2d.cpp @@ -36,54 +36,67 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2d) "", ""); I_Constructor1(IN, const osg::Vec2f &, vec, + Properties::NON_EXPLICIT, ____Vec2d__C5_Vec2f_R1, "", ""); I_Method0(osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec2d::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method2(void, set, IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, __void__set__value_type__value_type, "", ""); I_Method0(osg::Vec2d::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec2d::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec2d::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec2d::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec2d::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec2d::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec2d::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec2f.cpp b/src/osgWrappers/osg/Vec2f.cpp index a9e383160..35f7efdb6 100644 --- a/src/osgWrappers/osg/Vec2f.cpp +++ b/src/osgWrappers/osg/Vec2f.cpp @@ -35,50 +35,62 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2f) "", ""); I_Method0(osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, __void__set__value_type__value_type, "", ""); I_Method0(osg::Vec2f::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec2f::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec2f::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec2f::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec2f::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec2f::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec2s.cpp b/src/osgWrappers/osg/Vec2s.cpp index 2c9fc72a5..3dfd01d01 100644 --- a/src/osgWrappers/osg/Vec2s.cpp +++ b/src/osgWrappers/osg/Vec2s.cpp @@ -31,50 +31,62 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2s) "", ""); I_Method0(osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, __void__set__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec2s &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec2s_R1, "", ""); I_Method0(osg::Vec2s::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec2s::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec2s::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec2s::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec2s::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec2s::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec2s::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); diff --git a/src/osgWrappers/osg/Vec3b.cpp b/src/osgWrappers/osg/Vec3b.cpp index 04f73f284..8fbb9ea0c 100644 --- a/src/osgWrappers/osg/Vec3b.cpp +++ b/src/osgWrappers/osg/Vec3b.cpp @@ -35,66 +35,82 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3b) "", ""); I_Method0(osg::Vec3b::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec3b::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method3(void, set, IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec3b &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec3b_R1, "", ""); I_Method0(osg::Vec3b::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec3b::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec3b::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec3b::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec3b::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec3b::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec3b::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec3b::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec3b::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec3b::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec3b::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec3b::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); diff --git a/src/osgWrappers/osg/Vec3d.cpp b/src/osgWrappers/osg/Vec3d.cpp index cf20710d4..3c1538058 100644 --- a/src/osgWrappers/osg/Vec3d.cpp +++ b/src/osgWrappers/osg/Vec3d.cpp @@ -33,6 +33,7 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3d) "", ""); I_Constructor1(IN, const osg::Vec3f &, vec, + Properties::NON_EXPLICIT, ____Vec3d__C5_Vec3f_R1, "", ""); @@ -45,62 +46,77 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3d) "", ""); I_Method0(osg::Vec3d::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec3d::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method3(void, set, IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec3d &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec3d_R1, "", ""); I_Method0(osg::Vec3d::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec3d::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec3d::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec3d::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec3d::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec3d::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec3d::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec3d::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec3d::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec3f.cpp b/src/osgWrappers/osg/Vec3f.cpp index 2750db885..c3978e212 100644 --- a/src/osgWrappers/osg/Vec3f.cpp +++ b/src/osgWrappers/osg/Vec3f.cpp @@ -40,62 +40,77 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3f) "", ""); I_Method0(osg::Vec3f::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec3f::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method3(void, set, IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec3f &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec3f_R1, "", ""); I_Method0(osg::Vec3f::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec3f::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec3f::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec3f::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec3f::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec3f::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec3f::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec3f::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec3f::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec3s.cpp b/src/osgWrappers/osg/Vec3s.cpp index 8a3087e54..d84b7339c 100644 --- a/src/osgWrappers/osg/Vec3s.cpp +++ b/src/osgWrappers/osg/Vec3s.cpp @@ -31,66 +31,82 @@ BEGIN_VALUE_REFLECTOR(osg::Vec3s) "", ""); I_Method0(osg::Vec3s::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec3s::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method3(void, set, IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type, "", ""); I_Method1(void, set, IN, const osg::Vec3s &, rhs, + Properties::NON_VIRTUAL, __void__set__C5_Vec3s_R1, "", ""); I_Method0(osg::Vec3s::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec3s::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec3s::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec3s::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec3s::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec3s::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec3s::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec3s::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec3s::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec3s::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec3s::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec3s::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); diff --git a/src/osgWrappers/osg/Vec4b.cpp b/src/osgWrappers/osg/Vec4b.cpp index 40860037c..1d92302ec 100644 --- a/src/osgWrappers/osg/Vec4b.cpp +++ b/src/osgWrappers/osg/Vec4b.cpp @@ -35,78 +35,97 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4b) "", ""); I_Method0(osg::Vec4b::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec4b::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method4(void, set, IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Vec4b::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec4b::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec4b::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec4b::value_type &, w, + Properties::NON_VIRTUAL, __value_type_R1__w, "", ""); I_Method0(osg::Vec4b::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec4b::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec4b::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec4b::value_type, w, + Properties::NON_VIRTUAL, __value_type__w, "", ""); I_Method0(osg::Vec4b::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec4b::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec4b::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec4b::value_type &, a, + Properties::NON_VIRTUAL, __value_type_R1__a, "", ""); I_Method0(osg::Vec4b::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec4b::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec4b::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); I_Method0(osg::Vec4b::value_type, a, + Properties::NON_VIRTUAL, __value_type__a, "", ""); diff --git a/src/osgWrappers/osg/Vec4d.cpp b/src/osgWrappers/osg/Vec4d.cpp index 3a813b6cb..4dd6bdfae 100644 --- a/src/osgWrappers/osg/Vec4d.cpp +++ b/src/osgWrappers/osg/Vec4d.cpp @@ -41,110 +41,137 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4d) "", ""); I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, ____Vec4d__C5_Vec4f_R1, "", ""); I_Method0(osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Vec4d::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec4d::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec4d::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec4d::value_type &, w, + Properties::NON_VIRTUAL, __value_type_R1__w, "", ""); I_Method0(osg::Vec4d::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec4d::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec4d::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, __value_type__w, "", ""); I_Method0(osg::Vec4d::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec4d::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec4d::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec4d::value_type &, a, + Properties::NON_VIRTUAL, __value_type_R1__a, "", ""); I_Method0(osg::Vec4d::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec4d::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec4d::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); I_Method0(osg::Vec4d::value_type, a, + Properties::NON_VIRTUAL, __value_type__a, "", ""); I_Method0(unsigned int, asABGR, + Properties::NON_VIRTUAL, __unsigned_int__asABGR, "", ""); I_Method0(unsigned int, asRGBA, + Properties::NON_VIRTUAL, __unsigned_int__asRGBA, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec4d::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec4d::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec4d::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec4f.cpp b/src/osgWrappers/osg/Vec4f.cpp index 7130ce0b4..7bce7ec93 100644 --- a/src/osgWrappers/osg/Vec4f.cpp +++ b/src/osgWrappers/osg/Vec4f.cpp @@ -40,106 +40,132 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4f) "", ""); I_Method0(osg::Vec4f::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec4f::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method4(void, set, IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Vec4f::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec4f::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec4f::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec4f::value_type &, w, + Properties::NON_VIRTUAL, __value_type_R1__w, "", ""); I_Method0(osg::Vec4f::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec4f::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec4f::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec4f::value_type, w, + Properties::NON_VIRTUAL, __value_type__w, "", ""); I_Method0(osg::Vec4f::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec4f::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec4f::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec4f::value_type &, a, + Properties::NON_VIRTUAL, __value_type_R1__a, "", ""); I_Method0(osg::Vec4f::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec4f::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec4f::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); I_Method0(osg::Vec4f::value_type, a, + Properties::NON_VIRTUAL, __value_type__a, "", ""); I_Method0(unsigned int, asABGR, + Properties::NON_VIRTUAL, __unsigned_int__asABGR, "", ""); I_Method0(unsigned int, asRGBA, + Properties::NON_VIRTUAL, __unsigned_int__asRGBA, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); I_Method0(osg::Vec4f::value_type, length, + Properties::NON_VIRTUAL, __value_type__length, "Length of the vector = sqrt( vec . ", "vec ) "); I_Method0(osg::Vec4f::value_type, length2, + Properties::NON_VIRTUAL, __value_type__length2, "Length squared of the vector = vec . ", "vec "); I_Method0(osg::Vec4f::value_type, normalize, + Properties::NON_VIRTUAL, __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); diff --git a/src/osgWrappers/osg/Vec4s.cpp b/src/osgWrappers/osg/Vec4s.cpp index 06a6d930c..2246d21ed 100644 --- a/src/osgWrappers/osg/Vec4s.cpp +++ b/src/osgWrappers/osg/Vec4s.cpp @@ -31,78 +31,97 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4s) "", ""); I_Method0(osg::Vec4s::value_type *, ptr, + Properties::NON_VIRTUAL, __value_type_P1__ptr, "", ""); I_Method0(const osg::Vec4s::value_type *, ptr, + Properties::NON_VIRTUAL, __C5_value_type_P1__ptr, "", ""); I_Method4(void, set, IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w, + Properties::NON_VIRTUAL, __void__set__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Vec4s::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Vec4s::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Vec4s::value_type &, z, + Properties::NON_VIRTUAL, __value_type_R1__z, "", ""); I_Method0(osg::Vec4s::value_type &, w, + Properties::NON_VIRTUAL, __value_type_R1__w, "", ""); I_Method0(osg::Vec4s::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Vec4s::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Vec4s::value_type, z, + Properties::NON_VIRTUAL, __value_type__z, "", ""); I_Method0(osg::Vec4s::value_type, w, + Properties::NON_VIRTUAL, __value_type__w, "", ""); I_Method0(osg::Vec4s::value_type &, r, + Properties::NON_VIRTUAL, __value_type_R1__r, "", ""); I_Method0(osg::Vec4s::value_type &, g, + Properties::NON_VIRTUAL, __value_type_R1__g, "", ""); I_Method0(osg::Vec4s::value_type &, b, + Properties::NON_VIRTUAL, __value_type_R1__b, "", ""); I_Method0(osg::Vec4s::value_type &, a, + Properties::NON_VIRTUAL, __value_type_R1__a, "", ""); I_Method0(osg::Vec4s::value_type, r, + Properties::NON_VIRTUAL, __value_type__r, "", ""); I_Method0(osg::Vec4s::value_type, g, + Properties::NON_VIRTUAL, __value_type__g, "", ""); I_Method0(osg::Vec4s::value_type, b, + Properties::NON_VIRTUAL, __value_type__b, "", ""); I_Method0(osg::Vec4s::value_type, a, + Properties::NON_VIRTUAL, __value_type__a, "", ""); diff --git a/src/osgWrappers/osg/Vec4ub.cpp b/src/osgWrappers/osg/Vec4ub.cpp index cc1249cc8..d569b5faf 100644 --- a/src/osgWrappers/osg/Vec4ub.cpp +++ b/src/osgWrappers/osg/Vec4ub.cpp @@ -35,46 +35,57 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4ub) "", ""); I_Method0(unsigned char *, ptr, + Properties::NON_VIRTUAL, __unsigned_char_P1__ptr, "", ""); I_Method0(const unsigned char *, ptr, + Properties::NON_VIRTUAL, __C5_unsigned_char_P1__ptr, "", ""); I_Method4(void, set, IN, unsigned char, r, IN, unsigned char, g, IN, unsigned char, b, IN, unsigned char, a, + Properties::NON_VIRTUAL, __void__set__unsigned_char__unsigned_char__unsigned_char__unsigned_char, "", ""); I_Method0(unsigned char &, r, + Properties::NON_VIRTUAL, __unsigned_char_R1__r, "", ""); I_Method0(unsigned char &, g, + Properties::NON_VIRTUAL, __unsigned_char_R1__g, "", ""); I_Method0(unsigned char &, b, + Properties::NON_VIRTUAL, __unsigned_char_R1__b, "", ""); I_Method0(unsigned char &, a, + Properties::NON_VIRTUAL, __unsigned_char_R1__a, "", ""); I_Method0(unsigned char, r, + Properties::NON_VIRTUAL, __unsigned_char__r, "", ""); I_Method0(unsigned char, g, + Properties::NON_VIRTUAL, __unsigned_char__g, "", ""); I_Method0(unsigned char, b, + Properties::NON_VIRTUAL, __unsigned_char__b, "", ""); I_Method0(unsigned char, a, + Properties::NON_VIRTUAL, __unsigned_char__a, "", ""); diff --git a/src/osgWrappers/osg/VertexProgram.cpp b/src/osgWrappers/osg/VertexProgram.cpp index 16b56c457..0c5f0b2a7 100644 --- a/src/osgWrappers/osg/VertexProgram.cpp +++ b/src/osgWrappers/osg/VertexProgram.cpp @@ -30,7 +30,7 @@ TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalPa TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList); -BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::VertexProgram) I_BaseType(osg::StateAttribute); I_Constructor0(____VertexProgram, "", @@ -40,102 +40,127 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_osg_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, __bool__getModeUsage__ModeUsage_R1, "", ""); I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __GLuint_R1__getVertexProgramID__unsigned_int, "Get the handle to the vertex program ID for the current context. ", ""); I_Method1(void, setVertexProgram, IN, const char *, program, + Properties::NON_VIRTUAL, __void__setVertexProgram__C5_char_P1, "Set the vertex program using a C style string. ", ""); I_Method1(void, setVertexProgram, IN, const std::string &, program, + Properties::NON_VIRTUAL, __void__setVertexProgram__C5_std_string_R1, "Set the vertex program using C++ style string. ", ""); I_Method0(const std::string &, getVertexProgram, + Properties::NON_VIRTUAL, __C5_std_string_R1__getVertexProgram, "Get the vertex program. ", ""); I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, + Properties::NON_VIRTUAL, __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, "Set Program Parameters. ", ""); I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, + Properties::NON_VIRTUAL, __void__setLocalParameters__C5_LocalParamList_R1, "Set list of Program Parameters. ", ""); I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, __LocalParamList_R1__getLocalParameters, "Get list of Program Parameters. ", ""); I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, + Properties::NON_VIRTUAL, __C5_LocalParamList_R1__getLocalParameters, "Get const list of Program Parameters. ", ""); I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setMatrix__C5_GLenum__C5_Matrix_R1, "Matrix. ", ""); I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, + Properties::NON_VIRTUAL, __void__setMatrices__C5_MatrixList_R1, "Set list of Matrices. ", ""); I_Method0(osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, __MatrixList_R1__getMatrices, "Get list of Matrices. ", ""); I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, + Properties::NON_VIRTUAL, __C5_MatrixList_R1__getMatrices, "Get list of Matrices. ", ""); I_Method0(void, dirtyVertexProgramObject, + Properties::NON_VIRTUAL, __void__dirtyVertexProgramObject, "Force a recompile on next apply() of associated OpenGL vertex program objects. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileGLObjects__State_R1, "Default to nothing to compile - all state is applied immediately. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__State_P1, "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", ""); @@ -169,49 +194,60 @@ BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) __void__setVertexProgram__C5_std_string_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) I_BaseType(osg::Referenced); I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, ____Extensions__unsigned_int, "", ""); I_Constructor1(IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_EXPLICIT, ____Extensions__C5_Extensions_R1, "", ""); I_Method1(void, lowestCommonDenominator, IN, const osg::VertexProgram::Extensions &, rhs, + Properties::NON_VIRTUAL, __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); I_Method1(void, setupGLExtenions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __void__setupGLExtenions__unsigned_int, "", ""); I_Method1(void, setVertexProgramSupported, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setVertexProgramSupported__bool, "", ""); I_Method0(bool, isVertexProgramSupported, + Properties::NON_VIRTUAL, __bool__isVertexProgramSupported, "", ""); I_Method2(void, glBindProgram, IN, GLenum, target, IN, GLuint, id, + Properties::NON_VIRTUAL, __void__glBindProgram__GLenum__GLuint, "", ""); I_Method2(void, glGenPrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, __void__glGenPrograms__GLsizei__GLuint_P1, "", ""); I_Method2(void, glDeletePrograms, IN, GLsizei, n, IN, GLuint *, programs, + Properties::NON_VIRTUAL, __void__glDeletePrograms__GLsizei__GLuint_P1, "", ""); I_Method4(void, glProgramString, IN, GLenum, target, IN, GLenum, format, IN, GLsizei, len, IN, const void *, string, + Properties::NON_VIRTUAL, __void__glProgramString__GLenum__GLenum__GLsizei__C5_void_P1, "", ""); I_Method3(void, glProgramLocalParameter4fv, IN, GLenum, target, IN, GLuint, index, IN, const GLfloat *, params, + Properties::NON_VIRTUAL, __void__glProgramLocalParameter4fv__GLenum__GLuint__C5_GLfloat_P1, "", ""); diff --git a/src/osgWrappers/osg/View.cpp b/src/osgWrappers/osg/View.cpp index b5b2b1a00..96c1ba9f6 100644 --- a/src/osgWrappers/osg/View.cpp +++ b/src/osgWrappers/osg/View.cpp @@ -24,68 +24,83 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::View) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::View) I_VirtualBaseType(osg::Referenced); I_Constructor0(____View, "", ""); I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, __void__setStats__osg_Stats_P1, "Set the Stats object used for collect various frame related timing and scene graph stats. ", ""); I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, __osg_Stats_P1__getStats, "Get the Stats object. ", ""); I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, __C5_osg_Stats_P1__getStats, "Get the const Stats object. ", ""); I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCamera__osg_Camera_P1, "Set the master camera of the view. ", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "Get the master camera of the view. ", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCamera, "Get the const master camera of the view. ", ""); I_Method1(bool, addSlave, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __bool__addSlave__osg_Camera_P1, "", ""); I_Method3(bool, addSlave, IN, osg::Camera *, camera, IN, const osg::Matrix &, projectionOffset, IN, const osg::Matrix &, viewOffse, + Properties::NON_VIRTUAL, __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1, "", ""); I_Method1(bool, removeSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__removeSlave__unsigned_int, "", ""); I_Method0(unsigned int, getNumSlaves, + Properties::NON_VIRTUAL, __unsigned_int__getNumSlaves, "", ""); I_Method1(osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __Slave_R1__getSlave__unsigned_int, "", ""); I_Method1(const osg::View::Slave &, getSlave, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __C5_Slave_R1__getSlave__unsigned_int, "", ""); I_Method1(osg::View::Slave *, findSlaveForCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __Slave_P1__findSlaveForCamera__osg_Camera_P1, "", ""); I_Method0(void, updateSlaves, + Properties::NON_VIRTUAL, __void__updateSlaves, "", ""); I_Method1(void, updateSlave, IN, unsigned int, i, + Properties::NON_VIRTUAL, __void__updateSlave__unsigned_int, "", ""); @@ -113,6 +128,7 @@ BEGIN_VALUE_REFLECTOR(osg::View::Slave) "", ""); I_Constructor1(IN, const osg::View::Slave &, rhs, + Properties::NON_EXPLICIT, ____Slave__C5_Slave_R1, "", ""); diff --git a/src/osgWrappers/osg/Viewport.cpp b/src/osgWrappers/osg/Viewport.cpp index 3a03e83f6..77e9a7763 100644 --- a/src/osgWrappers/osg/Viewport.cpp +++ b/src/osgWrappers/osg/Viewport.cpp @@ -27,7 +27,7 @@ TYPE_NAME_ALIAS(double, osg::Viewport::value_type); -BEGIN_OBJECT_REFLECTOR(osg::Viewport) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Viewport) I_BaseType(osg::StateAttribute); I_Constructor0(____Viewport, "", @@ -41,82 +41,102 @@ BEGIN_OBJECT_REFLECTOR(osg::Viewport) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method4(void, setViewport, IN, osg::Viewport::value_type, x, IN, osg::Viewport::value_type, y, IN, osg::Viewport::value_type, width, IN, osg::Viewport::value_type, height, + Properties::NON_VIRTUAL, __void__setViewport__value_type__value_type__value_type__value_type, "", ""); I_Method0(osg::Viewport::value_type &, x, + Properties::NON_VIRTUAL, __value_type_R1__x, "", ""); I_Method0(osg::Viewport::value_type, x, + Properties::NON_VIRTUAL, __value_type__x, "", ""); I_Method0(osg::Viewport::value_type &, y, + Properties::NON_VIRTUAL, __value_type_R1__y, "", ""); I_Method0(osg::Viewport::value_type, y, + Properties::NON_VIRTUAL, __value_type__y, "", ""); I_Method0(osg::Viewport::value_type &, width, + Properties::NON_VIRTUAL, __value_type_R1__width, "", ""); I_Method0(osg::Viewport::value_type, width, + Properties::NON_VIRTUAL, __value_type__width, "", ""); I_Method0(osg::Viewport::value_type &, height, + Properties::NON_VIRTUAL, __value_type_R1__height, "", ""); I_Method0(osg::Viewport::value_type, height, + Properties::NON_VIRTUAL, __value_type__height, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(double, aspectRatio, + Properties::NON_VIRTUAL, __double__aspectRatio, "Return the aspectRatio of the viewport, which is equal to width/height. ", "If height is zero, the potental division by zero is avoided by simply returning 1.0f."); I_Method0(const osg::Matrix, computeWindowMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix__computeWindowMatrix, "Compute the Window Matrix which takes projected coords into Window coordinates. ", "To convert local coordinates into window coordinates use v_window = v_local * MVPW matrix, where the MVPW matrix is ModelViewMatrix * ProjectionMatrix * WindowMatrix, the latter supplied by Viewport::computeWindowMatrix(), the ModelView and Projection Matrix can either be sourced from the current osg::State object, via osgUtil::SceneView or CullVisitor."); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); diff --git a/src/osgWrappers/osg/observer_ptr.cpp b/src/osgWrappers/osg/observer_ptr.cpp index 3d133c161..8f1165165 100644 --- a/src/osgWrappers/osg/observer_ptr.cpp +++ b/src/osgWrappers/osg/observer_ptr.cpp @@ -20,11 +20,12 @@ #undef OUT #endif -BEGIN_VALUE_REFLECTOR(osg::Observer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Observer) I_Constructor0(____Observer, "", ""); I_Method1(void, objectDeleted, IN, void *, x, + Properties::VIRTUAL, __void__objectDeleted__void_P1, "", ""); diff --git a/src/osgWrappers/osgDB/Archive.cpp b/src/osgWrappers/osgDB/Archive.cpp index dfd83083e..25aee92ed 100644 --- a/src/osgWrappers/osgDB/Archive.cpp +++ b/src/osgWrappers/osgDB/Archive.cpp @@ -33,62 +33,77 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Archive) "", ""); 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(bool, acceptsExtension, IN, const std::string &, x, + Properties::VIRTUAL, __bool__acceptsExtension__C5_std_string_R1, "", ""); I_Method0(void, close, + Properties::PURE_VIRTUAL, __void__close, "close the archive. ", ""); I_Method1(bool, fileExists, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, __bool__fileExists__C5_std_string_R1, "return true if file exists in archive. ", ""); I_Method0(std::string, getMasterFileName, + Properties::PURE_VIRTUAL, __std_string__getMasterFileName, "Get the file name which represents the master file recorded in the Archive. ", ""); I_Method1(bool, getFileNames, IN, osgDB::Archive::FileNameList &, fileNameList, + Properties::PURE_VIRTUAL, __bool__getFileNames__FileNameList_R1, "Get the full list of file names available in the archive. ", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __ReadResult__readObject__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __ReadResult__readImage__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __ReadResult__readNode__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::PURE_VIRTUAL, __WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, "", ""); diff --git a/src/osgWrappers/osgDB/DatabasePager.cpp b/src/osgWrappers/osgDB/DatabasePager.cpp index 955379bd2..483eb3090 100644 --- a/src/osgWrappers/osgDB/DatabasePager.cpp +++ b/src/osgWrappers/osgDB/DatabasePager.cpp @@ -48,192 +48,238 @@ BEGIN_ENUM_REFLECTOR(osgDB::DatabasePager::DrawablePolicy) I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_ARRAYS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::DatabasePager) I_BaseType(osg::NodeVisitor::DatabaseRequestHandler); I_Constructor0(____DatabasePager, "", ""); I_Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, + Properties::VIRTUAL, __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1, "Add a request to load a node file to end the the database request list. ", ""); I_Method5(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osgDB::ReaderWriter::Options *, loadOptions, + Properties::VIRTUAL, __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1__ReaderWriter_Options_P1, "", ""); I_Method0(void, run, + Properties::VIRTUAL, __void__run, "Run does the database paging. ", ""); I_Method0(int, cancel, + Properties::VIRTUAL, __int__cancel, "Cancel the database pager thread. ", ""); I_Method0(void, clear, + Properties::VIRTUAL, __void__clear, "Clear all internally cached structures. ", ""); I_Method1(void, setDatabasePagerThreadPause, IN, bool, pause, + Properties::NON_VIRTUAL, __void__setDatabasePagerThreadPause__bool, "Set whether the database pager thread should be paused or not. ", ""); I_Method0(bool, getDatabasePagerThreadPause, + Properties::NON_VIRTUAL, __bool__getDatabasePagerThreadPause, "Get whether the database pager thread should is paused or not. ", ""); I_Method1(void, setAcceptNewDatabaseRequests, IN, bool, acceptNewRequests, + Properties::NON_VIRTUAL, __void__setAcceptNewDatabaseRequests__bool, "Set whether new database request calls are accepted or ignored. ", ""); I_Method0(bool, getAcceptNewDatabaseRequests, + Properties::NON_VIRTUAL, __bool__getAcceptNewDatabaseRequests, "Get whether new database request calls are accepted or ignored. ", ""); I_Method1(void, setUseFrameBlock, IN, bool, useFrameBlock, + Properties::NON_VIRTUAL, __void__setUseFrameBlock__bool, "Set the use of the frame block which, if enabled, blocks the DatabasePager from executing which the current frame is being drawn. ", "When a single processor machine is being used it can be useful to block on frame to help prevent the database paging thread from slowing the cull and draw traversals which in turn can cause frame drops. "); I_Method0(bool, getUseFrameBlock, + Properties::NON_VIRTUAL, __bool__getUseFrameBlock, "Get the whether UseFrameBlock is on or off. ", ""); I_Method0(osg::Block *, getFrameBlock, + Properties::NON_VIRTUAL, __osg_Block_P1__getFrameBlock, "", ""); I_Method1(void, setThreadPriorityDuringFrame, IN, osgDB::DatabasePager::ThreadPriority, duringFrame, + Properties::NON_VIRTUAL, __void__setThreadPriorityDuringFrame__ThreadPriority, "Set the priority of the database pager thread during the frame (i.e. ", "while cull and draw are running.) "); I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityDuringFrame, + Properties::NON_VIRTUAL, __ThreadPriority__getThreadPriorityDuringFrame, "Get the priority of the database pager thread during the frame. ", ""); I_Method1(void, setThreadPriorityOutwithFrame, IN, osgDB::DatabasePager::ThreadPriority, outwithFrame, + Properties::NON_VIRTUAL, __void__setThreadPriorityOutwithFrame__ThreadPriority, "Set the priority of the database pager thread when the frame is not being exectuted (i.e. ", "before or after cull and draw have run.) "); I_Method0(osgDB::DatabasePager::ThreadPriority, getThreadPriorityOutwithFrame, + Properties::NON_VIRTUAL, __ThreadPriority__getThreadPriorityOutwithFrame, "Get the priority of the database pager thread when the frame is not being exectuted. ", ""); I_Method0(int, getNumFramesActive, + Properties::NON_VIRTUAL, __int__getNumFramesActive, "Get the number of frames that are currently active. ", ""); I_Method1(void, signalBeginFrame, IN, const osg::FrameStamp *, framestamp, + Properties::VIRTUAL, __void__signalBeginFrame__C5_osg_FrameStamp_P1, "Signal the database thread that the update, cull and draw has begun for a new frame. ", "Note, this is called by the application so that the database pager can go to sleep while the CPU is busy on the main rendering threads. "); I_Method0(void, signalEndFrame, + Properties::VIRTUAL, __void__signalEndFrame, "Signal the database thread that the update, cull and draw dispatch has completed. ", "Note, this is called by the application so that the database pager can go to wake back up now the main rendering threads are iddle waiting for the next frame. "); I_Method1(void, registerPagedLODs, IN, osg::Node *, subgraph, + Properties::VIRTUAL, __void__registerPagedLODs__osg_Node_P1, "Find all PagedLOD nodes in a subgraph and register them with the DatabasePager so it can keep track of expired nodes. ", "note, should be only be called from the update thread. "); I_Method1(void, setDoPreCompile, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDoPreCompile__bool, "Set whether the database pager should pre compile OpenGL objects before allowing them to be merged into the scene graph. ", "Pre compilation helps reduce the chances of frame drops, but also slows the speed at which tiles are merged as they have to be compiled first. "); I_Method0(bool, getDoPreCompile, + Properties::NON_VIRTUAL, __bool__getDoPreCompile, "Get whether the database pager should pre compile OpenGL objects before allowing them to be merged into the scene graph. ", ""); I_Method1(void, setTargetFrameRate, IN, double, tfr, + Properties::NON_VIRTUAL, __void__setTargetFrameRate__double, "Set the target frame rate that the DatabasePager should assume. ", "Typically one would set this to the value refresh rate of your display system i.e. 60Hz. Default value is 100. Usage notes. The TargetFrameRate and the MinimumTimeAvailableForGLCompileAndDeletePerFrame parameters are not directly used by DatabasePager, but are should be used as a guide for how long to set aside per frame for compiling and deleting OpenGL objects - ie. the value to use when calling DatabasePager::compileGLObjectgs(state,availableTime,). The longer amount of time to set aside cthe faster databases will be paged in but with increased chance of frame drops, the lower the amount of time the set aside the slower databases will paged it but with better chance of avoid any frame drops. The default values are chosen to achieve the later when running on a modern mid to high end PC. The way to compute the amount of available time use a scheme such as : availableTime = maximum(1.0/targetFrameRate - timeTakenDuringUpdateCullAndDraw, minimumTimeAvailableForGLCompileAndDeletePerFrame)."); I_Method0(double, getTargetFrameRate, + Properties::NON_VIRTUAL, __double__getTargetFrameRate, "Get the target frame rate that the DatabasePager should assume. ", ""); I_Method1(void, setMinimumTimeAvailableForGLCompileAndDeletePerFrame, IN, double, ta, + Properties::NON_VIRTUAL, __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double, "Set the minimum amount of time (in seconds) that should be made available for compiling and delete OpenGL objects per frame. ", "Default value is 0.001 (1 millisecond). For usage see notes in setTargetFrameRate. "); I_Method0(double, getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + Properties::NON_VIRTUAL, __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, "Get the minimum amount of time that should be made available for compiling and delete OpenGL objects per frame. ", "For usage see notes in setTargetFrameRate. "); I_Method1(void, setMaximumNumOfObjectsToCompilePerFrame, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setMaximumNumOfObjectsToCompilePerFrame__unsigned_int, "Set the maximum number of OpenGL objects that the page should attempt to compile per frame. ", "Note, Lower values reduces chances of a frame drop but lower the rate that database will be paged in at. Default value is 8. "); I_Method0(unsigned int, getMaximumNumOfObjectsToCompilePerFrame, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumNumOfObjectsToCompilePerFrame, "Get the maximum number of OpenGL objects that the page should attempt to compile per frame. ", ""); I_Method1(void, setExpiryDelay, IN, double, expiryDelay, + Properties::NON_VIRTUAL, __void__setExpiryDelay__double, "Set the amount of time that a subgraph will be kept without being visited in the cull traversal before being removed. ", ""); I_Method0(double, getExpiryDelay, + Properties::NON_VIRTUAL, __double__getExpiryDelay, "Get the amount of time that a subgraph will be kept without being visited in the cull traversal before being removed. ", ""); I_Method1(void, setDeleteRemovedSubgraphsInDatabaseThread, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDeleteRemovedSubgraphsInDatabaseThread__bool, "Set whether the removed subgraphs should be deleted in the database thread or not. ", ""); I_Method0(bool, getDeleteRemovedSubgraphsInDatabaseThread, + Properties::NON_VIRTUAL, __bool__getDeleteRemovedSubgraphsInDatabaseThread, "Get whether the removed subgraphs should be deleted in the database thread or not. ", ""); I_Method1(void, setDrawablePolicy, IN, osgDB::DatabasePager::DrawablePolicy, policy, + Properties::NON_VIRTUAL, __void__setDrawablePolicy__DrawablePolicy, "Set how loaded drawables should be handled w.r.t their display list/vertex buffer object/vertex array settings. ", ""); I_Method0(osgDB::DatabasePager::DrawablePolicy, getDrawablePolicy, + Properties::NON_VIRTUAL, __DrawablePolicy__getDrawablePolicy, "Get how loaded drawables should be handled w.r.t their display list/vertex buffer object/vertex array settings. ", ""); I_Method2(void, setUnrefImageDataAfterApplyPolicy, IN, bool, changeAutoUnRef, IN, bool, valueAutoUnRef, + Properties::NON_VIRTUAL, __void__setUnrefImageDataAfterApplyPolicy__bool__bool, "Set whether newly loaded textures should have their UnrefImageDataAfterApply set to a specified value. ", ""); I_Method2(void, getUnrefImageDataAfterApplyPolicy, IN, bool &, changeAutoUnRef, IN, bool &, valueAutoUnRef, + Properties::NON_VIRTUAL, __void__getUnrefImageDataAfterApplyPolicy__bool_R1__bool_R1, "Get whether newly loaded textures should have their UnrefImageDataAfterApply set to a specified value. ", ""); I_Method2(void, setMaxAnisotropyPolicy, IN, bool, changeAnisotropy, IN, float, valueAnisotropy, + Properties::NON_VIRTUAL, __void__setMaxAnisotropyPolicy__bool__float, "Set whether newly loaded textures should have their MaxAnisotopy set to a specified value. ", ""); I_Method2(void, getMaxAnisotropyPolicy, IN, bool &, changeAnisotropy, IN, float &, valueAnisotropy, + Properties::NON_VIRTUAL, __void__getMaxAnisotropyPolicy__bool_R1__float_R1, "Set whether newly loaded textures should have their MaxAnisotopy set to a specified value. ", ""); I_Method0(bool, requiresUpdateSceneGraph, + Properties::NON_VIRTUAL, __bool__requiresUpdateSceneGraph, "Return true if there are pending updates to the scene graph that require a call to updateSceneGraph(double). ", ""); I_Method1(void, updateSceneGraph, IN, double, currentFrameTime, + Properties::VIRTUAL, __void__updateSceneGraph__double, "Merge the changes to the scene graph by calling calling removeExpiredSubgraphs then addLoadedDataToSceneGraph. ", "Note, must only be called from single thread update phase. "); I_Method2(void, setCompileGLObjectsForContextID, IN, unsigned int, contextID, IN, bool, on, + Properties::NON_VIRTUAL, __void__setCompileGLObjectsForContextID__unsigned_int__bool, "Turn the compilation of rendering objects for specfied graphics context on (true) or off(false). ", ""); I_Method1(bool, getCompileGLObjectsForContextID, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, __bool__getCompileGLObjectsForContextID__unsigned_int, "Get whether the compilation of rendering objects for specfied graphics context on (true) or off(false). ", ""); I_Method0(bool, requiresCompileGLObjects, + Properties::NON_VIRTUAL, __bool__requiresCompileGLObjects, "Return true if there are pending compile operations that are required. ", "If requiresCompileGLObjects() return true the application should call compileGLObjects() . "); I_Method2(void, compileGLObjects, IN, osg::State &, state, IN, double &, availableTime, + Properties::VIRTUAL, __void__compileGLObjects__osg_State_R1__double_R1, "Compile the rendering objects (display lists,texture objects, VBO's) on loaded subgraph. ", "note, should only be called from the draw thread. Note, must only be called from a valid graphics context. "); I_Method0(unsigned int, getFileRequestListSize, + Properties::NON_VIRTUAL, __unsigned_int__getFileRequestListSize, "Report how many items are in the _fileRequestList queue. ", ""); I_Method0(unsigned int, getDataToCompileListSize, + Properties::NON_VIRTUAL, __unsigned_int__getDataToCompileListSize, "Report how many items are in the _dataToCompileList queue. ", ""); @@ -293,26 +339,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PagedLOD >) "", ""); I_Constructor1(IN, osg::PagedLOD *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::PagedLOD > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::PagedLOD *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::PagedLOD *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::PagedLOD > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgDB/DotOsgWrapper.cpp b/src/osgWrappers/osgDB/DotOsgWrapper.cpp index 54b826d55..2eb3b5a38 100644 --- a/src/osgWrappers/osgDB/DotOsgWrapper.cpp +++ b/src/osgWrappers/osgDB/DotOsgWrapper.cpp @@ -32,33 +32,39 @@ BEGIN_ENUM_REFLECTOR(osgDB::DotOsgWrapper::ReadWriteMode) I_EnumLabel(osgDB::DotOsgWrapper::READ_ONLY); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) I_BaseType(osg::Referenced); I_ConstructorWithDefaults6(IN, osg::Object *, proto, , IN, const std::string &, name, , IN, const std::string &, associates, , IN, osgDB::DotOsgWrapper::ReadFunc, readFunc, , IN, osgDB::DotOsgWrapper::WriteFunc, writeFunc, , IN, osgDB::DotOsgWrapper::ReadWriteMode, readWriteMode, osgDB::DotOsgWrapper::READ_AND_WRITE, ____DotOsgWrapper__osg_Object_P1__C5_std_string_R1__C5_std_string_R1__ReadFunc__WriteFunc__ReadWriteMode, "", ""); I_Method0(const osg::Object *, getPrototype, + Properties::NON_VIRTUAL, __C5_osg_Object_P1__getPrototype, "", ""); I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getName, "", ""); I_Method0(const osgDB::DotOsgWrapper::Associates &, getAssociates, + Properties::NON_VIRTUAL, __C5_Associates_R1__getAssociates, "", ""); I_Method0(osgDB::DotOsgWrapper::ReadFunc, getReadFunc, + Properties::NON_VIRTUAL, __ReadFunc__getReadFunc, "", ""); I_Method0(osgDB::DotOsgWrapper::WriteFunc, getWriteFunc, + Properties::NON_VIRTUAL, __WriteFunc__getWriteFunc, "", ""); I_Method0(osgDB::DotOsgWrapper::ReadWriteMode, getReadWriteMode, + Properties::NON_VIRTUAL, __ReadWriteMode__getReadWriteMode, "", ""); diff --git a/src/osgWrappers/osgDB/DynamicLibrary.cpp b/src/osgWrappers/osgDB/DynamicLibrary.cpp index 0d7421f42..bd26d15f9 100644 --- a/src/osgWrappers/osgDB/DynamicLibrary.cpp +++ b/src/osgWrappers/osgDB/DynamicLibrary.cpp @@ -24,21 +24,25 @@ TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::HANDLE); TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::PROC_ADDRESS); -BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::DynamicLibrary) I_BaseType(osg::Referenced); I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getName, "return name of library stripped of path. ", ""); I_Method0(const std::string &, getFullName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFullName, "return name of library including full path to it. ", ""); I_Method0(osgDB::DynamicLibrary::HANDLE, getHandle, + Properties::NON_VIRTUAL, __HANDLE__getHandle, "return handle to .dso/.dll dynamic library itself. ", ""); I_Method1(osgDB::DynamicLibrary::PROC_ADDRESS, getProcAddress, IN, const std::string &, procName, + Properties::NON_VIRTUAL, __PROC_ADDRESS__getProcAddress__C5_std_string_R1, "return address of function located in library. ", ""); diff --git a/src/osgWrappers/osgDB/Field.cpp b/src/osgWrappers/osgDB/Field.cpp index 8304a929b..67c6c00a7 100644 --- a/src/osgWrappers/osgDB/Field.cpp +++ b/src/osgWrappers/osgDB/Field.cpp @@ -31,131 +31,162 @@ BEGIN_ENUM_REFLECTOR(osgDB::Field::FieldType) I_EnumLabel(osgDB::Field::UNINITIALISED); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osgDB::Field) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Field) I_Constructor0(____Field, "", ""); I_Constructor1(IN, const osgDB::Field &, field, + Properties::NON_EXPLICIT, ____Field__C5_Field_R1, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method1(void, addChar, IN, char, c, + Properties::NON_VIRTUAL, __void__addChar__char, "", ""); I_Method0(int, getNoCharacters, + Properties::NON_VIRTUAL, __int__getNoCharacters, "", ""); I_MethodWithDefaults1(void, setWithinQuotes, IN, bool, withinQuotes, true, + Properties::NON_VIRTUAL, __void__setWithinQuotes__bool, "", ""); I_Method0(bool, getWithinQuotes, + Properties::NON_VIRTUAL, __bool__getWithinQuotes, "", ""); I_Method1(void, setNoNestedBrackets, IN, int, no, + Properties::NON_VIRTUAL, __void__setNoNestedBrackets__int, "", ""); I_Method0(int, getNoNestedBrackets, + Properties::NON_VIRTUAL, __int__getNoNestedBrackets, "", ""); I_Method0(osgDB::Field::FieldType, getFieldType, + Properties::NON_VIRTUAL, __FieldType__getFieldType, "", ""); I_Method0(bool, isValid, + Properties::NON_VIRTUAL, __bool__isValid, "", ""); I_Method0(bool, isOpenBracket, + Properties::NON_VIRTUAL, __bool__isOpenBracket, "", ""); I_Method0(bool, isCloseBracket, + Properties::NON_VIRTUAL, __bool__isCloseBracket, "", ""); I_Method0(bool, isWord, + Properties::NON_VIRTUAL, __bool__isWord, "", ""); I_Method1(bool, matchWord, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__matchWord__C5_char_P1, "", ""); I_Method2(bool, matchWord, IN, const char *, str, IN, int, noCharacters, + Properties::NON_VIRTUAL, __bool__matchWord__C5_char_P1__int, "", ""); I_Method0(bool, isString, + Properties::NON_VIRTUAL, __bool__isString, "", ""); I_Method1(bool, matchString, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__matchString__C5_char_P1, "", ""); I_Method2(bool, matchString, IN, const char *, str, IN, int, noCharacters, + Properties::NON_VIRTUAL, __bool__matchString__C5_char_P1__int, "", ""); I_Method0(bool, isQuotedString, + Properties::NON_VIRTUAL, __bool__isQuotedString, "", ""); I_Method0(const char *, getStr, + Properties::NON_VIRTUAL, __C5_char_P1__getStr, "", ""); I_Method0(char *, takeStr, + Properties::NON_VIRTUAL, __char_P1__takeStr, "", ""); I_Method0(bool, isInt, + Properties::NON_VIRTUAL, __bool__isInt, "", ""); I_Method1(bool, matchInt, IN, int, i, + Properties::NON_VIRTUAL, __bool__matchInt__int, "", ""); I_Method1(bool, getInt, IN, int &, i, + Properties::NON_VIRTUAL, __bool__getInt__int_R1, "", ""); I_Method0(bool, isUInt, + Properties::NON_VIRTUAL, __bool__isUInt, "", ""); I_Method1(bool, matchUInt, IN, unsigned int, i, + Properties::NON_VIRTUAL, __bool__matchUInt__unsigned_int, "", ""); I_Method1(bool, getUInt, IN, unsigned int &, i, + Properties::NON_VIRTUAL, __bool__getUInt__unsigned_int_R1, "", ""); I_Method0(bool, isFloat, + Properties::NON_VIRTUAL, __bool__isFloat, "", ""); I_Method1(bool, matchFloat, IN, float, f, + Properties::NON_VIRTUAL, __bool__matchFloat__float, "", ""); I_Method1(bool, getFloat, IN, float &, f, + Properties::NON_VIRTUAL, __bool__getFloat__float_R1, "", ""); I_Method1(bool, getFloat, IN, double &, f, + Properties::NON_VIRTUAL, __bool__getFloat__double_R1, "", ""); diff --git a/src/osgWrappers/osgDB/FieldReader.cpp b/src/osgWrappers/osgDB/FieldReader.cpp index ce2b8fc84..a95e3c697 100644 --- a/src/osgWrappers/osgDB/FieldReader.cpp +++ b/src/osgWrappers/osgDB/FieldReader.cpp @@ -21,35 +21,42 @@ #undef OUT #endif -BEGIN_VALUE_REFLECTOR(osgDB::FieldReader) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::FieldReader) I_Constructor0(____FieldReader, "", ""); I_Constructor1(IN, const osgDB::FieldReader &, ic, + Properties::NON_EXPLICIT, ____FieldReader__C5_FieldReader_R1, "", ""); I_Method1(void, attach, IN, std::istream *, input, + Properties::NON_VIRTUAL, __void__attach__std_istream_P1, "", ""); I_Method0(void, detach, + Properties::NON_VIRTUAL, __void__detach, "", ""); I_Method0(bool, eof, + Properties::VIRTUAL, __bool__eof, "", ""); I_Method1(bool, readField, IN, osgDB::Field &, fieldPtr, + Properties::NON_VIRTUAL, __bool__readField__Field_R1, "", ""); I_Method0(void, ignoreField, + Properties::NON_VIRTUAL, __void__ignoreField, "", ""); I_Method0(int, getNoNestedBrackets, + Properties::NON_VIRTUAL, __int__getNoNestedBrackets, "no of unmatched `{' encountered so far in file ", ""); diff --git a/src/osgWrappers/osgDB/FieldReaderIterator.cpp b/src/osgWrappers/osgDB/FieldReaderIterator.cpp index 321323529..9f4696796 100644 --- a/src/osgWrappers/osgDB/FieldReaderIterator.cpp +++ b/src/osgWrappers/osgDB/FieldReaderIterator.cpp @@ -28,135 +28,167 @@ #undef OUT #endif -BEGIN_VALUE_REFLECTOR(osgDB::FieldReaderIterator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::FieldReaderIterator) I_Constructor0(____FieldReaderIterator, "", ""); I_Constructor1(IN, const osgDB::FieldReaderIterator &, ic, + Properties::NON_EXPLICIT, ____FieldReaderIterator__C5_FieldReaderIterator_R1, "", ""); I_Method1(void, attach, IN, std::istream *, input, + Properties::NON_VIRTUAL, __void__attach__std_istream_P1, "", ""); I_Method0(void, detach, + Properties::NON_VIRTUAL, __void__detach, "", ""); I_Method0(bool, eof, + Properties::VIRTUAL, __bool__eof, "", ""); I_Method0(osgDB::FieldReader &, getFieldReader, + Properties::NON_VIRTUAL, __FieldReader_R1__getFieldReader, "", ""); I_Method2(void, insert, IN, int, pos, IN, osgDB::Field *, field, + Properties::NON_VIRTUAL, __void__insert__int__Field_P1, "", ""); I_Method2(void, insert, IN, int, pos, IN, const char *, str, + Properties::NON_VIRTUAL, __void__insert__int__C5_char_P1, "", ""); I_Method1(osgDB::Field &, field, IN, int, pos, + Properties::NON_VIRTUAL, __Field_R1__field__int, "", ""); I_Method0(void, advanceOverCurrentFieldOrBlock, + Properties::NON_VIRTUAL, __void__advanceOverCurrentFieldOrBlock, "increments the iterator of the next simple field or whole block if the current field[0] is an open bracket ", ""); I_Method0(void, advanceToEndOfCurrentBlock, + Properties::NON_VIRTUAL, __void__advanceToEndOfCurrentBlock, "", ""); I_Method1(void, advanceToEndOfBlock, IN, int, noNestBrackets, + Properties::NON_VIRTUAL, __void__advanceToEndOfBlock__int, "", ""); I_Method1(bool, matchSequence, IN, const char *, str, + Properties::NON_VIRTUAL, __bool__matchSequence__C5_char_P1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, std::string &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__std_string_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, unsigned int &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__unsigned_int_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, int &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__int_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, float &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__float_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec2f_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec3f_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec4f_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec2d_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec3d_R1, "", ""); I_Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__C5_char_P1__osg_Vec4d_R1, "", ""); I_Method1(bool, readSequence, IN, std::string &, value, + Properties::NON_VIRTUAL, __bool__readSequence__std_string_R1, "", ""); I_Method1(bool, readSequence, IN, unsigned int &, value, + Properties::NON_VIRTUAL, __bool__readSequence__unsigned_int_R1, "", ""); I_Method1(bool, readSequence, IN, int &, value, + Properties::NON_VIRTUAL, __bool__readSequence__int_R1, "", ""); I_Method1(bool, readSequence, IN, float &, value, + Properties::NON_VIRTUAL, __bool__readSequence__float_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec2f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec2f_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec3f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec3f_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec4f &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec4f_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec2d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec2d_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec3d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec3d_R1, "", ""); I_Method1(bool, readSequence, IN, osg::Vec4d &, value, + Properties::NON_VIRTUAL, __bool__readSequence__osg_Vec4d_R1, "", ""); diff --git a/src/osgWrappers/osgDB/ImageOptions.cpp b/src/osgWrappers/osgDB/ImageOptions.cpp index 72ef57409..a4c1b2457 100644 --- a/src/osgWrappers/osgDB/ImageOptions.cpp +++ b/src/osgWrappers/osgDB/ImageOptions.cpp @@ -34,12 +34,13 @@ BEGIN_ENUM_REFLECTOR(osgDB::ImageOptions::ImageSamplingMode) I_EnumLabel(osgDB::ImageOptions::CUBIC); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::ImageOptions) I_BaseType(osgDB::ReaderWriter::Options); I_Constructor0(____ImageOptions, "", ""); I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, ____ImageOptions__C5_std_string_R1, "", ""); @@ -48,26 +49,32 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) "", ""); 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_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "", ""); @@ -88,6 +95,7 @@ BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::PixelWindow) "", ""); I_Method4(void, set, IN, unsigned int, x, IN, unsigned int, y, IN, unsigned int, w, IN, unsigned int, h, + Properties::NON_VIRTUAL, __void__set__unsigned_int__unsigned_int__unsigned_int__unsigned_int, "", ""); @@ -102,6 +110,7 @@ BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::RatioWindow) "", ""); I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h, + Properties::NON_VIRTUAL, __void__set__double__double__double__double, "", ""); @@ -111,12 +120,13 @@ BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::RatioWindow) I_PublicMemberProperty(double, windowHeight); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions::TexCoordRange) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::ImageOptions::TexCoordRange) I_BaseType(osg::Referenced); I_Constructor0(____TexCoordRange, "", ""); I_Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h, + Properties::NON_VIRTUAL, __void__set__double__double__double__double, "", ""); diff --git a/src/osgWrappers/osgDB/Input.cpp b/src/osgWrappers/osgDB/Input.cpp index ee820162f..21d882adf 100644 --- a/src/osgWrappers/osgDB/Input.cpp +++ b/src/osgWrappers/osgDB/Input.cpp @@ -28,68 +28,83 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgDB::Input) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Input) I_BaseType(osgDB::FieldReaderIterator); I_Constructor0(____Input, "", ""); I_Method1(void, setOptions, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __void__setOptions__C5_ReaderWriter_Options_P1, "", ""); I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, __C5_ReaderWriter_Options_P1__getOptions, "", ""); I_Method1(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, + Properties::VIRTUAL, __osg_Object_P1__readObjectOfType__C5_osg_Object_R1, "", ""); I_Method1(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, + Properties::VIRTUAL, __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1, "", ""); I_Method0(osg::Object *, readObject, + Properties::VIRTUAL, __osg_Object_P1__readObject, "", ""); I_Method0(osg::Image *, readImage, + Properties::VIRTUAL, __osg_Image_P1__readImage, "", ""); I_Method0(osg::Drawable *, readDrawable, + Properties::VIRTUAL, __osg_Drawable_P1__readDrawable, "", ""); I_Method0(osg::StateAttribute *, readStateAttribute, + Properties::VIRTUAL, __osg_StateAttribute_P1__readStateAttribute, "", ""); I_Method0(osg::Uniform *, readUniform, + Properties::VIRTUAL, __osg_Uniform_P1__readUniform, "", ""); I_Method0(osg::Node *, readNode, + Properties::VIRTUAL, __osg_Node_P1__readNode, "", ""); I_Method1(osg::Object *, readObject, IN, const std::string &, fileName, + Properties::VIRTUAL, __osg_Object_P1__readObject__C5_std_string_R1, "", ""); I_Method1(osg::Image *, readImage, IN, const std::string &, fileName, + Properties::VIRTUAL, __osg_Image_P1__readImage__C5_std_string_R1, "", ""); I_Method1(osg::Node *, readNode, IN, const std::string &, fileName, + Properties::VIRTUAL, __osg_Node_P1__readNode__C5_std_string_R1, "", ""); I_Method1(osg::Object *, getObjectForUniqueID, IN, const std::string &, uniqueID, + Properties::VIRTUAL, __osg_Object_P1__getObjectForUniqueID__C5_std_string_R1, "", ""); I_Method2(void, regisiterUniqueIDForObject, IN, const std::string &, uniqueID, IN, osg::Object *, obj, + Properties::VIRTUAL, __void__regisiterUniqueIDForObject__C5_std_string_R1__osg_Object_P1, "", ""); diff --git a/src/osgWrappers/osgDB/ParameterOutput.cpp b/src/osgWrappers/osgDB/ParameterOutput.cpp index bfeb8f8b3..044ea9254 100644 --- a/src/osgWrappers/osgDB/ParameterOutput.cpp +++ b/src/osgWrappers/osgDB/ParameterOutput.cpp @@ -23,6 +23,7 @@ BEGIN_VALUE_REFLECTOR(osgDB::ParameterOutput) I_Constructor1(IN, osgDB::Output &, fw, + Properties::NON_EXPLICIT, ____ParameterOutput__Output_R1, "", ""); @@ -31,14 +32,17 @@ BEGIN_VALUE_REFLECTOR(osgDB::ParameterOutput) "", ""); I_Method0(void, begin, + Properties::NON_VIRTUAL, __void__begin, "", ""); I_Method0(void, newLine, + Properties::NON_VIRTUAL, __void__newLine, "", ""); I_Method0(void, end, + Properties::NON_VIRTUAL, __void__end, "", ""); diff --git a/src/osgWrappers/osgDB/ReaderWriter.cpp b/src/osgWrappers/osgDB/ReaderWriter.cpp index 61b799fba..a28d16064 100644 --- a/src/osgWrappers/osgDB/ReaderWriter.cpp +++ b/src/osgWrappers/osgDB/ReaderWriter.cpp @@ -32,7 +32,7 @@ BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) I_EnumLabel(osgDB::ReaderWriter::CREATE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::ReaderWriter) I_BaseType(osg::Object); I_Constructor0(____ReaderWriter, "", @@ -42,98 +42,122 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(bool, acceptsExtension, IN, const std::string &, x, + Properties::VIRTUAL, __bool__acceptsExtension__C5_std_string_R1, "", ""); I_MethodWithDefaults4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, x, , IN, osgDB::ReaderWriter::ArchiveStatus, x, , IN, unsigned, int, 4096, IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__openArchive__C5_std_string_R1__ArchiveStatus__unsigned__C5_Options_P1, "open an archive for reading, writing, or to create an empty archive for writing to. ", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, openArchive, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__openArchive__std_istream_R1__C5_Options_P1, "open an archive for reading. ", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readObject__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readImage__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readNode__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readObject__std_istream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readImage__std_istream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readHeightField__std_istream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __ReadResult__readNode__std_istream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeObject__C5_osg_Object_R1__std_ostream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeImage__C5_osg_Image_R1__std_ostream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeHeightField__C5_osg_HeightField_R1__std_ostream_R1__C5_Options_P1, "", ""); I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, __WriteResult__writeNode__C5_osg_Node_R1__std_ostream_R1__C5_Options_P1, "", ""); @@ -149,12 +173,13 @@ BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::Options::CacheHintOptions) I_EnumLabel(osgDB::ReaderWriter::Options::CACHE_ALL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) I_BaseType(osg::Object); I_Constructor0(____Options, "", ""); I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, ____Options__C5_std_string_R1, "", ""); @@ -163,50 +188,62 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setOptionString, IN, const std::string &, str, + Properties::NON_VIRTUAL, __void__setOptionString__C5_std_string_R1, "Set the general Options string. ", ""); I_Method0(const std::string &, getOptionString, + Properties::NON_VIRTUAL, __C5_std_string_R1__getOptionString, "Get the general Options string. ", ""); I_Method1(void, setDatabasePath, IN, const std::string &, str, + Properties::NON_VIRTUAL, __void__setDatabasePath__C5_std_string_R1, "Set the database path to use a hint of where to look when loading models. ", ""); I_Method0(osgDB::FilePathList &, getDatabasePathList, + Properties::NON_VIRTUAL, __FilePathList_R1__getDatabasePathList, "Get the database path which is used a hint of where to look when loading models. ", ""); I_Method0(const osgDB::FilePathList &, getDatabasePathList, + Properties::NON_VIRTUAL, __C5_FilePathList_R1__getDatabasePathList, "Get the const database path which is used a hint of where to look when loading models. ", ""); I_Method1(void, setObjectCacheHint, IN, osgDB::ReaderWriter::Options::CacheHintOptions, useObjectCache, + Properties::NON_VIRTUAL, __void__setObjectCacheHint__CacheHintOptions, "Set whether the Registry::ObjectCache should be used by default. ", ""); I_Method0(osgDB::ReaderWriter::Options::CacheHintOptions, getObjectCacheHint, + Properties::NON_VIRTUAL, __CacheHintOptions__getObjectCacheHint, "Get whether the Registry::ObjectCache should be used by default. ", ""); @@ -234,10 +271,12 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::ReadResult) I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED, + Properties::NON_EXPLICIT, ____ReadResult__ReadStatus, "", ""); I_Constructor1(IN, const std::string &, m, + Properties::NON_EXPLICIT, ____ReadResult__C5_std_string_R1, "", ""); @@ -246,98 +285,122 @@ BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::ReadResult) "", ""); I_Constructor1(IN, const osgDB::ReaderWriter::ReadResult &, rr, + Properties::NON_EXPLICIT, ____ReadResult__C5_ReadResult_R1, "", ""); I_Method0(osg::Object *, getObject, + Properties::NON_VIRTUAL, __osg_Object_P1__getObject, "", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getImage, "", ""); I_Method0(osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, __osg_HeightField_P1__getHeightField, "", ""); I_Method0(osg::Node *, getNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getNode, "", ""); I_Method0(osgDB::Archive *, getArchive, + Properties::NON_VIRTUAL, __osgDB_Archive_P1__getArchive, "", ""); I_Method0(bool, validObject, + Properties::NON_VIRTUAL, __bool__validObject, "", ""); I_Method0(bool, validImage, + Properties::NON_VIRTUAL, __bool__validImage, "", ""); I_Method0(bool, validHeightField, + Properties::NON_VIRTUAL, __bool__validHeightField, "", ""); I_Method0(bool, validNode, + Properties::NON_VIRTUAL, __bool__validNode, "", ""); I_Method0(bool, validArchive, + Properties::NON_VIRTUAL, __bool__validArchive, "", ""); I_Method0(osg::Object *, takeObject, + Properties::NON_VIRTUAL, __osg_Object_P1__takeObject, "", ""); I_Method0(osg::Image *, takeImage, + Properties::NON_VIRTUAL, __osg_Image_P1__takeImage, "", ""); I_Method0(osg::HeightField *, takeHeightField, + Properties::NON_VIRTUAL, __osg_HeightField_P1__takeHeightField, "", ""); I_Method0(osg::Node *, takeNode, + Properties::NON_VIRTUAL, __osg_Node_P1__takeNode, "", ""); I_Method0(osgDB::Archive *, takeArchive, + Properties::NON_VIRTUAL, __osgDB_Archive_P1__takeArchive, "", ""); I_Method0(std::string &, message, + Properties::NON_VIRTUAL, __std_string_R1__message, "", ""); I_Method0(const std::string &, message, + Properties::NON_VIRTUAL, __C5_std_string_R1__message, "", ""); I_Method0(osgDB::ReaderWriter::ReadResult::ReadStatus, status, + Properties::NON_VIRTUAL, __ReadStatus__status, "", ""); I_Method0(bool, success, + Properties::NON_VIRTUAL, __bool__success, "", ""); I_Method0(bool, loadedFromCache, + Properties::NON_VIRTUAL, __bool__loadedFromCache, "", ""); I_Method0(bool, error, + Properties::NON_VIRTUAL, __bool__error, "", ""); I_Method0(bool, notHandled, + Properties::NON_VIRTUAL, __bool__notHandled, "", ""); I_Method0(bool, notFound, + Properties::NON_VIRTUAL, __bool__notFound, "", ""); @@ -366,38 +429,47 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::WriteResult) I_ConstructorWithDefaults1(IN, osgDB::ReaderWriter::WriteResult::WriteStatus, status, osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED, + Properties::NON_EXPLICIT, ____WriteResult__WriteStatus, "", ""); I_Constructor1(IN, const std::string &, m, + Properties::NON_EXPLICIT, ____WriteResult__C5_std_string_R1, "", ""); I_Constructor1(IN, const osgDB::ReaderWriter::WriteResult &, rr, + Properties::NON_EXPLICIT, ____WriteResult__C5_WriteResult_R1, "", ""); I_Method0(std::string &, message, + Properties::NON_VIRTUAL, __std_string_R1__message, "", ""); I_Method0(const std::string &, message, + Properties::NON_VIRTUAL, __C5_std_string_R1__message, "", ""); I_Method0(osgDB::ReaderWriter::WriteResult::WriteStatus, status, + Properties::NON_VIRTUAL, __WriteStatus__status, "", ""); I_Method0(bool, success, + Properties::NON_VIRTUAL, __bool__success, "", ""); I_Method0(bool, error, + Properties::NON_VIRTUAL, __bool__error, "", ""); I_Method0(bool, notHandled, + Properties::NON_VIRTUAL, __bool__notHandled, "", ""); diff --git a/src/osgWrappers/osgDB/ReentrantMutex.cpp b/src/osgWrappers/osgDB/ReentrantMutex.cpp index c447512b3..342fde2c0 100644 --- a/src/osgWrappers/osgDB/ReentrantMutex.cpp +++ b/src/osgWrappers/osgDB/ReentrantMutex.cpp @@ -25,18 +25,22 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReadWriteMutex) "", ""); I_Method0(int, readLock, + Properties::VIRTUAL, __int__readLock, "", ""); I_Method0(int, readUnlock, + Properties::VIRTUAL, __int__readUnlock, "", ""); I_Method0(int, writeLock, + Properties::VIRTUAL, __int__writeLock, "", ""); I_Method0(int, writeUnlock, + Properties::VIRTUAL, __int__writeUnlock, "", ""); @@ -47,14 +51,17 @@ BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) "", ""); I_Method0(int, lock, + Properties::VIRTUAL, __int__lock, "", ""); I_Method0(int, unlock, + Properties::VIRTUAL, __int__unlock, "", ""); I_Method0(int, trylock, + Properties::VIRTUAL, __int__trylock, "", ""); @@ -62,6 +69,7 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ScopedReadLock) I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, ____ScopedReadLock__ReadWriteMutex_R1, "", ""); @@ -69,6 +77,7 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgDB::ScopedWriteLock) I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, ____ScopedWriteLock__ReadWriteMutex_R1, "", ""); diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index 66a85a45f..a0e7ec523 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -42,6 +42,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper) "", ""); I_Method1(bool, matches, IN, const osg::Object *, proto, + Properties::PURE_VIRTUAL, __bool__matches__C5_osg_Object_P1, "", ""); @@ -54,325 +55,405 @@ BEGIN_VALUE_REFLECTOR(osgDB::RegisterDotOsgWrapperProxy) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::Registry) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry) I_BaseType(osg::Referenced); I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, + Properties::NON_VIRTUAL, __void__readCommandLine__osg_ArgumentParser_R1, "read the command line arguments. ", ""); I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, + Properties::NON_VIRTUAL, __void__addFileExtensionAlias__C5_std_string__C5_std_string, "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, + Properties::NON_VIRTUAL, __bool__readPluginAliasConfigurationFile__C5_std_string_R1, "Reads a file that configures extension mappings. ", "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, __void__addDotOsgWrapper__DotOsgWrapper_P1, "", ""); I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, + Properties::NON_VIRTUAL, __void__removeDotOsgWrapper__DotOsgWrapper_P1, "", ""); I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, __void__addReaderWriter__ReaderWriter_P1, "", ""); I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, + Properties::NON_VIRTUAL, __void__removeReaderWriter__ReaderWriter_P1, "", ""); I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __std_string__createLibraryNameForFile__C5_std_string_R1, "create the platform specific library name associated with file. ", ""); I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, + Properties::NON_VIRTUAL, __std_string__createLibraryNameForExtension__C5_std_string_R1, "create the platform specific library name associated with file extension. ", ""); I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, + Properties::NON_VIRTUAL, __std_string__createLibraryNameForNodeKit__C5_std_string_R1, "create the platform specific library name associated with nodekit library name. ", ""); I_Method1(bool, loadLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __bool__loadLibrary__C5_std_string_R1, "find the library in the OSG_LIBRARY_PATH and load it. ", ""); I_Method1(bool, closeLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __bool__closeLibrary__C5_std_string_R1, "close the attached library with specified name. ", ""); I_Method0(void, closeAllLibraries, + Properties::NON_VIRTUAL, __void__closeAllLibraries, "close all libraries. ", ""); I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, + Properties::NON_VIRTUAL, __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, "get a reader writer which handles specified extension. ", ""); I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, "", ""); I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, "", ""); I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Object_P1__readObject__Input_R1, "", ""); I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Image_P1__readImage__Input_R1, "", ""); I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Drawable_P1__readDrawable__Input_R1, "", ""); I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Uniform_P1__readUniform__Input_R1, "", ""); I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_StateAttribute_P1__readStateAttribute__Input_R1, "", ""); I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, __osg_Node_P1__readNode__Input_R1, "", ""); I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, + Properties::NON_VIRTUAL, __bool__writeObject__C5_osg_Object_R1__Output_R1, "", ""); I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, + Properties::NON_VIRTUAL, __void__setReadFileCallback__ReadFileCallback_P1, "Set the Registry callback to use in place of the default readFile calls. ", ""); I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, __ReadFileCallback_P1__getReadFileCallback, "Get the readFile callback. ", ""); I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, __C5_ReadFileCallback_P1__getReadFileCallback, "Get the const readFile callback. ", ""); I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, "", ""); I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, + Properties::NON_VIRTUAL, __void__setWriteFileCallback__WriteFileCallback_P1, "Set the Registry callback to use in place of the default writeFile calls. ", ""); I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, __WriteFileCallback_P1__getWriteFileCallback, "Get the writeFile callback. ", ""); I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, __C5_WriteFileCallback_P1__getWriteFileCallback, "Get the const writeFile callback. ", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, "", ""); I_Method1(void, setCreateNodeFromImage, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setCreateNodeFromImage__bool, "", ""); I_Method0(bool, getCreateNodeFromImage, + Properties::NON_VIRTUAL, __bool__getCreateNodeFromImage, "", ""); I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, + Properties::NON_VIRTUAL, __void__setOptions__ReaderWriter_Options_P1, "", ""); I_Method0(osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, __ReaderWriter_Options_P1__getOptions, "", ""); I_Method0(const osgDB::ReaderWriter::Options *, getOptions, + Properties::NON_VIRTUAL, __C5_ReaderWriter_Options_P1__getOptions, "", ""); I_Method0(void, initFilePathLists, + Properties::NON_VIRTUAL, __void__initFilePathLists, "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", ""); I_Method0(void, initDataFilePathList, + Properties::NON_VIRTUAL, __void__initDataFilePathList, "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", ""); I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, + Properties::NON_VIRTUAL, __void__setDataFilePathList__C5_FilePathList_R1, "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", ""); I_Method1(void, setDataFilePathList, IN, const std::string &, paths, + Properties::NON_VIRTUAL, __void__setDataFilePathList__C5_std_string_R1, "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", ""); I_Method0(osgDB::FilePathList &, getDataFilePathList, + Properties::NON_VIRTUAL, __FilePathList_R1__getDataFilePathList, "get the data file path which is used when search for data files. ", ""); I_Method0(const osgDB::FilePathList &, getDataFilePathList, + Properties::NON_VIRTUAL, __C5_FilePathList_R1__getDataFilePathList, "get the const data file path which is used when search for data files. ", ""); I_Method0(void, initLibraryFilePathList, + Properties::NON_VIRTUAL, __void__initLibraryFilePathList, "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", ""); I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, + Properties::NON_VIRTUAL, __void__setLibraryFilePathList__C5_FilePathList_R1, "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", ""); I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, + Properties::NON_VIRTUAL, __void__setLibraryFilePathList__C5_std_string_R1, "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", ""); I_Method0(osgDB::FilePathList &, getLibraryFilePathList, + Properties::NON_VIRTUAL, __FilePathList_R1__getLibraryFilePathList, "get the library file path which is used when search for library (dso/dll's) files. ", ""); I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, + Properties::NON_VIRTUAL, __C5_FilePathList_R1__getLibraryFilePathList, "get the const library file path which is used when search for library (dso/dll's) files. ", ""); I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, + Properties::NON_VIRTUAL, __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, + Properties::NON_VIRTUAL, __void__removeExpiredObjectsInCache__double, "Removed object in the cache which have a time stamp at or before the specified expiry time. ", "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); I_Method0(void, clearObjectCache, + Properties::NON_VIRTUAL, __void__clearObjectCache, "Remove all objects in the cache regardless of having external references or expiry times. ", ""); I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, + Properties::NON_VIRTUAL, __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", ""); I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __osg_Object_P1__getFromObjectCache__C5_std_string_R1, "Get an object from the object cache. ", ""); I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, + Properties::NON_VIRTUAL, __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, "Add archive to archive cache so that future calls reference this archive. ", ""); I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __void__removeFromArchiveCache__C5_std_string_R1, "Remove archive from cache. ", ""); I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, "Get an archive from the archive cache. ", ""); I_Method0(void, clearArchiveCache, + Properties::NON_VIRTUAL, __void__clearArchiveCache, "Remove all archives from the archive cache. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::NON_VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, __DynamicLibrary_P1__getLibrary__C5_std_string_R1, "get the attached library with specified name. ", ""); I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, + Properties::NON_VIRTUAL, __void__setDatabasePager__DatabasePager_P1, "Set the DatabasePager. ", ""); I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, + Properties::NON_VIRTUAL, __DatabasePager_P1__getOrCreateDatabasePager, "Get the DatabasePager, creating one if one is not already created. ", ""); I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, __DatabasePager_P1__getDatabasePager, "Get the DatabasePager. ", "Return 0 if no DatabasePager has been assigned. "); I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, + Properties::NON_VIRTUAL, __void__setSharedStateManager__SharedStateManager_P1, "Set the SharedStateManager. ", ""); I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, + Properties::NON_VIRTUAL, __SharedStateManager_P1__getOrCreateSharedStateManager, "Get the SharedStateManager, creating one if one is not already created. ", ""); I_Method0(osgDB::SharedStateManager *, getSharedStateManager, + Properties::NON_VIRTUAL, __SharedStateManager_P1__getSharedStateManager, "Get the SharedStateManager. ", "Return 0 if no SharedStateManager has been assigned. "); @@ -406,28 +487,33 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry) __void__setWriteFileCallback__WriteFileCallback_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) I_BaseType(osg::Referenced); I_Constructor0(____ReadFileCallback, "", ""); I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, filename, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, useObjectCache, + Properties::VIRTUAL, __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, "", ""); @@ -439,38 +525,45 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) "", ""); I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, + Properties::PURE_VIRTUAL, __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, "", ""); I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, + Properties::PURE_VIRTUAL, __bool__isValid__ReaderWriter_ReadResult_R1, "", ""); I_Method1(bool, isValid, IN, osg::Object *, object, + Properties::PURE_VIRTUAL, __bool__isValid__osg_Object_P1, "", ""); I_PublicMemberProperty(std::string, _filename); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) I_BaseType(osg::Referenced); I_Constructor0(____WriteFileCallback, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, "", ""); I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, obj, IN, const std::string &, fileName, + Properties::VIRTUAL, __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, "", ""); diff --git a/src/osgWrappers/osgDB/SharedStateManager.cpp b/src/osgWrappers/osgDB/SharedStateManager.cpp index c511df91a..8324efb07 100644 --- a/src/osgWrappers/osgDB/SharedStateManager.cpp +++ b/src/osgWrappers/osgDB/SharedStateManager.cpp @@ -29,32 +29,38 @@ BEGIN_ENUM_REFLECTOR(osgDB::SharedStateManager::ShareMode) I_EnumLabel(osgDB::SharedStateManager::SHARE_ALL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::SharedStateManager) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::SharedStateManager) I_BaseType(osg::NodeVisitor); I_Constructor0(____SharedStateManager, "", ""); I_Method1(void, setShareMode, IN, unsigned int, mode, + Properties::NON_VIRTUAL, __void__setShareMode__unsigned_int, "", ""); I_Method0(unsigned int, getShareMode, + Properties::NON_VIRTUAL, __unsigned_int__getShareMode, "", ""); I_Method0(void, prune, + Properties::NON_VIRTUAL, __void__prune, "", ""); I_MethodWithDefaults2(void, share, IN, osg::Node *, node, , IN, OpenThreads::Mutex *, mt, 0, + Properties::NON_VIRTUAL, __void__share__osg_Node_P1__OpenThreads_Mutex_P1, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); diff --git a/src/osgWrappers/osgFX/AnisotropicLighting.cpp b/src/osgWrappers/osgFX/AnisotropicLighting.cpp index ced8a30b5..39c96c637 100644 --- a/src/osgWrappers/osgFX/AnisotropicLighting.cpp +++ b/src/osgWrappers/osgFX/AnisotropicLighting.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) I_BaseType(osgFX::Effect); I_Constructor0(____AnisotropicLighting, "", @@ -34,58 +34,72 @@ BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const char *, effectName, + Properties::VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, __osg_Image_P1__getLightingMap, "get the lighting map ", ""); I_Method0(const osg::Image *, getLightingMap, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getLightingMap, "get the const lighting map ", ""); I_Method1(void, setLightingMap, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setLightingMap__osg_Image_P1, "set the lighting map ", ""); I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, __int__getLightNumber, "get the OpenGL light number ", ""); I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, __void__setLightNumber__int, "set the OpenGL light number that will be used in lighting computations ", ""); diff --git a/src/osgWrappers/osgFX/BumpMapping.cpp b/src/osgWrappers/osgFX/BumpMapping.cpp index edcd04c6d..92496d450 100644 --- a/src/osgWrappers/osgFX/BumpMapping.cpp +++ b/src/osgWrappers/osgFX/BumpMapping.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::BumpMapping) I_BaseType(osgFX::Effect); I_Constructor0(____BumpMapping, "", @@ -36,102 +36,127 @@ BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const char *, effectName, + Properties::VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, __int__getLightNumber, "get the OpenGL light number ", ""); I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, __void__setLightNumber__int, "set the OpenGL light number that will be used in lighting computations ", ""); I_Method0(int, getDiffuseTextureUnit, + Properties::NON_VIRTUAL, __int__getDiffuseTextureUnit, "get the texture unit that contains diffuse color texture. ", "Default is 1 "); I_Method1(void, setDiffuseTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, __void__setDiffuseTextureUnit__int, "set the texture unit that contains diffuse color texture. ", "Default is 1 "); I_Method0(int, getNormalMapTextureUnit, + Properties::NON_VIRTUAL, __int__getNormalMapTextureUnit, "get the texture unit that contains normal map texture. ", "Default is 0 "); I_Method1(void, setNormalMapTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, __void__setNormalMapTextureUnit__int, "set the texture unit that contains normal map texture. ", "Default is 0 "); I_Method0(osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getOverrideDiffuseTexture, "get the diffuse color texture that overrides children's texture ", ""); I_Method0(const osg::Texture2D *, getOverrideDiffuseTexture, + Properties::NON_VIRTUAL, __C5_osg_Texture2D_P1__getOverrideDiffuseTexture, "get the const diffuse color texture that overrides children's texture ", ""); I_Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, __void__setOverrideDiffuseTexture__osg_Texture2D_P1, "set the diffuse color texture that overrides children's texture ", ""); I_Method0(osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getOverrideNormalMapTexture, "get the normal map texture that overrides children's texture ", ""); I_Method0(const osg::Texture2D *, getOverrideNormalMapTexture, + Properties::NON_VIRTUAL, __C5_osg_Texture2D_P1__getOverrideNormalMapTexture, "get the const normal map texture that overrides children's texture ", ""); I_Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture, + Properties::NON_VIRTUAL, __void__setOverrideNormalMapTexture__osg_Texture2D_P1, "set the normal map texture that overrides children's texture ", ""); I_Method1(void, prepareGeometry, IN, osg::Geometry *, geo, + Properties::NON_VIRTUAL, __void__prepareGeometry__osg_Geometry_P1, "prepare a Geometry for bump lighting. ", "Tangent-space basis vectors are generated and attached to the geometry as vertex attribute arrays."); I_Method1(void, prepareNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__prepareNode__osg_Node_P1, "prepare a Node for bump lighting, calling prepareGeometry() for each Geometry ", ""); I_Method0(void, prepareChildren, + Properties::NON_VIRTUAL, __void__prepareChildren, "prepare children for bump lighting. ", "Actually calls prepareNode() for each child "); I_Method0(void, setUpDemo, + Properties::VIRTUAL, __void__setUpDemo, "set up a demo environment with predefined diffuse and normal maps, as well as texture coordinates ", ""); diff --git a/src/osgWrappers/osgFX/Cartoon.cpp b/src/osgWrappers/osgFX/Cartoon.cpp index a39482443..131f04f6c 100644 --- a/src/osgWrappers/osgFX/Cartoon.cpp +++ b/src/osgWrappers/osgFX/Cartoon.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Cartoon) I_BaseType(osgFX::Effect); I_Constructor0(____Cartoon, "", @@ -34,62 +34,77 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const char *, effectName, + Properties::VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(const osg::Vec4 &, getOutlineColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getOutlineColor, "get the outline color ", ""); I_Method1(void, setOutlineColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setOutlineColor__C5_osg_Vec4_R1, "set the outline color ", ""); I_Method0(float, getOutlineLineWidth, + Properties::NON_VIRTUAL, __float__getOutlineLineWidth, "get the outline line width ", ""); I_Method1(void, setOutlineLineWidth, IN, float, w, + Properties::NON_VIRTUAL, __void__setOutlineLineWidth__float, "set the outline line width ", ""); I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, __int__getLightNumber, "get the OpenGL light number ", ""); I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, __void__setLightNumber__int, "set the OpenGL light number that will be used in lighting computations ", ""); diff --git a/src/osgWrappers/osgFX/Effect.cpp b/src/osgWrappers/osgFX/Effect.cpp index c23e5d711..bdce597ad 100644 --- a/src/osgWrappers/osgFX/Effect.cpp +++ b/src/osgWrappers/osgFX/Effect.cpp @@ -38,66 +38,82 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, effectName, + Properties::PURE_VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::PURE_VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::PURE_VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(bool, getEnabled, + Properties::NON_VIRTUAL, __bool__getEnabled, "get whether the effect is enabled or not ", ""); I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, __void__setEnabled__bool, "set whether the effect is enabled or not ", ""); I_Method0(void, setUpDemo, + Properties::VIRTUAL, __void__setUpDemo, "optional: set effect parameters to produce a visually significant result to be used in demo applications like osgfxbrowser. ", "Default is to do nothing."); I_Method0(int, getNumTechniques, + Properties::NON_VIRTUAL, __int__getNumTechniques, "get the number of techniques defined for this Effect ", ""); I_Method1(osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, __Technique_P1__getTechnique__int, "get the i-th Technique ", ""); I_Method1(const osgFX::Technique *, getTechnique, IN, int, i, + Properties::NON_VIRTUAL, __C5_Technique_P1__getTechnique__int, "get the i-th const Technique ", ""); I_Method0(int, getSelectedTechnique, + Properties::NON_VIRTUAL, __int__getSelectedTechnique, "get the index of the currently selected Technique ", ""); I_MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT, + Properties::NON_VIRTUAL, __void__selectTechnique__int, "select a technique or enable automatic detection ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "custom traversal ", ""); I_Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, __void__inherited_traverse__osg_NodeVisitor_R1, "default traversal ", ""); diff --git a/src/osgWrappers/osgFX/MultiTextureControl.cpp b/src/osgWrappers/osgFX/MultiTextureControl.cpp index bf251db35..7c0931dee 100644 --- a/src/osgWrappers/osgFX/MultiTextureControl.cpp +++ b/src/osgWrappers/osgFX/MultiTextureControl.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::MultiTextureControl) I_BaseType(osg::Group); I_Constructor0(____MultiTextureControl, "", @@ -33,38 +33,47 @@ BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight, + Properties::NON_VIRTUAL, __void__setTextureWeight__unsigned_int__float, "", ""); I_Method1(float, getTextureWeight, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __float__getTextureWeight__unsigned_int, "", ""); I_Method0(unsigned int, getNumTextureWeights, + Properties::NON_VIRTUAL, __unsigned_int__getNumTextureWeights, "", ""); diff --git a/src/osgWrappers/osgFX/Registry.cpp b/src/osgWrappers/osgFX/Registry.cpp index eaec498ff..fdc01ba33 100644 --- a/src/osgWrappers/osgFX/Registry.cpp +++ b/src/osgWrappers/osgFX/Registry.cpp @@ -23,13 +23,15 @@ TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >, osgFX::Registry::EffectMap); -BEGIN_OBJECT_REFLECTOR(osgFX::Registry) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Registry) I_BaseType(osg::Referenced); I_Method1(void, registerEffect, IN, const osgFX::Effect *, effect, + Properties::NON_VIRTUAL, __void__registerEffect__C5_Effect_P1, "", ""); I_Method0(const osgFX::Registry::EffectMap &, getEffectMap, + Properties::NON_VIRTUAL, __C5_EffectMap_R1__getEffectMap, "", ""); @@ -44,6 +46,7 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) I_Constructor1(IN, const osgFX::Effect *, effect, + Properties::NON_EXPLICIT, ____Proxy__C5_Effect_P1, "", ""); diff --git a/src/osgWrappers/osgFX/Scribe.cpp b/src/osgWrappers/osgFX/Scribe.cpp index 29abdf5e5..24980cbee 100644 --- a/src/osgWrappers/osgFX/Scribe.cpp +++ b/src/osgWrappers/osgFX/Scribe.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Scribe) I_BaseType(osgFX::Effect); I_Constructor0(____Scribe, "", @@ -34,54 +34,67 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const char *, effectName, + Properties::VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(const osg::Vec4 &, getWireframeColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getWireframeColor, "get the wireframe color ", ""); I_Method1(void, setWireframeColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setWireframeColor__C5_osg_Vec4_R1, "set the wireframe color ", ""); I_Method0(float, getWireframeLineWidth, + Properties::NON_VIRTUAL, __float__getWireframeLineWidth, "get the wireframe line width ", ""); I_Method1(void, setWireframeLineWidth, IN, float, w, + Properties::NON_VIRTUAL, __void__setWireframeLineWidth__float, "set the wireframe line width ", ""); diff --git a/src/osgWrappers/osgFX/SpecularHighlights.cpp b/src/osgWrappers/osgFX/SpecularHighlights.cpp index 2e11044b7..2a31d0b2e 100644 --- a/src/osgWrappers/osgFX/SpecularHighlights.cpp +++ b/src/osgWrappers/osgFX/SpecularHighlights.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::SpecularHighlights) I_BaseType(osgFX::Effect); I_Constructor0(____SpecularHighlights, "", @@ -34,70 +34,87 @@ BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const char *, effectName, + Properties::VIRTUAL, __C5_char_P1__effectName, "get the name of this Effect ", ""); I_Method0(const char *, effectDescription, + Properties::VIRTUAL, __C5_char_P1__effectDescription, "get a brief description of this Effect ", ""); I_Method0(const char *, effectAuthor, + Properties::VIRTUAL, __C5_char_P1__effectAuthor, "get the effect author's name ", ""); I_Method0(int, getLightNumber, + Properties::NON_VIRTUAL, __int__getLightNumber, "get the OpenGL light number ", ""); I_Method1(void, setLightNumber, IN, int, n, + Properties::NON_VIRTUAL, __void__setLightNumber__int, "set the OpenGL light number that will be used in lighting computations ", ""); I_Method0(int, getTextureUnit, + Properties::NON_VIRTUAL, __int__getTextureUnit, "get the texture unit number ", ""); I_Method1(void, setTextureUnit, IN, int, n, + Properties::NON_VIRTUAL, __void__setTextureUnit__int, "set the texture unit that will be used to apply the cube map ", ""); I_Method0(const osg::Vec4 &, getSpecularColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getSpecularColor, "get the specular color ", ""); I_Method1(void, setSpecularColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setSpecularColor__C5_osg_Vec4_R1, "set the specular color ", ""); I_Method0(float, getSpecularExponent, + Properties::NON_VIRTUAL, __float__getSpecularExponent, "get the specular exponent ", ""); I_Method1(void, setSpecularExponent, IN, float, e, + Properties::NON_VIRTUAL, __void__setSpecularExponent__float, "set the specular exponent ", ""); diff --git a/src/osgWrappers/osgFX/Technique.cpp b/src/osgWrappers/osgFX/Technique.cpp index cc875b440..91b4ee6a1 100644 --- a/src/osgWrappers/osgFX/Technique.cpp +++ b/src/osgWrappers/osgFX/Technique.cpp @@ -30,34 +30,42 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) "", ""); I_Method0(const char *, techniqueName, + Properties::VIRTUAL, __C5_char_P1__techniqueName, "get the name of this Technique ", ""); I_Method0(const char *, techniqueDescription, + Properties::VIRTUAL, __C5_char_P1__techniqueDescription, "get a brief description of this Technique ", ""); I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x, + Properties::VIRTUAL, __void__getRequiredExtensions__std_vectorT1_std_string__R1, "collect the GL extension strings which are required for this technique to work properly. ", "This method is called from the default implementation of validate()."); I_Method1(bool, validate, IN, osg::State &, x, + Properties::VIRTUAL, __bool__validate__osg_State_R1, "tests whether this technique is valid for the current rendering context. ", "The default behavior is to call getRequiredExtensions() and check for extension availability."); I_Method0(int, getNumPasses, + Properties::NON_VIRTUAL, __int__getNumPasses, "get the number of rendering passes defined in this Technique ", ""); I_Method1(osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getPassStateSet__int, "get the StateSet object associated to the i-th pass ", ""); I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getPassStateSet__int, "get the const StateSet object associated to the i-th pass ", ""); I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1__Effect_P1, "traverse children with multipass if necessary. ", "By default this method simply calls the protected method traverse_implementation(); you can override it to change the default behavior. Don't call this method directly as it is called by osgFX::Effect"); diff --git a/src/osgWrappers/osgFX/Validator.cpp b/src/osgWrappers/osgFX/Validator.cpp index 7c5e9b233..c0c21c8b4 100644 --- a/src/osgWrappers/osgFX/Validator.cpp +++ b/src/osgWrappers/osgFX/Validator.cpp @@ -25,12 +25,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgFX::Validator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Validator) I_BaseType(osg::StateAttribute); I_Constructor0(____Validator, "", ""); I_Constructor1(IN, osgFX::Effect *, effect, + Properties::NON_EXPLICIT, ____Validator__Effect_P1, "", ""); @@ -39,42 +40,52 @@ BEGIN_OBJECT_REFLECTOR(osgFX::Validator) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an attribute, 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 attribute, 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, "Return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "Return the name of the attribute's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method0(osg::StateAttribute::Type, getType, + Properties::VIRTUAL, __Type__getType, "Return the Type identifier of the attribute's class type. ", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__osg_State_R1, "apply the OpenGL state attributes. ", "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, __void__compileGLObjects__osg_State_R1, "Default to nothing to compile - all state is applied immediately. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, __int__compare__C5_osg_StateAttribute_R1, "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method0(void, disable, + Properties::NON_VIRTUAL, __void__disable, "", ""); diff --git a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp index ce66e334d..7b26d107e 100644 --- a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp +++ b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp @@ -25,77 +25,95 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) I_BaseType(osgGA::MatrixManipulator); I_ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0, + Properties::NON_EXPLICIT, ____AnimationPathManipulator__osg_AnimationPath_P1, "", ""); I_Constructor1(IN, const std::string &, filename, + Properties::NON_EXPLICIT, ____AnimationPathManipulator__C5_std_string_R1, "", ""); 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, printOutTiminInfo, + Properties::NON_VIRTUAL, __void__setPrintOutTimingInfo__bool, "", ""); I_Method0(bool, getPrintOutTimingInfo, + Properties::NON_VIRTUAL, __bool__getPrintOutTimingInfo, "", ""); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, animationPath, + Properties::NON_VIRTUAL, __void__setAnimationPath__osg_AnimationPath_P1, "", ""); I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __osg_AnimationPath_P1__getAnimationPath, "", ""); I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __C5_osg_AnimationPath_P1__getAnimationPath, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate."); I_Method1(void, home, IN, double, currentTime, + Properties::VIRTUAL, __void__home__double, "Move the camera to the default position. ", "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); diff --git a/src/osgWrappers/osgGA/DriveManipulator.cpp b/src/osgWrappers/osgGA/DriveManipulator.cpp index 72de9dbdf..cf5d58f6a 100644 --- a/src/osgWrappers/osgGA/DriveManipulator.cpp +++ b/src/osgWrappers/osgGA/DriveManipulator.cpp @@ -25,84 +25,103 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::DriveManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator, automatically detaching any previously attached node. ", "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return const node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method0(void, computeHomePosition, + Properties::VIRTUAL, __void__computeHomePosition, "Compute the home position. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, __void__setModelScale__double, "", ""); I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, __double__getModelScale, "", ""); I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, __void__setVelocity__double, "", ""); I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, __double__getVelocity, "", ""); I_Method1(void, setHeight, IN, double, in_h, + Properties::NON_VIRTUAL, __void__setHeight__double, "", ""); I_Method0(double, getHeight, + Properties::NON_VIRTUAL, __double__getHeight, "", ""); diff --git a/src/osgWrappers/osgGA/EventQueue.cpp b/src/osgWrappers/osgGA/EventQueue.cpp index f63ce9ee1..d79711de8 100644 --- a/src/osgWrappers/osgGA/EventQueue.cpp +++ b/src/osgWrappers/osgGA/EventQueue.cpp @@ -24,177 +24,220 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventQueue::Events); -BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::EventQueue) I_BaseType(osg::Referenced); I_ConstructorWithDefaults1(IN, osgGA::GUIEventAdapter::MouseYOrientation, mouseYOrientation, osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS, + Properties::NON_EXPLICIT, ____EventQueue__GUIEventAdapter_MouseYOrientation, "", ""); I_Method1(void, setEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, __void__setEvents__Events_R1, "Set events. ", ""); I_Method1(bool, takeEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, __bool__takeEvents__Events_R1, "Take the entire event queue leaving the EventQueue' event queue empty. ", ""); I_Method1(bool, copyEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, __bool__copyEvents__Events_R1, "Take a copy the entire event queue leaving the EventQueue' event queue intact. ", ""); I_Method1(void, appendEvents, IN, osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, __void__appendEvents__Events_R1, "Add events to end of event queue. ", ""); I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, __void__addEvent__GUIEventAdapter_P1, "Add an event to the end of the event queue. ", ""); I_Method1(void, setUseFixedMouseInputRange, IN, bool, useFixedMouseInputRange, + Properties::NON_VIRTUAL, __void__setUseFixedMouseInputRange__bool, "Specify if mouse coordinates should be transformed into a pre defined input range, or whether they should be simply based on as local coordinates to the window that generated the mouse events. ", ""); I_Method0(bool, getUseFixedMouseInputRange, + Properties::NON_VIRTUAL, __bool__getUseFixedMouseInputRange, "Get whether the mouse coordinates should be transformed into a pre defined input range. ", ""); I_Method4(void, setMouseInputRange, IN, float, xMin, IN, float, yMin, IN, float, xMax, IN, float, yMax, + Properties::NON_VIRTUAL, __void__setMouseInputRange__float__float__float__float, "Set the mouse input range. ", ""); I_Method4(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__windowResize__int__int__int__int, "Method for adapting window resize event, placing this event on the back of the event queue. ", ""); I_Method5(void, windowResize, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, double, time, + Properties::NON_VIRTUAL, __void__windowResize__int__int__int__int__double, "Method for adapting window resize event, placing this event on the back of the event queue, with specified time. ", ""); I_Method1(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + Properties::NON_VIRTUAL, __void__mouseScroll__GUIEventAdapter_ScrollingMotion, "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", ""); I_Method2(void, mouseScroll, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseScroll__GUIEventAdapter_ScrollingMotion__double, "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue, with specified time. ", ""); I_Method2(void, mouseScroll2D, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, __void__mouseScroll2D__float__float, "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", ""); I_Method3(void, mouseScroll2D, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseScroll2D__float__float__double, "Method for adapting mouse scroll wheel events, placing this event on the back of the event queue. ", ""); I_Method1(void, penPressure, IN, float, pressure, + Properties::NON_VIRTUAL, __void__penPressure__float, "Method for adapting pen pressure events, placing this event on the back of the event queue. ", ""); I_Method2(void, penPressure, IN, float, pressure, IN, double, time, + Properties::NON_VIRTUAL, __void__penPressure__float__double, "Method for adapting pen pressure events, placing this event on the back of the event queue, with specified time. ", ""); I_Method2(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, + Properties::NON_VIRTUAL, __void__penProximity__GUIEventAdapter_TabletPointerType__bool, "Method for adapting pen proximity events, placing this event on the back of the event queue. ", ""); I_Method3(void, penProximity, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, IN, bool, isEntering, IN, double, time, + Properties::NON_VIRTUAL, __void__penProximity__GUIEventAdapter_TabletPointerType__bool__double, "Method for adapting pen proximity events, placing this event on the back of the event queue, with specified time. ", ""); I_Method2(void, mouseWarped, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, __void__mouseWarped__float__float, "Method for updating in response to a mouse warp. ", "Note, just moves the mouse position without creating a new event for it. "); I_Method2(void, mouseMotion, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, __void__mouseMotion__float__float, "Method for adapting mouse motion events, placing this event on the back of the event queue. ", ""); I_Method3(void, mouseMotion, IN, float, x, IN, float, y, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseMotion__float__float__double, "Method for adapting mouse motion events, placing this event on the back of the event queue, with specified time. ", ""); I_Method3(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, __void__mouseButtonPress__float__float__unsigned_int, "Method for adapting mouse button pressed events, placing this event on the back of the event queue. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method4(void, mouseButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseButtonPress__float__float__unsigned_int__double, "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method3(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, __void__mouseDoubleButtonPress__float__float__unsigned_int, "Method for adapting mouse button pressed events, placing this event on the back of the event queue. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method4(void, mouseDoubleButtonPress, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseDoubleButtonPress__float__float__unsigned_int__double, "Method for adapting mouse button pressed events, placing this event on the back of the event queue, with specified time. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method3(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, + Properties::NON_VIRTUAL, __void__mouseButtonRelease__float__float__unsigned_int, "Method for adapting mouse button release events, placing this event on the back of the event queue. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method4(void, mouseButtonRelease, IN, float, x, IN, float, y, IN, unsigned int, button, IN, double, time, + Properties::NON_VIRTUAL, __void__mouseButtonRelease__float__float__unsigned_int__double, "Method for adapting mouse button release events, placing this event on the back of the event queue, with specified time. ", "Button numbering is 1 for left mouse button, 2 for middle, 3 for right. "); I_Method1(void, keyPress, IN, int, key, + Properties::NON_VIRTUAL, __void__keyPress__int, "Method for adapting keyboard press events. ", "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); I_Method2(void, keyPress, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, __void__keyPress__int__double, "Method for adapting keyboard press events. ", "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); I_Method1(void, keyRelease, IN, int, key, + Properties::NON_VIRTUAL, __void__keyRelease__int, "Method for adapting keyboard press events. ", "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings. "); I_Method2(void, keyRelease, IN, int, key, IN, double, time, + Properties::NON_VIRTUAL, __void__keyRelease__int__double, "Method for adapting keyboard press events. ", "Note, special keys such as Ctrl/Function keys should be adapted to GUIEventAdapter::KeySymbol mappings, with specified time. "); I_Method0(void, closeWindow, + Properties::NON_VIRTUAL, __void__closeWindow, "Method for adapting close window events. ", ""); I_Method1(void, closeWindow, IN, double, time, + Properties::NON_VIRTUAL, __void__closeWindow__double, "Method for adapting close window event with specified event time. ", ""); I_Method0(void, quitApplication, + Properties::NON_VIRTUAL, __void__quitApplication, "Method for adapting application quit events. ", ""); I_Method1(void, quitApplication, IN, double, time, + Properties::NON_VIRTUAL, __void__quitApplication__double, "Method for adapting application quit events with specified event time. ", ""); I_Method1(void, frame, IN, double, time, + Properties::NON_VIRTUAL, __void__frame__double, "Method for adapting frame events. ", ""); I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, __void__setStartTick__osg_Timer_t, "", ""); I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, __osg_Timer_t__getStartTick, "", ""); I_Method0(double, getTime, + Properties::NON_VIRTUAL, __double__getTime, "", ""); I_Method0(osgGA::GUIEventAdapter *, createEvent, + Properties::NON_VIRTUAL, __GUIEventAdapter_P1__createEvent, "convinience method for create an event ready to fill in. ", "Clones the getCurrentEventState() to produce a up to date event state. "); I_Method0(osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, __GUIEventAdapter_P1__getCurrentEventState, "", ""); I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, __C5_GUIEventAdapter_P1__getCurrentEventState, "", ""); @@ -220,26 +263,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventAdapter >) "", ""); I_Constructor1(IN, osgGA::GUIEventAdapter *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgGA::GUIEventAdapter *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgGA::GUIEventAdapter *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventAdapter > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgGA/EventVisitor.cpp b/src/osgWrappers/osgGA/EventVisitor.cpp index 9734a673c..09c480448 100644 --- a/src/osgWrappers/osgGA/EventVisitor.cpp +++ b/src/osgWrappers/osgGA/EventVisitor.cpp @@ -35,92 +35,113 @@ TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventVisitor::EventList); -BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::EventVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____EventVisitor, "", ""); I_Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter, + Properties::NON_VIRTUAL, __void__setActionAdapter__osgGA_GUIActionAdapter_P1, "", ""); I_Method0(osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, __osgGA_GUIActionAdapter_P1__getActionAdapter, "", ""); I_Method0(const osgGA::GUIActionAdapter *, getActionAdapter, + Properties::NON_VIRTUAL, __C5_osgGA_GUIActionAdapter_P1__getActionAdapter, "", ""); I_Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, __void__addEvent__GUIEventAdapter_P1, "", ""); I_Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event, + Properties::NON_VIRTUAL, __void__removeEvent__GUIEventAdapter_P1, "", ""); I_Method1(void, setEventHandled, IN, bool, handled, + Properties::NON_VIRTUAL, __void__setEventHandled__bool, "", ""); I_Method0(bool, getEventHandled, + Properties::NON_VIRTUAL, __bool__getEventHandled, "", ""); I_Method1(void, setEvents, IN, const osgGA::EventQueue::Events &, events, + Properties::NON_VIRTUAL, __void__setEvents__C5_EventQueue_Events_R1, "", ""); I_Method0(osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, __EventQueue_Events_R1__getEvents, "", ""); I_Method0(const osgGA::EventQueue::Events &, getEvents, + Properties::NON_VIRTUAL, __C5_EventQueue_Events_R1__getEvents, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "During traversal each type of node calls its callbacks and its children traversed. ", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, __void__apply__osg_LightSource_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, __void__apply__osg_OccluderNode_R1, "", ""); diff --git a/src/osgWrappers/osgGA/FlightManipulator.cpp b/src/osgWrappers/osgGA/FlightManipulator.cpp index b9333a9dc..83119e26c 100644 --- a/src/osgWrappers/osgGA/FlightManipulator.cpp +++ b/src/osgWrappers/osgGA/FlightManipulator.cpp @@ -30,84 +30,103 @@ BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode) I_EnumLabel(osgGA::FlightManipulator::NO_AUTOMATIC_YAW); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::FlightManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator, automatically detaching any previously attached node. ", "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return const node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); I_Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm, + Properties::NON_VIRTUAL, __void__setYawControlMode__YawControlMode, "Configure the Yaw control for the flight model. ", ""); I_Method1(void, setModelScale, IN, double, in_ms, + Properties::NON_VIRTUAL, __void__setModelScale__double, "", ""); I_Method0(double, getModelScale, + Properties::NON_VIRTUAL, __double__getModelScale, "", ""); I_Method1(void, setAcceleration, IN, double, in_acc, + Properties::NON_VIRTUAL, __void__setAcceleration__double, "", ""); I_Method0(double, getAcceleration, + Properties::NON_VIRTUAL, __double__getAcceleration, "", ""); I_Method1(void, setVelocity, IN, double, in_vel, + Properties::NON_VIRTUAL, __void__setVelocity__double, "", ""); I_Method0(double, getVelocity, + Properties::NON_VIRTUAL, __double__getVelocity, "", ""); diff --git a/src/osgWrappers/osgGA/GUIActionAdapter.cpp b/src/osgWrappers/osgGA/GUIActionAdapter.cpp index 4b94da971..dbb1ba2b3 100644 --- a/src/osgWrappers/osgGA/GUIActionAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIActionAdapter.cpp @@ -25,14 +25,17 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) "", ""); I_Method0(void, requestRedraw, + Properties::PURE_VIRTUAL, __void__requestRedraw, "requestRedraw() requests a single redraw. ", ""); I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::PURE_VIRTUAL, __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, + Properties::PURE_VIRTUAL, __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."); diff --git a/src/osgWrappers/osgGA/GUIEventAdapter.cpp b/src/osgWrappers/osgGA/GUIEventAdapter.cpp index 0bc398a42..912238530 100644 --- a/src/osgWrappers/osgGA/GUIEventAdapter.cpp +++ b/src/osgWrappers/osgGA/GUIEventAdapter.cpp @@ -208,180 +208,223 @@ BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::TabletPointerType) I_EnumLabel(osgGA::GUIEventAdapter::ERASER); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) I_BaseType(osg::Referenced); I_Constructor0(____GUIEventAdapter, "", ""); I_Constructor1(IN, const osgGA::GUIEventAdapter &, rhs, + Properties::NON_EXPLICIT, ____GUIEventAdapter__C5_GUIEventAdapter_R1, "", ""); I_Method1(void, setHandled, IN, bool, handled, + Properties::NON_VIRTUAL, __void__setHandled__bool, "Set whether this event has been handled by an event handler or not. ", ""); I_Method0(bool, getHandled, + Properties::NON_VIRTUAL, __bool__getHandled, "Get whether this event has been handled by an event handler or not. ", ""); I_Method1(void, setEventType, IN, osgGA::GUIEventAdapter::EventType, Type, + Properties::NON_VIRTUAL, __void__setEventType__EventType, "Get the Type of the GUI GUIEventAdapter. ", ""); I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + Properties::VIRTUAL, __EventType__getEventType, "Get the Type of the GUI GUIEventAdapter. ", ""); I_Method1(void, setTime, IN, double, time, + Properties::NON_VIRTUAL, __void__setTime__double, "set time in seconds of event. ", ""); I_Method0(double, getTime, + Properties::NON_VIRTUAL, __double__getTime, "get time in seconds of event. ", ""); I_Method0(double, time, + Properties::NON_VIRTUAL, __double__time, "deprecated function for getting time of event. ", ""); I_MethodWithDefaults5(void, setWindowRectangle, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, bool, updateMouseRange, true, + Properties::NON_VIRTUAL, __void__setWindowRectangle__int__int__int__int__bool, "set window rectangle. ", ""); I_Method0(int, getWindowX, + Properties::NON_VIRTUAL, __int__getWindowX, "get window x origin. ", ""); I_Method0(int, getWindowY, + Properties::NON_VIRTUAL, __int__getWindowY, "get window y origin. ", ""); I_Method0(int, getWindowWidth, + Properties::NON_VIRTUAL, __int__getWindowWidth, "get window width. ", ""); I_Method0(int, getWindowHeight, + Properties::NON_VIRTUAL, __int__getWindowHeight, "get window height. ", ""); I_Method1(void, setKey, IN, int, key, + Properties::NON_VIRTUAL, __void__setKey__int, "set key pressed. ", ""); I_Method0(int, getKey, + Properties::VIRTUAL, __int__getKey, "get key pressed, return -1 if inappropriate for this GUIEventAdapter. ", ""); I_Method1(void, setButton, IN, int, button, + Properties::NON_VIRTUAL, __void__setButton__int, "set button pressed/released. ", ""); I_Method0(int, getButton, + Properties::NON_VIRTUAL, __int__getButton, "button pressed/released, return -1 if inappropriate for this GUIEventAdapter. ", ""); I_Method4(void, setInputRange, IN, float, Xmin, IN, float, Ymin, IN, float, Xmax, IN, float, Ymax, + Properties::NON_VIRTUAL, __void__setInputRange__float__float__float__float, "set mouse input range. ", ""); I_Method0(float, getXmin, + Properties::NON_VIRTUAL, __float__getXmin, "get mouse minimum x. ", ""); I_Method0(float, getXmax, + Properties::NON_VIRTUAL, __float__getXmax, "get mouse maximum x. ", ""); I_Method0(float, getYmin, + Properties::NON_VIRTUAL, __float__getYmin, "get mmouse minimum y. ", ""); I_Method0(float, getYmax, + Properties::NON_VIRTUAL, __float__getYmax, "get mouse maYimum y. ", ""); I_Method1(void, setX, IN, float, x, + Properties::NON_VIRTUAL, __void__setX__float, "set current mouse x position. ", ""); I_Method0(float, getX, + Properties::NON_VIRTUAL, __float__getX, "get current mouse x position. ", ""); I_Method1(void, setY, IN, float, y, + Properties::NON_VIRTUAL, __void__setY__float, "set current mouse y position. ", ""); I_Method0(float, getY, + Properties::NON_VIRTUAL, __float__getY, "get current mouse y position. ", ""); I_Method1(void, setButtonMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setButtonMask__unsigned_int, "set current mouse button state ", ""); I_Method0(unsigned int, getButtonMask, + Properties::NON_VIRTUAL, __unsigned_int__getButtonMask, "get current mouse button state ", ""); I_Method1(void, setModKeyMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setModKeyMask__unsigned_int, "", ""); I_Method0(unsigned int, getModKeyMask, + Properties::NON_VIRTUAL, __unsigned_int__getModKeyMask, "", ""); I_Method0(float, getPenPressure, + Properties::NON_VIRTUAL, __float__getPenPressure, "get the pressure, from a tablet input device (range 0 - 1) ", ""); I_Method1(void, setPenPressure, IN, float, pressure, + Properties::NON_VIRTUAL, __void__setPenPressure__float, "sets the pressure from a tablet ", ""); I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + Properties::NON_VIRTUAL, __TabletPointerType__getTabletPointerType, "get the current used tablet pointer type ", ""); I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + Properties::NON_VIRTUAL, __void__setTabletPointerType__TabletPointerType, "set the current used tablet pointer type ", ""); I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + Properties::NON_VIRTUAL, __void__setScrollingMotion__ScrollingMotion, "", ""); I_Method0(float, getScrollingDeltaX, + Properties::NON_VIRTUAL, __float__getScrollingDeltaX, "get the scrolling x-delta ", ""); I_Method0(float, getScrollingDeltaY, + Properties::NON_VIRTUAL, __float__getScrollingDeltaY, "get the scrolling y-delta ", ""); I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, __void__setScrollingMotionDelta__float__float, "sets the scrolling delta to x,y and the type of scrolling to SCROLL_2D ", ""); I_Method0(osgGA::GUIEventAdapter::ScrollingMotion, getScrollingMotion, + Properties::NON_VIRTUAL, __ScrollingMotion__getScrollingMotion, "", ""); I_Method0(float, getXnormalized, + Properties::NON_VIRTUAL, __float__getXnormalized, "return the getX() value normalised to the range of -1 to 1. ", "-1 would be the left hand side of the window. 0.0 would be the middle of the window. +1 would be the right hand side of the window. "); I_Method0(float, getYnormalized, + Properties::NON_VIRTUAL, __float__getYnormalized, "return the getY() value normalised to the range of -1 to 1. ", "-1 would be the bottom of the window. 0.0 would be the middle of the window. +1 would be the top of the window. "); I_Method1(void, setMouseYOrientation, IN, osgGA::GUIEventAdapter::MouseYOrientation, myo, + Properties::NON_VIRTUAL, __void__setMouseYOrientation__MouseYOrientation, "", ""); I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + Properties::NON_VIRTUAL, __MouseYOrientation__getMouseYOrientation, "", ""); diff --git a/src/osgWrappers/osgGA/GUIEventHandler.cpp b/src/osgWrappers/osgGA/GUIEventHandler.cpp index 9066e02cd..9d528ef0e 100644 --- a/src/osgWrappers/osgGA/GUIEventHandler.cpp +++ b/src/osgWrappers/osgGA/GUIEventHandler.cpp @@ -28,7 +28,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIEventHandler) I_BaseType(osg::NodeCallback); I_BaseType(osg::Drawable::EventCallback); I_Constructor0(____GUIEventHandler, @@ -39,38 +39,47 @@ BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) "", ""); 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_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); @@ -81,6 +90,7 @@ BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor) "", ""); I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + Properties::NON_VIRTUAL, __void__visit__GUIEventHandler_R1, "", ""); diff --git a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp index 303876c1b..d4a89e7a3 100644 --- a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp @@ -32,132 +32,163 @@ TYPE_NAME_ALIAS(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipul TYPE_NAME_ALIAS(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >, osgGA::KeySwitchMatrixManipulator::KeyManipMap); -BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "Add a camera manipulator with an associated name, and a key to trigger the switch,. ", ""); I_Method1(void, addNumberedMatrixManipulator, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, __void__addNumberedMatrixManipulator__MatrixManipulator_P1, "Add a camera manipulator with an autogenerated keybinding which is '1' + previous number of camera's registerd. ", ""); I_Method0(unsigned int, getNumMatrixManipulators, + Properties::NON_VIRTUAL, __unsigned_int__getNumMatrixManipulators, "", ""); I_Method1(void, selectMatrixManipulator, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__selectMatrixManipulator__unsigned_int, "", ""); I_Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, __KeyManipMap_R1__getKeyManipMap, "Get the complete list of manipulators attached to this keyswitch manipulator. ", ""); I_Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap, + Properties::NON_VIRTUAL, __C5_KeyManipMap_R1__getKeyManipMap, "Get the const complete list of manipulators attached to this keyswitch manipulator. ", ""); I_Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, __MatrixManipulator_P1__getCurrentMatrixManipulator, "Get the current active manipulators. ", ""); I_Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator, + Properties::NON_VIRTUAL, __C5_MatrixManipulator_P1__getCurrentMatrixManipulator, "Get the const current active manipulators. ", ""); I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, __MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, "Get manipulator assigned to a specified index. ", ""); I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithIndex, IN, unsigned int, key, + Properties::NON_VIRTUAL, __C5_MatrixManipulator_P1__getMatrixManipulatorWithIndex__unsigned_int, "Get const manipulator assigned to a specified index. ", ""); I_Method1(osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, __MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, "Get manipulator assigned to a specified key. ", ""); I_Method1(const osgGA::MatrixManipulator *, getMatrixManipulatorWithKey, IN, unsigned int, key, + Properties::NON_VIRTUAL, __C5_MatrixManipulator_P1__getMatrixManipulatorWithKey__unsigned_int, "Get const manipulator assigned to a specified key. ", ""); I_Method1(void, setMinimumDistance, IN, float, minimumDistance, + Properties::VIRTUAL, __void__setMinimumDistance__float, "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", ""); I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + Properties::VIRTUAL, __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1, "set the coordinate frame which callback tells the manipulator which way is up, east and north. ", ""); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "Set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", "Used by SceneView for setting up setereo convergence. "); I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up setereo convergence. "); I_Method1(void, setNode, IN, osg::Node *, n, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator, automatically detaching any previously attached node. ", "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return const node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + Properties::VIRTUAL, __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, "Manually set the home position, and set the automatic compute of home position. ", ""); I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, __void__setAutoComputeHomePosition__bool, "Set whether the automatic compute of the home position is enabled. ", ""); I_Method0(void, computeHomePosition, + Properties::VIRTUAL, __void__computeHomePosition, "Compute the home position. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); @@ -204,26 +235,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >) "", ""); I_Constructor1(IN, osgGA::MatrixManipulator *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgGA::MatrixManipulator *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgGA::MatrixManipulator *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgGA::MatrixManipulator > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgGA/MatrixManipulator.cpp b/src/osgWrappers/osgGA/MatrixManipulator.cpp index 75875ef46..8bd0af3a1 100644 --- a/src/osgWrappers/osgGA/MatrixManipulator.cpp +++ b/src/osgWrappers/osgGA/MatrixManipulator.cpp @@ -30,122 +30,152 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) I_BaseType(osgGA::GUIEventHandler); 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, "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", ""); I_Method0(float, getMinimumDistance, + Properties::NON_VIRTUAL, __float__getMinimumDistance, "get the minimum distance (as ratio) the eye point can be zoomed in ", ""); I_Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb, + Properties::VIRTUAL, __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1, "set the coordinate frame which callback tells the manipulator which way is up, east and north. ", ""); I_Method0(osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback, + Properties::NON_VIRTUAL, __CoordinateFrameCallback_P1__getCoordinateFrameCallback, "get the coordinate frame callback which tells the manipulator which way is up, east and north. ", ""); I_Method0(const osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback, + Properties::NON_VIRTUAL, __C5_CoordinateFrameCallback_P1__getCoordinateFrameCallback, "get the coordinate frame callback which tells the manipulator which way is up, east and north. ", ""); I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::NON_VIRTUAL, __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, "get the coordinate frame. ", ""); I_Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, __osg_Vec3d__getSideVector__C5_osg_CoordinateFrame_R1, "", ""); I_Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, __osg_Vec3d__getFrontVector__C5_osg_CoordinateFrame_R1, "", ""); I_Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf, + Properties::NON_VIRTUAL, __osg_Vec3d__getUpVector__C5_osg_CoordinateFrame_R1, "", ""); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::PURE_VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::PURE_VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::PURE_VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::PURE_VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", "Used by SceneView for setting up setereo convergence. "); I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up setereo convergence. "); I_Method1(void, setIntersectTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setIntersectTraversalMask__unsigned_int, "Set the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ", "The intersection traversal mask is useful for controlling what parts of the scene graph should be used for intersection purposes. "); I_Method0(unsigned int, getIntersectTraversalMask, + Properties::NON_VIRTUAL, __unsigned_int__getIntersectTraversalMask, "Get the mask to use when set up intersection traversal such as used in manipulators that follow terrain or have collision detection. ", ""); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator, automatically detaching any previously attached node. ", "setNode(NULL) detaches previous nodes. May be ignored by manipulators which do not require a reference model."); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return const node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false, + Properties::VIRTUAL, __void__setHomePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__bool, "Manually set the home position, and set the automatic compute of home position. ", ""); I_Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up, + Properties::VIRTUAL, __void__getHomePosition__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, "Get the mnaully set home position. ", ""); I_Method1(void, setAutoComputeHomePosition, IN, bool, flag, + Properties::VIRTUAL, __void__setAutoComputeHomePosition__bool, "Set whether the automatic compute of the home position is enabled. ", ""); I_Method0(bool, getAutoComputeHomePosition, + Properties::NON_VIRTUAL, __bool__getAutoComputeHomePosition, "Get whether the automatic compute of the home position is enabled. ", ""); I_Method0(void, computeHomePosition, + Properties::VIRTUAL, __void__computeHomePosition, "Compute the home position. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate."); I_Method1(void, home, IN, double, x, + Properties::VIRTUAL, __void__home__double, "Move the camera to the default position. ", "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); @@ -190,6 +220,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallbac "", ""); I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::PURE_VIRTUAL, __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, "", ""); diff --git a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp index 8a366fcb5..8d4ee8e70 100644 --- a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp +++ b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp @@ -39,108 +39,133 @@ BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) I_EnumLabel(osgGA::NodeTrackerManipulator::ELEVATION_AZIM); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "", ""); I_Method1(void, setTrackNodePath, IN, const osgGA::NodeTrackerManipulator::ObserveredNodePath &, nodePath, + Properties::NON_VIRTUAL, __void__setTrackNodePath__C5_ObserveredNodePath_R1, "", ""); I_Method0(osgGA::NodeTrackerManipulator::ObserveredNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, __ObserveredNodePath_R1__getTrackNodePath, "", ""); I_Method1(void, setTrackNode, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setTrackNode__osg_Node_P1, "", ""); I_Method0(osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getTrackNode, "", ""); I_Method0(const osg::Node *, getTrackNode, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getTrackNode, "", ""); I_Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode, + Properties::NON_VIRTUAL, __void__setTrackerMode__TrackerMode, "", ""); I_Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerMode, + Properties::NON_VIRTUAL, __TrackerMode__getTrackerMode, "", ""); I_Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, __void__setRotationMode__RotationMode, "", ""); I_Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, __RotationMode__getRotationMode, "", ""); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", "Used by SceneView for setting up setereo convergence. "); I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up setereo convergence. "); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator. ", "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method0(void, computeHomePosition, + Properties::VIRTUAL, __void__computeHomePosition, "Compute the home position. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); diff --git a/src/osgWrappers/osgGA/StateSetManipulator.cpp b/src/osgWrappers/osgGA/StateSetManipulator.cpp index e2a97701b..320019b91 100644 --- a/src/osgWrappers/osgGA/StateSetManipulator.cpp +++ b/src/osgWrappers/osgGA/StateSetManipulator.cpp @@ -25,77 +25,95 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::StateSetManipulator) I_BaseType(osgGA::GUIEventHandler); I_ConstructorWithDefaults1(IN, osg::StateSet *, stateset, 0, + Properties::NON_EXPLICIT, ____StateSetManipulator__osg_StateSet_P1, "", ""); 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, "attach a STATESTATE to the manipulator to be used for specifying view. ", ""); I_Method0(osg::StateSet *, getStateSet, + Properties::VIRTUAL, __osg_StateSet_P1__getStateSet, "get the attached a STATESTATE. ", ""); I_Method0(const osg::StateSet *, getStateSet, + Properties::VIRTUAL, __C5_osg_StateSet_P1__getStateSet, "get the attached a STATESTATE. ", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); I_Method1(void, setMaximumNumOfTextureUnits, IN, unsigned int, i, + Properties::NON_VIRTUAL, __void__setMaximumNumOfTextureUnits__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumNumOfTextureUnits, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumNumOfTextureUnits, "", ""); I_Method1(void, setBackfaceEnabled, IN, bool, newbackface, + Properties::NON_VIRTUAL, __void__setBackfaceEnabled__bool, "", ""); I_Method0(bool, getBackfaceEnabled, + Properties::NON_VIRTUAL, __bool__getBackfaceEnabled, "", ""); I_Method1(void, setLightingEnabled, IN, bool, newlighting, + Properties::NON_VIRTUAL, __void__setLightingEnabled__bool, "", ""); I_Method0(bool, getLightingEnabled, + Properties::NON_VIRTUAL, __bool__getLightingEnabled, "", ""); I_Method1(void, setTextureEnabled, IN, bool, newtexture, + Properties::NON_VIRTUAL, __void__setTextureEnabled__bool, "", ""); I_Method0(bool, getTextureEnabled, + Properties::NON_VIRTUAL, __bool__getTextureEnabled, "", ""); I_Method1(void, setPolygonMode, IN, osg::PolygonMode::Mode, newpolygonmode, + Properties::NON_VIRTUAL, __void__setPolygonMode__osg_PolygonMode_Mode, "", ""); I_Method0(osg::PolygonMode::Mode, getPolygonMode, + Properties::NON_VIRTUAL, __osg_PolygonMode_Mode__getPolygonMode, "", ""); I_Method0(void, cyclePolygonMode, + Properties::NON_VIRTUAL, __void__cyclePolygonMode, "", ""); diff --git a/src/osgWrappers/osgGA/TerrainManipulator.cpp b/src/osgWrappers/osgGA/TerrainManipulator.cpp index 26694fdf5..9823fc46b 100644 --- a/src/osgWrappers/osgGA/TerrainManipulator.cpp +++ b/src/osgWrappers/osgGA/TerrainManipulator.cpp @@ -31,72 +31,88 @@ BEGIN_ENUM_REFLECTOR(osgGA::TerrainManipulator::RotationMode) I_EnumLabel(osgGA::TerrainManipulator::ELEVATION_AZIM); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::TerrainManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "", ""); I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, __RotationMode__getRotationMode, "", ""); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", "Used by SceneView for setting up setereo convergence. "); I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up setereo convergence. "); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator. ", "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); diff --git a/src/osgWrappers/osgGA/TrackballManipulator.cpp b/src/osgWrappers/osgGA/TrackballManipulator.cpp index fd33f0404..ecaddcd7d 100644 --- a/src/osgWrappers/osgGA/TrackballManipulator.cpp +++ b/src/osgWrappers/osgGA/TrackballManipulator.cpp @@ -28,108 +28,133 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::TrackballManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::TrackballManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____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, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "set the position of the matrix manipulator using a 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "get the position of the manipulator as 4x4 Matrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", ""); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", "Used by SceneView for setting up setereo convergence. "); I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Used by SceneView for setting up setereo convergence. "); I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Attach a node to the manipulator. ", "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Return node if attached. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Move the camera to the default position. ", "May be ignored by manipulators if home functionality is not appropriate. "); I_Method1(void, home, IN, double, x, + Properties::VIRTUAL, __void__home__double, "Move the camera to the default position. ", "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); I_Method1(void, setMinimumZoomScale, IN, double, minimumZoomScale, + Properties::NON_VIRTUAL, __void__setMinimumZoomScale__double, "set the minimum distance (as ratio) the eye point can be zoomed in towards the center before the center is pushed forward. ", ""); I_Method0(double, getMinimumZoomScale, + Properties::NON_VIRTUAL, __double__getMinimumZoomScale, "get the minimum distance (as ratio) the eye point can be zoomed in ", ""); I_Method1(void, setCenter, IN, const osg::Vec3d &, center, + Properties::NON_VIRTUAL, __void__setCenter__C5_osg_Vec3d_R1, "Set the center of the trackball. ", ""); I_Method0(const osg::Vec3d &, getCenter, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getCenter, "Get the center of the trackball. ", ""); I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, __void__setRotation__C5_osg_Quat_R1, "Set the rotation of the trackball. ", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_osg_Quat_R1__getRotation, "Get the rotation of the trackball. ", ""); I_Method1(void, setDistance, IN, double, distance, + Properties::NON_VIRTUAL, __void__setDistance__double, "Set the distance of the trackball. ", ""); I_Method0(double, getDistance, + Properties::NON_VIRTUAL, __double__getDistance, "Get the distance of the trackball. ", ""); I_Method1(void, setTrackballSize, IN, float, size, + Properties::NON_VIRTUAL, __void__setTrackballSize__float, "Set the size of the trackball. ", ""); I_Method0(float, getTrackballSize, + Properties::NON_VIRTUAL, __float__getTrackballSize, "Get the size of the trackball. ", ""); diff --git a/src/osgWrappers/osgGA/UFOManipulator.cpp b/src/osgWrappers/osgGA/UFOManipulator.cpp index a9efb03ea..4b33c9f86 100644 --- a/src/osgWrappers/osgGA/UFOManipulator.cpp +++ b/src/osgWrappers/osgGA/UFOManipulator.cpp @@ -26,108 +26,133 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::UFOManipulator) I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____UFOManipulator, "Default constructor. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return className ", "returns constant \"UFO\" "); I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setByMatrix__C5_osg_Matrixd_R1, "Set the current position with a matrix. ", " param matrix A viewpoint matrix. "); I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, invmat, + Properties::VIRTUAL, __void__setByInverseMatrix__C5_osg_Matrixd_R1, "Set the current position with the invers matrix. ", " param invmat The inverse of a viewpoint matrix "); I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, __osg_Matrixd__getMatrix, "Get the current viewmatrix. ", ""); I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, __osg_Matrixd__getInverseMatrix, "Get the current inverse view matrix. ", ""); I_Method1(void, setNode, IN, osg::Node *, node, + Properties::VIRTUAL, __void__setNode__osg_Node_P1, "Set the subgraph this manipulator is driving the eye through. ", " param node root of subgraph "); I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, __C5_osg_Node_P1__getNode, "Get the root node of the subgraph this manipulator is driving the eye through (const). ", ""); I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, __osg_Node_P1__getNode, "Get the root node of the subgraph this manipulator is driving the eye through. ", ""); I_Method0(void, computeHomePosition, + Properties::VIRTUAL, __void__computeHomePosition, "Computes the home position based on the extents and scale of the scene graph rooted at node. ", ""); I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, __void__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Sets the viewpoint matrix to the home position. ", ""); I_Method1(void, home, IN, double, x, + Properties::VIRTUAL, __void__home__double, "Move the camera to the default position. ", "This version does not require GUIEventAdapter and GUIActionAdapter so may be called from somewhere other than a handle() method in GUIEventHandler. Application must be aware of implications."); I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, "Start/restart the manipulator. ", "FIXME: what does this actually mean? Provide examples."); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handles incoming osgGA events. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Reports Usage parameters to the application. ", ""); I_Method3(void, getCurrentPositionAsLookAt, IN, osg::Vec3 &, eye, IN, osg::Vec3 &, center, IN, osg::Vec3 &, up, + Properties::NON_VIRTUAL, __void__getCurrentPositionAsLookAt__osg_Vec3_R1__osg_Vec3_R1__osg_Vec3_R1, "Report the current position as LookAt vectors. ", ""); I_Method1(void, setMinHeight, IN, double, in_min_height, + Properties::NON_VIRTUAL, __void__setMinHeight__double, "", ""); I_Method0(double, getMinHeight, + Properties::NON_VIRTUAL, __double__getMinHeight, "", ""); I_Method1(void, setMinDistance, IN, double, in_min_dist, + Properties::NON_VIRTUAL, __void__setMinDistance__double, "", ""); I_Method0(double, getMinDistance, + Properties::NON_VIRTUAL, __double__getMinDistance, "", ""); I_Method1(void, setForwardSpeed, IN, double, in_fs, + Properties::NON_VIRTUAL, __void__setForwardSpeed__double, "", ""); I_Method0(double, getForwardSpeed, + Properties::NON_VIRTUAL, __double__getForwardSpeed, "", ""); I_Method1(void, setSideSpeed, IN, double, in_ss, + Properties::NON_VIRTUAL, __void__setSideSpeed__double, "", ""); I_Method0(double, getSideSpeed, + Properties::NON_VIRTUAL, __double__getSideSpeed, "", ""); I_Method1(void, setRotationSpeed, IN, double, in_rot_speed, + Properties::NON_VIRTUAL, __void__setRotationSpeed__double, "", ""); I_Method0(double, getRotationSpeed, + Properties::NON_VIRTUAL, __double__getRotationSpeed, "", ""); diff --git a/src/osgWrappers/osgManipulator/AntiSquish.cpp b/src/osgWrappers/osgManipulator/AntiSquish.cpp index 6f7b4b00e..3c14dadf0 100644 --- a/src/osgWrappers/osgManipulator/AntiSquish.cpp +++ b/src/osgWrappers/osgManipulator/AntiSquish.cpp @@ -24,12 +24,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::AntiSquish) I_BaseType(osg::MatrixTransform); I_Constructor0(____AntiSquish, "", ""); I_Constructor1(IN, const osg::Vec3 &, pivot, + Properties::NON_EXPLICIT, ____AntiSquish__C5_osg_Vec3_R1, "", ""); @@ -42,34 +43,42 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, setPivot, IN, const osg::Vec3 &, pvt, + Properties::NON_VIRTUAL, __void__setPivot__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPivot, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPivot, "", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "", ""); I_Method2(osg::Matrix, computeUnSquishedMatrix, IN, const osg::Matrix &, x, IN, bool &, flag, + Properties::NON_VIRTUAL, __osg_Matrix__computeUnSquishedMatrix__C5_osg_Matrix_R1__bool_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/Command.cpp b/src/osgWrappers/osgManipulator/Command.cpp index f73c9c8d3..893d8dbb2 100644 --- a/src/osgWrappers/osgManipulator/Command.cpp +++ b/src/osgWrappers/osgManipulator/Command.cpp @@ -40,46 +40,57 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) "", ""); I_Method0(bool, execute, + Properties::PURE_VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::PURE_VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::PURE_VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, addSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, __void__addSelection__Selection_P1, "Add Selection (receiver) to the command. ", "The command will be executed on all the selections."); I_Method1(void, removeSelection, IN, osgManipulator::Selection *, x, + Properties::NON_VIRTUAL, __void__removeSelection__Selection_P1, "Remove Selection (receiver) from the command. ", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::PURE_VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); I_Method2(void, setLocalToWorldAndWorldToLocal, IN, const osg::Matrix &, localToWorld, IN, const osg::Matrix &, worldToLocal, + Properties::NON_VIRTUAL, __void__setLocalToWorldAndWorldToLocal__C5_osg_Matrix_R1__C5_osg_Matrix_R1, "Sets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", ""); I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getLocalToWorld, "Gets the matrix for transforming the command's local coordinate system to the world/object coordinate system. ", ""); I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getWorldToLocal, "Gets the matrix for transforming the command's world/object coordinate system to the command's local coordinate system. ", ""); I_Method1(void, setStage, IN, const osgManipulator::MotionCommand::Stage, s, + Properties::NON_VIRTUAL, __void__setStage__C5_Stage, "", ""); I_Method0(osgManipulator::MotionCommand::Stage, getStage, + Properties::NON_VIRTUAL, __Stage__getStage, "", ""); @@ -97,32 +108,38 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____Rotate3DCommand, "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, setRotation, IN, const osg::Quat &, rotation, + Properties::NON_VIRTUAL, __void__setRotation__C5_osg_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_osg_Quat_R1__getRotation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); @@ -134,56 +151,68 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand) __void__setRotation__C5_osg_Quat_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____Scale1DCommand, "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, setScale, IN, float, s, + Properties::NON_VIRTUAL, __void__setScale__float, "", ""); I_Method0(float, getScale, + Properties::NON_VIRTUAL, __float__getScale, "", ""); I_Method1(void, setScaleCenter, IN, float, center, + Properties::NON_VIRTUAL, __void__setScaleCenter__float, "", ""); I_Method0(float, getScaleCenter, + Properties::NON_VIRTUAL, __float__getScaleCenter, "", ""); I_Method1(void, setReferencePoint, IN, float, rp, + Properties::NON_VIRTUAL, __void__setReferencePoint__float, "ReferencePoint is used only for snapping. ", ""); I_Method0(float, getReferencePoint, + Properties::NON_VIRTUAL, __float__getReferencePoint, "", ""); I_Method1(void, setMinScale, IN, float, min, + Properties::NON_VIRTUAL, __void__setMinScale__float, "", ""); I_Method0(float, getMinScale, + Properties::NON_VIRTUAL, __float__getMinScale, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); @@ -204,56 +233,68 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand) __void__setScaleCenter__float); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____Scale2DCommand, "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, setScale, IN, const osg::Vec2 &, s, + Properties::NON_VIRTUAL, __void__setScale__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getScale, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getScale, "", ""); I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + Properties::NON_VIRTUAL, __void__setScaleCenter__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getScaleCenter, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getScaleCenter, "", ""); I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + Properties::NON_VIRTUAL, __void__setReferencePoint__C5_osg_Vec2_R1, "ReferencePoint is used only for snapping. ", ""); I_Method0(const osg::Vec2 &, getReferencePoint, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getReferencePoint, "", ""); I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, + Properties::NON_VIRTUAL, __void__setMinScale__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getMinScale, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getMinScale, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); @@ -274,40 +315,48 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__setScaleCenter__C5_osg_Vec2_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____ScaleUniformCommand, "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, setScale, IN, float, s, + Properties::NON_VIRTUAL, __void__setScale__float, "", ""); I_Method0(float, getScale, + Properties::NON_VIRTUAL, __float__getScale, "", ""); I_Method1(void, setScaleCenter, IN, const osg::Vec3 &, center, + Properties::NON_VIRTUAL, __void__setScaleCenter__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getScaleCenter, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getScaleCenter, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); @@ -322,7 +371,7 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand) __void__setScaleCenter__C5_osg_Vec3_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____TranslateInLineCommand, "", @@ -332,38 +381,47 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLineStart, "", ""); I_Method0(const osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLineEnd, "", ""); I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, __void__setTranslation__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); @@ -381,52 +439,63 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) __void__setTranslation__C5_osg_Vec3_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) I_BaseType(osgManipulator::MotionCommand); I_Constructor0(____TranslateInPlaneCommand, "", ""); I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, ____TranslateInPlaneCommand__C5_osg_Plane_R1, "", ""); I_Method0(bool, execute, + Properties::VIRTUAL, __bool__execute, "Execute the command. ", ""); I_Method0(bool, unexecute, + Properties::VIRTUAL, __bool__unexecute, "Undo the command. ", "The inverse of this command is executed. "); I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, __void__applyConstraint__C5_Constraint_P1, "Apply a constraint to the command. ", ""); I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, __void__setPlane__C5_osg_Plane_R1, "", ""); I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, __C5_osg_Plane_R1__getPlane, "", ""); I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, __void__setTranslation__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, + Properties::NON_VIRTUAL, __void__setReferencePoint__C5_osg_Vec3_R1, "ReferencePoint is used only for snapping. ", ""); I_Method0(const osg::Vec3 &, getReferencePoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getReferencePoint, "", ""); I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, __osg_Matrix__getMotionMatrix, "Gets the matrix for transforming the Selection. ", "This matrix is in the command's coordinate systems."); diff --git a/src/osgWrappers/osgManipulator/CommandManager.cpp b/src/osgWrappers/osgManipulator/CommandManager.cpp index c9aa17bca..290b771c6 100644 --- a/src/osgWrappers/osgManipulator/CommandManager.cpp +++ b/src/osgWrappers/osgManipulator/CommandManager.cpp @@ -24,28 +24,33 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::CommandManager) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::CommandManager) I_BaseType(osg::Referenced); I_Constructor0(____CommandManager, "", ""); I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection, + Properties::VIRTUAL, __bool__connect__Dragger_R1__Selection_R1, "Connect a dragger to a selection. ", "The selection will begin listening to commands generated by the dragger. This can be called multiple times to connect many selections to a dragger."); I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constrain, + Properties::VIRTUAL, __bool__connect__Dragger_R1__Constraint_R1, "", ""); I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger, + Properties::VIRTUAL, __bool__disconnect__Dragger_R1, "Disconnect the selections from a dragger. ", ""); I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command, + Properties::VIRTUAL, __void__dispatch__MotionCommand_R1, "Dispatches a command. ", "Usually called from a dragger. "); I_Method2(void, addSelectionsToCommand, IN, osgManipulator::MotionCommand &, command, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, __void__addSelectionsToCommand__MotionCommand_R1__Dragger_R1, "Add all selections connected to the dragger to the command. ", ""); diff --git a/src/osgWrappers/osgManipulator/Constraint.cpp b/src/osgWrappers/osgManipulator/Constraint.cpp index 3e26bd058..c3ae30b86 100644 --- a/src/osgWrappers/osgManipulator/Constraint.cpp +++ b/src/osgWrappers/osgManipulator/Constraint.cpp @@ -23,65 +23,78 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::Constraint) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Constraint) I_BaseType(osg::Referenced); I_Method1(bool, constrain, IN, osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, __bool__constrain__MotionCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, __bool__constrain__TranslateInLineCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, __bool__constrain__TranslateInPlaneCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, __bool__constrain__Scale1DCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, __bool__constrain__Scale2DCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, __bool__constrain__ScaleUniformCommand_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::GridConstraint) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::GridConstraint) I_BaseType(osgManipulator::Constraint); I_Constructor3(IN, osg::Node &, refNode, IN, const osg::Vec3d &, origin, IN, const osg::Vec3d &, spacing, ____GridConstraint__osg_Node_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, "", ""); I_Method1(void, setOrigin, IN, const osg::Vec3d, origin, + Properties::NON_VIRTUAL, __void__setOrigin__C5_osg_Vec3d, "", ""); I_Method1(void, setSpacing, IN, const osg::Vec3d, spacing, + Properties::NON_VIRTUAL, __void__setSpacing__C5_osg_Vec3d, "", ""); I_Method1(bool, constrain, IN, osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, __bool__constrain__TranslateInLineCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, __bool__constrain__TranslateInPlaneCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, __bool__constrain__Scale1DCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, __bool__constrain__Scale2DCommand_R1, "", ""); I_Method1(bool, constrain, IN, osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, __bool__constrain__ScaleUniformCommand_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/Dragger.cpp b/src/osgWrappers/osgManipulator/Dragger.cpp index 7001296b1..4cc1e1379 100644 --- a/src/osgWrappers/osgManipulator/Dragger.cpp +++ b/src/osgWrappers/osgManipulator/Dragger.cpp @@ -29,53 +29,65 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Dragger > >, osgManipulator::CompositeDragger::DraggerList); -BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) I_BaseType(osgManipulator::Dragger); I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, __C5_CompositeDragger_P1__getComposite, "Returns 0 if this Dragger is not a CompositeDragger. ", ""); I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, __CompositeDragger_P1__getComposite, "Returns 0 if this Dragger is not a CompositeDragger. ", ""); I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, __void__setCommandManager__CommandManager_P1, "Set/Get the CommandManager. ", "Draggers use CommandManager to dispatch commands. "); I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, __void__setParentDragger__Dragger_P1, "Set/Get parent dragger. ", "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "", ""); I_Method1(bool, addDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, __bool__addDragger__Dragger_P1, "", ""); I_Method1(bool, removeDragger, IN, osgManipulator::Dragger *, dragger, + Properties::VIRTUAL, __bool__removeDragger__Dragger_P1, "", ""); I_Method0(unsigned int, getNumDraggers, + Properties::NON_VIRTUAL, __unsigned_int__getNumDraggers, "", ""); I_Method1(osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, __Dragger_P1__getDragger__unsigned_int, "", ""); I_Method1(const osgManipulator::Dragger *, getDragger, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Dragger_P1__getDragger__unsigned_int, "", ""); I_Method1(bool, containsDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, __bool__containsDragger__C5_Dragger_P1, "", ""); I_Method1(osgManipulator::CompositeDragger::DraggerList::iterator, findDragger, IN, const osgManipulator::Dragger *, dragger, + Properties::NON_VIRTUAL, __DraggerList_iterator__findDragger__C5_Dragger_P1, "", ""); @@ -97,41 +109,50 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) __void__setParentDragger__Dragger_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Dragger) I_BaseType(osgManipulator::Selection); I_Method1(void, setCommandManager, IN, osgManipulator::CommandManager *, cm, + Properties::VIRTUAL, __void__setCommandManager__CommandManager_P1, "Set/Get the CommandManager. ", "Draggers use CommandManager to dispatch commands. "); I_Method0(osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, __CommandManager_P1__getCommandManager, "", ""); I_Method0(const osgManipulator::CommandManager *, getCommandManager, + Properties::NON_VIRTUAL, __C5_CommandManager_P1__getCommandManager, "", ""); I_Method1(void, setParentDragger, IN, osgManipulator::Dragger *, parent, + Properties::VIRTUAL, __void__setParentDragger__Dragger_P1, "Set/Get parent dragger. ", "For simple draggers parent points to itself. For composite draggers parent points to the parent dragger that uses this dragger."); I_Method0(osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, __Dragger_P1__getParentDragger, "", ""); I_Method0(const osgManipulator::Dragger *, getParentDragger, + Properties::NON_VIRTUAL, __C5_Dragger_P1__getParentDragger, "", ""); I_Method0(const osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, __C5_CompositeDragger_P1__getComposite, "Returns 0 if this Dragger is not a CompositeDragger. ", ""); I_Method0(osgManipulator::CompositeDragger *, getComposite, + Properties::VIRTUAL, __CompositeDragger_P1__getComposite, "Returns 0 if this Dragger is not a CompositeDragger. ", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "", ""); @@ -151,38 +172,47 @@ BEGIN_VALUE_REFLECTOR(osgManipulator::Dragger::PointerInfo) "", ""); I_Constructor1(IN, const osgManipulator::Dragger::PointerInfo &, rhs, + Properties::NON_EXPLICIT, ____PointerInfo__C5_PointerInfo_R1, "", ""); I_Method0(bool, completed, + Properties::NON_VIRTUAL, __bool__completed, "", ""); I_Method0(void, next, + Properties::NON_VIRTUAL, __void__next, "", ""); I_Method0(osg::Vec2, pointToProject, + Properties::NON_VIRTUAL, __osg_Vec2__pointToProject, "", ""); I_Method0(osg::Vec3, getLocalIntersectPoint, + Properties::NON_VIRTUAL, __osg_Vec3__getLocalIntersectPoint, "", ""); I_Method3(bool, projectWindowXYIntoObject, IN, const osg::Vec2 &, windowCoord, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, __bool__projectWindowXYIntoObject__C5_osg_Vec2_R1__osg_Vec3_R1__osg_Vec3_R1, "", ""); I_Method2(bool, projectWindowXYIntoObject, IN, osg::Vec3 &, nearPoint, IN, osg::Vec3 &, farPoint, + Properties::NON_VIRTUAL, __bool__projectWindowXYIntoObject__osg_Vec3_R1__osg_Vec3_R1, "", ""); I_Method0(const osg::Matrix &, getViewMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getViewMatrix, "", ""); I_Method1(bool, contains, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, __bool__contains__C5_osg_Node_P1, "", ""); @@ -204,26 +234,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Dragger >) "", ""); I_Constructor1(IN, osgManipulator::Dragger *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgManipulator::Dragger > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgManipulator::Dragger *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgManipulator::Dragger *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::Dragger > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/Projector.cpp b/src/osgWrappers/osgManipulator/Projector.cpp index f8e35d0bf..2aa01d30b 100644 --- a/src/osgWrappers/osgManipulator/Projector.cpp +++ b/src/osgWrappers/osgManipulator/Projector.cpp @@ -26,55 +26,65 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector) I_BaseType(osgManipulator::CylinderProjector); I_Constructor0(____CylinderPlaneProjector, "", ""); I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, ____CylinderPlaneProjector__osg_Cylinder_P1, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", "Returns true on successful projection."); I_Method0(bool, isProjectionOnCylinder, + Properties::NON_VIRTUAL, __bool__isProjectionOnCylinder, "Returns true if the previous projection was on the cylinder and false if the projection was on the plane. ", ""); I_Method4(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3 &, p2, IN, bool, p2OnCyl, + Properties::NON_VIRTUAL, __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) I_BaseType(osgManipulator::Projector); I_Constructor0(____CylinderProjector, "", ""); I_Constructor1(IN, osg::Cylinder *, cylinder, + Properties::NON_EXPLICIT, ____CylinderProjector__osg_Cylinder_P1, "", ""); I_Method1(void, setCylinder, IN, osg::Cylinder *, cylinder, + Properties::NON_VIRTUAL, __void__setCylinder__osg_Cylinder_P1, "", ""); I_Method0(const osg::Cylinder *, getCylinder, + Properties::NON_VIRTUAL, __C5_osg_Cylinder_P1__getCylinder, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", "Returns true on successful projection."); I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, "Returns true is the point is in front of the cylinder given the eye direction. ", ""); I_Method1(void, setFront, IN, bool, front, + Properties::NON_VIRTUAL, __void__setFront__bool, "", ""); @@ -86,7 +96,7 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) __void__setFront__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::LineProjector) I_BaseType(osgManipulator::Projector); I_Constructor0(____LineProjector, "", @@ -96,26 +106,32 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) "", ""); I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + Properties::NON_VIRTUAL, __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLineStart, "", ""); I_Method0(osg::Vec3 &, getLineStart, + Properties::NON_VIRTUAL, __osg_Vec3_R1__getLineStart, "", ""); I_Method0(const osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLineEnd, "", ""); I_Method0(osg::Vec3 &, getLineEnd, + Properties::NON_VIRTUAL, __osg_Vec3_R1__getLineEnd, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ", "Returns true on successful projection."); @@ -127,24 +143,28 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::PlaneProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::PlaneProjector) I_BaseType(osgManipulator::Projector); I_Constructor0(____PlaneProjector, "", ""); I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, ____PlaneProjector__C5_osg_Plane_R1, "", ""); I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, __void__setPlane__C5_osg_Plane_R1, "", ""); I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, __C5_osg_Plane_R1__getPlane, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", "Returns true on successful projection."); @@ -159,18 +179,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::PURE_VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object/world coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto some shape or geometry (implemented in derived classes). ", "SceneView in used for i projecting window coordinates into object coordinates and vice versa. Returns true on successful projection."); I_Method1(void, setLocalToWorld, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, __void__setLocalToWorld__C5_osg_Matrix_R1, "Sets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", ""); I_Method0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getLocalToWorld, "Gets the matrix for transforming the projector's local coordinate system to the world/object coordinate system. ", ""); I_Method0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getWorldToLocal, "Gets the matrix for transforming the world/object coordinate system to the command's local coordinate system. ", ""); @@ -182,55 +206,65 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::SpherePlaneProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::SpherePlaneProjector) I_BaseType(osgManipulator::SphereProjector); I_Constructor0(____SpherePlaneProjector, "", ""); I_Constructor1(IN, osg::Sphere *, sphere, + Properties::NON_EXPLICIT, ____SpherePlaneProjector__osg_Sphere_P1, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ", "Returns true on successful projection."); I_Method0(bool, isProjectionOnSphere, + Properties::NON_VIRTUAL, __bool__isProjectionOnSphere, "Returns true if the previous projection was on the sphere and false if the projection was on the plane. ", ""); I_MethodWithDefaults5(osg::Quat, getRotation, IN, const osg::Vec3 &, p1, , IN, bool, p1OnSphere, , IN, const osg::Vec3 &, p2, , IN, bool, p2OnSphere, , IN, float, radialFactor, 0.0f, + Properties::NON_VIRTUAL, __osg_Quat__getRotation__C5_osg_Vec3_R1__bool__C5_osg_Vec3_R1__bool__float, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::SphereProjector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::SphereProjector) I_BaseType(osgManipulator::Projector); I_Constructor0(____SphereProjector, "", ""); I_Constructor1(IN, osg::Sphere *, sphere, + Properties::NON_EXPLICIT, ____SphereProjector__osg_Sphere_P1, "", ""); I_Method1(void, setSphere, IN, osg::Sphere *, sphere, + Properties::NON_VIRTUAL, __void__setSphere__osg_Sphere_P1, "", ""); I_Method0(const osg::Sphere *, getSphere, + Properties::NON_VIRTUAL, __C5_osg_Sphere_P1__getSphere, "", ""); I_Method2(bool, project, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, osg::Vec3 &, projectedPoint, + Properties::VIRTUAL, __bool__project__C5_Dragger_PointerInfo_R1__osg_Vec3_R1, "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given sphere. ", "Returns true on successful projection."); I_Method2(bool, isPointInFront, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, __bool__isPointInFront__C5_Dragger_PointerInfo_R1__C5_osg_Matrix_R1, "Returns true is the point is in front of the cylinder given the eye direction. ", ""); I_Method1(void, setFront, IN, bool, front, + Properties::NON_VIRTUAL, __void__setFront__bool, "", ""); diff --git a/src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp b/src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp index a312ed3df..b891ed4fc 100644 --- a/src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp +++ b/src/osgWrappers/osgManipulator/RotateCylinderDragger.cpp @@ -24,32 +24,38 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateCylinderDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::RotateCylinderDragger) I_BaseType(osgManipulator::Dragger); I_Constructor0(____RotateCylinderDragger, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); diff --git a/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp b/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp index a917c454e..37d238db7 100644 --- a/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp +++ b/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp @@ -24,32 +24,38 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger) I_BaseType(osgManipulator::Dragger); I_Constructor0(____RotateSphereDragger, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); diff --git a/src/osgWrappers/osgManipulator/Scale1DDragger.cpp b/src/osgWrappers/osgManipulator/Scale1DDragger.cpp index 9b8f5583a..9ec28322c 100644 --- a/src/osgWrappers/osgManipulator/Scale1DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Scale1DDragger.cpp @@ -30,73 +30,90 @@ BEGIN_ENUM_REFLECTOR(osgManipulator::Scale1DDragger::ScaleMode) I_EnumLabel(osgManipulator::Scale1DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Scale1DDragger) I_BaseType(osgManipulator::Dragger); I_ConstructorWithDefaults1(IN, osgManipulator::Scale1DDragger::ScaleMode, scaleMode, osgManipulator::Scale1DDragger::SCALE_WITH_ORIGIN_AS_PIVOT, + Properties::NON_EXPLICIT, ____Scale1DDragger__ScaleMode, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setMinScale, IN, float, min, + Properties::NON_VIRTUAL, __void__setMinScale__float, "Set/Get min scale for dragger. ", ""); I_Method0(float, getMinScale, + Properties::NON_VIRTUAL, __float__getMinScale, "", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); I_Method1(void, setLeftHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setLeftHandleNode__osg_Node_R1, "Set/Get left and right handle nodes for dragger. ", ""); I_Method1(void, setRightHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setRightHandleNode__osg_Node_R1, "", ""); I_Method0(osg::Node *, getLeftHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getLeftHandleNode, "", ""); I_Method0(osg::Node *, getRightHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getRightHandleNode, "", ""); I_Method1(void, setLeftHandlePosition, IN, float, pos, + Properties::NON_VIRTUAL, __void__setLeftHandlePosition__float, "Set left/right handle position. ", ""); I_Method0(float, getLeftHandlePosition, + Properties::NON_VIRTUAL, __float__getLeftHandlePosition, "", ""); I_Method1(void, setRightHandlePosition, IN, float, pos, + Properties::NON_VIRTUAL, __void__setRightHandlePosition__float, "", ""); I_Method0(float, getRightHandlePosition, + Properties::NON_VIRTUAL, __float__getRightHandlePosition, "", ""); diff --git a/src/osgWrappers/osgManipulator/Scale2DDragger.cpp b/src/osgWrappers/osgManipulator/Scale2DDragger.cpp index 0f0c4dde7..bdd540775 100644 --- a/src/osgWrappers/osgManipulator/Scale2DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Scale2DDragger.cpp @@ -31,105 +31,130 @@ BEGIN_ENUM_REFLECTOR(osgManipulator::Scale2DDragger::ScaleMode) I_EnumLabel(osgManipulator::Scale2DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Scale2DDragger) I_BaseType(osgManipulator::Dragger); I_ConstructorWithDefaults1(IN, osgManipulator::Scale2DDragger::ScaleMode, scaleMode, osgManipulator::Scale2DDragger::SCALE_WITH_ORIGIN_AS_PIVOT, + Properties::NON_EXPLICIT, ____Scale2DDragger__ScaleMode, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, + Properties::NON_VIRTUAL, __void__setMinScale__C5_osg_Vec2_R1, "Set/Get min scale for dragger. ", ""); I_Method0(const osg::Vec2 &, getMinScale, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getMinScale, "", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); I_Method1(void, setTopLeftHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setTopLeftHandleNode__osg_Node_R1, "Set/Get the handle nodes for dragger. ", ""); I_Method0(osg::Node *, getTopLeftHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getTopLeftHandleNode, "", ""); I_Method1(void, setBottomLeftHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setBottomLeftHandleNode__osg_Node_R1, "", ""); I_Method0(osg::Node *, getBottomLeftHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getBottomLeftHandleNode, "", ""); I_Method1(void, setTopRightHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setTopRightHandleNode__osg_Node_R1, "", ""); I_Method0(osg::Node *, getTopRightHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getTopRightHandleNode, "", ""); I_Method1(void, setBottomRightHandleNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __void__setBottomRightHandleNode__osg_Node_R1, "", ""); I_Method0(osg::Node *, getBottomRightHandleNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getBottomRightHandleNode, "", ""); I_Method1(void, setTopLeftHandlePosition, IN, const osg::Vec2 &, pos, + Properties::NON_VIRTUAL, __void__setTopLeftHandlePosition__C5_osg_Vec2_R1, "Set/Get the handle nodes postion for dragger. ", ""); I_Method0(const osg::Vec2 &, getTopLeftHandlePosition, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getTopLeftHandlePosition, "", ""); I_Method1(void, setBottomLeftHandlePosition, IN, const osg::Vec2 &, pos, + Properties::NON_VIRTUAL, __void__setBottomLeftHandlePosition__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getBottomLeftHandlePosition, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getBottomLeftHandlePosition, "", ""); I_Method1(void, setTopRightHandlePosition, IN, const osg::Vec2 &, pos, + Properties::NON_VIRTUAL, __void__setTopRightHandlePosition__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getTopRightHandlePosition, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getTopRightHandlePosition, "", ""); I_Method1(void, setBottomRightHandlePosition, IN, const osg::Vec2 &, pos, + Properties::NON_VIRTUAL, __void__setBottomRightHandlePosition__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getBottomRightHandlePosition, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getBottomRightHandlePosition, "", ""); diff --git a/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp b/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp index 7dfdcf4ed..ec0ba9aaf 100644 --- a/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp +++ b/src/osgWrappers/osgManipulator/ScaleAxisDragger.cpp @@ -20,12 +20,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____ScaleAxisDragger, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); diff --git a/src/osgWrappers/osgManipulator/Selection.cpp b/src/osgWrappers/osgManipulator/Selection.cpp index cb6bf7532..8d3b057d4 100644 --- a/src/osgWrappers/osgManipulator/Selection.cpp +++ b/src/osgWrappers/osgManipulator/Selection.cpp @@ -21,36 +21,43 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::Selection) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Selection) I_BaseType(osg::MatrixTransform); I_Constructor0(____Selection, "", ""); I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, __bool__receive__C5_MotionCommand_R1, "Receive motion commands and set the MatrixTransform accordingly to transform selections. ", "Returns true on success."); I_Method1(bool, receive, IN, const osgManipulator::TranslateInLineCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_TranslateInLineCommand_R1, "", ""); I_Method1(bool, receive, IN, const osgManipulator::TranslateInPlaneCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_TranslateInPlaneCommand_R1, "", ""); I_Method1(bool, receive, IN, const osgManipulator::Scale1DCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_Scale1DCommand_R1, "", ""); I_Method1(bool, receive, IN, const osgManipulator::Scale2DCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_Scale2DCommand_R1, "", ""); I_Method1(bool, receive, IN, const osgManipulator::ScaleUniformCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_ScaleUniformCommand_R1, "", ""); I_Method1(bool, receive, IN, const osgManipulator::Rotate3DCommand &, command, + Properties::VIRTUAL, __bool__receive__C5_Rotate3DCommand_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/TabBoxDragger.cpp b/src/osgWrappers/osgManipulator/TabBoxDragger.cpp index 5452192ee..76e58c358 100644 --- a/src/osgWrappers/osgManipulator/TabBoxDragger.cpp +++ b/src/osgWrappers/osgManipulator/TabBoxDragger.cpp @@ -21,16 +21,18 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____TabBoxDragger, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPlaneColor__C5_osg_Vec4_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp b/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp index c26b2bf20..96fb99f76 100644 --- a/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp +++ b/src/osgWrappers/osgManipulator/TabPlaneDragger.cpp @@ -24,20 +24,23 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____TabPlaneDragger, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "", ""); I_MethodWithDefaults1(void, setupDefaultGeometry, IN, bool, twoSidedHandle, true, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry__bool, "Setup default geometry for dragger. ", ""); I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPlaneColor__C5_osg_Vec4_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp b/src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp index 86055f3e0..e82f7fa3c 100644 --- a/src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp +++ b/src/osgWrappers/osgManipulator/TabPlaneTrackballDragger.cpp @@ -21,16 +21,18 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneTrackballDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TabPlaneTrackballDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____TabPlaneTrackballDragger, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setPlaneColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPlaneColor__C5_osg_Vec4_R1, "", ""); diff --git a/src/osgWrappers/osgManipulator/TrackballDragger.cpp b/src/osgWrappers/osgManipulator/TrackballDragger.cpp index c3b11077c..86aa3b7c0 100644 --- a/src/osgWrappers/osgManipulator/TrackballDragger.cpp +++ b/src/osgWrappers/osgManipulator/TrackballDragger.cpp @@ -20,13 +20,15 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TrackballDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TrackballDragger) I_BaseType(osgManipulator::CompositeDragger); I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, + Properties::NON_EXPLICIT, ____TrackballDragger__bool, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); diff --git a/src/osgWrappers/osgManipulator/Translate1DDragger.cpp b/src/osgWrappers/osgManipulator/Translate1DDragger.cpp index b051e63d6..eea2d6b7b 100644 --- a/src/osgWrappers/osgManipulator/Translate1DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Translate1DDragger.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) I_BaseType(osgManipulator::Dragger); I_Constructor0(____Translate1DDragger, "", @@ -35,30 +35,37 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); I_Method1(void, setCheckForNodeInNodePath, IN, bool, onOff, + Properties::NON_VIRTUAL, __void__setCheckForNodeInNodePath__bool, "", ""); diff --git a/src/osgWrappers/osgManipulator/Translate2DDragger.cpp b/src/osgWrappers/osgManipulator/Translate2DDragger.cpp index b8a3e7bcc..f3a4159e6 100644 --- a/src/osgWrappers/osgManipulator/Translate2DDragger.cpp +++ b/src/osgWrappers/osgManipulator/Translate2DDragger.cpp @@ -25,36 +25,43 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger) I_BaseType(osgManipulator::Dragger); I_Constructor0(____Translate2DDragger, "", ""); I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, ____Translate2DDragger__C5_osg_Plane_R1, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "Handle pick events on dragger and generate TranslateInLine commands. ", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "Set/Get color for dragger. ", ""); I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getColor, "", ""); I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPickColor__C5_osg_Vec4_R1, "Set/Get pick color for dragger. ", "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked. "); I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4__getPickColor, "", ""); diff --git a/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp b/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp index 2ea90068c..af668b43e 100644 --- a/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp +++ b/src/osgWrappers/osgManipulator/TranslateAxisDragger.cpp @@ -20,12 +20,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____TranslateAxisDragger, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); diff --git a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp index 0b7044333..65c01c2d7 100644 --- a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp +++ b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp @@ -26,28 +26,33 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger) I_BaseType(osgManipulator::CompositeDragger); I_Constructor0(____TranslatePlaneDragger, "", ""); I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, pi, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "", ""); I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, __void__setupDefaultGeometry, "Setup default geometry for dragger. ", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "", ""); I_Method0(osgManipulator::Translate1DDragger *, getTranslate1DDragger, + Properties::NON_VIRTUAL, __Translate1DDragger_P1__getTranslate1DDragger, "", ""); I_Method0(osgManipulator::Translate2DDragger *, getTranslate2DDragger, + Properties::NON_VIRTUAL, __Translate2DDragger_P1__getTranslate2DDragger, "", ""); diff --git a/src/osgWrappers/osgParticle/AccelOperator.cpp b/src/osgWrappers/osgParticle/AccelOperator.cpp index 42521329d..a74d7939b 100644 --- a/src/osgWrappers/osgParticle/AccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AccelOperator.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::AccelOperator) I_BaseType(osgParticle::Operator); I_Constructor0(____AccelOperator, "", @@ -35,42 +35,52 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) "", ""); 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_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAcceleration, "Get the acceleration vector. ", ""); I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAcceleration__C5_osg_Vec3_R1, "Set the acceleration vector. ", ""); I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1, + Properties::NON_VIRTUAL, __void__setToGravity__float, "Quickly set the acceleration vector to the gravity on earth (0, 0, -9.81). ", "The acceleration will be multiplied by the scale parameter."); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::VIRTUAL, __void__operate__Particle_P1__double, "Apply the acceleration to a particle. Do not call this method manually. ", ""); I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + Properties::VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp index a85545278..e00c3f118 100644 --- a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp +++ b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) I_BaseType(osgParticle::Operator); I_Constructor0(____AngularAccelOperator, "", @@ -35,38 +35,47 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) "", ""); 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_Method0(const osg::Vec3 &, getAngularAcceleration, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngularAcceleration, "Get the angular acceleration vector. ", ""); I_Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAngularAcceleration__C5_osg_Vec3_R1, "Set the angular acceleration vector. ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::VIRTUAL, __void__operate__Particle_P1__double, "Apply the angular acceleration to a particle. Do not call this method manually. ", ""); I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + Properties::VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/BoxPlacer.cpp b/src/osgWrappers/osgParticle/BoxPlacer.cpp index 61a747de1..413478563 100644 --- a/src/osgWrappers/osgParticle/BoxPlacer.cpp +++ b/src/osgWrappers/osgParticle/BoxPlacer.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::BoxPlacer) I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____BoxPlacer, "", @@ -35,66 +35,82 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) "", ""); I_Method0(const osgParticle::rangef &, getXRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getXRange, "Get the range of possible values for radius. ", ""); I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setXRange__C5_rangef_R1, "Set the range of possible values for radius. ", ""); I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setXRange__float__float, "Set the range of possible values for radius. ", ""); I_Method0(const osgParticle::rangef &, getYRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getYRange, "Get the range of possible values for the central angle. ", ""); I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setYRange__C5_rangef_R1, "Set the range of possible values for the central angle. ", ""); I_Method2(void, setYRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setYRange__float__float, "Set the range of possible values for the central angle. ", ""); I_Method0(const osgParticle::rangef &, getZRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getZRange, "Get the range of possible values for the height. ", ""); I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setZRange__C5_rangef_R1, "Set the range of possible values for the height. ", ""); I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setZRange__float__float, "Set the range of possible values for the height. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__place__Particle_P1, "Place a particle. Do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/osgParticle/CenteredPlacer.cpp index 0bb756214..14226de49 100644 --- a/src/osgWrappers/osgParticle/CenteredPlacer.cpp +++ b/src/osgWrappers/osgParticle/CenteredPlacer.cpp @@ -33,26 +33,32 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const osg::Vec3 &, getCenter, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCenter, "Get the center point. ", ""); I_Method1(void, setCenter, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setCenter__C5_osg_Vec3_R1, "Set the center point. ", ""); I_Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__setCenter__float__float__float, "Set the center point. ", ""); diff --git a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp index f13941c14..0a849bc59 100644 --- a/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ConnectedParticleSystem.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) I_BaseType(osgParticle::ParticleSystem); I_Constructor0(____ConnectedParticleSystem, "", @@ -34,50 +34,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, __Particle_P1__createParticle__C5_Particle_P1, "Create a new particle from the specified template (or the default one if ptemplate is null). ", ""); I_Method1(void, reuseParticle, IN, int, i, + Properties::VIRTUAL, __void__reuseParticle__int, "Reuse the i-th particle. ", ""); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__osg_State_R1, "Draw the connected particles as either a line or a quad strip, depending upon viewing distance. . ", ""); I_Method0(const osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, __C5_osgParticle_Particle_P1__getStartParticle, "Get the (const) particle from where the line or quadstrip starts to be drawn. ", ""); I_Method0(osgParticle::Particle *, getStartParticle, + Properties::NON_VIRTUAL, __osgParticle_Particle_P1__getStartParticle, "Get the particle from where the line or quadstrip starts to be drawn. ", ""); I_Method1(void, setMaxNumberOfParticlesToSkip, IN, unsigned int, maxNumberofParticlesToSkip, + Properties::NON_VIRTUAL, __void__setMaxNumberOfParticlesToSkip__unsigned_int, "Set the maximum numbers of particles to be skipped during the predraw filtering. ", ""); I_Method0(unsigned int, getMaxNumberOfParticlesToSkip, + Properties::NON_VIRTUAL, __unsigned_int__getMaxNumberOfParticlesToSkip, "Get the maximum numbers of particles to be skipped during the predraw filtering. ", ""); diff --git a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp index c832b5c38..1dbcd5cd4 100644 --- a/src/osgWrappers/osgParticle/ConstantRateCounter.cpp +++ b/src/osgWrappers/osgParticle/ConstantRateCounter.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) I_BaseType(osgParticle::Counter); I_Constructor0(____ConstantRateCounter, "", @@ -32,42 +32,52 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setMinimumNumberOfParticlesToCreate, IN, int, minNumToCreate, + Properties::NON_VIRTUAL, __void__setMinimumNumberOfParticlesToCreate__int, "", ""); I_Method0(int, getMinimumNumberOfParticlesToCreate, + Properties::NON_VIRTUAL, __int__getMinimumNumberOfParticlesToCreate, "", ""); I_Method1(void, setNumberOfParticlesPerSecondToCreate, IN, double, numPerSecond, + Properties::NON_VIRTUAL, __void__setNumberOfParticlesPerSecondToCreate__double, "", ""); I_Method0(double, getNumberOfParticlesPerSecondToCreate, + Properties::NON_VIRTUAL, __double__getNumberOfParticlesPerSecondToCreate, "", ""); I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, __int__numParticlesToCreate__double, "Return the number of particles to be created in this frame. ", ""); diff --git a/src/osgWrappers/osgParticle/Counter.cpp b/src/osgWrappers/osgParticle/Counter.cpp index e0911c367..5508cc8a6 100644 --- a/src/osgWrappers/osgParticle/Counter.cpp +++ b/src/osgWrappers/osgParticle/Counter.cpp @@ -32,18 +32,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::PURE_VIRTUAL, __int__numParticlesToCreate__double, "", ""); diff --git a/src/osgWrappers/osgParticle/Emitter.cpp b/src/osgWrappers/osgParticle/Emitter.cpp index bb6473388..4bd994e07 100644 --- a/src/osgWrappers/osgParticle/Emitter.cpp +++ b/src/osgWrappers/osgParticle/Emitter.cpp @@ -34,34 +34,42 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(const osgParticle::Particle &, getParticleTemplate, + Properties::NON_VIRTUAL, __C5_Particle_R1__getParticleTemplate, "Get the particle template. ", ""); I_Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, __void__setParticleTemplate__C5_Particle_R1, "Set the particle template (particle is copied). ", ""); I_Method0(bool, getUseDefaultTemplate, + Properties::NON_VIRTUAL, __bool__getUseDefaultTemplate, "Return whether the particle system's default template should be used. ", ""); I_Method1(void, setUseDefaultTemplate, IN, bool, v, + Properties::NON_VIRTUAL, __void__setUseDefaultTemplate__bool, "Set whether the default particle template should be used. ", "When this flag is true, the particle template is ignored, and the particle system's default template is used instead."); diff --git a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp index d0355d307..22ad9bcc7 100644 --- a/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionDebrisEffect.cpp @@ -26,9 +26,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____ExplosionDebrisEffect__bool, "", ""); @@ -41,50 +42,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, __C5_Program_P1__getProgram, "", ""); diff --git a/src/osgWrappers/osgParticle/ExplosionEffect.cpp b/src/osgWrappers/osgParticle/ExplosionEffect.cpp index 63d229f11..3a55ed8d2 100644 --- a/src/osgWrappers/osgParticle/ExplosionEffect.cpp +++ b/src/osgWrappers/osgParticle/ExplosionEffect.cpp @@ -26,9 +26,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____ExplosionEffect__bool, "", ""); @@ -41,50 +42,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, __C5_Program_P1__getProgram, "", ""); diff --git a/src/osgWrappers/osgParticle/FireEffect.cpp b/src/osgWrappers/osgParticle/FireEffect.cpp index 8da3bc6eb..ea48b1f77 100644 --- a/src/osgWrappers/osgParticle/FireEffect.cpp +++ b/src/osgWrappers/osgParticle/FireEffect.cpp @@ -26,9 +26,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FireEffect) I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____FireEffect__bool, "", ""); @@ -41,50 +42,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, __C5_Program_P1__getProgram, "", ""); diff --git a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp index e7d781e9c..95d2dff95 100644 --- a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp +++ b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) I_BaseType(osgParticle::Operator); I_Constructor0(____FluidFrictionOperator, "", @@ -35,70 +35,87 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, __void__setFluidDensity__float, "Set the density of the fluid. ", ""); I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, __float__getFluidDensity, "Get the density of the fluid. ", ""); I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, __void__setFluidViscosity__float, "Set the viscosity of the fluid. ", ""); I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, __float__getFluidViscosity, "Get the viscosity of the fluid. ", ""); I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, __void__setWind__C5_osg_Vec3_R1, "Set the wind vector. ", ""); I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getWind, "Get the wind vector. ", ""); I_Method1(void, setOverrideRadius, IN, float, r, + Properties::NON_VIRTUAL, __void__setOverrideRadius__float, "Set the overriden radius value (pass 0 if you want to use particle's radius). ", ""); I_Method0(float, getOverrideRadius, + Properties::NON_VIRTUAL, __float__getOverrideRadius, "Get the overriden radius value. ", ""); I_Method0(void, setFluidToAir, + Properties::NON_VIRTUAL, __void__setFluidToAir, "Set the fluid parameters as for air (20°C temperature). ", ""); I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, __void__setFluidToWater, "Set the fluid parameters as for pure water (20°C temperature). ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::VIRTUAL, __void__operate__Particle_P1__double, "Apply the friction forces to a particle. Do not call this method manually. ", ""); I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + Properties::VIRTUAL, __void__beginOperate__Program_P1, "Perform some initializations. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/FluidProgram.cpp b/src/osgWrappers/osgParticle/FluidProgram.cpp index aab0868c1..6cc98c521 100644 --- a/src/osgWrappers/osgParticle/FluidProgram.cpp +++ b/src/osgWrappers/osgParticle/FluidProgram.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FluidProgram) I_BaseType(osgParticle::Program); I_Constructor0(____FluidProgram, "", @@ -34,70 +34,87 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setFluidViscosity, IN, float, v, + Properties::NON_VIRTUAL, __void__setFluidViscosity__float, "Set the viscosity of the fluid. ", ""); I_Method0(float, getFluidViscosity, + Properties::NON_VIRTUAL, __float__getFluidViscosity, "Get the viscosity of the fluid. ", ""); I_Method1(void, setFluidDensity, IN, float, d, + Properties::NON_VIRTUAL, __void__setFluidDensity__float, "Set the density of the fluid. ", ""); I_Method0(float, getFluidDensity, + Properties::NON_VIRTUAL, __float__getFluidDensity, "Get the density of the fluid. ", ""); I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, __void__setWind__C5_osg_Vec3_R1, "Set the wind vector. ", ""); I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getWind, "Get the wind vector. ", ""); I_Method1(void, setAcceleration, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAcceleration__C5_osg_Vec3_R1, "Set the acceleration vector. ", ""); I_Method0(const osg::Vec3 &, getAcceleration, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAcceleration, "Get the acceleration vector. ", ""); I_MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f, + Properties::NON_VIRTUAL, __void__setToGravity__float, "Set the acceleration vector to the gravity on earth (0, 0, -9.81). ", "The acceleration will be multiplied by the scale parameter."); I_Method0(void, setFluidToAir, + Properties::NON_VIRTUAL, __void__setFluidToAir, "Set the fluid parameters as for air (20°C temperature). ", ""); I_Method0(void, setFluidToWater, + Properties::NON_VIRTUAL, __void__setFluidToWater, "Set the fluid parameters as for pure water (20°C temperature). ", ""); diff --git a/src/osgWrappers/osgParticle/ForceOperator.cpp b/src/osgWrappers/osgParticle/ForceOperator.cpp index 00a07bc3f..048d8a923 100644 --- a/src/osgWrappers/osgParticle/ForceOperator.cpp +++ b/src/osgWrappers/osgParticle/ForceOperator.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ForceOperator) I_BaseType(osgParticle::Operator); I_Constructor0(____ForceOperator, "", @@ -35,38 +35,47 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) "", ""); 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_Method0(const osg::Vec3 &, getForce, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getForce, "Get the force vector. ", ""); I_Method1(void, setForce, IN, const osg::Vec3 &, f, + Properties::NON_VIRTUAL, __void__setForce__C5_osg_Vec3_R1, "Set the force vector. ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::VIRTUAL, __void__operate__Particle_P1__double, "Apply the force to a particle. Do not call this method manually. ", ""); I_Method1(void, beginOperate, IN, osgParticle::Program *, prg, + Properties::VIRTUAL, __void__beginOperate__Program_P1, "Perform some initialization. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/Interpolator.cpp b/src/osgWrappers/osgParticle/Interpolator.cpp index 529586cbe..04a049594 100644 --- a/src/osgWrappers/osgParticle/Interpolator.cpp +++ b/src/osgWrappers/osgParticle/Interpolator.cpp @@ -35,30 +35,37 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::PURE_VIRTUAL, __float__interpolate__float__float__float, "Interpolate between floats. Must be overriden in descendant classes. ", ""); I_Method3(osg::Vec2, interpolate, IN, float, t, IN, const osg::Vec2 &, y1, IN, const osg::Vec2 &, y2, + Properties::VIRTUAL, __osg_Vec2__interpolate__float__C5_osg_Vec2_R1__C5_osg_Vec2_R1, "Interpolate between 2-dimensional vectors. Default behavior is to interpolate each component separately. ", ""); I_Method3(osg::Vec3, interpolate, IN, float, t, IN, const osg::Vec3 &, y1, IN, const osg::Vec3 &, y2, + Properties::VIRTUAL, __osg_Vec3__interpolate__float__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "Interpolate between 3-dimensional vectors. Default behavior is to interpolate each component separately. ", ""); I_Method3(osg::Vec4, interpolate, IN, float, t, IN, const osg::Vec4 &, y1, IN, const osg::Vec4 &, y2, + Properties::VIRTUAL, __osg_Vec4__interpolate__float__C5_osg_Vec4_R1__C5_osg_Vec4_R1, "Interpolate between 4-dimensional vectors. Default behavior is to interpolate each component separately. ", ""); diff --git a/src/osgWrappers/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/osgParticle/LinearInterpolator.cpp index abeb62cc4..e70e1ad95 100644 --- a/src/osgWrappers/osgParticle/LinearInterpolator.cpp +++ b/src/osgWrappers/osgParticle/LinearInterpolator.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) I_BaseType(osgParticle::Interpolator); I_Constructor0(____LinearInterpolator, "", @@ -32,26 +32,32 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) "", ""); 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_Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2, + Properties::VIRTUAL, __float__interpolate__float__float__float, "Interpolate between floats. Must be overriden in descendant classes. ", ""); diff --git a/src/osgWrappers/osgParticle/ModularEmitter.cpp b/src/osgWrappers/osgParticle/ModularEmitter.cpp index 517348fc5..e2e5c8f87 100644 --- a/src/osgWrappers/osgParticle/ModularEmitter.cpp +++ b/src/osgWrappers/osgParticle/ModularEmitter.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ModularEmitter) I_BaseType(osgParticle::Emitter); I_Constructor0(____ModularEmitter, "", @@ -36,70 +36,87 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, __Counter_P1__getCounter, "Get the counter object. ", ""); I_Method0(const osgParticle::Counter *, getCounter, + Properties::NON_VIRTUAL, __C5_Counter_P1__getCounter, "Get the const Counter object. ", ""); I_Method1(void, setCounter, IN, osgParticle::Counter *, c, + Properties::NON_VIRTUAL, __void__setCounter__Counter_P1, "Set the Counter object. ", ""); I_Method0(float, getNumParticlesToCreateMovementCompenstationRatio, + Properties::NON_VIRTUAL, __float__getNumParticlesToCreateMovementCompenstationRatio, "Get the ratio between number of particle to create in compenstation for movement of the emitter. ", ""); I_Method1(void, setNumParticlesToCreateMovementCompenstationRatio, IN, float, r, + Properties::NON_VIRTUAL, __void__setNumParticlesToCreateMovementCompenstationRatio__float, "Set the ratio between number of particle to create in compenstation for movement of the emitter. ", ""); I_Method0(osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, __Placer_P1__getPlacer, "Get the Placer object. ", ""); I_Method0(const osgParticle::Placer *, getPlacer, + Properties::NON_VIRTUAL, __C5_Placer_P1__getPlacer, "Get the const Placer object. ", ""); I_Method1(void, setPlacer, IN, osgParticle::Placer *, p, + Properties::NON_VIRTUAL, __void__setPlacer__Placer_P1, "Set the Placer object. ", ""); I_Method0(osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, __Shooter_P1__getShooter, "Get the Shooter object. ", ""); I_Method0(const osgParticle::Shooter *, getShooter, + Properties::NON_VIRTUAL, __C5_Shooter_P1__getShooter, "Get the const Shooter object. ", ""); I_Method1(void, setShooter, IN, osgParticle::Shooter *, s, + Properties::NON_VIRTUAL, __void__setShooter__Shooter_P1, "Set the Shooter object. ", ""); diff --git a/src/osgWrappers/osgParticle/ModularProgram.cpp b/src/osgWrappers/osgParticle/ModularProgram.cpp index 5e8a5d570..845dfd628 100644 --- a/src/osgWrappers/osgParticle/ModularProgram.cpp +++ b/src/osgWrappers/osgParticle/ModularProgram.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ModularProgram) I_BaseType(osgParticle::Program); I_Constructor0(____ModularProgram, "", @@ -34,46 +34,57 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(int, numOperators, + Properties::NON_VIRTUAL, __int__numOperators, "Get the number of operators. ", ""); I_Method1(void, addOperator, IN, osgParticle::Operator *, o, + Properties::NON_VIRTUAL, __void__addOperator__Operator_P1, "Add an operator to the list. ", ""); I_Method1(osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, __Operator_P1__getOperator__int, "Get a pointer to an operator in the list. ", ""); I_Method1(const osgParticle::Operator *, getOperator, IN, int, i, + Properties::NON_VIRTUAL, __C5_Operator_P1__getOperator__int, "Get a const pointer to an operator in the list. ", ""); I_Method1(void, removeOperator, IN, int, i, + Properties::NON_VIRTUAL, __void__removeOperator__int, "Remove an operator from the list. ", ""); diff --git a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp index 84eb818a8..feaab0d4d 100644 --- a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) I_BaseType(osgParticle::Placer); I_Constructor0(____MultiSegmentPlacer, "", @@ -34,58 +34,72 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) "", ""); 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_Method0(int, numVertices, + Properties::NON_VIRTUAL, __int__numVertices, "Get the number of vertices which define the segments. ", ""); I_Method1(const osg::Vec3 &, getVertex, IN, int, i, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVertex__int, "Get a vertex. ", ""); I_Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setVertex__int__C5_osg_Vec3_R1, "Set a vertex. ", ""); I_Method4(void, setVertex, IN, int, i, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__setVertex__int__float__float__float, "Set a vertex. ", ""); I_Method1(void, addVertex, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__addVertex__C5_osg_Vec3_R1, "Add a vertex. ", ""); I_Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__addVertex__float__float__float, "Add a vertex. ", ""); I_Method1(void, removeVertex, IN, int, i, + Properties::NON_VIRTUAL, __void__removeVertex__int, "Remove a vertex. ", ""); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__place__Particle_P1, "Place a partice. Called automatically by ModularEmitter, do not call this method manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/Operator.cpp b/src/osgWrappers/osgParticle/Operator.cpp index d5caab31a..ed9ee54d2 100644 --- a/src/osgWrappers/osgParticle/Operator.cpp +++ b/src/osgWrappers/osgParticle/Operator.cpp @@ -34,34 +34,42 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, __bool__isEnabled, "Get whether this operator is enabled. ", ""); I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, __void__setEnabled__bool, "Enable or disable this operator. ", ""); I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt, + Properties::PURE_VIRTUAL, __void__operate__Particle_P1__double, "Do something on a particle. ", "This method is called by ModularProgram objects to perform some operations on the particles. You must override it in descendant classes. Common operations consist of modifying the particle's velocity vector. The dt parameter is the time elapsed from last operation."); I_Method1(void, beginOperate, IN, osgParticle::Program *, x, + Properties::VIRTUAL, __void__beginOperate__Program_P1, "Do something before processing particles via the operate() method. ", "Overriding this method could be necessary to query the calling Program object for the current reference frame. If the reference frame is RELATIVE_RF, then your class should prepare itself to do all operations in local coordinates."); I_Method0(void, endOperate, + Properties::VIRTUAL, __void__endOperate, "Do something after all particles have been processed. ", ""); diff --git a/src/osgWrappers/osgParticle/Particle.cpp b/src/osgWrappers/osgParticle/Particle.cpp index b5914601a..a7c4f5304 100644 --- a/src/osgWrappers/osgParticle/Particle.cpp +++ b/src/osgWrappers/osgParticle/Particle.cpp @@ -39,230 +39,287 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle) "", ""); I_Method0(osgParticle::Particle::Shape, getShape, + Properties::NON_VIRTUAL, __Shape__getShape, "Get the shape of the particle. ", ""); I_Method1(void, setShape, IN, osgParticle::Particle::Shape, s, + Properties::NON_VIRTUAL, __void__setShape__Shape, "Set the shape of the particle. ", ""); I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, __bool__isAlive, "Get whether the particle is still alive. ", ""); I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, __double__getLifeTime, "Get the life time of the particle (in seconds). ", ""); I_Method0(double, getAge, + Properties::NON_VIRTUAL, __double__getAge, "Get the age of the particle (in seconds). ", ""); I_Method0(const osgParticle::rangef &, getSizeRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getSizeRange, "Get the minimum and maximum values for polygon size. ", ""); I_Method0(const osgParticle::rangef &, getAlphaRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getAlphaRange, "Get the minimum and maximum values for alpha. ", ""); I_Method0(const osgParticle::rangev4 &, getColorRange, + Properties::NON_VIRTUAL, __C5_rangev4_R1__getColorRange, "Get the minimum and maximum values for color. ", ""); I_Method0(const osgParticle::Interpolator *, getSizeInterpolator, + Properties::NON_VIRTUAL, __C5_Interpolator_P1__getSizeInterpolator, "Get the interpolator for computing the size of polygons. ", ""); I_Method0(const osgParticle::Interpolator *, getAlphaInterpolator, + Properties::NON_VIRTUAL, __C5_Interpolator_P1__getAlphaInterpolator, "Get the interpolator for computing alpha values. ", ""); I_Method0(const osgParticle::Interpolator *, getColorInterpolator, + Properties::NON_VIRTUAL, __C5_Interpolator_P1__getColorInterpolator, "Get the interpolator for computing color values. ", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "Get the physical radius of the particle. ", "For built-in operators to work correctly, lengths must be expressed in meters."); I_Method0(float, getMass, + Properties::NON_VIRTUAL, __float__getMass, "Get the mass of the particle. ", "For built-in operators to work correctly, remember that the mass is expressed in kg."); I_Method0(float, getMassInv, + Properties::NON_VIRTUAL, __float__getMassInv, "Get 1 / getMass(). ", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "Get the position vector. ", ""); I_Method0(const osg::Vec3 &, getVelocity, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVelocity, "Get the velocity vector. ", "For built-in operators to work correctly, remember that velocity components are expressed in meters per second."); I_Method0(const osg::Vec3 &, getPreviousPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPreviousPosition, "Get the previous position (the position before last update). ", ""); I_Method0(const osg::Vec3 &, getAngle, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngle, "Get the angle vector. ", ""); I_Method0(const osg::Vec3 &, getAngularVelocity, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAngularVelocity, "Get the rotational velocity vector. ", ""); I_Method0(const osg::Vec3 &, getPreviousAngle, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPreviousAngle, "Get the previous angle vector. ", ""); I_Method0(const osg::Vec4 &, getCurrentColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getCurrentColor, "Get the current color. ", ""); I_Method0(float, getCurrentAlpha, + Properties::NON_VIRTUAL, __float__getCurrentAlpha, "Get the current alpha. ", ""); I_Method0(const float, getSTexCoord, + Properties::NON_VIRTUAL, __C5_float__getSTexCoord, "Get the s texture coordinate of the bottom left of the particle. ", ""); I_Method0(float, getTCoord, + Properties::NON_VIRTUAL, __float__getTCoord, "Get the t texture coordinate of the bottom left of the particle. ", ""); I_Method0(int, getTileS, + Properties::NON_VIRTUAL, __int__getTileS, "Get width of texture tile. ", ""); I_Method0(int, getTileT, + Properties::NON_VIRTUAL, __int__getTileT, "Get height of texture tile. ", ""); I_Method0(int, getNumTiles, + Properties::NON_VIRTUAL, __int__getNumTiles, "Get number of texture tiles. ", ""); I_Method0(void, kill, + Properties::NON_VIRTUAL, __void__kill, "Kill the particle on next update NOTE: after calling this function, the isAlive() method will still return true until the particle is updated again. ", ""); I_Method1(void, setLifeTime, IN, double, t, + Properties::NON_VIRTUAL, __void__setLifeTime__double, "Set the life time of the particle. ", ""); I_Method1(void, setSizeRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setSizeRange__C5_rangef_R1, "Set the minimum and maximum values for polygon size. ", ""); I_Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setAlphaRange__C5_rangef_R1, "Set the minimum and maximum values for alpha. ", ""); I_Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r, + Properties::NON_VIRTUAL, __void__setColorRange__C5_rangev4_R1, "Set the minimum and maximum values for color. ", ""); I_Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri, + Properties::NON_VIRTUAL, __void__setSizeInterpolator__Interpolator_P1, "Set the interpolator for computing size values. ", ""); I_Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai, + Properties::NON_VIRTUAL, __void__setAlphaInterpolator__Interpolator_P1, "Set the interpolator for computing alpha values. ", ""); I_Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci, + Properties::NON_VIRTUAL, __void__setColorInterpolator__Interpolator_P1, "Set the interpolator for computing color values. ", ""); I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, __void__setRadius__float, "Set the physical radius of the particle. ", "For built-in operators to work correctly, lengths must be expressed in meters."); I_Method1(void, setMass, IN, float, m, + Properties::NON_VIRTUAL, __void__setMass__float, "Set the mass of the particle. ", "For built-in operators to work correctly, remember that the mass is expressed in kg."); I_Method1(void, setPosition, IN, const osg::Vec3 &, p, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "Set the position vector. ", ""); I_Method1(void, setVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setVelocity__C5_osg_Vec3_R1, "Set the velocity vector. ", "For built-in operators to work correctly, remember that velocity components are expressed in meters per second."); I_Method1(void, addVelocity, IN, const osg::Vec3 &, dv, + Properties::NON_VIRTUAL, __void__addVelocity__C5_osg_Vec3_R1, "Add a vector to the velocity vector. ", ""); I_Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, __void__transformPositionVelocity__C5_osg_Matrix_R1, "Transform position and velocity vectors by a matrix. ", ""); I_Method3(void, transformPositionVelocity, IN, const osg::Matrix &, xform1, IN, const osg::Matrix &, xform2, IN, float, r, + Properties::NON_VIRTUAL, __void__transformPositionVelocity__C5_osg_Matrix_R1__C5_osg_Matrix_R1__float, "Transform position and velocity vectors by a combination of two matrices. ", ""); I_Method1(void, setAngle, IN, const osg::Vec3 &, a, + Properties::NON_VIRTUAL, __void__setAngle__C5_osg_Vec3_R1, "Set the angle vector. ", ""); I_Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAngularVelocity__C5_osg_Vec3_R1, "Set the angular velocity vector. ", "Components x, y and z are angles of rotation around the respective axis (in radians)."); I_Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv, + Properties::NON_VIRTUAL, __void__addAngularVelocity__C5_osg_Vec3_R1, "Add a vector to the angular velocity vector. ", ""); I_Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform, + Properties::NON_VIRTUAL, __void__transformAngleVelocity__C5_osg_Matrix_R1, "Transform angle and angularVelocity vectors by a matrix. ", ""); I_Method1(bool, update, IN, double, dt, + Properties::NON_VIRTUAL, __bool__update__double, "Update the particle (don't call this method manually). ", "This method is called automatically by ParticleSystem::update(); it updates the graphical properties of the particle for the current time, checks whether the particle is still alive, and then updates its position by computing P = P + V * dt (where P is the position and V is the velocity)."); I_Method0(void, beginRender, + Properties::NON_VIRTUAL, __void__beginRender, "Perform some pre-rendering tasks. Called automatically by particle systems. ", ""); I_MethodWithDefaults4(void, render, IN, const osg::Vec3 &, xpos, , IN, const osg::Vec3 &, px, , IN, const osg::Vec3 &, py, , IN, float, scale, 1.0f, + Properties::NON_VIRTUAL, __void__render__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, "Render the particle. Called automatically by particle systems. ", ""); I_Method0(void, endRender, + Properties::NON_VIRTUAL, __void__endRender, "Perform some post-rendering tasks. Called automatically by particle systems. ", ""); I_Method0(float, getCurrentSize, + Properties::NON_VIRTUAL, __float__getCurrentSize, "Get the current (interpolated) polygon size. Valid only after the first call to update(). ", ""); I_MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, numTiles, 0, + Properties::NON_VIRTUAL, __void__setTextureTile__int__int__int, "Specify how the particle texture is tiled. ", ""); I_Method1(void, setPreviousParticle, IN, int, previous, + Properties::NON_VIRTUAL, __void__setPreviousParticle__int, "Set the previous particle. ", ""); I_Method0(int, getPreviousParticle, + Properties::NON_VIRTUAL, __int__getPreviousParticle, "Get the previous particle. ", ""); I_Method1(void, setNextParticle, IN, int, next, + Properties::NON_VIRTUAL, __void__setNextParticle__int, "Set the next particle. ", ""); I_Method0(int, getNextParticle, + Properties::NON_VIRTUAL, __int__getNextParticle, "Get the const next particle. ", ""); I_Method1(void, setUpTexCoordsAsPartOfConnectedParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1, "Method for initializing a particles texture coords as part of a connected particle system. ", ""); diff --git a/src/osgWrappers/osgParticle/ParticleEffect.cpp b/src/osgWrappers/osgParticle/ParticleEffect.cpp index 81c851de2..274ef4087 100644 --- a/src/osgWrappers/osgParticle/ParticleEffect.cpp +++ b/src/osgWrappers/osgParticle/ParticleEffect.cpp @@ -31,6 +31,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) I_BaseType(osg::Group); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____ParticleEffect__bool, "", ""); @@ -39,150 +40,187 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setAutomaticSetup, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setAutomaticSetup__bool, "", ""); I_Method0(bool, getAutomaticSetup, + Properties::NON_VIRTUAL, __bool__getAutomaticSetup, "", ""); I_Method1(void, setUseLocalParticleSystem, IN, bool, local, + Properties::NON_VIRTUAL, __void__setUseLocalParticleSystem__bool, "", ""); I_Method0(bool, getUseLocalParticleSystem, + Properties::NON_VIRTUAL, __bool__getUseLocalParticleSystem, "", ""); I_Method1(void, setTextureFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setTextureFileName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getTextureFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getTextureFileName, "", ""); I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, __void__setDefaultParticleTemplate__C5_Particle_R1, "", ""); I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, __C5_Particle_R1__getDefaultParticleTemplate, "", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "", ""); I_Method1(void, setScale, IN, float, scale, + Properties::NON_VIRTUAL, __void__setScale__float, "", ""); I_Method0(float, getScale, + Properties::NON_VIRTUAL, __float__getScale, "", ""); I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, __void__setIntensity__float, "", ""); I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, __float__getIntensity, "", ""); I_Method1(void, setStartTime, IN, double, startTime, + Properties::NON_VIRTUAL, __void__setStartTime__double, "", ""); I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, __double__getStartTime, "", ""); I_Method1(void, setEmitterDuration, IN, double, duration, + Properties::NON_VIRTUAL, __void__setEmitterDuration__double, "", ""); I_Method0(double, getEmitterDuration, + Properties::NON_VIRTUAL, __double__getEmitterDuration, "", ""); I_Method1(void, setParticleDuration, IN, double, duration, + Properties::NON_VIRTUAL, __void__setParticleDuration__double, "", ""); I_Method0(double, getParticleDuration, + Properties::NON_VIRTUAL, __double__getParticleDuration, "", ""); I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, __void__setWind__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getWind, "", ""); I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, __bool__areAllParticlesDead, "Get whether all particles are dead. ", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, __C5_Program_P1__getProgram, "", ""); I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __void__setParticleSystem__ParticleSystem_P1, "", ""); I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, __ParticleSystem_P1__getParticleSystem, "", ""); I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, __C5_ParticleSystem_P1__getParticleSystem, "", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::PURE_VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(void, buildEffect, + Properties::VIRTUAL, __void__buildEffect, "", ""); diff --git a/src/osgWrappers/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/osgParticle/ParticleProcessor.cpp index 13d310458..c84fd41cd 100644 --- a/src/osgWrappers/osgParticle/ParticleProcessor.cpp +++ b/src/osgWrappers/osgParticle/ParticleProcessor.cpp @@ -42,130 +42,162 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, __ReferenceFrame__getReferenceFrame, "Get the reference frame. ", ""); I_Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf, + Properties::NON_VIRTUAL, __void__setReferenceFrame__ReferenceFrame, "Set the reference frame. ", ""); I_Method0(bool, isEnabled, + Properties::NON_VIRTUAL, __bool__isEnabled, "Get whether this processor is enabled or not. ", ""); I_Method1(void, setEnabled, IN, bool, v, + Properties::NON_VIRTUAL, __void__setEnabled__bool, "Set whether this processor is enabled or not. ", ""); I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, __ParticleSystem_P1__getParticleSystem, "Get a pointer to the destination particle system. ", ""); I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, __C5_ParticleSystem_P1__getParticleSystem, "Get a const pointer to the destination particle system. ", ""); I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __void__setParticleSystem__ParticleSystem_P1, "Set the destination particle system. ", ""); I_Method1(void, setEndless, IN, bool, type, + Properties::NON_VIRTUAL, __void__setEndless__bool, "Set the endless flag of this processor. ", ""); I_Method0(bool, isEndless, + Properties::NON_VIRTUAL, __bool__isEndless, "Check whether this processor is endless. ", ""); I_Method1(void, setLifeTime, IN, double, t, + Properties::NON_VIRTUAL, __void__setLifeTime__double, "Set the lifetime of this processor. ", ""); I_Method0(double, getLifeTime, + Properties::NON_VIRTUAL, __double__getLifeTime, "Get the lifetime of this processor. ", ""); I_Method1(void, setStartTime, IN, double, t, + Properties::NON_VIRTUAL, __void__setStartTime__double, "Set the start time of this processor. ", ""); I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, __double__getStartTime, "Get the start time of this processor. ", ""); I_Method1(void, setCurrentTime, IN, double, t, + Properties::NON_VIRTUAL, __void__setCurrentTime__double, "Set the current time of this processor. ", ""); I_Method0(double, getCurrentTime, + Properties::NON_VIRTUAL, __double__getCurrentTime, "Get the current time of this processor. ", ""); I_Method1(void, setResetTime, IN, double, t, + Properties::NON_VIRTUAL, __void__setResetTime__double, "Set the reset time of this processor. A value of 0 disables reset. ", ""); I_Method0(double, getResetTime, + Properties::NON_VIRTUAL, __double__getResetTime, "Get the reset time of this processor. ", ""); I_Method0(bool, isAlive, + Properties::NON_VIRTUAL, __bool__isAlive, "Check whether the processor is alive with respect to start time and life duration. ", "Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive())."); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method0(const osg::Matrix &, getLocalToWorldMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getLocalToWorldMatrix, "Get the current local-to-world transformation matrix (valid only during cull traversal). ", ""); I_Method0(const osg::Matrix &, getWorldToLocalMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getWorldToLocalMatrix, "Get the current world-to-local transformation matrix (valid only during cull traversal). ", ""); I_Method0(const osg::Matrix &, getPreviousLocalToWorldMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, "Get the previous local-to-world transformation matrix (valid only during cull traversal). ", ""); I_Method0(const osg::Matrix &, getPreviousWorldToLocalMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getPreviousWorldToLocalMatrix, "Get the previous world-to-local transformation matrix (valid only during cull traversal). ", ""); I_Method1(osg::Vec3, transformLocalToWorld, IN, const osg::Vec3 &, P, + Properties::NON_VIRTUAL, __osg_Vec3__transformLocalToWorld__C5_osg_Vec3_R1, "Transform a point from local to world coordinates (valid only during cull traversal). ", ""); I_Method1(osg::Vec3, rotateLocalToWorld, IN, const osg::Vec3 &, P, + Properties::NON_VIRTUAL, __osg_Vec3__rotateLocalToWorld__C5_osg_Vec3_R1, "Transform a vector from local to world coordinates, discarding translation (valid only during cull traversal). ", ""); I_Method1(osg::Vec3, transformWorldToLocal, IN, const osg::Vec3 &, P, + Properties::NON_VIRTUAL, __osg_Vec3__transformWorldToLocal__C5_osg_Vec3_R1, "Transform a point from world to local coordinates (valid only during cull traversal). ", ""); I_Method1(osg::Vec3, rotateWorldToLocal, IN, const osg::Vec3 &, P, + Properties::NON_VIRTUAL, __osg_Vec3__rotateWorldToLocal__C5_osg_Vec3_R1, "Transform a vector from world to local coordinates, discarding translation (valid only during cull traversal). ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __osg_BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp index 2dcb04851..15dfec501 100644 --- a/src/osgWrappers/osgParticle/ParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -32,7 +32,7 @@ BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment) I_EnumLabel(osgParticle::ParticleSystem::FIXED); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleSystem) I_BaseType(osg::Drawable); I_Constructor0(____ParticleSystem, "", @@ -42,158 +42,197 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) "", ""); 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_Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment, + Properties::NON_VIRTUAL, __Alignment__getParticleAlignment, "Get the alignment type of particles. ", ""); I_Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a, + Properties::NON_VIRTUAL, __void__setParticleAlignment__Alignment, "Set the alignment type of particles. ", ""); I_Method0(const osg::Vec3 &, getAlignVectorX, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAlignVectorX, "Get the X-axis alignment vector. ", ""); I_Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAlignVectorX__C5_osg_Vec3_R1, "Set the X-axis alignment vector. ", ""); I_Method0(const osg::Vec3 &, getAlignVectorY, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAlignVectorY, "Get the Y-axis alignment vector. ", ""); I_Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setAlignVectorY__C5_osg_Vec3_R1, "Set the Y-axis alignment vector. ", ""); I_Method2(void, setAlignVectors, IN, const osg::Vec3 &, X, IN, const osg::Vec3 &, Y, + Properties::NON_VIRTUAL, __void__setAlignVectors__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "Set the alignment vectors. ", ""); I_Method0(const osg::BoundingBox &, getDefaultBoundingBox, + Properties::NON_VIRTUAL, __C5_osg_BoundingBox_R1__getDefaultBoundingBox, "Get the default bounding box. ", ""); I_Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox, + Properties::NON_VIRTUAL, __void__setDefaultBoundingBox__C5_osg_BoundingBox_R1, "Set the default bounding box. ", "The default bounding box is used when a real bounding box cannot be computed, for example because no particles has been updated yet."); I_Method0(bool, getDoublePassRendering, + Properties::NON_VIRTUAL, __bool__getDoublePassRendering, "Get the double pass rendering flag. ", ""); I_Method1(void, setDoublePassRendering, IN, bool, v, + Properties::NON_VIRTUAL, __void__setDoublePassRendering__bool, "Set the double pass rendering flag. ", "Double pass rendering avoids overdraw problems between particle systems and other opaque objects. If you can render all the particle systems after the opaque objects, then double pass is not necessary and can be turned off (best choice). If you set the default attributes with setDefaultAttributes, then the particle system will fall into a transparent bin."); I_Method0(bool, isFrozen, + Properties::NON_VIRTUAL, __bool__isFrozen, "Return true if the particle system is frozen. ", ""); I_Method1(void, setFrozen, IN, bool, v, + Properties::NON_VIRTUAL, __void__setFrozen__bool, "Set or reset the frozen state. ", "When the particle system is frozen, emitters and programs won't do anything on it."); I_Method0(int, numParticles, + Properties::NON_VIRTUAL, __int__numParticles, "Get the number of allocated particles (alive + dead). ", ""); I_Method0(int, numDeadParticles, + Properties::NON_VIRTUAL, __int__numDeadParticles, "Get the number of dead particles. ", ""); I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, __bool__areAllParticlesDead, "Get whether all particles are dead. ", ""); I_Method1(osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, __Particle_P1__getParticle__int, "Get a pointer to the i-th particle. ", ""); I_Method1(const osgParticle::Particle *, getParticle, IN, int, i, + Properties::NON_VIRTUAL, __C5_Particle_P1__getParticle__int, "Get a const pointer to the i-th particle. ", ""); I_Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate, + Properties::VIRTUAL, __Particle_P1__createParticle__C5_Particle_P1, "Create a new particle from the specified template (or the default one if ptemplate is null). ", ""); I_Method1(void, destroyParticle, IN, int, i, + Properties::VIRTUAL, __void__destroyParticle__int, "Destroy the i-th particle. ", ""); I_Method1(void, reuseParticle, IN, int, i, + Properties::VIRTUAL, __void__reuseParticle__int, "Reuse the i-th particle. ", ""); I_Method0(int, getLastFrameNumber, + Properties::NON_VIRTUAL, __int__getLastFrameNumber, "Get the last frame number. ", ""); I_Method0(osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, __Particle_R1__getDefaultParticleTemplate, "Get a reference to the default particle template. ", ""); I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, __C5_Particle_R1__getDefaultParticleTemplate, "Get a const reference to the default particle template. ", ""); I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, __void__setDefaultParticleTemplate__C5_Particle_R1, "Set the default particle template (particle is copied). ", ""); I_Method0(bool, getFreezeOnCull, + Properties::NON_VIRTUAL, __bool__getFreezeOnCull, "Get whether the particle system can freeze when culled. ", ""); I_Method1(void, setFreezeOnCull, IN, bool, v, + Properties::NON_VIRTUAL, __void__setFreezeOnCull__bool, "Set whether the particle system can freeze when culled (default is true). ", ""); I_MethodWithDefaults4(void, setDefaultAttributes, IN, const std::string &, texturefile, "", IN, bool, emissive_particles, true, IN, bool, lighting, false, IN, int, texture_unit, 0, + Properties::NON_VIRTUAL, __void__setDefaultAttributes__C5_std_string_R1__bool__bool__int, "A useful method to set the most common StateAttribute's in one call. ", "If texturefile is empty, then texturing is turned off."); I_Method0(int, getLevelOfDetail, + Properties::NON_VIRTUAL, __int__getLevelOfDetail, "(EXPERIMENTAL) Get the level of detail. ", ""); I_Method1(void, setLevelOfDetail, IN, int, v, + Properties::NON_VIRTUAL, __void__setLevelOfDetail__int, "(EXPERIMENTAL) Set the level of detail. ", "The total number of particles is divided by the detail value to get the actual number of particles to be drawn. This value must be greater than zero."); I_Method1(void, update, IN, double, dt, + Properties::VIRTUAL, __void__update__double, "Update the particles. Don't call this directly, use a ParticleSystemUpdater instead. ", ""); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__osg_State_R1, "Deprecated. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __osg_BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); I_Method0(osgDB::ReadWriteMutex *, getReadWriteMutex, + Properties::NON_VIRTUAL, __osgDB_ReadWriteMutex_P1__getReadWriteMutex, "", ""); diff --git a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp index 2a17cd303..cd2ad0d9a 100644 --- a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) I_BaseType(osg::Node); I_Constructor0(____ParticleSystemUpdater, "", @@ -35,74 +35,92 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __bool__addParticleSystem__ParticleSystem_P1, "Add a particle system to the list. ", ""); I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __bool__removeParticleSystem__ParticleSystem_P1, "Remove a particle system from the list (by pointer). ", ""); I_MethodWithDefaults2(bool, removeParticleSystem, IN, unsigned int, i, , IN, unsigned int, numParticleSystemsToRemove, 1, + Properties::NON_VIRTUAL, __bool__removeParticleSystem__unsigned_int__unsigned_int, "Remove a particle system(s) from the list (by index). ", ""); I_Method2(bool, replaceParticleSystem, IN, osgParticle::ParticleSystem *, origPS, IN, osgParticle::ParticleSystem *, newPS, + Properties::NON_VIRTUAL, __bool__replaceParticleSystem__ParticleSystem_P1__ParticleSystem_P1, "Replace ParticleSystem with another ParticleSystem. ", ""); I_Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, "set a particle system by index. ", ""); I_Method0(unsigned int, getNumParticleSystems, + Properties::NON_VIRTUAL, __unsigned_int__getNumParticleSystems, "Return the number of particle systems on the list. ", ""); I_Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, __ParticleSystem_P1__getParticleSystem__unsigned_int, "Get a particle system from the list. ", ""); I_Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_ParticleSystem_P1__getParticleSystem__unsigned_int, "Get a particle system from the list. ", ""); I_Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __bool__containsParticleSystem__C5_ParticleSystem_P1, "return true if ParticleSystem is contained within ParticlsSystemUpdater. ", ""); I_Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, __unsigned_int__getParticleSystemIndex__C5_ParticleSystem_P1, "get index number of ParticleSystem. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __osg_BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osgParticle/Placer.cpp b/src/osgWrappers/osgParticle/Placer.cpp index 331a7ca51..5058d2612 100644 --- a/src/osgWrappers/osgParticle/Placer.cpp +++ b/src/osgWrappers/osgParticle/Placer.cpp @@ -34,22 +34,27 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, __void__place__Particle_P1, "Place a particle. Must be implemented in descendant classes. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::PURE_VIRTUAL, __osg_Vec3__getControlPosition, "Return the control position of particles that placer will generate. Must be implemented in descendant classes. ", ""); diff --git a/src/osgWrappers/osgParticle/PointPlacer.cpp b/src/osgWrappers/osgParticle/PointPlacer.cpp index 6f272544e..34159ddae 100644 --- a/src/osgWrappers/osgParticle/PointPlacer.cpp +++ b/src/osgWrappers/osgParticle/PointPlacer.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PointPlacer) I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____PointPlacer, "", @@ -34,30 +34,37 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__place__Particle_P1, "Place a particle. ", "This method is called automatically by ModularEmitter and should not be called manually."); I_Method0(osg::Vec3, getControlPosition, + Properties::VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp index dd24c3371..970184a69 100644 --- a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp +++ b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp @@ -30,7 +30,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) I_BaseType(osg::Node); I_Constructor0(____PrecipitationEffect, "", @@ -40,146 +40,182 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, rain, IN, float, intensity, + Properties::NON_VIRTUAL, __void__rain__float, "Set all the parameters to create an rain effect of specified intensity. ", ""); I_Method1(void, snow, IN, float, intensity, + Properties::NON_VIRTUAL, __void__snow__float, "Set all the parameters to create an snow effect of specified intensity. ", ""); I_Method1(void, setMaximumParticleDensity, IN, float, density, + Properties::NON_VIRTUAL, __void__setMaximumParticleDensity__float, "", ""); I_Method0(float, setMaximumParticleDensity, + Properties::NON_VIRTUAL, __float__setMaximumParticleDensity, "", ""); I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, __void__setWind__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getWind, "", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "", ""); I_Method1(void, setCellSize, IN, const osg::Vec3 &, cellSize, + Properties::NON_VIRTUAL, __void__setCellSize__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCellSize, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCellSize, "", ""); I_Method1(void, setParticleSpeed, IN, float, particleSpeed, + Properties::NON_VIRTUAL, __void__setParticleSpeed__float, "", ""); I_Method0(float, getParticleSpeed, + Properties::NON_VIRTUAL, __float__getParticleSpeed, "", ""); I_Method1(void, setParticleSize, IN, float, particleSize, + Properties::NON_VIRTUAL, __void__setParticleSize__float, "", ""); I_Method0(float, getParticleSize, + Properties::NON_VIRTUAL, __float__getParticleSize, "", ""); I_Method1(void, setParticleColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setParticleColor__C5_osg_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getParticleColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getParticleColor, "", ""); I_Method1(void, setNearTransition, IN, float, nearTransition, + Properties::NON_VIRTUAL, __void__setNearTransition__float, "", ""); I_Method0(float, getNearTransition, + Properties::NON_VIRTUAL, __float__getNearTransition, "", ""); I_Method1(void, setFarTransition, IN, float, farTransition, + Properties::NON_VIRTUAL, __void__setFarTransition__float, "", ""); I_Method0(float, getFarTransition, + Properties::NON_VIRTUAL, __float__getFarTransition, "", ""); I_Method1(void, setUseFarLineSegments, IN, bool, useFarLineSegments, + Properties::NON_VIRTUAL, __void__setUseFarLineSegments__bool, "", ""); I_Method0(bool, getUseFarLineSegments, + Properties::NON_VIRTUAL, __bool__getUseFarLineSegments, "", ""); I_Method1(void, setFog, IN, osg::Fog *, fog, + Properties::NON_VIRTUAL, __void__setFog__osg_Fog_P1, "", ""); I_Method0(osg::Fog *, getFog, + Properties::NON_VIRTUAL, __osg_Fog_P1__getFog, "", ""); I_Method0(const osg::Fog *, getFog, + Properties::NON_VIRTUAL, __C5_osg_Fog_P1__getFog, "", ""); I_Method0(osg::Geometry *, getQuadGeometry, + Properties::NON_VIRTUAL, __osg_Geometry_P1__getQuadGeometry, "", ""); I_Method0(osg::StateSet *, getQuadStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getQuadStateSet, "", ""); I_Method0(osg::Geometry *, getLineGeometry, + Properties::NON_VIRTUAL, __osg_Geometry_P1__getLineGeometry, "", ""); I_Method0(osg::StateSet *, getLineStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getLineStateSet, "", ""); I_Method0(osg::Geometry *, getPointGeometry, + Properties::NON_VIRTUAL, __osg_Geometry_P1__getPointGeometry, "", ""); I_Method0(osg::StateSet *, getPointStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getPointStateSet, "", ""); @@ -238,7 +274,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >, osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap); -BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable) I_BaseType(osg::Drawable); I_Constructor0(____PrecipitationDrawable, "", @@ -248,90 +284,112 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_PrimitiveFunctor_R1, "Return true if the Drawable subclass supports accept(PrimitiveFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __void__accept__osg_PrimitiveFunctor_R1, "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveFunctor only provides const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); I_Method1(bool, supports, IN, const osg::PrimitiveIndexFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_PrimitiveIndexFunctor_R1, "Return true if the Drawable subclass supports accept(PrimitiveIndexFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveIndexFunctor &, x, + Properties::VIRTUAL, __void__accept__osg_PrimitiveIndexFunctor_R1, "Accept a PrimitiveIndexFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", "return true if functor handled by drawable, return false on failure of drawable to generate functor calls. Note, PrimtiveIndexFunctor only provide const access of the primitives, as primitives may be procedurally generated so one cannot modify it. "); I_Method1(void, setRequiresPreviousMatrix, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setRequiresPreviousMatrix__bool, "", ""); I_Method0(bool, getRequiresPreviousMatrix, + Properties::NON_VIRTUAL, __bool__getRequiresPreviousMatrix, "", ""); I_Method1(void, setGeometry, IN, osg::Geometry *, geom, + Properties::NON_VIRTUAL, __void__setGeometry__osg_Geometry_P1, "", ""); I_Method0(osg::Geometry *, getGeometry, + Properties::NON_VIRTUAL, __osg_Geometry_P1__getGeometry, "", ""); I_Method0(const osg::Geometry *, getGeometry, + Properties::NON_VIRTUAL, __C5_osg_Geometry_P1__getGeometry, "", ""); I_Method1(void, setDrawType, IN, GLenum, type, + Properties::NON_VIRTUAL, __void__setDrawType__GLenum, "", ""); I_Method0(GLenum, getDrawType, + Properties::NON_VIRTUAL, __GLenum__getDrawType, "", ""); I_Method1(void, setNumberOfVertices, IN, unsigned int, numVertices, + Properties::NON_VIRTUAL, __void__setNumberOfVertices__unsigned_int, "", ""); I_Method0(unsigned int, getNumberOfVertices, + Properties::NON_VIRTUAL, __unsigned_int__getNumberOfVertices, "", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1, "drawImplementation(State&) is a pure virtual method for the actual implementation of OpenGL drawing calls, such as vertex arrays and primitives, that must be implemented in concrete subclasses of the Drawable base class, examples include osg::Geometry and osg::ShapeDrawable. ", " param state The osg::State object that encapulates the current OpenGL state for the current graphics context. "); I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getCurrentCellMatrixMap, + Properties::NON_VIRTUAL, __CellMatrixMap_R1__getCurrentCellMatrixMap, "", ""); I_Method0(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, getPreviousCellMatrixMap, + Properties::NON_VIRTUAL, __CellMatrixMap_R1__getPreviousCellMatrixMap, "", ""); I_Method0(void, newFrame, + Properties::NON_VIRTUAL, __void__newFrame, "", ""); diff --git a/src/osgWrappers/osgParticle/Program.cpp b/src/osgWrappers/osgParticle/Program.cpp index 0eabc8ab2..9af93b226 100644 --- a/src/osgWrappers/osgParticle/Program.cpp +++ b/src/osgWrappers/osgParticle/Program.cpp @@ -33,18 +33,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); diff --git a/src/osgWrappers/osgParticle/RadialShooter.cpp b/src/osgWrappers/osgParticle/RadialShooter.cpp index d2023a8c1..29108c4f5 100644 --- a/src/osgWrappers/osgParticle/RadialShooter.cpp +++ b/src/osgWrappers/osgParticle/RadialShooter.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::RadialShooter) I_BaseType(osgParticle::Shooter); I_Constructor0(____RadialShooter, "", @@ -35,74 +35,92 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) "", ""); 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_Method0(const osgParticle::rangef &, getThetaRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getThetaRange, "Get the range of possible values for theta angle. ", ""); I_Method1(void, setThetaRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setThetaRange__C5_rangef_R1, "Set the range of possible values for theta angle. ", ""); I_Method2(void, setThetaRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setThetaRange__float__float, "Set the range of possible values for theta angle. ", ""); I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getPhiRange, "Get the range of possible values for phi angle. ", ""); I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setPhiRange__C5_rangef_R1, "Set the range of possible values for phi angle. ", ""); I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setPhiRange__float__float, "Set the range of possible values for phi angle. ", ""); I_Method0(const osgParticle::rangef &, getInitialSpeedRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getInitialSpeedRange, "Get the range of possible values for initial speed of particles. ", ""); I_Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setInitialSpeedRange__C5_rangef_R1, "Set the range of possible values for initial speed of particles. ", ""); I_Method2(void, setInitialSpeedRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setInitialSpeedRange__float__float, "Set the range of possible values for initial speed of particles. ", ""); I_Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange, + Properties::NON_VIRTUAL, __C5_rangev3_R1__getInitialRotationalSpeedRange, "Get the range of possible values for initial rotational speed of particles. ", ""); I_Method1(void, setInitialRotationalSpeedRange, IN, const osgParticle::rangev3 &, r, + Properties::NON_VIRTUAL, __void__setInitialRotationalSpeedRange__C5_rangev3_R1, "Set the range of possible values for initial rotational speed of particles. ", ""); I_Method2(void, setInitialRotationalSpeedRange, IN, const osg::Vec3 &, r1, IN, const osg::Vec3 &, r2, + Properties::NON_VIRTUAL, __void__setInitialRotationalSpeedRange__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "Set the range of possible values for initial rotational speed of particles. ", ""); I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__shoot__Particle_P1, "Shoot a particle. Do not call this method manually. ", ""); diff --git a/src/osgWrappers/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/osgParticle/RandomRateCounter.cpp index 6d5fe21a6..a4429d039 100644 --- a/src/osgWrappers/osgParticle/RandomRateCounter.cpp +++ b/src/osgWrappers/osgParticle/RandomRateCounter.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) I_BaseType(osgParticle::VariableRateCounter); I_Constructor0(____RandomRateCounter, "", @@ -32,26 +32,32 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, __int__numParticlesToCreate__double, "Return the number of particles to be created in this frame. ", ""); diff --git a/src/osgWrappers/osgParticle/SectorPlacer.cpp b/src/osgWrappers/osgParticle/SectorPlacer.cpp index cf598bcf9..254edaac6 100644 --- a/src/osgWrappers/osgParticle/SectorPlacer.cpp +++ b/src/osgWrappers/osgParticle/SectorPlacer.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SectorPlacer) I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____SectorPlacer, "", @@ -35,54 +35,67 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) "", ""); I_Method0(const osgParticle::rangef &, getRadiusRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getRadiusRange, "Get the range of possible values for radius. ", ""); I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setRadiusRange__C5_rangef_R1, "Set the range of possible values for radius. ", ""); I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setRadiusRange__float__float, "Set the range of possible values for radius. ", ""); I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getPhiRange, "Get the range of possible values for the central angle. ", ""); I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setPhiRange__C5_rangef_R1, "Set the range of possible values for the central angle. ", ""); I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, __void__setPhiRange__float__float, "Set the range of possible values for the central angle. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__place__Particle_P1, "Place a particle. Do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/osgParticle/SegmentPlacer.cpp index 6c534313d..0e73fc68f 100644 --- a/src/osgWrappers/osgParticle/SegmentPlacer.cpp +++ b/src/osgWrappers/osgParticle/SegmentPlacer.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) I_BaseType(osgParticle::Placer); I_Constructor0(____SegmentPlacer, "", @@ -34,58 +34,72 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) "", ""); 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_Method0(const osg::Vec3 &, getVertexA, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVertexA, "get vertex A. ", ""); I_Method1(void, setVertexA, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setVertexA__C5_osg_Vec3_R1, "Set vertex A of the segment as a vector. ", ""); I_Method3(void, setVertexA, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__setVertexA__float__float__float, "Set vertex A of the segment as three floats. ", ""); I_Method0(const osg::Vec3 &, getVertexB, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getVertexB, "get vertex B. ", ""); I_Method1(void, setVertexB, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setVertexB__C5_osg_Vec3_R1, "Set vertex B of the segment as a vector. ", ""); I_Method3(void, setVertexB, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, __void__setVertexB__float__float__float, "Set vertex B of the segment as three floats. ", ""); I_Method2(void, setSegment, IN, const osg::Vec3 &, A, IN, const osg::Vec3 &, B, + Properties::NON_VIRTUAL, __void__setSegment__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "Set both vertices. ", ""); I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::VIRTUAL, __void__place__Particle_P1, "Place a particle. This method is called by ModularEmitter, do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/Shooter.cpp b/src/osgWrappers/osgParticle/Shooter.cpp index 50eb010d2..f0b69a567 100644 --- a/src/osgWrappers/osgParticle/Shooter.cpp +++ b/src/osgWrappers/osgParticle/Shooter.cpp @@ -33,18 +33,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, __void__shoot__Particle_P1, "Shoot a particle. ", "Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged."); diff --git a/src/osgWrappers/osgParticle/SmokeEffect.cpp b/src/osgWrappers/osgParticle/SmokeEffect.cpp index 4b4dfb478..902dc5e47 100644 --- a/src/osgWrappers/osgParticle/SmokeEffect.cpp +++ b/src/osgWrappers/osgParticle/SmokeEffect.cpp @@ -26,9 +26,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SmokeEffect) I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____SmokeEffect__bool, "", ""); @@ -41,50 +42,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, __C5_Program_P1__getProgram, "", ""); diff --git a/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp b/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp index 8e0eda752..0e793a30f 100644 --- a/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp +++ b/src/osgWrappers/osgParticle/SmokeTrailEffect.cpp @@ -26,9 +26,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect) I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, ____SmokeTrailEffect__bool, "", ""); @@ -41,50 +42,62 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method0(void, setDefaults, + Properties::VIRTUAL, __void__setDefaults, "", ""); I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, __void__setUpEmitterAndProgram, "", ""); I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __Emitter_P1__getEmitter, "", ""); I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, __C5_Emitter_P1__getEmitter, "", ""); I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, __Program_P1__getProgram, "", ""); I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, __C5_Program_P1__getProgram, "", ""); diff --git a/src/osgWrappers/osgParticle/VariableRateCounter.cpp b/src/osgWrappers/osgParticle/VariableRateCounter.cpp index 12fa808aa..89390d295 100644 --- a/src/osgWrappers/osgParticle/VariableRateCounter.cpp +++ b/src/osgWrappers/osgParticle/VariableRateCounter.cpp @@ -33,26 +33,32 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::VariableRateCounter) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const osgParticle::rangef &, getRateRange, + Properties::NON_VIRTUAL, __C5_rangef_R1__getRateRange, "", ""); I_Method1(void, setRateRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, __void__setRateRange__C5_rangef_R1, "", ""); I_Method2(void, setRateRange, IN, float, minrange, IN, float, maxrange, + Properties::NON_VIRTUAL, __void__setRateRange__float__float, "", ""); diff --git a/src/osgWrappers/osgParticle/range.cpp b/src/osgWrappers/osgParticle/range.cpp index b45e3bc23..05ab4f276 100644 --- a/src/osgWrappers/osgParticle/range.cpp +++ b/src/osgWrappers/osgParticle/range.cpp @@ -40,18 +40,22 @@ BEGIN_VALUE_REFLECTOR(osgParticle::range< float >) "Construct and initialize min and max directly. ", ""); I_Method2(void, set, IN, const float &, mn, IN, const float &, mx, + Properties::NON_VIRTUAL, __void__set__C5_ValueType_R1__C5_ValueType_R1, "Set min and max. ", ""); I_Method0(float, get_random, + Properties::NON_VIRTUAL, __ValueType__get_random, "Get a random value between min and max. ", ""); I_Method0(float, get_random_sqrtf, + Properties::NON_VIRTUAL, __ValueType__get_random_sqrtf, "Get a random square root value between min and max. ", ""); I_Method0(float, mid, + Properties::NON_VIRTUAL, __ValueType__mid, "", ""); @@ -68,18 +72,22 @@ BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec2 >) "Construct and initialize min and max directly. ", ""); I_Method2(void, set, IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx, + Properties::NON_VIRTUAL, __void__set__C5_ValueType_R1__C5_ValueType_R1, "Set min and max. ", ""); I_Method0(osg::Vec2, get_random, + Properties::NON_VIRTUAL, __ValueType__get_random, "Get a random value between min and max. ", ""); I_Method0(osg::Vec2, get_random_sqrtf, + Properties::NON_VIRTUAL, __ValueType__get_random_sqrtf, "Get a random square root value between min and max. ", ""); I_Method0(osg::Vec2, mid, + Properties::NON_VIRTUAL, __ValueType__mid, "", ""); @@ -96,18 +104,22 @@ BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec3 >) "Construct and initialize min and max directly. ", ""); I_Method2(void, set, IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx, + Properties::NON_VIRTUAL, __void__set__C5_ValueType_R1__C5_ValueType_R1, "Set min and max. ", ""); I_Method0(osg::Vec3, get_random, + Properties::NON_VIRTUAL, __ValueType__get_random, "Get a random value between min and max. ", ""); I_Method0(osg::Vec3, get_random_sqrtf, + Properties::NON_VIRTUAL, __ValueType__get_random_sqrtf, "Get a random square root value between min and max. ", ""); I_Method0(osg::Vec3, mid, + Properties::NON_VIRTUAL, __ValueType__mid, "", ""); @@ -124,18 +136,22 @@ BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec4 >) "Construct and initialize min and max directly. ", ""); I_Method2(void, set, IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx, + Properties::NON_VIRTUAL, __void__set__C5_ValueType_R1__C5_ValueType_R1, "Set min and max. ", ""); I_Method0(osg::Vec4, get_random, + Properties::NON_VIRTUAL, __ValueType__get_random, "Get a random value between min and max. ", ""); I_Method0(osg::Vec4, get_random_sqrtf, + Properties::NON_VIRTUAL, __ValueType__get_random_sqrtf, "Get a random square root value between min and max. ", ""); I_Method0(osg::Vec4, mid, + Properties::NON_VIRTUAL, __ValueType__mid, "", ""); diff --git a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp index cdd6cd7da..a81db4fe2 100644 --- a/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp +++ b/src/osgWrappers/osgProducer/GraphicsContextImplementation.cpp @@ -24,54 +24,67 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::GraphicsContextImplementation) I_BaseType(osg::GraphicsContext); I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, ____GraphicsContextImplementation__Traits_P1, "Construct a graphics context to specified traits. ", ""); I_Constructor1(IN, Producer::RenderSurface *, rs, + Properties::NON_EXPLICIT, ____GraphicsContextImplementation__Producer_RenderSurface_P1, "Construct a graphics context with specified RenderSurface. ", ""); I_Method0(Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, __Producer_RenderSurface_P1__getRenderSurface, "Return the RenderSurface that implements the graphics context. ", ""); I_Method0(const Producer::RenderSurface *, getRenderSurface, + Properties::NON_VIRTUAL, __C5_Producer_RenderSurface_P1__getRenderSurface, "Return the const RenderSurface that implements the graphics context. ", ""); I_Method0(bool, valid, + Properties::VIRTUAL, __bool__valid, "Return whether a valid and usable GraphicsContext has been created - assume success. ", ""); I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, __bool__realizeImplementation, "Realise the GraphicsContext. ", ""); I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, __bool__isRealizedImplementation, "Return true if the graphics context has been realised and is ready to use. ", ""); I_Method0(void, closeImplementation, + Properties::VIRTUAL, __void__closeImplementation, "Close the graphics context. ", ""); I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, __bool__makeCurrentImplementation, "Make this graphics context current. ", ""); I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, readContext, + Properties::VIRTUAL, __bool__makeContextCurrentImplementation__osg_GraphicsContext_P1, "Make this graphics context current with specified read context. ", ""); I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, __bool__releaseContextImplementation, "Release the graphics context. ", ""); I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::VIRTUAL, __void__bindPBufferToTextureImplementation__GLenum, "Bind the graphics context to associated texture. ", ""); I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, __void__swapBuffersImplementation, "swap the front and back buffers. ", ""); diff --git a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp index b60017995..563132a12 100644 --- a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp +++ b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp @@ -30,122 +30,152 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::KeyboardMouseCallback) "", ""); I_Method1(void, mouseScroll, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm, + Properties::VIRTUAL, __void__mouseScroll__Producer_KeyboardMouseCallback_ScrollingMotion, "", ""); I_Method2(void, mouseScroll2D, IN, float, x, IN, float, x, + Properties::VIRTUAL, __void__mouseScroll2D__float__float, "", ""); I_Method1(void, penPressure, IN, float, pressure, + Properties::VIRTUAL, __void__penPressure__float, "", ""); I_Method2(void, penProximity, IN, Producer::KeyboardMouseCallback::TabletPointerType, x, IN, bool, x, + Properties::VIRTUAL, __void__penProximity__Producer_KeyboardMouseCallback_TabletPointerType__bool, "", ""); I_Method2(void, mouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, __void__mouseMotion__float__float, "", ""); I_Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my, + Properties::VIRTUAL, __void__passiveMouseMotion__float__float, "", ""); I_Method2(void, mouseWarp, IN, float, mx, IN, float, my, + Properties::VIRTUAL, __void__mouseWarp__float__float, "", ""); I_Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, __void__buttonPress__float__float__unsigned_int, "", ""); I_Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, __void__doubleButtonPress__float__float__unsigned_int, "", ""); I_Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton, + Properties::VIRTUAL, __void__buttonRelease__float__float__unsigned_int, "", ""); I_Method1(void, keyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, __void__keyPress__Producer_KeyCharacter, "", ""); I_Method1(void, keyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, __void__keyRelease__Producer_KeyCharacter, "", ""); I_Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, __void__specialKeyPress__Producer_KeyCharacter, "", ""); I_Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key, + Properties::VIRTUAL, __void__specialKeyRelease__Producer_KeyCharacter, "", ""); I_Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, __void__windowConfig__int__int__unsigned_int__unsigned_int, "", ""); I_Method0(void, shutdown, + Properties::VIRTUAL, __void__shutdown, "", ""); I_Method1(void, setEscapeSetDone, IN, bool, esc, + Properties::NON_VIRTUAL, __void__setEscapeSetDone__bool, "", ""); I_Method0(bool, getEscapeSetDone, + Properties::NON_VIRTUAL, __bool__getEscapeSetDone, "", ""); I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, "", ""); I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method1(bool, takeEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, __bool__takeEventQueue__EventQueue_R1, "", ""); I_Method1(bool, copyEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, __bool__copyEventQueue__EventQueue_R1, "", ""); I_Method1(void, setEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, __void__setEventQueue__EventQueue_R1, "", ""); I_Method1(void, appendEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue, + Properties::NON_VIRTUAL, __void__appendEventQueue__EventQueue_R1, "", ""); I_Method0(bool, done, + Properties::NON_VIRTUAL, __bool__done, "", ""); I_Method0(double, getTime, + Properties::NON_VIRTUAL, __double__getTime, "", ""); I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, __Producer_KeyboardMouse_P1__getKeyboardMouse, "", ""); I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, "", ""); I_Method0(osgGA::GUIEventAdapter *, createEventAdapter, + Properties::NON_VIRTUAL, __osgGA_GUIEventAdapter_P1__createEventAdapter, "", ""); I_Method0(void, updateWindowSize, + Properties::NON_VIRTUAL, __void__updateWindowSize, "", ""); diff --git a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp index 9624f1116..ca3cd669f 100644 --- a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp +++ b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp @@ -39,215 +39,267 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::GraphicsContextImplement TYPE_NAME_ALIAS(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >, osgProducer::OsgCameraGroup::SceneHandlerList); -BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup) I_Constructor0(____OsgCameraGroup, "", ""); I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, ____OsgCameraGroup__Producer_CameraConfig_P1, "", ""); I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, ____OsgCameraGroup__C5_std_string_R1, "", ""); I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, ____OsgCameraGroup__osg_ArgumentParser_R1, "", ""); I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, __void__setApplicationUsage__osg_ApplicationUsage_P1, "", ""); I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __osg_ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __C5_osg_ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method1(void, setGraphicsContextList, IN, osgProducer::OsgCameraGroup::GraphicsContextList &, gcList, + Properties::NON_VIRTUAL, __void__setGraphicsContextList__GraphicsContextList_R1, "", ""); I_Method0(osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, __GraphicsContextList_R1__getGraphicsContextList, "", ""); I_Method0(const osgProducer::OsgCameraGroup::GraphicsContextList &, getGraphicsContextList, + Properties::NON_VIRTUAL, __C5_GraphicsContextList_R1__getGraphicsContextList, "", ""); I_Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, __SceneHandlerList_R1__getSceneHandlerList, "", ""); I_Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList, + Properties::NON_VIRTUAL, __C5_SceneHandlerList_R1__getSceneHandlerList, "", ""); I_Method1(void, setSceneData, IN, osg::Node *, scene, + Properties::NON_VIRTUAL, __void__setSceneData__osg_Node_P1, "Set the scene data to be rendered. ", " param scene The node to be used as the starting point during the rendering traversal of the scene graph. "); I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __osg_Node_P1__getSceneData, "Get the scene data being used for rendering. ", "The node being used as the starting point during the rendering traversal of the scene graph. "); I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getSceneData, "", ""); I_Method1(void, setSceneDecorator, IN, osg::Group *, decorator, + Properties::NON_VIRTUAL, __void__setSceneDecorator__osg_Group_P1, "", ""); I_Method0(osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, __osg_Group_P1__getSceneDecorator, "", ""); I_Method0(const osg::Group *, getSceneDecorator, + Properties::NON_VIRTUAL, __C5_osg_Group_P1__getSceneDecorator, "", ""); I_Method0(osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, __osg_Node_P1__getTopMostSceneData, "", ""); I_Method0(const osg::Node *, getTopMostSceneData, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getTopMostSceneData, "", ""); I_Method0(void, updatedSceneData, + Properties::VIRTUAL, __void__updatedSceneData, "Update internal structures w.r.t updated scene data. ", ""); I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, __void__setDisplaySettings__osg_DisplaySettings_P1, "", ""); I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __osg_DisplaySettings_P1__getDisplaySettings, "", ""); I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __C5_osg_DisplaySettings_P1__getDisplaySettings, "", ""); I_Method1(void, setCullSettings, IN, const osg::CullSettings &, cs, + Properties::NON_VIRTUAL, __void__setCullSettings__C5_osg_CullSettings_R1, "", ""); I_Method0(osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, __osg_CullSettings_R1__getCullSettings, "", ""); I_Method0(const osg::CullSettings &, getCullSettings, + Properties::NON_VIRTUAL, __C5_osg_CullSettings_R1__getCullSettings, "", ""); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, __void__setFrameStamp__osg_FrameStamp_P1, "", ""); I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset, + Properties::NON_VIRTUAL, __void__setGlobalStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getGlobalStateSet, "", ""); I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getGlobalStateSet, "", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor, + Properties::NON_VIRTUAL, __void__setClearColor__C5_osg_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getClearColor, "", ""); I_Method1(void, setLODScale, IN, float, scale, + Properties::NON_VIRTUAL, __void__setLODScale__float, "", ""); I_Method0(float, getLODScale, + Properties::NON_VIRTUAL, __float__getLODScale, "", ""); I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, "", ""); I_Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options, + Properties::NON_VIRTUAL, __void__setRealizeSceneViewOptions__unsigned_int, "Set the options to set up SceneView with, see osgUtil::SceneView::Options for available options. ", ""); I_Method0(unsigned int, getRealizeSceneViewOptions, + Properties::NON_VIRTUAL, __unsigned_int__getRealizeSceneViewOptions, "Get the options to set up SceneView with. ", ""); I_Method1(void, setEnableProcessorAffinityHint, IN, bool, enableProccessAffinityHint, + Properties::NON_VIRTUAL, __void__setEnableProcessorAffinityHint__bool, "Set whether processor affinity should be enable where supported by hardware. ", ""); I_Method0(bool, getEnableProcessorAffinityHint, + Properties::NON_VIRTUAL, __bool__getEnableProcessorAffinityHint, "Get whether processor affinity should be enable where supported by hardware. ", ""); I_Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb, + Properties::NON_VIRTUAL, __void__setRealizeCallback__RealizeCallback_P1, "Set the realize callback to use when once the render surfaces are realized. ", ""); I_Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, __RealizeCallback_P1__getRealizeCallback, "Get the realize callback. ", ""); I_Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback, + Properties::NON_VIRTUAL, __C5_RealizeCallback_P1__getRealizeCallback, "Get the const realize callback. ", ""); I_Method0(void, advance, + Properties::NON_VIRTUAL, __void__advance, "", ""); I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + Properties::VIRTUAL, __bool__realize__ThreadingModel, "Set the threading model and then call realize(). ", ""); I_Method0(bool, realize, + Properties::VIRTUAL, __bool__realize, "Realize the render surfaces (OpenGL graphics) and various threads, and call any realize callbacks. ", ""); I_Method1(void, setView, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, __void__setView__C5_osg_Matrixd_R1, "Set the model view matrix of the camera group, by individually set all the camera groups's camera. ", ""); I_Method0(osg::Matrixd, getViewMatrix, + Properties::NON_VIRTUAL, __osg_Matrixd__getViewMatrix, "Get the model view martrix of the camera group, taking its value for camera 0. ", ""); I_Method0(void, sync, + Properties::VIRTUAL, __void__sync, "", ""); I_Method0(void, frame, + Properties::VIRTUAL, __void__frame, "Dispatch the cull and draw for each of the Camera's for this frame. ", ""); I_Method0(void, cleanup_frame, + Properties::VIRTUAL, __void__cleanup_frame, "Dispatch a clean up frame that should be called before closing a OsgCameraGroup, i.e. ", "on exit from an app. The clean up frame first release all GL objects associated with all the graphics context associated with the camera group, then runs a special frame that does the actual OpenGL deletion of GL objects for each graphics context. "); @@ -316,26 +368,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::GraphicsContextImplementation > "", ""); I_Constructor1(IN, osgProducer::GraphicsContextImplementation *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgProducer::GraphicsContextImplementation *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgProducer::GraphicsContextImplementation *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgProducer::GraphicsContextImplementation > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp index ed677d5ce..d8fb46806 100644 --- a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp +++ b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp @@ -23,116 +23,144 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, ____OsgSceneHandler__osg_DisplaySettings_P1, "", ""); I_Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView, + Properties::NON_VIRTUAL, __void__setSceneView__osgUtil_SceneView_P1, "set the scene view to which will manage rendering of the OSG scene. ", ""); I_Method0(osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, __osgUtil_SceneView_P1__getSceneView, "get the scene view. ", ""); I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, __C5_osgUtil_SceneView_P1__getSceneView, "get the const scene view. ", ""); I_Method0(void, init, + Properties::VIRTUAL, __void__init, "override the init method to force it be run one at a time. ", ""); I_Method1(void, clear, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__clear__Producer_Camera_R1, "", ""); I_Method1(void, clearImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__clearImplementation__Producer_Camera_R1, "", ""); I_Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, __void__setClearCallback__Callback_P1, "", ""); I_Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, __Callback_P1__getClearCallback, "", ""); I_Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getClearCallback, "", ""); I_Method1(void, cull, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__cull__Producer_Camera_R1, "", ""); I_Method1(void, cullImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__cullImplementation__Producer_Camera_R1, "", ""); I_Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, __void__setCullCallback__Callback_P1, "", ""); I_Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, __Callback_P1__getCullCallback, "", ""); I_Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getCullCallback, "", ""); I_Method1(void, draw, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__draw__Producer_Camera_R1, "", ""); I_Method1(void, drawImplementation, IN, Producer::Camera &, camera, + Properties::VIRTUAL, __void__drawImplementation__Producer_Camera_R1, "", ""); I_Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback, + Properties::NON_VIRTUAL, __void__setDrawCallback__Callback_P1, "", ""); I_Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, __Callback_P1__getDrawCallback, "", ""); I_Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback, + Properties::NON_VIRTUAL, __C5_Callback_P1__getDrawCallback, "", ""); I_Method1(void, setCollectStats, IN, bool, collectStats, + Properties::NON_VIRTUAL, __void__setCollectStats__bool, "", ""); I_Method0(bool, getCollectStats, + Properties::NON_VIRTUAL, __bool__getCollectStats, "", ""); I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, __bool__getStats__osgUtil_Statistics_R1, "", ""); I_Method1(void, setContextID, IN, int, id, + Properties::NON_VIRTUAL, __void__setContextID__int, "", ""); I_Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setFlushOfAllDeletedGLObjectsOnNextFrame__bool, "", ""); I_Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame, + Properties::NON_VIRTUAL, __bool__getFlushOfAllDeletedGLObjectsOnNextFrame, "", ""); I_Method1(void, setCleanUpOnNextFrame, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setCleanUpOnNextFrame__bool, "", ""); I_Method0(bool, getCleanUpOnNextFrame, + Properties::NON_VIRTUAL, __bool__getCleanUpOnNextFrame, "", ""); diff --git a/src/osgWrappers/osgProducer/Viewer.cpp b/src/osgWrappers/osgProducer/Viewer.cpp index 9e2b1e0f8..6b82a6808 100644 --- a/src/osgWrappers/osgProducer/Viewer.cpp +++ b/src/osgWrappers/osgProducer/Viewer.cpp @@ -53,289 +53,359 @@ BEGIN_ENUM_REFLECTOR(osgProducer::Viewer::ViewerOptions) I_EnumLabel(osgProducer::Viewer::STANDARD_SETTINGS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgProducer::Viewer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::Viewer) I_BaseType(osgProducer::OsgCameraGroup); I_BaseType(osgGA::GUIActionAdapter); I_Constructor0(____Viewer, "", ""); I_Constructor1(IN, Producer::CameraConfig *, cfg, + Properties::NON_EXPLICIT, ____Viewer__Producer_CameraConfig_P1, "", ""); I_Constructor1(IN, const std::string &, configFile, + Properties::NON_EXPLICIT, ____Viewer__C5_std_string_R1, "", ""); I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, ____Viewer__osg_ArgumentParser_R1, "", ""); I_MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, __void__setUpViewer__unsigned_int, "Set up the viewer, allowing to control some aspects of its behavior. ", " param options One or more of the options defined by the ViewerOptions enumeration, combined using the bitwise OR operator (``|''). "); I_Method1(void, setDoneAtElapsedTime, IN, double, elapsedTime, + Properties::NON_VIRTUAL, __void__setDoneAtElapsedTime__double, "Set the viewer so it sets done to true once the refrence time equals or exceeds specified elapsed time. ", "Automatically does a setDoneAtElapsedTimeEnabled(true). "); I_Method0(double, getDoneAtElapsedTime, + Properties::NON_VIRTUAL, __double__getDoneAtElapsedTime, "Get the elapsed time that will cause done to be set to be true. ", ""); I_Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, __void__setDoneAtElapsedTimeEnabled__bool, "Set whether to use a elapsed time to limit the run of the viewer. ", ""); I_Method0(bool, getDoneAtElapsedTimeEnabled, + Properties::NON_VIRTUAL, __bool__getDoneAtElapsedTimeEnabled, "Get whether to use a elapsed time to limit the run of the viewer. ", ""); I_Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber, + Properties::NON_VIRTUAL, __void__setDoneAtFrameNumber__unsigned_int, "Set the viewer so it sets done to true once the frame number equals or exceeds specified frame number. ", "Automatically does a setDoneAtFrameNumberEnabled(true). "); I_Method0(unsigned int, getDoneAtFrameNumber, + Properties::NON_VIRTUAL, __unsigned_int__getDoneAtFrameNumber, "Get the frame number that will cause done to be set to be true. ", ""); I_Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled, + Properties::NON_VIRTUAL, __void__setDoneAtFrameNumberEnabled__bool, "Set whether to use a frame number to limit the run of the viewer. ", ""); I_Method0(bool, getDoneAtFrameNumberEnabled, + Properties::NON_VIRTUAL, __bool__getDoneAtFrameNumberEnabled, "Get whether to use a frame number to limit the run of the viewer. ", ""); I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, __void__setDone__bool, "Set the done flag signalling that the viewer exit. ", ""); I_Method0(bool, getDone, + Properties::NON_VIRTUAL, __bool__getDone, "Get the done flag which signals that the viewer exit. ", ""); I_Method0(bool, done, + Properties::VIRTUAL, __bool__done, "Return true if the application is done and should exit. ", ""); I_Method1(void, setWriteImageWhenDone, IN, bool, enabled, + Properties::NON_VIRTUAL, __void__setWriteImageWhenDone__bool, "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", ""); I_Method0(bool, getWriteImageWhenDone, + Properties::NON_VIRTUAL, __bool__getWriteImageWhenDone, "Set the viewer to take an image snapshot on the last frame() when done is enabled. ", ""); I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setWriteImageFileName__C5_std_string_R1, "Set the filename to write to when the viewer takes an image snapshot on the last frame() when done is enabled. ", ""); I_Method0(const std::string &, getWriteImageFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getWriteImageFileName, "Get the filename to write to when the viewer takes an image snapshot on the last frame() when done is enabled. ", ""); I_Method1(void, setViewByMatrix, IN, const Producer::Matrix &, pm, + Properties::VIRTUAL, __void__setViewByMatrix__C5_Producer_Matrix_R1, "Override the Producer::CameraGroup::setViewByMatrix to catch all changes to view. ", ""); I_Method1(bool, realize, IN, osgProducer::OsgCameraGroup::ThreadingModel, thread_model, + Properties::VIRTUAL, __bool__realize__ThreadingModel, "Set the threading model and then call realize(). ", ""); I_Method0(bool, realize, + Properties::VIRTUAL, __bool__realize, "Realize the render surfaces (OpenGL graphics) and various threads, and call any realize callbacks. ", ""); I_Method0(void, update, + Properties::VIRTUAL, __void__update, "Updated the scene. ", "Handle any queued up events, do an update traversal and set the CameraGroup's setViewByMatrix if any camera manipulators are active. "); I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, __void__setUpdateVisitor__osg_NodeVisitor_P1, "Set the update visitor which does the update traversal of the scene graph. ", "Automatically called by the update() method. "); I_Method0(osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, __osg_NodeVisitor_P1__getUpdateVisitor, "Get the update visitor. ", ""); I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, __C5_osg_NodeVisitor_P1__getUpdateVisitor, "Get the const update visitor. ", ""); I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv, + Properties::NON_VIRTUAL, __void__setEventVisitor__osgGA_EventVisitor_P1, "Set the update visitor which does the event traversal of the scene graph. ", "Automatically called by the update() method. "); I_Method0(osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, __osgGA_EventVisitor_P1__getEventVisitor, "Get the update visitor. ", ""); I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, __C5_osgGA_EventVisitor_P1__getEventVisitor, "Get the const update visitor. ", ""); I_Method0(void, computeActiveCoordinateSystemNodePath, + Properties::NON_VIRTUAL, __void__computeActiveCoordinateSystemNodePath, "", ""); I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, "", ""); I_Method0(osg::NodePath, getCoordinateSystemNodePath, + Properties::NON_VIRTUAL, __osg_NodePath__getCoordinateSystemNodePath, "", ""); I_Method0(void, frame, + Properties::VIRTUAL, __void__frame, "Dispatch the cull and draw for each of the Camera's for this frame. ", ""); I_Method0(void, requestRedraw, + Properties::VIRTUAL, __void__requestRedraw, "requestRedraw() requests a single redraw. ", ""); I_Method1(void, requestContinuousUpdate, IN, bool, x, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __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_Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y, + Properties::NON_VIRTUAL, __bool__computePixelCoords__float__float__unsigned_int__float_R1__float_R1, "Compute, from normalized mouse coords, for sepecified Camera, the pixel coords relative to that Camera's RenderSurface. ", ""); I_Method5(bool, computeNearFarPoints, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, osg::Vec3 &, near, IN, osg::Vec3 &, far, + Properties::NON_VIRTUAL, __bool__computeNearFarPoints__float__float__unsigned_int__osg_Vec3_R1__osg_Vec3_R1, "Compute, from normalized mouse coords, for sepecified Camera, the near and far points in worlds coords. ", ""); I_MethodWithDefaults6(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__unsigned_int__osg_Node_P1__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, "Compute, from normalized mouse coords, for all Cameras, intersections with the specified subgraph. ", ""); I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__unsigned_int__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, "Compute, from normalized mouse coords, for sepecified Camera, intersections with the scene. ", ""); I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__osg_Node_P1__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, "Compute, from normalized mouse coords, for all Cameras, intersections with specified subgraph. ", ""); I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__osgUtil_IntersectVisitor_HitList_R1__osg_Node_NodeMask, "Compute, from normalized mouse coords, for all Cameras, intersections with the scene. ", ""); I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, "Set the EventQueue - a thread safe queue for registering events. ", ""); I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __osgGA_EventQueue_P1__getEventQueue, "Get the EventQueue. ", ""); I_Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm, + Properties::NON_VIRTUAL, __void__setKeyboardMouse__Producer_KeyboardMouse_P1, "", ""); I_Method0(Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, __Producer_KeyboardMouse_P1__getKeyboardMouse, "", ""); I_Method0(const Producer::KeyboardMouse *, getKeyboardMouse, + Properties::NON_VIRTUAL, __C5_Producer_KeyboardMouse_P1__getKeyboardMouse, "", ""); I_Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb, + Properties::NON_VIRTUAL, __void__setKeyboardMouseCallback__osgProducer_KeyboardMouseCallback_P1, "", ""); I_Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, __osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, "", ""); I_Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback, + Properties::NON_VIRTUAL, __C5_osgProducer_KeyboardMouseCallback_P1__getKeyboardMouseCallback, "", ""); I_Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, __EventHandlerList_R1__getEventHandlerList, "", ""); I_Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList, + Properties::NON_VIRTUAL, __C5_EventHandlerList_R1__getEventHandlerList, "", ""); I_Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, __osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, "", ""); I_Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator, + Properties::NON_VIRTUAL, __C5_osgGA_KeySwitchMatrixManipulator_P1__getKeySwitchMatrixManipulator, "", ""); I_Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm, + Properties::NON_VIRTUAL, __unsigned_int__addCameraManipulator__osgGA_MatrixManipulator_P1, "", ""); I_Method1(void, selectCameraManipulator, IN, unsigned int, no, + Properties::NON_VIRTUAL, __void__selectCameraManipulator__unsigned_int, "", ""); I_Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList, + Properties::NON_VIRTUAL, __void__getCameraManipulatorNameList__std_listT1_std_string__R1, "", ""); I_Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __bool__selectCameraManipulatorByName__C5_std_string_R1, "", ""); I_Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, __osgGA_MatrixManipulator_P1__getCameraManipulatorByName__C5_std_string_R1, "", ""); I_Method1(void, setRecordingAnimationPath, IN, bool, on, + Properties::NON_VIRTUAL, __void__setRecordingAnimationPath__bool, "", ""); I_Method0(bool, getRecordingAnimationPath, + Properties::NON_VIRTUAL, __bool__getRecordingAnimationPath, "", ""); I_Method1(void, setAnimationPath, IN, osg::AnimationPath *, path, + Properties::NON_VIRTUAL, __void__setAnimationPath__osg_AnimationPath_P1, "", ""); I_Method0(osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __osg_AnimationPath_P1__getAnimationPath, "", ""); I_Method0(const osg::AnimationPath *, getAnimationPath, + Properties::NON_VIRTUAL, __C5_osg_AnimationPath_P1__getAnimationPath, "", ""); I_Method0(const double *, getPosition, + Properties::NON_VIRTUAL, __C5_double_P1__getPosition, "", ""); I_Method0(double, getSpeed, + Properties::NON_VIRTUAL, __double__getSpeed, "", ""); I_Method0(osg::Quat, getOrientation, + Properties::NON_VIRTUAL, __osg_Quat__getOrientation, "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this viewer. ", ""); I_Method0(void, updatedSceneData, + Properties::VIRTUAL, __void__updatedSceneData, "Update internal structures w.r.t updated scene data. ", ""); I_Method0(void, cleanup_frame, + Properties::VIRTUAL, __void__cleanup_frame, "Dispatch a clean up frame that should be called before closing a OsgCameraGroup, i.e. ", "on exit from an app. The clean up frame first release all GL objects associated with all the graphics context associated with the camera group, then runs a special frame that does the actual OpenGL deletion of GL objects for each graphics context. "); @@ -416,26 +486,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >) "", ""); I_Constructor1(IN, osgGA::GUIEventHandler *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgGA::GUIEventHandler *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgGA::GUIEventHandler *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgGA::GUIEventHandler > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp index 3aeecd269..162c1c1ae 100644 --- a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp +++ b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp @@ -32,65 +32,80 @@ BEGIN_ENUM_REFLECTOR(osgProducer::ViewerEventHandler::FrameStatsMode) I_EnumLabel(osgProducer::ViewerEventHandler::SCENE_STATS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) I_BaseType(osgGA::GUIEventHandler); I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, + Properties::NON_EXPLICIT, ____ViewerEventHandler__OsgCameraGroup_P1, "", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "deprecated, Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, __OsgCameraGroup_P1__getOsgCameraGroup, "", ""); I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, __C5_OsgCameraGroup_P1__getOsgCameraGroup, "", ""); I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setWriteNodeFileName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getWriteNodeFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getWriteNodeFileName, "", ""); I_Method1(void, setDisplayHelp, IN, bool, displayHelp, + Properties::NON_VIRTUAL, __void__setDisplayHelp__bool, "", ""); I_Method0(bool, getDisplayHelp, + Properties::NON_VIRTUAL, __bool__getDisplayHelp, "", ""); I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode, + Properties::NON_VIRTUAL, __void__setFrameStatsMode__FrameStatsMode, "", ""); I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode, + Properties::NON_VIRTUAL, __FrameStatsMode__getFrameStatsMode, "", ""); I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame, + Properties::NON_VIRTUAL, __void__setWriteImageOnNextFrame__bool, "", ""); I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setWriteImageFileName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getWriteImageFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getWriteImageFileName, "", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", ""); diff --git a/src/osgWrappers/osgShadow/OccluderGeometry.cpp b/src/osgWrappers/osgShadow/OccluderGeometry.cpp index 382c639cd..239a360ba 100644 --- a/src/osgWrappers/osgShadow/OccluderGeometry.cpp +++ b/src/osgWrappers/osgShadow/OccluderGeometry.cpp @@ -33,7 +33,7 @@ TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List) TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList); -BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) I_BaseType(osg::Drawable); I_Constructor0(____OccluderGeometry, "", @@ -43,58 +43,72 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __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_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Node *, subgraph, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, __void__computeOccluderGeometry__osg_Node_P1__osg_Matrix_P1__float, "Compute an occluder geometry containing all the geometry in specified subgraph. ", ""); I_MethodWithDefaults3(void, computeOccluderGeometry, IN, osg::Drawable *, drawable, , IN, osg::Matrix *, matrix, 0, IN, float, sampleRatio, 1.0f, + Properties::NON_VIRTUAL, __void__computeOccluderGeometry__osg_Drawable_P1__osg_Matrix_P1__float, "Compute an occluder geometry containing the geometry in specified drawable. ", ""); I_Method2(void, computeShadowVolumeGeometry, IN, const osg::Vec4 &, lightpos, IN, osgShadow::ShadowVolumeGeometry &, svg, + Properties::NON_VIRTUAL, __void__computeShadowVolumeGeometry__C5_osg_Vec4_R1__ShadowVolumeGeometry_R1, "Compute ShadowVolumeGeometry. ", ""); I_Method1(void, setBoundingPolytope, IN, const osg::Polytope &, polytope, + Properties::NON_VIRTUAL, __void__setBoundingPolytope__C5_osg_Polytope_R1, "Set the bounding polytope of the OccluderGeometry. ", ""); I_Method0(osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, __osg_Polytope_R1__getBoundingPolytope, "Get the bounding polytope of the OccluderGeometry. ", ""); I_Method0(const osg::Polytope &, getBoundingPolytope, + Properties::NON_VIRTUAL, __C5_osg_Polytope_R1__getBoundingPolytope, "Get the const bounding polytope of the OccluderGeometry. ", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1, "Render the occluder geometry. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __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, + Properties::NON_VIRTUAL, __void__processGeometry__osg_Drawable_P1__osg_Matrix_P1__float, "", ""); @@ -113,7 +127,7 @@ BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) I_BaseType(osg::Drawable); I_Constructor0(____ShadowVolumeGeometry, "", @@ -123,62 +137,77 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __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, __Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, mode, + Properties::NON_VIRTUAL, __void__setDrawMode__DrawMode, "", ""); I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, __DrawMode__getDrawMode, "", ""); I_Method1(void, setVertices, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, vertices, + Properties::NON_VIRTUAL, __void__setVertices__C5_Vec3List_R1, "", ""); I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, __Vec3List_R1__getVertices, "", ""); I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getVertices, + Properties::NON_VIRTUAL, __C5_Vec3List_R1__getVertices, "", ""); I_Method1(void, setNormals, IN, const osgShadow::ShadowVolumeGeometry::Vec3List &, normals, + Properties::NON_VIRTUAL, __void__setNormals__C5_Vec3List_R1, "", ""); I_Method0(osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, __Vec3List_R1__getNormals, "", ""); I_Method0(const osgShadow::ShadowVolumeGeometry::Vec3List &, getNormals, + Properties::NON_VIRTUAL, __C5_Vec3List_R1__getNormals, "", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1, "Render the occluder geometry. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __osg_BoundingBox__computeBound, "Compute the bounding box around occluder geometry. ", ""); diff --git a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp index 2367767d6..7f0025e2a 100644 --- a/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ParallelSplitShadowMap.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ParallelSplitShadowMap, "", @@ -32,22 +32,27 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) "", ""); 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. "); diff --git a/src/osgWrappers/osgShadow/ShadowMap.cpp b/src/osgWrappers/osgShadow/ShadowMap.cpp index edb423679..0934bdeb8 100644 --- a/src/osgWrappers/osgShadow/ShadowMap.cpp +++ b/src/osgWrappers/osgShadow/ShadowMap.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowMap) I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowMap, "", @@ -32,22 +32,27 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) "", ""); 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. "); diff --git a/src/osgWrappers/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/osgShadow/ShadowTechnique.cpp index 367f1dc44..0cf46056b 100644 --- a/src/osgWrappers/osgShadow/ShadowTechnique.cpp +++ b/src/osgWrappers/osgShadow/ShadowTechnique.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) I_BaseType(osg::Object); I_Constructor0(____ShadowTechnique, "", @@ -35,50 +35,62 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) "", ""); 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_Method0(osgShadow::ShadowedScene *, getShadowedScene, + Properties::NON_VIRTUAL, __ShadowedScene_P1__getShadowedScene, "", ""); I_Method0(void, init, + Properties::VIRTUAL, __void__init, "initialize the ShadowedScene and local cached data structures. ", ""); I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__update__osg_NodeVisitor_R1, "run the update traversal of the ShadowedScene and update any loca chached data structures. ", ""); I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, __void__cull__osgUtil_CullVisitor_R1, "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", ""); I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, __void__cleanSceneGraph, "Clean scene graph from any shadow technique specific nodes, state and drawables. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "", ""); I_Method0(void, dirty, + Properties::VIRTUAL, __void__dirty, "Dirty so that cached data structurese are updated. ", ""); diff --git a/src/osgWrappers/osgShadow/ShadowTexture.cpp b/src/osgWrappers/osgShadow/ShadowTexture.cpp index f3e99b90b..1e238390e 100644 --- a/src/osgWrappers/osgShadow/ShadowTexture.cpp +++ b/src/osgWrappers/osgShadow/ShadowTexture.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowTexture) I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowTexture, "", @@ -32,22 +32,27 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) "", ""); 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. "); diff --git a/src/osgWrappers/osgShadow/ShadowVolume.cpp b/src/osgWrappers/osgShadow/ShadowVolume.cpp index 6276e215c..5382246a3 100644 --- a/src/osgWrappers/osgShadow/ShadowVolume.cpp +++ b/src/osgWrappers/osgShadow/ShadowVolume.cpp @@ -25,7 +25,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowVolume) I_BaseType(osgShadow::ShadowTechnique); I_Constructor0(____ShadowVolume, "", @@ -35,54 +35,67 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setDrawMode, IN, osgShadow::ShadowVolumeGeometry::DrawMode, drawMode, + Properties::NON_VIRTUAL, __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode, "", ""); I_Method0(osgShadow::ShadowVolumeGeometry::DrawMode, getDrawMode, + Properties::NON_VIRTUAL, __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, "", ""); I_Method1(void, setDynamicShadowVolumes, IN, bool, dynamicShadowVolumes, + Properties::NON_VIRTUAL, __void__setDynamicShadowVolumes__bool, "", ""); I_Method0(bool, getDynamicShadowVolumes, + Properties::NON_VIRTUAL, __bool__getDynamicShadowVolumes, "", ""); I_Method0(void, init, + Properties::VIRTUAL, __void__init, "initialize the ShadowedScene and local cached data structures. ", ""); I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__update__osg_NodeVisitor_R1, "run the update traversal of the ShadowedScene and update any loca chached data structures. ", ""); I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, __void__cull__osgUtil_CullVisitor_R1, "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", ""); I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, __void__cleanSceneGraph, "Clean scene graph from any shadow technique specific nodes, state and drawables. ", ""); diff --git a/src/osgWrappers/osgShadow/ShadowedScene.cpp b/src/osgWrappers/osgShadow/ShadowedScene.cpp index 5bcdb0ab3..1fba3c649 100644 --- a/src/osgWrappers/osgShadow/ShadowedScene.cpp +++ b/src/osgWrappers/osgShadow/ShadowedScene.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgShadow::ShadowedScene) I_BaseType(osg::Group); I_Constructor0(____ShadowedScene, "", @@ -34,66 +34,82 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setRecievesShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setRecievesShadowTraversalMask__unsigned_int, "", ""); I_Method0(unsigned int, getRecievesShadowTraversalMask, + Properties::NON_VIRTUAL, __unsigned_int__getRecievesShadowTraversalMask, "", ""); I_Method1(void, setCastsShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, __void__setCastsShadowTraversalMask__unsigned_int, "", ""); I_Method0(unsigned int, getCastsShadowTraversalMask, + Properties::NON_VIRTUAL, __unsigned_int__getCastsShadowTraversalMask, "", ""); I_Method1(void, setShadowTechnique, IN, osgShadow::ShadowTechnique *, technique, + Properties::NON_VIRTUAL, __void__setShadowTechnique__ShadowTechnique_P1, "", ""); I_Method0(osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, __ShadowTechnique_P1__getShadowTechnique, "", ""); I_Method0(const osgShadow::ShadowTechnique *, getShadowTechnique, + Properties::NON_VIRTUAL, __C5_ShadowTechnique_P1__getShadowTechnique, "", ""); I_Method0(void, cleanSceneGraph, + Properties::NON_VIRTUAL, __void__cleanSceneGraph, "Clean scene graph from any shadow technique specific nodes, state and drawables. ", ""); I_Method0(void, dirty, + Properties::NON_VIRTUAL, __void__dirty, "Dirty any cache data structures held in the attached ShadowTechnqiue. ", ""); diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp index 450a67b79..35c031fd9 100644 --- a/src/osgWrappers/osgSim/BlinkSequence.cpp +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::BlinkSequence) I_BaseType(osg::Object); I_Constructor0(____BlinkSequence, "", @@ -33,70 +33,87 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) "", ""); 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, addPulse, IN, double, length, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__addPulse__double__C5_osg_Vec4_R1, "add a pulse of specified color and duration to the BlinkSequence. ", ""); I_Method0(int, getNumPulses, + Properties::NON_VIRTUAL, __int__getNumPulses, "return the number of pulses. ", ""); I_Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__getPulse__unsigned_int__double_R1__osg_Vec4_R1, "return the pulse data at position i. ", ""); I_Method3(void, setPulse, IN, unsigned int, i, IN, double, length, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setPulse__unsigned_int__double__C5_osg_Vec4_R1, "set pulse of specified color and duration to the BlinkSequence. ", ""); I_Method0(double, getPulsePeriod, + Properties::NON_VIRTUAL, __double__getPulsePeriod, "get the total pulse period of the blink sequence, which is equal to the sum of all the pulse periods. ", ""); I_Method1(void, setSequenceGroup, IN, osgSim::SequenceGroup *, sg, + Properties::NON_VIRTUAL, __void__setSequenceGroup__SequenceGroup_P1, "set the sequence group which can be used to synchronize related blink sequences. ", ""); I_Method0(osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, __SequenceGroup_P1__getSequenceGroup, "get the non const sequence group. ", ""); I_Method0(const osgSim::SequenceGroup *, getSequenceGroup, + Properties::NON_VIRTUAL, __C5_SequenceGroup_P1__getSequenceGroup, "get the const sequence group. ", ""); I_Method1(void, setPhaseShift, IN, double, ps, + Properties::NON_VIRTUAL, __void__setPhaseShift__double, "set the phase shift of the blink sequence, this would be used to shift a sequence within a sequence group. ", ""); I_Method0(double, getPhaseShift, + Properties::NON_VIRTUAL, __double__getPhaseShift, "get the pahse shift. ", ""); I_Method1(double, localTime, IN, double, time, + Properties::NON_VIRTUAL, __double__localTime__double, "compute the local time clamped to this BlinkSequences period, and accounting for the phase shift and sequence group. ", ""); I_Method2(osg::Vec4, color, IN, double, time, IN, double, length, + Properties::NON_VIRTUAL, __osg_Vec4__color__double__double, "compute the color for the time interval sepecifed. ", "Averages the colors if the length is greater than the current pulse. "); @@ -111,7 +128,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) __void__setSequenceGroup__SequenceGroup_P1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::SequenceGroup) I_BaseType(osg::Object); I_Constructor0(____SequenceGroup, "", @@ -121,26 +138,32 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) "", ""); I_Constructor1(IN, double, baseTime, + Properties::NON_EXPLICIT, ____SequenceGroup__double, "", ""); 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. "); diff --git a/src/osgWrappers/osgSim/ColorRange.cpp b/src/osgWrappers/osgSim/ColorRange.cpp index f3de29c21..1c74a9e93 100644 --- a/src/osgWrappers/osgSim/ColorRange.cpp +++ b/src/osgWrappers/osgSim/ColorRange.cpp @@ -21,7 +21,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ColorRange) I_BaseType(osgSim::ScalarsToColors); I_Constructor2(IN, float, min, IN, float, max, ____ColorRange__float__float, @@ -32,10 +32,12 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) "Constructor for a ColorRange. ", " param min minimum scalar value max maximum scalar value colors optional range of colors, "); I_Method1(void, setColors, IN, const std::vector< osg::Vec4 > &, colors, + Properties::NON_VIRTUAL, __void__setColors__C5_std_vectorT1_osg_Vec4__R1, "Set the range of colors. ", ""); I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::VIRTUAL, __osg_Vec4__getColor__float, "Get the color for a given scalar value. ", ""); diff --git a/src/osgWrappers/osgSim/DOFTransform.cpp b/src/osgWrappers/osgSim/DOFTransform.cpp index 884f649c0..39451a7af 100644 --- a/src/osgWrappers/osgSim/DOFTransform.cpp +++ b/src/osgWrappers/osgSim/DOFTransform.cpp @@ -34,7 +34,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::DOFTransform::MultOrder) I_EnumLabel(osgSim::DOFTransform::RHP); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::DOFTransform) I_BaseType(osg::Transform); I_Constructor0(____DOFTransform, "constructor ", @@ -44,190 +44,237 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) "copy constructor ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, __void__setMinHPR__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMinHPR, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMinHPR, "", ""); I_Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, __void__setMaxHPR__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMaxHPR, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMaxHPR, "", ""); I_Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, __void__setIncrementHPR__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getIncrementHPR, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getIncrementHPR, "", ""); I_Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, __void__setCurrentHPR__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCurrentHPR, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCurrentHPR, "", ""); I_Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr, + Properties::NON_VIRTUAL, __void__updateCurrentHPR__C5_osg_Vec3_R1, "", ""); I_Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, __void__setMinTranslate__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMinTranslate, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMinTranslate, "", ""); I_Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, __void__setMaxTranslate__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMaxTranslate, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMaxTranslate, "", ""); I_Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, __void__setIncrementTranslate__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getIncrementTranslate, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getIncrementTranslate, "", ""); I_Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, __void__setCurrentTranslate__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCurrentTranslate, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCurrentTranslate, "", ""); I_Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate, + Properties::NON_VIRTUAL, __void__updateCurrentTranslate__C5_osg_Vec3_R1, "", ""); I_Method1(void, setMinScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__setMinScale__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMinScale, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMinScale, "", ""); I_Method1(void, setMaxScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__setMaxScale__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getMaxScale, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getMaxScale, "", ""); I_Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__setIncrementScale__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getIncrementScale, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getIncrementScale, "", ""); I_Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__setCurrentScale__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getCurrentScale, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCurrentScale, "", ""); I_Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, __void__updateCurrentScale__C5_osg_Vec3_R1, "", ""); I_Method1(void, setPutMatrix, IN, const osg::Matrix &, put, + Properties::NON_VIRTUAL, __void__setPutMatrix__C5_osg_Matrix_R1, "", ""); I_Method0(const osg::Matrix &, getPutMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getPutMatrix, "", ""); I_Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut, + Properties::NON_VIRTUAL, __void__setInversePutMatrix__C5_osg_Matrix_R1, "", ""); I_Method0(const osg::Matrix &, getInversePutMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getInversePutMatrix, "", ""); I_Method1(void, setLimitationFlags, IN, unsigned long, flags, + Properties::NON_VIRTUAL, __void__setLimitationFlags__unsigned_long, "", ""); I_Method0(unsigned long, getLimitationFlags, + Properties::NON_VIRTUAL, __unsigned_long__getLimitationFlags, "", ""); I_Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order, + Properties::NON_VIRTUAL, __void__setHPRMultOrder__C5_MultOrder, "", ""); I_Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder, + Properties::NON_VIRTUAL, __C5_MultOrder__getHPRMultOrder, "", ""); I_Method1(void, setAnimationOn, IN, bool, do_animate, + Properties::NON_VIRTUAL, __void__setAnimationOn__bool, "", ""); I_Method0(bool, getAnimationOn, + Properties::NON_VIRTUAL, __bool__getAnimationOn, "", ""); I_Method1(void, animate, IN, float, deltaTime, + Properties::NON_VIRTUAL, __void__animate__float, "", ""); I_Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeLocalToWorldMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, "", ""); I_Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, __bool__computeWorldToLocalMatrix__osg_Matrix_R1__osg_NodeVisitor_P1, "", ""); diff --git a/src/osgWrappers/osgSim/ElevationSlice.cpp b/src/osgWrappers/osgSim/ElevationSlice.cpp index c9595c13e..44d0dac69 100644 --- a/src/osgWrappers/osgSim/ElevationSlice.cpp +++ b/src/osgWrappers/osgSim/ElevationSlice.cpp @@ -34,42 +34,52 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice) "", ""); I_Method1(void, setStartPoint, IN, const osg::Vec3d &, startPoint, + Properties::NON_VIRTUAL, __void__setStartPoint__C5_osg_Vec3d_R1, "Set the start point of the slice. ", ""); I_Method0(const osg::Vec3d &, getStartPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getStartPoint, "Get the start point of the slice. ", ""); I_Method1(void, setEndPoint, IN, const osg::Vec3d &, endPoint, + Properties::NON_VIRTUAL, __void__setEndPoint__C5_osg_Vec3d_R1, "Set the end point of the slice. ", ""); I_Method0(const osg::Vec3d &, getEndPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getEndPoint, "Get the end point of the slice. ", ""); I_Method0(const osgSim::ElevationSlice::Vec3dList &, getIntersections, + Properties::NON_VIRTUAL, __C5_Vec3dList_R1__getIntersections, "Get the intersections in the form of a vector of Vec3d. ", ""); I_Method0(const osgSim::ElevationSlice::DistanceHeightList &, getDistanceHeightIntersections, + Properties::NON_VIRTUAL, __C5_DistanceHeightList_R1__getDistanceHeightIntersections, "Get the intersections in the form a vector of pair representing distance along the slice and height. ", ""); I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, "Compute the intersections with the specified scene graph, the results are stored in vectors of Vec3d. ", "Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, __void__clearDatabaseCache, "Clear the database cache. ", ""); I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", "Note, if you have mulitple LineOfSight or ElevationSlice objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); diff --git a/src/osgWrappers/osgSim/GeographicLocation.cpp b/src/osgWrappers/osgSim/GeographicLocation.cpp index b52b35042..398767453 100644 --- a/src/osgWrappers/osgSim/GeographicLocation.cpp +++ b/src/osgWrappers/osgSim/GeographicLocation.cpp @@ -20,7 +20,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::GeographicLocation) I_BaseType(osg::Referenced); I_Constructor0(____GeographicLocation, "", @@ -30,38 +30,47 @@ BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) "", ""); I_Method0(double *, ptr, + Properties::NON_VIRTUAL, __double_P1__ptr, "", ""); I_Method0(const double *, ptr, + Properties::NON_VIRTUAL, __C5_double_P1__ptr, "", ""); I_Method2(void, set, IN, double, lat, IN, double, lon, + Properties::NON_VIRTUAL, __void__set__double__double, "", ""); I_Method0(double &, latitude, + Properties::NON_VIRTUAL, __double_R1__latitude, "", ""); I_Method0(double &, longitude, + Properties::NON_VIRTUAL, __double_R1__longitude, "", ""); I_Method0(double, latitude, + Properties::NON_VIRTUAL, __double__latitude, "", ""); I_Method0(double, longitude, + Properties::NON_VIRTUAL, __double__longitude, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, __bool__isNaN, "", ""); diff --git a/src/osgWrappers/osgSim/HeightAboveTerrain.cpp b/src/osgWrappers/osgSim/HeightAboveTerrain.cpp index ecc4bf337..c9a0cf255 100644 --- a/src/osgWrappers/osgSim/HeightAboveTerrain.cpp +++ b/src/osgWrappers/osgSim/HeightAboveTerrain.cpp @@ -28,50 +28,62 @@ BEGIN_VALUE_REFLECTOR(osgSim::HeightAboveTerrain) "", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "Clear the internal HAT List so it contains no height above terrain tests. ", ""); I_Method1(unsigned int, addPoint, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, __unsigned_int__addPoint__C5_osg_Vec3d_R1, "Add a height above terrain test point in the CoordinateFrame. ", ""); I_Method0(unsigned int, getNumPoints, + Properties::NON_VIRTUAL, __unsigned_int__getNumPoints, "Get the number of height above terrain tests. ", ""); I_Method2(void, setPoint, IN, unsigned int, i, IN, const osg::Vec3d &, point, + Properties::NON_VIRTUAL, __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, "Set the source point of single height above terrain test. ", ""); I_Method1(const osg::Vec3d &, getPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getPoint__unsigned_int, "Get the source point of single height above terrain test. ", ""); I_Method1(double, getHeightAboveTerrain, IN, unsigned int, i, + Properties::NON_VIRTUAL, __double__getHeightAboveTerrain__unsigned_int, "Get the intersection height for a single height above terrain test. ", "Note, you must call computeIntersections(..) before you can querry the HeightAboveTerrain. If no intersections are found then height returned will be the height above mean sea level. "); I_Method1(void, setLowestHeight, IN, double, lowestHeight, + Properties::NON_VIRTUAL, __void__setLowestHeight__double, "Set the lowest height that the should be tested for. ", "Defaults to -1000, i.e. 1000m below mean sea level. "); I_Method0(double, getLowestHeight, + Properties::NON_VIRTUAL, __double__getLowestHeight, "Get the lowest height that the should be tested for. ", ""); I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, "Compute the HAT intersections with the specified scene graph. ", "The results are all stored in the form of a single height above terrain value per HAT test. Note, if the topmost node is a CoordinateSystemNode then the input points are assumed to be geocentric, with the up vector defined by the EllipsoidModel attached to the CoordinateSystemNode. If the topmost node is not a CoordinateSystemNode then a local coordinates frame is assumed, with a local up vector. "); I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, __void__clearDatabaseCache, "Clear the database cache. ", ""); I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); diff --git a/src/osgWrappers/osgSim/Impostor.cpp b/src/osgWrappers/osgSim/Impostor.cpp index 86c4aae16..f1e1c8398 100644 --- a/src/osgWrappers/osgSim/Impostor.cpp +++ b/src/osgWrappers/osgSim/Impostor.cpp @@ -28,7 +28,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::Impostor::ImpostorSpriteList); -BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Impostor) I_BaseType(osg::LOD); I_Constructor0(____Impostor, "", @@ -38,62 +38,77 @@ BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setImpostorThreshold, IN, float, distance, + Properties::NON_VIRTUAL, __void__setImpostorThreshold__float, "Set the Impostor threshold distance. ", "For eye points further than this threshold the Imposter is used if appropriate, otherwise the LOD children as chosen as per a standard LOD node."); I_Method0(float, getImpostorThreshold, + Properties::NON_VIRTUAL, __float__getImpostorThreshold, "", ""); I_MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f, + Properties::NON_VIRTUAL, __void__setImpostorThresholdToBound__float, "Set the Impostor threshold distance relative to the node's bounding sphere's radius. ", ""); I_Method2(osgSim::ImpostorSprite *, findBestImpostorSprite, IN, unsigned int, contextID, IN, const osg::Vec3 &, currLocalEyePoint, + Properties::NON_VIRTUAL, __ImpostorSprite_P1__findBestImpostorSprite__unsigned_int__C5_osg_Vec3_R1, "Find the ImposterSprite which fits the current eye point best. ", ""); I_Method2(void, addImpostorSprite, IN, unsigned int, contextID, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, __void__addImpostorSprite__unsigned_int__ImpostorSprite_P1, "Add an ImpostorSprite to the Impostor. ", ""); I_Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, __ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, "Get the list of ImpostorSprites attached to this Impostor. ", ""); I_Method1(const osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, __C5_ImpostorSpriteList_R1__getImpostorSpriteList__unsigned_int, "Get a const list of ImpostorSprites attached to this const Impostor. ", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __osg_BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); @@ -110,26 +125,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgSim::ImpostorSprite >) "", ""); I_Constructor1(IN, osgSim::ImpostorSprite *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgSim::ImpostorSprite > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgSim::ImpostorSprite *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgSim::ImpostorSprite *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgSim::ImpostorSprite > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgSim/ImpostorSprite.cpp b/src/osgWrappers/osgSim/ImpostorSprite.cpp index 7a7cdfdcd..9e0704940 100644 --- a/src/osgWrappers/osgSim/ImpostorSprite.cpp +++ b/src/osgWrappers/osgSim/ImpostorSprite.cpp @@ -33,148 +33,183 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ImpostorSprite) I_BaseType(osg::Drawable); I_Constructor0(____ImpostorSprite, "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone an object of the same type as an ImpostorSprite. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone on ImpostorSprite just returns a clone of type, since it is not appropriate to share data of an ImpostorSprite. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setParent, IN, osgSim::Impostor *, parent, + Properties::NON_VIRTUAL, __void__setParent__Impostor_P1, "Set the parent, which must be an Impostor. ", "Unlike conventional Drawables, ImpostorSprites can only ever have one parent."); I_Method0(osgSim::Impostor *, getParent, + Properties::NON_VIRTUAL, __Impostor_P1__getParent, "Get the parent, which is an Impostor. ", ""); I_Method0(const osgSim::Impostor *, getParent, + Properties::NON_VIRTUAL, __C5_Impostor_P1__getParent, "Get the const parent, which is an Impostor. ", ""); I_Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__setStoredLocalEyePoint__C5_osg_Vec3_R1, "Set the eye point for when the ImpostorSprite was snapped. ", ""); I_Method0(const osg::Vec3 &, getStoredLocalEyePoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getStoredLocalEyePoint, "Get the eye point for when the ImpostorSprite was snapped. ", ""); I_Method1(void, setLastFrameUsed, IN, int, frameNumber, + Properties::NON_VIRTUAL, __void__setLastFrameUsed__int, "Set the frame number for when the ImpostorSprite was last used in rendering. ", ""); I_Method0(int, getLastFrameUsed, + Properties::NON_VIRTUAL, __int__getLastFrameUsed, "Get the frame number for when the ImpostorSprite was last used in rendering. ", ""); I_Method0(osg::Vec3 *, getCoords, + Properties::NON_VIRTUAL, __osg_Vec3_P1__getCoords, "Get the coordinates of the corners of the quad. ", "Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); I_Method0(const osg::Vec3 *, getCoords, + Properties::NON_VIRTUAL, __C5_osg_Vec3_P1__getCoords, "Get the const coordinates of the corners of the quad. ", ""); I_Method0(osg::Vec2 *, getTexCoords, + Properties::NON_VIRTUAL, __osg_Vec2_P1__getTexCoords, "Get the texture coordinates of the corners of the quad. ", "Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); I_Method0(const osg::Vec2 *, getTexCoords, + Properties::NON_VIRTUAL, __C5_osg_Vec2_P1__getTexCoords, "Get the const texture coordinates of the corners of the quad. ", ""); I_Method0(osg::Vec3 *, getControlCoords, + Properties::NON_VIRTUAL, __osg_Vec3_P1__getControlCoords, "Get the control coordinates of the corners of the quad. ", "The control coordinates are the corners of the quad projected out onto the front face of bounding box which enclosed the impostor geometry when it was pre-rendered into the impostor sprite's texture. At the point of creation/or update of the impostor sprite the control coords will lie on top of the corners of the quad in screen space - with a pixel error of zero. Once the camera moves relative to the impostor sprite the control coords will no longer lie on top of the corners of the quad in screen space - a pixel error will have accumulated. This pixel error can then be used to determine whether the impostor needs to be updated. Stored in the order, [0] - top_left, [1] - bottom_left, [2] - bottom_right, [3] - top_left."); I_Method0(const osg::Vec3 *, getControlCoords, + Properties::NON_VIRTUAL, __C5_osg_Vec3_P1__getControlCoords, "Get the const control coordinates of the corners of the quad. ", ""); I_Method1(float, calcPixelError, IN, const osg::Matrix &, MVPW, + Properties::NON_VIRTUAL, __float__calcPixelError__C5_osg_Matrix_R1, "Calculate the pixel error value for passing in the ModelViewProjectionWindow transform, which transform local coords into screen space. ", ""); I_Method3(void, setTexture, IN, osg::Texture2D *, tex, IN, int, s, IN, int, t, + Properties::NON_VIRTUAL, __void__setTexture__osg_Texture2D_P1__int__int, "", ""); I_Method0(osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getTexture, "", ""); I_Method0(const osg::Texture2D *, getTexture, + Properties::NON_VIRTUAL, __C5_osg_Texture2D_P1__getTexture, "", ""); I_Method0(int, s, + Properties::NON_VIRTUAL, __int__s, "", ""); I_Method0(int, t, + Properties::NON_VIRTUAL, __int__t, "", ""); I_Method1(void, drawImplementation, IN, osg::State &, state, + Properties::VIRTUAL, __void__drawImplementation__osg_State_R1, "Draw ImpostorSprite directly. ", ""); I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_AttributeFunctor_R1, "Return true, osg::ImpostorSprite does support accept(AttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__AttributeFunctor_R1, "Accept an AttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_ConstAttributeFunctor_R1, "Return true, osg::ImpostorSprite does support accept(ConstAttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__ConstAttributeFunctor_R1, "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_PrimitiveFunctor_R1, "Return true, osg::ImpostorSprite does support accept(PrimitiveFunctor&). ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, __void__accept__osg_PrimitiveFunctor_R1, "Accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. ", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __osg_BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCamera__osg_Camera_P1, "Set the camera node to use for pre rendering the impostor sprite's texture. ", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "Get the camera node to use for pre rendering the impostor sprite's texture. ", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCamera, "Get the const camera node to use for pre rendering the impostor sprite's texture. ", ""); @@ -205,40 +240,48 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) I_PublicMemberProperty(osg::Vec4, _color); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) I_BaseType(osg::Referenced); I_Constructor0(____ImpostorSpriteManager, "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "", ""); I_Method0(osgSim::ImpostorSprite *, first, + Properties::NON_VIRTUAL, __ImpostorSprite_P1__first, "", ""); I_Method0(osgSim::ImpostorSprite *, last, + Properties::NON_VIRTUAL, __ImpostorSprite_P1__last, "", ""); I_Method1(void, push_back, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, __void__push_back__ImpostorSprite_P1, "", ""); I_Method1(void, remove, IN, osgSim::ImpostorSprite *, is, + Properties::NON_VIRTUAL, __void__remove__ImpostorSprite_P1, "", ""); I_Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber, + Properties::NON_VIRTUAL, __ImpostorSprite_P1__createOrReuseImpostorSprite__int__int__int, "", ""); I_Method0(osg::StateSet *, createOrReuseStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__createOrReuseStateSet, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); diff --git a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp index b53330050..8e7136660 100644 --- a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp +++ b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp @@ -23,44 +23,53 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____InsertImpostorsVisitor, "Default to traversing all children. ", ""); I_Method1(void, setImpostorThresholdRatio, IN, float, ratio, + Properties::NON_VIRTUAL, __void__setImpostorThresholdRatio__float, "", ""); I_Method0(float, getImpostorThresholdRatio, + Properties::NON_VIRTUAL, __float__getImpostorThresholdRatio, "", ""); I_Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setMaximumNumberOfNestedImpostors__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumNumberOfNestedImpostors, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumNumberOfNestedImpostors, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Empty visitor, make it ready for next traversal. ", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method0(void, insertImpostors, + Properties::NON_VIRTUAL, __void__insertImpostors, "", ""); diff --git a/src/osgWrappers/osgSim/LightPoint.cpp b/src/osgWrappers/osgSim/LightPoint.cpp index 629105ef9..de32fb0be 100644 --- a/src/osgWrappers/osgSim/LightPoint.cpp +++ b/src/osgWrappers/osgSim/LightPoint.cpp @@ -42,6 +42,7 @@ BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) "", ""); I_Constructor1(IN, const osgSim::LightPoint &, lp, + Properties::NON_EXPLICIT, ____LightPoint__C5_LightPoint_R1, "", ""); diff --git a/src/osgWrappers/osgSim/LightPointNode.cpp b/src/osgWrappers/osgSim/LightPointNode.cpp index f177ee907..7b920801f 100644 --- a/src/osgWrappers/osgSim/LightPointNode.cpp +++ b/src/osgWrappers/osgSim/LightPointNode.cpp @@ -28,7 +28,7 @@ TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::LightPointList); -BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::LightPointNode) I_BaseType(osg::Node); I_Constructor0(____LightPointNode, "", @@ -38,106 +38,132 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method0(unsigned int, getNumLightPoints, + Properties::NON_VIRTUAL, __unsigned_int__getNumLightPoints, "", ""); I_Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp, + Properties::NON_VIRTUAL, __unsigned_int__addLightPoint__C5_LightPoint_R1, "", ""); I_Method1(void, removeLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __void__removeLightPoint__unsigned_int, "", ""); I_Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __LightPoint_R1__getLightPoint__unsigned_int, "", ""); I_Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __C5_LightPoint_R1__getLightPoint__unsigned_int, "", ""); I_Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl, + Properties::NON_VIRTUAL, __void__setLightPointList__C5_LightPointList_R1, "", ""); I_Method0(osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, __LightPointList_R1__getLightPointList, "", ""); I_Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList, + Properties::NON_VIRTUAL, __C5_LightPointList_R1__getLightPointList, "", ""); I_Method1(void, setMinPixelSize, IN, float, minPixelSize, + Properties::NON_VIRTUAL, __void__setMinPixelSize__float, "", ""); I_Method0(float, getMinPixelSize, + Properties::NON_VIRTUAL, __float__getMinPixelSize, "", ""); I_Method1(void, setMaxPixelSize, IN, float, maxPixelSize, + Properties::NON_VIRTUAL, __void__setMaxPixelSize__float, "", ""); I_Method0(float, getMaxPixelSize, + Properties::NON_VIRTUAL, __float__getMaxPixelSize, "", ""); I_Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2, + Properties::NON_VIRTUAL, __void__setMaxVisibleDistance2__float, "", ""); I_Method0(float, getMaxVisibleDistance2, + Properties::NON_VIRTUAL, __float__getMaxVisibleDistance2, "", ""); I_Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps, + Properties::NON_VIRTUAL, __void__setLightPointSystem__osgSim_LightPointSystem_P1, "", ""); I_Method0(osgSim::LightPointSystem *, getLightPointSystem, + Properties::NON_VIRTUAL, __osgSim_LightPointSystem_P1__getLightPointSystem, "", ""); I_MethodWithDefaults1(void, setPointSprite, IN, bool, enable, true, + Properties::NON_VIRTUAL, __void__setPointSprite__bool, "", ""); I_Method0(bool, getPointSprite, + Properties::NON_VIRTUAL, __bool__getPointSprite, "", ""); I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, __osg_BoundingSphere__computeBound, "Compute the bounding sphere around Node's geometry or children. ", "This method is automatically called by getBound() when the bounding sphere has been marked dirty via dirtyBound(). "); diff --git a/src/osgWrappers/osgSim/LightPointSystem.cpp b/src/osgWrappers/osgSim/LightPointSystem.cpp index 88415ceb1..76b4796f8 100644 --- a/src/osgWrappers/osgSim/LightPointSystem.cpp +++ b/src/osgWrappers/osgSim/LightPointSystem.cpp @@ -28,7 +28,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::LightPointSystem::AnimationState) I_EnumLabel(osgSim::LightPointSystem::ANIMATION_RANDOM); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::LightPointSystem) I_BaseType(osg::Object); I_Constructor0(____LightPointSystem, "", @@ -38,38 +38,47 @@ BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, __void__setIntensity__float, "", ""); I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, __float__getIntensity, "", ""); I_Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state, + Properties::NON_VIRTUAL, __void__setAnimationState__LightPointSystem_AnimationState, "", ""); I_Method0(osgSim::LightPointSystem::AnimationState, getAnimationState, + Properties::NON_VIRTUAL, __LightPointSystem_AnimationState__getAnimationState, "", ""); diff --git a/src/osgWrappers/osgSim/LineOfSight.cpp b/src/osgWrappers/osgSim/LineOfSight.cpp index 1385c0161..09ecc711e 100644 --- a/src/osgWrappers/osgSim/LineOfSight.cpp +++ b/src/osgWrappers/osgSim/LineOfSight.cpp @@ -22,28 +22,33 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::DatabaseCacheReadCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::DatabaseCacheReadCallback) I_BaseType(osgUtil::IntersectionVisitor::ReadCallback); I_Constructor0(____DatabaseCacheReadCallback, "", ""); I_Method1(void, setMaximumNumOfFilesToCache, IN, unsigned int, maxNumFilesToCache, + Properties::NON_VIRTUAL, __void__setMaximumNumOfFilesToCache__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumNumOfFilesToCache, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumNumOfFilesToCache, "", ""); I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, __void__clearDatabaseCache, "", ""); I_Method0(void, pruneUnusedDatabaseCache, + Properties::NON_VIRTUAL, __void__pruneUnusedDatabaseCache, "", ""); I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::VIRTUAL, __osg_Node_P1__readNodeFile__C5_std_string_R1, "", ""); @@ -59,50 +64,62 @@ BEGIN_VALUE_REFLECTOR(osgSim::LineOfSight) "", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "Clear the internal LOS List so it contains no line of sight tests. ", ""); I_Method2(unsigned int, addLOS, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, __unsigned_int__addLOS__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, "Add a line of sight test, consisting of start and end point. ", "Returns the index number of the newly adding LOS test. "); I_Method0(unsigned int, getNumLOS, + Properties::NON_VIRTUAL, __unsigned_int__getNumLOS, "Get the number of line of sight tests. ", ""); I_Method2(void, setStartPoint, IN, unsigned int, i, IN, const osg::Vec3d &, start, + Properties::NON_VIRTUAL, __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, "Set the start point of signel line of sight test. ", ""); I_Method1(const osg::Vec3d &, getStartPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, "Get the start point of single line of sight test. ", ""); I_Method2(void, setEndPoint, IN, unsigned int, i, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, "Set the end point of single line of sight test. ", ""); I_Method1(const osg::Vec3d &, getEndPoint, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, "Get the end point of single line of sight test. ", ""); I_Method1(const osgSim::LineOfSight::Intersections &, getIntersections, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_Intersections_R1__getIntersections__unsigned_int, "Get the intersection points for a single line of sight test. ", ""); I_MethodWithDefaults2(void, computeIntersections, IN, osg::Node *, scene, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __void__computeIntersections__osg_Node_P1__osg_Node_NodeMask, "Compute the LOS intersections with the specified scene graph. ", "The results are all stored in the form of Intersections list, one per LOS test. "); I_Method0(void, clearDatabaseCache, + Properties::NON_VIRTUAL, __void__clearDatabaseCache, "Clear the database cache. ", ""); I_Method1(void, setDatabaseCacheReadCallback, IN, osgSim::DatabaseCacheReadCallback *, dcrc, + Properties::NON_VIRTUAL, __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1, "Set the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", "Note, if you have mulitple LineOfSight or HeightAboveTerrain objects in use at one time then you should share a single DatabaseCacheReadCallback between all of them. "); I_Method0(osgSim::DatabaseCacheReadCallback *, getDatabaseCacheReadCallback, + Properties::NON_VIRTUAL, __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, "Get the ReadCallback that does the reading of external PagedLOD models, and caching of loaded subgraphs. ", ""); diff --git a/src/osgWrappers/osgSim/MultiSwitch.cpp b/src/osgWrappers/osgSim/MultiSwitch.cpp index 779b20c8e..53a629a0a 100644 --- a/src/osgWrappers/osgSim/MultiSwitch.cpp +++ b/src/osgWrappers/osgSim/MultiSwitch.cpp @@ -28,7 +28,7 @@ TYPE_NAME_ALIAS(std::vector< bool >, osgSim::MultiSwitch::ValueList); TYPE_NAME_ALIAS(std::vector< osgSim::MultiSwitch::ValueList >, osgSim::MultiSwitch::SwitchSetList); -BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::MultiSwitch) I_BaseType(osg::Group); I_Constructor0(____MultiSwitch, "", @@ -38,102 +38,127 @@ BEGIN_OBJECT_REFLECTOR(osgSim::MultiSwitch) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setNewChildDefaultValue, IN, bool, value, + Properties::NON_VIRTUAL, __void__setNewChildDefaultValue__bool, "", ""); I_Method0(bool, getNewChildDefaultValue, + Properties::NON_VIRTUAL, __bool__getNewChildDefaultValue, "", ""); I_Method1(bool, addChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__addChild__osg_Node_P1, "Add Node to Group. ", "If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes."); I_Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__insertChild__unsigned_int__osg_Node_P1, "Insert Node to Group at specific location. ", "The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation."); I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::VIRTUAL, __bool__removeChild__osg_Node_P1, "Remove Node from Group. ", "If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Note, do not override, only override removeChildren(,) is required."); I_Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value, + Properties::NON_VIRTUAL, __void__setValue__unsigned_int__unsigned_int__bool, "", ""); I_Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__getValue__unsigned_int__unsigned_int, "", ""); I_Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value, + Properties::NON_VIRTUAL, __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, "", ""); I_Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, __bool__getChildValue__C5_osg_Node_P1__unsigned_int, "", ""); I_Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, __bool__setAllChildrenOff__unsigned_int, "Set all the children off (false), and set the new default child value to off (false). ", ""); I_Method1(bool, setAllChildrenOn, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, __bool__setAllChildrenOn__unsigned_int, "Set all the children on (true), and set the new default child value to on (true). ", ""); I_Method2(bool, setSingleChildOn, IN, unsigned int, switchSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, __bool__setSingleChildOn__unsigned_int__unsigned_int, "Set a single child to be on, MultiSwitch off all other children. ", ""); I_Method1(void, setActiveSwitchSet, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, __void__setActiveSwitchSet__unsigned_int, "Set which of the available switch set lists to use. ", ""); I_Method0(unsigned int, getActiveSwitchSet, + Properties::NON_VIRTUAL, __unsigned_int__getActiveSwitchSet, "Get which of the available switch set lists to use. ", ""); I_Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList, + Properties::NON_VIRTUAL, __void__setSwitchSetList__C5_SwitchSetList_R1, "Set the compile set of different values. ", ""); I_Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList, + Properties::NON_VIRTUAL, __C5_SwitchSetList_R1__getSwitchSetList, "Get the compile set of different values. ", ""); I_Method2(void, setValueList, IN, unsigned int, switchSet, IN, const osgSim::MultiSwitch::ValueList &, values, + Properties::NON_VIRTUAL, __void__setValueList__unsigned_int__C5_ValueList_R1, "Set the a single set of different values for a particular switch set. ", ""); I_Method1(const osgSim::MultiSwitch::ValueList &, getValueList, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, __C5_ValueList_R1__getValueList__unsigned_int, "Get the a single set of different values for a particular switch set. ", ""); diff --git a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp index a982167bb..05eafd2a5 100644 --- a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp +++ b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp @@ -31,52 +31,58 @@ BEGIN_ENUM_REFLECTOR(osgFlightUtil::Optimizer::OptimizationOptions) I_EnumLabel(osgFlightUtil::Optimizer::ALL_OPTIMIZATIONS); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osgFlightUtil::Optimizer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFlightUtil::Optimizer) I_Constructor0(____Optimizer, "", ""); I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__optimize__osg_Node_P1, "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", ""); I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options, + Properties::VIRTUAL, __void__optimize__osg_Node_P1__unsigned_int, "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____MakeLitVisitor, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____MergeGeodesVisitor, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, __void__mergeGeodes__osg_Group_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____TessellateVisitor, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); diff --git a/src/osgWrappers/osgSim/OverlayNode.cpp b/src/osgWrappers/osgSim/OverlayNode.cpp index d503fc54a..4da59279c 100644 --- a/src/osgWrappers/osgSim/OverlayNode.cpp +++ b/src/osgWrappers/osgSim/OverlayNode.cpp @@ -27,7 +27,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::OverlayNode) I_BaseType(osg::Group); I_Constructor0(____OverlayNode, "", @@ -37,106 +37,132 @@ BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setOverlaySubgraph, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setOverlaySubgraph__osg_Node_P1, "Set the overlay subgraph which will be rendered to texture. ", ""); I_Method0(osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, __osg_Node_P1__getOverlaySubgraph, "Get the overlay subgraph which will be rendered to texture. ", ""); I_Method0(const osg::Node *, getOverlaySubgraph, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getOverlaySubgraph, "Get the const overlay subgraph which will be render to texture. ", ""); I_Method0(void, dirtyOverlayTexture, + Properties::NON_VIRTUAL, __void__dirtyOverlayTexture, "Inform the OverlayNode that the overlay texture needs to be updated. ", ""); I_Method1(void, setContinuousUpdate, IN, bool, update, + Properties::NON_VIRTUAL, __void__setContinuousUpdate__bool, "Set whether the OverlayNode should update the overlay texture on every frame. ", ""); I_Method0(bool, getContinuousUpdate, + Properties::NON_VIRTUAL, __bool__getContinuousUpdate, "Get whether the OverlayNode should update the overlay texture on every frame. ", ""); I_Method1(void, setOverlayClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setOverlayClearColor__C5_osg_Vec4_R1, "Set the clear color to use when rendering the overlay subgraph. ", ""); I_Method0(const osg::Vec4 &, getOverlayClearColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getOverlayClearColor, "Get the clear color to use when rendering the overlay subgraph. ", ""); I_Method1(void, setTexEnvMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, __void__setTexEnvMode__GLenum, "Set the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph. ", ""); I_Method0(GLenum, getTexEnvMode, + Properties::NON_VIRTUAL, __GLenum__getTexEnvMode, "Get the TexEnv mode used to combine the overlay texture with the base color/texture of the OverlayNode's decorate subgraph. ", ""); I_Method1(void, setOverlayTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, __void__setOverlayTextureUnit__unsigned_int, "Set the texture unit that the texture should be assigned to. ", ""); I_Method0(unsigned int, getOverlayTextureUnit, + Properties::NON_VIRTUAL, __unsigned_int__getOverlayTextureUnit, "Get the texture unit that the texture should be assigned to. ", ""); I_Method1(void, setOverlayTextureSizeHint, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__setOverlayTextureSizeHint__unsigned_int, "Set the texture size hint. ", "The size hint is used to request a texture of specified size. "); I_Method0(unsigned int, getOverlayTextureSizeHint, + Properties::NON_VIRTUAL, __unsigned_int__getOverlayTextureSizeHint, "Get the texture size hint. ", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "Get the camera used to implement the render to texture of the overlay subgraph. ", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCamera, "Get the const camera used to implement the render to texture of the overlay subgraph. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned, int, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases any associated OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp index ab05095d7..8d3ed51fc 100644 --- a/src/osgWrappers/osgSim/ScalarBar.cpp +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -30,7 +30,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) I_EnumLabel(osgSim::ScalarBar::VERTICAL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ScalarBar) I_BaseType(osg::Geode); I_Constructor0(____ScalarBar, "Default constructor. ", @@ -44,110 +44,137 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) "Copy constructor. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, setNumColors, IN, int, numColors, + Properties::NON_VIRTUAL, __void__setNumColors__int, "Set the number of distinct colours on the ScalarBar. ", ""); I_Method0(int, getNumColors, + Properties::NON_VIRTUAL, __int__getNumColors, "Get the number of distinct colours on the ScalarBar. ", ""); I_Method1(void, setNumLabels, IN, int, numLabels, + Properties::NON_VIRTUAL, __void__setNumLabels__int, "Set the number of labels to display along the ScalarBar. ", "There will be one label at each end point, and evenly distributed labels in between. "); I_Method0(int, getNumLabels, + Properties::NON_VIRTUAL, __int__getNumLabels, "Get the number of labels displayed along the ScalarBar. ", ""); I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + Properties::NON_VIRTUAL, __void__setScalarsToColors__ScalarsToColors_P1, "Set the ScalarsToColors mapping object for the ScalarBar. ", ""); I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + Properties::NON_VIRTUAL, __C5_ScalarsToColors_P1__getScalarsToColors, "Get the ScalarsToColors mapping object from the ScalarBar. ", ""); I_Method1(void, setTitle, IN, const std::string &, title, + Properties::NON_VIRTUAL, __void__setTitle__C5_std_string_R1, "Set the title for the ScalarBar, set \"\" for no title. ", ""); I_Method0(std::string, getTitle, + Properties::NON_VIRTUAL, __std_string__getTitle, "Get the title for the ScalarBar. ", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "Set the position of scalar bar's lower left corner. ", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "Get the position of scalar bar. ", ""); I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, __void__setWidth__float, "Set the width of the scalar bar. ", ""); I_Method0(float, getWidth, + Properties::NON_VIRTUAL, __float__getWidth, "Get the width of the scalar bar. ", ""); I_Method1(void, setAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, __void__setAspectRatio__float, "Set the aspect ration (y/x) for the displayed bar. ", "Bear in mind you may want to change this if you change the orientation. "); I_Method0(float, getAspectRatio, + Properties::NON_VIRTUAL, __float__getAspectRatio, "Get the aspect ration (y/x) for the displayed bar. ", ""); I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + Properties::NON_VIRTUAL, __void__setOrientation__ScalarBar_Orientation, "Set the orientation of the ScalarBar. ", "Orientation "); I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + Properties::NON_VIRTUAL, __ScalarBar_Orientation__getOrientation, "Get the orientation of the ScalarBar. ", "Orientation "); I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + Properties::NON_VIRTUAL, __void__setScalarPrinter__ScalarPrinter_P1, "Set a ScalarPrinter object for the ScalarBar. ", "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + Properties::NON_VIRTUAL, __C5_ScalarPrinter_P1__getScalarPrinter, "Get the ScalarPrinter object. ", ""); I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + Properties::NON_VIRTUAL, __void__setTextProperties__C5_TextProperties_R1, "Set the TextProperties for the labels & title. ", "TextProperties "); I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + Properties::NON_VIRTUAL, __C5_TextProperties_R1__getTextProperties, "Get the TextProperties for the labels & title. ", "TextProperties "); I_Method0(void, update, + Properties::NON_VIRTUAL, __void__update, "force update the drawables used to render the scalar bar. ", ""); @@ -183,12 +210,13 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) __void__setWidth__float); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) I_BaseType(osg::Referenced); I_Constructor0(____ScalarPrinter, "", ""); I_Method1(std::string, printScalar, IN, float, scalar, + Properties::VIRTUAL, __std_string__printScalar__float, "", ""); diff --git a/src/osgWrappers/osgSim/ScalarsToColors.cpp b/src/osgWrappers/osgSim/ScalarsToColors.cpp index f2a665d4e..34462adc8 100644 --- a/src/osgWrappers/osgSim/ScalarsToColors.cpp +++ b/src/osgWrappers/osgSim/ScalarsToColors.cpp @@ -21,21 +21,24 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::ScalarsToColors) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ScalarsToColors) I_BaseType(osg::Referenced); I_Constructor2(IN, float, scalarMin, IN, float, scalarMax, ____ScalarsToColors__float__float, "", ""); I_Method1(osg::Vec4, getColor, IN, float, scalar, + Properties::VIRTUAL, __osg_Vec4__getColor__float, "Get the color for a given scalar value. ", ""); I_Method0(float, getMin, + Properties::NON_VIRTUAL, __float__getMin, "Get the minimum scalar value. ", ""); I_Method0(float, getMax, + Properties::NON_VIRTUAL, __float__getMax, "Get the maximum scalar value. ", ""); diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp index 35296fa57..31e71ab7f 100644 --- a/src/osgWrappers/osgSim/Sector.cpp +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::AzimElevationSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); I_BaseType(osgSim::ElevationRange); @@ -39,22 +39,27 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) "", ""); 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. "); @@ -65,20 +70,23 @@ BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) "", ""); I_MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, __void__setAzimuthRange__float__float__float, "", ""); I_Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle, + Properties::NON_VIRTUAL, __void__getAzimuthRange__float_R1__float_R1__float_R1, "", ""); I_Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, __float__azimSector__C5_osg_Vec3_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::AzimSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::AzimRange); I_Constructor0(____AzimSector, @@ -93,28 +101,33 @@ BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) "", ""); 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. "); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ConeSector) I_BaseType(osgSim::Sector); I_Constructor0(____ConeSector, "", @@ -128,42 +141,52 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setAxis, IN, const osg::Vec3 &, axis, + Properties::NON_VIRTUAL, __void__setAxis__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getAxis, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getAxis, "", ""); I_MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f, + Properties::NON_VIRTUAL, __void__setAngle__float__float, "", ""); I_Method0(float, getAngle, + Properties::NON_VIRTUAL, __float__getAngle, "", ""); I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, __float__getFadeAngle, "", ""); @@ -178,7 +201,7 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::DirectionalSector) I_BaseType(osgSim::Sector); I_Constructor0(____DirectionalSector, "", @@ -192,66 +215,82 @@ BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setDirection, IN, const osg::Vec3 &, direction, + Properties::NON_VIRTUAL, __void__setDirection__C5_osg_Vec3_R1, "", ""); I_Method0(const osg::Vec3 &, getDirection, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getDirection, "", ""); I_Method1(void, setHorizLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, __void__setHorizLobeAngle__float, "", ""); I_Method0(float, getHorizLobeAngle, + Properties::NON_VIRTUAL, __float__getHorizLobeAngle, "", ""); I_Method1(void, setLobeRollAngle, IN, float, angle, + Properties::NON_VIRTUAL, __void__setLobeRollAngle__float, "", ""); I_Method0(float, getLobeRollAngle, + Properties::NON_VIRTUAL, __float__getLobeRollAngle, "", ""); I_Method1(void, setVertLobeAngle, IN, float, angle, + Properties::NON_VIRTUAL, __void__setVertLobeAngle__float, "", ""); I_Method0(float, getVertLobeAngle, + Properties::NON_VIRTUAL, __float__getVertLobeAngle, "", ""); I_Method1(void, setFadeAngle, IN, float, angle, + Properties::NON_VIRTUAL, __void__setFadeAngle__float, "", ""); I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, __float__getFadeAngle, "", ""); I_Method0(void, computeMatrix, + Properties::NON_VIRTUAL, __void__computeMatrix, "", ""); @@ -277,22 +316,27 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) "", ""); I_MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + Properties::NON_VIRTUAL, __void__setElevationRange__float__float__float, "", ""); I_Method0(float, getMinElevation, + Properties::NON_VIRTUAL, __float__getMinElevation, "", ""); I_Method0(float, getMaxElevation, + Properties::NON_VIRTUAL, __float__getMaxElevation, "", ""); I_Method0(float, getFadeAngle, + Properties::NON_VIRTUAL, __float__getFadeAngle, "", ""); I_Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal, + Properties::NON_VIRTUAL, __float__elevationSector__C5_osg_Vec3_R1, "", ""); @@ -307,7 +351,7 @@ BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::ElevationSector) I_BaseType(osgSim::Sector); I_BaseType(osgSim::ElevationRange); I_Constructor0(____ElevationSector, @@ -322,22 +366,27 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) "", ""); 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. "); @@ -353,14 +402,17 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) "", ""); 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(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); diff --git a/src/osgWrappers/osgSim/SphereSegment.cpp b/src/osgWrappers/osgSim/SphereSegment.cpp index 1ccddaa62..6d8265dec 100644 --- a/src/osgWrappers/osgSim/SphereSegment.cpp +++ b/src/osgWrappers/osgSim/SphereSegment.cpp @@ -39,7 +39,7 @@ BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) I_EnumLabel(osgSim::SphereSegment::ALL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::SphereSegment) I_BaseType(osg::Geode); I_Constructor0(____SphereSegment, "Default constructor. ", @@ -57,126 +57,157 @@ BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) "Copy constructor. ", ""); I_Method1(void, setCentre, IN, const osg::Vec3 &, c, + Properties::NON_VIRTUAL, __void__setCentre__C5_osg_Vec3_R1, "Set the centre point of the SphereSegment. ", ""); I_Method0(const osg::Vec3 &, getCentre, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getCentre, "Get the centre point of the SphereSegment. ", ""); I_Method1(void, setRadius, IN, float, r, + Properties::NON_VIRTUAL, __void__setRadius__float, "Set the radius of the SphereSegment. ", ""); I_Method0(float, getRadius, + Properties::NON_VIRTUAL, __float__getRadius, "Get the radius of the SphereSegment. ", ""); I_Method3(void, setArea, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, + Properties::NON_VIRTUAL, __void__setArea__C5_osg_Vec3_R1__float__float, "Set the area of the sphere segment. ", " param vec vector pointing from sphere centre to centre point of rendered area on sphere surface azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) "); I_Method3(void, getArea, IN, osg::Vec3 &, vec, IN, float &, azRange, IN, float &, elevRange, + Properties::NON_VIRTUAL, __void__getArea__osg_Vec3_R1__float_R1__float_R1, "Get the area of the sphere segment. ", " param vec vector pointing from sphere centre to centre point of rendered area on sphere surface (normalized) azRange azimuth range in radians (with centre along vec) elevRange elevation range in radians (with centre along vec) "); I_Method4(void, setArea, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, + Properties::NON_VIRTUAL, __void__setArea__float__float__float__float, "Set the area of the sphere segment. ", " param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum "); I_Method4(void, getArea, IN, float &, azMin, IN, float &, azMax, IN, float &, elevMin, IN, float &, elevMax, + Properties::NON_VIRTUAL, __void__getArea__float_R1__float_R1__float_R1__float_R1, "Get the area of the sphere segment. ", " param azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum "); I_Method1(void, setDensity, IN, int, d, + Properties::NON_VIRTUAL, __void__setDensity__int, "Set the density of the sphere segment. ", ""); I_Method0(int, getDensity, + Properties::NON_VIRTUAL, __int__getDensity, "Get the density of the sphere segment. ", ""); I_Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm, + Properties::NON_VIRTUAL, __void__setDrawMask__DrawMask, "Specify the DrawMask. ", " param dm Bitmask specifying which parts of the sphere segment should be drawn. see DrawMask"); I_Method0(osgSim::SphereSegment::DrawMask, getDrawMask, + Properties::NON_VIRTUAL, __DrawMask__getDrawMask, "Get the DrawMask. ", ""); I_Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, __void__setSurfaceColor__C5_osg_Vec4_R1, "Set the color of the surface. ", ""); I_Method0(osg::Vec4, getSurfaceColor, + Properties::NON_VIRTUAL, __osg_Vec4__getSurfaceColor, "Get the color of the surface. ", ""); I_Method1(void, setSpokeColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, __void__setSpokeColor__C5_osg_Vec4_R1, "Set the color of the spokes. ", ""); I_Method0(osg::Vec4, getSpokeColor, + Properties::NON_VIRTUAL, __osg_Vec4__getSpokeColor, "Get the color of the spokes. ", ""); I_Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, __void__setEdgeLineColor__C5_osg_Vec4_R1, "Set the color of the edge line. ", ""); I_Method0(osg::Vec4, getEdgeLineColor, + Properties::NON_VIRTUAL, __osg_Vec4__getEdgeLineColor, "Get the color of the edge line. ", ""); I_Method1(void, setSideColor, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, __void__setSideColor__C5_osg_Vec4_R1, "Set the color of the planes. ", ""); I_Method0(osg::Vec4, getSideColor, + Properties::NON_VIRTUAL, __osg_Vec4__getSideColor, "Get the color of the planes. ", ""); I_Method1(void, setAllColors, IN, const osg::Vec4 &, c, + Properties::NON_VIRTUAL, __void__setAllColors__C5_osg_Vec4_R1, "Set color of all components. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + Properties::NON_VIRTUAL, __LineList__computeIntersection__C5_osg_Matrixd_R1__osg_Node_P1, "Compute the interesection lines between subgraph and this sphere segment. ", "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); I_Method2(osgSim::SphereSegment::LineList, computeIntersection, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, __LineList__computeIntersection__C5_osg_Matrixd_R1__osg_Drawable_P1, "Compute the interesection lines between specified drawable and this sphere segment. ", "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Node *, subgraph, + Properties::NON_VIRTUAL, __osg_Node_P1__computeIntersectionSubgraph__C5_osg_Matrixd_R1__osg_Node_P1, "Compute the interesection lines between subgraph and this sphere segment. ", "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); I_Method2(osg::Node *, computeIntersectionSubgraph, IN, const osg::Matrixd &, matrix, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, __osg_Node_P1__computeIntersectionSubgraph__C5_osg_Matrixd_R1__osg_Drawable_P1, "Compute the interesection lines between specified drawable and this sphere segment. ", "The matrix is the transform that takes the subgraph into the same coordiante frame as the sphere segment. The resulting intersections are in the coordinate frame of the sphere segment. "); @@ -214,26 +245,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec3Array >) "", ""); I_Constructor1(IN, osg::Vec3Array *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Vec3Array > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Vec3Array *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Vec3Array *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec3Array > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgSim/VisibilityGroup.cpp b/src/osgWrappers/osgSim/VisibilityGroup.cpp index b6b98e883..713dd240f 100644 --- a/src/osgWrappers/osgSim/VisibilityGroup.cpp +++ b/src/osgWrappers/osgSim/VisibilityGroup.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::VisibilityGroup) I_BaseType(osg::Group); I_Constructor0(____VisibilityGroup, "", @@ -34,58 +34,72 @@ BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setVisibilityVolume__osg_Node_P1, "Set the subgraph that is intersected for the visibility determination. ", ""); I_Method0(osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, __osg_Node_P1__getVisibilityVolume, "Get the subgraph that is intersected for the visibility determination. ", ""); I_Method0(const osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getVisibilityVolume, "Get the const subgraph that is intersected for the visibility determination. ", ""); I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, __void__setVolumeIntersectionMask__osg_Node_NodeMask, "Set the traversal mask for the intersection testing. ", ""); I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask, + Properties::NON_VIRTUAL, __osg_Node_NodeMask__getVolumeIntersectionMask, "Get the traversal mask for the intersection testing. ", ""); I_Method1(void, setSegmentLength, IN, float, length, + Properties::NON_VIRTUAL, __void__setSegmentLength__float, "Set the length of the intersection segment. ", "The segments extends this many database units from the camera eye-point along the look vector. If this is left at zero then the diameter of the bounding sphere of the visibility volume is used. "); I_Method0(float, getSegmentLength, + Properties::NON_VIRTUAL, __float__getSegmentLength, "Get the length of the intersection segment. ", ""); diff --git a/src/osgWrappers/osgTerrain/DataSet.cpp b/src/osgWrappers/osgTerrain/DataSet.cpp index d5a305ab5..c6d214b27 100644 --- a/src/osgWrappers/osgTerrain/DataSet.cpp +++ b/src/osgWrappers/osgTerrain/DataSet.cpp @@ -69,21 +69,25 @@ BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::MipMappingMode) I_EnumLabel(osgTerrain::DataSet::MIP_MAPPING_IMAGERY); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet) I_BaseType(osg::Referenced); I_Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile, + Properties::NON_VIRTUAL, __void__insertTileToQuadMap__CompositeDestination_P1, "", ""); I_Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + Properties::NON_VIRTUAL, __DestinationTile_P1__getTile__unsigned_int__unsigned_int__unsigned_int, "", ""); I_Method3(osgTerrain::DataSet::CompositeDestination *, getComposite, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y, + Properties::NON_VIRTUAL, __CompositeDestination_P1__getComposite__unsigned_int__unsigned_int__unsigned_int, "", ""); I_Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y, + Properties::NON_VIRTUAL, __Row_R1__getRow__unsigned_int__unsigned_int, "", ""); @@ -91,318 +95,397 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) "", ""); I_Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source, + Properties::NON_VIRTUAL, __void__addSource__Source_P1, "", ""); I_Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite, + Properties::NON_VIRTUAL, __void__addSource__CompositeSource_P1, "", ""); I_Method0(void, loadSources, + Properties::NON_VIRTUAL, __void__loadSources, "", ""); I_Method1(void, setMaximumTileImageSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__setMaximumTileImageSize__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumTileImageSize, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumTileImageSize, "", ""); I_Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__setMaximumTileTerrainSize__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumTileTerrainSize, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumTileTerrainSize, "", ""); I_Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d, + Properties::NON_VIRTUAL, __void__setMaximumVisibleDistanceOfTopLevel__float, "", ""); I_Method0(float, getMaximumVisibleDistanceOfTopLevel, + Properties::NON_VIRTUAL, __float__getMaximumVisibleDistanceOfTopLevel, "", ""); I_Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio, + Properties::NON_VIRTUAL, __void__setRadiusToMaxVisibleDistanceRatio__float, "", ""); I_Method0(float, getRadiusToMaxVisibleDistanceRatio, + Properties::NON_VIRTUAL, __float__getRadiusToMaxVisibleDistanceRatio, "", ""); I_Method1(void, setVerticalScale, IN, float, verticalScale, + Properties::NON_VIRTUAL, __void__setVerticalScale__float, "", ""); I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, __float__getVerticalScale, "", ""); I_Method1(void, setSkirtRatio, IN, float, skirtRatio, + Properties::NON_VIRTUAL, __void__setSkirtRatio__float, "", ""); I_Method0(float, getSkirtRatio, + Properties::NON_VIRTUAL, __float__getSkirtRatio, "", ""); I_Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor, + Properties::NON_VIRTUAL, __void__setDefaultColor__C5_osg_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getDefaultColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getDefaultColor, "", ""); I_Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, __void__setDestinationCoordinateSystem__C5_std_string_R1, "", ""); I_Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __void__setDestinationCoordinateSystem__osg_CoordinateSystemNode_P1, "", ""); I_Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem, + Properties::NON_VIRTUAL, __osg_CoordinateSystemNode_P1__getDestinationCoordinateSystem, "", ""); I_Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, __void__setIntermediateCoordinateSystem__C5_std_string_R1, "", ""); I_Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __void__setIntermediateCoordinateSystem__osg_CoordinateSystemNode_P1, "", ""); I_Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem, + Properties::NON_VIRTUAL, __osg_CoordinateSystemNode_P1__getIntermediateCoordinateSystem, "", ""); I_Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setConvertFromGeographicToGeocentric__bool, "", ""); I_Method0(bool, getConvertFromGeographicToGeocentric, + Properties::NON_VIRTUAL, __bool__getConvertFromGeographicToGeocentric, "", ""); I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et, + Properties::NON_VIRTUAL, __void__setEllipsoidModel__osg_EllipsoidModel_P1, "", ""); I_Method0(osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, __osg_EllipsoidModel_P1__getEllipsoidModel, "", ""); I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, __C5_osg_EllipsoidModel_P1__getEllipsoidModel, "", ""); I_Method0(bool, mapLatLongsToXYZ, + Properties::NON_VIRTUAL, __bool__mapLatLongsToXYZ, "", ""); I_Method1(void, setDestinationExtents, IN, const osgTerrain::GeospatialExtents &, extents, + Properties::NON_VIRTUAL, __void__setDestinationExtents__C5_GeospatialExtents_R1, "", ""); I_Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform, + Properties::NON_VIRTUAL, __void__setDestinationGeoTransform__C5_osg_Matrixd_R1, "", ""); I_Method1(void, setArchiveName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setArchiveName__C5_std_string_R1, "Set the Archive name if one is to be used. ", ""); I_Method0(const std::string &, getArchiveName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getArchiveName, "Get the Archive name. ", ""); I_Method1(void, setArchive, IN, osgDB::Archive *, archive, + Properties::NON_VIRTUAL, __void__setArchive__osgDB_Archive_P1, "Set the Archive. ", ""); I_Method0(osgDB::Archive *, getArchive, + Properties::NON_VIRTUAL, __osgDB_Archive_P1__getArchive, "Get the Archive if one is to being used. ", ""); I_Method1(void, setDestinationName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setDestinationName__C5_std_string_R1, "Set the Directory, DestinationTileBaseName and DestinationTileExtension from the passed in filename. ", ""); I_Method1(void, setDirectory, IN, const std::string &, directory, + Properties::NON_VIRTUAL, __void__setDirectory__C5_std_string_R1, "", ""); I_Method0(const std::string &, getDirectory, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDirectory, "", ""); I_Method1(void, setDestinationTileBaseName, IN, const std::string &, basename, + Properties::NON_VIRTUAL, __void__setDestinationTileBaseName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getDestinationTileBaseName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDestinationTileBaseName, "", ""); I_Method1(void, setDestinationTileExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, __void__setDestinationTileExtension__C5_std_string_R1, "", ""); I_Method0(const std::string &, getDestinationTileExtension, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDestinationTileExtension, "", ""); I_Method1(void, setDestinationImageExtension, IN, const std::string &, extension, + Properties::NON_VIRTUAL, __void__setDestinationImageExtension__C5_std_string_R1, "", ""); I_Method0(const std::string &, getDestinationImageExtension, + Properties::NON_VIRTUAL, __C5_std_string_R1__getDestinationImageExtension, "", ""); I_Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type, + Properties::NON_VIRTUAL, __void__setDatabaseType__DatabaseType, "", ""); I_Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType, + Properties::NON_VIRTUAL, __DatabaseType__getDatabaseType, "", ""); I_Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type, + Properties::NON_VIRTUAL, __void__setGeometryType__GeometryType, "", ""); I_Method0(osgTerrain::DataSet::GeometryType, getGeometryType, + Properties::NON_VIRTUAL, __GeometryType__getGeometryType, "", ""); I_Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type, + Properties::NON_VIRTUAL, __void__setTextureType__TextureType, "", ""); I_Method0(osgTerrain::DataSet::TextureType, getTextureType, + Properties::NON_VIRTUAL, __TextureType__getTextureType, "", ""); I_Method1(void, setMaxAnisotropy, IN, float, d, + Properties::NON_VIRTUAL, __void__setMaxAnisotropy__float, "", ""); I_Method0(float, getMaxAnisotropy, + Properties::NON_VIRTUAL, __float__getMaxAnisotropy, "", ""); I_Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode, + Properties::NON_VIRTUAL, __void__setMipMappingMode__MipMappingMode, "", ""); I_Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode, + Properties::NON_VIRTUAL, __MipMappingMode__getMipMappingMode, "", ""); I_Method1(void, setUseLocalTileTransform, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setUseLocalTileTransform__bool, "", ""); I_Method0(bool, getUseLocalTileTransform, + Properties::NON_VIRTUAL, __bool__getUseLocalTileTransform, "", ""); I_Method1(void, setSimplifyTerrain, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setSimplifyTerrain__bool, "", ""); I_Method0(bool, getSimplifyTerrain, + Properties::NON_VIRTUAL, __bool__getSimplifyTerrain, "", ""); I_Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDecorateGeneratedSceneGraphWithCoordinateSystemNode__bool, "", ""); I_Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode, + Properties::NON_VIRTUAL, __bool__getDecorateGeneratedSceneGraphWithCoordinateSystemNode, "", ""); I_Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setDecorateGeneratedSceneGraphWithMultiTextureControl__bool, "", ""); I_Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl, + Properties::NON_VIRTUAL, __bool__getDecorateGeneratedSceneGraphWithMultiTextureControl, "", ""); I_Method0(unsigned int, getNumOfTextureLevels, + Properties::NON_VIRTUAL, __unsigned_int__getNumOfTextureLevels, "", ""); I_Method1(void, setCommentString, IN, const std::string &, comment, + Properties::NON_VIRTUAL, __void__setCommentString__C5_std_string_R1, "", ""); I_Method0(const std::string &, getCommentString, + Properties::NON_VIRTUAL, __C5_std_string_R1__getCommentString, "", ""); I_Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setWriteNodeBeforeSimplification__bool, "", ""); I_Method0(bool, getWriteNodeBeforeSimplification, + Properties::NON_VIRTUAL, __bool__getWriteNodeBeforeSimplification, "", ""); I_Method9(osgTerrain::DataSet::CompositeDestination *, createDestinationGraph, IN, osgTerrain::DataSet::CompositeDestination *, parent, IN, osg::CoordinateSystemNode *, cs, IN, const osgTerrain::GeospatialExtents &, extents, IN, unsigned int, maxImageSize, IN, unsigned int, maxTerrainSize, IN, unsigned int, currentLevel, IN, unsigned int, currentX, IN, unsigned int, currentY, IN, unsigned int, maxNumLevels, + Properties::NON_VIRTUAL, __CompositeDestination_P1__createDestinationGraph__CompositeDestination_P1__osg_CoordinateSystemNode_P1__C5_GeospatialExtents_R1__unsigned_int__unsigned_int__unsigned_int__unsigned_int__unsigned_int__unsigned_int, "", ""); I_Method1(void, computeDestinationGraphFromSources, IN, unsigned int, numLevels, + Properties::NON_VIRTUAL, __void__computeDestinationGraphFromSources__unsigned_int, "", ""); I_Method0(void, updateSourcesForDestinationGraphNeeds, + Properties::NON_VIRTUAL, __void__updateSourcesForDestinationGraphNeeds, "", ""); I_Method0(void, populateDestinationGraphFromSources, + Properties::NON_VIRTUAL, __void__populateDestinationGraphFromSources, "", ""); I_Method1(void, createDestination, IN, unsigned int, numLevels, + Properties::NON_VIRTUAL, __void__createDestination__unsigned_int, "", ""); I_Method0(void, buildDestination, + Properties::NON_VIRTUAL, __void__buildDestination, "", ""); I_Method0(void, writeDestination, + Properties::NON_VIRTUAL, __void__writeDestination, "", ""); I_Method0(osg::Node *, getDestinationRootNode, + Properties::NON_VIRTUAL, __osg_Node_P1__getDestinationRootNode, "", ""); I_Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void___writeNodeFile__C5_osg_Node_R1__C5_std_string_R1, "", ""); I_Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void___writeImageFile__C5_osg_Image_R1__C5_std_string_R1, "", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__osg_State_P1, "", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __osg_State_P1__getState, "", ""); @@ -523,7 +606,7 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > >, osgTerrain::DataSet::CompositeDestination::ChildList); -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); I_Constructor0(____CompositeDestination, @@ -534,54 +617,67 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeDestination) "", ""); I_Method0(void, computeNeighboursFromQuadMap, + Properties::NON_VIRTUAL, __void__computeNeighboursFromQuadMap, "", ""); I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, __void__addRequiredResolutions__CompositeSource_P1, "", ""); I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, __void__readFrom__CompositeSource_P1, "", ""); I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, __void__equalizeBoundaries, "", ""); I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, __osg_Node_P1__createScene, "", ""); I_Method0(bool, areSubTilesComplete, + Properties::NON_VIRTUAL, __bool__areSubTilesComplete, "", ""); I_Method0(std::string, getSubTileName, + Properties::NON_VIRTUAL, __std_string__getSubTileName, "", ""); I_Method0(osg::Node *, createPagedLODScene, + Properties::NON_VIRTUAL, __osg_Node_P1__createPagedLODScene, "", ""); I_Method0(osg::Node *, createSubTileScene, + Properties::NON_VIRTUAL, __osg_Node_P1__createSubTileScene, "", ""); I_Method0(void, unrefSubTileData, + Properties::NON_VIRTUAL, __void__unrefSubTileData, "", ""); I_Method0(void, unrefLocalData, + Properties::NON_VIRTUAL, __void__unrefLocalData, "", ""); I_Method1(void, setSubTilesGenerated, IN, bool, generated, + Properties::NON_VIRTUAL, __void__setSubTilesGenerated__bool, "", ""); I_Method0(bool, getSubTilesGenerated, + Properties::NON_VIRTUAL, __bool__getSubTilesGenerated, "", ""); @@ -612,26 +708,31 @@ TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgT TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer >, osgTerrain::DataSet::CompositeSource::source_lod_iterator); -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeSource) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::CompositeSource) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP, + Properties::NON_EXPLICIT, ____CompositeSource__CompositeType, "", ""); I_Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type, + Properties::NON_VIRTUAL, __void__setType__CompositeType, "", ""); I_Method0(osgTerrain::DataSet::CompositeType, getType, + Properties::NON_VIRTUAL, __CompositeType__getType, "", ""); I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, __void__setSortValueFromSourceDataResolution, "", ""); I_Method0(void, sort, + Properties::NON_VIRTUAL, __void__sort, "", ""); @@ -648,10 +749,12 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::DefaultSourceAdvance "", ""); I_Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, x, IN, int, x, + Properties::NON_VIRTUAL, __bool__isActive__C5_CompositeSource_R1__int, "", ""); I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, "", ""); @@ -668,14 +771,17 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator) "", ""); I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::iterator &, rhs, + Properties::NON_EXPLICIT, ____iterator__C5_iterator_R1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, advance, + Properties::NON_VIRTUAL, __bool__advance, "", ""); @@ -683,10 +789,12 @@ END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::LODSourceAdvancer) I_ConstructorWithDefaults1(IN, float, targetResolution, 0.0f, + Properties::NON_EXPLICIT, ____LODSourceAdvancer__float, "", ""); I_Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index, + Properties::NON_VIRTUAL, __bool__advanceToNextSource__C5_CompositeSource_R1__int_R1, "", ""); @@ -697,9 +805,10 @@ TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Image > >, osgTerrain::DataSet:: TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osgTerrain::DataSet::DestinationData::ModelList); -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationData) I_BaseType(osg::Referenced); I_Constructor1(IN, osgTerrain::DataSet *, dataSet, + Properties::NON_EXPLICIT, ____DestinationData__DataSet_P1, "", ""); @@ -725,105 +834,129 @@ BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::DestinationTile::Position) I_EnumLabel(osgTerrain::DataSet::DestinationTile::NUMBER_OF_POSITIONS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::DestinationTile) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); I_Constructor0(____DestinationTile, "", ""); I_Method0(void, computeNeighboursFromQuadMap, + Properties::NON_VIRTUAL, __void__computeNeighboursFromQuadMap, "", ""); I_Method8(void, setNeighbours, IN, osgTerrain::DataSet::DestinationTile *, left, IN, osgTerrain::DataSet::DestinationTile *, left_below, IN, osgTerrain::DataSet::DestinationTile *, below, IN, osgTerrain::DataSet::DestinationTile *, below_right, IN, osgTerrain::DataSet::DestinationTile *, right, IN, osgTerrain::DataSet::DestinationTile *, right_above, IN, osgTerrain::DataSet::DestinationTile *, above, IN, osgTerrain::DataSet::DestinationTile *, above_left, + Properties::NON_VIRTUAL, __void__setNeighbours__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1__DestinationTile_P1, "", ""); I_Method0(void, checkNeighbouringTiles, + Properties::NON_VIRTUAL, __void__checkNeighbouringTiles, "", ""); I_Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, __void__setMaximumImagerySize__unsigned_int__unsigned_int, "", ""); I_Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows, + Properties::NON_VIRTUAL, __void__setMaximumTerrainSize__unsigned_int__unsigned_int, "", ""); I_Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, __void__computeMaximumSourceResolution__CompositeSource_P1, "", ""); I_Method5(bool, computeImageResolution, IN, unsigned int, layer, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY, + Properties::NON_VIRTUAL, __bool__computeImageResolution__unsigned_int__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, "", ""); I_Method4(bool, computeTerrainResolution, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY, + Properties::NON_VIRTUAL, __bool__computeTerrainResolution__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, "", ""); I_Method0(void, allocate, + Properties::NON_VIRTUAL, __void__allocate, "", ""); I_Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, __void__addRequiredResolutions__CompositeSource_P1, "", ""); I_Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph, + Properties::NON_VIRTUAL, __void__readFrom__CompositeSource_P1, "", ""); I_Method0(void, allocateEdgeNormals, + Properties::NON_VIRTUAL, __void__allocateEdgeNormals, "", ""); I_Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, __void__equalizeCorner__Position, "", ""); I_Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position, + Properties::NON_VIRTUAL, __void__equalizeEdge__Position, "", ""); I_Method0(void, equalizeBoundaries, + Properties::NON_VIRTUAL, __void__equalizeBoundaries, "", ""); I_Method1(void, setTileComplete, IN, bool, complete, + Properties::NON_VIRTUAL, __void__setTileComplete__bool, "", ""); I_Method0(bool, getTileComplete, + Properties::NON_VIRTUAL, __bool__getTileComplete, "", ""); I_Method0(void, optimizeResolution, + Properties::NON_VIRTUAL, __void__optimizeResolution, "", ""); I_Method0(osg::Node *, createScene, + Properties::NON_VIRTUAL, __osg_Node_P1__createScene, "", ""); I_Method0(osg::StateSet *, createStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__createStateSet, "", ""); I_Method0(osg::Node *, createHeightField, + Properties::NON_VIRTUAL, __osg_Node_P1__createHeightField, "", ""); I_Method0(osg::Node *, createPolygonal, + Properties::NON_VIRTUAL, __osg_Node_P1__createPolygonal, "", ""); I_Method0(void, unrefData, + Properties::NON_VIRTUAL, __void__unrefData, "", ""); I_Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer, + Properties::NON_VIRTUAL, __ImageData_R1__getImageData__unsigned_int, "", ""); @@ -872,7 +1005,7 @@ BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::Source::ParameterPolicy) I_EnumLabel(osgTerrain::DataSet::Source::PREFER_FILE_SETTINGS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); I_Constructor0(____Source, @@ -883,174 +1016,217 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::Source) "", ""); I_Method1(void, setSortValue, IN, double, s, + Properties::NON_VIRTUAL, __void__setSortValue__double, "", ""); I_Method0(double, getSortValue, + Properties::NON_VIRTUAL, __double__getSortValue, "", ""); I_Method0(void, setSortValueFromSourceDataResolution, + Properties::NON_VIRTUAL, __void__setSortValueFromSourceDataResolution, "", ""); I_Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type, + Properties::NON_VIRTUAL, __void__setType__Type, "", ""); I_Method0(osgTerrain::DataSet::Source::Type, getType, + Properties::NON_VIRTUAL, __Type__getType, "", ""); I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, __void__setFileName__C5_std_string_R1, "", ""); I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, __C5_std_string_R1__getFileName, "", ""); I_Method1(void, setTemporaryFile, IN, bool, temporaryFile, + Properties::NON_VIRTUAL, __void__setTemporaryFile__bool, "", ""); I_Method0(bool, getTemporaryFile, + Properties::NON_VIRTUAL, __bool__getTemporaryFile, "", ""); I_Method1(void, setGdalDataset, IN, void *, gdalDataset, + Properties::NON_VIRTUAL, __void__setGdalDataset__void_P1, "", ""); I_Method0(void *, getGdalDataset, + Properties::NON_VIRTUAL, __void_P1__getGdalDataset, "", ""); I_Method0(const void *, getGdalDataset, + Properties::NON_VIRTUAL, __C5_void_P1__getGdalDataset, "", ""); I_Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, __void__setCoordinateSystemPolicy__ParameterPolicy, "", ""); I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy, + Properties::NON_VIRTUAL, __ParameterPolicy__getCoordinateSystemPolicy, "", ""); I_Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText, + Properties::NON_VIRTUAL, __void__setCoordinateSystem__C5_std_string_R1, "", ""); I_Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __void__setCoordinateSystem__osg_CoordinateSystemNode_P1, "", ""); I_Method0(osg::CoordinateSystemNode *, getCoordinateSystem, + Properties::NON_VIRTUAL, __osg_CoordinateSystemNode_P1__getCoordinateSystem, "", ""); I_Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy, + Properties::NON_VIRTUAL, __void__setGeoTransformPolicy__ParameterPolicy, "", ""); I_Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy, + Properties::NON_VIRTUAL, __ParameterPolicy__getGeoTransformPolicy, "", ""); I_Method1(void, setGeoTransform, IN, osg::Matrixd &, transform, + Properties::NON_VIRTUAL, __void__setGeoTransform__osg_Matrixd_R1, "", ""); I_Method0(osg::Matrixd &, getGeoTransform, + Properties::NON_VIRTUAL, __osg_Matrixd_R1__getGeoTransform, "", ""); I_Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax, + Properties::NON_VIRTUAL, __void__setGeoTransformFromRange__double__double__double__double, "", ""); I_Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, + Properties::NON_VIRTUAL, __void__assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy, "", ""); I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, __void__setMinLevel__unsigned_int, "", ""); I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, __void__setMaxLevel__unsigned_int, "", ""); I_Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, __void__setMinMaxLevel__unsigned_int__unsigned_int, "", ""); I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, __unsigned_int__getMinLevel, "", ""); I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, __unsigned_int__getMaxLevel, "", ""); I_Method1(void, setLayer, IN, unsigned int, layer, + Properties::NON_VIRTUAL, __void__setLayer__unsigned_int, "", ""); I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, __unsigned_int__getLayer, "", ""); I_Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data, + Properties::NON_VIRTUAL, __void__setSourceData__SourceData_P1, "", ""); I_Method0(osgTerrain::DataSet::SourceData *, getSourceData, + Properties::NON_VIRTUAL, __SourceData_P1__getSourceData, "", ""); I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, __bool__intersects__C5_SpatialProperties_R1, "", ""); I_Method0(void, loadSourceData, + Properties::NON_VIRTUAL, __void__loadSourceData, "", ""); I_Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __bool__needReproject__C5_osg_CoordinateSystemNode_P1, "", ""); I_Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution, + Properties::NON_VIRTUAL, __bool__needReproject__C5_osg_CoordinateSystemNode_P1__double__double, "", ""); I_MethodWithDefaults3(osgTerrain::DataSet::Source *, doReproject, IN, const std::string &, filename, , IN, osg::CoordinateSystemNode *, cs, , IN, double, targetResolution, 0.0, + Properties::NON_VIRTUAL, __Source_P1__doReproject__C5_std_string_R1__osg_CoordinateSystemNode_P1__double, "", ""); I_Method0(void, buildOverviews, + Properties::NON_VIRTUAL, __void__buildOverviews, "", ""); I_Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY, + Properties::NON_VIRTUAL, __void__addRequiredResolution__double__double, "", ""); I_Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions, + Properties::NON_VIRTUAL, __void__setRequiredResolutions__ResolutionList_R1, "", ""); I_Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, __ResolutionList_R1__getRequiredResolutions, "", ""); I_Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions, + Properties::NON_VIRTUAL, __C5_ResolutionList_R1__getRequiredResolutions, "", ""); I_Method0(void, consolodateRequiredResolutions, + Properties::NON_VIRTUAL, __void__consolodateRequiredResolutions, "", ""); @@ -1112,42 +1288,51 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >, osgTerrain::DataSet::SourceData::SpatialPropertiesMap); -BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::DataSet::SourceData) I_BaseType(osg::Referenced); I_BaseType(osgTerrain::DataSet::SpatialProperties); I_ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0, + Properties::NON_EXPLICIT, ____SourceData__Source_P1, "", ""); I_Method1(osgTerrain::GeospatialExtents, getExtents, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __GeospatialExtents__getExtents__C5_osg_CoordinateSystemNode_P1, "", ""); I_Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs, + Properties::NON_VIRTUAL, __C5_SpatialProperties_R1__computeSpatialProperties__C5_osg_CoordinateSystemNode_P1, "", ""); I_Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, __bool__intersects__C5_SpatialProperties_R1, "", ""); I_Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::NON_VIRTUAL, __void__read__DestinationData_R1, "", ""); I_Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, __void__readImage__DestinationData_R1, "", ""); I_Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, __void__readHeightField__DestinationData_R1, "", ""); I_Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination, + Properties::VIRTUAL, __void__readModels__DestinationData_R1, "", ""); I_Method3(float, getInterpolatedValue, IN, GDALRasterBand *, band, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, __float__getInterpolatedValue__GDALRasterBand_P1__double__double, "", ""); @@ -1167,6 +1352,7 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) "", ""); I_Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_EXPLICIT, ____SpatialProperties__C5_SpatialProperties_R1, "", ""); @@ -1175,10 +1361,12 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) "", ""); I_Method1(osgTerrain::DataSet::SpatialProperties &, assignSpatialProperties, IN, const osgTerrain::DataSet::SpatialProperties &, sp, + Properties::NON_VIRTUAL, __SpatialProperties_R1__assignSpatialProperties__C5_SpatialProperties_R1, "", ""); I_Method0(void, computeExtents, + Properties::NON_VIRTUAL, __void__computeExtents, "", ""); @@ -1199,70 +1387,87 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::GeospatialExtents) "", ""); I_Method0(double &, xMin, + Properties::NON_VIRTUAL, __double_R1__xMin, "", ""); I_Method0(double, xMin, + Properties::NON_VIRTUAL, __double__xMin, "", ""); I_Method0(double &, yMin, + Properties::NON_VIRTUAL, __double_R1__yMin, "", ""); I_Method0(double, yMin, + Properties::NON_VIRTUAL, __double__yMin, "", ""); I_Method0(double &, xMax, + Properties::NON_VIRTUAL, __double_R1__xMax, "", ""); I_Method0(double, xMax, + Properties::NON_VIRTUAL, __double__xMax, "", ""); I_Method0(double &, yMax, + Properties::NON_VIRTUAL, __double_R1__yMax, "", ""); I_Method0(double, yMax, + Properties::NON_VIRTUAL, __double__yMax, "", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(double, radius, + Properties::NON_VIRTUAL, __double__radius, "", ""); I_Method0(double, radius2, + Properties::NON_VIRTUAL, __double__radius2, "", ""); I_Method2(osgTerrain::GeospatialExtents, intersection, IN, const osgTerrain::GeospatialExtents &, e, IN, double, xoffset, + Properties::NON_VIRTUAL, __GeospatialExtents__intersection__C5_GeospatialExtents_R1__double, "", ""); I_Method1(bool, intersects, IN, const osgTerrain::GeospatialExtents &, bb, + Properties::NON_VIRTUAL, __bool__intersects__C5_GeospatialExtents_R1, "Return true if this bounding box intersects the specified bounding box. ", ""); I_Method1(void, expandBy, IN, const osg::BoundingSphere &, sh, + Properties::NON_VIRTUAL, __void__expandBy__C5_osg_BoundingSphere_R1, "", ""); I_Method1(void, expandBy, IN, const osg::Vec3 &, v, + Properties::NON_VIRTUAL, __void__expandBy__C5_osg_Vec3_R1, "", ""); I_Method1(void, expandBy, IN, const osgTerrain::GeospatialExtents &, e, + Properties::NON_VIRTUAL, __void__expandBy__C5_GeospatialExtents_R1, "", ""); @@ -1276,26 +1481,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) "", ""); I_Constructor1(IN, osg::Image *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::Image *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::Image *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::Image > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -1309,26 +1520,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeDestination >) "", ""); I_Constructor1(IN, osgTerrain::DataSet::CompositeDestination *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgTerrain::DataSet::CompositeDestination *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgTerrain::DataSet::CompositeDestination *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -1342,26 +1559,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeSource >) "", ""); I_Constructor1(IN, osgTerrain::DataSet::CompositeSource *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgTerrain::DataSet::CompositeSource *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgTerrain::DataSet::CompositeSource *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -1375,26 +1598,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::DestinationTile >) "", ""); I_Constructor1(IN, osgTerrain::DataSet::DestinationTile *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgTerrain::DataSet::DestinationTile *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgTerrain::DataSet::DestinationTile *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -1408,26 +1637,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::Source >) "", ""); I_Constructor1(IN, osgTerrain::DataSet::Source *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgTerrain::DataSet::Source *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgTerrain::DataSet::Source *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::DataSet::Source > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -1442,14 +1677,17 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator "", ""); I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer > &, rhs, + Properties::NON_EXPLICIT, ____base_source_iterator__C5_base_source_iterator_R1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, advance, + Properties::NON_VIRTUAL, __bool__advance, "", ""); @@ -1461,14 +1699,17 @@ BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator "", ""); I_Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer > &, rhs, + Properties::NON_EXPLICIT, ____base_source_iterator__C5_base_source_iterator_R1, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(bool, advance, + Properties::NON_VIRTUAL, __bool__advance, "", ""); diff --git a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp index c52060b98..d14be2272 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp @@ -26,7 +26,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) I_BaseType(osg::Group); I_Constructor0(____HeightFieldNode, "", @@ -36,110 +36,137 @@ BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "clone an object of the same type as the node. ", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "return a clone of a node, with Object* return type. ", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "return true if this and obj are of the same kind of object. ", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the node's class type. ", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the node's library. ", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, "Traverse downwards : calls children's accept method with NodeVisitor. ", ""); I_Method1(void, setHeightField, IN, osg::HeightField *, heightField, + Properties::NON_VIRTUAL, __void__setHeightField__osg_HeightField_P1, "Set the HeightField for this HeightFieldNode. ", "If a Renderer is attached then this will be notified. "); I_Method0(osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, __osg_HeightField_P1__getHeightField, "Get the HeightField. ", ""); I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, __C5_osg_HeightField_P1__getHeightField, "Get the const HeightField. ", ""); I_Method0(void, heightFieldHasBeenModified, + Properties::NON_VIRTUAL, __void__heightFieldHasBeenModified, "Tell the Renderer that the height field has been modified, so that any cached data will need updating. ", ""); I_Method1(void, setRenderer, IN, osgTerrain::HeightFieldRenderer *, renderer, + Properties::NON_VIRTUAL, __void__setRenderer__osgTerrain_HeightFieldRenderer_P1, "Set the Renderer. ", ""); I_Method0(osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, __HeightFieldRenderer_P1__getRenderer, "Get the Renderer. ", ""); I_Method0(const osgTerrain::HeightFieldRenderer *, getRenderer, + Properties::NON_VIRTUAL, __C5_HeightFieldRenderer_P1__getRenderer, "Get the const Renderer. ", ""); I_Method1(void, setBaseTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setBaseTextureImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getBaseTextureImage, "", ""); I_Method0(const osg::Image *, getBaseTextureImage, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getBaseTextureImage, "", ""); I_Method1(void, setDetailTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setDetailTextureImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getDetailTextureImage, "", ""); I_Method0(const osg::Image *, getDetailTextureImage, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getDetailTextureImage, "", ""); I_Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setCloudShadowTextureImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getCloudShadowTextureImage, "", ""); I_Method0(const osg::Image *, getCloudShadowTextureImage, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getCloudShadowTextureImage, "", ""); I_Method1(void, setNormalMapImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setNormalMapImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getNormalMapImage, "", ""); I_Method0(const osg::Image *, getNormalMapImage, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getNormalMapImage, "", ""); I_Method0(void, computeNormalMap, + Properties::NON_VIRTUAL, __void__computeNormalMap, "", ""); diff --git a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp index 6a137c47f..42a241b10 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp @@ -34,26 +34,32 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldRenderer) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); I_Method0(osgTerrain::HeightFieldNode *, getHeightFieldNode, + Properties::NON_VIRTUAL, __HeightFieldNode_P1__getHeightFieldNode, "", ""); I_Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode, + Properties::NON_VIRTUAL, __C5_HeightFieldNode_P1__getHeightFieldNode, "", ""); I_Method0(void, initialize, + Properties::PURE_VIRTUAL, __void__initialize, "", ""); I_Method0(void, heightFieldHasBeenModified, + Properties::PURE_VIRTUAL, __void__heightFieldHasBeenModified, "", ""); I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::PURE_VIRTUAL, __void__update__osgUtil_UpdateVisitor_P1, "", ""); I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::PURE_VIRTUAL, __void__cull__osgUtil_CullVisitor_P1, "", ""); diff --git a/src/osgWrappers/osgText/FadeText.cpp b/src/osgWrappers/osgText/FadeText.cpp index fc261ecc1..5da32ae55 100644 --- a/src/osgWrappers/osgText/FadeText.cpp +++ b/src/osgWrappers/osgText/FadeText.cpp @@ -24,7 +24,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgText::FadeText) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::FadeText) I_BaseType(osgText::Text); I_Constructor0(____FadeText, "", @@ -34,34 +34,42 @@ BEGIN_OBJECT_REFLECTOR(osgText::FadeText) "", ""); I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, __osg_Object_P1__cloneType, "Clone the type of an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, "Clone an object, with Object* return type. ", "Must be defined by derived classes. "); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, "", ""); I_Method0(const char *, libraryName, + Properties::VIRTUAL, __C5_char_P1__libraryName, "return the name of the object's library. ", "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); I_Method1(void, setFadeSpeed, IN, float, fadeSpeed, + Properties::NON_VIRTUAL, __void__setFadeSpeed__float, "Set the speed that the alpha value changes as the text is occluded or becomes visible. ", ""); I_Method0(float, getFadeSpeed, + Properties::NON_VIRTUAL, __float__getFadeSpeed, "Get the speed that the alpha value changes. ", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1, "Draw the text. ", ""); diff --git a/src/osgWrappers/osgText/Font.cpp b/src/osgWrappers/osgText/Font.cpp index 15539a7b3..6c3f1e82e 100644 --- a/src/osgWrappers/osgText/Font.cpp +++ b/src/osgWrappers/osgText/Font.cpp @@ -28,141 +28,175 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgText::Font) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font) I_BaseType(osg::Object); I_ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0, + Properties::NON_EXPLICIT, ____Font__FontImplementation_P1, "", ""); 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 &, x, + 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 *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); 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(std::string, getFileName, + Properties::VIRTUAL, __std_string__getFileName, "", ""); I_Method1(void, setTexEnv, IN, osg::TexEnv *, texenv, + Properties::NON_VIRTUAL, __void__setTexEnv__osg_TexEnv_P1, "", ""); I_Method0(osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, __osg_TexEnv_P1__getTexEnv, "", ""); I_Method0(const osg::TexEnv *, getTexEnv, + Properties::NON_VIRTUAL, __C5_osg_TexEnv_P1__getTexEnv, "", ""); I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, __void__setStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getStateSet, "", ""); I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getStateSet, "", ""); I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::VIRTUAL, __void__setFontResolution__unsigned_int__unsigned_int, "Set the pixel width and height hint. ", ""); I_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, __unsigned_int__getFontWidth, "", ""); I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, __unsigned_int__getFontHeight, "", ""); I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::VIRTUAL, __osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType, "Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ", ""); I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + Properties::VIRTUAL, __Glyph_P1__getGlyph__unsigned_int, "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", ""); I_Method0(bool, hasVertical, + Properties::VIRTUAL, __bool__hasVertical, "Return true if this font provides vertical alignments and spacing or glyphs. ", ""); I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, __void__setGlyphImageMargin__unsigned_int, "Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. ", "Default margin is 2 texels. "); I_Method0(unsigned int, getGlyphImageMargin, + Properties::NON_VIRTUAL, __unsigned_int__getGlyphImageMargin, "", ""); I_Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, __void__setTextureSizeHint__unsigned_int__unsigned_int, "Set the size of texture to create to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(unsigned int, getTextureWidthHint, + Properties::NON_VIRTUAL, __unsigned_int__getTextureWidthHint, "", ""); I_Method0(unsigned int, getTextureHeightHint, + Properties::NON_VIRTUAL, __unsigned_int__getTextureHeightHint, "", ""); I_Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, __void__setMinFilterHint__osg_Texture_FilterMode, "Set the minification texture filter to use when creating the texture to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(osg::Texture::FilterMode, getMinFilterHint, + Properties::NON_VIRTUAL, __osg_Texture_FilterMode__getMinFilterHint, "", ""); I_Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode, + Properties::NON_VIRTUAL, __void__setMagFilterHint__osg_Texture_FilterMode, "Set the magnification texture filter to use when creating the texture to store the glyph images when rendering. ", "Note, this doesn't affect already created Texture Glhph's. "); I_Method0(osg::Texture::FilterMode, getMagFilterHint, + Properties::NON_VIRTUAL, __osg_Texture_FilterMode__getMagFilterHint, "", ""); I_Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation, + Properties::NON_VIRTUAL, __void__setImplementation__FontImplementation_P1, "", ""); I_Method0(osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, __FontImplementation_P1__getImplementation, "", ""); I_Method0(const osgText::Font::FontImplementation *, getImplementation, + Properties::NON_VIRTUAL, __C5_FontImplementation_P1__getImplementation, "", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); @@ -210,34 +244,42 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) "", ""); I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, __std_string__getFileName, "", ""); I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::PURE_VIRTUAL, __void__setFontResolution__unsigned_int__unsigned_int, "Set the pixel width and height hint. ", ""); I_Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, __Glyph_P1__getGlyph__unsigned_int, "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", ""); I_Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::PURE_VIRTUAL, __osg_Vec2__getKerning__unsigned_int__unsigned_int__KerningType, "Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint. ", ""); I_Method0(bool, hasVertical, + Properties::PURE_VIRTUAL, __bool__hasVertical, "Return true if this font provides vertical alignments and spacing or glyphs. ", ""); I_Method1(void, setFontWidth, IN, unsigned int, width, + Properties::NON_VIRTUAL, __void__setFontWidth__unsigned_int, "", ""); I_Method1(void, setFontHeight, IN, unsigned int, height, + Properties::NON_VIRTUAL, __void__setFontHeight__unsigned_int, "", ""); I_Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph, + Properties::NON_VIRTUAL, __void__addGlyph__unsigned_int__unsigned_int__unsigned_int__Glyph_P1, "", ""); @@ -253,92 +295,113 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) I_PublicMemberProperty(osgText::Font *, _facade); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::Glyph) I_BaseType(osg::Image); I_Constructor0(____Glyph, "", ""); I_Method0(unsigned int, getGlyphCode, + Properties::NON_VIRTUAL, __unsigned_int__getGlyphCode, "", ""); I_Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, __void__setHorizontalBearing__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getHorizontalBearing, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getHorizontalBearing, "", ""); I_Method1(void, setHorizontalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, __void__setHorizontalAdvance__float, "", ""); I_Method0(float, getHorizontalAdvance, + Properties::NON_VIRTUAL, __float__getHorizontalAdvance, "", ""); I_Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing, + Properties::NON_VIRTUAL, __void__setVerticalBearing__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getVerticalBearing, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getVerticalBearing, "", ""); I_Method1(void, setVerticalAdvance, IN, float, advance, + Properties::NON_VIRTUAL, __void__setVerticalAdvance__float, "", ""); I_Method0(float, getVerticalAdvance, + Properties::NON_VIRTUAL, __float__getVerticalAdvance, "", ""); I_Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture, + Properties::NON_VIRTUAL, __void__setTexture__GlyphTexture_P1, "", ""); I_Method0(osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, __GlyphTexture_P1__getTexture, "", ""); I_Method0(const osgText::Font::GlyphTexture *, getTexture, + Properties::NON_VIRTUAL, __C5_GlyphTexture_P1__getTexture, "", ""); I_Method2(void, setTexturePosition, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, __void__setTexturePosition__int__int, "", ""); I_Method0(int, getTexturePositionX, + Properties::NON_VIRTUAL, __int__getTexturePositionX, "", ""); I_Method0(int, getTexturePositionY, + Properties::NON_VIRTUAL, __int__getTexturePositionY, "", ""); I_Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, __void__setMinTexCoord__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getMinTexCoord, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getMinTexCoord, "", ""); I_Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord, + Properties::NON_VIRTUAL, __void__setMaxTexCoord__C5_osg_Vec2_R1, "", ""); I_Method0(const osg::Vec2 &, getMaxTexCoord, + Properties::NON_VIRTUAL, __C5_osg_Vec2_R1__getMaxTexCoord, "", ""); I_Method0(void, subload, + Properties::NON_VIRTUAL, __void__subload, "", ""); I_Method1(void, draw, IN, osg::State &, state, + Properties::NON_VIRTUAL, __void__draw__osg_State_R1, "", ""); @@ -380,38 +443,47 @@ BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) "", ""); I_Method0(const char *, className, + Properties::VIRTUAL, __C5_char_P1__className, "Return the name of the attribute's class type. ", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, + Properties::VIRTUAL, __int__compare__C5_osg_StateAttribute_R1, "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", ""); I_Method1(void, setGlyphImageMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, __void__setGlyphImageMargin__unsigned_int, "Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. ", ""); I_Method0(unsigned int, getGlyphImageMargin, + Properties::NON_VIRTUAL, __unsigned_int__getGlyphImageMargin, "", ""); I_Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY, + Properties::NON_VIRTUAL, __bool__getSpaceForGlyph__Glyph_P1__int_R1__int_R1, "", ""); I_Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY, + Properties::NON_VIRTUAL, __void__addGlyph__Glyph_P1__int__int, "", ""); I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, __void__apply__osg_State_R1, "Bind the texture object. ", "If the texture object hasn't already been compiled, create the texture mipmap levels. "); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp index 438f1d7b5..d611c2b3f 100644 --- a/src/osgWrappers/osgText/String.cpp +++ b/src/osgWrappers/osgText/String.cpp @@ -41,14 +41,17 @@ BEGIN_OBJECT_REFLECTOR(osgText::String) "", ""); I_Constructor1(IN, const osgText::String &, str, + Properties::NON_EXPLICIT, ____String__C5_String_R1, "", ""); I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, ____String__C5_std_string_R1, "", ""); I_Constructor1(IN, const wchar_t *, text, + Properties::NON_EXPLICIT, ____String__C5_wchar_t_P1, "", ""); @@ -57,18 +60,22 @@ BEGIN_OBJECT_REFLECTOR(osgText::String) "", ""); I_Method1(void, set, IN, const std::string &, str, + Properties::NON_VIRTUAL, __void__set__C5_std_string_R1, "", ""); I_Method1(void, set, IN, const wchar_t *, text, + Properties::NON_VIRTUAL, __void__set__C5_wchar_t_P1, "Set the text using a wchar_t string, which is converted to an internal TextString. ", ""); I_Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + Properties::NON_VIRTUAL, __void__set__C5_std_string_R1__Encoding, "Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ", "The encoding parameter specificies which Unicode encodeding is used in the std::string. "); I_Method0(std::string, createUTF8EncodedString, + Properties::NON_VIRTUAL, __std_string__createUTF8EncodedString, "returns a UTF8 encoded version of this osgText::String. ", ""); @@ -80,6 +87,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) "", ""); I_Constructor1(IN, const osgText::VectorUInt &, copy, + Properties::NON_EXPLICIT, ____VectorUInt__C5_VectorUInt_R1, "", ""); @@ -88,6 +96,7 @@ BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) "", ""); I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, ____VectorUInt__unsigned_int, "", ""); diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp index c1de23665..178251aaa 100644 --- a/src/osgWrappers/osgText/Text.cpp +++ b/src/osgWrappers/osgText/Text.cpp @@ -107,7 +107,7 @@ BEGIN_ENUM_REFLECTOR(osgText::Text::ColorGradientMode) I_EnumLabel(osgText::Text::OVERALL); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgText::Text) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Text) I_BaseType(osg::Drawable); I_Constructor0(____Text, "", @@ -117,306 +117,382 @@ BEGIN_OBJECT_REFLECTOR(osgText::Text) "", ""); 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 *, className, + Properties::VIRTUAL, __C5_char_P1__className, "return the name of the object's class type. ", "Must be defined by derived classes. "); 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_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0, + Properties::NON_VIRTUAL, __void__setFont__Font_P1, "Set the Font to use to render the text. ", "setFont(0) sets the use of the default font. "); I_Method1(void, setFont, IN, const std::string &, fontfile, + Properties::NON_VIRTUAL, __void__setFont__C5_std_string_R1, "Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ", "See the osgText::readFontFile function for how the font file will be located. "); I_Method0(const osgText::Font *, getFont, + Properties::NON_VIRTUAL, __C5_Font_P1__getFont, "Get the font. ", "Return 0 if default is being used. "); I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, __void__setFontResolution__unsigned_int__unsigned_int, "Set the Font reference width and height resolution in texels. ", "Note, the size may not be supported by current font, the closest supported font size will be selected. "); I_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, __unsigned_int__getFontWidth, "", ""); I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, __unsigned_int__getFontHeight, "", ""); I_Method1(void, setText, IN, const osgText::String &, text, + Properties::NON_VIRTUAL, __void__setText__C5_String_R1, "Set the text using a osgText::String. ", ""); I_Method1(void, setText, IN, const std::string &, text, + Properties::NON_VIRTUAL, __void__setText__C5_std_string_R1, "Set the text using a std::string, which is converted to an internal TextString. ", ""); I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + Properties::NON_VIRTUAL, __void__setText__C5_std_string_R1__String_Encoding, "Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ", "The encoding parameter specificies which Unicode encodeding is used in the std::string. "); I_Method1(void, setText, IN, const wchar_t *, text, + Properties::NON_VIRTUAL, __void__setText__C5_wchar_t_P1, "Set the text using a wchar_t string, which is converted to an internal TextString. ", ""); I_Method0(osgText::String &, getText, + Properties::NON_VIRTUAL, __String_R1__getText, "Get the text string. ", "Note, if you modify the string you must call Text::update() for the internal glyph reprentation to be updated. "); I_Method0(const osgText::String &, getText, + Properties::NON_VIRTUAL, __C5_String_R1__getText, "Get the const text string. ", ""); I_Method0(void, update, + Properties::NON_VIRTUAL, __void__update, "update internal glyph respresnetation used for rendering, and bounding volume. ", ""); I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f, + Properties::NON_VIRTUAL, __void__setCharacterSize__float__float, "Set the rendered character size in object coordinates. ", ""); I_Method0(float, getCharacterHeight, + Properties::NON_VIRTUAL, __float__getCharacterHeight, "", ""); I_Method0(float, getCharacterAspectRatio, + Properties::NON_VIRTUAL, __float__getCharacterAspectRatio, "", ""); I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode, + Properties::NON_VIRTUAL, __void__setCharacterSizeMode__CharacterSizeMode, "Set how the CharacterSize value relates to the final rendered character. ", ""); I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode, + Properties::NON_VIRTUAL, __CharacterSizeMode__getCharacterSizeMode, "Get the CharacterSizeMode. ", ""); I_Method1(void, setMaximumWidth, IN, float, maximumWidth, + Properties::NON_VIRTUAL, __void__setMaximumWidth__float, "Set the maximum width of the text box. ", "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum width is set, lines can be as long as they need be to fit thre required text "); I_Method0(float, getMaximumWidth, + Properties::NON_VIRTUAL, __float__getMaximumWidth, "Get the maximim width of the text box. ", ""); I_Method1(void, setMaximumHeight, IN, float, maximumHeight, + Properties::NON_VIRTUAL, __void__setMaximumHeight__float, "Set the maximum height of the text box. ", "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum height is set, lines can be as long as they need be to fit the required text "); I_Method0(float, getMaximumHeight, + Properties::NON_VIRTUAL, __float__getMaximumHeight, "Get the maximum height of the text box. ", ""); I_Method1(void, setLineSpacing, IN, float, lineSpacing, + Properties::NON_VIRTUAL, __void__setLineSpacing__float, "Set the line spacing of the text box, given as a percentage of the character height. ", "The default value is 0 for backward compatibility. For longer paragraphs of text, a value of at least 25% (i.e. set line spacing to 0.25) is recommended. "); I_Method0(float, getLineSpacing, + Properties::NON_VIRTUAL, __float__getLineSpacing, "Get the line spacing of the text box. ", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "Set the position of text. ", ""); I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "Get the position of text. ", ""); I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment, + Properties::NON_VIRTUAL, __void__setAlignment__AlignmentType, "", ""); I_Method0(osgText::Text::AlignmentType, getAlignment, + Properties::NON_VIRTUAL, __AlignmentType__getAlignment, "", ""); I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis, + Properties::NON_VIRTUAL, __void__setAxisAlignment__AxisAlignment, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, __void__setRotation__C5_osg_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, __C5_osg_Quat_R1__getRotation, "", ""); I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen, + Properties::NON_VIRTUAL, __void__setAutoRotateToScreen__bool, "", ""); I_Method0(bool, getAutoRotateToScreen, + Properties::NON_VIRTUAL, __bool__getAutoRotateToScreen, "", ""); I_Method1(void, setLayout, IN, osgText::Text::Layout, layout, + Properties::NON_VIRTUAL, __void__setLayout__Layout, "", ""); I_Method0(osgText::Text::Layout, getLayout, + Properties::NON_VIRTUAL, __Layout__getLayout, "", ""); I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setColor__C5_osg_Vec4_R1, "", ""); I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getColor, "", ""); I_Method1(void, setDrawMode, IN, unsigned int, mode, + Properties::NON_VIRTUAL, __void__setDrawMode__unsigned_int, "", ""); I_Method0(unsigned int, getDrawMode, + Properties::NON_VIRTUAL, __unsigned_int__getDrawMode, "", ""); I_Method1(void, setBackdropType, IN, osgText::Text::BackdropType, type, + Properties::NON_VIRTUAL, __void__setBackdropType__BackdropType, "BackdropType gives you a background shadow text behind your regular text. ", "This helps give text extra contrast which can be useful when placing text against noisy backgrounds. The color of the background shadow text is specified by setBackdropColor(). DROP_SHADOW_BOTTOM_RIGHT will draw backdrop text to the right and down of the normal text. Other DROW_SHADOW_* modes do the same for their repective directions. OUTLINE will draw backdrop text so that it appears the text has an outline or border around the normal text. This mode is particularly useful against really noisy backgrounds that may put text on top of things that have all types of colors which you don't have control over. Some real world examples of this general technique in use that I know of are Google Earth, Sid Meier's Pirates (2004 Remake), and Star Control 2 (PC 1993). The default is NONE."); I_Method0(osgText::Text::BackdropType, getBackdropType, + Properties::NON_VIRTUAL, __BackdropType__getBackdropType, "", ""); I_MethodWithDefaults1(void, setBackdropOffset, IN, float, offset, 0.07f, + Properties::NON_VIRTUAL, __void__setBackdropOffset__float, "Sets the amount text is offset to create the backdrop/shadow effect. ", "Set the value too high and for example, in OUTLINE mode you will get a \"Brady Bunch\" effect where you see duplicates of the text in a 3x3 grid. Set the value too small and you won't see anything. The values represent percentages. 1.0 means 100% so a value of 1.0 in DROW_SHADOW_LEFT_CENTER mode would cause each glyph to be echoed next to it self. So the letter 'e' might look like 'ee'. Good values tend to be in the 0.03 to 0.10 range (but will be subject to your specific font and display characteristics). Note that the text bounding boxes are updated to include backdrop offsets. However, other metric information such as getCharacterHeight() are unaffected by this. This means that individual glyph spacing (kerning?) are unchanged even when this mode is used. The default is 0.07 (7% offset)."); I_Method2(void, setBackdropOffset, IN, float, horizontal, IN, float, vertical, + Properties::NON_VIRTUAL, __void__setBackdropOffset__float__float, "This overloaded version lets you specify the offset for the horizontal and vertical components separately. ", ""); I_Method0(float, getBackdropHorizontalOffset, + Properties::NON_VIRTUAL, __float__getBackdropHorizontalOffset, "", ""); I_Method0(float, getBackdropVerticalOffset, + Properties::NON_VIRTUAL, __float__getBackdropVerticalOffset, "", ""); I_Method1(void, setBackdropColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setBackdropColor__C5_osg_Vec4_R1, "This specifies the color of the backdrop text. ", "The default is black."); I_Method0(const osg::Vec4 &, getBackdropColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getBackdropColor, "", ""); I_Method1(void, setBackdropImplementation, IN, osgText::Text::BackdropImplementation, implementation, + Properties::NON_VIRTUAL, __void__setBackdropImplementation__BackdropImplementation, "This specifies the underlying backdrop rendering implementation. ", "Unfortunately, at this time, there is no \"perfect\" rendering solution so this function is provided to let you 'pick your poison'. Each implementation has trade-offs.POLYGON_OFFSET: This uses glPolygonOffset to draw the text multiple times to create the drop-shadow and outline effects. glPolygonOffset is used to prevent z-fighting of the overlapping text. This probably should have been the best option, but all the ATI cards we have encountered so far have serious problems with this. We see little white holes/artifacts in the rendered glyph textures which move around depending on the viewing angle. For moving text, the moving holes give an extremely unpleasant flickering effect. Pumping up the \"units\" parameter in glPolygonOffset can minimize this problem, but two other bad side-effects occur if you do this. First, high values will cause problems with clipping, particularly when there are objects behind the text. The drop-shadows or outline may be culled because their computed offset is behind the object or z-far plane. Second, there is an additional problem associated with the Z-slope. High values can make large chunks of the backdrop suddenly disappear. This can be reduced by the \"factor\" parameter. Making the \"factor\" value small, can help, but experimentally, we've found that it creates a new, different kind of z-fighting problem. So there is no perfect solution. With units, you trade off the 'holes' for the large-section clipping. Experimentally, we have found units values from 150-512 to be tolerable to acceptable with respect to the 'holes'. A factor of .1 seems to bring down the large clipping problem without creating a new z-fighting problem. (You can experiment with these numbers by playing with the osg:PolygonOffset multipliers which this backend tries to respect.)If ATI ever fixes their cards/drivers, then this might become the best option.NO_DEPTH_BUFFER Instead of using glPolygonOffset to prevent z-fighting, this mode just disables the depth buffer when rendering the text. This allows the text to be rendered without any z-fighting. The downside to this mode is that render order begins to matter and the text will not necessarily correctly appear above or behind other objects in the scene based on depth values. This mode is best for text that only needs to be ontop and not obscured by any objects.DEPTH_RANGE This mode is inspired by Paul Martz's OpenGL FAQ, item 13.050. This uses glDepthRange as a substitute for glPolygonOffset. Strangely, experiments on ATI cards seem to produce cleaner results than when using glPolygonOffset. The trade-off for this is that the backdrop still may be placed too far back and might be culled by objects directly behind the object or by the far z-plane. If ATI ever fixes the glPolygonOffset problem, polygon offset is probably a slightly better solution because you can use smaller offsets. But with the current ATI problem, this option may be preferable.STENCIL_BUFFER (Assuming the backend is written correctly,) the Stencil Buffer is the most \"correct\" and reliable way of producing backdrop text. The stencil buffer is a multipass system that allows writing to the same z-values without needing to resort to offsets. This implementation should not have any of the problems associated with the 3 previous implementations. But the trade-off for this mode is that without hardware acceleration for the stencil buffer, rendering will be extremely slow. (There is also potentially more overhead for this algorithm so it could be slower than the other implementations. Benchmarking would be required to determine if the speed differences are significant on your particular hardware.) This mode is best for when quality is important and stencil buffer hardware acceleration is available."); I_Method0(osgText::Text::BackdropImplementation, getBackdropImplementation, + Properties::NON_VIRTUAL, __BackdropImplementation__getBackdropImplementation, "", ""); I_Method1(void, setColorGradientMode, IN, osgText::Text::ColorGradientMode, mode, + Properties::NON_VIRTUAL, __void__setColorGradientMode__ColorGradientMode, "This sets different types of text coloring modes. ", "When the coloring mode is not set to SOLID, the colors specified in setColorGradientCorners() determine the colors for the text. When the gradient mode is OVERALL, the coloring scheme attempts to approximate the effect as if the entire text box/region were a single polygon and you had applied colors to each of the four corners with GL_SMOOTH enabled. In this mode, OpenGL interpolates the colors across the polygon, and this is what OVERALL tries to emulate. This can be used to give nice embellishments on things like logos and names. PER_CHARACTER is similar to OVERALL except that it applies the color interpolation to the four corners of each character instead of across the overall text box. The default is SOLID (a.k.a. off)."); I_Method0(osgText::Text::ColorGradientMode, getColorGradientMode, + Properties::NON_VIRTUAL, __ColorGradientMode__getColorGradientMode, "", ""); I_Method4(void, setColorGradientCorners, IN, const osg::Vec4 &, topLeft, IN, const osg::Vec4 &, bottomLeft, IN, const osg::Vec4 &, bottomRight, IN, const osg::Vec4 &, topRight, + Properties::NON_VIRTUAL, __void__setColorGradientCorners__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1, "Used only for gradient mode, let's you specify the colors of the 4 corners. ", "If ColorGradients are off, these values are ignored (and the value from setColor() is the only one that is relevant."); I_Method0(const osg::Vec4 &, getColorGradientTopLeft, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getColorGradientTopLeft, "", ""); I_Method0(const osg::Vec4 &, getColorGradientBottomLeft, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getColorGradientBottomLeft, "", ""); I_Method0(const osg::Vec4 &, getColorGradientBottomRight, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getColorGradientBottomRight, "", ""); I_Method0(const osg::Vec4 &, getColorGradientTopRight, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getColorGradientTopRight, "", ""); I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType, + Properties::NON_VIRTUAL, __void__setKerningType__KerningType, "", ""); I_Method0(osgText::KerningType, getKerningType, + Properties::NON_VIRTUAL, __KerningType__getKerningType, "", ""); I_Method0(unsigned int, getLineCount, + Properties::NON_VIRTUAL, __unsigned_int__getLineCount, "Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ", ""); I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1, "Draw the text. ", ""); I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_Drawable_AttributeFunctor_R1, "return false, osgText::Text does not support accept(AttributeFunctor&). ", ""); I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1, "return true, osgText::Text does support accept(ConstAttributeFunctor&). ", ""); I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, __void__accept__osg_Drawable_ConstAttributeFunctor_R1, "accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", ""); I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, + Properties::VIRTUAL, __bool__supports__C5_osg_PrimitiveFunctor_R1, "return true, osgText::Text does support accept(PrimitiveFunctor&) . ", ""); I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, + Properties::VIRTUAL, __void__accept__osg_PrimitiveFunctor_R1, "accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osgText::Font::GlyphTexture *, texture, + Properties::NON_VIRTUAL, __C5_GlyphQuads_P1__getGlyphQuads__Font_GlyphTexture_P1, "Direct Access to GlyphQuads. ", ""); I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap, + Properties::NON_VIRTUAL, __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, "", ""); I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, __osg_BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); @@ -538,42 +614,52 @@ BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) "", ""); I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, __Glyphs__getGlyphs, "", ""); I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, __C5_Glyphs__getGlyphs, "", ""); I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, __Coords2_R1__getCoords, "", ""); I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, __C5_Coords2_R1__getCoords, "", ""); I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, __Coords3_R1__getTransformedCoords__unsigned_int, "", ""); I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, __C5_Coords3_R1__getTransformedCoords__unsigned_int, "", ""); I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, __TexCoords_R1__getTexCoords, "", ""); I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, __C5_TexCoords_R1__getTexCoords, "", ""); I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, __LineNumbers_R1__getLineNumbers, "", ""); I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, __C5_LineNumbers_R1__getLineNumbers, "", ""); @@ -602,26 +688,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font::GlyphTexture >) "", ""); I_Constructor1(IN, osgText::Font::GlyphTexture *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgText::Font::GlyphTexture *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgText::Font::GlyphTexture *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp index 70d0ed1f5..b275d7a05 100644 --- a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp @@ -26,6 +26,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) I_BaseType(osg::Referenced); I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::EXPLICIT, ____CubeMapGenerator__int, "", ""); @@ -34,14 +35,17 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) "", ""); I_Method1(osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + Properties::NON_VIRTUAL, __osg_Image_P1__getImage__osg_TextureCubeMap_Face, "", ""); I_Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getImage__osg_TextureCubeMap_Face, "", ""); I_MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true, + Properties::NON_VIRTUAL, __void__generateMap__bool, "Generate the six cube images. ", "If use_osg_system is true, then the OSG's coordinate system is used instead of the default OpenGL one."); diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp index 7aeb41b32..b3f24dca4 100644 --- a/src/osgWrappers/osgUtil/CullVisitor.cpp +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -50,221 +50,274 @@ TYPE_NAME_ALIAS(osg::Matrix::value_type, osgUtil::CullVisitor::value_type); -BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CullVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::CullStack); I_Constructor0(____CullVisitor, "", ""); I_Method0(osgUtil::CullVisitor *, cloneType, + Properties::VIRTUAL, __CullVisitor_P1__cloneType, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, __osg_Vec3__getEyePoint, "Get the eye point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); I_Method0(osg::Vec3, getViewPoint, + Properties::VIRTUAL, __osg_Vec3__getViewPoint, "Get the view point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceFromEyePoint__C5_osg_Vec3_R1__bool, "Get the distance of a point from the eye point, distance value in the eye coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceFromEyePoint(pos) is not implemented than a default value of 0.0 is returned. "); I_Method2(float, getDistanceToViewPoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceToViewPoint__C5_osg_Vec3_R1__bool, "Get the distance from a point to the view point, distance value in local coordinate system. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. If the getDistanceToViewPoint(pos) is not implemented then a default value of 0.0 is returned. "); I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, __void__apply__osg_LightSource_R1, "", ""); I_Method1(void, apply, IN, osg::ClipNode &, node, + Properties::VIRTUAL, __void__apply__osg_ClipNode_R1, "", ""); I_Method1(void, apply, IN, osg::TexGenNode &, node, + Properties::VIRTUAL, __void__apply__osg_TexGenNode_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::ClearNode &, node, + Properties::VIRTUAL, __void__apply__osg_ClearNode_R1, "", ""); I_Method1(void, apply, IN, osg::Camera &, node, + Properties::VIRTUAL, __void__apply__osg_Camera_R1, "", ""); I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, __void__apply__osg_OccluderNode_R1, "", ""); I_Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky, + Properties::NON_VIRTUAL, __void__setClearNode__C5_osg_ClearNode_P1, "", ""); I_Method0(const osg::ClearNode *, getClearNode, + Properties::NON_VIRTUAL, __C5_osg_ClearNode_P1__getClearNode, "", ""); I_Method1(void, pushStateSet, IN, const osg::StateSet *, ss, + Properties::NON_VIRTUAL, __void__pushStateSet__C5_osg_StateSet_P1, "Push state set on the current state group. ", "If the state exists in a child state group of the current state group then move the current state group to that child. Otherwise, create a new state group for the state set, add it to the current state group then move the current state group pointer to the new state group."); I_Method0(void, popStateSet, + Properties::NON_VIRTUAL, __void__popStateSet, "Pop the top state set and hence associated state group. ", "Move the current state group to the parent of the popped state group."); I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, __void__setStateGraph__StateGraph_P1, "", ""); I_Method0(osgUtil::StateGraph *, getRootStateGraph, + Properties::NON_VIRTUAL, __StateGraph_P1__getRootStateGraph, "", ""); I_Method0(osgUtil::StateGraph *, getCurrentStateGraph, + Properties::NON_VIRTUAL, __StateGraph_P1__getCurrentStateGraph, "", ""); I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg, + Properties::NON_VIRTUAL, __void__setRenderStage__RenderStage_P1, "", ""); I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, __RenderStage_P1__getRenderStage, "", ""); I_Method0(osgUtil::RenderBin *, getCurrentRenderBin, + Properties::NON_VIRTUAL, __RenderBin_P1__getCurrentRenderBin, "", ""); I_Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb, + Properties::NON_VIRTUAL, __void__setCurrentRenderBin__RenderBin_P1, "", ""); I_Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane, + Properties::NON_VIRTUAL, __value_type__getCalculatedNearPlane, "", ""); I_Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane, + Properties::NON_VIRTUAL, __value_type__getCalculatedFarPlane, "", ""); I_Method3(osgUtil::CullVisitor::value_type, computeNearestPointInFrustum, IN, const osg::Matrix &, matrix, IN, const osg::Polytope::PlaneList &, planes, IN, const osg::Drawable &, drawable, + Properties::NON_VIRTUAL, __value_type__computeNearestPointInFrustum__C5_osg_Matrix_R1__C5_osg_Polytope_PlaneList_R1__C5_osg_Drawable_R1, "", ""); I_Method2(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_BoundingBox_R1, "", ""); I_MethodWithDefaults3(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, , IN, const osg::Drawable &, drawable, , IN, bool, isBillboard, false, + Properties::NON_VIRTUAL, __bool__updateCalculatedNearFar__C5_osg_Matrix_R1__C5_osg_Drawable_R1__bool, "", ""); I_Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, __void__updateCalculatedNearFar__C5_osg_Vec3_R1, "", ""); I_Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__addDrawable__osg_Drawable_P1__osg_RefMatrix_P1, "Add a drawable to current render graph. ", ""); I_Method3(void, addDrawableAndDepth, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, IN, float, depth, + Properties::NON_VIRTUAL, __void__addDrawableAndDepth__osg_Drawable_P1__osg_RefMatrix_P1__float, "Add a drawable and depth to current render graph. ", ""); I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::NON_VIRTUAL, __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "Add an attribute which is positioned relative to the modelview matrix. ", ""); I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::NON_VIRTUAL, __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "Add an attribute which is positioned relative to the modelview matrix. ", ""); I_Method0(void, popProjectionMatrix, + Properties::VIRTUAL, __void__popProjectionMatrix, "Re-implement CullStack's popProjectionMatrix() adding clamping of the projection matrix to the computed near and far. ", ""); I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar, + Properties::VIRTUAL, __bool__clampProjectionMatrixImplementation__osg_Matrixf_R1__double_R1__double_R1, "CullVisitor's default clamping of the projection float matrix to computed near and far values. ", "Note, do not call this method directly, use clampProjectionMatrix(..) instead, unless you want to bypass the callback. "); I_Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar, + Properties::VIRTUAL, __bool__clampProjectionMatrixImplementation__osg_Matrixd_R1__double_R1__double_R1, "CullVisitor's default clamping of the projection double matrix to computed near and far values. ", "Note, do not call this method directly, use clampProjectionMatrix(..) instead, unless you want to bypass the callback. "); I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixf &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar, + Properties::NON_VIRTUAL, __bool__clampProjectionMatrix__osg_Matrixf_R1__value_type_R1__value_type_R1, "Clamp the projection float matrix to computed near and far values, use callback if it exists, otherwise use default CullVisitor implementation. ", ""); I_Method3(bool, clampProjectionMatrix, IN, osg::Matrixd &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar, + Properties::NON_VIRTUAL, __bool__clampProjectionMatrix__osg_Matrixd_R1__value_type_R1__value_type_R1, "Clamp the projection double matrix to computed near and far values, use callback if it exists, otherwise use default CullVisitor implementation. ", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__osg_State_P1, "", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __osg_State_P1__getState, "", ""); I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, __C5_osg_State_P1__getState, "", ""); I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__setRenderInfo__osg_RenderInfo_R1, "", ""); I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, __osg_RenderInfo_R1__getRenderInfo, "", ""); I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, __C5_osg_RenderInfo_R1__getRenderInfo, "", ""); diff --git a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp index cd3c85c69..fd9855987 100644 --- a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp +++ b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp @@ -24,52 +24,63 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) I_BaseType(osg::Geometry); I_Constructor0(____DelaunayConstraint, "", ""); I_Method3(void, addtriangle, IN, const int, i1, IN, const int, i2, IN, const int, i3, + Properties::NON_VIRTUAL, __void__addtriangle__C5_int__C5_int__C5_int, "collect up indices of triangle from delaunay triangles. ", "The delaunay triangles inside the DelaunayConstraint area can be used to fill the area or generate geometry that terrain follows the area in some way. These triangles can form a canopy or a field. "); I_Method0(const osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, __C5_osg_DrawElementsUInt_P1__getTriangles, "Get the filling primitive. ", "One: triangulate must have bneen called and two: triangle list is filled when DelaunayTriangulator::removeInternalTriangles is called. These return the triangles removed from the delaunay triangulation by DelaunayTriangulator::removeInternalTriangles. "); I_Method0(osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, __osg_DrawElementsUInt_P1__getTriangles, "", ""); I_Method1(osg::Vec3Array *, getPoints, IN, const osg::Vec3Array *, points, + Properties::NON_VIRTUAL, __osg_Vec3Array_P1__getPoints__C5_osg_Vec3Array_P1, "Call BEFORE makeDrawable to reorder points to make optimised set. ", ""); I_Method0(osg::DrawElementsUInt *, makeDrawable, + Properties::NON_VIRTUAL, __osg_DrawElementsUInt_P1__makeDrawable, "converts simple list of triangles into a drawarray. ", ""); I_Method1(void, merge, IN, osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, __void__merge__DelaunayConstraint_P1, "Add vertices and constraint loops from dco Can be used to generate extra vertices where dco crosses 'this' using osgUtil::Tessellator to insert overlap vertices. ", ""); I_Method1(void, removeVerticesInside, IN, const osgUtil::DelaunayConstraint *, dco, + Properties::NON_VIRTUAL, __void__removeVerticesInside__C5_DelaunayConstraint_P1, "remove from line the vertices that are inside dco ", ""); I_Method1(float, windingNumber, IN, const osg::Vec3, testpoint, + Properties::NON_VIRTUAL, __float__windingNumber__C5_osg_Vec3, "return winding number as a float of loop around testpoint; may use multiple loops does not reject points on the edge or very very close to the edge ", ""); I_Method1(bool, contains, IN, const osg::Vec3, testpoint, + Properties::VIRTUAL, __bool__contains__C5_osg_Vec3, "true if testpoint is internal (or external) to constraint. ", ""); I_Method1(bool, outside, IN, const osg::Vec3, testpoint, + Properties::VIRTUAL, __bool__outside__C5_osg_Vec3, "", ""); I_Method0(void, handleOverlaps, + Properties::NON_VIRTUAL, __void__handleOverlaps, "Tessellate the constraint loops so that the crossing points are interpolated and added to the contraints for the triangulation. ", ""); @@ -80,7 +91,7 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >, osgUtil::DelaunayTriangulator::linelist); -BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) I_BaseType(osg::Referenced); I_Constructor0(____DelaunayTriangulator, "", @@ -94,46 +105,57 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) "", ""); I_Method0(const osg::Vec3Array *, getInputPointArray, + Properties::NON_VIRTUAL, __C5_osg_Vec3Array_P1__getInputPointArray, "Get the const input point array. ", ""); I_Method0(osg::Vec3Array *, getInputPointArray, + Properties::NON_VIRTUAL, __osg_Vec3Array_P1__getInputPointArray, "Get the input point array. ", ""); I_Method1(void, setInputPointArray, IN, osg::Vec3Array *, points, + Properties::NON_VIRTUAL, __void__setInputPointArray__osg_Vec3Array_P1, "Set the input point array. ", ""); I_Method1(void, addInputConstraint, IN, osgUtil::DelaunayConstraint *, dc, + Properties::NON_VIRTUAL, __void__addInputConstraint__DelaunayConstraint_P1, "Add an input constraint loop. ", "the edges of the loop will constrain the triangulation. if remove!=0, the internal triangles of the constraint will be removed; the user may the replace the constraint line with an equivalent geometry. GWM July 2005 "); I_Method0(const osg::Vec3Array *, getOutputNormalArray, + Properties::NON_VIRTUAL, __C5_osg_Vec3Array_P1__getOutputNormalArray, "Get the const output normal array (optional). ", ""); I_Method0(osg::Vec3Array *, getOutputNormalArray, + Properties::NON_VIRTUAL, __osg_Vec3Array_P1__getOutputNormalArray, "Get the output normal array (optional). ", ""); I_Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals, + Properties::NON_VIRTUAL, __void__setOutputNormalArray__osg_Vec3Array_P1, "Set the output normal array (optional). ", ""); I_Method0(bool, triangulate, + Properties::NON_VIRTUAL, __bool__triangulate, "Start triangulation. ", ""); I_Method0(const osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, __C5_osg_DrawElementsUInt_P1__getTriangles, "Get the generated primitive (call triangulate() first). ", ""); I_Method0(osg::DrawElementsUInt *, getTriangles, + Properties::NON_VIRTUAL, __osg_DrawElementsUInt_P1__getTriangles, "Get the generated primitive (call triangulate() first). ", ""); I_Method1(void, removeInternalTriangles, IN, osgUtil::DelaunayConstraint *, constraint, + Properties::NON_VIRTUAL, __void__removeInternalTriangles__DelaunayConstraint_P1, "remove the triangles internal to the constraint loops. ", "(Line strips cannot remove any internal triangles). "); @@ -153,26 +175,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::DelaunayConstraint >) "", ""); I_Constructor1(IN, osgUtil::DelaunayConstraint *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::DelaunayConstraint *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::DelaunayConstraint *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::DelaunayConstraint > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp index ac2461cdc..f87a5d34a 100644 --- a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp +++ b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp @@ -24,28 +24,33 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____DisplayRequirementsVisitor, "Default to traversing all children, and requiresDoubleBuffer, requiresRGB and requiresDepthBuffer to true and with alpha and stencil off. ", ""); I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, __void__setDisplaySettings__osg_DisplaySettings_P1, "Set the DisplaySettings. ", ""); I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __C5_osg_DisplaySettings_P1__getDisplaySettings, "Get the DisplaySettings. ", ""); I_Method1(void, applyStateSet, IN, osg::StateSet &, stateset, + Properties::VIRTUAL, __void__applyStateSet__osg_StateSet_R1, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp index 63f41f35f..24af4ca42 100644 --- a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -40,53 +40,65 @@ BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) I_EnumLabel(osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) I_BaseType(osg::NodeVisitor); I_ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES, + Properties::NON_EXPLICIT, ____GLObjectsVisitor__Mode, "Construct a GLObjectsVisitor to traverse all children, operating on node according to specified mode, such as to compile or release display list/texture objects etc. ", "Default mode is to compile GL objects."); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode, + Properties::NON_VIRTUAL, __void__setMode__Mode, "Set the operational mode of what operations to do on the scene graph. ", ""); I_Method0(osgUtil::GLObjectsVisitor::Mode, getMode, + Properties::NON_VIRTUAL, __Mode__getMode, "Get the operational mode. ", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__osg_State_P1, "Set the State to use during traversal. ", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __osg_State_P1__getState, "", ""); I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__setRenderInfo__osg_RenderInfo_R1, "", ""); I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, __osg_RenderInfo_R1__getRenderInfo, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "Simply traverse using standard NodeVisitor traverse method. ", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "For each Geode visited set the display list usage according to the _displayListMode. ", ""); I_Method1(void, apply, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, __void__apply__osg_Drawable_R1, "", ""); I_Method1(void, apply, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, __void__apply__osg_StateSet_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp index 5fdfa26f3..c03db63ed 100644 --- a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp @@ -22,7 +22,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); I_ConstructorWithDefaults2(IN, const osg::Vec3 &, light_direction, , IN, int, texture_size, 64, ____HalfWayMapGenerator__C5_osg_Vec3_R1__int, diff --git a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp index 92099173b..72eb2daa2 100644 --- a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); I_ConstructorWithDefaults4(IN, const osg::Vec3 &, light_direction, , IN, const osg::Vec4 &, light_color, , IN, float, specular_exponent, , IN, int, texture_size, 64, ____HighlightMapGenerator__C5_osg_Vec3_R1__C5_osg_Vec4_R1__float__int, diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp index 814739c42..c46678f98 100644 --- a/src/osgWrappers/osgUtil/IntersectVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -42,74 +42,92 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Hit) "Describes a point in space produced by an intersection of a line with a scene. ", "A Hit is always on a surface as rendered by the Open Scene Graph scene (usually a triangle or other primitive, but a special hit handler could return a different value perhaps: a sphere shape might return a Hit on the true sphere rather than the approximate tessellated sphere rendered."); I_Constructor1(IN, const osgUtil::Hit &, hit, + Properties::NON_EXPLICIT, ____Hit__C5_Hit_R1, "", ""); I_Method0(const osg::Vec3 &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLocalIntersectPoint, "", ""); I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLocalIntersectNormal, "", ""); I_Method0(const osg::Vec3, getWorldIntersectPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3__getWorldIntersectPoint, "", ""); I_Method0(const osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, __C5_osg_Vec3__getWorldIntersectNormal, "", ""); I_Method0(float, getRatio, + Properties::NON_VIRTUAL, __float__getRatio, "", ""); I_Method0(const osg::LineSegment *, getOriginalLineSegment, + Properties::NON_VIRTUAL, __C5_osg_LineSegment_P1__getOriginalLineSegment, "", ""); I_Method0(const osg::LineSegment *, getLocalLineSegment, + Properties::NON_VIRTUAL, __C5_osg_LineSegment_P1__getLocalLineSegment, "", ""); I_Method0(osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __osg_NodePath_R1__getNodePath, "", ""); I_Method0(const osg::NodePath &, getNodePath, + Properties::NON_VIRTUAL, __C5_osg_NodePath_R1__getNodePath, "", ""); I_Method0(osg::Geode *, getGeode, + Properties::NON_VIRTUAL, __osg_Geode_P1__getGeode, "", ""); I_Method0(const osg::Geode *, getGeode, + Properties::NON_VIRTUAL, __C5_osg_Geode_P1__getGeode, "", ""); I_Method0(osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, __osg_Drawable_P1__getDrawable, "", ""); I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, __C5_osg_Drawable_P1__getDrawable, "", ""); I_Method0(const osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, __C5_osg_RefMatrix_P1__getMatrix, "", ""); I_Method0(const osg::RefMatrix *, getInverseMatrix, + Properties::NON_VIRTUAL, __C5_osg_RefMatrix_P1__getInverseMatrix, "", ""); I_Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList, + Properties::NON_VIRTUAL, __C5_VecIndexList_R1__getVecIndexList, "", ""); I_Method0(int, getPrimitiveIndex, + Properties::NON_VIRTUAL, __int__getPrimitiveIndex, "", ""); @@ -178,80 +196,98 @@ BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____IntersectVisitor, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, + Properties::NON_VIRTUAL, __void__addLineSegment__osg_LineSegment_P1, "Add a line segment to use for intersection testing during scene traversal. ", "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, + Properties::NON_VIRTUAL, __HitList_R1__getHitList__C5_osg_LineSegment_P1, "", ""); I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, + Properties::NON_VIRTUAL, __int__getNumHits__C5_osg_LineSegment_P1, "", ""); I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, + Properties::NON_VIRTUAL, __LineSegmentHitListMap_R1__getSegHitList, "", ""); I_Method0(bool, hits, + Properties::NON_VIRTUAL, __bool__hits, "", ""); I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, + Properties::NON_VIRTUAL, __void__setLODSelectionMode__LODSelectionMode, "", ""); I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, + Properties::NON_VIRTUAL, __LODSelectionMode__getLODSelectionMode, "", ""); I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, + Properties::NON_VIRTUAL, __void__setEyePoint__C5_osg_Vec3_R1, "Set the eye point in local coordinates. ", "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, __osg_Vec3__getEyePoint, "Get the eye point in local coordinates. ", "Note, not all NodeVisitor implement this method, it is mainly cull visitors which will implement. "); I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, + Properties::VIRTUAL, __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, "Get the distance from a point to the eye point, distance value in local coordinate system. ", "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); I_Method1(void, apply, IN, osg::Node &, x, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); @@ -266,21 +302,24 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::PickVisitor) I_BaseType(osgUtil::IntersectVisitor); I_Constructor5(IN, const osg::Viewport *, viewport, IN, const osg::Matrixd &, proj, IN, const osg::Matrixd &, view, IN, float, mx, IN, float, my, ____PickVisitor__C5_osg_Viewport_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__float__float, "", ""); I_Method6(void, runNestedPickVisitor, IN, osg::Node &, node, IN, const osg::Viewport *, viewport, IN, const osg::Matrix &, proj, IN, const osg::Matrix &, view, IN, float, mx, IN, float, my, + Properties::NON_VIRTUAL, __void__runNestedPickVisitor__osg_Node_R1__C5_osg_Viewport_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1__float__float, "", ""); I_Method1(void, apply, IN, osg::Projection &, projection, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::VIRTUAL, __void__apply__osg_Camera_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp index aae84a768..6fbd4806a 100644 --- a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp @@ -32,125 +32,154 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) I_BaseType(osg::NodeVisitor); I_ConstructorWithDefaults2(IN, osgUtil::Intersector *, intersector, 0, IN, osgUtil::IntersectionVisitor::ReadCallback *, readCallback, 0, ____IntersectionVisitor__Intersector_P1__ReadCallback_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, setIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, __void__setIntersector__Intersector_P1, "Set the intersector that will be used to intersect with the scene, and to store any hits that occur. ", ""); I_Method0(osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, __Intersector_P1__getIntersector, "Get the intersector that will be used to intersect with the scene, and to store any hits that occur. ", ""); I_Method0(const osgUtil::Intersector *, getIntersector, + Properties::NON_VIRTUAL, __C5_Intersector_P1__getIntersector, "Get the const intersector that will be used to intersect with the scene, and to store any hits that occur. ", ""); I_Method1(void, setReadCallback, IN, osgUtil::IntersectionVisitor::ReadCallback *, rc, + Properties::NON_VIRTUAL, __void__setReadCallback__ReadCallback_P1, "Set the read callback. ", ""); I_Method0(osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, __ReadCallback_P1__getReadCallback, "Get the read callback. ", ""); I_Method0(const osgUtil::IntersectionVisitor::ReadCallback *, getReadCallback, + Properties::NON_VIRTUAL, __C5_ReadCallback_P1__getReadCallback, "Get the const read callback. ", ""); I_Method1(void, pushWindowMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__pushWindowMatrix__osg_RefMatrix_P1, "", ""); I_Method1(void, pushWindowMatrix, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, __void__pushWindowMatrix__osg_Viewport_P1, "", ""); I_Method0(void, popWindowMatrix, + Properties::NON_VIRTUAL, __void__popWindowMatrix, "", ""); I_Method0(osg::RefMatrix *, getWindowMatrix, + Properties::NON_VIRTUAL, __osg_RefMatrix_P1__getWindowMatrix, "", ""); I_Method1(void, pushProjectionMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__pushProjectionMatrix__osg_RefMatrix_P1, "", ""); I_Method0(void, popProjectionMatrix, + Properties::NON_VIRTUAL, __void__popProjectionMatrix, "", ""); I_Method0(osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, __osg_RefMatrix_P1__getProjectionMatrix, "", ""); I_Method1(void, pushViewMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__pushViewMatrix__osg_RefMatrix_P1, "", ""); I_Method0(void, popViewMatrix, + Properties::NON_VIRTUAL, __void__popViewMatrix, "", ""); I_Method0(osg::RefMatrix *, getViewMatrix, + Properties::NON_VIRTUAL, __osg_RefMatrix_P1__getViewMatrix, "", ""); I_Method1(void, pushModelMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, __void__pushModelMatrix__osg_RefMatrix_P1, "", ""); I_Method0(void, popModelMatrix, + Properties::NON_VIRTUAL, __void__popModelMatrix, "", ""); I_Method0(osg::RefMatrix *, getModelMatrix, + Properties::NON_VIRTUAL, __osg_RefMatrix_P1__getModelMatrix, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::PagedLOD &, lod, + Properties::VIRTUAL, __void__apply__osg_PagedLOD_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, projection, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Camera &, camera, + Properties::VIRTUAL, __void__apply__osg_Camera_R1, "", ""); @@ -180,6 +209,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor::ReadCallback) "", ""); I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, __osg_Node_P1__readNodeFile__C5_std_string_R1, "", ""); @@ -195,50 +225,62 @@ END_REFLECTOR BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Intersector) I_BaseType(osg::Referenced); I_ConstructorWithDefaults1(IN, osgUtil::Intersector::CoordinateFrame, cf, osgUtil::Intersector::MODEL, + Properties::NON_EXPLICIT, ____Intersector__CoordinateFrame, "", ""); I_Method1(void, setCoordinateFrame, IN, osgUtil::Intersector::CoordinateFrame, cf, + Properties::NON_VIRTUAL, __void__setCoordinateFrame__CoordinateFrame, "", ""); I_Method0(osgUtil::Intersector::CoordinateFrame, getCoordinateFrame, + Properties::NON_VIRTUAL, __CoordinateFrame__getCoordinateFrame, "", ""); I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::PURE_VIRTUAL, __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::PURE_VIRTUAL, __bool__enter__C5_osg_Node_R1, "", ""); I_Method0(void, leave, + Properties::PURE_VIRTUAL, __void__leave, "", ""); I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::PURE_VIRTUAL, __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(bool, containsIntersections, + Properties::PURE_VIRTUAL, __bool__containsIntersections, "", ""); I_Method0(bool, disabled, + Properties::NON_VIRTUAL, __bool__disabled, "", ""); I_Method0(void, incrementDisabledCount, + Properties::NON_VIRTUAL, __void__incrementDisabledCount, "", ""); I_Method0(void, decrementDisabledCount, + Properties::NON_VIRTUAL, __void__decrementDisabledCount, "", ""); @@ -249,44 +291,53 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Intersector > >, osgUtil::IntersectorGroup::Intersectors); -BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) I_BaseType(osgUtil::Intersector); I_Constructor0(____IntersectorGroup, "", ""); I_Method1(void, addIntersector, IN, osgUtil::Intersector *, intersector, + Properties::NON_VIRTUAL, __void__addIntersector__Intersector_P1, "Add an Intersector. ", ""); I_Method0(osgUtil::IntersectorGroup::Intersectors &, getIntersectors, + Properties::NON_VIRTUAL, __Intersectors_R1__getIntersectors, "Get the list of intersector. ", ""); I_Method0(void, clear, + Properties::NON_VIRTUAL, __void__clear, "Clear the list of intersectors. ", ""); I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, __bool__enter__C5_osg_Node_R1, "", ""); I_Method0(void, leave, + Properties::VIRTUAL, __void__leave, "", ""); I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(bool, containsIntersections, + Properties::VIRTUAL, __bool__containsIntersections, "", ""); @@ -300,26 +351,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Intersector >) "", ""); I_Constructor1(IN, osgUtil::Intersector *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::Intersector > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::Intersector *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::Intersector *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Intersector > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp index e39e02cc0..cd278d30e 100644 --- a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp +++ b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp @@ -27,7 +27,7 @@ TYPE_NAME_ALIAS(std::multiset< osgUtil::LineSegmentIntersector::Intersection >, osgUtil::LineSegmentIntersector::Intersections); -BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) I_BaseType(osgUtil::Intersector); I_Constructor2(IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, ____LineSegmentIntersector__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, @@ -42,38 +42,47 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) "Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates creates a start value of (x,y,0) and end value of (x,y,1). ", "In PROJECTION coordinates (clip space cube) creates a start value of (x,y,-1) and end value of (x,y,1). In VIEW and MODEL coordinates creates a start value of (x,y,0) and end value of (x,y,1). "); I_Method1(void, insertIntersection, IN, const osgUtil::LineSegmentIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, __void__insertIntersection__C5_Intersection_R1, "", ""); I_Method0(osgUtil::LineSegmentIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, __Intersections_R1__getIntersections, "", ""); I_Method0(osgUtil::LineSegmentIntersector::Intersection, getFirstIntersection, + Properties::NON_VIRTUAL, __Intersection__getFirstIntersection, "", ""); I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, __bool__enter__C5_osg_Node_R1, "", ""); I_Method0(void, leave, + Properties::VIRTUAL, __void__leave, "", ""); I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(bool, containsIntersections, + Properties::VIRTUAL, __bool__containsIntersections, "", ""); @@ -94,18 +103,22 @@ BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) "", ""); I_Method0(const osg::Vec3d &, getLocalIntersectPoint, + Properties::NON_VIRTUAL, __C5_osg_Vec3d_R1__getLocalIntersectPoint, "", ""); I_Method0(osg::Vec3d, getWorldIntersectPoint, + Properties::NON_VIRTUAL, __osg_Vec3d__getWorldIntersectPoint, "", ""); I_Method0(const osg::Vec3 &, getLocalIntersectNormal, + Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getLocalIntersectNormal, "", ""); I_Method0(osg::Vec3, getWorldIntersectNormal, + Properties::NON_VIRTUAL, __osg_Vec3__getWorldIntersectNormal, "", ""); diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp index 029d10a8a..594b96c38 100644 --- a/src/osgWrappers/osgUtil/Optimizer.cpp +++ b/src/osgWrappers/osgUtil/Optimizer.cpp @@ -39,25 +39,29 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) I_BaseType(osg::NodeVisitor); I_Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation, ____BaseOptimizerVisitor__Optimizer_P1__unsigned_int, "", ""); I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1, "", ""); I_Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1, "", ""); I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1, "", ""); I_Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_Node_P1, "", ""); @@ -84,71 +88,87 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) I_EnumLabel(osgUtil::Optimizer::ALL_OPTIMIZATIONS); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer) I_Constructor0(____Optimizer, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "Reset internal data to initial state - the getPermissibleOptionsMap is cleared. ", ""); I_Method1(void, optimize, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__optimize__osg_Node_P1, "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", ""); I_Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options, + Properties::VIRTUAL, __void__optimize__osg_Node_P1__unsigned_int, "Traverse the node and its subgraph with a series of optimization visitors, specified by the OptimizationOptions. ", ""); I_Method1(void, setIsOperationPermissibleForObjectCallback, IN, osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, callback, + Properties::NON_VIRTUAL, __void__setIsOperationPermissibleForObjectCallback__IsOperationPermissibleForObjectCallback_P1, "Set the callback for customizing what operations are permitted on objects in the scene graph. ", ""); I_Method0(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback, + Properties::NON_VIRTUAL, __IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, "Get the callback for customizing what operations are permitted on objects in the scene graph. ", ""); I_Method0(const osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback, + Properties::NON_VIRTUAL, __C5_IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, "Get the callback for customizing what operations are permitted on objects in the scene graph. ", ""); I_Method2(void, setPermissibleOptimizationsForObject, IN, const osg::Object *, object, IN, unsigned int, options, + Properties::NON_VIRTUAL, __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, "", ""); I_Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object, + Properties::NON_VIRTUAL, __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, "", ""); I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_StateSet_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_StateAttribute_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_Drawable_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObject__C5_osg_Node_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateSet_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_osg_StateAttribute_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_osg_Drawable_P1__unsigned_int, "", ""); I_Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::NON_VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_osg_Node_P1__unsigned_int, "", ""); @@ -161,17 +181,20 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____CheckGeometryVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, checkGeode, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, __void__checkGeode__osg_Geode_R1, "", ""); @@ -179,34 +202,40 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::CombineLODsVisitor::GroupList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineLODsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineLODsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____CombineLODsVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method0(void, combineLODs, + Properties::NON_VIRTUAL, __void__combineLODs, "", ""); I_PublicMemberProperty(osgUtil::Optimizer::CombineLODsVisitor::GroupList, _groupList); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____CombineStaticTransformsVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + Properties::VIRTUAL, __void__apply__osg_MatrixTransform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, + Properties::NON_VIRTUAL, __bool__removeTransforms__osg_Node_P1, "", ""); @@ -214,17 +243,20 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____CopySharedSubgraphsVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method0(void, copySharedNodes, + Properties::NON_VIRTUAL, __void__copySharedNodes, "", ""); @@ -235,125 +267,150 @@ TYPE_NAME_ALIAS(std::vector< osg::NodePath >, osgUtil::Optimizer::FlattenBillboa TYPE_NAME_ALIAS(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList >, osgUtil::Optimizer::FlattenBillboardVisitor::BillboardNodePathMap); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenBillboardVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenBillboardVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____FlattenBillboardVisitor__Optimizer_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, apply, IN, osg::Billboard &, billboard, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method0(void, process, + Properties::NON_VIRTUAL, __void__process, "", ""); I_PublicMemberProperty(osgUtil::Optimizer::FlattenBillboardVisitor::BillboardNodePathMap, _billboards); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____FlattenStaticTransformsVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Node &, geode, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, __void__apply__osg_ProxyNode_R1, "", ""); I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, __void__apply__osg_PagedLOD_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, + Properties::NON_VIRTUAL, __bool__removeTransforms__osg_Node_P1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) I_BaseType(osg::Referenced); I_Constructor0(____IsOperationPermissibleForObjectCallback, "", ""); I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, + Properties::VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, "", ""); I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, + Properties::VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, "", ""); I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, + Properties::VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, "", ""); I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, + Properties::VIRTUAL, __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeodesVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____MergeGeodesVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(bool, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, __bool__mergeGeodes__osg_Group_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____MergeGeometryVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method1(void, setTargetMaximumNumberOfVertices, IN, unsigned int, num, + Properties::NON_VIRTUAL, __void__setTargetMaximumNumberOfVertices__unsigned_int, "", ""); I_Method0(unsigned int, getTargetMaximumNumberOfVertices, + Properties::NON_VIRTUAL, __unsigned_int__getTargetMaximumNumberOfVertices, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, x, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(bool, mergeGeode, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, __bool__mergeGeode__osg_Geode_R1, "", ""); @@ -392,21 +449,25 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveEmptyNodesVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveEmptyNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____RemoveEmptyNodesVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method0(void, removeEmptyNodes, + Properties::NON_VIRTUAL, __void__removeEmptyNodes, "", ""); @@ -415,17 +476,20 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____RemoveLoadedProxyNodesVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::ProxyNode &, group, + Properties::VIRTUAL, __void__apply__osg_ProxyNode_R1, "", ""); I_Method0(void, removeRedundantNodes, + Properties::NON_VIRTUAL, __void__removeRedundantNodes, "", ""); @@ -434,25 +498,30 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____RemoveRedundantNodesVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, isOperationPermissible, IN, osg::Node &, node, + Properties::NON_VIRTUAL, __bool__isOperationPermissible__osg_Node_R1, "", ""); I_Method0(void, removeRedundantNodes, + Properties::NON_VIRTUAL, __void__removeRedundantNodes, "", ""); @@ -461,62 +530,74 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____SpatializeGroupsVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Group &, group, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_MethodWithDefaults1(bool, divide, IN, unsigned int, maxNumTreesPerCell, 8, + Properties::NON_VIRTUAL, __bool__divide__unsigned_int, "", ""); I_Method2(bool, divide, IN, osg::Group *, group, IN, unsigned int, maxNumTreesPerCell, + Properties::NON_VIRTUAL, __bool__divide__osg_Group_P1__unsigned_int, "", ""); I_PublicMemberProperty(osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList, _groupsToDivideList); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StateVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::StateVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____StateVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "empty visitor, make it ready for next traversal. ", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method0(void, optimize, + Properties::NON_VIRTUAL, __void__optimize, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StaticObjectDetectionVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::StaticObjectDetectionVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____StaticObjectDetectionVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); @@ -524,13 +605,15 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::TessellateVisitor::GroupList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TessellateVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::TessellateVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____TessellateVisitor__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); @@ -542,86 +625,107 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureAtlasBuilder) "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method2(void, setMaximumAtlasSize, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, __void__setMaximumAtlasSize__unsigned_int__unsigned_int, "", ""); I_Method0(unsigned int, getMaximumAtlasWidth, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumAtlasWidth, "", ""); I_Method0(unsigned int, getMaximumAtlasHeight, + Properties::NON_VIRTUAL, __unsigned_int__getMaximumAtlasHeight, "", ""); I_Method1(void, setMargin, IN, unsigned int, margin, + Properties::NON_VIRTUAL, __void__setMargin__unsigned_int, "", ""); I_Method0(unsigned int, getMargin, + Properties::NON_VIRTUAL, __unsigned_int__getMargin, "", ""); I_Method1(void, addSource, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, __void__addSource__C5_osg_Image_P1, "", ""); I_Method1(void, addSource, IN, const osg::Texture2D *, texture, + Properties::NON_VIRTUAL, __void__addSource__C5_osg_Texture2D_P1, "", ""); I_Method0(unsigned int, getNumSources, + Properties::NON_VIRTUAL, __unsigned_int__getNumSources, "", ""); I_Method1(const osg::Image *, getSourceImage, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_osg_Image_P1__getSourceImage__unsigned_int, "", ""); I_Method1(const osg::Texture2D *, getSourceTexture, IN, unsigned int, i, + Properties::NON_VIRTUAL, __C5_osg_Texture2D_P1__getSourceTexture__unsigned_int, "", ""); I_Method0(void, buildAtlas, + Properties::NON_VIRTUAL, __void__buildAtlas, "", ""); I_Method1(osg::Image *, getImageAtlas, IN, unsigned int, i, + Properties::NON_VIRTUAL, __osg_Image_P1__getImageAtlas__unsigned_int, "", ""); I_Method1(osg::Texture2D *, getTextureAtlas, IN, unsigned int, i, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getTextureAtlas__unsigned_int, "", ""); I_Method1(osg::Matrix, getTextureMatrix, IN, unsigned int, i, + Properties::NON_VIRTUAL, __osg_Matrix__getTextureMatrix__unsigned_int, "", ""); I_Method1(osg::Image *, getImageAtlas, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, __osg_Image_P1__getImageAtlas__C5_osg_Image_P1, "", ""); I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getTextureAtlas__C5_osg_Image_P1, "", ""); I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, __osg_Matrix__getTextureMatrix__C5_osg_Image_P1, "", ""); I_Method1(osg::Image *, getImageAtlas, IN, const osg::Texture2D *, textue, + Properties::NON_VIRTUAL, __osg_Image_P1__getImageAtlas__C5_osg_Texture2D_P1, "", ""); I_Method1(osg::Texture2D *, getTextureAtlas, IN, const osg::Texture2D *, texture, + Properties::NON_VIRTUAL, __osg_Texture2D_P1__getTextureAtlas__C5_osg_Texture2D_P1, "", ""); I_Method1(osg::Matrix, getTextureMatrix, IN, const osg::Texture2D *, texture, + Properties::NON_VIRTUAL, __osg_Matrix__getTextureMatrix__C5_osg_Texture2D_P1, "", ""); @@ -636,29 +740,35 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureAtlasBuilder) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureAtlasVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureAtlasVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____TextureAtlasVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method0(osgUtil::Optimizer::TextureAtlasBuilder &, getTextureAtlasBuilder, + Properties::NON_VIRTUAL, __TextureAtlasBuilder_R1__getTextureAtlasBuilder, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "empty visitor, make it ready for next traversal. ", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method0(void, optimize, + Properties::NON_VIRTUAL, __void__optimize, "", ""); @@ -667,25 +777,29 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureAtlasVisitor) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults7(IN, bool, changeAutoUnRef, , IN, bool, valueAutoUnRef, , IN, bool, changeClientImageStorage, , IN, bool, valueClientImageStorage, , IN, bool, changeAnisotropy, , IN, float, valueAnisotropy, , IN, osgUtil::Optimizer *, optimizer, 0, ____TextureVisitor__bool__bool__bool__bool__bool__float__Optimizer_P1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, __void__apply__osg_StateSet_R1, "", ""); I_Method1(void, apply, IN, osg::Texture &, texture, + Properties::NON_VIRTUAL, __void__apply__osg_Texture_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/PlaneIntersector.cpp b/src/osgWrappers/osgUtil/PlaneIntersector.cpp index 50caaa39f..504cbff60 100644 --- a/src/osgWrappers/osgUtil/PlaneIntersector.cpp +++ b/src/osgWrappers/osgUtil/PlaneIntersector.cpp @@ -28,7 +28,7 @@ TYPE_NAME_ALIAS(std::vector< osgUtil::PlaneIntersector::Intersection >, osgUtil::PlaneIntersector::Intersections); -BEGIN_OBJECT_REFLECTOR(osgUtil::PlaneIntersector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::PlaneIntersector) I_BaseType(osgUtil::Intersector); I_ConstructorWithDefaults2(IN, const osg::Plane &, plane, , IN, const osg::Polytope &, boundingPolytope, osg::Polytope(), ____PlaneIntersector__C5_osg_Plane_R1__C5_osg_Polytope_R1, @@ -39,50 +39,62 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::PlaneIntersector) "Construct a PolytopeIntersector using speified polytope in specified coordinate frame. ", ""); I_Method1(void, insertIntersection, IN, const osgUtil::PlaneIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, __void__insertIntersection__C5_Intersection_R1, "", ""); I_Method0(osgUtil::PlaneIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, __Intersections_R1__getIntersections, "", ""); I_Method1(void, setRecordHeightsAsAttributes, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setRecordHeightsAsAttributes__bool, "", ""); I_Method0(bool, getRecordHeightsAsAttributes, + Properties::NON_VIRTUAL, __bool__getRecordHeightsAsAttributes, "", ""); I_Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, em, + Properties::NON_VIRTUAL, __void__setEllipsoidModel__osg_EllipsoidModel_P1, "", ""); I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, __C5_osg_EllipsoidModel_P1__getEllipsoidModel, "", ""); I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, __bool__enter__C5_osg_Node_R1, "", ""); I_Method0(void, leave, + Properties::VIRTUAL, __void__leave, "", ""); I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(bool, containsIntersections, + Properties::VIRTUAL, __bool__containsIntersections, "", ""); diff --git a/src/osgWrappers/osgUtil/PolytopeIntersector.cpp b/src/osgWrappers/osgUtil/PolytopeIntersector.cpp index 94c120fb6..bb7b5a301 100644 --- a/src/osgWrappers/osgUtil/PolytopeIntersector.cpp +++ b/src/osgWrappers/osgUtil/PolytopeIntersector.cpp @@ -26,9 +26,10 @@ TYPE_NAME_ALIAS(std::set< osgUtil::PolytopeIntersector::Intersection >, osgUtil::PolytopeIntersector::Intersections); -BEGIN_OBJECT_REFLECTOR(osgUtil::PolytopeIntersector) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::PolytopeIntersector) I_BaseType(osgUtil::Intersector); I_Constructor1(IN, const osg::Polytope &, polytope, + Properties::NON_EXPLICIT, ____PolytopeIntersector__C5_osg_Polytope_R1, "Construct a PolytopeIntersector using speified polytope in MODEL coordinates. ", ""); @@ -41,38 +42,47 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::PolytopeIntersector) "Convinience constructor for supporting picking in WINDOW, or PROJECTION coorindates In WINDOW coordinates (clip space cube) creates a five sided polytope box that has a front face at 0.0 and sides around box xMin, yMin, xMax, yMax. ", "In PROJECTION coordinates (clip space cube) creates a five sided polytope box that has a front face at -1 and sides around box xMin, yMin, xMax, yMax. In VIEW and MODEL coordinates (clip space cube) creates a five sided polytope box that has a front face at 0.0 and sides around box xMin, yMin, xMax, yMax. "); I_Method1(void, insertIntersection, IN, const osgUtil::PolytopeIntersector::Intersection &, intersection, + Properties::NON_VIRTUAL, __void__insertIntersection__C5_Intersection_R1, "", ""); I_Method0(osgUtil::PolytopeIntersector::Intersections &, getIntersections, + Properties::NON_VIRTUAL, __Intersections_R1__getIntersections, "", ""); I_Method0(osgUtil::PolytopeIntersector::Intersection, getFirstIntersection, + Properties::NON_VIRTUAL, __Intersection__getFirstIntersection, "", ""); I_Method1(osgUtil::Intersector *, clone, IN, osgUtil::IntersectionVisitor &, iv, + Properties::VIRTUAL, __Intersector_P1__clone__osgUtil_IntersectionVisitor_R1, "", ""); I_Method1(bool, enter, IN, const osg::Node &, node, + Properties::VIRTUAL, __bool__enter__C5_osg_Node_R1, "", ""); I_Method0(void, leave, + Properties::VIRTUAL, __void__leave, "", ""); I_Method2(void, intersect, IN, osgUtil::IntersectionVisitor &, iv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, __void__intersect__osgUtil_IntersectionVisitor_R1__osg_Drawable_P1, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(bool, containsIntersections, + Properties::VIRTUAL, __bool__containsIntersections, "", ""); diff --git a/src/osgWrappers/osgUtil/PositionalStateContainer.cpp b/src/osgWrappers/osgUtil/PositionalStateContainer.cpp index e07b9660c..1a0e242b2 100644 --- a/src/osgWrappers/osgUtil/PositionalStateContainer.cpp +++ b/src/osgWrappers/osgUtil/PositionalStateContainer.cpp @@ -32,52 +32,63 @@ TYPE_NAME_ALIAS(std::vector< osgUtil::PositionalStateContainer::AttrMatrixPair > TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgUtil::PositionalStateContainer::AttrMatrixList >, osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap); -BEGIN_OBJECT_REFLECTOR(osgUtil::PositionalStateContainer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::PositionalStateContainer) I_BaseType(osg::Object); I_Constructor0(____PositionalStateContainer, "", ""); 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 &, x, + 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_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method0(osgUtil::PositionalStateContainer::AttrMatrixList &, getAttrMatrixList, + Properties::NON_VIRTUAL, __AttrMatrixList_R1__getAttrMatrixList, "", ""); I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "", ""); I_Method0(osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap &, getTexUnitAttrMatrixListMap, + Properties::NON_VIRTUAL, __TexUnitAttrMatrixListMap_R1__getTexUnitAttrMatrixListMap, "", ""); I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "", ""); I_MethodWithDefaults3(void, draw, IN, osg::State &, state, , IN, osgUtil::RenderLeaf *&, previous, , IN, const osg::Matrix *, postMultMatrix, 0, + Properties::VIRTUAL, __void__draw__osg_State_R1__RenderLeaf_P1R1__C5_osg_Matrix_P1, "", ""); @@ -96,26 +107,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::RefMatrix >) "", ""); I_Constructor1(IN, osg::RefMatrix *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osg::RefMatrix > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osg::RefMatrix *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osg::RefMatrix *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osg::RefMatrix > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp index 0d047f570..12ab220f6 100644 --- a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp @@ -21,9 +21,10 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::NON_EXPLICIT, ____ReflectionMapGenerator__int, "", ""); diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp index e9958df48..a11580825 100644 --- a/src/osgWrappers/osgUtil/RenderBin.cpp +++ b/src/osgWrappers/osgUtil/RenderBin.cpp @@ -48,12 +48,13 @@ BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin) I_BaseType(osg::Object); I_Constructor0(____RenderBin, "", ""); I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, ____RenderBin__SortMode, "", ""); @@ -62,166 +63,207 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) "Copy constructor using CopyOp to manage deep vs shallow copy. ", ""); 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_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, __void__setStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getStateSet, "", ""); I_Method0(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getStateSet, "", ""); I_Method0(osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, __RenderBin_P1__getParent, "", ""); I_Method0(const osgUtil::RenderBin *, getParent, + Properties::NON_VIRTUAL, __C5_RenderBin_P1__getParent, "", ""); I_Method0(osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, __RenderStage_P1__getStage, "", ""); I_Method0(const osgUtil::RenderStage *, getStage, + Properties::NON_VIRTUAL, __C5_RenderStage_P1__getStage, "", ""); I_Method0(int, getBinNum, + Properties::NON_VIRTUAL, __int__getBinNum, "", ""); I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, __StateGraphList_R1__getStateGraphList, "", ""); I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, + Properties::NON_VIRTUAL, __C5_StateGraphList_R1__getStateGraphList, "", ""); I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, __RenderBinList_R1__getRenderBinList, "", ""); I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, + Properties::NON_VIRTUAL, __C5_RenderBinList_R1__getRenderBinList, "", ""); I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, __RenderLeafList_R1__getRenderLeafList, "", ""); I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, + Properties::NON_VIRTUAL, __C5_RenderLeafList_R1__getRenderLeafList, "", ""); I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, + Properties::NON_VIRTUAL, __RenderBin_P1__find_or_insert__int__C5_std_string_R1, "", ""); I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, __void__addStateGraph__StateGraph_P1, "", ""); I_Method0(void, sort, + Properties::VIRTUAL, __void__sort, "", ""); I_Method0(void, sortImplementation, + Properties::VIRTUAL, __void__sortImplementation, "", ""); I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_VIRTUAL, __void__setSortMode__SortMode, "", ""); I_Method0(osgUtil::RenderBin::SortMode, getSortMode, + Properties::NON_VIRTUAL, __SortMode__getSortMode, "", ""); I_Method0(void, sortByState, + Properties::VIRTUAL, __void__sortByState, "", ""); I_Method0(void, sortByStateThenFrontToBack, + Properties::VIRTUAL, __void__sortByStateThenFrontToBack, "", ""); I_Method0(void, sortFrontToBack, + Properties::VIRTUAL, __void__sortFrontToBack, "", ""); I_Method0(void, sortBackToFront, + Properties::VIRTUAL, __void__sortBackToFront, "", ""); I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, + Properties::NON_VIRTUAL, __void__setSortCallback__SortCallback_P1, "", ""); I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, __SortCallback_P1__getSortCallback, "", ""); I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, + Properties::NON_VIRTUAL, __C5_SortCallback_P1__getSortCallback, "", ""); I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, + Properties::NON_VIRTUAL, __void__setDrawCallback__DrawCallback_P1, "", ""); I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, __DrawCallback_P1__getDrawCallback, "", ""); I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, + Properties::NON_VIRTUAL, __C5_DrawCallback_P1__getDrawCallback, "", ""); I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, __bool__getStats__Statistics_R1, "Extract stats for current draw list. ", ""); I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, __unsigned_int__computeNumberOfDynamicRenderLeaves, "Compute the number of dynamic RenderLeaves. ", ""); I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, + Properties::NON_VIRTUAL, __void__copyLeavesFromStateGraphListToRenderLeafList, "", ""); @@ -287,6 +329,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) "", ""); I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::PURE_VIRTUAL, __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); @@ -298,6 +341,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) "", ""); I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, + Properties::PURE_VIRTUAL, __void__sortImplementation__RenderBin_P1, "", ""); @@ -308,26 +352,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderBin >) "", ""); I_Constructor1(IN, osgUtil::RenderBin *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderBin > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::RenderBin *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::RenderBin *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderBin > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/RenderLeaf.cpp b/src/osgWrappers/osgUtil/RenderLeaf.cpp index cecb93ba7..d59e4d58d 100644 --- a/src/osgWrappers/osgUtil/RenderLeaf.cpp +++ b/src/osgWrappers/osgUtil/RenderLeaf.cpp @@ -25,25 +25,29 @@ #include -BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderLeaf) I_BaseType(osg::Referenced); I_ConstructorWithDefaults4(IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, ____RenderLeaf__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, "", ""); I_MethodWithDefaults4(void, set, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, + Properties::NON_VIRTUAL, __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method2(void, render, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *, previous, + Properties::VIRTUAL, __void__render__osg_RenderInfo_R1__RenderLeaf_P1, "", ""); I_Method0(const osg::Drawable *, getDrawable, + Properties::NON_VIRTUAL, __C5_osg_Drawable_P1__getDrawable, "", ""); diff --git a/src/osgWrappers/osgUtil/RenderStage.cpp b/src/osgWrappers/osgUtil/RenderStage.cpp index 3ceeea619..3d3fb59f8 100644 --- a/src/osgWrappers/osgUtil/RenderStage.cpp +++ b/src/osgWrappers/osgUtil/RenderStage.cpp @@ -37,12 +37,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderStage) I_BaseType(osgUtil::RenderBin); I_Constructor0(____RenderStage, "", ""); I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, ____RenderStage__SortMode, "", ""); @@ -51,266 +52,332 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) "", ""); 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 *, 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, reset, + Properties::VIRTUAL, __void__reset, "", ""); I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, __void__setDrawBuffer__GLenum, "Set the draw buffer used at the start of each frame draw. ", ""); I_Method0(GLenum, getDrawBuffer, + Properties::NON_VIRTUAL, __GLenum__getDrawBuffer, "Get the draw buffer used at the start of each frame draw. ", ""); I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, __void__setReadBuffer__GLenum, "Set the read buffer for any required copy operations to use. ", ""); I_Method0(GLenum, getReadBuffer, + Properties::NON_VIRTUAL, __GLenum__getReadBuffer, "Get the read buffer for any required copy operations to use. ", ""); I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, __void__setViewport__osg_Viewport_P1, "Set the viewport. ", ""); I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __C5_osg_Viewport_P1__getViewport, "Get the const viewport. ", ""); I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __osg_Viewport_P1__getViewport, "Get the viewport. ", ""); I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, __void__setClearMask__GLbitfield, "Set the clear mask used in glClear(. ", ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, __GLbitfield__getClearMask, "Get the clear mask. ", ""); I_Method1(void, setColorMask, IN, osg::ColorMask *, cm, + Properties::NON_VIRTUAL, __void__setColorMask__osg_ColorMask_P1, "", ""); I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, __osg_ColorMask_P1__getColorMask, "", ""); I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, __C5_osg_ColorMask_P1__getColorMask, "", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearColor__C5_osg_Vec4_R1, "Set the clear color used in glClearColor(. ", ".). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true "); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getClearColor, "Get the clear color. ", ""); I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearAccum__C5_osg_Vec4_R1, "Set the clear accum used in glClearAccum(. ", ".). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. "); I_Method0(const osg::Vec4 &, getClearAccum, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getClearAccum, "Get the clear accum. ", ""); I_Method1(void, setClearDepth, IN, double, depth, + Properties::NON_VIRTUAL, __void__setClearDepth__double, "Set the clear depth used in glClearDepth(. ", ".). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. "); I_Method0(double, getClearDepth, + Properties::NON_VIRTUAL, __double__getClearDepth, "Get the clear depth. ", ""); I_Method1(void, setClearStencil, IN, int, stencil, + Properties::NON_VIRTUAL, __void__setClearStencil__int, "Set the clear stencil value used in glClearStencil(). ", "Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true "); I_Method0(int, getClearStencil, + Properties::NON_VIRTUAL, __int__getClearStencil, "Get the clear color. ", ""); I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCamera__osg_Camera_P1, "", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCamera, "", ""); I_Method1(void, setCameraRequiresSetUp, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setCameraRequiresSetUp__bool, "", ""); I_Method0(bool, getCameraRequiresSetUp, + Properties::NON_VIRTUAL, __bool__getCameraRequiresSetUp, "", ""); I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__runCameraSetUp__osg_RenderInfo_R1, "Attempt the set the RenderStage from the Camera settings. ", ""); I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, + Properties::NON_VIRTUAL, __void__setTexture__osg_Texture_P1__unsigned_int__unsigned_int, "", ""); I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, __osg_Texture_P1__getTexture, "", ""); I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__setImage__osg_Image_P1, "", ""); I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, __osg_Image_P1__getImage, "", ""); I_Method1(void, setImageReadPixelFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, __void__setImageReadPixelFormat__GLenum, "", ""); I_Method0(GLenum, getImageReadPixelFormat, + Properties::NON_VIRTUAL, __GLenum__getImageReadPixelFormat, "", ""); I_Method1(void, setImageReadPixelDataType, IN, GLenum, type, + Properties::NON_VIRTUAL, __void__setImageReadPixelDataType__GLenum, "", ""); I_Method0(GLenum, getImageReadPixelDataType, + Properties::NON_VIRTUAL, __GLenum__getImageReadPixelDataType, "", ""); I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo, + Properties::NON_VIRTUAL, __void__setFrameBufferObject__osg_FrameBufferObject_P1, "", ""); I_Method0(osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, __osg_FrameBufferObject_P1__getFrameBufferObject, "", ""); I_Method0(const osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, __C5_osg_FrameBufferObject_P1__getFrameBufferObject, "", ""); I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, __void__setGraphicsContext__osg_GraphicsContext_P1, "", ""); I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __osg_GraphicsContext_P1__getGraphicsContext, "", ""); I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, __C5_osg_GraphicsContext_P1__getGraphicsContext, "", ""); I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1, "", ""); I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix, + Properties::NON_VIRTUAL, __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, "", ""); I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1, "", ""); I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer, + Properties::NON_VIRTUAL, __PositionalStateContainer_P1__getInheritedPositionalStateContainer, "", ""); I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, __void__setPositionalStateContainer__PositionalStateContainer_P1, "", ""); I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer, + Properties::NON_VIRTUAL, __PositionalStateContainer_P1__getPositionalStateContainer, "", ""); I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "", ""); I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, "", ""); I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__copyTexture__osg_RenderInfo_R1, "", ""); I_Method0(void, sort, + Properties::VIRTUAL, __void__sort, "", ""); I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__drawPreRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture, + Properties::VIRTUAL, __void__drawInner__osg_RenderInfo_R1__RenderLeaf_P1R1__bool_R1, "", ""); I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__drawPostRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, "", ""); I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, __void__addToDependencyList__RenderStage_P1, "", ""); I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, __void__addPreRenderStage__RenderStage_P1__int, "", ""); I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, __void__addPostRenderStage__RenderStage_P1__int, "", ""); I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, __bool__getStats__Statistics_R1, "Extract stats for current draw list. ", ""); I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, __unsigned_int__computeNumberOfDynamicRenderLeaves, "Compute the number of dynamic RenderLeaves. ", ""); I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, __void__attach__osg_Camera_BufferComponent__osg_Image_P1, "", ""); diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp index 7919824ab..674a628a7 100644 --- a/src/osgWrappers/osgUtil/SceneView.cpp +++ b/src/osgWrappers/osgUtil/SceneView.cpp @@ -69,10 +69,11 @@ BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) I_EnumLabel(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView) I_BaseType(osg::Object); I_BaseType(osg::CullSettings); I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL, + Properties::NON_EXPLICIT, ____SceneView__osg_DisplaySettings_P1, "Construct a default scene view. ", ""); @@ -81,530 +82,662 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) "", ""); 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_MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS, + Properties::NON_VIRTUAL, __void__setDefaults__unsigned_int, "Set scene view to use default global state, light, camera and render visitor. ", ""); I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCamera__osg_Camera_P1, "Set the camera used to represent the camera view of this SceneView. ", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "Get the camera used to represent the camera view of this SceneView. ", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __void__setSceneData__osg_Node_P1, "Set the data to view. ", "The data will typically be an osg::Scene but can be any osg::Node type."); I_MethodWithDefaults1(osg::Node *, getSceneData, IN, unsigned int, childNo, 0, + Properties::NON_VIRTUAL, __osg_Node_P1__getSceneData__unsigned_int, "Get the scene data to view. ", "The data will typically be an osg::Scene but can be any osg::Node type."); I_MethodWithDefaults1(const osg::Node *, getSceneData, IN, unsigned int, childNo, 0, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getSceneData__unsigned_int, "Get the const scene data which to view. ", "The data will typically be an osg::Scene but can be any osg::Node type."); I_Method0(unsigned int, getNumSceneData, + Properties::NON_VIRTUAL, __unsigned_int__getNumSceneData, "Get the number of scene data subgraphs added to the SceneView's camera. ", ""); I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, __void__setViewport__osg_Viewport_P1, "Set the viewport of the scene view to use specified osg::Viewport. ", ""); I_Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, __void__setViewport__int__int__int__int, "Set the viewport of the scene view to specified dimensions. ", ""); I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __osg_Viewport_P1__getViewport, "Get the viewport. ", ""); I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, __C5_osg_Viewport_P1__getViewport, "Get the const viewport. ", ""); I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs, + Properties::NON_VIRTUAL, __void__setDisplaySettings__osg_DisplaySettings_P1, "Set the DisplaySettings. ", ""); I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __C5_osg_DisplaySettings_P1__getDisplaySettings, "Get the const DisplaySettings. ", ""); I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __osg_DisplaySettings_P1__getDisplaySettings, "Get the DisplaySettings. ", ""); I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, __void__setClearColor__C5_osg_Vec4_R1, "Set the color used in glClearColor(). ", "Defaults to an off blue color. "); I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, __C5_osg_Vec4_R1__getClearColor, "Get the color used in glClearColor. ", ""); I_Method1(void, setRedrawInterlacedStereoStencilMask, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setRedrawInterlacedStereoStencilMask__bool, "Manually set the redraw interlaced stereo stencil mask request flag to control whether to redraw the stencil buffer on the next frame. ", ""); I_Method0(bool, getRedrawInterlacedStereoStencilMask, + Properties::NON_VIRTUAL, __bool__getRedrawInterlacedStereoStencilMask, "Get the redraw interlaced stereo stencil mask request flag. ", ""); I_Method1(void, setGlobalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, __void__setGlobalStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getGlobalStateSet, "", ""); I_Method0(const osg::StateSet *, getGlobalStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getGlobalStateSet, "", ""); I_Method1(void, setLocalStateSet, IN, osg::StateSet *, state, + Properties::NON_VIRTUAL, __void__setLocalStateSet__osg_StateSet_P1, "", ""); I_Method0(osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, __osg_StateSet_P1__getLocalStateSet, "", ""); I_Method0(const osg::StateSet *, getLocalStateSet, + Properties::NON_VIRTUAL, __C5_osg_StateSet_P1__getLocalStateSet, "", ""); I_Method1(void, setActiveUniforms, IN, int, activeUniforms, + Properties::NON_VIRTUAL, __void__setActiveUniforms__int, "Set the uniforms that SceneView should set set up on each frame. ", ""); I_Method0(int, getActiveUniforms, + Properties::NON_VIRTUAL, __int__getActiveUniforms, "Get the uniforms that SceneView should set set up on each frame. ", ""); I_Method0(void, updateUniforms, + Properties::NON_VIRTUAL, __void__updateUniforms, "", ""); I_Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode, + Properties::NON_VIRTUAL, __void__setLightingMode__LightingMode, "", ""); I_Method0(osgUtil::SceneView::LightingMode, getLightingMode, + Properties::NON_VIRTUAL, __LightingMode__getLightingMode, "", ""); I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, __void__setLight__osg_Light_P1, "", ""); I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, __osg_Light_P1__getLight, "", ""); I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, __C5_osg_Light_P1__getLight, "", ""); I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, __void__setState__osg_State_P1, "", ""); I_Method0(osg::State *, getState, + Properties::NON_VIRTUAL, __osg_State_P1__getState, "", ""); I_Method0(const osg::State *, getState, + Properties::NON_VIRTUAL, __C5_osg_State_P1__getState, "", ""); I_Method1(void, setView, IN, osg::View *, view, + Properties::NON_VIRTUAL, __void__setView__osg_View_P1, "", ""); I_Method0(osg::View *, getView, + Properties::NON_VIRTUAL, __osg_View_P1__getView, "", ""); I_Method0(const osg::View *, getView, + Properties::NON_VIRTUAL, __C5_osg_View_P1__getView, "", ""); I_Method1(void, setRenderInfo, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, __void__setRenderInfo__osg_RenderInfo_R1, "", ""); I_Method0(osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, __osg_RenderInfo_R1__getRenderInfo, "", ""); I_Method0(const osg::RenderInfo &, getRenderInfo, + Properties::NON_VIRTUAL, __C5_osg_RenderInfo_R1__getRenderInfo, "", ""); I_Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __osg_Matrixd_R1__getProjectionMatrix, "Get the projection matrix. ", ""); I_Method0(const osg::Matrixd &, getProjectionMatrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __bool__getProjectionMatrixAsOrtho__double_R1__double_R1__double_R1__double_R1__double_R1__double_R1, "Get the orthographic 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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __osg_Matrixd_R1__getViewMatrix, "Get the view matrix. ", ""); I_Method0(const osg::Matrixd &, getViewMatrix, + Properties::NON_VIRTUAL, __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, + Properties::NON_VIRTUAL, __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_Method1(void, setInitVisitor, IN, osg::NodeVisitor *, av, + Properties::NON_VIRTUAL, __void__setInitVisitor__osg_NodeVisitor_P1, "", ""); I_Method0(osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, __osg_NodeVisitor_P1__getInitVisitor, "", ""); I_Method0(const osg::NodeVisitor *, getInitVisitor, + Properties::NON_VIRTUAL, __C5_osg_NodeVisitor_P1__getInitVisitor, "", ""); I_Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av, + Properties::NON_VIRTUAL, __void__setUpdateVisitor__osg_NodeVisitor_P1, "", ""); I_Method0(osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, __osg_NodeVisitor_P1__getUpdateVisitor, "", ""); I_Method0(const osg::NodeVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, __C5_osg_NodeVisitor_P1__getUpdateVisitor, "", ""); I_Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, __void__setCullVisitor__osgUtil_CullVisitor_P1, "", ""); I_Method0(osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, __osgUtil_CullVisitor_P1__getCullVisitor, "", ""); I_Method0(const osgUtil::CullVisitor *, getCullVisitor, + Properties::NON_VIRTUAL, __C5_osgUtil_CullVisitor_P1__getCullVisitor, "", ""); I_Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, __void__setCullVisitorLeft__osgUtil_CullVisitor_P1, "", ""); I_Method0(osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, __osgUtil_CullVisitor_P1__getCullVisitorLeft, "", ""); I_Method0(const osgUtil::CullVisitor *, getCullVisitorLeft, + Properties::NON_VIRTUAL, __C5_osgUtil_CullVisitor_P1__getCullVisitorLeft, "", ""); I_Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, __void__setCullVisitorRight__osgUtil_CullVisitor_P1, "", ""); I_Method0(osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, __osgUtil_CullVisitor_P1__getCullVisitorRight, "", ""); I_Method0(const osgUtil::CullVisitor *, getCullVisitorRight, + Properties::NON_VIRTUAL, __C5_osgUtil_CullVisitor_P1__getCullVisitorRight, "", ""); I_Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov, + Properties::NON_VIRTUAL, __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1, "", ""); I_Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, "", ""); I_Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor, + Properties::NON_VIRTUAL, __C5_osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, "", ""); I_Method1(void, setStateGraph, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, __void__setStateGraph__osgUtil_StateGraph_P1, "", ""); I_Method0(osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, __osgUtil_StateGraph_P1__getStateGraph, "", ""); I_Method0(const osgUtil::StateGraph *, getStateGraph, + Properties::NON_VIRTUAL, __C5_osgUtil_StateGraph_P1__getStateGraph, "", ""); I_Method1(void, setStateGraphLeft, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, __void__setStateGraphLeft__osgUtil_StateGraph_P1, "", ""); I_Method0(osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, __osgUtil_StateGraph_P1__getStateGraphLeft, "", ""); I_Method0(const osgUtil::StateGraph *, getStateGraphLeft, + Properties::NON_VIRTUAL, __C5_osgUtil_StateGraph_P1__getStateGraphLeft, "", ""); I_Method1(void, setStateGraphRight, IN, osgUtil::StateGraph *, rg, + Properties::NON_VIRTUAL, __void__setStateGraphRight__osgUtil_StateGraph_P1, "", ""); I_Method0(osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, __osgUtil_StateGraph_P1__getStateGraphRight, "", ""); I_Method0(const osgUtil::StateGraph *, getStateGraphRight, + Properties::NON_VIRTUAL, __C5_osgUtil_StateGraph_P1__getStateGraphRight, "", ""); I_Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, __void__setRenderStage__osgUtil_RenderStage_P1, "", ""); I_Method0(osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, __osgUtil_RenderStage_P1__getRenderStage, "", ""); I_Method0(const osgUtil::RenderStage *, getRenderStage, + Properties::NON_VIRTUAL, __C5_osgUtil_RenderStage_P1__getRenderStage, "", ""); I_Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, __void__setRenderStageLeft__osgUtil_RenderStage_P1, "", ""); I_Method0(osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, __osgUtil_RenderStage_P1__getRenderStageLeft, "", ""); I_Method0(const osgUtil::RenderStage *, getRenderStageLeft, + Properties::NON_VIRTUAL, __C5_osgUtil_RenderStage_P1__getRenderStageLeft, "", ""); I_Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, __void__setRenderStageRight__osgUtil_RenderStage_P1, "", ""); I_Method0(osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, __osgUtil_RenderStage_P1__getRenderStageRight, "", ""); I_Method0(const osgUtil::RenderStage *, getRenderStageRight, + Properties::NON_VIRTUAL, __C5_osgUtil_RenderStage_P1__getRenderStageRight, "", ""); I_Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue, + Properties::NON_VIRTUAL, __void__setDrawBufferValue__GLenum, "Set the draw buffer value used at the start of each frame draw. ", "Note, overridden in quad buffer stereo mode "); I_Method0(GLenum, getDrawBufferValue, + Properties::NON_VIRTUAL, __GLenum__getDrawBufferValue, "Get the draw buffer value used at the start of each frame draw. ", ""); I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, __void__setFusionDistance__FusionDistanceMode__float, "Set the FusionDistanceMode and Value. ", "Note, is used only when working in stereo. "); I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::NON_VIRTUAL, __FusionDistanceMode__getFusionDistanceMode, "Get the FusionDistanceMode. ", ""); I_Method0(float, getFusionDistanceValue, + Properties::NON_VIRTUAL, __float__getFusionDistanceValue, "Get the FusionDistanceValue. ", "Note, only used for USE_FUSION_DISTANCE_VALUE & PROPORTIONAL_TO_SCREEN_DISTANCE modes. "); I_Method1(void, setPrioritizeTextures, IN, bool, pt, + Properties::NON_VIRTUAL, __void__setPrioritizeTextures__bool, "Set whether the draw method should call renderer->prioritizeTexture. ", ""); I_Method0(bool, getPrioritizeTextures, + Properties::NON_VIRTUAL, __bool__getPrioritizeTextures, "Get whether the draw method should call renderer->prioritizeTexture. ", ""); I_Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback, + Properties::NON_VIRTUAL, __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1, "", ""); I_Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, "", ""); I_Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback, + Properties::NON_VIRTUAL, __C5_ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, "", ""); I_Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object, + Properties::NON_VIRTUAL, __bool__projectWindowIntoObject__C5_osg_Vec3_R1__osg_Vec3_R1, "Calculate the object coordinates of a point in window coordinates. ", "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. Returns true on successful projection."); I_Method4(bool, projectWindowXYIntoObject, IN, int, x, IN, int, y, IN, osg::Vec3 &, near_point, IN, osg::Vec3 &, far_point, + Properties::NON_VIRTUAL, __bool__projectWindowXYIntoObject__int__int__osg_Vec3_R1__osg_Vec3_R1, "Calculate the object coordinates of a window x,y when projected onto the near and far planes. ", "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window. Returns true on successful projection."); I_Method2(bool, projectObjectIntoWindow, IN, const osg::Vec3 &, object, IN, osg::Vec3 &, window, + Properties::NON_VIRTUAL, __bool__projectObjectIntoWindow__C5_osg_Vec3_R1__osg_Vec3_R1, "Calculate the window coordinates of a point in object coordinates. ", "Note, current implementation requires that SceneView::draw() has been previously called for projectWindowIntoObject to produce valid values. Consistent with OpenGL windows coordinates are calculated relative to the bottom left of the window, whereas window API's normally have the top left as the origin, so you may need to pass in (mouseX,window_height-mouseY,...). Returns true on successful projection."); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, __void__setFrameStamp__osg_FrameStamp_P1, "Set the frame stamp for the current frame. ", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_osg_FrameStamp_P1__getFrameStamp, "Get the frame stamp for the current frame. ", ""); I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + Properties::NON_VIRTUAL, __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + Properties::NON_VIRTUAL, __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, __osg_Matrixd__computeLeftEyeProjectionImplementation__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, __osg_Matrixd__computeLeftEyeViewImplementation__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection, + Properties::VIRTUAL, __osg_Matrixd__computeRightEyeProjectionImplementation__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view, + Properties::VIRTUAL, __osg_Matrixd__computeRightEyeViewImplementation__C5_osg_Matrixd_R1, "", ""); I_Method0(void, init, + Properties::VIRTUAL, __void__init, "Do init traversal of attached scene graph using Init NodeVisitor. ", "The init traversal is called once for each SceneView, and should be used to compile display list, texture objects intialize data not otherwise intialized during scene graph loading. Note, is called automatically by update & cull if it hasn't already been called elsewhere. Also init() should only ever be called within a valid graphics context. "); I_Method0(void, update, + Properties::VIRTUAL, __void__update, "Do app traversal of attached scene graph using App NodeVisitor. ", ""); I_Method0(void, cull, + Properties::VIRTUAL, __void__cull, "Do cull traversal of attached scene graph using Cull NodeVisitor. ", ""); I_Method0(void, draw, + Properties::VIRTUAL, __void__draw, "Do draw traversal of draw bins generated by cull traversal. ", ""); I_Method0(unsigned int, getDynamicObjectCount, + Properties::NON_VIRTUAL, __unsigned_int__getDynamicObjectCount, "Compute the number of dynamic objects that will be held in the rendering backend. ", ""); I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, __void__releaseAllGLObjects, "Release all OpenGL objects from the scene graph, such as texture objects, display lists etc. ", "These released scene graphs placed in the respective delete GLObjects cache, which then need to be deleted in OpenGL by SceneView::flushAllDeleteGLObjects(). "); I_Method0(void, flushAllDeletedGLObjects, + Properties::VIRTUAL, __void__flushAllDeletedGLObjects, "Flush all deleted OpenGL objects, such as texture objects, display lists etc. ", ""); I_Method1(void, flushDeletedGLObjects, IN, double &, availableTime, + Properties::VIRTUAL, __void__flushDeletedGLObjects__double_R1, "Flush deleted OpenGL objects, such as texture objects, display lists etc within specified available time. ", ""); I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, + Properties::NON_VIRTUAL, __bool__getStats__Statistics_R1, "Extract stats for current draw list. ", ""); @@ -728,18 +861,22 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView::ComputeStereoMatricesCallbac "", ""); I_Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection, + Properties::PURE_VIRTUAL, __osg_Matrixd__computeLeftEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view, + Properties::PURE_VIRTUAL, __osg_Matrixd__computeLeftEyeView__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection, + Properties::PURE_VIRTUAL, __osg_Matrixd__computeRightEyeProjection__C5_osg_Matrixd_R1, "", ""); I_Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view, + Properties::PURE_VIRTUAL, __osg_Matrixd__computeRightEyeView__C5_osg_Matrixd_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/Simplifier.cpp b/src/osgWrappers/osgUtil/Simplifier.cpp index 88d784de8..eec6d650e 100644 --- a/src/osgWrappers/osgUtil/Simplifier.cpp +++ b/src/osgWrappers/osgUtil/Simplifier.cpp @@ -24,81 +24,99 @@ TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Simplifier) I_BaseType(osg::NodeVisitor); I_ConstructorWithDefaults3(IN, float, sampleRatio, 1.0f, IN, float, maximumError, FLT_MAX, IN, float, maximumLength, 0.0, ____Simplifier__float__float__float, "", ""); I_Method1(void, setSampleRatio, IN, float, sampleRatio, + Properties::NON_VIRTUAL, __void__setSampleRatio__float, "", ""); I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, __float__getSampleRatio, "", ""); I_Method1(void, setMaximumError, IN, float, error, + Properties::NON_VIRTUAL, __void__setMaximumError__float, "Set the maximum point error that all point removals must be less than to permit removal of a point. ", "Note, Only used when down sampling. i.e. sampleRatio < 1.0 "); I_Method0(float, getMaximumError, + Properties::NON_VIRTUAL, __float__getMaximumError, "", ""); I_Method1(void, setMaximumLength, IN, float, length, + Properties::NON_VIRTUAL, __void__setMaximumLength__float, "Set the maximum length target that all edges must be shorted than. ", "Note, Only used when up sampling i.e. sampleRatio > 1.0. "); I_Method0(float, getMaximumLength, + Properties::NON_VIRTUAL, __float__getMaximumLength, "", ""); I_Method1(void, setDoTriStrip, IN, bool, on, + Properties::NON_VIRTUAL, __void__setDoTriStrip__bool, "", ""); I_Method0(bool, getDoTriStrip, + Properties::NON_VIRTUAL, __bool__getDoTriStrip, "", ""); I_Method1(void, setSmoothing, IN, bool, on, + Properties::NON_VIRTUAL, __void__setSmoothing__bool, "", ""); I_Method0(bool, getSmoothing, + Properties::NON_VIRTUAL, __bool__getSmoothing, "", ""); I_Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb, + Properties::NON_VIRTUAL, __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1, "", ""); I_Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, "", ""); I_Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback, + Properties::NON_VIRTUAL, __C5_ContinueSimplificationCallback_P1__getContinueSimplificationCallback, "", ""); I_Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::NON_VIRTUAL, __bool__continueSimplification__float__unsigned_int__unsigned_int, "", ""); I_Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, __bool__continueSimplificationImplementation__float__unsigned_int__unsigned_int, "", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, simplify, IN, osg::Geometry &, geometry, + Properties::NON_VIRTUAL, __void__simplify__osg_Geometry_R1, "simply the geometry. ", ""); I_Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints, + Properties::NON_VIRTUAL, __void__simplify__osg_Geometry_R1__C5_IndexList_R1, "simply the geometry, whilst protecting key points from being modified. ", ""); @@ -122,12 +140,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) __void__setSmoothing__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) I_BaseType(osg::Referenced); I_Constructor0(____ContinueSimplificationCallback, "", ""); I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, + Properties::VIRTUAL, __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, "return true if mesh should be continued to be simplified, return false to stop simplification. ", ""); diff --git a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp index 15f05641d..c32f5875e 100644 --- a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp +++ b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp @@ -22,12 +22,13 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____SmoothingVisitor, "default to traversing all children. ", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "apply smoothing method to all geode geosets. ", ""); diff --git a/src/osgWrappers/osgUtil/StateGraph.cpp b/src/osgWrappers/osgUtil/StateGraph.cpp index 23487a5a1..ecc743c44 100644 --- a/src/osgWrappers/osgUtil/StateGraph.cpp +++ b/src/osgWrappers/osgUtil/StateGraph.cpp @@ -34,7 +34,7 @@ TYPE_NAME_ALIAS(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::St TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >, osgUtil::StateGraph::LeafList); -BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::StateGraph) I_BaseType(osg::Referenced); I_Constructor0(____StateGraph, "", @@ -44,58 +44,72 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph) "", ""); I_Method0(osgUtil::StateGraph *, cloneType, + Properties::NON_VIRTUAL, __StateGraph_P1__cloneType, "", ""); I_Method1(void, setUserData, IN, osg::Referenced *, obj, + Properties::NON_VIRTUAL, __void__setUserData__osg_Referenced_P1, "", ""); I_Method0(osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __osg_Referenced_P1__getUserData, "", ""); I_Method0(const osg::Referenced *, getUserData, + Properties::NON_VIRTUAL, __C5_osg_Referenced_P1__getUserData, "", ""); I_Method0(bool, empty, + Properties::NON_VIRTUAL, __bool__empty, "return true if all of drawables, lights and children are empty. ", ""); I_Method0(bool, leaves_empty, + Properties::NON_VIRTUAL, __bool__leaves_empty, "", ""); I_Method0(float, getAverageDistance, + Properties::NON_VIRTUAL, __float__getAverageDistance, "", ""); I_Method0(float, getMinimumDistance, + Properties::NON_VIRTUAL, __float__getMinimumDistance, "", ""); I_Method0(void, sortFrontToBack, + Properties::NON_VIRTUAL, __void__sortFrontToBack, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "Reset the internal contents of a StateGraph, including deleting all children. ", ""); I_Method0(void, clean, + Properties::NON_VIRTUAL, __void__clean, "Recursively clean the StateGraph of all its drawables, lights and depths. ", "Leaves children intact, and ready to be populated again. "); I_Method0(void, prune, + Properties::NON_VIRTUAL, __void__prune, "Recursively prune the StateGraph of empty children. ", ""); I_Method1(osgUtil::StateGraph *, find_or_insert, IN, const osg::StateSet *, stateset, + Properties::NON_VIRTUAL, __StateGraph_P1__find_or_insert__C5_osg_StateSet_P1, "", ""); I_Method1(void, addLeaf, IN, osgUtil::RenderLeaf *, leaf, + Properties::NON_VIRTUAL, __void__addLeaf__RenderLeaf_P1, "add a render leaf. ", ""); @@ -131,26 +145,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderLeaf >) "", ""); I_Constructor1(IN, osgUtil::RenderLeaf *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::RenderLeaf > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::RenderLeaf *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::RenderLeaf *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::RenderLeaf > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); @@ -164,26 +184,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::StateGraph >) "", ""); I_Constructor1(IN, osgUtil::StateGraph *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::StateGraph > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::StateGraph *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::StateGraph *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::StateGraph > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/Statistics.cpp b/src/osgWrappers/osgUtil/Statistics.cpp index 3ccfacf1b..fd7a65002 100644 --- a/src/osgWrappers/osgUtil/Statistics.cpp +++ b/src/osgWrappers/osgUtil/Statistics.cpp @@ -47,124 +47,153 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) I_EnumLabel(osgUtil::Statistics::STAT_RESTART); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Statistics) I_BaseType(osg::PrimitiveFunctor); I_Constructor0(____Statistics, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t, + Properties::NON_VIRTUAL, __void__setType__StatsType, "", ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, "Sets the array of vertices used to describe the primitives. ", "Somehow mimics the OpenGL glVertexPointer() function."); I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + Properties::VIRTUAL, __void__drawArrays__GLenum__GLint__GLsizei, "Mimics the OpenGL glDrawArrays() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, "Mimics the OpenGL glDrawElements() function. ", ""); I_Method1(void, begin, IN, GLenum, mode, + Properties::VIRTUAL, __void__begin__GLenum, "Mimics the OpenGL glBegin() function. ", ""); I_Method0(void, vertex, + Properties::NON_VIRTUAL, __void__vertex, "", ""); I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, __void__vertex__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method1(void, vertex, IN, const osg::Vec3 &, x, + Properties::VIRTUAL, __void__vertex__C5_osg_Vec3_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method1(void, vertex, IN, const osg::Vec2 &, x, + Properties::VIRTUAL, __void__vertex__C5_osg_Vec2_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method1(void, vertex, IN, const osg::Vec4 &, x, + Properties::VIRTUAL, __void__vertex__C5_osg_Vec4_R1, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method2(void, vertex, IN, float, x, IN, float, x, + Properties::VIRTUAL, __void__vertex__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, __void__vertex__float__float__float__float, "Mimics the OpenGL glVertex() \"family of functions\". ", ""); I_Method0(void, end, + Properties::VIRTUAL, __void__end, "Mimics the OpenGL glEnd() function. ", ""); I_Method0(void, addDrawable, + Properties::NON_VIRTUAL, __void__addDrawable, "", ""); I_Method0(void, addMatrix, + Properties::NON_VIRTUAL, __void__addMatrix, "", ""); I_Method1(void, addLight, IN, int, np, + Properties::NON_VIRTUAL, __void__addLight__int, "", ""); I_Method1(void, addImpostor, IN, int, np, + Properties::NON_VIRTUAL, __void__addImpostor__int, "", ""); I_Method0(int, getBins, + Properties::NON_VIRTUAL, __int__getBins, "", ""); I_Method1(void, setDepth, IN, int, d, + Properties::NON_VIRTUAL, __void__setDepth__int, "", ""); I_Method1(void, addBins, IN, int, np, + Properties::NON_VIRTUAL, __void__addBins__int, "", ""); I_Method1(void, setBinNo, IN, int, n, + Properties::NON_VIRTUAL, __void__setBinNo__int, "", ""); I_Method1(void, add, IN, const osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, __void__add__C5_Statistics_R1, "", ""); I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + Properties::NON_VIRTUAL, __PrimitiveCountMap_iterator__GetPrimitivesBegin, "", ""); I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + Properties::NON_VIRTUAL, __PrimitiveCountMap_iterator__GetPrimitivesEnd, "", ""); @@ -199,48 +228,58 @@ TYPE_NAME_ALIAS(std::set< osg::Drawable * >, osgUtil::StatsVisitor::DrawableSet) TYPE_NAME_ALIAS(std::set< osg::StateSet * >, osgUtil::StatsVisitor::StateSetSet); -BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::StatsVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____StatsVisitor, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, __void__apply__osg_Drawable_R1, "", ""); I_Method0(void, totalUpStats, + Properties::NON_VIRTUAL, __void__totalUpStats, "", ""); I_Method1(void, print, IN, std::ostream &, out, + Properties::NON_VIRTUAL, __void__print__std_ostream_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp index 318001800..a8598e3f6 100644 --- a/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp +++ b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) I_BaseType(osg::Referenced); I_Constructor0(____TangentSpaceGenerator, "", @@ -33,46 +33,57 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) "", ""); I_MethodWithDefaults2(void, generate, IN, osg::Geometry *, geo, , IN, int, normal_map_tex_unit, 0, + Properties::NON_VIRTUAL, __void__generate__osg_Geometry_P1__int, "", ""); I_Method0(osg::Vec4Array *, getTangentArray, + Properties::NON_VIRTUAL, __osg_Vec4Array_P1__getTangentArray, "", ""); I_Method0(const osg::Vec4Array *, getTangentArray, + Properties::NON_VIRTUAL, __C5_osg_Vec4Array_P1__getTangentArray, "", ""); I_Method1(void, setTangentArray, IN, osg::Vec4Array *, array, + Properties::NON_VIRTUAL, __void__setTangentArray__osg_Vec4Array_P1, "", ""); I_Method0(osg::Vec4Array *, getNormalArray, + Properties::NON_VIRTUAL, __osg_Vec4Array_P1__getNormalArray, "", ""); I_Method0(const osg::Vec4Array *, getNormalArray, + Properties::NON_VIRTUAL, __C5_osg_Vec4Array_P1__getNormalArray, "", ""); I_Method1(void, setNormalArray, IN, osg::Vec4Array *, array, + Properties::NON_VIRTUAL, __void__setNormalArray__osg_Vec4Array_P1, "", ""); I_Method0(osg::Vec4Array *, getBinormalArray, + Properties::NON_VIRTUAL, __osg_Vec4Array_P1__getBinormalArray, "", ""); I_Method0(const osg::Vec4Array *, getBinormalArray, + Properties::NON_VIRTUAL, __C5_osg_Vec4Array_P1__getBinormalArray, "", ""); I_Method1(void, setBinormalArray, IN, osg::Vec4Array *, array, + Properties::NON_VIRTUAL, __void__setBinormalArray__osg_Vec4Array_P1, "", ""); I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, __osg_IndexArray_P1__getIndices, "", ""); diff --git a/src/osgWrappers/osgUtil/Tessellator.cpp b/src/osgWrappers/osgUtil/Tessellator.cpp index 9ceb3ebb2..4f379561c 100644 --- a/src/osgWrappers/osgUtil/Tessellator.cpp +++ b/src/osgWrappers/osgUtil/Tessellator.cpp @@ -40,72 +40,88 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::TessellationType) I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_POLYGONS); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Tessellator) I_BaseType(osg::Referenced); I_Constructor0(____Tessellator, "", ""); I_Method1(void, setBoundaryOnly, IN, const bool, tt, + Properties::NON_VIRTUAL, __void__setBoundaryOnly__C5_bool, "Set and get tessellation request boundary only on/off. ", ""); I_Method0(const bool, getBoundaryOnly, + Properties::NON_VIRTUAL, __C5_bool__getBoundaryOnly, "", ""); I_Method1(void, setWindingType, IN, const osgUtil::Tessellator::WindingType, wt, + Properties::NON_VIRTUAL, __void__setWindingType__C5_WindingType, "Set and get tessellation windong rule. ", ""); I_Method0(const osgUtil::Tessellator::WindingType, getWindingType, + Properties::NON_VIRTUAL, __C5_WindingType__getWindingType, "", ""); I_Method1(void, setTessellationType, IN, const osgUtil::Tessellator::TessellationType, tt, + Properties::NON_VIRTUAL, __void__setTessellationType__C5_TessellationType, "Set and get tessellation type. ", ""); I_Method0(const osgUtil::Tessellator::TessellationType, getTessellationType, + Properties::NON_VIRTUAL, __C5_TessellationType__getTessellationType, "", ""); I_Method1(void, retessellatePolygons, IN, osg::Geometry &, cxgeom, + Properties::NON_VIRTUAL, __void__retessellatePolygons__osg_Geometry_R1, "Change the contours lists of the geometry into tessellated primitives (the list of primitives in the original geometry is stored in the Tessellator for possible re-use. ", "The name remains retessellatePolygons although it now handles trifans, strips, quads etc. as well as Polygons so as to not break old codes relying on this function name. "); I_Method1(void, setTessellationNormal, IN, const osg::Vec3, norm, + Properties::NON_VIRTUAL, __void__setTessellationNormal__C5_osg_Vec3, "Define the normal to the tessellated polygon - this provides a hint how to tessellate the contours; see gluTessNormal in red book or man pages. ", "GWM July 2005. Can improve teselation \"For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.\""); I_Method0(osg::Geometry::PrimitiveSetList, getContours, + Properties::NON_VIRTUAL, __osg_Geometry_PrimitiveSetList__getContours, "", ""); I_Method0(void, beginTessellation, + Properties::NON_VIRTUAL, __void__beginTessellation, "", ""); I_Method0(void, beginContour, + Properties::NON_VIRTUAL, __void__beginContour, "", ""); I_Method1(void, addVertex, IN, osg::Vec3 *, vertex, + Properties::NON_VIRTUAL, __void__addVertex__osg_Vec3_P1, "", ""); I_Method0(void, endContour, + Properties::NON_VIRTUAL, __void__endContour, "", ""); I_Method0(void, endTessellation, + Properties::NON_VIRTUAL, __void__endTessellation, "", ""); I_Method0(osgUtil::Tessellator::PrimList &, getPrimList, + Properties::NON_VIRTUAL, __PrimList_R1__getPrimList, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); @@ -131,9 +147,10 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::Prim::VecList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator::Prim) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Tessellator::Prim) I_BaseType(osg::Referenced); I_Constructor1(IN, GLenum, mode, + Properties::NON_EXPLICIT, ____Prim__GLenum, "", ""); @@ -146,26 +163,32 @@ BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Tessellator::Prim >) "", ""); I_Constructor1(IN, osgUtil::Tessellator::Prim *, ptr, + Properties::NON_EXPLICIT, ____ref_ptr__T_P1, "", ""); I_Constructor1(IN, const osg::ref_ptr< osgUtil::Tessellator::Prim > &, rp, + Properties::NON_EXPLICIT, ____ref_ptr__C5_ref_ptr_R1, "", ""); I_Method0(osgUtil::Tessellator::Prim *, get, + Properties::NON_VIRTUAL, __T_P1__get, "", ""); I_Method0(bool, valid, + Properties::NON_VIRTUAL, __bool__valid, "", ""); I_Method0(osgUtil::Tessellator::Prim *, release, + Properties::NON_VIRTUAL, __T_P1__release, "", ""); I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Tessellator::Prim > &, rp, + Properties::NON_VIRTUAL, __void__swap__ref_ptr_R1, "", ""); diff --git a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp index a814a8432..859573fd8 100644 --- a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp +++ b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp @@ -23,13 +23,15 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) I_BaseType(osg::Drawable::AttributeFunctor); I_Constructor1(IN, const osg::Matrix &, m, + Properties::NON_EXPLICIT, ____TransformAttributeFunctor__C5_osg_Matrix_R1, "Construct a functor to transform a drawable's vertex and normal attributes by specified matrix. ", ""); I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin, + Properties::VIRTUAL, __void__apply__osg_Drawable_AttributeType__unsigned_int__osg_Vec3_P1, "Do the work of transforming vertex and normal attributes. ", ""); diff --git a/src/osgWrappers/osgUtil/TransformCallback.cpp b/src/osgWrappers/osgUtil/TransformCallback.cpp index 3e9c3fc39..e46b0a5b6 100644 --- a/src/osgWrappers/osgUtil/TransformCallback.cpp +++ b/src/osgWrappers/osgUtil/TransformCallback.cpp @@ -23,13 +23,14 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::TransformCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::TransformCallback) I_BaseType(osg::NodeCallback); I_Constructor3(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, axis, IN, float, angularVelocity, ____TransformCallback__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, "", ""); I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, __void__setPause__bool, "", ""); diff --git a/src/osgWrappers/osgUtil/TriStripVisitor.cpp b/src/osgWrappers/osgUtil/TriStripVisitor.cpp index ccec8bddd..cea3e4ec3 100644 --- a/src/osgWrappers/osgUtil/TriStripVisitor.cpp +++ b/src/osgWrappers/osgUtil/TriStripVisitor.cpp @@ -23,53 +23,65 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, ____TriStripVisitor__Optimizer_P1, "default to traversing all children. ", ""); I_Method1(void, stripify, IN, osg::Geometry &, drawable, + Properties::NON_VIRTUAL, __void__stripify__osg_Geometry_R1, "Convert mesh primitives in Geometry into Tri Strips. ", "Converts all primitive types except points and lines, linestrips which it leaves unchanged."); I_Method0(void, stripify, + Properties::NON_VIRTUAL, __void__stripify, "Stripify (make into strips of tria or quads) the accumulated list of Geometry drawables. ", ""); I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "Accumulate the Geometry drawables to make into strips. ", ""); I_Method1(void, setCacheSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__setCacheSize__unsigned_int, "", ""); I_Method0(unsigned int, getCacheSize, + Properties::NON_VIRTUAL, __unsigned_int__getCacheSize, "", ""); I_Method0(const unsigned int, getCacheSize, + Properties::NON_VIRTUAL, __C5_unsigned_int__getCacheSize, "", ""); I_Method1(void, setMinStripSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, __void__setMinStripSize__unsigned_int, "", ""); I_Method0(unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, __unsigned_int__getMinStripSize, "", ""); I_Method0(const unsigned int, getMinStripSize, + Properties::NON_VIRTUAL, __C5_unsigned_int__getMinStripSize, "", ""); I_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setGenerateFourPointPrimitivesQuads__bool, "", ""); I_Method0(bool, getGenerateFourPointPrimitivesQuads, + Properties::NON_VIRTUAL, __bool__getGenerateFourPointPrimitivesQuads, "", ""); diff --git a/src/osgWrappers/osgUtil/UpdateVisitor.cpp b/src/osgWrappers/osgUtil/UpdateVisitor.cpp index fca502652..3c5efc3a6 100644 --- a/src/osgWrappers/osgUtil/UpdateVisitor.cpp +++ b/src/osgWrappers/osgUtil/UpdateVisitor.cpp @@ -30,52 +30,63 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) I_BaseType(osg::NodeVisitor); I_Constructor0(____UpdateVisitor, "", ""); I_Method0(void, reset, + Properties::VIRTUAL, __void__reset, "Method to call to reset visitor. ", "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, __void__apply__osg_Node_R1, "During traversal each type of node calls its callbacks and its children traversed. ", ""); I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, __void__apply__osg_Geode_R1, "", ""); I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, __void__apply__osg_Billboard_R1, "", ""); I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, __void__apply__osg_LightSource_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, __void__apply__osg_Projection_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, __void__apply__osg_OccluderNode_R1, "", ""); diff --git a/src/osgWrappers/osgViewer/CompositeViewer.cpp b/src/osgWrappers/osgViewer/CompositeViewer.cpp index dd8f06132..01909540e 100644 --- a/src/osgWrappers/osgViewer/CompositeViewer.cpp +++ b/src/osgWrappers/osgViewer/CompositeViewer.cpp @@ -43,184 +43,228 @@ BEGIN_ENUM_REFLECTOR(osgViewer::CompositeViewer::BarrierPosition) I_EnumLabel(osgViewer::CompositeViewer::AfterSwapBuffers); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::CompositeViewer) I_BaseType(osg::Referenced); I_Constructor0(____CompositeViewer, "", ""); I_Method1(void, addView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, __void__addView__osgViewer_View_P1, "", ""); I_Method1(osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, __osgViewer_View_P1__getView__unsigned, "", ""); I_Method1(const osgViewer::View *, getView, IN, unsigned, i, + Properties::NON_VIRTUAL, __C5_osgViewer_View_P1__getView__unsigned, "", ""); I_Method0(unsigned int, getNumViews, + Properties::NON_VIRTUAL, __unsigned_int__getNumViews, "", ""); I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, __bool__isRealized, "Get whether at least of one of this viewers windows are realized. ", ""); I_Method0(void, realize, + Properties::NON_VIRTUAL, __void__realize, "set up windows and associated threads. ", ""); I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, __void__setDone__bool, "", ""); I_Method0(bool, done, + Properties::NON_VIRTUAL, __bool__done, "", ""); I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, __void__setStartTick__osg_Timer_t, "", ""); I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, __osg_Timer_t__getStartTick, "", ""); I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, __void__setReferenceTime__double, "", ""); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, __void__setFrameStamp__osg_FrameStamp_P1, "", ""); I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method1(void, setThreadingModel, IN, osgViewer::CompositeViewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, __void__setThreadingModel__ThreadingModel, "Set the threading model the rendering traversals will use. ", ""); I_Method0(osgViewer::CompositeViewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, __ThreadingModel__getThreadingModel, "Get the threading model the rendering traversals will use. ", ""); I_Method1(void, setEndBarrierPosition, IN, osgViewer::CompositeViewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, __void__setEndBarrierPosition__BarrierPosition, "Set the position of the end barrier. ", "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); I_Method0(osgViewer::CompositeViewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, __BarrierPosition__getEndBarrierPosition, "Get the end barrier position. ", ""); I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, "", ""); I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __C5_osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, __void__setKeyEventSetsDone__int, "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, __int__getKeyEventSetsDone, "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", ""); I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setQuitEventSetsDone__bool, "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", ""); I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, __bool__getQuitEventSetsDone, "", "true if the viewer respond to the QUIT_APPLICATION-event "); I_Method0(int, run, + Properties::VIRTUAL, __int__run, "Execute a main frame loop. ", "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__frame__double, "Render a complete new frame. ", "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__advance__double, "", ""); I_Method0(void, eventTraversal, + Properties::VIRTUAL, __void__eventTraversal, "", ""); I_Method0(void, updateTraversal, + Properties::VIRTUAL, __void__updateTraversal, "", ""); I_Method0(void, renderingTraversals, + Properties::VIRTUAL, __void__renderingTraversals, "", ""); I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCameraWithFocus__osg_Camera_P1, "", ""); I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCameraWithFocus, "", ""); I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCameraWithFocus, "", ""); I_Method0(osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, __osgViewer_View_P1__getViewWithFocus, "", ""); I_Method0(const osgViewer::View *, getViewWithFocus, + Properties::NON_VIRTUAL, __C5_osgViewer_View_P1__getViewWithFocus, "", ""); I_MethodWithDefaults2(void, getContexts, IN, osgViewer::CompositeViewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, __void__getContexts__Contexts_R1__bool, "", ""); I_MethodWithDefaults2(void, getWindows, IN, osgViewer::CompositeViewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, __void__getWindows__Windows_R1__bool, "", ""); I_MethodWithDefaults2(void, getScenes, IN, osgViewer::CompositeViewer::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, __void__getScenes__Scenes_R1__bool, "", ""); I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, __void__setRealizeOperation__osg_Operation_P1, "Set the graphics operation to call on realization of the viewers graphics windows. ", ""); I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, __osg_Operation_P1__getRealizeOperation, "Get the graphics operation to call on realization of the viewers graphics windows. ", ""); I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, __void__stopThreading, "Stop any threads begin run by viewer. ", ""); I_Method0(void, startThreading, + Properties::NON_VIRTUAL, __void__startThreading, "Start any threads required by the viewer, as per viewers ThreadingModel. ", ""); I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, __void__setUpRenderingSupport, "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", ""); diff --git a/src/osgWrappers/osgViewer/GraphicsWindow.cpp b/src/osgWrappers/osgViewer/GraphicsWindow.cpp index 75aed9b2b..ccdbaf5a1 100644 --- a/src/osgWrappers/osgViewer/GraphicsWindow.cpp +++ b/src/osgWrappers/osgViewer/GraphicsWindow.cpp @@ -29,82 +29,102 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) "", ""); I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, "", ""); I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __C5_osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method0(void, checkEvents, + Properties::VIRTUAL, __void__checkEvents, "", ""); I_Method1(void, setWindowDecoration, IN, bool, x, + Properties::VIRTUAL, __void__setWindowDecoration__bool, "Set Window decoration. ", ""); I_Method0(void, grabFocus, + Properties::VIRTUAL, __void__grabFocus, "Get focus. ", ""); I_Method0(void, grabFocusIfPointerInWindow, + Properties::VIRTUAL, __void__grabFocusIfPointerInWindow, "Get focus on if the pointer is in this window. ", ""); I_Method1(void, useCursor, IN, bool, x, + Properties::VIRTUAL, __void__useCursor__bool, "Switch on/off the cursor. ", ""); I_Method0(bool, valid, + Properties::VIRTUAL, __bool__valid, "Return whether a valid and usable GraphicsContext has been created. ", ""); I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, __bool__realizeImplementation, "Realise the GraphicsContext implementation, Pure virtual - must be implemented by concrate implementations of GraphicsContext. ", ""); I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __void__closeImplementation, "Close the graphics context implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, __bool__makeCurrentImplementation, "Make this graphics context current implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method1(bool, makeContextCurrentImplementation, IN, osg::GraphicsContext *, x, + Properties::VIRTUAL, __bool__makeContextCurrentImplementation__GraphicsContext_P1, "Make this graphics context current with specified read context implementation. ", "Pure virtual - must be implemented by concrate implementations of GraphicsContext. "); I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, __bool__releaseContextImplementation, "Release the graphics context. ", ""); I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, x, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __void__swapBuffersImplementation, "Swap the front and back buffers implementation. ", "Pure virtual - must be implemented by Concrate implementations of GraphicsContext. "); I_Method0(void, requestRedraw, + Properties::VIRTUAL, __void__requestRedraw, "requestRedraw() requests a single redraw. ", ""); I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, x, true, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __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."); diff --git a/src/osgWrappers/osgViewer/HelpHandler.cpp b/src/osgWrappers/osgViewer/HelpHandler.cpp index 631a980e7..dbeb29488 100644 --- a/src/osgWrappers/osgViewer/HelpHandler.cpp +++ b/src/osgWrappers/osgViewer/HelpHandler.cpp @@ -23,37 +23,45 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::HelpHandler) I_BaseType(osgGA::GUIEventHandler); I_ConstructorWithDefaults1(IN, osg::ApplicationUsage *, au, 0, + Properties::NON_EXPLICIT, ____HelpHandler__osg_ApplicationUsage_P1, "", ""); I_Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au, + Properties::NON_VIRTUAL, __void__setApplicationUsage__osg_ApplicationUsage_P1, "", ""); I_Method0(osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __osg_ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method0(const osg::ApplicationUsage *, getApplicationUsage, + Properties::NON_VIRTUAL, __C5_osg_ApplicationUsage_P1__getApplicationUsage, "", ""); I_Method1(void, setKeyEventTogglesOnScreenHelp, IN, int, key, + Properties::NON_VIRTUAL, __void__setKeyEventTogglesOnScreenHelp__int, "", ""); I_Method0(int, getKeyEventTogglesOnScreenHelp, + Properties::NON_VIRTUAL, __int__getKeyEventTogglesOnScreenHelp, "", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "deprecated, Handle events, return true if handled, false otherwise. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); diff --git a/src/osgWrappers/osgViewer/Scene.cpp b/src/osgWrappers/osgViewer/Scene.cpp index fa2ab976d..90be2349c 100644 --- a/src/osgWrappers/osgViewer/Scene.cpp +++ b/src/osgWrappers/osgViewer/Scene.cpp @@ -23,56 +23,68 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgViewer::Scene) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::Scene) I_VirtualBaseType(osg::Referenced); I_Constructor0(____Scene, "", ""); I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setSceneData__osg_Node_P1, "", ""); I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __osg_Node_P1__getSceneData, "", ""); I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getSceneData, "", ""); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, __void__setFrameStamp__osg_FrameStamp_P1, "", ""); I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, __void__setDatabasePager__osgDB_DatabasePager_P1, "", ""); I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, __osgDB_DatabasePager_P1__getDatabasePager, "", ""); I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, __C5_osgDB_DatabasePager_P1__getDatabasePager, "", ""); I_Method0(void, frameAdvance, + Properties::VIRTUAL, __void__frameAdvance, "", ""); I_Method0(void, frameUpdateTraversal, + Properties::VIRTUAL, __void__frameUpdateTraversal, "", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "", ""); diff --git a/src/osgWrappers/osgViewer/SimpleViewer.cpp b/src/osgWrappers/osgViewer/SimpleViewer.cpp index 577774814..3fd5cc7bb 100644 --- a/src/osgWrappers/osgViewer/SimpleViewer.cpp +++ b/src/osgWrappers/osgViewer/SimpleViewer.cpp @@ -34,98 +34,122 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::SimpleViewer) "", ""); I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::NON_VIRTUAL, __void__setSceneData__osg_Node_P1, "", ""); I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __osg_Node_P1__getSceneData, "", ""); I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getSceneData, "", ""); I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, __void__setDatabasePager__osgDB_DatabasePager_P1, "", ""); I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, __osgDB_DatabasePager_P1__getDatabasePager, "", ""); I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, __C5_osgDB_DatabasePager_P1__getDatabasePager, "", ""); I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCamera, "", ""); I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCamera, "", ""); I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, __void__setCameraManipulator__osgGA_MatrixManipulator_P1, "", ""); I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, __osgGA_MatrixManipulator_P1__getCameraManipulator, "", ""); I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, "", ""); I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, __void__addEventHandler__osgGA_GUIEventHandler_P1, "", ""); I_Method0(osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, __EventHandlers_R1__getEventHandlers, "", ""); I_Method0(const osgViewer::SimpleViewer::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, __C5_EventHandlers_R1__getEventHandlers, "", ""); I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__frame__double, "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_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__advance__double, "", ""); I_Method0(void, eventTraversal, + Properties::VIRTUAL, __void__eventTraversal, "", ""); I_Method0(void, updateTraversal, + Properties::VIRTUAL, __void__updateTraversal, "", ""); I_Method0(void, renderingTraversal, + Properties::VIRTUAL, __void__renderingTraversal, "", ""); I_Method0(void, releaseAllGLObjects, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __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(osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, __osgUtil_SceneView_P1__getSceneView, "", ""); I_Method0(const osgUtil::SceneView *, getSceneView, + Properties::NON_VIRTUAL, __C5_osgUtil_SceneView_P1__getSceneView, "", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "", ""); diff --git a/src/osgWrappers/osgViewer/StatsHandler.cpp b/src/osgWrappers/osgViewer/StatsHandler.cpp index 9a775e98d..50a773b1a 100644 --- a/src/osgWrappers/osgViewer/StatsHandler.cpp +++ b/src/osgWrappers/osgViewer/StatsHandler.cpp @@ -31,36 +31,43 @@ BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) I_EnumLabel(osgViewer::StatsHandler::LAST); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::StatsHandler) I_BaseType(osgGA::GUIEventHandler); I_Constructor0(____StatsHandler, "", ""); I_Method1(void, setKeyEventTogglesOnScreenStats, IN, int, key, + Properties::NON_VIRTUAL, __void__setKeyEventTogglesOnScreenStats__int, "", ""); I_Method0(int, getKeyEventTogglesOnScreenStats, + Properties::NON_VIRTUAL, __int__getKeyEventTogglesOnScreenStats, "", ""); I_Method1(void, setKeyEventPrintsOutStats, IN, int, key, + Properties::NON_VIRTUAL, __void__setKeyEventPrintsOutStats__int, "", ""); I_Method0(int, getKeyEventPrintsOutStats, + Properties::NON_VIRTUAL, __int__getKeyEventPrintsOutStats, "", ""); I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, "deprecated, Handle events, return true if handled, false otherwise. ", ""); I_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, __double__getBlockMultiplier, "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this manipulator. ", ""); diff --git a/src/osgWrappers/osgViewer/View.cpp b/src/osgWrappers/osgViewer/View.cpp index bfb0de8ba..4891d3e55 100644 --- a/src/osgWrappers/osgViewer/View.cpp +++ b/src/osgWrappers/osgViewer/View.cpp @@ -29,29 +29,35 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) I_BaseType(osg::State::DynamicObjectRenderingCompletedCallback); I_Constructor1(IN, unsigned, int, + Properties::NON_EXPLICIT, ____EndOfDynamicDrawBlock__unsigned, "", ""); I_Method1(void, completed, IN, osg::State *, state, + Properties::VIRTUAL, __void__completed__osg_State_P1, "", ""); I_Method0(void, block, + Properties::NON_VIRTUAL, __void__block, "", ""); I_Method0(void, reset, + Properties::NON_VIRTUAL, __void__reset, "", ""); I_Method0(void, release, + Properties::NON_VIRTUAL, __void__release, "", ""); I_Method1(void, setNumOfBlocks, IN, unsigned int, blockCount, + Properties::NON_VIRTUAL, __void__setNumOfBlocks__unsigned_int, "", ""); @@ -62,121 +68,149 @@ END_REFLECTOR TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers); -BEGIN_OBJECT_REFLECTOR(osgViewer::View) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::View) I_BaseType(osg::View); I_BaseType(osgGA::GUIActionAdapter); I_Constructor0(____View, "", ""); I_Method0(osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, __Scene_P1__getScene, "", ""); I_Method0(const osgViewer::Scene *, getScene, + Properties::NON_VIRTUAL, __C5_Scene_P1__getScene, "", ""); I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, __void__setSceneData__osg_Node_P1, "", ""); I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __osg_Node_P1__getSceneData, "", ""); I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, __C5_osg_Node_P1__getSceneData, "", ""); I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, __void__setEventQueue__osgGA_EventQueue_P1, "", ""); I_Method0(osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method0(const osgGA::EventQueue *, getEventQueue, + Properties::NON_VIRTUAL, __C5_osgGA_EventQueue_P1__getEventQueue, "", ""); I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, + Properties::NON_VIRTUAL, __void__setCameraManipulator__osgGA_MatrixManipulator_P1, "", ""); I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, __osgGA_MatrixManipulator_P1__getCameraManipulator, "", ""); I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, "", ""); I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, __void__addEventHandler__osgGA_GUIEventHandler_P1, "", ""); I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, __EventHandlers_R1__getEventHandlers, "", ""); I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, __C5_EventHandlers_R1__getEventHandlers, "", ""); I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, __void__setDisplaySettings__osg_DisplaySettings_P1, "Set the DsplaySettings object associated with this view. ", ""); I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __osg_DisplaySettings_P1__getDisplaySettings, "Set the DsplaySettings object associated with this view. ", ""); I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, __C5_osg_DisplaySettings_P1__getDisplaySettings, "Set the DsplaySettings object associated with this view. ", ""); I_Method0(void, setUpViewAcrossAllScreens, + Properties::NON_VIRTUAL, __void__setUpViewAcrossAllScreens, "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", ""); I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, __void__setUpViewOnSingleScreen__unsigned_int, "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", ""); I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, + Properties::NON_VIRTUAL, __bool__containsCamera__C5_osg_Camera_P1, "Return true if this view contains a specified camera. ", ""); I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", "Also passes back the local window coords for the graphics context associated with the camera passed back. "); I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", ""); I_Method0(void, requestRedraw, + Properties::VIRTUAL, __void__requestRedraw, "requestRedraw() requests a single redraw. ", ""); I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, + Properties::VIRTUAL, __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, + Properties::VIRTUAL, __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_Method0(void, assignSceneDataToCameras, + Properties::NON_VIRTUAL, __void__assignSceneDataToCameras, "", ""); I_Method0(void, init, + Properties::NON_VIRTUAL, __void__init, "", ""); diff --git a/src/osgWrappers/osgViewer/Viewer.cpp b/src/osgWrappers/osgViewer/Viewer.cpp index 4216158bf..efc7aa4b0 100644 --- a/src/osgWrappers/osgViewer/Viewer.cpp +++ b/src/osgWrappers/osgViewer/Viewer.cpp @@ -49,180 +49,223 @@ BEGIN_ENUM_REFLECTOR(osgViewer::Viewer::BarrierPosition) I_EnumLabel(osgViewer::Viewer::AfterSwapBuffers); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::Viewer) I_BaseType(osgViewer::View); I_Constructor0(____Viewer, "", ""); I_Method0(bool, isRealized, + Properties::NON_VIRTUAL, __bool__isRealized, "Get whether at least of one of this viewers windows are realized. ", ""); I_Method0(void, realize, + Properties::NON_VIRTUAL, __void__realize, "set up windows and associated threads. ", ""); I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, __void__setDone__bool, "", ""); I_Method0(bool, done, + Properties::NON_VIRTUAL, __bool__done, "", ""); I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::NON_VIRTUAL, __void__setStartTick__osg_Timer_t, "", ""); I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, __osg_Timer_t__getStartTick, "", ""); I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, __void__setReferenceTime__double, "", ""); I_Method1(void, setFrameStamp, IN, osg::FrameStamp *, frameStamp, + Properties::NON_VIRTUAL, __void__setFrameStamp__osg_FrameStamp_P1, "", ""); I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, __C5_osg_FrameStamp_P1__getFrameStamp, "", ""); I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, __void__setSceneData__osg_Node_P1, "", ""); I_Method1(void, setThreadingModel, IN, osgViewer::Viewer::ThreadingModel, threadingModel, + Properties::NON_VIRTUAL, __void__setThreadingModel__ThreadingModel, "Set the threading model the rendering traversals will use. ", ""); I_Method0(osgViewer::Viewer::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, __ThreadingModel__getThreadingModel, "Get the threading model the rendering traversals will use. ", ""); I_Method1(void, setUseMainThreadForRenderingTraversals, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setUseMainThreadForRenderingTraversals__bool, "Set whether the main thread, calling frame(), should be used for the rendering traversals. ", ""); I_Method0(bool, getUseMainThreadForRenderingTraversals, + Properties::NON_VIRTUAL, __bool__getUseMainThreadForRenderingTraversals, "Get whether the main thread, calling frame(), should be used for the rendering traversals. ", ""); I_Method0(osgViewer::Viewer::ThreadingModel, suggestBestThreadingModel, + Properties::NON_VIRTUAL, __ThreadingModel__suggestBestThreadingModel, "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", ""); I_Method1(void, setEndBarrierPosition, IN, osgViewer::Viewer::BarrierPosition, bp, + Properties::NON_VIRTUAL, __void__setEndBarrierPosition__BarrierPosition, "Set the position of the end barrier. ", "AfterSwapBuffers will may result is slightly higher framerates, by may lead to inconcistent swapping between different windows. BeforeSwapBuffers may lead to slightly lower framerate, but improve consistency in timing of swap buffers, especially important if you are likely to consistently break frame. "); I_Method0(osgViewer::Viewer::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, __BarrierPosition__getEndBarrierPosition, "Get the end barrier position. ", ""); I_Method1(void, setKeyEventSetsDone, IN, int, key, + Properties::NON_VIRTUAL, __void__setKeyEventSetsDone__int, "Set the key event that the viewer checks on each frame to see if the viewer's done flag should be set to signal end of viewers main loop. ", "Default value is Escape (osgGA::GUIEVentAdapter::KEY_Escape). Setting to 0 switches off the feature. "); I_Method0(int, getKeyEventSetsDone, + Properties::NON_VIRTUAL, __int__getKeyEventSetsDone, "get the key event that the viewer checks on each frame to see if the viewer's done flag. ", ""); I_Method1(void, setQuitEventSetsDone, IN, bool, flag, + Properties::NON_VIRTUAL, __void__setQuitEventSetsDone__bool, "if the flag is true, the viewer set its done flag when a QUIT_APPLICATION is received, false disables this feature ", ""); I_Method0(bool, getQuitEventSetsDone, + Properties::NON_VIRTUAL, __bool__getQuitEventSetsDone, "", "true if the viewer respond to the QUIT_APPLICATION-event "); I_Method0(int, run, + Properties::VIRTUAL, __int__run, "Execute a main frame loop. ", "Equivialant to while (!viewer.done()) viewer.frame(); Also calls realize() if the viewer is not already realized, and installs trackball manipulator if one is not already assigned."); I_MethodWithDefaults1(void, frame, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__frame__double, "Render a complete new frame. ", "Calls advance(), eventTraversal(), updateTraversal(), renderingTraversals(). "); I_MethodWithDefaults1(void, advance, IN, double, simulationTime, USE_REFERENCE_TIME, + Properties::VIRTUAL, __void__advance__double, "", ""); I_Method0(void, eventTraversal, + Properties::VIRTUAL, __void__eventTraversal, "", ""); I_Method0(void, updateTraversal, + Properties::VIRTUAL, __void__updateTraversal, "", ""); I_Method0(void, renderingTraversals, + Properties::VIRTUAL, __void__renderingTraversals, "", ""); I_Method1(void, setCameraWithFocus, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, __void__setCameraWithFocus__osg_Camera_P1, "", ""); I_Method0(osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, __osg_Camera_P1__getCameraWithFocus, "", ""); I_Method0(const osg::Camera *, getCameraWithFocus, + Properties::NON_VIRTUAL, __C5_osg_Camera_P1__getCameraWithFocus, "", ""); I_MethodWithDefaults2(void, getContexts, IN, osgViewer::Viewer::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, __void__getContexts__Contexts_R1__bool, "", ""); I_MethodWithDefaults2(void, getWindows, IN, osgViewer::Viewer::Windows &, windows, , IN, bool, onlyValid, true, + Properties::NON_VIRTUAL, __void__getWindows__Windows_R1__bool, "", ""); I_MethodWithDefaults2(void, getCameras, IN, osgViewer::Viewer::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, __void__getCameras__Cameras_R1__bool, "", ""); I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::Viewer::Threads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, __void__getAllThreads__Threads_R1__bool, "", ""); I_MethodWithDefaults2(void, getOperationsThreads, IN, osgViewer::Viewer::OperationsThreads &, threads, , IN, bool, onlyActive, true, + Properties::NON_VIRTUAL, __void__getOperationsThreads__OperationsThreads_R1__bool, "", ""); I_Method1(void, setRealizeOperation, IN, osg::Operation *, op, + Properties::NON_VIRTUAL, __void__setRealizeOperation__osg_Operation_P1, "Set the graphics operation to call on realization of the viewers graphics windows. ", ""); I_Method0(osg::Operation *, getRealizeOperation, + Properties::NON_VIRTUAL, __osg_Operation_P1__getRealizeOperation, "Get the graphics operation to call on realization of the viewers graphics windows. ", ""); I_Method0(void, setUpThreading, + Properties::NON_VIRTUAL, __void__setUpThreading, "Set up the threading and processor affinity as per the viewers threading model. ", ""); I_Method0(void, stopThreading, + Properties::NON_VIRTUAL, __void__stopThreading, "Stop any threads begin run by viewer. ", ""); I_Method0(void, startThreading, + Properties::NON_VIRTUAL, __void__startThreading, "Start any threads required by the viewer. ", ""); I_Method0(void, setUpRenderingSupport, + Properties::NON_VIRTUAL, __void__setUpRenderingSupport, "Set up the Operations to render the various viewer cameras on the viewers graphics windows. ", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, __void__getUsage__osg_ApplicationUsage_R1, "Get the keyboard and mouse usage of this viewer. ", "");