From 52f398aba26c688af93111740e38ed4f8f4df917 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 18 Jan 2010 19:56:16 +0000 Subject: [PATCH] Regenerated introspection wrappers in their new location --- src/osgWrappers/introspection/CMakeLists.txt | 2 +- .../introspection/OpenThreads/Atomic.cpp | 22 + .../introspection/OpenThreads/Barrier.cpp | 56 + .../introspection/OpenThreads/Block.cpp | 104 ++ .../introspection/OpenThreads/Condition.cpp | 50 + .../introspection/OpenThreads/Mutex.cpp | 44 + .../OpenThreads/ReadWriteMutex.cpp | 72 + .../OpenThreads/ReentrantMutex.cpp | 45 + .../introspection/OpenThreads/Thread.cpp | 211 +++ .../introspection/osg/AlphaFunc.cpp | 133 ++ .../introspection/osg/AnimationPath.cpp | 432 ++++++ .../introspection/osg/ApplicationUsage.cpp | 204 +++ .../introspection/osg/ArgumentParser.cpp | 315 ++++ src/osgWrappers/introspection/osg/Array.cpp | 708 +++++++++ .../introspection/osg/ArrayDispatchers.cpp | 197 +++ .../introspection/osg/AudioStream.cpp | 152 ++ .../introspection/osg/AutoTransform.cpp | 244 +++ .../introspection/osg/Billboard.cpp | 184 +++ .../introspection/osg/BlendColor.cpp | 118 ++ .../introspection/osg/BlendEquation.cpp | 154 ++ .../introspection/osg/BlendFunc.cpp | 209 +++ .../introspection/osg/BoundingBox.cpp | 32 + .../introspection/osg/BoundingSphere.cpp | 32 + .../introspection/osg/BufferObject.cpp | 1154 ++++++++++++++ src/osgWrappers/introspection/osg/Camera.cpp | 854 +++++++++++ .../introspection/osg/CameraNode.cpp | 24 + .../introspection/osg/CameraView.cpp | 152 ++ .../introspection/osg/ClampColor.cpp | 132 ++ .../introspection/osg/ClearNode.cpp | 107 ++ .../introspection/osg/ClipNode.cpp | 213 +++ .../introspection/osg/ClipPlane.cpp | 149 ++ .../osg/ClusterCullingCallback.cpp | 149 ++ .../osg/CollectOccludersVisitor.cpp | 181 +++ .../introspection/osg/ColorMask.cpp | 142 ++ .../introspection/osg/ColorMatrix.cpp | 100 ++ .../osg/ComputeBoundsVisitor.cpp | 103 ++ .../osg/ConvexPlanarOccluder.cpp | 107 ++ .../introspection/osg/ConvexPlanarPolygon.cpp | 55 + .../osg/CoordinateSystemNode.cpp | 239 +++ src/osgWrappers/introspection/osg/CopyOp.cpp | 65 + .../introspection/osg/CullFace.cpp | 108 ++ .../introspection/osg/CullSettings.cpp | 358 +++++ .../introspection/osg/CullStack.cpp | 322 ++++ .../introspection/osg/CullingSet.cpp | 273 ++++ .../introspection/osg/DeleteHandler.cpp | 91 ++ src/osgWrappers/introspection/osg/Depth.cpp | 156 ++ .../introspection/osg/DisplaySettings.cpp | 593 ++++++++ .../introspection/osg/DrawPixels.cpp | 134 ++ .../introspection/osg/Drawable.cpp | 908 +++++++++++ src/osgWrappers/introspection/osg/Endian.cpp | 28 + src/osgWrappers/introspection/osg/Fog.cpp | 178 +++ .../introspection/osg/FragmentProgram.cpp | 205 +++ .../introspection/osg/FrameBufferObject.cpp | 454 ++++++ .../introspection/osg/FrameStamp.cpp | 87 ++ .../introspection/osg/FrontFace.cpp | 102 ++ .../introspection/osg/GL2Extensions.cpp | 22 + .../introspection/osg/GLBeginEndAdapter.cpp | 289 ++++ src/osgWrappers/introspection/osg/Geode.cpp | 227 +++ .../introspection/osg/Geometry.cpp | 1010 +++++++++++++ .../introspection/osg/GraphicsContext.cpp | 624 ++++++++ .../introspection/osg/GraphicsThread.cpp | 140 ++ src/osgWrappers/introspection/osg/Group.cpp | 231 +++ src/osgWrappers/introspection/osg/Hint.cpp | 119 ++ src/osgWrappers/introspection/osg/Image.cpp | 516 +++++++ .../introspection/osg/ImageSequence.cpp | 319 ++++ .../introspection/osg/ImageStream.cpp | 251 ++++ src/osgWrappers/introspection/osg/KdTree.cpp | 265 ++++ src/osgWrappers/introspection/osg/LOD.cpp | 203 +++ src/osgWrappers/introspection/osg/Light.cpp | 255 ++++ .../introspection/osg/LightModel.cpp | 140 ++ .../introspection/osg/LightSource.cpp | 134 ++ .../introspection/osg/LineSegment.cpp | 128 ++ .../introspection/osg/LineStipple.cpp | 116 ++ .../introspection/osg/LineWidth.cpp | 96 ++ src/osgWrappers/introspection/osg/LogicOp.cpp | 124 ++ .../introspection/osg/Material.cpp | 237 +++ src/osgWrappers/introspection/osg/Matrix.cpp | 26 + .../introspection/osg/MatrixTransform.cpp | 124 ++ src/osgWrappers/introspection/osg/Matrixd.cpp | 603 ++++++++ src/osgWrappers/introspection/osg/Matrixf.cpp | 603 ++++++++ .../introspection/osg/Multisample.cpp | 140 ++ src/osgWrappers/introspection/osg/Node.cpp | 541 +++++++ .../introspection/osg/NodeCallback.cpp | 97 ++ .../introspection/osg/NodeTrackerCallback.cpp | 118 ++ .../introspection/osg/NodeVisitor.cpp | 494 ++++++ src/osgWrappers/introspection/osg/Notify.cpp | 59 + src/osgWrappers/introspection/osg/Object.cpp | 138 ++ .../introspection/osg/OccluderNode.cpp | 92 ++ .../introspection/osg/OcclusionQueryNode.cpp | 206 +++ .../introspection/osg/OperationThread.cpp | 271 ++++ .../introspection/osg/PagedLOD.cpp | 324 ++++ src/osgWrappers/introspection/osg/Plane.cpp | 214 +++ src/osgWrappers/introspection/osg/Point.cpp | 165 ++ .../introspection/osg/PointSprite.cpp | 119 ++ .../introspection/osg/PolygonMode.cpp | 121 ++ .../introspection/osg/PolygonOffset.cpp | 140 ++ .../introspection/osg/PolygonStipple.cpp | 104 ++ .../introspection/osg/Polytope.cpp | 282 ++++ .../osg/PositionAttitudeTransform.cpp | 142 ++ .../introspection/osg/PrimitiveSet.cpp | 541 +++++++ src/osgWrappers/introspection/osg/Program.cpp | 352 +++++ .../introspection/osg/Projection.cpp | 96 ++ .../introspection/osg/ProxyNode.cpp | 234 +++ src/osgWrappers/introspection/osg/Quat.cpp | 241 +++ .../introspection/osg/Referenced.cpp | 119 ++ .../introspection/osg/RenderInfo.cpp | 122 ++ src/osgWrappers/introspection/osg/Scissor.cpp | 140 ++ .../introspection/osg/Sequence.cpp | 324 ++++ .../introspection/osg/ShadeModel.cpp | 102 ++ src/osgWrappers/introspection/osg/Shader.cpp | 290 ++++ .../osg/ShadowVolumeOccluder.cpp | 145 ++ src/osgWrappers/introspection/osg/Shape.cpp | 1326 +++++++++++++++++ .../introspection/osg/ShapeDrawable.cpp | 310 ++++ src/osgWrappers/introspection/osg/State.cpp | 1152 ++++++++++++++ .../introspection/osg/StateAttribute.cpp | 311 ++++ .../osg/StateAttributeCallback.cpp | 63 + .../introspection/osg/StateSet.cpp | 807 ++++++++++ src/osgWrappers/introspection/osg/Stats.cpp | 156 ++ src/osgWrappers/introspection/osg/Stencil.cpp | 211 +++ .../introspection/osg/StencilTwoSided.cpp | 232 +++ src/osgWrappers/introspection/osg/Switch.cpp | 190 +++ src/osgWrappers/introspection/osg/TexEnv.cpp | 129 ++ .../introspection/osg/TexEnvCombine.cpp | 370 +++++ .../introspection/osg/TexEnvFilter.cpp | 101 ++ src/osgWrappers/introspection/osg/TexGen.cpp | 150 ++ .../introspection/osg/TexGenNode.cpp | 131 ++ src/osgWrappers/introspection/osg/TexMat.cpp | 123 ++ src/osgWrappers/introspection/osg/Texture.cpp | 1226 +++++++++++++++ .../introspection/osg/Texture1D.cpp | 244 +++ .../introspection/osg/Texture2D.cpp | 248 +++ .../introspection/osg/Texture2DArray.cpp | 252 ++++ .../introspection/osg/Texture3D.cpp | 273 ++++ .../introspection/osg/TextureCubeMap.cpp | 289 ++++ .../introspection/osg/TextureRectangle.cpp | 247 +++ src/osgWrappers/introspection/osg/Timer.cpp | 140 ++ .../introspection/osg/TransferFunction.cpp | 195 +++ .../introspection/osg/Transform.cpp | 136 ++ src/osgWrappers/introspection/osg/Uniform.cpp | 1008 +++++++++++++ src/osgWrappers/introspection/osg/Vec2.cpp | 24 + src/osgWrappers/introspection/osg/Vec2b.cpp | 99 ++ src/osgWrappers/introspection/osg/Vec2d.cpp | 105 ++ src/osgWrappers/introspection/osg/Vec2f.cpp | 99 ++ src/osgWrappers/introspection/osg/Vec2s.cpp | 95 ++ src/osgWrappers/introspection/osg/Vec3.cpp | 24 + src/osgWrappers/introspection/osg/Vec3b.cpp | 119 ++ src/osgWrappers/introspection/osg/Vec3d.cpp | 125 ++ src/osgWrappers/introspection/osg/Vec3f.cpp | 119 ++ src/osgWrappers/introspection/osg/Vec3s.cpp | 115 ++ src/osgWrappers/introspection/osg/Vec4.cpp | 24 + src/osgWrappers/introspection/osg/Vec4b.cpp | 134 ++ src/osgWrappers/introspection/osg/Vec4d.cpp | 180 +++ src/osgWrappers/introspection/osg/Vec4f.cpp | 174 +++ src/osgWrappers/introspection/osg/Vec4s.cpp | 130 ++ src/osgWrappers/introspection/osg/Vec4ub.cpp | 94 ++ .../introspection/osg/VertexProgram.cpp | 201 +++ src/osgWrappers/introspection/osg/View.cpp | 249 ++++ .../introspection/osg/Viewport.cpp | 148 ++ .../introspection/osg/observer_ptr.cpp | 34 + .../introspection/osgAnimation/Action.cpp | 257 ++++ .../osgAnimation/ActionAnimation.cpp | 86 ++ .../osgAnimation/ActionBlendIn.cpp | 93 ++ .../osgAnimation/ActionBlendOut.cpp | 93 ++ .../osgAnimation/ActionCallback.cpp | 49 + .../osgAnimation/ActionStripAnimation.cpp | 140 ++ .../osgAnimation/ActionVisitor.cpp | 246 +++ .../introspection/osgAnimation/Animation.cpp | 212 +++ .../osgAnimation/AnimationManagerBase.cpp | 158 ++ .../introspection/osgAnimation/Assert.cpp | 39 + .../osgAnimation/BasicAnimationManager.cpp | 98 ++ .../introspection/osgAnimation/Bone.cpp | 343 +++++ .../osgAnimation/BoneMapVisitor.cpp | 61 + .../introspection/osgAnimation/Channel.cpp | 203 +++ .../osgAnimation/ComputeBindMatrixVisitor.cpp | 42 + .../osgAnimation/CubicBezier.cpp | 32 + .../introspection/osgAnimation/EaseMotion.cpp | 607 ++++++++ .../FindParentAnimationManagerVisitor.cpp | 45 + .../osgAnimation/FrameAction.cpp | 67 + .../osgAnimation/Interpolator.cpp | 60 + .../introspection/osgAnimation/Keyframe.cpp | 103 ++ .../osgAnimation/LinkVisitor.cpp | 86 ++ .../osgAnimation/MorphGeometry.cpp | 250 ++++ .../osgAnimation/RigGeometry.cpp | 178 +++ .../osgAnimation/RigTransform.cpp | 46 + .../osgAnimation/RigTransformHardware.cpp | 242 +++ .../osgAnimation/RigTransformSoftware.cpp | 149 ++ .../introspection/osgAnimation/Sampler.cpp | 1184 +++++++++++++++ .../introspection/osgAnimation/Skeleton.cpp | 120 ++ .../osgAnimation/StatsHandler.cpp | 145 ++ .../osgAnimation/StatsVisitor.cpp | 115 ++ .../introspection/osgAnimation/Target.cpp | 67 + .../introspection/osgAnimation/Timeline.cpp | 247 +++ .../osgAnimation/TimelineAnimationManager.cpp | 86 ++ .../osgAnimation/UpdateCallback.cpp | 184 +++ .../introspection/osgAnimation/Vec3Packed.cpp | 70 + .../osgAnimation/VertexInfluence.cpp | 210 +++ .../introspection/osgDB/Archive.cpp | 116 ++ .../introspection/osgDB/AuthenticationMap.cpp | 62 + .../introspection/osgDB/Callbacks.cpp | 152 ++ .../introspection/osgDB/DatabasePager.cpp | 681 +++++++++ .../introspection/osgDB/DatabaseRevisions.cpp | 351 +++++ .../introspection/osgDB/DotOsgWrapper.cpp | 100 ++ .../introspection/osgDB/DynamicLibrary.cpp | 76 + src/osgWrappers/introspection/osgDB/Field.cpp | 233 +++ .../introspection/osgDB/FieldReader.cpp | 68 + .../osgDB/FieldReaderIterator.cpp | 200 +++ .../introspection/osgDB/FileCache.cpp | 187 +++ .../introspection/osgDB/FileUtils.cpp | 31 + .../introspection/osgDB/ImageOptions.cpp | 144 ++ .../introspection/osgDB/ImagePager.cpp | 137 ++ src/osgWrappers/introspection/osgDB/Input.cpp | 214 +++ .../introspection/osgDB/Options.cpp | 275 ++++ .../introspection/osgDB/Output.cpp | 32 + .../introspection/osgDB/ParameterOutput.cpp | 51 + .../introspection/osgDB/PluginQuery.cpp | 84 ++ .../introspection/osgDB/ReaderWriter.cpp | 495 ++++++ .../introspection/osgDB/Registry.cpp | 790 ++++++++++ .../osgDB/SharedStateManager.cpp | 140 ++ .../introspection/osgDB/XmlParser.cpp | 204 +++ .../osgFX/AnisotropicLighting.cpp | 120 ++ .../introspection/osgFX/BumpMapping.cpp | 186 +++ .../introspection/osgFX/Cartoon.cpp | 128 ++ .../introspection/osgFX/Effect.cpp | 154 ++ .../osgFX/MultiTextureControl.cpp | 95 ++ .../introspection/osgFX/Outline.cpp | 115 ++ .../introspection/osgFX/Registry.cpp | 61 + .../introspection/osgFX/Scribe.cpp | 115 ++ .../osgFX/SpecularHighlights.cpp | 141 ++ .../introspection/osgFX/Technique.cpp | 109 ++ .../introspection/osgFX/Validator.cpp | 97 ++ .../osgGA/AnimationPathManipulator.cpp | 146 ++ .../osgGA/CameraViewSwitchManipulator.cpp | 150 ++ .../introspection/osgGA/DriveManipulator.cpp | 184 +++ .../introspection/osgGA/EventQueue.cpp | 338 +++++ .../introspection/osgGA/EventVisitor.cpp | 193 +++ .../introspection/osgGA/FlightManipulator.cpp | 187 +++ .../introspection/osgGA/GUIActionAdapter.cpp | 50 + .../introspection/osgGA/GUIEventAdapter.cpp | 615 ++++++++ .../introspection/osgGA/GUIEventHandler.cpp | 123 ++ .../osgGA/KeySwitchMatrixManipulator.cpp | 290 ++++ .../introspection/osgGA/MatrixManipulator.cpp | 246 +++ .../osgGA/NodeTrackerManipulator.cpp | 287 ++++ .../osgGA/SphericalManipulator.cpp | 296 ++++ .../osgGA/StateSetManipulator.cpp | 204 +++ .../osgGA/TerrainManipulator.cpp | 213 +++ .../osgGA/TrackballManipulator.cpp | 267 ++++ .../introspection/osgGA/UFOManipulator.cpp | 227 +++ .../osgManipulator/AntiSquish.cpp | 93 ++ .../introspection/osgManipulator/Command.cpp | 443 ++++++ .../osgManipulator/CommandManager.cpp | 97 ++ .../osgManipulator/Constraint.cpp | 155 ++ .../introspection/osgManipulator/Dragger.cpp | 677 +++++++++ .../osgManipulator/Projector.cpp | 286 ++++ .../osgManipulator/RotateCylinderDragger.cpp | 86 ++ .../osgManipulator/RotateSphereDragger.cpp | 86 ++ .../osgManipulator/Scale1DDragger.cpp | 160 ++ .../osgManipulator/Scale2DDragger.cpp | 213 +++ .../osgManipulator/ScaleAxisDragger.cpp | 51 + .../osgManipulator/Selection.cpp | 24 + .../osgManipulator/TabBoxDragger.cpp | 60 + .../osgManipulator/TabBoxTrackballDragger.cpp | 51 + .../osgManipulator/TabPlaneDragger.cpp | 68 + .../TabPlaneTrackballDragger.cpp | 60 + .../osgManipulator/TrackballDragger.cpp | 53 + .../osgManipulator/Translate1DDragger.cpp | 99 ++ .../osgManipulator/Translate2DDragger.cpp | 92 ++ .../osgManipulator/TranslateAxisDragger.cpp | 51 + .../osgManipulator/TranslatePlaneDragger.cpp | 86 ++ .../osgParticle/AccelOperator.cpp | 95 ++ .../osgParticle/AngularAccelOperator.cpp | 87 ++ .../introspection/osgParticle/BoxPlacer.cpp | 131 ++ .../osgParticle/CenteredPlacer.cpp | 70 + .../osgParticle/ConnectedParticleSystem.cpp | 104 ++ .../osgParticle/ConstantRateCounter.cpp | 92 ++ .../introspection/osgParticle/Counter.cpp | 56 + .../introspection/osgParticle/Emitter.cpp | 96 ++ .../osgParticle/ExplosionDebrisEffect.cpp | 112 ++ .../osgParticle/ExplosionEffect.cpp | 112 ++ .../introspection/osgParticle/FireEffect.cpp | 112 ++ .../osgParticle/ForceOperator.cpp | 87 ++ .../osgParticle/Interpolator.cpp | 74 + .../osgParticle/LinearInterpolator.cpp | 66 + .../osgParticle/ModularEmitter.cpp | 143 ++ .../osgParticle/ModularProgram.cpp | 99 ++ .../osgParticle/MultiSegmentPlacer.cpp | 115 ++ .../introspection/osgParticle/Operator.cpp | 81 + .../introspection/osgParticle/Particle.cpp | 419 ++++++ .../osgParticle/ParticleEffect.cpp | 271 ++++ .../osgParticle/ParticleProcessor.cpp | 249 ++++ .../osgParticle/ParticleSystem.cpp | 311 ++++ .../osgParticle/ParticleSystemUpdater.cpp | 136 ++ .../introspection/osgParticle/Placer.cpp | 66 + .../introspection/osgParticle/PointPlacer.cpp | 76 + .../osgParticle/PrecipitationEffect.cpp | 473 ++++++ .../introspection/osgParticle/Program.cpp | 69 + .../osgParticle/RadialShooter.cpp | 141 ++ .../osgParticle/RandomRateCounter.cpp | 66 + .../osgParticle/SectorPlacer.cpp | 113 ++ .../osgParticle/SegmentPlacer.cpp | 117 ++ .../introspection/osgParticle/Shooter.cpp | 57 + .../introspection/osgParticle/SmokeEffect.cpp | 112 ++ .../osgParticle/SmokeTrailEffect.cpp | 112 ++ .../osgParticle/VariableRateCounter.cpp | 70 + .../introspection/osgParticle/range.cpp | 165 ++ .../osgPresentation/AnimationMaterial.cpp | 315 ++++ .../osgPresentation/CompileSlideCallback.cpp | 37 + .../osgPresentation/PickEventHandler.cpp | 150 ++ .../osgPresentation/SlideEventHandler.cpp | 677 +++++++++ .../osgPresentation/SlideShowConstructor.cpp | 635 ++++++++ .../osgShadow/ConvexPolyhedron.cpp | 168 +++ .../osgShadow/DebugShadowMap.cpp | 78 + .../LightSpacePerspectiveShadowMap.cpp | 260 ++++ .../osgShadow/MinimalCullBoundsShadowMap.cpp | 65 + .../osgShadow/MinimalDrawBoundsShadowMap.cpp | 65 + .../osgShadow/MinimalShadowMap.cpp | 126 ++ .../osgShadow/OccluderGeometry.cpp | 273 ++++ .../osgShadow/ParallelSplitShadowMap.cpp | 194 +++ .../introspection/osgShadow/ShadowMap.cpp | 269 ++++ .../osgShadow/ShadowTechnique.cpp | 102 ++ .../introspection/osgShadow/ShadowTexture.cpp | 96 ++ .../introspection/osgShadow/ShadowVolume.cpp | 110 ++ .../introspection/osgShadow/ShadowedScene.cpp | 129 ++ .../introspection/osgShadow/SoftShadowMap.cpp | 131 ++ .../osgShadow/StandardShadowMap.cpp | 210 +++ .../ViewDependentShadowTechnique.cpp | 93 ++ .../introspection/osgSim/BlinkSequence.cpp | 174 +++ .../introspection/osgSim/ColorRange.cpp | 51 + .../introspection/osgSim/DOFTransform.cpp | 335 +++++ .../introspection/osgSim/ElevationSlice.cpp | 111 ++ .../osgSim/GeographicLocation.cpp | 79 + .../osgSim/HeightAboveTerrain.cpp | 109 ++ .../introspection/osgSim/Impostor.cpp | 171 +++ .../introspection/osgSim/ImpostorSprite.cpp | 296 ++++ .../osgSim/InsertImpostorsVisitor.cpp | 94 ++ .../introspection/osgSim/LightPoint.cpp | 60 + .../introspection/osgSim/LightPointNode.cpp | 199 +++ .../introspection/osgSim/LightPointSystem.cpp | 94 ++ .../introspection/osgSim/LineOfSight.cpp | 144 ++ .../introspection/osgSim/MultiSwitch.cpp | 202 +++ .../introspection/osgSim/ObjectRecordData.cpp | 77 + .../introspection/osgSim/OverlayNode.cpp | 274 ++++ .../introspection/osgSim/ScalarBar.cpp | 244 +++ .../introspection/osgSim/ScalarsToColors.cpp | 53 + .../introspection/osgSim/Sector.cpp | 428 ++++++ .../introspection/osgSim/ShapeAttribute.cpp | 74 + .../introspection/osgSim/SphereSegment.cpp | 286 ++++ .../introspection/osgSim/VisibilityGroup.cpp | 117 ++ .../introspection/osgTerrain/Export.cpp | 22 + .../osgTerrain/GeometryTechnique.cpp | 187 +++ .../introspection/osgTerrain/Layer.cpp | 1018 +++++++++++++ .../introspection/osgTerrain/Locator.cpp | 196 +++ .../introspection/osgTerrain/Terrain.cpp | 146 ++ .../osgTerrain/TerrainTechnique.cpp | 115 ++ .../introspection/osgTerrain/TerrainTile.cpp | 402 +++++ .../osgTerrain/ValidDataOperator.cpp | 102 ++ .../introspection/osgText/Export.cpp | 22 + .../introspection/osgText/FadeText.cpp | 89 ++ .../introspection/osgText/Font.cpp | 491 ++++++ .../introspection/osgText/Font3D.cpp | 416 ++++++ .../introspection/osgText/KerningType.cpp | 33 + .../introspection/osgText/String.cpp | 107 ++ .../introspection/osgText/Text.cpp | 606 ++++++++ .../introspection/osgText/Text3D.cpp | 245 +++ .../introspection/osgText/TextBase.cpp | 435 ++++++ .../introspection/osgUtil/ConvertVec.cpp | 22 + .../osgUtil/CubeMapGenerator.cpp | 66 + .../introspection/osgUtil/CullVisitor.cpp | 457 ++++++ .../osgUtil/DelaunayTriangulator.cpp | 222 +++ .../osgUtil/DisplayRequirementsVisitor.cpp | 72 + .../osgUtil/DrawElementTypeSimplifier.cpp | 59 + .../introspection/osgUtil/EdgeCollector.cpp | 479 ++++++ .../osgUtil/GLObjectsVisitor.cpp | 142 ++ .../osgUtil/HalfWayMapGenerator.cpp | 43 + .../osgUtil/HighlightMapGenerator.cpp | 44 + .../osgUtil/IncrementalCompileOperation.cpp | 380 +++++ .../osgUtil/IntersectVisitor.cpp | 375 +++++ .../osgUtil/IntersectionVisitor.cpp | 540 +++++++ .../osgUtil/LineSegmentIntersector.cpp | 189 +++ .../osgUtil/OperationArrayFunctor.cpp | 22 + .../introspection/osgUtil/Optimizer.cpp | 979 ++++++++++++ .../osgUtil/PlaneIntersector.cpp | 130 ++ .../osgUtil/PolytopeIntersector.cpp | 141 ++ .../osgUtil/PositionalStateContainer.cpp | 151 ++ .../osgUtil/ReflectionMapGenerator.cpp | 43 + .../introspection/osgUtil/RenderBin.cpp | 406 +++++ .../introspection/osgUtil/RenderLeaf.cpp | 66 + .../introspection/osgUtil/RenderStage.cpp | 523 +++++++ .../osgUtil/ReversePrimitiveFunctor.cpp | 111 ++ .../osgUtil/SceneGraphBuilder.cpp | 334 +++++ .../introspection/osgUtil/SceneView.cpp | 945 ++++++++++++ .../introspection/osgUtil/ShaderGen.cpp | 131 ++ .../introspection/osgUtil/Simplifier.cpp | 166 +++ .../osgUtil/SmoothingVisitor.cpp | 41 + .../introspection/osgUtil/StateGraph.cpp | 240 +++ .../introspection/osgUtil/Statistics.cpp | 359 +++++ .../osgUtil/TangentSpaceGenerator.cpp | 110 ++ .../introspection/osgUtil/Tessellator.cpp | 263 ++++ .../osgUtil/TransformAttributeFunctor.cpp | 42 + .../osgUtil/TransformCallback.cpp | 42 + .../introspection/osgUtil/TriStripVisitor.cpp | 89 ++ .../introspection/osgUtil/UpdateVisitor.cpp | 123 ++ .../osgViewer/CompositeViewer.cpp | 285 ++++ .../osgViewer/GraphicsWindow.cpp | 329 ++++ .../introspection/osgViewer/Renderer.cpp | 228 +++ .../introspection/osgViewer/Scene.cpp | 97 ++ .../introspection/osgViewer/View.cpp | 425 ++++++ .../introspection/osgViewer/Viewer.cpp | 247 +++ .../introspection/osgViewer/ViewerBase.cpp | 462 ++++++ .../osgViewer/ViewerEventHandlers.cpp | 709 +++++++++ .../api/Carbon/GraphicsHandleCarbon.cpp | 42 + .../api/Cocoa/GraphicsHandleCocoa.cpp | 42 + .../api/Win32/GraphicsHandleWin32.cpp | 68 + .../osgViewer/api/Win32/PixelBufferWin32.cpp | 101 ++ .../osgViewer/api/X11/GraphicsHandleX11.cpp | 59 + .../osgViewer/api/X11/PixelBufferX11.cpp | 116 ++ .../introspection/osgVolume/Export.cpp | 22 + .../osgVolume/FixedFunctionTechnique.cpp | 102 ++ .../introspection/osgVolume/Layer.cpp | 536 +++++++ .../introspection/osgVolume/Locator.cpp | 225 +++ .../introspection/osgVolume/Property.cpp | 919 ++++++++++++ .../osgVolume/RayTracedTechnique.cpp | 89 ++ .../introspection/osgVolume/Volume.cpp | 120 ++ .../osgVolume/VolumeTechnique.cpp | 109 ++ .../introspection/osgVolume/VolumeTile.cpp | 205 +++ .../introspection/osgWidget/Box.cpp | 86 ++ .../introspection/osgWidget/Browser.cpp | 172 +++ .../introspection/osgWidget/Canvas.cpp | 76 + .../osgWidget/EventInterface.cpp | 342 +++++ .../introspection/osgWidget/Frame.cpp | 349 +++++ .../introspection/osgWidget/Input.cpp | 140 ++ .../introspection/osgWidget/Label.cpp | 163 ++ .../introspection/osgWidget/Lua.cpp | 53 + .../introspection/osgWidget/PdfReader.cpp | 161 ++ .../introspection/osgWidget/Python.cpp | 53 + .../introspection/osgWidget/ScriptEngine.cpp | 58 + .../osgWidget/StyleInterface.cpp | 52 + .../introspection/osgWidget/StyleManager.cpp | 260 ++++ .../introspection/osgWidget/Table.cpp | 164 ++ .../introspection/osgWidget/Types.cpp | 46 + .../osgWidget/ViewerEventHandlers.cpp | 136 ++ .../introspection/osgWidget/VncClient.cpp | 68 + .../introspection/osgWidget/Widget.cpp | 989 ++++++++++++ .../introspection/osgWidget/Window.cpp | 991 ++++++++++++ .../introspection/osgWidget/WindowManager.cpp | 426 ++++++ 443 files changed, 92904 insertions(+), 1 deletion(-) create mode 100644 src/osgWrappers/introspection/OpenThreads/Atomic.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/Barrier.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/Block.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/Condition.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/Mutex.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/ReadWriteMutex.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/ReentrantMutex.cpp create mode 100644 src/osgWrappers/introspection/OpenThreads/Thread.cpp create mode 100644 src/osgWrappers/introspection/osg/AlphaFunc.cpp create mode 100644 src/osgWrappers/introspection/osg/AnimationPath.cpp create mode 100644 src/osgWrappers/introspection/osg/ApplicationUsage.cpp create mode 100644 src/osgWrappers/introspection/osg/ArgumentParser.cpp create mode 100644 src/osgWrappers/introspection/osg/Array.cpp create mode 100644 src/osgWrappers/introspection/osg/ArrayDispatchers.cpp create mode 100644 src/osgWrappers/introspection/osg/AudioStream.cpp create mode 100644 src/osgWrappers/introspection/osg/AutoTransform.cpp create mode 100644 src/osgWrappers/introspection/osg/Billboard.cpp create mode 100644 src/osgWrappers/introspection/osg/BlendColor.cpp create mode 100644 src/osgWrappers/introspection/osg/BlendEquation.cpp create mode 100644 src/osgWrappers/introspection/osg/BlendFunc.cpp create mode 100644 src/osgWrappers/introspection/osg/BoundingBox.cpp create mode 100644 src/osgWrappers/introspection/osg/BoundingSphere.cpp create mode 100644 src/osgWrappers/introspection/osg/BufferObject.cpp create mode 100644 src/osgWrappers/introspection/osg/Camera.cpp create mode 100644 src/osgWrappers/introspection/osg/CameraNode.cpp create mode 100644 src/osgWrappers/introspection/osg/CameraView.cpp create mode 100644 src/osgWrappers/introspection/osg/ClampColor.cpp create mode 100644 src/osgWrappers/introspection/osg/ClearNode.cpp create mode 100644 src/osgWrappers/introspection/osg/ClipNode.cpp create mode 100644 src/osgWrappers/introspection/osg/ClipPlane.cpp create mode 100644 src/osgWrappers/introspection/osg/ClusterCullingCallback.cpp create mode 100644 src/osgWrappers/introspection/osg/CollectOccludersVisitor.cpp create mode 100644 src/osgWrappers/introspection/osg/ColorMask.cpp create mode 100644 src/osgWrappers/introspection/osg/ColorMatrix.cpp create mode 100644 src/osgWrappers/introspection/osg/ComputeBoundsVisitor.cpp create mode 100644 src/osgWrappers/introspection/osg/ConvexPlanarOccluder.cpp create mode 100644 src/osgWrappers/introspection/osg/ConvexPlanarPolygon.cpp create mode 100644 src/osgWrappers/introspection/osg/CoordinateSystemNode.cpp create mode 100644 src/osgWrappers/introspection/osg/CopyOp.cpp create mode 100644 src/osgWrappers/introspection/osg/CullFace.cpp create mode 100644 src/osgWrappers/introspection/osg/CullSettings.cpp create mode 100644 src/osgWrappers/introspection/osg/CullStack.cpp create mode 100644 src/osgWrappers/introspection/osg/CullingSet.cpp create mode 100644 src/osgWrappers/introspection/osg/DeleteHandler.cpp create mode 100644 src/osgWrappers/introspection/osg/Depth.cpp create mode 100644 src/osgWrappers/introspection/osg/DisplaySettings.cpp create mode 100644 src/osgWrappers/introspection/osg/DrawPixels.cpp create mode 100644 src/osgWrappers/introspection/osg/Drawable.cpp create mode 100644 src/osgWrappers/introspection/osg/Endian.cpp create mode 100644 src/osgWrappers/introspection/osg/Fog.cpp create mode 100644 src/osgWrappers/introspection/osg/FragmentProgram.cpp create mode 100644 src/osgWrappers/introspection/osg/FrameBufferObject.cpp create mode 100644 src/osgWrappers/introspection/osg/FrameStamp.cpp create mode 100644 src/osgWrappers/introspection/osg/FrontFace.cpp create mode 100644 src/osgWrappers/introspection/osg/GL2Extensions.cpp create mode 100644 src/osgWrappers/introspection/osg/GLBeginEndAdapter.cpp create mode 100644 src/osgWrappers/introspection/osg/Geode.cpp create mode 100644 src/osgWrappers/introspection/osg/Geometry.cpp create mode 100644 src/osgWrappers/introspection/osg/GraphicsContext.cpp create mode 100644 src/osgWrappers/introspection/osg/GraphicsThread.cpp create mode 100644 src/osgWrappers/introspection/osg/Group.cpp create mode 100644 src/osgWrappers/introspection/osg/Hint.cpp create mode 100644 src/osgWrappers/introspection/osg/Image.cpp create mode 100644 src/osgWrappers/introspection/osg/ImageSequence.cpp create mode 100644 src/osgWrappers/introspection/osg/ImageStream.cpp create mode 100644 src/osgWrappers/introspection/osg/KdTree.cpp create mode 100644 src/osgWrappers/introspection/osg/LOD.cpp create mode 100644 src/osgWrappers/introspection/osg/Light.cpp create mode 100644 src/osgWrappers/introspection/osg/LightModel.cpp create mode 100644 src/osgWrappers/introspection/osg/LightSource.cpp create mode 100644 src/osgWrappers/introspection/osg/LineSegment.cpp create mode 100644 src/osgWrappers/introspection/osg/LineStipple.cpp create mode 100644 src/osgWrappers/introspection/osg/LineWidth.cpp create mode 100644 src/osgWrappers/introspection/osg/LogicOp.cpp create mode 100644 src/osgWrappers/introspection/osg/Material.cpp create mode 100644 src/osgWrappers/introspection/osg/Matrix.cpp create mode 100644 src/osgWrappers/introspection/osg/MatrixTransform.cpp create mode 100644 src/osgWrappers/introspection/osg/Matrixd.cpp create mode 100644 src/osgWrappers/introspection/osg/Matrixf.cpp create mode 100644 src/osgWrappers/introspection/osg/Multisample.cpp create mode 100644 src/osgWrappers/introspection/osg/Node.cpp create mode 100644 src/osgWrappers/introspection/osg/NodeCallback.cpp create mode 100644 src/osgWrappers/introspection/osg/NodeTrackerCallback.cpp create mode 100644 src/osgWrappers/introspection/osg/NodeVisitor.cpp create mode 100644 src/osgWrappers/introspection/osg/Notify.cpp create mode 100644 src/osgWrappers/introspection/osg/Object.cpp create mode 100644 src/osgWrappers/introspection/osg/OccluderNode.cpp create mode 100644 src/osgWrappers/introspection/osg/OcclusionQueryNode.cpp create mode 100644 src/osgWrappers/introspection/osg/OperationThread.cpp create mode 100644 src/osgWrappers/introspection/osg/PagedLOD.cpp create mode 100644 src/osgWrappers/introspection/osg/Plane.cpp create mode 100644 src/osgWrappers/introspection/osg/Point.cpp create mode 100644 src/osgWrappers/introspection/osg/PointSprite.cpp create mode 100644 src/osgWrappers/introspection/osg/PolygonMode.cpp create mode 100644 src/osgWrappers/introspection/osg/PolygonOffset.cpp create mode 100644 src/osgWrappers/introspection/osg/PolygonStipple.cpp create mode 100644 src/osgWrappers/introspection/osg/Polytope.cpp create mode 100644 src/osgWrappers/introspection/osg/PositionAttitudeTransform.cpp create mode 100644 src/osgWrappers/introspection/osg/PrimitiveSet.cpp create mode 100644 src/osgWrappers/introspection/osg/Program.cpp create mode 100644 src/osgWrappers/introspection/osg/Projection.cpp create mode 100644 src/osgWrappers/introspection/osg/ProxyNode.cpp create mode 100644 src/osgWrappers/introspection/osg/Quat.cpp create mode 100644 src/osgWrappers/introspection/osg/Referenced.cpp create mode 100644 src/osgWrappers/introspection/osg/RenderInfo.cpp create mode 100644 src/osgWrappers/introspection/osg/Scissor.cpp create mode 100644 src/osgWrappers/introspection/osg/Sequence.cpp create mode 100644 src/osgWrappers/introspection/osg/ShadeModel.cpp create mode 100644 src/osgWrappers/introspection/osg/Shader.cpp create mode 100644 src/osgWrappers/introspection/osg/ShadowVolumeOccluder.cpp create mode 100644 src/osgWrappers/introspection/osg/Shape.cpp create mode 100644 src/osgWrappers/introspection/osg/ShapeDrawable.cpp create mode 100644 src/osgWrappers/introspection/osg/State.cpp create mode 100644 src/osgWrappers/introspection/osg/StateAttribute.cpp create mode 100644 src/osgWrappers/introspection/osg/StateAttributeCallback.cpp create mode 100644 src/osgWrappers/introspection/osg/StateSet.cpp create mode 100644 src/osgWrappers/introspection/osg/Stats.cpp create mode 100644 src/osgWrappers/introspection/osg/Stencil.cpp create mode 100644 src/osgWrappers/introspection/osg/StencilTwoSided.cpp create mode 100644 src/osgWrappers/introspection/osg/Switch.cpp create mode 100644 src/osgWrappers/introspection/osg/TexEnv.cpp create mode 100644 src/osgWrappers/introspection/osg/TexEnvCombine.cpp create mode 100644 src/osgWrappers/introspection/osg/TexEnvFilter.cpp create mode 100644 src/osgWrappers/introspection/osg/TexGen.cpp create mode 100644 src/osgWrappers/introspection/osg/TexGenNode.cpp create mode 100644 src/osgWrappers/introspection/osg/TexMat.cpp create mode 100644 src/osgWrappers/introspection/osg/Texture.cpp create mode 100644 src/osgWrappers/introspection/osg/Texture1D.cpp create mode 100644 src/osgWrappers/introspection/osg/Texture2D.cpp create mode 100644 src/osgWrappers/introspection/osg/Texture2DArray.cpp create mode 100644 src/osgWrappers/introspection/osg/Texture3D.cpp create mode 100644 src/osgWrappers/introspection/osg/TextureCubeMap.cpp create mode 100644 src/osgWrappers/introspection/osg/TextureRectangle.cpp create mode 100644 src/osgWrappers/introspection/osg/Timer.cpp create mode 100644 src/osgWrappers/introspection/osg/TransferFunction.cpp create mode 100644 src/osgWrappers/introspection/osg/Transform.cpp create mode 100644 src/osgWrappers/introspection/osg/Uniform.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec2.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec2b.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec2d.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec2f.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec2s.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec3.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec3b.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec3d.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec3f.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec3s.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4b.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4d.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4f.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4s.cpp create mode 100644 src/osgWrappers/introspection/osg/Vec4ub.cpp create mode 100644 src/osgWrappers/introspection/osg/VertexProgram.cpp create mode 100644 src/osgWrappers/introspection/osg/View.cpp create mode 100644 src/osgWrappers/introspection/osg/Viewport.cpp create mode 100644 src/osgWrappers/introspection/osg/observer_ptr.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Action.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionAnimation.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionBlendIn.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionBlendOut.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionCallback.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionStripAnimation.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ActionVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Animation.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/AnimationManagerBase.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Assert.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/BasicAnimationManager.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Bone.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/BoneMapVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Channel.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/ComputeBindMatrixVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/CubicBezier.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/EaseMotion.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/FindParentAnimationManagerVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/FrameAction.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Interpolator.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Keyframe.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/LinkVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/MorphGeometry.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/RigGeometry.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/RigTransform.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/RigTransformHardware.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/RigTransformSoftware.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Sampler.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Skeleton.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/StatsHandler.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/StatsVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Target.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Timeline.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/TimelineAnimationManager.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/UpdateCallback.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/Vec3Packed.cpp create mode 100644 src/osgWrappers/introspection/osgAnimation/VertexInfluence.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Archive.cpp create mode 100644 src/osgWrappers/introspection/osgDB/AuthenticationMap.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Callbacks.cpp create mode 100644 src/osgWrappers/introspection/osgDB/DatabasePager.cpp create mode 100644 src/osgWrappers/introspection/osgDB/DatabaseRevisions.cpp create mode 100644 src/osgWrappers/introspection/osgDB/DotOsgWrapper.cpp create mode 100644 src/osgWrappers/introspection/osgDB/DynamicLibrary.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Field.cpp create mode 100644 src/osgWrappers/introspection/osgDB/FieldReader.cpp create mode 100644 src/osgWrappers/introspection/osgDB/FieldReaderIterator.cpp create mode 100644 src/osgWrappers/introspection/osgDB/FileCache.cpp create mode 100644 src/osgWrappers/introspection/osgDB/FileUtils.cpp create mode 100644 src/osgWrappers/introspection/osgDB/ImageOptions.cpp create mode 100644 src/osgWrappers/introspection/osgDB/ImagePager.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Input.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Options.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Output.cpp create mode 100644 src/osgWrappers/introspection/osgDB/ParameterOutput.cpp create mode 100644 src/osgWrappers/introspection/osgDB/PluginQuery.cpp create mode 100644 src/osgWrappers/introspection/osgDB/ReaderWriter.cpp create mode 100644 src/osgWrappers/introspection/osgDB/Registry.cpp create mode 100644 src/osgWrappers/introspection/osgDB/SharedStateManager.cpp create mode 100644 src/osgWrappers/introspection/osgDB/XmlParser.cpp create mode 100644 src/osgWrappers/introspection/osgFX/AnisotropicLighting.cpp create mode 100644 src/osgWrappers/introspection/osgFX/BumpMapping.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Cartoon.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Effect.cpp create mode 100644 src/osgWrappers/introspection/osgFX/MultiTextureControl.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Outline.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Registry.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Scribe.cpp create mode 100644 src/osgWrappers/introspection/osgFX/SpecularHighlights.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Technique.cpp create mode 100644 src/osgWrappers/introspection/osgFX/Validator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/AnimationPathManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/CameraViewSwitchManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/DriveManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/EventQueue.cpp create mode 100644 src/osgWrappers/introspection/osgGA/EventVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgGA/FlightManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/GUIActionAdapter.cpp create mode 100644 src/osgWrappers/introspection/osgGA/GUIEventAdapter.cpp create mode 100644 src/osgWrappers/introspection/osgGA/GUIEventHandler.cpp create mode 100644 src/osgWrappers/introspection/osgGA/KeySwitchMatrixManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/MatrixManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/NodeTrackerManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/SphericalManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/StateSetManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/TerrainManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/TrackballManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgGA/UFOManipulator.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/AntiSquish.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Command.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/CommandManager.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Constraint.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Dragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Projector.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/RotateCylinderDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/RotateSphereDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Scale1DDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Scale2DDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/ScaleAxisDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Selection.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TabBoxDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TabBoxTrackballDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TabPlaneDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TabPlaneTrackballDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TrackballDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Translate1DDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/Translate2DDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TranslateAxisDragger.cpp create mode 100644 src/osgWrappers/introspection/osgManipulator/TranslatePlaneDragger.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/AccelOperator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/AngularAccelOperator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/BoxPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/CenteredPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ConnectedParticleSystem.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ConstantRateCounter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Counter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Emitter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ExplosionDebrisEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ExplosionEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/FireEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ForceOperator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Interpolator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/LinearInterpolator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ModularEmitter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ModularProgram.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/MultiSegmentPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Operator.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Particle.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ParticleEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ParticleProcessor.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ParticleSystem.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/ParticleSystemUpdater.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Placer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/PointPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/PrecipitationEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Program.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/RadialShooter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/RandomRateCounter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/SectorPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/SegmentPlacer.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/Shooter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/SmokeEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/SmokeTrailEffect.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/VariableRateCounter.cpp create mode 100644 src/osgWrappers/introspection/osgParticle/range.cpp create mode 100644 src/osgWrappers/introspection/osgPresentation/AnimationMaterial.cpp create mode 100644 src/osgWrappers/introspection/osgPresentation/CompileSlideCallback.cpp create mode 100644 src/osgWrappers/introspection/osgPresentation/PickEventHandler.cpp create mode 100644 src/osgWrappers/introspection/osgPresentation/SlideEventHandler.cpp create mode 100644 src/osgWrappers/introspection/osgPresentation/SlideShowConstructor.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ConvexPolyhedron.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/DebugShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/LightSpacePerspectiveShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/MinimalCullBoundsShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/MinimalDrawBoundsShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/MinimalShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/OccluderGeometry.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ParallelSplitShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ShadowTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ShadowTexture.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ShadowVolume.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ShadowedScene.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/SoftShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/StandardShadowMap.cpp create mode 100644 src/osgWrappers/introspection/osgShadow/ViewDependentShadowTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgSim/BlinkSequence.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ColorRange.cpp create mode 100644 src/osgWrappers/introspection/osgSim/DOFTransform.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ElevationSlice.cpp create mode 100644 src/osgWrappers/introspection/osgSim/GeographicLocation.cpp create mode 100644 src/osgWrappers/introspection/osgSim/HeightAboveTerrain.cpp create mode 100644 src/osgWrappers/introspection/osgSim/Impostor.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ImpostorSprite.cpp create mode 100644 src/osgWrappers/introspection/osgSim/InsertImpostorsVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgSim/LightPoint.cpp create mode 100644 src/osgWrappers/introspection/osgSim/LightPointNode.cpp create mode 100644 src/osgWrappers/introspection/osgSim/LightPointSystem.cpp create mode 100644 src/osgWrappers/introspection/osgSim/LineOfSight.cpp create mode 100644 src/osgWrappers/introspection/osgSim/MultiSwitch.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ObjectRecordData.cpp create mode 100644 src/osgWrappers/introspection/osgSim/OverlayNode.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ScalarBar.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ScalarsToColors.cpp create mode 100644 src/osgWrappers/introspection/osgSim/Sector.cpp create mode 100644 src/osgWrappers/introspection/osgSim/ShapeAttribute.cpp create mode 100644 src/osgWrappers/introspection/osgSim/SphereSegment.cpp create mode 100644 src/osgWrappers/introspection/osgSim/VisibilityGroup.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/Export.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/Layer.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/Locator.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/Terrain.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/TerrainTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/TerrainTile.cpp create mode 100644 src/osgWrappers/introspection/osgTerrain/ValidDataOperator.cpp create mode 100644 src/osgWrappers/introspection/osgText/Export.cpp create mode 100644 src/osgWrappers/introspection/osgText/FadeText.cpp create mode 100644 src/osgWrappers/introspection/osgText/Font.cpp create mode 100644 src/osgWrappers/introspection/osgText/Font3D.cpp create mode 100644 src/osgWrappers/introspection/osgText/KerningType.cpp create mode 100644 src/osgWrappers/introspection/osgText/String.cpp create mode 100644 src/osgWrappers/introspection/osgText/Text.cpp create mode 100644 src/osgWrappers/introspection/osgText/Text3D.cpp create mode 100644 src/osgWrappers/introspection/osgText/TextBase.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/ConvertVec.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/CubeMapGenerator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/CullVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/DelaunayTriangulator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/DisplayRequirementsVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/DrawElementTypeSimplifier.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/EdgeCollector.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/GLObjectsVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/HalfWayMapGenerator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/HighlightMapGenerator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/IncrementalCompileOperation.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/IntersectVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/IntersectionVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/LineSegmentIntersector.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/OperationArrayFunctor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/Optimizer.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/PlaneIntersector.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/PolytopeIntersector.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/PositionalStateContainer.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/ReflectionMapGenerator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/RenderBin.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/RenderLeaf.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/RenderStage.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/ReversePrimitiveFunctor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/SceneGraphBuilder.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/SceneView.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/ShaderGen.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/Simplifier.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/SmoothingVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/StateGraph.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/Statistics.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/TangentSpaceGenerator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/Tessellator.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/TransformAttributeFunctor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/TransformCallback.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/TriStripVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgUtil/UpdateVisitor.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/CompositeViewer.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/GraphicsWindow.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/Renderer.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/Scene.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/View.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/Viewer.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/ViewerBase.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/ViewerEventHandlers.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/Carbon/GraphicsHandleCarbon.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/Cocoa/GraphicsHandleCocoa.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/Win32/GraphicsHandleWin32.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/Win32/PixelBufferWin32.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/X11/GraphicsHandleX11.cpp create mode 100644 src/osgWrappers/introspection/osgViewer/api/X11/PixelBufferX11.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/Export.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/FixedFunctionTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/Layer.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/Locator.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/Property.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/RayTracedTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/Volume.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/VolumeTechnique.cpp create mode 100644 src/osgWrappers/introspection/osgVolume/VolumeTile.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Box.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Browser.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Canvas.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/EventInterface.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Frame.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Input.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Label.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Lua.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/PdfReader.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Python.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/ScriptEngine.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/StyleInterface.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/StyleManager.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Table.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Types.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/ViewerEventHandlers.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/VncClient.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Widget.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/Window.cpp create mode 100644 src/osgWrappers/introspection/osgWidget/WindowManager.cpp diff --git a/src/osgWrappers/introspection/CMakeLists.txt b/src/osgWrappers/introspection/CMakeLists.txt index 55e9244ec..59e9aab62 100644 --- a/src/osgWrappers/introspection/CMakeLists.txt +++ b/src/osgWrappers/introspection/CMakeLists.txt @@ -126,11 +126,11 @@ ENDMACRO(ADD_WRAPPER_LIB) SET(OSGWRAPPER_LIB_LIST OpenThreads osg + osgAnimation osgDB osgFX osgGA osgManipulator - osgAnimation osgParticle osgPresentation osgShadow diff --git a/src/osgWrappers/introspection/OpenThreads/Atomic.cpp b/src/osgWrappers/introspection/OpenThreads/Atomic.cpp new file mode 100644 index 000000000..610806350 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Atomic.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/OpenThreads/Barrier.cpp b/src/osgWrappers/introspection/OpenThreads/Barrier.cpp new file mode 100644 index 000000000..0b8304eb5 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Barrier.cpp @@ -0,0 +1,56 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::Barrier) + I_DeclaringFile("OpenThreads/Barrier"); + I_ConstructorWithDefaults1(IN, int, numThreads, 0, + Properties::NON_EXPLICIT, + ____Barrier__int, + "Constructor. ", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "Reset the barrier to it's original state. ", + ""); + I_MethodWithDefaults1(void, block, IN, unsigned int, numThreads, 0, + Properties::VIRTUAL, + __void__block__unsigned_int, + "Block until numThreads threads have entered the barrier. ", + ""); + I_Method0(void, release, + Properties::VIRTUAL, + __void__release, + "Release the barrier, now. ", + ""); + I_Method0(int, numThreadsCurrentlyBlocked, + Properties::VIRTUAL, + __int__numThreadsCurrentlyBlocked, + "Return the number of threads currently blocked in the barrier, Return -1 if error. ", + ""); + I_Method0(void, invalidate, + Properties::NON_VIRTUAL, + __void__invalidate, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/Block.cpp b/src/osgWrappers/introspection/OpenThreads/Block.cpp new file mode 100644 index 000000000..2ca7f3203 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Block.cpp @@ -0,0 +1,104 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::Block) + I_DeclaringFile("OpenThreads/Block"); + I_Constructor0(____Block, + "", + ""); + I_Method0(bool, block, + Properties::NON_VIRTUAL, + __bool__block, + "", + ""); + I_Method1(bool, block, IN, unsigned long, timeout, + Properties::NON_VIRTUAL, + __bool__block__unsigned_long, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(OpenThreads::BlockCount) + I_DeclaringFile("OpenThreads/Block"); + I_Constructor1(IN, unsigned int, blockCount, + Properties::NON_EXPLICIT, + ____BlockCount__unsigned_int, + "", + ""); + I_Method0(void, completed, + Properties::NON_VIRTUAL, + __void__completed, + "", + ""); + 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, setBlockCount, IN, unsigned int, blockCount, + Properties::NON_VIRTUAL, + __void__setBlockCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getBlockCount, + Properties::NON_VIRTUAL, + __unsigned_int__getBlockCount, + "", + ""); + I_Method0(unsigned int, getCurrentCount, + Properties::NON_VIRTUAL, + __unsigned_int__getCurrentCount, + "", + ""); + I_SimpleProperty(unsigned int, BlockCount, + __unsigned_int__getBlockCount, + __void__setBlockCount__unsigned_int); + I_SimpleProperty(unsigned int, CurrentCount, + __unsigned_int__getCurrentCount, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/Condition.cpp b/src/osgWrappers/introspection/OpenThreads/Condition.cpp new file mode 100644 index 000000000..f17c04a35 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Condition.cpp @@ -0,0 +1,50 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::Condition) + I_DeclaringFile("OpenThreads/Condition"); + I_Constructor0(____Condition, + "Constructor. ", + ""); + I_Method1(int, wait, IN, OpenThreads::Mutex *, mutex, + Properties::VIRTUAL, + __int__wait__Mutex_P1, + "Wait on a mutex. ", + ""); + I_Method2(int, wait, IN, OpenThreads::Mutex *, mutex, IN, unsigned long int, ms, + Properties::VIRTUAL, + __int__wait__Mutex_P1__unsigned_long_int, + "Wait on a mutex for a given amount of time (ms). ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, signal, + Properties::VIRTUAL, + __int__signal, + "Signal a SINGLE thread to wake if it's waiting. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, broadcast, + Properties::VIRTUAL, + __int__broadcast, + "Wake all threads waiting on this condition. ", + "0 if normal, -1 if errno set, errno code otherwise. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/Mutex.cpp b/src/osgWrappers/introspection/OpenThreads/Mutex.cpp new file mode 100644 index 000000000..cb46e2576 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Mutex.cpp @@ -0,0 +1,44 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::Mutex) + I_DeclaringFile("OpenThreads/Mutex"); + I_Constructor0(____Mutex, + "Constructor. ", + ""); + I_Method0(int, lock, + Properties::VIRTUAL, + __int__lock, + "Lock the mutex. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, unlock, + Properties::VIRTUAL, + __int__unlock, + "Unlock the mutex. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, trylock, + Properties::VIRTUAL, + __int__trylock, + "Test if mutex can be locked. ", + "0 if normal, -1 if errno set, errno code otherwise. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/ReadWriteMutex.cpp b/src/osgWrappers/introspection/OpenThreads/ReadWriteMutex.cpp new file mode 100644 index 000000000..9ecd50e33 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/ReadWriteMutex.cpp @@ -0,0 +1,72 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::ReadWriteMutex) + I_DeclaringFile("OpenThreads/ReadWriteMutex"); + I_Constructor0(____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, + "", + ""); + I_ProtectedConstructor1(IN, const OpenThreads::ReadWriteMutex &, x, + Properties::NON_EXPLICIT, + ____ReadWriteMutex__C5_ReadWriteMutex_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(OpenThreads::ScopedReadLock) + I_DeclaringFile("OpenThreads/ReadWriteMutex"); + I_Constructor1(IN, OpenThreads::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedReadLock__ReadWriteMutex_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(OpenThreads::ScopedWriteLock) + I_DeclaringFile("OpenThreads/ReadWriteMutex"); + I_Constructor1(IN, OpenThreads::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedWriteLock__ReadWriteMutex_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/ReentrantMutex.cpp b/src/osgWrappers/introspection/OpenThreads/ReentrantMutex.cpp new file mode 100644 index 000000000..338be1904 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/ReentrantMutex.cpp @@ -0,0 +1,45 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(OpenThreads::ReentrantMutex) + I_DeclaringFile("OpenThreads/ReentrantMutex"); + I_BaseType(OpenThreads::Mutex); + I_Constructor0(____ReentrantMutex, + "", + ""); + I_Method0(int, lock, + Properties::VIRTUAL, + __int__lock, + "Lock the mutex. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, unlock, + Properties::VIRTUAL, + __int__unlock, + "Unlock the mutex. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, trylock, + Properties::VIRTUAL, + __int__trylock, + "Test if mutex can be locked. ", + "0 if normal, -1 if errno set, errno code otherwise. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/OpenThreads/Thread.cpp b/src/osgWrappers/introspection/OpenThreads/Thread.cpp new file mode 100644 index 000000000..ca1249454 --- /dev/null +++ b/src/osgWrappers/introspection/OpenThreads/Thread.cpp @@ -0,0 +1,211 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPriority) + I_DeclaringFile("OpenThreads/Thread"); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MAX); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_HIGH); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_NOMINAL); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_LOW); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_MIN); + I_EnumLabel(OpenThreads::Thread::THREAD_PRIORITY_DEFAULT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(OpenThreads::Thread::ThreadPolicy) + I_DeclaringFile("OpenThreads/Thread"); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_FIFO); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_ROUND_ROBIN); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_TIME_SHARE); + I_EnumLabel(OpenThreads::Thread::THREAD_SCHEDULE_DEFAULT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(OpenThreads::Thread) + I_DeclaringFile("OpenThreads/Thread"); + I_StaticMethod1(int, SetConcurrency, IN, int, concurrencyLevel, + __int__SetConcurrency__int_S, + "Set the concurrency level for a running application. ", + "This method only has effect if the pthreads thread model is being used, and then only when that model is many-to-one (eg. irix). in other cases it is ignored. The concurrency level is only a *hint* as to the number of execution vehicles to use, the actual implementation may do anything it wants. Setting the value to 0 returns things to their default state.previous concurrency level, -1 indicates no-op. "); + I_StaticMethod0(int, GetConcurrency, + __int__GetConcurrency_S, + "Get the concurrency level for a running application. ", + "In this case, a return code of 0 means that the application is in default mode. A return code of -1 means that the application is incapable of setting an arbitrary concurrency, because it is a one-to-one execution model (sprocs, linuxThreads) "); + I_StaticMethod0(OpenThreads::Thread *, CurrentThread, + __Thread_P1__CurrentThread_S, + "Return a pointer to the current running thread. ", + ""); + I_StaticMethod0(void, Init, + __void__Init_S, + "Initialize Threading in a program. ", + "This method must be called before you can do any threading in a program. "); + I_StaticMethod0(int, YieldCurrentThread, + __int__YieldCurrentThread_S, + "Yield the processor. ", + "This method operates on the calling process. And is equivalent to calling sched_yield(). 0 if normal, -1 if errno set, errno code otherwise. "); + I_StaticMethod0(OpenThreads::Thread::ThreadPriority, GetMasterPriority, + __ThreadPriority__GetMasterPriority_S, + "This method will return the ThreadPriority of the master process. ", + "(ie, the one calling the thread->start() methods for the first time) The method will almost certainly return Thread::THREAD_PRIORITY_DEFAULT if Init() has not been called.the Thread::ThreadPriority of the master thread. "); + I_StaticMethod1(int, microSleep, IN, unsigned int, microsec, + __int__microSleep__unsigned_int_S, + "microSleep method, equivilant to the posix usleep(microsec). ", + "This is not strictly thread API but is used so often with threads. It's basically UNIX usleep. Parameter is number of microseconds we current thread to sleep. Returns 0 on succes, non-zero on failure (UNIX errno or GetLastError() will give detailed description. "); + I_Constructor0(____Thread, + "Constructor. ", + ""); + I_Method0(int, getThreadId, + Properties::NON_VIRTUAL, + __int__getThreadId, + "Get a unique thread id. ", + "This id is monotonically increasing.a unique thread identifier "); + I_Method0(size_t, getProcessId, + Properties::NON_VIRTUAL, + __size_t__getProcessId, + "Get the thread's process id. ", + "This is the pthread_t or pid_t value depending on the threading model being used.thread process id. "); + I_Method0(int, start, + Properties::NON_VIRTUAL, + __int__start, + "Start the thread. ", + "This method will configure the thread, set it's priority, and spawn it.if the stack size specified setStackSize is smaller than the smallest allowable stack size, the threads stack size will be set to the minimum allowed, and may be retrieved via the getStackSize() 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, startThread, + Properties::NON_VIRTUAL, + __int__startThread, + "", + ""); + I_Method0(int, testCancel, + Properties::NON_VIRTUAL, + __int__testCancel, + "Test the cancel state of the thread. ", + "If the thread has been canceled this method will cause the thread to exit now. This method operates on the calling thread.Returns 0 if normal, -1 if called from a thread other that this. "); + I_Method0(int, cancel, + Properties::VIRTUAL, + __int__cancel, + "Cancel the thread. ", + "Equivalent to SIGKILL.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setSchedulePriority, IN, OpenThreads::Thread::ThreadPriority, priority, + Properties::NON_VIRTUAL, + __int__setSchedulePriority__ThreadPriority, + "Set the thread's schedule priority. ", + "This is a complex method. Beware of thread priorities when using a many-to-many kernel entity implemenation (such as IRIX pthreads). If one is not carefull to manage the thread priorities, a priority inversion deadlock can easily occur (Although the OpenThreads::Mutex & OpenThreads::Barrier constructs have been designed with this senario in mind). Unless you have explicit need to set the schedule pirorites for a given task, it is best to leave them alone.some implementations (notably LinuxThreads and IRIX Sprocs) only alow you to decrease thread priorities dynamically. Thus, a lower priority thread will not allow it's priority to be raised on the fly.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, getSchedulePriority, + Properties::NON_VIRTUAL, + __int__getSchedulePriority, + "Get the thread's schedule priority (if able). ", + "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setSchedulePolicy, IN, OpenThreads::Thread::ThreadPolicy, policy, + Properties::NON_VIRTUAL, + __int__setSchedulePolicy__ThreadPolicy, + "Set the thread's scheduling policy (if able). ", + "On some implementations (notably IRIX Sprocs & LinuxThreads) The policy may prohibit the use of SCHEDULE_ROUND_ROBIN and SCHEDULE_FIFO policies - due to their real-time nature, and the danger of deadlocking the machine when used as super-user. In such cases, the command is a no-op.seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, getSchedulePolicy, + Properties::NON_VIRTUAL, + __int__getSchedulePolicy, + "Get the thread's policy (if able). ", + "seting the environment variable OUTPUT_THREADLIB_SCHEDULING_INFO will output scheduling information for each thread to stdout. policy if normal, -1 if errno set, errno code otherwise. "); + I_Method1(int, setStackSize, IN, size_t, size, + Properties::NON_VIRTUAL, + __int__setStackSize__size_t, + "Set the thread's desired stack size (in bytes). ", + "This method is an attribute of the thread and must be called *before* the start() method is invoked.a return code of 13 (EACESS) means that the thread stack size can no longer be changed. 0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(size_t, getStackSize, + Properties::NON_VIRTUAL, + __size_t__getStackSize, + "Get the thread's desired stack size. ", + "the thread's stack size. 0 indicates that the stack size has either not yet been initialized, or not yet been specified by the application. "); + I_Method0(void, printSchedulingInfo, + Properties::NON_VIRTUAL, + __void__printSchedulingInfo, + "Print the thread's scheduling information to stdout. ", + ""); + I_Method0(int, detach, + Properties::NON_VIRTUAL, + __int__detach, + "Detach the thread from the calling process. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, join, + Properties::NON_VIRTUAL, + __int__join, + "Join the calling process with the thread. ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeDisable, + Properties::NON_VIRTUAL, + __int__setCancelModeDisable, + "Disable thread cancelation altogether. ", + "Thread::cancel() has no effect.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeAsynchronous, + Properties::NON_VIRTUAL, + __int__setCancelModeAsynchronous, + "Mark the thread to cancel aysncronously on Thread::cancel(). ", + "(May not be available with process-level implementations).0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(int, setCancelModeDeferred, + Properties::NON_VIRTUAL, + __int__setCancelModeDeferred, + "Mark the thread to cancel at the earliest convenience on Thread::cancel() (This is the default). ", + "0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(bool, isRunning, + Properties::NON_VIRTUAL, + __bool__isRunning, + "Query the thread's running status. ", + "true if running, false if not. "); + I_Method0(void, run, + Properties::PURE_VIRTUAL, + __void__run, + "Thread's run method. ", + "Must be implemented by derived classes. This is where the action happens. "); + I_Method0(void, cancelCleanup, + Properties::VIRTUAL, + __void__cancelCleanup, + "Thread's cancel cleanup routine, called upon cancel(), after the cancelation has taken place, but before the thread exits completely. ", + "This method should be used to repair parts of the thread's data that may have been damaged by a pre-mature cancel. No-op by default. "); + I_Method0(void *, getImplementation, + Properties::NON_VIRTUAL, + __void_P1__getImplementation, + "", + ""); + I_Method1(int, setProcessorAffinity, IN, unsigned int, cpunum, + Properties::NON_VIRTUAL, + __int__setProcessorAffinity__unsigned_int, + "Thread's processor affinity method. ", + "This binds a thread to a processor whenever possible. This call must be made before start() or startThread() and has no effect after the thread has been running. In the pthreads implementation, this is only implemented on sgi, through a pthread extension. On other pthread platforms this is ignored. Returns 0 on success, implementation's error on failure, or -1 if ignored. "); + I_SimpleProperty(void *, Implementation, + __void_P1__getImplementation, + 0); + I_SimpleProperty(size_t, ProcessId, + __size_t__getProcessId, + 0); + I_SimpleProperty(unsigned int, ProcessorAffinity, + 0, + __int__setProcessorAffinity__unsigned_int); + I_SimpleProperty(OpenThreads::Thread::ThreadPolicy, SchedulePolicy, + 0, + __int__setSchedulePolicy__ThreadPolicy); + I_SimpleProperty(OpenThreads::Thread::ThreadPriority, SchedulePriority, + 0, + __int__setSchedulePriority__ThreadPriority); + I_SimpleProperty(size_t, StackSize, + __size_t__getStackSize, + __int__setStackSize__size_t); + I_SimpleProperty(int, ThreadId, + __int__getThreadId, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/AlphaFunc.cpp b/src/osgWrappers/introspection/osg/AlphaFunc.cpp new file mode 100644 index 000000000..ee116505a --- /dev/null +++ b/src/osgWrappers/introspection/osg/AlphaFunc.cpp @@ -0,0 +1,133 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::AlphaFunc::ComparisonFunction) + I_DeclaringFile("osg/AlphaFunc"); + I_EnumLabel(osg::AlphaFunc::NEVER); + I_EnumLabel(osg::AlphaFunc::LESS); + I_EnumLabel(osg::AlphaFunc::EQUAL); + I_EnumLabel(osg::AlphaFunc::LEQUAL); + I_EnumLabel(osg::AlphaFunc::GREATER); + I_EnumLabel(osg::AlphaFunc::NOTEQUAL); + I_EnumLabel(osg::AlphaFunc::GEQUAL); + I_EnumLabel(osg::AlphaFunc::ALWAYS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AlphaFunc) + I_DeclaringFile("osg/AlphaFunc"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____AlphaFunc, + "", + ""); + I_Constructor2(IN, osg::AlphaFunc::ComparisonFunction, func, IN, float, ref, + ____AlphaFunc__ComparisonFunction__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AlphaFunc &, af, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AlphaFunc__C5_AlphaFunc_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::AlphaFunc::ComparisonFunction, Function, + __ComparisonFunction__getFunction, + __void__setFunction__ComparisonFunction); + I_SimpleProperty(float, ReferenceValue, + __float__getReferenceValue, + __void__setReferenceValue__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/AnimationPath.cpp b/src/osgWrappers/introspection/osg/AnimationPath.cpp new file mode 100644 index 000000000..cb9b0eebf --- /dev/null +++ b/src/osgWrappers/introspection/osg/AnimationPath.cpp @@ -0,0 +1,432 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::AnimationPath::LoopMode) + I_DeclaringFile("osg/AnimationPath"); + I_EnumLabel(osg::AnimationPath::SWING); + I_EnumLabel(osg::AnimationPath::LOOP); + I_EnumLabel(osg::AnimationPath::NO_LOOPING); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< double COMMA osg::AnimationPath::ControlPoint >, osg::AnimationPath::TimeControlPointMap) + +BEGIN_OBJECT_REFLECTOR(osg::AnimationPath) + I_DeclaringFile("osg/AnimationPath"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____AnimationPath, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AnimationPath &, ap, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnimationPath__C5_AnimationPath_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, + "Insert a control point into the AnimationPath. ", + ""); + 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_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + 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. ", + ""); + I_Method2(void, write, IN, osg::AnimationPath::TimeControlPointMap::const_iterator, itr, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__write__TimeControlPointMap_C5_iterator__std_ostream_R1, + "Write the control point to a flat ASCII file stream. ", + ""); + I_SimpleProperty(double, FirstTime, + __double__getFirstTime, + 0); + I_SimpleProperty(double, LastTime, + __double__getLastTime, + 0); + I_SimpleProperty(osg::AnimationPath::LoopMode, LoopMode, + __LoopMode__getLoopMode, + __void__setLoopMode__LoopMode); + I_SimpleProperty(double, Period, + __double__getPeriod, + 0); + I_SimpleProperty(osg::AnimationPath::TimeControlPointMap &, TimeControlPointMap, + __TimeControlPointMap_R1__getTimeControlPointMap, + __void__setTimeControlPointMap__TimeControlPointMap_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::AnimationPath::ControlPoint) + I_DeclaringFile("osg/AnimationPath"); + I_Constructor0(____ControlPoint, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, position, + Properties::NON_EXPLICIT, + ____ControlPoint__C5_osg_Vec3d_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation, + ____ControlPoint__C5_osg_Vec3d_R1__C5_osg_Quat_R1, + "", + ""); + I_Constructor3(IN, const osg::Vec3d &, position, IN, const osg::Quat &, rotation, IN, const osg::Vec3d &, scale, + ____ControlPoint__C5_osg_Vec3d_R1__C5_osg_Quat_R1__C5_osg_Vec3d_R1, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_osg_Vec3d_R1__getPosition, + __void__setPosition__C5_osg_Vec3d_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(const osg::Vec3d &, Scale, + __C5_osg_Vec3d_R1__getScale, + __void__setScale__C5_osg_Vec3d_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AnimationPathCallback) + I_DeclaringFile("osg/AnimationPath"); + I_BaseType(osg::NodeCallback); + I_Constructor0(____AnimationPathCallback, + "", + ""); + I_Constructor2(IN, const osg::AnimationPathCallback &, apc, IN, const osg::CopyOp &, copyop, + ____AnimationPathCallback__C5_AnimationPathCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_ConstructorWithDefaults3(IN, osg::AnimationPath *, ap, , IN, double, timeOffset, 0.0, IN, double, timeMultiplier, 1.0, + ____AnimationPathCallback__AnimationPath_P1__double__double, + "Construct an AnimationPathCallback with a specified animation path. ", + ""); + I_Constructor3(IN, const osg::Vec3d &, pivot, IN, const osg::Vec3d &, axis, IN, float, angularVelocity, + ____AnimationPathCallback__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__float, + "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::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::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, + "", + ""); + I_SimpleProperty(osg::AnimationPath *, AnimationPath, + __AnimationPath_P1__getAnimationPath, + __void__setAnimationPath__AnimationPath_P1); + I_SimpleProperty(double, AnimationTime, + __double__getAnimationTime, + 0); + I_SimpleProperty(bool, Pause, + __bool__getPause, + __void__setPause__bool); + I_SimpleProperty(const osg::Vec3d &, PivotPoint, + __C5_Vec3d_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3d_R1); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); + I_SimpleProperty(double, TimeOffset, + __double__getTimeOffset, + __void__setTimeOffset__double); + I_SimpleProperty(bool, UseInverseMatrix, + __bool__getUseInverseMatrix, + __void__setUseInverseMatrix__bool); + I_PublicMemberProperty(osg::ref_ptr< osg::AnimationPath >, _animationPath); + I_PublicMemberProperty(osg::Vec3d, _pivotPoint); + I_PublicMemberProperty(bool, _useInverseMatrix); + I_PublicMemberProperty(double, _timeOffset); + I_PublicMemberProperty(double, _timeMultiplier); + I_PublicMemberProperty(double, _firstTime); + I_PublicMemberProperty(double, _latestTime); + I_PublicMemberProperty(bool, _pause); + I_PublicMemberProperty(double, _pauseTime); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< double COMMA osg::AnimationPath::ControlPoint >) + diff --git a/src/osgWrappers/introspection/osg/ApplicationUsage.cpp b/src/osgWrappers/introspection/osg/ApplicationUsage.cpp new file mode 100644 index 000000000..fc5d1ed09 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ApplicationUsage.cpp @@ -0,0 +1,204 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ApplicationUsage::Type) + I_DeclaringFile("osg/ApplicationUsage"); + I_EnumLabel(osg::ApplicationUsage::NO_HELP); + I_EnumLabel(osg::ApplicationUsage::COMMAND_LINE_OPTION); + I_EnumLabel(osg::ApplicationUsage::ENVIRONMENTAL_VARIABLE); + I_EnumLabel(osg::ApplicationUsage::KEYBOARD_MOUSE_BINDING); + I_EnumLabel(osg::ApplicationUsage::HELP_ALL); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osg::ApplicationUsage::UsageMap) + +BEGIN_OBJECT_REFLECTOR(osg::ApplicationUsage) + I_DeclaringFile("osg/ApplicationUsage"); + I_BaseType(osg::Referenced); + I_StaticMethod0(osg::ApplicationUsage *, instance, + __ApplicationUsage_P1__instance_S, + "", + ""); + 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, + "The ApplicationName is often displayed when logging errors, and frequently incorporated into the Description (below). ", + ""); + 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, + "If non-empty, the Description is typically shown by the Help Handler as text on the Help display (which also lists keyboard abbreviations. ", + ""); + 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, + "", + ""); + I_SimpleProperty(const std::string &, ApplicationName, + __C5_std_string_R1__getApplicationName, + __void__setApplicationName__C5_std_string_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, CommandLineOptions, + __C5_UsageMap_R1__getCommandLineOptions, + __void__setCommandLineOptions__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, CommandLineOptionsDefaults, + __C5_UsageMap_R1__getCommandLineOptionsDefaults, + __void__setCommandLineOptionsDefaults__C5_UsageMap_R1); + I_SimpleProperty(const std::string &, CommandLineUsage, + __C5_std_string_R1__getCommandLineUsage, + __void__setCommandLineUsage__C5_std_string_R1); + I_SimpleProperty(const std::string &, Description, + __C5_std_string_R1__getDescription, + __void__setDescription__C5_std_string_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariables, + __C5_UsageMap_R1__getEnvironmentalVariables, + __void__setEnvironmentalVariables__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, EnvironmentalVariablesDefaults, + __C5_UsageMap_R1__getEnvironmentalVariablesDefaults, + __void__setEnvironmentalVariablesDefaults__C5_UsageMap_R1); + I_SimpleProperty(const osg::ApplicationUsage::UsageMap &, KeyboardMouseBindings, + __C5_UsageMap_R1__getKeyboardMouseBindings, + __void__setKeyboardMouseBindings__C5_UsageMap_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ApplicationUsageProxy) + I_DeclaringFile("osg/ApplicationUsage"); + I_Constructor3(IN, osg::ApplicationUsage::Type, type, IN, const std::string &, option, IN, const std::string &, explanation, + ____ApplicationUsageProxy__ApplicationUsage_Type__C5_std_string_R1__C5_std_string_R1, + "register an explanation of commandline/environmentvariable/keyboard mouse usage. ", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA std::string >) + diff --git a/src/osgWrappers/introspection/osg/ArgumentParser.cpp b/src/osgWrappers/introspection/osg/ArgumentParser.cpp new file mode 100644 index 000000000..91fec3a37 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ArgumentParser.cpp @@ -0,0 +1,315 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::ErrorSeverity) + I_DeclaringFile("osg/ArgumentParser"); + I_EnumLabel(osg::ArgumentParser::BENIGN); + I_EnumLabel(osg::ArgumentParser::CRITICAL); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >, osg::ArgumentParser::ErrorMessageMap) + +BEGIN_VALUE_REFLECTOR(osg::ArgumentParser) + I_DeclaringFile("osg/ArgumentParser"); + I_StaticMethod1(bool, isOption, IN, const char *, str, + __bool__isOption__C5_char_P1_S, + "Return true if the specified string is an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isString, IN, const char *, str, + __bool__isString__C5_char_P1_S, + "Return true if string is non-NULL and not an option in the form -option or --option. ", + ""); + I_StaticMethod1(bool, isNumber, IN, const char *, str, + __bool__isNumber__C5_char_P1_S, + "Return true if specified parameter is a number. ", + ""); + I_StaticMethod1(bool, isBool, IN, const char *, str, + __bool__isBool__C5_char_P1_S, + "Return true if specified parameter is a bool. ", + ""); + I_Constructor2(IN, int *, argc, IN, char **, argv, + ____ArgumentParser__int_P1__char_P1P1, + "", + ""); + 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 occurrence 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 occurrence of a string in the argument list. ", + "If found, remove that occurrence 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 occurred 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 occurred. ", + ""); + I_Method0(const osg::ArgumentParser::ErrorMessageMap &, getErrorMessageMap, + Properties::NON_VIRTUAL, + __C5_ErrorMessageMap_R1__getErrorMessageMap, + "Return the error message, if any has occurred. ", + ""); + 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 severity. ", + ""); + I_Method0(osg::ApplicationUsage::Type, readHelpType, + Properties::NON_VIRTUAL, + __ApplicationUsage_Type__readHelpType, + "This convinience method handles help requests on the command line. ", + "Return the type(s) of help requested. The return value of this function is suitable for passing into getApplicationUsage()->write(). If ApplicationUsage::NO_HELP is returned then no help commandline option was found on the command line. "); + I_SimpleProperty(std::string, ApplicationName, + __std_string__getApplicationName, + 0); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__ApplicationUsage_P1); + I_SimpleProperty(osg::ArgumentParser::ErrorMessageMap &, ErrorMessageMap, + __ErrorMessageMap_R1__getErrorMessageMap, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::ArgumentParser::Parameter::ParameterType) + I_DeclaringFile("osg/ArgumentParser"); + I_EnumLabel(osg::ArgumentParser::Parameter::BOOL_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::FLOAT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::DOUBLE_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::INT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::UNSIGNED_INT_PARAMETER); + I_EnumLabel(osg::ArgumentParser::Parameter::STRING_PARAMETER); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ArgumentParser::Parameter) + I_DeclaringFile("osg/ArgumentParser"); + I_Constructor1(IN, bool &, value, + Properties::NON_EXPLICIT, + ____Parameter__bool_R1, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ArgumentParser::ErrorSeverity >) + diff --git a/src/osgWrappers/introspection/osg/Array.cpp b/src/osgWrappers/introspection/osg/Array.cpp new file mode 100644 index 000000000..5017a61e2 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Array.cpp @@ -0,0 +1,708 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Array::Type) + I_DeclaringFile("osg/Array"); + I_EnumLabel(osg::Array::ArrayType); + I_EnumLabel(osg::Array::ByteArrayType); + I_EnumLabel(osg::Array::ShortArrayType); + I_EnumLabel(osg::Array::IntArrayType); + I_EnumLabel(osg::Array::UByteArrayType); + I_EnumLabel(osg::Array::UShortArrayType); + I_EnumLabel(osg::Array::UIntArrayType); + I_EnumLabel(osg::Array::Vec4ubArrayType); + I_EnumLabel(osg::Array::FloatArrayType); + I_EnumLabel(osg::Array::Vec2ArrayType); + I_EnumLabel(osg::Array::Vec3ArrayType); + I_EnumLabel(osg::Array::Vec4ArrayType); + I_EnumLabel(osg::Array::Vec2sArrayType); + I_EnumLabel(osg::Array::Vec3sArrayType); + I_EnumLabel(osg::Array::Vec4sArrayType); + I_EnumLabel(osg::Array::Vec2bArrayType); + I_EnumLabel(osg::Array::Vec3bArrayType); + I_EnumLabel(osg::Array::Vec4bArrayType); + I_EnumLabel(osg::Array::DoubleArrayType); + I_EnumLabel(osg::Array::Vec2dArrayType); + I_EnumLabel(osg::Array::Vec3dArrayType); + I_EnumLabel(osg::Array::Vec4dArrayType); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Array) + I_DeclaringFile("osg/Array"); + I_BaseType(osg::BufferData); + I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, + ____Array__Type__GLint__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Array__C5_Array_R1__C5_CopyOp_R1, + "", + ""); + 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_Method1(void, setVertexBufferObject, IN, osg::VertexBufferObject *, vbo, + Properties::NON_VIRTUAL, + __void__setVertexBufferObject__osg_VertexBufferObject_P1, + "Set the VertexBufferObject. ", + ""); + I_Method0(osg::VertexBufferObject *, getVertexBufferObject, + Properties::NON_VIRTUAL, + __osg_VertexBufferObject_P1__getVertexBufferObject, + "Get the VertexBufferObject. ", + "If no VBO is assigned returns NULL "); + I_Method0(const osg::VertexBufferObject *, getVertexBufferObject, + Properties::NON_VIRTUAL, + __C5_osg_VertexBufferObject_P1__getVertexBufferObject, + "Get the const VertexBufferObject. ", + "If no VBO is assigned returns NULL "); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(GLint, DataSize, + __GLint__getDataSize, + 0); + I_SimpleProperty(GLenum, DataType, + __GLenum__getDataType, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); + I_SimpleProperty(osg::Array::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(osg::VertexBufferObject *, VertexBufferObject, + __osg_VertexBufferObject_P1__getVertexBufferObject, + __void__setVertexBufferObject__osg_VertexBufferObject_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ArrayVisitor) + I_DeclaringFile("osg/Array"); + 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::DoubleArray &, x, + Properties::VIRTUAL, + __void__apply__DoubleArray_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, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2dArray &, x, + Properties::VIRTUAL, + __void__apply__Vec2dArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3dArray &, x, + Properties::VIRTUAL, + __void__apply__Vec3dArray_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4dArray &, x, + Properties::VIRTUAL, + __void__apply__Vec4dArray_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ConstArrayVisitor) + I_DeclaringFile("osg/Array"); + 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::DoubleArray &, x, + Properties::VIRTUAL, + __void__apply__C5_DoubleArray_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, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2dArray &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec2dArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3dArray &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec3dArray_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4dArray &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec4dArray_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ConstValueVisitor) + I_DeclaringFile("osg/Array"); + 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 GLdouble &, x, + Properties::VIRTUAL, + __void__apply__C5_GLdouble_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, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec2d &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec2d_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec3d &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec3d_R1, + "", + ""); + I_Method1(void, apply, IN, const osg::Vec4d &, x, + Properties::VIRTUAL, + __void__apply__C5_Vec4d_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) + I_DeclaringFile("osg/Array"); + I_BaseType(osg::Array); + I_ConstructorWithDefaults3(IN, osg::Array::Type, arrayType, osg::Array::ArrayType, IN, GLint, dataSize, 0, IN, GLenum, dataType, 0, + ____IndexArray__Type__GLint__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Array &, array, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____IndexArray__C5_Array_R1__C5_CopyOp_R1, + "", + ""); + 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) + I_DeclaringFile("osg/Array"); + 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, GLdouble &, x, + Properties::VIRTUAL, + __void__apply__GLdouble_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, + "", + ""); + I_Method1(void, apply, IN, osg::Vec2d &, x, + Properties::VIRTUAL, + __void__apply__Vec2d_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __void__apply__Vec3d_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Vec4d &, x, + Properties::VIRTUAL, + __void__apply__Vec4d_R1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLbyte COMMA osg::Array::ByteArrayType COMMA 1 COMMA GL_BYTE >, osg::ByteArray) + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLshort COMMA osg::Array::ShortArrayType COMMA 1 COMMA GL_SHORT >, osg::ShortArray) + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLint COMMA osg::Array::IntArrayType COMMA 1 COMMA GL_INT >, osg::IntArray) + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLubyte COMMA osg::Array::UByteArrayType COMMA 1 COMMA GL_UNSIGNED_BYTE >, osg::UByteArray) + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLushort COMMA osg::Array::UShortArrayType COMMA 1 COMMA GL_UNSIGNED_SHORT >, osg::UShortArray) + +TYPE_NAME_ALIAS(osg::TemplateIndexArray< GLuint COMMA osg::Array::UIntArrayType COMMA 1 COMMA GL_UNSIGNED_INT >, osg::UIntArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< GLfloat COMMA osg::Array::FloatArrayType COMMA 1 COMMA GL_FLOAT >, osg::FloatArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2 COMMA osg::Array::Vec2ArrayType COMMA 2 COMMA GL_FLOAT >, osg::Vec2Array) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3 COMMA osg::Array::Vec3ArrayType COMMA 3 COMMA GL_FLOAT >, osg::Vec3Array) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4 COMMA osg::Array::Vec4ArrayType COMMA 4 COMMA GL_FLOAT >, osg::Vec4Array) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4ub COMMA osg::Array::Vec4ubArrayType COMMA 4 COMMA GL_UNSIGNED_BYTE >, osg::Vec4ubArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2s COMMA osg::Array::Vec2sArrayType COMMA 2 COMMA GL_SHORT >, osg::Vec2sArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3s COMMA osg::Array::Vec3sArrayType COMMA 3 COMMA GL_SHORT >, osg::Vec3sArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4s COMMA osg::Array::Vec4sArrayType COMMA 4 COMMA GL_SHORT >, osg::Vec4sArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2b COMMA osg::Array::Vec2bArrayType COMMA 2 COMMA GL_BYTE >, osg::Vec2bArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3b COMMA osg::Array::Vec3bArrayType COMMA 3 COMMA GL_BYTE >, osg::Vec3bArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4b COMMA osg::Array::Vec4bArrayType COMMA 4 COMMA GL_BYTE >, osg::Vec4bArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< GLdouble COMMA osg::Array::DoubleArrayType COMMA 1 COMMA GL_DOUBLE >, osg::DoubleArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec2d COMMA osg::Array::Vec2dArrayType COMMA 2 COMMA GL_DOUBLE >, osg::Vec2dArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec3d COMMA osg::Array::Vec3dArrayType COMMA 3 COMMA GL_DOUBLE >, osg::Vec3dArray) + +TYPE_NAME_ALIAS(osg::TemplateArray< osg::Vec4d COMMA osg::Array::Vec4dArrayType COMMA 4 COMMA GL_DOUBLE >, osg::Vec4dArray) + diff --git a/src/osgWrappers/introspection/osg/ArrayDispatchers.cpp b/src/osgWrappers/introspection/osg/ArrayDispatchers.cpp new file mode 100644 index 000000000..d0845d7d9 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ArrayDispatchers.cpp @@ -0,0 +1,197 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ArrayDispatchers) + I_DeclaringFile("osg/ArrayDispatchers"); + I_BaseType(osg::Referenced); + I_Constructor0(____ArrayDispatchers, + "", + ""); + I_Method1(void, setState, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__setState__osg_State_P1, + "", + ""); + I_Method2(osg::AttributeDispatch *, vertexDispatcher, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__vertexDispatcher__Array_P1__IndexArray_P1, + "", + ""); + I_Method2(osg::AttributeDispatch *, normalDispatcher, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__normalDispatcher__Array_P1__IndexArray_P1, + "", + ""); + I_Method2(osg::AttributeDispatch *, colorDispatcher, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__colorDispatcher__Array_P1__IndexArray_P1, + "", + ""); + I_Method2(osg::AttributeDispatch *, secondaryColorDispatcher, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__secondaryColorDispatcher__Array_P1__IndexArray_P1, + "", + ""); + I_Method2(osg::AttributeDispatch *, fogCoordDispatcher, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__fogCoordDispatcher__Array_P1__IndexArray_P1, + "", + ""); + I_Method3(osg::AttributeDispatch *, texCoordDispatcher, IN, unsigned int, unit, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__texCoordDispatcher__unsigned_int__Array_P1__IndexArray_P1, + "", + ""); + I_Method3(osg::AttributeDispatch *, vertexAttribDispatcher, IN, unsigned int, unit, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __AttributeDispatch_P1__vertexAttribDispatcher__unsigned_int__Array_P1__IndexArray_P1, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setUseGLBeginEndAdapter, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseGLBeginEndAdapter__bool, + "", + ""); + I_Method0(bool, getUseGLBeginEndAdapter, + Properties::NON_VIRTUAL, + __bool__getUseGLBeginEndAdapter, + "", + ""); + I_Method1(void, setUseVertexAttribAlias, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseVertexAttribAlias__bool, + "", + ""); + I_Method0(bool, getUseVertexAttribAlias, + Properties::NON_VIRTUAL, + __bool__getUseVertexAttribAlias, + "", + ""); + I_Method2(void, activate, IN, unsigned int, binding, IN, osg::AttributeDispatch *, at, + Properties::NON_VIRTUAL, + __void__activate__unsigned_int__AttributeDispatch_P1, + "", + ""); + I_Method3(void, activateVertexArray, IN, unsigned int, binding, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateVertexArray__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method3(void, activateColorArray, IN, unsigned int, binding, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateColorArray__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method3(void, activateNormalArray, IN, unsigned int, binding, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateNormalArray__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method3(void, activateSecondaryColorArray, IN, unsigned int, binding, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateSecondaryColorArray__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method3(void, activateFogCoordArray, IN, unsigned int, binding, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateFogCoordArray__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method4(void, activateTexCoordArray, IN, unsigned int, binding, IN, unsigned int, unit, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateTexCoordArray__unsigned_int__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method4(void, activateVertexAttribArray, IN, unsigned int, binding, IN, unsigned int, unit, IN, osg::Array *, array, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__activateVertexAttribArray__unsigned_int__unsigned_int__osg_Array_P1__osg_IndexArray_P1, + "", + ""); + I_Method2(void, dispatch, IN, unsigned int, binding, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__dispatch__unsigned_int__unsigned_int, + "", + ""); + I_Method1(bool, active, IN, unsigned int, binding, + Properties::NON_VIRTUAL, + __bool__active__unsigned_int, + "", + ""); + I_Method1(void, Begin, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__Begin__GLenum, + "", + ""); + I_Method0(void, End, + Properties::NON_VIRTUAL, + __void__End, + "", + ""); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "", + ""); + I_ProtectedMethod1(void, assignTexCoordDispatchers, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__assignTexCoordDispatchers__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, assignVertexAttribDispatchers, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__assignVertexAttribDispatchers__unsigned_int, + "", + ""); + I_SimpleProperty(osg::State *, State, + 0, + __void__setState__osg_State_P1); + I_SimpleProperty(bool, UseGLBeginEndAdapter, + __bool__getUseGLBeginEndAdapter, + __void__setUseGLBeginEndAdapter__bool); + I_SimpleProperty(bool, UseVertexAttribAlias, + __bool__getUseVertexAttribAlias, + __void__setUseVertexAttribAlias__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AttributeDispatch) + I_DeclaringFile("osg/ArrayDispatchers"); + I_BaseType(osg::Referenced); + I_Constructor0(____AttributeDispatch, + "", + ""); + I_Method2(void, assign, IN, const GLvoid *, x, IN, const osg::IndexArray *, x, + Properties::VIRTUAL, + __void__assign__C5_GLvoid_P1__C5_IndexArray_P1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/AudioStream.cpp b/src/osgWrappers/introspection/osg/AudioStream.cpp new file mode 100644 index 000000000..8497923b8 --- /dev/null +++ b/src/osgWrappers/introspection/osg/AudioStream.cpp @@ -0,0 +1,152 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AudioSink) + I_DeclaringFile("osg/AudioStream"); + I_BaseType(osg::Object); + I_Constructor0(____AudioSink, + "", + ""); + 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, play, + Properties::PURE_VIRTUAL, + __void__play, + "", + ""); + I_Method0(void, pause, + Properties::PURE_VIRTUAL, + __void__pause, + "", + ""); + I_Method0(void, stop, + Properties::PURE_VIRTUAL, + __void__stop, + "", + ""); + I_Method0(bool, playing, + Properties::PURE_VIRTUAL, + __bool__playing, + "", + ""); + I_Method0(double, getDelay, + Properties::VIRTUAL, + __double__getDelay, + "", + ""); + I_Method1(void, setDelay, IN, const double, delay, + Properties::VIRTUAL, + __void__setDelay__C5_double, + "", + ""); + I_Method1(void, setVolume, IN, float, x, + Properties::VIRTUAL, + __void__setVolume__float, + "", + ""); + I_Method0(float, getVolume, + Properties::VIRTUAL, + __float__getVolume, + "", + ""); + I_SimpleProperty(double, Delay, + __double__getDelay, + 0); + I_SimpleProperty(float, Volume, + __float__getVolume, + __void__setVolume__float); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::AudioStream::SampleFormat) + I_DeclaringFile("osg/AudioStream"); + I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_U8); + I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S16); + I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S24); + I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_S32); + I_EnumLabel(osg::AudioStream::SAMPLE_FORMAT_F32); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::AudioStream) + I_DeclaringFile("osg/AudioStream"); + I_BaseType(osg::Object); + I_Constructor0(____AudioStream, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AudioStream &, audio, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AudioStream__C5_AudioStream_R1__C5_CopyOp_R1, + "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(void, setAudioSink, IN, osg::AudioSink *, audio_sink, + Properties::PURE_VIRTUAL, + __void__setAudioSink__osg_AudioSink_P1, + "", + ""); + I_Method2(void, consumeAudioBuffer, IN, void *const, buffer, IN, const size_t, size, + Properties::PURE_VIRTUAL, + __void__consumeAudioBuffer__void_P1C5__C5_size_t, + "", + ""); + I_Method0(int, audioFrequency, + Properties::PURE_VIRTUAL, + __int__audioFrequency, + "", + ""); + I_Method0(int, audioNbChannels, + Properties::PURE_VIRTUAL, + __int__audioNbChannels, + "", + ""); + I_Method0(osg::AudioStream::SampleFormat, audioSampleFormat, + Properties::PURE_VIRTUAL, + __SampleFormat__audioSampleFormat, + "", + ""); + I_SimpleProperty(osg::AudioSink *, AudioSink, + 0, + __void__setAudioSink__osg_AudioSink_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/AutoTransform.cpp b/src/osgWrappers/introspection/osg/AutoTransform.cpp new file mode 100644 index 000000000..5d4414eca --- /dev/null +++ b/src/osgWrappers/introspection/osg/AutoTransform.cpp @@ -0,0 +1,244 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::AutoTransform::AutoRotateMode) + I_DeclaringFile("osg/AutoTransform"); + I_EnumLabel(osg::AutoTransform::NO_ROTATION); + I_EnumLabel(osg::AutoTransform::ROTATE_TO_SCREEN); + I_EnumLabel(osg::AutoTransform::ROTATE_TO_CAMERA); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::AutoTransform) + I_DeclaringFile("osg/AutoTransform"); + I_BaseType(osg::Transform); + I_Constructor0(____AutoTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::AutoTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AutoTransform__C5_AutoTransform_R1__C5_CopyOp_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__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::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, 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, double, scale, + Properties::NON_VIRTUAL, + __void__setScale__double, + "", + ""); + 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, setMinimumScale, IN, double, minimumScale, + Properties::NON_VIRTUAL, + __void__setMinimumScale__double, + "", + ""); + I_Method0(double, getMinimumScale, + Properties::NON_VIRTUAL, + __double__getMinimumScale, + "", + ""); + I_Method1(void, setMaximumScale, IN, double, maximumScale, + Properties::NON_VIRTUAL, + __void__setMaximumScale__double, + "", + ""); + I_Method0(double, getMaximumScale, + Properties::NON_VIRTUAL, + __double__getMaximumScale, + "", + ""); + 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, 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_Method1(void, setAutoScaleTransitionWidthRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setAutoScaleTransitionWidthRatio__float, + "", + ""); + I_Method0(float, getAutoScaleTransitionWidthRatio, + Properties::NON_VIRTUAL, + __float__getAutoScaleTransitionWidthRatio, + "", + ""); + 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). "); + I_ProtectedMethod0(void, computeMatrix, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeMatrix, + "", + ""); + I_SimpleProperty(osg::AutoTransform::AutoRotateMode, AutoRotateMode, + __AutoRotateMode__getAutoRotateMode, + __void__setAutoRotateMode__AutoRotateMode); + I_SimpleProperty(bool, AutoScaleToScreen, + __bool__getAutoScaleToScreen, + __void__setAutoScaleToScreen__bool); + I_SimpleProperty(float, AutoScaleTransitionWidthRatio, + __float__getAutoScaleTransitionWidthRatio, + __void__setAutoScaleTransitionWidthRatio__float); + I_SimpleProperty(float, AutoUpdateEyeMovementTolerance, + __float__getAutoUpdateEyeMovementTolerance, + __void__setAutoUpdateEyeMovementTolerance__float); + I_SimpleProperty(double, MaximumScale, + __double__getMaximumScale, + __void__setMaximumScale__double); + I_SimpleProperty(double, MinimumScale, + __double__getMinimumScale, + __void__setMinimumScale__double); + I_SimpleProperty(const osg::Vec3d &, PivotPoint, + __C5_Vec3d_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_Vec3d_R1__getPosition, + __void__setPosition__C5_Vec3d_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); + I_SimpleProperty(const osg::Vec3d &, Scale, + __C5_Vec3d_R1__getScale, + __void__setScale__C5_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Billboard.cpp b/src/osgWrappers/introspection/osg/Billboard.cpp new file mode 100644 index 000000000..d24c5f36a --- /dev/null +++ b/src/osgWrappers/introspection/osg/Billboard.cpp @@ -0,0 +1,184 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Billboard::Mode) + I_DeclaringFile("osg/Billboard"); + I_EnumLabel(osg::Billboard::POINT_ROT_EYE); + I_EnumLabel(osg::Billboard::POINT_ROT_WORLD); + I_EnumLabel(osg::Billboard::AXIAL_ROT); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::Billboard::PositionList) + +BEGIN_OBJECT_REFLECTOR(osg::Billboard) + I_DeclaringFile("osg/Billboard"); + I_BaseType(osg::Geode); + I_Constructor0(____Billboard, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Billboard &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Billboard__C5_Billboard_R1__C5_CopyOp_R1, + "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 utilized 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(). "); + I_ProtectedMethod0(void, updateCache, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateCache, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Axis, + __C5_Vec3_R1__getAxis, + __void__setAxis__C5_Vec3_R1); + I_SimpleProperty(osg::Billboard::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(const osg::Vec3 &, Normal, + __C5_Vec3_R1__getNormal, + __void__setNormal__C5_Vec3_R1); + I_IndexedProperty(const osg::Vec3 &, Position, + __C5_Vec3_R1__getPosition__unsigned_int, + __void__setPosition__unsigned_int__C5_Vec3_R1, + 0); + I_SimpleProperty(osg::Billboard::PositionList &, PositionList, + __PositionList_R1__getPositionList, + __void__setPositionList__PositionList_R1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 >) + diff --git a/src/osgWrappers/introspection/osg/BlendColor.cpp b/src/osgWrappers/introspection/osg/BlendColor.cpp new file mode 100644 index 000000000..fa15c052f --- /dev/null +++ b/src/osgWrappers/introspection/osg/BlendColor.cpp @@ -0,0 +1,118 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::BlendColor) + I_DeclaringFile("osg/BlendColor"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____BlendColor, + "", + ""); + I_Constructor1(IN, const osg::Vec4 &, constantColor, + Properties::NON_EXPLICIT, + ____BlendColor__C5_osg_Vec4_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendColor &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendColor__C5_BlendColor_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_StaticMethod2(osg::BlendColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendColor::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec4 &, ConstantColor, + __C5_osg_Vec4_R1__getConstantColor, + __void__setConstantColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/BlendEquation.cpp b/src/osgWrappers/introspection/osg/BlendEquation.cpp new file mode 100644 index 000000000..bea871cfe --- /dev/null +++ b/src/osgWrappers/introspection/osg/BlendEquation.cpp @@ -0,0 +1,154 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::BlendEquation::Equation) + I_DeclaringFile("osg/BlendEquation"); + I_EnumLabel(osg::BlendEquation::RGBA_MIN); + I_EnumLabel(osg::BlendEquation::RGBA_MAX); + I_EnumLabel(osg::BlendEquation::ALPHA_MIN); + I_EnumLabel(osg::BlendEquation::ALPHA_MAX); + I_EnumLabel(osg::BlendEquation::LOGIC_OP); + I_EnumLabel(osg::BlendEquation::FUNC_ADD); + I_EnumLabel(osg::BlendEquation::FUNC_SUBTRACT); + I_EnumLabel(osg::BlendEquation::FUNC_REVERSE_SUBTRACT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::BlendEquation) + I_DeclaringFile("osg/BlendEquation"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____BlendEquation, + "", + ""); + I_Constructor1(IN, osg::BlendEquation::Equation, equation, + Properties::NON_EXPLICIT, + ____BlendEquation__Equation, + "", + ""); + I_Constructor2(IN, osg::BlendEquation::Equation, equationRGB, IN, osg::BlendEquation::Equation, equationAlpha, + ____BlendEquation__Equation__Equation, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendEquation &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendEquation__C5_BlendEquation_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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, setEquationRGB, IN, osg::BlendEquation::Equation, equation, + Properties::NON_VIRTUAL, + __void__setEquationRGB__Equation, + "", + ""); + I_Method0(osg::BlendEquation::Equation, getEquationRGB, + Properties::NON_VIRTUAL, + __Equation__getEquationRGB, + "", + ""); + I_Method1(void, setEquationAlpha, IN, osg::BlendEquation::Equation, equation, + Properties::NON_VIRTUAL, + __void__setEquationAlpha__Equation, + "", + ""); + I_Method0(osg::BlendEquation::Equation, getEquationAlpha, + Properties::NON_VIRTUAL, + __Equation__getEquationAlpha, + "", + ""); + 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_StaticMethod2(osg::BlendEquation::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendEquation::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(osg::BlendEquation::Equation, Equation, + __Equation__getEquation, + __void__setEquation__Equation); + I_SimpleProperty(osg::BlendEquation::Equation, EquationAlpha, + __Equation__getEquationAlpha, + __void__setEquationAlpha__Equation); + I_SimpleProperty(osg::BlendEquation::Equation, EquationRGB, + __Equation__getEquationRGB, + __void__setEquationRGB__Equation); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/BlendFunc.cpp b/src/osgWrappers/introspection/osg/BlendFunc.cpp new file mode 100644 index 000000000..c7e4b5377 --- /dev/null +++ b/src/osgWrappers/introspection/osg/BlendFunc.cpp @@ -0,0 +1,209 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::BlendFunc::BlendFuncMode) + I_DeclaringFile("osg/BlendFunc"); + I_EnumLabel(osg::BlendFunc::DST_ALPHA); + I_EnumLabel(osg::BlendFunc::DST_COLOR); + I_EnumLabel(osg::BlendFunc::ONE); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_DST_ALPHA); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_DST_COLOR); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_SRC_ALPHA); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_SRC_COLOR); + I_EnumLabel(osg::BlendFunc::SRC_ALPHA); + I_EnumLabel(osg::BlendFunc::SRC_ALPHA_SATURATE); + I_EnumLabel(osg::BlendFunc::SRC_COLOR); + I_EnumLabel(osg::BlendFunc::CONSTANT_COLOR); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_CONSTANT_COLOR); + I_EnumLabel(osg::BlendFunc::CONSTANT_ALPHA); + I_EnumLabel(osg::BlendFunc::ONE_MINUS_CONSTANT_ALPHA); + I_EnumLabel(osg::BlendFunc::ZERO); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::BlendFunc) + I_DeclaringFile("osg/BlendFunc"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____BlendFunc, + "", + ""); + I_Constructor2(IN, GLenum, source, IN, GLenum, destination, + ____BlendFunc__GLenum__GLenum, + "", + ""); + I_Constructor4(IN, GLenum, source, IN, GLenum, destination, IN, GLenum, source_alpha, IN, GLenum, destination_alpha, + ____BlendFunc__GLenum__GLenum__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BlendFunc &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlendFunc__C5_BlendFunc_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_StaticMethod2(osg::BlendFunc::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::BlendFunc::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(GLenum, Destination, + __GLenum__getDestination, + __void__setDestination__GLenum); + I_SimpleProperty(GLenum, DestinationAlpha, + __GLenum__getDestinationAlpha, + __void__setDestinationAlpha__GLenum); + I_SimpleProperty(GLenum, DestinationRGB, + __GLenum__getDestinationRGB, + __void__setDestinationRGB__GLenum); + I_SimpleProperty(GLenum, Source, + __GLenum__getSource, + __void__setSource__GLenum); + I_SimpleProperty(GLenum, SourceAlpha, + __GLenum__getSourceAlpha, + __void__setSourceAlpha__GLenum); + I_SimpleProperty(GLenum, SourceRGB, + __GLenum__getSourceRGB, + __void__setSourceRGB__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/BoundingBox.cpp b/src/osgWrappers/introspection/osg/BoundingBox.cpp new file mode 100644 index 000000000..9306aa845 --- /dev/null +++ b/src/osgWrappers/introspection/osg/BoundingBox.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(osg::BoundingBoxImpl< osg::Vec3f >, osg::BoundingBoxf) + +TYPE_NAME_ALIAS(osg::BoundingBoxImpl< osg::Vec3d >, osg::BoundingBoxd) + +TYPE_NAME_ALIAS(osg::BoundingBoxf, osg::BoundingBox) + diff --git a/src/osgWrappers/introspection/osg/BoundingSphere.cpp b/src/osgWrappers/introspection/osg/BoundingSphere.cpp new file mode 100644 index 000000000..e4959df8a --- /dev/null +++ b/src/osgWrappers/introspection/osg/BoundingSphere.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(osg::BoundingSphereImpl< osg::Vec3f >, osg::BoundingSpheref) + +TYPE_NAME_ALIAS(osg::BoundingSphereImpl< osg::Vec3d >, osg::BoundingSphered) + +TYPE_NAME_ALIAS(osg::BoundingSpheref, osg::BoundingSphere) + diff --git a/src/osgWrappers/introspection/osg/BufferObject.cpp b/src/osgWrappers/introspection/osg/BufferObject.cpp new file mode 100644 index 000000000..8be929dc7 --- /dev/null +++ b/src/osgWrappers/introspection/osg/BufferObject.cpp @@ -0,0 +1,1154 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferData) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::Object); + I_Constructor0(____BufferData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BufferData &, bd, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BufferData__C5_BufferData_R1__C5_CopyOp_R1, + "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(const GLvoid *, getDataPointer, + Properties::PURE_VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::PURE_VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + I_Method1(void, setBufferObject, IN, osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __void__setBufferObject__BufferObject_P1, + "", + ""); + I_Method0(osg::BufferObject *, getBufferObject, + Properties::NON_VIRTUAL, + __BufferObject_P1__getBufferObject, + "", + ""); + I_Method0(const osg::BufferObject *, getBufferObject, + Properties::NON_VIRTUAL, + __C5_BufferObject_P1__getBufferObject, + "", + ""); + I_Method1(void, setBufferIndex, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__setBufferIndex__unsigned_int, + "", + ""); + I_Method0(unsigned int, getBufferIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getBufferIndex, + "", + ""); + I_Method1(osg::GLBufferObject *, getGLBufferObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__getGLBufferObject__unsigned_int, + "", + ""); + I_Method1(osg::GLBufferObject *, getOrCreateGLBufferObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__getOrCreateGLBufferObject__unsigned_int, + "", + ""); + 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_SimpleProperty(unsigned int, BufferIndex, + __unsigned_int__getBufferIndex, + __void__setBufferIndex__unsigned_int); + I_SimpleProperty(osg::BufferObject *, BufferObject, + __BufferObject_P1__getBufferObject, + __void__setBufferObject__BufferObject_P1); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::BufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::Object); + I_Constructor0(____BufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::BufferObject &, bo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BufferObject__C5_BufferObject_R1__C5_CopyOp_R1, + "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(void, setTarget, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__setTarget__GLenum, + "", + ""); + I_Method0(GLenum, getTarget, + Properties::NON_VIRTUAL, + __GLenum__getTarget, + "", + ""); + I_Method1(void, setUsage, IN, GLenum, usage, + Properties::NON_VIRTUAL, + __void__setUsage__GLenum, + "Set what type of usage the buffer object will have. ", + "Options are: GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. "); + I_Method0(GLenum, getUsage, + Properties::NON_VIRTUAL, + __GLenum__getUsage, + "Get the type of usage the buffer object has been set up for. ", + ""); + I_Method0(osg::BufferObjectProfile &, getProfile, + Properties::NON_VIRTUAL, + __BufferObjectProfile_R1__getProfile, + "", + ""); + I_Method0(const osg::BufferObjectProfile &, getProfile, + Properties::NON_VIRTUAL, + __C5_BufferObjectProfile_R1__getProfile, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "", + ""); + 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 objects for all graphics contexts. "); + I_Method1(unsigned int, addBufferData, IN, osg::BufferData *, bd, + Properties::NON_VIRTUAL, + __unsigned_int__addBufferData__BufferData_P1, + "", + ""); + I_Method1(void, removeBufferData, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__removeBufferData__unsigned_int, + "", + ""); + I_Method1(void, removeBufferData, IN, osg::BufferData *, bd, + Properties::NON_VIRTUAL, + __void__removeBufferData__BufferData_P1, + "", + ""); + I_Method2(void, setBufferData, IN, unsigned int, index, IN, osg::BufferData *, bd, + Properties::NON_VIRTUAL, + __void__setBufferData__unsigned_int__BufferData_P1, + "", + ""); + I_Method1(osg::BufferData *, getBufferData, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __BufferData_P1__getBufferData__unsigned_int, + "", + ""); + I_Method1(const osg::BufferData *, getBufferData, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __C5_BufferData_P1__getBufferData__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumBufferData, + Properties::NON_VIRTUAL, + __unsigned_int__getNumBufferData, + "", + ""); + I_Method2(void, setGLBufferObject, IN, unsigned int, contextID, IN, osg::GLBufferObject *, glbo, + Properties::NON_VIRTUAL, + __void__setGLBufferObject__unsigned_int__GLBufferObject_P1, + "", + ""); + I_Method1(osg::GLBufferObject *, getGLBufferObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__getGLBufferObject__unsigned_int, + "", + ""); + I_Method1(osg::GLBufferObject *, getOrCreateGLBufferObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__getOrCreateGLBufferObject__unsigned_int, + "", + ""); + I_Method0(unsigned int, computeRequiredBufferSize, + Properties::NON_VIRTUAL, + __unsigned_int__computeRequiredBufferSize, + "", + ""); + I_StaticMethod2(void, deleteBufferObject, IN, unsigned int, contextID, IN, GLuint, globj, + __void__deleteBufferObject__unsigned_int__GLuint_S, + "deprecated, provided for backwards compatibility. ", + ""); + I_ArrayProperty(osg::BufferData *, BufferData, + __BufferData_P1__getBufferData__unsigned_int, + __void__setBufferData__unsigned_int__BufferData_P1, + __unsigned_int__getNumBufferData, + __unsigned_int__addBufferData__BufferData_P1, + 0, + __void__removeBufferData__unsigned_int); + I_IndexedProperty(osg::GLBufferObject *, GLBufferObject, + __GLBufferObject_P1__getGLBufferObject__unsigned_int, + __void__setGLBufferObject__unsigned_int__GLBufferObject_P1, + 0); + I_SimpleProperty(osg::BufferObjectProfile &, Profile, + __BufferObjectProfile_R1__getProfile, + 0); + I_SimpleProperty(GLenum, Target, + __GLenum__getTarget, + __void__setTarget__GLenum); + I_SimpleProperty(GLenum, Usage, + __GLenum__getUsage, + __void__setUsage__GLenum); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::BufferObjectProfile) + I_DeclaringFile("osg/BufferObject"); + I_Constructor0(____BufferObjectProfile, + "", + ""); + I_Constructor3(IN, GLenum, target, IN, GLenum, usage, IN, unsigned int, size, + ____BufferObjectProfile__GLenum__GLenum__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::BufferObjectProfile &, bpo, + Properties::NON_EXPLICIT, + ____BufferObjectProfile__C5_BufferObjectProfile_R1, + "", + ""); + I_Method3(void, setProfile, IN, GLenum, target, IN, GLenum, usage, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setProfile__GLenum__GLenum__unsigned_int, + "", + ""); + I_PublicMemberProperty(GLenum, _target); + I_PublicMemberProperty(GLenum, _usage); + I_PublicMemberProperty(GLenum, _size); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ElementBufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::BufferObject); + I_Constructor0(____ElementBufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ElementBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ElementBufferObject__C5_ElementBufferObject_R1__C5_CopyOp_R1, + "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 &, 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_Method1(unsigned int, addDrawElements, IN, osg::DrawElements *, PrimitiveSet, + Properties::NON_VIRTUAL, + __unsigned_int__addDrawElements__osg_DrawElements_P1, + "", + ""); + I_Method1(void, removeDrawElements, IN, osg::DrawElements *, PrimitiveSet, + Properties::NON_VIRTUAL, + __void__removeDrawElements__osg_DrawElements_P1, + "", + ""); + I_Method2(void, setDrawElements, IN, unsigned int, i, IN, osg::DrawElements *, PrimitiveSet, + Properties::NON_VIRTUAL, + __void__setDrawElements__unsigned_int__DrawElements_P1, + "", + ""); + I_Method1(osg::DrawElements *, getDrawElements, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __DrawElements_P1__getDrawElements__unsigned_int, + "", + ""); + I_Method1(const osg::DrawElements *, getDrawElements, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_DrawElements_P1__getDrawElements__unsigned_int, + "", + ""); + I_IndexedProperty(osg::DrawElements *, DrawElements, + __DrawElements_P1__getDrawElements__unsigned_int, + __void__setDrawElements__unsigned_int__DrawElements_P1, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::GLBufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults3(IN, unsigned int, contextID, , IN, osg::BufferObject *, bufferObject, , IN, unsigned int, glObjectID, 0, + ____GLBufferObject__unsigned_int__BufferObject_P1__unsigned_int, + "", + ""); + I_Method1(void, setProfile, IN, const osg::BufferObjectProfile &, profile, + Properties::NON_VIRTUAL, + __void__setProfile__C5_BufferObjectProfile_R1, + "", + ""); + I_Method0(const osg::BufferObjectProfile &, getProfile, + Properties::NON_VIRTUAL, + __C5_BufferObjectProfile_R1__getProfile, + "", + ""); + I_Method1(void, setBufferObject, IN, osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __void__setBufferObject__BufferObject_P1, + "", + ""); + I_Method0(osg::BufferObject *, getBufferObject, + Properties::NON_VIRTUAL, + __BufferObject_P1__getBufferObject, + "", + ""); + I_Method0(unsigned int, getContextID, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "", + ""); + I_Method0(GLuint &, getGLObjectID, + Properties::NON_VIRTUAL, + __GLuint_R1__getGLObjectID, + "", + ""); + I_Method0(GLuint, getGLObjectID, + Properties::NON_VIRTUAL, + __GLuint__getGLObjectID, + "", + ""); + I_Method1(GLsizeiptrARB, getOffset, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __GLsizeiptrARB__getOffset__unsigned_int, + "", + ""); + I_Method0(void, bindBuffer, + Properties::NON_VIRTUAL, + __void__bindBuffer, + "", + ""); + I_Method0(void, unbindBuffer, + Properties::NON_VIRTUAL, + __void__unbindBuffer, + "", + ""); + I_Method0(bool, isDirty, + Properties::NON_VIRTUAL, + __bool__isDirty, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method0(void, compileBuffer, + Properties::NON_VIRTUAL, + __void__compileBuffer, + "", + ""); + I_Method0(void, deleteGLObject, + Properties::NON_VIRTUAL, + __void__deleteGLObject, + "", + ""); + I_Method1(void, assign, IN, osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __void__assign__BufferObject_P1, + "", + ""); + I_Method0(bool, isPBOSupported, + Properties::NON_VIRTUAL, + __bool__isPBOSupported, + "", + ""); + I_StaticMethod2(osg::GLBufferObject *, createGLBufferObject, IN, unsigned int, contextID, IN, const osg::BufferObject *, bufferObject, + __GLBufferObject_P1__createGLBufferObject__unsigned_int__C5_BufferObject_P1_S, + "", + ""); + I_StaticMethod1(void, deleteAllBufferObjects, IN, unsigned int, contextID, + __void__deleteAllBufferObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, discardAllBufferObjects, IN, unsigned int, contextID, + __void__discardAllBufferObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, flushAllDeletedBufferObjects, IN, unsigned int, contextID, + __void__flushAllDeletedBufferObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, discardAllDeletedBufferObjects, IN, unsigned int, contextID, + __void__discardAllDeletedBufferObjects__unsigned_int_S, + "", + ""); + I_StaticMethod3(void, flushDeletedBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availbleTime, + __void__flushDeletedBufferObjects__unsigned_int__double__double_R1_S, + "", + ""); + I_StaticMethod2(void, releaseGLBufferObject, IN, unsigned int, contextID, IN, osg::GLBufferObject *, to, + __void__releaseGLBufferObject__unsigned_int__GLBufferObject_P1_S, + "", + ""); + I_StaticMethod2(osg::GLBufferObject::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object is only created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::GLBufferObject::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(osg::BufferObject *, BufferObject, + __BufferObject_P1__getBufferObject, + __void__setBufferObject__BufferObject_P1); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + 0); + I_SimpleProperty(GLuint, GLObjectID, + __GLuint__getGLObjectID, + 0); + I_SimpleProperty(const osg::BufferObjectProfile &, Profile, + __C5_BufferObjectProfile_R1__getProfile, + __void__setProfile__C5_BufferObjectProfile_R1); + I_PublicMemberProperty(osg::GLBufferObjectSet *, _set); + I_PublicMemberProperty(osg::GLBufferObject *, _previous); + I_PublicMemberProperty(osg::GLBufferObject *, _next); + I_PublicMemberProperty(unsigned int, _frameLastUsed); + I_PublicMemberProperty(osg::GLBufferObject::Extensions *, _extensions); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::GLBufferObject::BufferEntry) + I_DeclaringFile("osg/BufferObject"); + I_Constructor0(____BufferEntry, + "", + ""); + I_Constructor1(IN, const osg::GLBufferObject::BufferEntry &, rhs, + Properties::NON_EXPLICIT, + ____BufferEntry__C5_BufferEntry_R1, + "", + ""); + I_PublicMemberProperty(unsigned int, modifiedCount); + I_PublicMemberProperty(unsigned int, dataSize); + I_PublicMemberProperty(unsigned int, offset); + I_PublicMemberProperty(osg::BufferData *, dataSource); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::GLBufferObjectManager) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____GLBufferObjectManager__unsigned_int, + "", + ""); + I_Method0(unsigned int, getContextID, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "", + ""); + I_Method1(void, setNumberActiveGLBufferObjects, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setNumberActiveGLBufferObjects__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getNumberActiveGLBufferObjects, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberActiveGLBufferObjects, + "", + ""); + I_Method0(unsigned int, getNumberActiveGLBufferObjects, + Properties::NON_VIRTUAL, + __unsigned_int__getNumberActiveGLBufferObjects, + "", + ""); + I_Method1(void, setNumberOrphanedGLBufferObjects, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setNumberOrphanedGLBufferObjects__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getNumberOrphanedGLBufferObjects, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberOrphanedGLBufferObjects, + "", + ""); + I_Method0(unsigned int, getNumberOrphanedGLBufferObjects, + Properties::NON_VIRTUAL, + __unsigned_int__getNumberOrphanedGLBufferObjects, + "", + ""); + I_Method1(void, setCurrGLBufferObjectPoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setCurrGLBufferObjectPoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getCurrGLBufferObjectPoolSize, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getCurrGLBufferObjectPoolSize, + "", + ""); + I_Method0(unsigned int, getCurrGLBufferObjectPoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getCurrGLBufferObjectPoolSize, + "", + ""); + I_Method1(void, setMaxGLBufferObjectPoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxGLBufferObjectPoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxGLBufferObjectPoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxGLBufferObjectPoolSize, + "", + ""); + I_Method1(bool, hasSpace, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __bool__hasSpace__unsigned_int, + "", + ""); + I_Method1(bool, makeSpace, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __bool__makeSpace__unsigned_int, + "", + ""); + I_Method1(osg::GLBufferObject *, generateGLBufferObject, IN, const osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__generateGLBufferObject__C5_osg_BufferObject_P1, + "", + ""); + I_Method0(void, handlePendingOrphandedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__handlePendingOrphandedGLBufferObjects, + "", + ""); + I_Method0(void, deleteAllGLBufferObjects, + Properties::NON_VIRTUAL, + __void__deleteAllGLBufferObjects, + "", + ""); + I_Method0(void, discardAllGLBufferObjects, + Properties::NON_VIRTUAL, + __void__discardAllGLBufferObjects, + "", + ""); + I_Method0(void, flushAllDeletedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__flushAllDeletedGLBufferObjects, + "", + ""); + I_Method0(void, discardAllDeletedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__discardAllDeletedGLBufferObjects, + "", + ""); + I_Method2(void, flushDeletedGLBufferObjects, IN, double, currentTime, IN, double &, availableTime, + Properties::NON_VIRTUAL, + __void__flushDeletedGLBufferObjects__double__double_R1, + "", + ""); + I_Method1(void, releaseGLBufferObject, IN, osg::GLBufferObject *, to, + Properties::NON_VIRTUAL, + __void__releaseGLBufferObject__GLBufferObject_P1, + "", + ""); + I_Method1(osg::GLBufferObjectSet *, getGLBufferObjectSet, IN, const osg::BufferObjectProfile &, profile, + Properties::NON_VIRTUAL, + __GLBufferObjectSet_P1__getGLBufferObjectSet__C5_BufferObjectProfile_R1, + "", + ""); + I_Method1(void, newFrame, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__newFrame__osg_FrameStamp_P1, + "", + ""); + I_Method0(void, resetStats, + Properties::NON_VIRTUAL, + __void__resetStats, + "", + ""); + I_Method0(void, reportStats, + Properties::NON_VIRTUAL, + __void__reportStats, + "", + ""); + I_Method0(unsigned int &, getFrameNumber, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getFrameNumber, + "", + ""); + I_Method0(unsigned int &, getNumberFrames, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberFrames, + "", + ""); + I_Method0(unsigned int &, getNumberDeleted, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberDeleted, + "", + ""); + I_Method0(double &, getDeleteTime, + Properties::NON_VIRTUAL, + __double_R1__getDeleteTime, + "", + ""); + I_Method0(unsigned int &, getNumberGenerated, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberGenerated, + "", + ""); + I_Method0(double &, getGenerateTime, + Properties::NON_VIRTUAL, + __double_R1__getGenerateTime, + "", + ""); + I_Method0(unsigned int &, getNumberApplied, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberApplied, + "", + ""); + I_Method0(double &, getApplyTime, + Properties::NON_VIRTUAL, + __double_R1__getApplyTime, + "", + ""); + I_StaticMethod1(osg::ref_ptr< osg::GLBufferObjectManager > &, getGLBufferObjectManager, IN, unsigned int, contextID, + __osg_ref_ptrT1_GLBufferObjectManager__R1__getGLBufferObjectManager__unsigned_int_S, + "", + ""); + I_SimpleProperty(double &, ApplyTime, + __double_R1__getApplyTime, + 0); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + 0); + I_SimpleProperty(unsigned int, CurrGLBufferObjectPoolSize, + __unsigned_int__getCurrGLBufferObjectPoolSize, + __void__setCurrGLBufferObjectPoolSize__unsigned_int); + I_SimpleProperty(double &, DeleteTime, + __double_R1__getDeleteTime, + 0); + I_SimpleProperty(unsigned int &, FrameNumber, + __unsigned_int_R1__getFrameNumber, + 0); + I_SimpleProperty(double &, GenerateTime, + __double_R1__getGenerateTime, + 0); + I_SimpleProperty(unsigned int, MaxGLBufferObjectPoolSize, + __unsigned_int__getMaxGLBufferObjectPoolSize, + __void__setMaxGLBufferObjectPoolSize__unsigned_int); + I_SimpleProperty(unsigned int, NumberActiveGLBufferObjects, + __unsigned_int__getNumberActiveGLBufferObjects, + __void__setNumberActiveGLBufferObjects__unsigned_int); + I_SimpleProperty(unsigned int &, NumberApplied, + __unsigned_int_R1__getNumberApplied, + 0); + I_SimpleProperty(unsigned int &, NumberDeleted, + __unsigned_int_R1__getNumberDeleted, + 0); + I_SimpleProperty(unsigned int &, NumberFrames, + __unsigned_int_R1__getNumberFrames, + 0); + I_SimpleProperty(unsigned int &, NumberGenerated, + __unsigned_int_R1__getNumberGenerated, + 0); + I_SimpleProperty(unsigned int, NumberOrphanedGLBufferObjects, + __unsigned_int__getNumberOrphanedGLBufferObjects, + __void__setNumberOrphanedGLBufferObjects__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::GLBufferObjectSet) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::Referenced); + I_Constructor2(IN, osg::GLBufferObjectManager *, parent, IN, const osg::BufferObjectProfile &, profile, + ____GLBufferObjectSet__GLBufferObjectManager_P1__C5_BufferObjectProfile_R1, + "", + ""); + I_Method0(void, handlePendingOrphandedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__handlePendingOrphandedGLBufferObjects, + "", + ""); + I_Method0(void, deleteAllGLBufferObjects, + Properties::NON_VIRTUAL, + __void__deleteAllGLBufferObjects, + "", + ""); + I_Method0(void, discardAllGLBufferObjects, + Properties::NON_VIRTUAL, + __void__discardAllGLBufferObjects, + "", + ""); + I_Method0(void, flushAllDeletedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__flushAllDeletedGLBufferObjects, + "", + ""); + I_Method0(void, discardAllDeletedGLBufferObjects, + Properties::NON_VIRTUAL, + __void__discardAllDeletedGLBufferObjects, + "", + ""); + I_Method2(void, flushDeletedGLBufferObjects, IN, double, currentTime, IN, double &, availableTime, + Properties::NON_VIRTUAL, + __void__flushDeletedGLBufferObjects__double__double_R1, + "", + ""); + I_Method1(osg::GLBufferObject *, takeFromOrphans, IN, osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__takeFromOrphans__BufferObject_P1, + "", + ""); + I_Method1(osg::GLBufferObject *, takeOrGenerate, IN, osg::BufferObject *, bufferObject, + Properties::NON_VIRTUAL, + __GLBufferObject_P1__takeOrGenerate__BufferObject_P1, + "", + ""); + I_Method1(void, moveToBack, IN, osg::GLBufferObject *, to, + Properties::NON_VIRTUAL, + __void__moveToBack__GLBufferObject_P1, + "", + ""); + I_Method1(void, addToBack, IN, osg::GLBufferObject *, to, + Properties::NON_VIRTUAL, + __void__addToBack__GLBufferObject_P1, + "", + ""); + I_Method1(void, orphan, IN, osg::GLBufferObject *, to, + Properties::NON_VIRTUAL, + __void__orphan__GLBufferObject_P1, + "", + ""); + I_Method1(void, remove, IN, osg::GLBufferObject *, to, + Properties::NON_VIRTUAL, + __void__remove__GLBufferObject_P1, + "", + ""); + I_Method2(void, moveToSet, IN, osg::GLBufferObject *, to, IN, osg::GLBufferObjectSet *, set, + Properties::NON_VIRTUAL, + __void__moveToSet__GLBufferObject_P1__GLBufferObjectSet_P1, + "", + ""); + I_Method0(unsigned int, size, + Properties::NON_VIRTUAL, + __unsigned_int__size, + "", + ""); + I_Method1(bool, makeSpace, IN, unsigned int &, size, + Properties::NON_VIRTUAL, + __bool__makeSpace__unsigned_int_R1, + "", + ""); + I_Method0(bool, checkConsistency, + Properties::NON_VIRTUAL, + __bool__checkConsistency, + "", + ""); + I_Method0(osg::GLBufferObjectManager *, getParent, + Properties::NON_VIRTUAL, + __GLBufferObjectManager_P1__getParent, + "", + ""); + I_SimpleProperty(osg::GLBufferObjectManager *, Parent, + __GLBufferObjectManager_P1__getParent, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PixelBufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::BufferObject); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, + ____PixelBufferObject__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PixelBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PixelBufferObject__C5_PixelBufferObject_R1__C5_CopyOp_R1, + "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 &, 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_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_Method1(bool, isPBOSupported, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __bool__isPBOSupported__unsigned_int, + "", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__osg_Image_P1); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PixelDataBufferObject::Mode) + I_DeclaringFile("osg/BufferObject"); + I_EnumLabel(osg::PixelDataBufferObject::NONE); + I_EnumLabel(osg::PixelDataBufferObject::READ); + I_EnumLabel(osg::PixelDataBufferObject::WRITE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PixelDataBufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::BufferObject); + I_Constructor0(____PixelDataBufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PixelDataBufferObject &, pbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PixelDataBufferObject__C5_PixelDataBufferObject_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setDataSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setDataSize__unsigned_int, + "Set new size of the buffer object. This will reallocate the memory on the next compile. ", + ""); + I_Method0(unsigned int, getDataSize, + Properties::NON_VIRTUAL, + __unsigned_int__getDataSize, + "Get data size of the used buffer. ", + ""); + I_Method1(void, compileBuffer, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileBuffer__State_R1, + "Compile the buffer (reallocate the memory if buffer is dirty). ", + ""); + I_Method1(void, bindBufferInReadMode, IN, osg::State &, state, + Properties::VIRTUAL, + __void__bindBufferInReadMode__State_R1, + "Bind the buffer in read mode, which means that data can be downloaded from the buffer (note: GL_PIXEL_UNPACK_BUFFER_ARB). ", + ""); + I_Method1(void, bindBufferInWriteMode, IN, osg::State &, state, + Properties::VIRTUAL, + __void__bindBufferInWriteMode__State_R1, + "Bind the buffer in write mode, which means following OpenGL instructions will write data into the buffer (note: GL_PIXEL_PACK_BUFFER_ARB). ", + ""); + I_Method1(void, unbindBuffer, IN, unsigned int, contextID, + Properties::VIRTUAL, + __void__unbindBuffer__unsigned_int, + "Unbind the buffer. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_Method1(osg::PixelDataBufferObject::Mode, getMode, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __Mode__getMode__unsigned_int, + "", + ""); + I_SimpleProperty(unsigned int, DataSize, + __unsigned_int__getDataSize, + __void__setDataSize__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::VertexBufferObject) + I_DeclaringFile("osg/BufferObject"); + I_BaseType(osg::BufferObject); + I_Constructor0(____VertexBufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::VertexBufferObject &, vbo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VertexBufferObject__C5_VertexBufferObject_R1__C5_CopyOp_R1, + "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 &, 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_Method1(unsigned int, addArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, + __unsigned_int__addArray__osg_Array_P1, + "", + ""); + I_Method1(void, removeArray, IN, osg::Array *, array, + Properties::NON_VIRTUAL, + __void__removeArray__osg_Array_P1, + "", + ""); + I_Method2(void, setArray, IN, unsigned int, i, IN, osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setArray__unsigned_int__Array_P1, + "", + ""); + I_Method1(osg::Array *, getArray, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Array_P1__getArray__unsigned_int, + "", + ""); + I_Method1(const osg::Array *, getArray, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Array_P1__getArray__unsigned_int, + "", + ""); + I_IndexedProperty(osg::Array *, Array, + __Array_P1__getArray__unsigned_int, + __void__setArray__unsigned_int__Array_P1, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::GLBufferObject > >, osg::GLBufferObjectList) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::GLBufferObject >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::GLBufferObject *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::GLBufferObject > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::GLBufferObject *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::GLBufferObject *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::GLBufferObject > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::GLBufferObject *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::GLBufferObjectManager >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::GLBufferObjectManager *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::GLBufferObjectManager > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::GLBufferObjectManager *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::GLBufferObjectManager *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::GLBufferObjectManager > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::GLBufferObjectManager *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::GLBufferObject > >) + diff --git a/src/osgWrappers/introspection/osg/Camera.cpp b/src/osgWrappers/introspection/osg/Camera.cpp new file mode 100644 index 000000000..e6bd98560 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Camera.cpp @@ -0,0 +1,854 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Camera::TransformOrder) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::PRE_MULTIPLY); + I_EnumLabel(osg::Camera::POST_MULTIPLY); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::ProjectionResizePolicy) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::FIXED); + I_EnumLabel(osg::Camera::HORIZONTAL); + I_EnumLabel(osg::Camera::VERTICAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::RenderOrder) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::PRE_RENDER); + I_EnumLabel(osg::Camera::NESTED_RENDER); + I_EnumLabel(osg::Camera::POST_RENDER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::RenderTargetImplementation) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::FRAME_BUFFER_OBJECT); + I_EnumLabel(osg::Camera::PIXEL_BUFFER_RTT); + I_EnumLabel(osg::Camera::PIXEL_BUFFER); + I_EnumLabel(osg::Camera::FRAME_BUFFER); + I_EnumLabel(osg::Camera::SEPERATE_WINDOW); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::BufferComponent) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::DEPTH_BUFFER); + I_EnumLabel(osg::Camera::STENCIL_BUFFER); + I_EnumLabel(osg::Camera::PACKED_DEPTH_STENCIL_BUFFER); + I_EnumLabel(osg::Camera::COLOR_BUFFER); + I_EnumLabel(osg::Camera::COLOR_BUFFER0); + I_EnumLabel(osg::Camera::COLOR_BUFFER1); + I_EnumLabel(osg::Camera::COLOR_BUFFER2); + I_EnumLabel(osg::Camera::COLOR_BUFFER3); + I_EnumLabel(osg::Camera::COLOR_BUFFER4); + I_EnumLabel(osg::Camera::COLOR_BUFFER5); + I_EnumLabel(osg::Camera::COLOR_BUFFER6); + I_EnumLabel(osg::Camera::COLOR_BUFFER7); + I_EnumLabel(osg::Camera::COLOR_BUFFER8); + I_EnumLabel(osg::Camera::COLOR_BUFFER9); + I_EnumLabel(osg::Camera::COLOR_BUFFER10); + I_EnumLabel(osg::Camera::COLOR_BUFFER11); + I_EnumLabel(osg::Camera::COLOR_BUFFER12); + I_EnumLabel(osg::Camera::COLOR_BUFFER13); + I_EnumLabel(osg::Camera::COLOR_BUFFER14); + I_EnumLabel(osg::Camera::COLOR_BUFFER15); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Camera::ImplicitBufferAttachment) + I_DeclaringFile("osg/Camera"); + I_EnumLabel(osg::Camera::IMPLICIT_DEPTH_BUFFER_ATTACHMENT); + I_EnumLabel(osg::Camera::IMPLICIT_STENCIL_BUFFER_ATTACHMENT); + I_EnumLabel(osg::Camera::IMPLICIT_COLOR_BUFFER_ATTACHMENT); + I_EnumLabel(osg::Camera::USE_DISPLAY_SETTINGS_MASK); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >, osg::Camera::BufferAttachmentMap) + +TYPE_NAME_ALIAS(int, osg::Camera::ImplicitBufferAttachmentMask) + +BEGIN_OBJECT_REFLECTOR(osg::Camera) + I_DeclaringFile("osg/Camera"); + I_BaseType(osg::Transform); + I_BaseType(osg::CullSettings); + I_Constructor0(____Camera, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Camera &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Camera__C5_Camera_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + 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, setAllowEventFocus, IN, bool, focus, + Properties::NON_VIRTUAL, + __void__setAllowEventFocus__bool, + "Set whether this camera allows events to be generated by the associated graphics window to be associated with this camera. ", + ""); + I_Method0(bool, getAllowEventFocus, + Properties::NON_VIRTUAL, + __bool__getAllowEventFocus, + "Get whether this camera allows events to be generated by the associated graphics window to be associated with this camera. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings object associated with this view. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Get the DisplaySettings object associated with this view. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Get the const DisplaySettings object associated with this view. ", + ""); + 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, 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 value. ", + ""); + 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 value. ", + ""); + 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 stencil value. ", + ""); + 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, setProjectionResizePolicy, IN, osg::Camera::ProjectionResizePolicy, policy, + Properties::NON_VIRTUAL, + __void__setProjectionResizePolicy__ProjectionResizePolicy, + "Set the policy used to determine if and how the projection matrix should be adjusted on window resizes. ", + ""); + I_Method0(osg::Camera::ProjectionResizePolicy, getProjectionResizePolicy, + Properties::NON_VIRTUAL, + __ProjectionResizePolicy__getProjectionResizePolicy, + "Get the policy used to determine if and how the projection matrix should be adjusted on window resizes. ", + ""); + 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_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_Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, + __void__setViewMatrixAsLookAt__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Set to the position and orientation of view matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3d &, eye, , IN, osg::Vec3d &, center, , IN, osg::Vec3d &, up, , IN, double, lookDistance, 1.0, + Properties::NON_VIRTUAL, + __void__getViewMatrixAsLookAt__osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1__double, + "Get to the position and orientation of a modelview matrix, using the same convention as gluLookAt. ", + ""); + I_MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3f &, eye, , IN, osg::Vec3f &, center, , IN, osg::Vec3f &, up, , IN, float, lookDistance, 1.0f, + Properties::NON_VIRTUAL, + __void__getViewMatrixAsLookAt__osg_Vec3f_R1__osg_Vec3f_R1__osg_Vec3f_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, + "Attach a buffer with specified OpenGL internal format. ", + ""); + I_MethodWithDefaults7(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, IN, unsigned int, multisampleSamples, 0, IN, unsigned int, multisampleColorSamples, 0, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Texture_P1__unsigned_int__unsigned_int__bool__unsigned_int__unsigned_int, + "Attach a Texture to specified buffer component. ", + "The level parameter controls the mip map level of the texture that is attached. The face parameter controls the face of texture cube map or z level of 3d texture. The mipMapGeneration flag controls whether mipmap generation should be done for texture. "); + I_MethodWithDefaults4(void, attach, IN, osg::Camera::BufferComponent, buffer, , IN, osg::Image *, image, , IN, unsigned int, multisampleSamples, 0, IN, unsigned int, multisampleColorSamples, 0, + Properties::NON_VIRTUAL, + __void__attach__BufferComponent__osg_Image_P1__unsigned_int__unsigned_int, + "Attach a Image to specified buffer component. ", + ""); + I_Method1(void, detach, IN, osg::Camera::BufferComponent, buffer, + Properties::NON_VIRTUAL, + __void__detach__BufferComponent, + "Detach specified buffer component. ", + ""); + 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_MethodWithDefaults2(void, setImplicitBufferAttachmentMask, IN, osg::Camera::ImplicitBufferAttachmentMask, renderMask, osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, IN, osg::Camera::ImplicitBufferAttachmentMask, resolveMask, osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentMask__ImplicitBufferAttachmentMask__ImplicitBufferAttachmentMask, + "", + ""); + I_Method1(void, setImplicitBufferAttachmentRenderMask, IN, osg::Camera::ImplicitBufferAttachmentMask, implicitBufferAttachmentRenderMask, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentRenderMask__ImplicitBufferAttachmentMask, + "", + ""); + I_Method1(void, setImplicitBufferAttachmentResolveMask, IN, osg::Camera::ImplicitBufferAttachmentMask, implicitBufferAttachmentResolveMask, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentResolveMask__ImplicitBufferAttachmentMask, + "", + ""); + I_MethodWithDefaults1(osg::Camera::ImplicitBufferAttachmentMask, getImplicitBufferAttachmentRenderMask, IN, bool, effectiveMask, false, + Properties::NON_VIRTUAL, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentRenderMask__bool, + "Get mask selecting implict buffer attachments for Camera primary FBO if effectiveMask parameter is set, method follows USE_DISPLAY_SETTINGS_MASK dependence and returns effective mask if effectiveMask parameter is reset, method returns nominal mask set by the Camera. ", + ""); + I_MethodWithDefaults1(osg::Camera::ImplicitBufferAttachmentMask, getImplicitBufferAttachmentResolveMask, IN, bool, effectiveMask, false, + Properties::NON_VIRTUAL, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentResolveMask__bool, + "Get mask selecting implict buffer attachments for Camera secondary MULTISAMPLE FBO if effectiveMask parameter is set, method follows USE_DISPLAY_SETTINGS_MASK dependence and returns effective mask if effectiveMask parameter is reset, method returns nominal mask set by the Camera. ", + ""); + I_Method0(void, createCameraThread, + Properties::NON_VIRTUAL, + __void__createCameraThread, + "Create a operation thread for this camera. ", + ""); + I_Method1(void, setCameraThread, IN, osg::OperationThread *, gt, + Properties::NON_VIRTUAL, + __void__setCameraThread__OperationThread_P1, + "Assign a operation thread to the camera. ", + ""); + I_Method0(osg::OperationThread *, getCameraThread, + Properties::NON_VIRTUAL, + __OperationThread_P1__getCameraThread, + "Get the operation thread assigned to this camera. ", + ""); + I_Method0(const osg::OperationThread *, getCameraThread, + Properties::NON_VIRTUAL, + __C5_OperationThread_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_Method1(void, setRenderer, IN, osg::GraphicsOperation *, rc, + Properties::NON_VIRTUAL, + __void__setRenderer__osg_GraphicsOperation_P1, + "Set the Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method0(osg::GraphicsOperation *, getRenderer, + Properties::NON_VIRTUAL, + __osg_GraphicsOperation_P1__getRenderer, + "Get the Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method0(const osg::GraphicsOperation *, getRenderer, + Properties::NON_VIRTUAL, + __C5_osg_GraphicsOperation_P1__getRenderer, + "Get the const Rendering object that is used to implement rendering of the subgraph. ", + ""); + I_Method1(void, setRenderingCache, IN, osg::Object *, rc, + Properties::NON_VIRTUAL, + __void__setRenderingCache__osg_Object_P1, + "Set the Rendering cache that is used for cached objects associated with rendering of subgraphs. ", + ""); + I_Method0(osg::Object *, getRenderingCache, + Properties::NON_VIRTUAL, + __osg_Object_P1__getRenderingCache, + "Get the Rendering cache that is used for cached objects associated with rendering of subgraphs. ", + ""); + I_Method0(const osg::Object *, getRenderingCache, + Properties::NON_VIRTUAL, + __C5_osg_Object_P1__getRenderingCache, + "Get the const Rendering cache that is used for cached objects associated with rendering of subgraphs. ", + ""); + I_Method1(void, setInitialDrawCallback, IN, osg::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __void__setInitialDrawCallback__DrawCallback_P1, + "Set the initial draw callback for custom operations to be done before the drawing of the camera's subgraph and pre render stages. ", + ""); + I_Method0(osg::Camera::DrawCallback *, getInitialDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getInitialDrawCallback, + "Get the initial draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getInitialDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getInitialDrawCallback, + "Get the const initial draw callback. ", + ""); + I_Method1(void, setPreDrawCallback, IN, osg::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __void__setPreDrawCallback__DrawCallback_P1, + "Set the pre draw callback for custom operations to be done before the drawing of the camera's subgraph but after any pre render stages have been completed. ", + ""); + I_Method0(osg::Camera::DrawCallback *, getPreDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getPreDrawCallback, + "Get the pre draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getPreDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getPreDrawCallback, + "Get the const pre draw callback. ", + ""); + 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 be done after the drawing of the camera's subgraph but before the any post render stages have 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_Method1(void, setFinalDrawCallback, IN, osg::Camera::DrawCallback *, cb, + Properties::NON_VIRTUAL, + __void__setFinalDrawCallback__DrawCallback_P1, + "Set the final draw callback for custom operations to be done after the drawing of the camera's subgraph and all of the post render stages has been completed. ", + ""); + I_Method0(osg::Camera::DrawCallback *, getFinalDrawCallback, + Properties::NON_VIRTUAL, + __DrawCallback_P1__getFinalDrawCallback, + "Get the final draw callback. ", + ""); + I_Method0(const osg::Camera::DrawCallback *, getFinalDrawCallback, + Properties::NON_VIRTUAL, + __C5_DrawCallback_P1__getFinalDrawCallback, + "Get the const final 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. ", + ""); + I_Method2(void, inheritCullSettings, IN, const osg::CullSettings &, settings, IN, unsigned int, inheritanceMask, + Properties::VIRTUAL, + __void__inheritCullSettings__C5_CullSettings_R1__unsigned_int, + "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", + ""); + I_SimpleProperty(bool, AllowEventFocus, + __bool__getAllowEventFocus, + __void__setAllowEventFocus__bool); + I_SimpleProperty(osg::Camera::BufferAttachmentMap &, BufferAttachmentMap, + __BufferAttachmentMap_R1__getBufferAttachmentMap, + 0); + I_SimpleProperty(osg::OperationThread *, CameraThread, + __OperationThread_P1__getCameraThread, + __void__setCameraThread__OperationThread_P1); + I_SimpleProperty(const osg::Vec4 &, ClearAccum, + __C5_osg_Vec4_R1__getClearAccum, + __void__setClearAccum__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(double, ClearDepth, + __double__getClearDepth, + __void__setClearDepth__double); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(int, ClearStencil, + __int__getClearStencil, + __void__setClearStencil__int); + I_SimpleProperty(osg::ColorMask *, ColorMask, + __ColorMask_P1__getColorMask, + __void__setColorMask__osg_ColorMask_P1); + I_SimpleProperty(OpenThreads::Mutex *, DataChangeMutex, + __OpenThreads_Mutex_P1__getDataChangeMutex, + 0); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(GLenum, DrawBuffer, + __GLenum__getDrawBuffer, + __void__setDrawBuffer__GLenum); + I_SimpleProperty(osg::Camera::DrawCallback *, FinalDrawCallback, + __DrawCallback_P1__getFinalDrawCallback, + __void__setFinalDrawCallback__DrawCallback_P1); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__GraphicsContext_P1); + I_SimpleProperty(osg::Camera::ImplicitBufferAttachmentMask, ImplicitBufferAttachmentRenderMask, + 0, + __void__setImplicitBufferAttachmentRenderMask__ImplicitBufferAttachmentMask); + I_SimpleProperty(osg::Camera::ImplicitBufferAttachmentMask, ImplicitBufferAttachmentResolveMask, + 0, + __void__setImplicitBufferAttachmentResolveMask__ImplicitBufferAttachmentMask); + I_SimpleProperty(osg::Camera::DrawCallback *, InitialDrawCallback, + __DrawCallback_P1__getInitialDrawCallback, + __void__setInitialDrawCallback__DrawCallback_P1); + I_SimpleProperty(osg::Matrixd, InverseViewMatrix, + __Matrixd__getInverseViewMatrix, + 0); + I_SimpleProperty(osg::Camera::DrawCallback *, PostDrawCallback, + __DrawCallback_P1__getPostDrawCallback, + __void__setPostDrawCallback__DrawCallback_P1); + I_SimpleProperty(osg::Camera::DrawCallback *, PreDrawCallback, + __DrawCallback_P1__getPreDrawCallback, + __void__setPreDrawCallback__DrawCallback_P1); + I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Camera::ProjectionResizePolicy, ProjectionResizePolicy, + __ProjectionResizePolicy__getProjectionResizePolicy, + __void__setProjectionResizePolicy__ProjectionResizePolicy); + I_SimpleProperty(GLenum, ReadBuffer, + __GLenum__getReadBuffer, + __void__setReadBuffer__GLenum); + I_SimpleProperty(osg::Camera::RenderOrder, RenderOrder, + __RenderOrder__getRenderOrder, + 0); + I_SimpleProperty(int, RenderOrderNum, + __int__getRenderOrderNum, + 0); + I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetFallback, + __RenderTargetImplementation__getRenderTargetFallback, + 0); + I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetImplementation, + __RenderTargetImplementation__getRenderTargetImplementation, + __void__setRenderTargetImplementation__RenderTargetImplementation); + I_SimpleProperty(osg::GraphicsOperation *, Renderer, + __osg_GraphicsOperation_P1__getRenderer, + __void__setRenderer__osg_GraphicsOperation_P1); + I_SimpleProperty(osg::Object *, RenderingCache, + __osg_Object_P1__getRenderingCache, + __void__setRenderingCache__osg_Object_P1); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); + I_SimpleProperty(osg::Camera::TransformOrder, TransformOrder, + __TransformOrder__getTransformOrder, + __void__setTransformOrder__TransformOrder); + I_SimpleProperty(osg::View *, View, + __View_P1__getView, + __void__setView__View_P1); + I_SimpleProperty(const osg::Matrixd &, ViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + __void__setViewMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Viewport *, Viewport, + __Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Camera::Attachment) + I_DeclaringFile("osg/Camera"); + I_Constructor0(____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, + "", + ""); + I_PublicMemberProperty(GLenum, _internalFormat); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(osg::ref_ptr< osg::Texture >, _texture); + I_PublicMemberProperty(unsigned int, _level); + I_PublicMemberProperty(unsigned int, _face); + I_PublicMemberProperty(bool, _mipMapGeneration); + I_PublicMemberProperty(unsigned int, _multisampleSamples); + I_PublicMemberProperty(unsigned int, _multisampleColorSamples); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Camera::DrawCallback) + I_DeclaringFile("osg/Camera"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____DrawCallback, + "", + ""); + I_Constructor2(IN, const osg::Camera::DrawCallback &, x, IN, const osg::CopyOp &, x, + ____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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. "); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::Camera::BufferComponent COMMA osg::Camera::Attachment >) + diff --git a/src/osgWrappers/introspection/osg/CameraNode.cpp b/src/osgWrappers/introspection/osg/CameraNode.cpp new file mode 100644 index 000000000..7fb194751 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CameraNode.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Camera, osg::CameraNode) + diff --git a/src/osgWrappers/introspection/osg/CameraView.cpp b/src/osgWrappers/introspection/osg/CameraView.cpp new file mode 100644 index 000000000..d3ea8ed56 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CameraView.cpp @@ -0,0 +1,152 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::CameraView::FieldOfViewMode) + I_DeclaringFile("osg/CameraView"); + I_EnumLabel(osg::CameraView::UNCONSTRAINED); + I_EnumLabel(osg::CameraView::HORIZONTAL); + I_EnumLabel(osg::CameraView::VERTICAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::CameraView) + I_DeclaringFile("osg/CameraView"); + I_BaseType(osg::Transform); + I_Constructor0(____CameraView, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CameraView &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CameraView__C5_CameraView_R1__C5_CopyOp_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, 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 attitude of the camera view. ", + ""); + I_Method0(const osg::Quat &, getAttitude, + Properties::NON_VIRTUAL, + __C5_Quat_R1__getAttitude, + "Get the attitude 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 constrained 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 degrees. "); + 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 constrained 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, + "", + ""); + I_SimpleProperty(const osg::Quat &, Attitude, + __C5_Quat_R1__getAttitude, + __void__setAttitude__C5_Quat_R1); + I_SimpleProperty(double, FieldOfView, + __double__getFieldOfView, + __void__setFieldOfView__double); + I_SimpleProperty(osg::CameraView::FieldOfViewMode, FieldOfViewMode, + __FieldOfViewMode__getFieldOfViewMode, + __void__setFieldOfViewMode__FieldOfViewMode); + I_SimpleProperty(double, FocalLength, + __double__getFocalLength, + __void__setFocalLength__double); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_Vec3d_R1__getPosition, + __void__setPosition__C5_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ClampColor.cpp b/src/osgWrappers/introspection/osg/ClampColor.cpp new file mode 100644 index 000000000..09f784846 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ClampColor.cpp @@ -0,0 +1,132 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ClampColor) + I_DeclaringFile("osg/ClampColor"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____ClampColor, + "", + ""); + I_Constructor3(IN, GLenum, vertexMode, IN, GLenum, fragmentMode, IN, GLenum, readMode, + ____ClampColor__GLenum__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClampColor &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClampColor__C5_ClampColor_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_StaticMethod2(osg::ClampColor::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::ClampColor::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(GLenum, ClampFragmentColor, + __GLenum__getClampFragmentColor, + __void__setClampFragmentColor__GLenum); + I_SimpleProperty(GLenum, ClampReadColor, + __GLenum__getClampReadColor, + __void__setClampReadColor__GLenum); + I_SimpleProperty(GLenum, ClampVertexColor, + __GLenum__getClampVertexColor, + __void__setClampVertexColor__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ClearNode.cpp b/src/osgWrappers/introspection/osg/ClearNode.cpp new file mode 100644 index 000000000..fa55b23fe --- /dev/null +++ b/src/osgWrappers/introspection/osg/ClearNode.cpp @@ -0,0 +1,107 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ClearNode) + I_DeclaringFile("osg/ClearNode"); + I_BaseType(osg::Group); + I_Constructor0(____ClearNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClearNode &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClearNode__C5_ClearNode_R1__C5_CopyOp_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, 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. ", + ""); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_Vec4_R1__getClearColor, + __void__setClearColor__C5_Vec4_R1); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(bool, RequiresClear, + __bool__getRequiresClear, + __void__setRequiresClear__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ClipNode.cpp b/src/osgWrappers/introspection/osg/ClipNode.cpp new file mode 100644 index 000000000..accd10915 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ClipNode.cpp @@ -0,0 +1,213 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ClipNode::ReferenceFrame) + I_DeclaringFile("osg/ClipNode"); + I_EnumLabel(osg::ClipNode::RELATIVE_RF); + I_EnumLabel(osg::ClipNode::ABSOLUTE_RF); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::ClipPlane > >, osg::ClipNode::ClipPlaneList) + +BEGIN_OBJECT_REFLECTOR(osg::ClipNode) + I_DeclaringFile("osg/ClipNode"); + I_BaseType(osg::Group); + I_Constructor0(____ClipNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClipNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClipNode__C5_ClipNode_R1__C5_CopyOp_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, setReferenceFrame, IN, osg::ClipNode::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::ClipNode::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "", + ""); + 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, setClipPlaneList, IN, const osg::ClipNode::ClipPlaneList &, cpl, + Properties::NON_VIRTUAL, + __void__setClipPlaneList__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(). "); + I_ArrayProperty(osg::ClipPlane *, ClipPlane, + __ClipPlane_P1__getClipPlane__unsigned_int, + 0, + __unsigned_int__getNumClipPlanes, + __bool__addClipPlane__ClipPlane_P1, + 0, + __bool__removeClipPlane__unsigned_int); + I_SimpleProperty(const osg::ClipNode::ClipPlaneList &, ClipPlaneList, + __C5_ClipPlaneList_R1__getClipPlaneList, + __void__setClipPlaneList__C5_ClipPlaneList_R1); + I_SimpleProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes, + 0, + __void__setLocalStateSetModes__StateAttribute_GLModeValue); + I_SimpleProperty(osg::ClipNode::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::ClipPlane >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::ClipPlane *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::ClipPlane > >) + diff --git a/src/osgWrappers/introspection/osg/ClipPlane.cpp b/src/osgWrappers/introspection/osg/ClipPlane.cpp new file mode 100644 index 000000000..08ef90393 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ClipPlane.cpp @@ -0,0 +1,149 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ClipPlane) + I_DeclaringFile("osg/ClipPlane"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____ClipPlane, + "", + ""); + I_Constructor1(IN, unsigned int, no, + Properties::NON_EXPLICIT, + ____ClipPlane__unsigned_int, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, const osg::Vec4d &, plane, + ____ClipPlane__unsigned_int__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, unsigned int, no, IN, const osg::Plane &, plane, + ____ClipPlane__unsigned_int__C5_Plane_R1, + "", + ""); + I_Constructor5(IN, unsigned int, no, IN, double, a, IN, double, b, IN, double, c, IN, double, d, + ____ClipPlane__unsigned_int__double__double__double__double, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ClipPlane &, cp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ClipPlane__C5_ClipPlane_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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. ", + ""); + I_SimpleProperty(const osg::Vec4d &, ClipPlane, + __C5_Vec4d_R1__getClipPlane, + __void__setClipPlane__C5_Vec4d_R1); + I_SimpleProperty(unsigned int, ClipPlaneNum, + __unsigned_int__getClipPlaneNum, + __void__setClipPlaneNum__unsigned_int); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ClusterCullingCallback.cpp b/src/osgWrappers/introspection/osg/ClusterCullingCallback.cpp new file mode 100644 index 000000000..fbfde8a8d --- /dev/null +++ b/src/osgWrappers/introspection/osg/ClusterCullingCallback.cpp @@ -0,0 +1,149 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ClusterCullingCallback) + I_DeclaringFile("osg/ClusterCullingCallback"); + I_BaseType(osg::Drawable::CullCallback); + I_BaseType(osg::NodeCallback); + I_Constructor0(____ClusterCullingCallback, + "", + ""); + I_Constructor2(IN, const osg::ClusterCullingCallback &, ccc, IN, const osg::CopyOp &, copyop, + ____ClusterCullingCallback__C5_ClusterCullingCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, controlPoint, IN, const osg::Vec3 &, normal, IN, float, deviation, + ____ClusterCullingCallback__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, + "", + ""); + 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 &, 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_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. ", + ""); + I_SimpleProperty(const osg::Vec3 &, ControlPoint, + __C5_osg_Vec3_R1__getControlPoint, + __void__setControlPoint__C5_osg_Vec3_R1); + I_SimpleProperty(float, Deviation, + __float__getDeviation, + __void__setDeviation__float); + I_SimpleProperty(const osg::Vec3 &, Normal, + __C5_osg_Vec3_R1__getNormal, + __void__setNormal__C5_osg_Vec3_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/CollectOccludersVisitor.cpp b/src/osgWrappers/introspection/osg/CollectOccludersVisitor.cpp new file mode 100644 index 000000000..cba3867c9 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CollectOccludersVisitor.cpp @@ -0,0 +1,181 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::set< osg::ShadowVolumeOccluder >, osg::CollectOccludersVisitor::ShadowVolumeOccluderSet) + +BEGIN_OBJECT_REFLECTOR(osg::CollectOccludersVisitor) + I_DeclaringFile("osg/CollectOccludersVisitor"); + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::CullStack); + I_Constructor0(____CollectOccludersVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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 &, 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, 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_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_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, setCollectedOccluderSet, IN, const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, svol, + Properties::NON_VIRTUAL, + __void__setCollectedOccluderSet__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 lowest shadow occluder volume. ", + ""); + I_ProtectedMethod1(void, handle_cull_callbacks_and_traverse, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_cull_callbacks_and_traverse__osg_Node_R1, + "", + ""); + I_ProtectedMethod2(void, handle_cull_callbacks_and_accept, IN, osg::Node &, node, IN, osg::Node *, acceptNode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_cull_callbacks_and_accept__osg_Node_R1__osg_Node_P1, + "", + ""); + I_SimpleProperty(const osg::CollectOccludersVisitor::ShadowVolumeOccluderSet &, CollectedOccluderSet, + __C5_ShadowVolumeOccluderSet_R1__getCollectedOccluderSet, + __void__setCollectedOccluderSet__C5_ShadowVolumeOccluderSet_R1); + I_SimpleProperty(bool, CreateDrawablesOnOccludeNodes, + __bool__getCreateDrawablesOnOccludeNodes, + __void__setCreateDrawablesOnOccludeNodes__bool); + I_SimpleProperty(unsigned int, MaximumNumberOfActiveOccluders, + __unsigned_int__getMaximumNumberOfActiveOccluders, + __void__setMaximumNumberOfActiveOccluders__unsigned_int); + I_SimpleProperty(float, MinimumShadowOccluderVolume, + __float__getMinimumShadowOccluderVolume, + __void__setMinimumShadowOccluderVolume__float); +END_REFLECTOR + +STD_SET_REFLECTOR(std::set< osg::ShadowVolumeOccluder >) + diff --git a/src/osgWrappers/introspection/osg/ColorMask.cpp b/src/osgWrappers/introspection/osg/ColorMask.cpp new file mode 100644 index 000000000..cb1ed8107 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ColorMask.cpp @@ -0,0 +1,142 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ColorMask) + I_DeclaringFile("osg/ColorMask"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____ColorMask, + "", + ""); + I_Constructor4(IN, bool, red, IN, bool, green, IN, bool, blue, IN, bool, alpha, + ____ColorMask__bool__bool__bool__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ColorMask &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ColorMask__C5_ColorMask_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(bool, AlphaMask, + __bool__getAlphaMask, + __void__setAlphaMask__bool); + I_SimpleProperty(bool, BlueMask, + __bool__getBlueMask, + __void__setBlueMask__bool); + I_SimpleProperty(bool, GreenMask, + __bool__getGreenMask, + __void__setGreenMask__bool); + I_SimpleProperty(bool, RedMask, + __bool__getRedMask, + __void__setRedMask__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ColorMatrix.cpp b/src/osgWrappers/introspection/osg/ColorMatrix.cpp new file mode 100644 index 000000000..6de8b9d75 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ColorMatrix.cpp @@ -0,0 +1,100 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ColorMatrix) + I_DeclaringFile("osg/ColorMatrix"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____ColorMatrix, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ColorMatrix &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ColorMatrix__C5_ColorMatrix_R1__C5_CopyOp_R1, + "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 &, x, + 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. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ComputeBoundsVisitor.cpp b/src/osgWrappers/introspection/osg/ComputeBoundsVisitor.cpp new file mode 100644 index 000000000..2364a7181 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ComputeBoundsVisitor.cpp @@ -0,0 +1,103 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ComputeBoundsVisitor) + I_DeclaringFile("osg/ComputeBoundsVisitor"); + I_BaseType(osg::NodeVisitor); + I_ConstructorWithDefaults1(IN, osg::NodeVisitor::TraversalMode, traversalMode, osg::NodeVisitor::TRAVERSE_ALL_CHILDREN, + Properties::NON_EXPLICIT, + ____ComputeBoundsVisitor__TraversalMode, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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_Method0(osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __osg_BoundingBox_R1__getBoundingBox, + "", + ""); + I_MethodWithDefaults2(void, getPolytope, IN, osg::Polytope &, polytope, , IN, float, margin, 0.1, + Properties::NON_VIRTUAL, + __void__getPolytope__osg_Polytope_R1__float, + "", + ""); + I_MethodWithDefaults2(void, getBase, IN, osg::Polytope &, polytope, , IN, float, margin, 0.1, + Properties::NON_VIRTUAL, + __void__getBase__osg_Polytope_R1__float, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, pushMatrix, IN, osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__pushMatrix__osg_Matrix_R1, + "", + ""); + I_Method0(void, popMatrix, + Properties::NON_VIRTUAL, + __void__popMatrix, + "", + ""); + I_Method1(void, applyDrawable, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + __void__applyDrawable__osg_Drawable_P1, + "", + ""); + I_SimpleProperty(osg::BoundingBox &, BoundingBox, + __osg_BoundingBox_R1__getBoundingBox, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ConvexPlanarOccluder.cpp b/src/osgWrappers/introspection/osg/ConvexPlanarOccluder.cpp new file mode 100644 index 000000000..092f03079 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ConvexPlanarOccluder.cpp @@ -0,0 +1,107 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ConvexPlanarPolygon >, osg::ConvexPlanarOccluder::HoleList) + +BEGIN_OBJECT_REFLECTOR(osg::ConvexPlanarOccluder) + I_DeclaringFile("osg/ConvexPlanarOccluder"); + I_BaseType(osg::Object); + I_Constructor0(____ConvexPlanarOccluder, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ConvexPlanarOccluder &, cpo, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConvexPlanarOccluder__C5_ConvexPlanarOccluder_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, + "", + ""); + I_SimpleProperty(const osg::ConvexPlanarOccluder::HoleList &, HoleList, + __C5_HoleList_R1__getHoleList, + __void__setHoleList__C5_HoleList_R1); + I_SimpleProperty(const osg::ConvexPlanarPolygon &, Occluder, + __C5_ConvexPlanarPolygon_R1__getOccluder, + __void__setOccluder__C5_ConvexPlanarPolygon_R1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ConvexPlanarPolygon >) + diff --git a/src/osgWrappers/introspection/osg/ConvexPlanarPolygon.cpp b/src/osgWrappers/introspection/osg/ConvexPlanarPolygon.cpp new file mode 100644 index 000000000..cbc51b36c --- /dev/null +++ b/src/osgWrappers/introspection/osg/ConvexPlanarPolygon.cpp @@ -0,0 +1,55 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::ConvexPlanarPolygon::VertexList) + +BEGIN_VALUE_REFLECTOR(osg::ConvexPlanarPolygon) + I_DeclaringFile("osg/ConvexPlanarPolygon"); + I_Constructor0(____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, + "", + ""); + I_SimpleProperty(const osg::ConvexPlanarPolygon::VertexList &, VertexList, + __C5_VertexList_R1__getVertexList, + __void__setVertexList__C5_VertexList_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/CoordinateSystemNode.cpp b/src/osgWrappers/introspection/osg/CoordinateSystemNode.cpp new file mode 100644 index 000000000..4968724f3 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CoordinateSystemNode.cpp @@ -0,0 +1,239 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::CoordinateSystemNode) + I_DeclaringFile("osg/CoordinateSystemNode"); + I_BaseType(osg::Group); + I_Constructor0(____CoordinateSystemNode, + "", + ""); + I_Constructor2(IN, const std::string &, format, IN, const std::string &, cs, + ____CoordinateSystemNode__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CoordinateSystemNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CoordinateSystemNode__C5_CoordinateSystemNode_R1__C5_osg_CopyOp_R1, + "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 copying 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 up-vector for specified point. ", + ""); + I_SimpleProperty(const std::string &, CoordinateSystem, + __C5_std_string_R1__getCoordinateSystem, + __void__setCoordinateSystem__C5_std_string_R1); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + __EllipsoidModel_P1__getEllipsoidModel, + __void__setEllipsoidModel__EllipsoidModel_P1); + I_SimpleProperty(const std::string &, Format, + __C5_std_string_R1__getFormat, + __void__setFormat__C5_std_string_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::EllipsoidModel) + I_DeclaringFile("osg/CoordinateSystemNode"); + 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, + "WGS_84 is a common representation of the earth's spheroid. ", + ""); + I_ConstructorWithDefaults2(IN, const osg::EllipsoidModel &, et, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____EllipsoidModel__C5_EllipsoidModel_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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(void, computeCoordinateFrame, IN, double, latitude, IN, double, longitude, IN, osg::Matrixd &, localToWorld, + Properties::NON_VIRTUAL, + __void__computeCoordinateFrame__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, + "", + ""); + I_Method0(bool, isWGS84, + Properties::NON_VIRTUAL, + __bool__isWGS84, + "", + ""); + I_ProtectedMethod0(void, computeCoefficients, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeCoefficients, + "", + ""); + I_SimpleProperty(double, RadiusEquator, + __double__getRadiusEquator, + __void__setRadiusEquator__double); + I_SimpleProperty(double, RadiusPolar, + __double__getRadiusPolar, + __void__setRadiusPolar__double); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::Matrixd, osg::CoordinateFrame) + diff --git a/src/osgWrappers/introspection/osg/CopyOp.cpp b/src/osgWrappers/introspection/osg/CopyOp.cpp new file mode 100644 index 000000000..18dfe9522 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CopyOp.cpp @@ -0,0 +1,65 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::CopyOp::Options) + I_DeclaringFile("osg/CopyOp"); + I_EnumLabel(osg::CopyOp::SHALLOW_COPY); + I_EnumLabel(osg::CopyOp::DEEP_COPY_OBJECTS); + I_EnumLabel(osg::CopyOp::DEEP_COPY_NODES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_DRAWABLES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_STATESETS); + I_EnumLabel(osg::CopyOp::DEEP_COPY_STATEATTRIBUTES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_TEXTURES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_IMAGES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_ARRAYS); + I_EnumLabel(osg::CopyOp::DEEP_COPY_PRIMITIVES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_SHAPES); + I_EnumLabel(osg::CopyOp::DEEP_COPY_UNIFORMS); + I_EnumLabel(osg::CopyOp::DEEP_COPY_CALLBACKS); + I_EnumLabel(osg::CopyOp::DEEP_COPY_ALL); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned int, osg::CopyOp::CopyFlags) + +BEGIN_VALUE_REFLECTOR(osg::CopyOp) + I_DeclaringFile("osg/CopyOp"); + I_ConstructorWithDefaults1(IN, osg::CopyOp::CopyFlags, flags, osg::CopyOp::SHALLOW_COPY, + Properties::NON_EXPLICIT, + ____CopyOp__CopyFlags, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/CullFace.cpp b/src/osgWrappers/introspection/osg/CullFace.cpp new file mode 100644 index 000000000..bef88e5d9 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CullFace.cpp @@ -0,0 +1,108 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::CullFace::Mode) + I_DeclaringFile("osg/CullFace"); + I_EnumLabel(osg::CullFace::FRONT); + I_EnumLabel(osg::CullFace::BACK); + I_EnumLabel(osg::CullFace::FRONT_AND_BACK); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::CullFace) + I_DeclaringFile("osg/CullFace"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::CullFace::Mode, mode, osg::CullFace::BACK, + Properties::NON_EXPLICIT, + ____CullFace__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CullFace &, cf, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CullFace__C5_CullFace_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::CullFace::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/CullSettings.cpp b/src/osgWrappers/introspection/osg/CullSettings.cpp new file mode 100644 index 000000000..1ae6c2890 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CullSettings.cpp @@ -0,0 +1,358 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::CullSettings::VariablesMask) + I_DeclaringFile("osg/CullSettings"); + I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_MODE); + I_EnumLabel(osg::CullSettings::CULLING_MODE); + I_EnumLabel(osg::CullSettings::LOD_SCALE); + I_EnumLabel(osg::CullSettings::SMALL_FEATURE_CULLING_PIXEL_SIZE); + I_EnumLabel(osg::CullSettings::CLAMP_PROJECTION_MATRIX_CALLBACK); + I_EnumLabel(osg::CullSettings::NEAR_FAR_RATIO); + I_EnumLabel(osg::CullSettings::IMPOSTOR_ACTIVE); + I_EnumLabel(osg::CullSettings::DEPTH_SORT_IMPOSTOR_SPRITES); + I_EnumLabel(osg::CullSettings::IMPOSTOR_PIXEL_ERROR_THRESHOLD); + I_EnumLabel(osg::CullSettings::NUM_FRAMES_TO_KEEP_IMPOSTORS_SPRITES); + I_EnumLabel(osg::CullSettings::CULL_MASK); + I_EnumLabel(osg::CullSettings::CULL_MASK_LEFT); + I_EnumLabel(osg::CullSettings::CULL_MASK_RIGHT); + I_EnumLabel(osg::CullSettings::CLEAR_COLOR); + I_EnumLabel(osg::CullSettings::CLEAR_MASK); + I_EnumLabel(osg::CullSettings::LIGHTING_MODE); + I_EnumLabel(osg::CullSettings::LIGHT); + I_EnumLabel(osg::CullSettings::DRAW_BUFFER); + I_EnumLabel(osg::CullSettings::READ_BUFFER); + I_EnumLabel(osg::CullSettings::NO_VARIABLES); + I_EnumLabel(osg::CullSettings::ALL_VARIABLES); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::CullSettings::InheritanceMaskActionOnAttributeSetting) + I_DeclaringFile("osg/CullSettings"); + I_EnumLabel(osg::CullSettings::DISABLE_ASSOCIATED_INHERITANCE_MASK_BIT); + I_EnumLabel(osg::CullSettings::DO_NOT_MODIFY_INHERITANCE_MASK); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::CullSettings::ComputeNearFarMode) + I_DeclaringFile("osg/CullSettings"); + I_EnumLabel(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); + I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES); + I_EnumLabel(osg::CullSettings::COMPUTE_NEAR_FAR_USING_PRIMITIVES); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::CullSettings::CullingModeValues) + I_DeclaringFile("osg/CullSettings"); + I_EnumLabel(osg::CullSettings::NO_CULLING); + I_EnumLabel(osg::CullSettings::VIEW_FRUSTUM_SIDES_CULLING); + I_EnumLabel(osg::CullSettings::NEAR_PLANE_CULLING); + I_EnumLabel(osg::CullSettings::FAR_PLANE_CULLING); + I_EnumLabel(osg::CullSettings::VIEW_FRUSTUM_CULLING); + I_EnumLabel(osg::CullSettings::SMALL_FEATURE_CULLING); + I_EnumLabel(osg::CullSettings::SHADOW_OCCLUSION_CULLING); + I_EnumLabel(osg::CullSettings::CLUSTER_CULLING); + I_EnumLabel(osg::CullSettings::DEFAULT_CULLING); + I_EnumLabel(osg::CullSettings::ENABLE_ALL_CULLING); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned int, osg::CullSettings::CullingMode) + +BEGIN_VALUE_REFLECTOR(osg::CullSettings) + I_DeclaringFile("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::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 overwritten 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 overwritten 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::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::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, setInheritanceMaskActionOnAttributeSetting, IN, osg::CullSettings::InheritanceMaskActionOnAttributeSetting, action, + Properties::NON_VIRTUAL, + __void__setInheritanceMaskActionOnAttributeSetting__InheritanceMaskActionOnAttributeSetting, + "", + ""); + I_Method0(osg::CullSettings::InheritanceMaskActionOnAttributeSetting, getInheritanceMaskActionOnAttributeSetting, + Properties::NON_VIRTUAL, + __InheritanceMaskActionOnAttributeSetting__getInheritanceMaskActionOnAttributeSetting, + "", + ""); + I_Method1(void, applyMaskAction, IN, unsigned int, maskBit, + Properties::NON_VIRTUAL, + __void__applyMaskAction__unsigned_int, + "Apply the action, specified by the InheritanceMaskActionOnAttributeSetting, to apply to the inheritance bit mask. ", + "This method is called by CullSettings::set*() parameter methods to ensure that CullSettings inheritance mechanisms doesn't overwrite the local parameter settings. "); + 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, scale, + 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. ", + ""); + I_Method1(void, write, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__write__std_ostream_R1, + "Write out internal settings of CullSettings. ", + ""); + I_SimpleProperty(osg::CullSettings::ClampProjectionMatrixCallback *, ClampProjectionMatrixCallback, + __ClampProjectionMatrixCallback_P1__getClampProjectionMatrixCallback, + __void__setClampProjectionMatrixCallback__ClampProjectionMatrixCallback_P1); + I_SimpleProperty(osg::CullSettings::ComputeNearFarMode, ComputeNearFarMode, + __ComputeNearFarMode__getComputeNearFarMode, + __void__setComputeNearFarMode__ComputeNearFarMode); + I_SimpleProperty(osg::Node::NodeMask, CullMask, + __osg_Node_NodeMask__getCullMask, + __void__setCullMask__osg_Node_NodeMask); + I_SimpleProperty(osg::Node::NodeMask, CullMaskLeft, + __osg_Node_NodeMask__getCullMaskLeft, + __void__setCullMaskLeft__osg_Node_NodeMask); + I_SimpleProperty(osg::Node::NodeMask, CullMaskRight, + __osg_Node_NodeMask__getCullMaskRight, + __void__setCullMaskRight__osg_Node_NodeMask); + I_SimpleProperty(const osg::CullSettings &, CullSettings, + 0, + __void__setCullSettings__C5_CullSettings_R1); + I_SimpleProperty(osg::CullSettings::CullingMode, CullingMode, + __CullingMode__getCullingMode, + __void__setCullingMode__CullingMode); + I_SimpleProperty(bool, DepthSortImpostorSprites, + __bool__getDepthSortImpostorSprites, + __void__setDepthSortImpostorSprites__bool); + I_SimpleProperty(float, ImpostorPixelErrorThreshold, + __float__getImpostorPixelErrorThreshold, + __void__setImpostorPixelErrorThreshold__float); + I_SimpleProperty(bool, ImpostorsActive, + __bool__getImpostorsActive, + __void__setImpostorsActive__bool); + I_SimpleProperty(unsigned int, InheritanceMask, + __unsigned_int__getInheritanceMask, + __void__setInheritanceMask__unsigned_int); + I_SimpleProperty(osg::CullSettings::InheritanceMaskActionOnAttributeSetting, InheritanceMaskActionOnAttributeSetting, + __InheritanceMaskActionOnAttributeSetting__getInheritanceMaskActionOnAttributeSetting, + __void__setInheritanceMaskActionOnAttributeSetting__InheritanceMaskActionOnAttributeSetting); + I_SimpleProperty(float, LODScale, + __float__getLODScale, + __void__setLODScale__float); + I_SimpleProperty(double, NearFarRatio, + __double__getNearFarRatio, + __void__setNearFarRatio__double); + I_SimpleProperty(int, NumberOfFrameToKeepImpostorSprites, + __int__getNumberOfFrameToKeepImpostorSprites, + __void__setNumberOfFrameToKeepImpostorSprites__int); + I_SimpleProperty(float, SmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + __void__setSmallFeatureCullingPixelSize__float); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::CullSettings::ClampProjectionMatrixCallback) + I_DeclaringFile("osg/CullSettings"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/CullStack.cpp b/src/osgWrappers/introspection/osg/CullStack.cpp new file mode 100644 index 000000000..1d31fe6bd --- /dev/null +++ b/src/osgWrappers/introspection/osg/CullStack.cpp @@ -0,0 +1,322 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::CullStack::OccluderList) + +TYPE_NAME_ALIAS(std::vector< osg::CullingSet >, osg::CullStack::CullingStack) + +BEGIN_OBJECT_REFLECTOR(osg::CullStack) + I_DeclaringFile("osg/CullStack"); + I_BaseType(osg::CullSettings); + I_Constructor0(____CullStack, + "", + ""); + I_Constructor1(IN, const osg::CullStack &, cs, + Properties::NON_EXPLICIT, + ____CullStack__C5_CullStack_R1, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(void, pushCullingSet, + Properties::NON_VIRTUAL, + __void__pushCullingSet, + "", + ""); + I_Method0(void, popCullingSet, + Properties::NON_VIRTUAL, + __void__popCullingSet, + "", + ""); + I_Method1(void, setOccluderList, IN, const osg::ShadowVolumeOccluderList &, svol, + Properties::NON_VIRTUAL, + __void__setOccluderList__C5_ShadowVolumeOccluderList_R1, + "", + ""); + I_Method0(osg::ShadowVolumeOccluderList &, getOccluderList, + Properties::NON_VIRTUAL, + __ShadowVolumeOccluderList_R1__getOccluderList, + "", + ""); + I_Method0(const osg::ShadowVolumeOccluderList &, getOccluderList, + Properties::NON_VIRTUAL, + __C5_ShadowVolumeOccluderList_R1__getOccluderList, + "", + ""); + I_Method1(void, pushViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__pushViewport__osg_Viewport_P1, + "", + ""); + I_Method0(void, popViewport, + Properties::NON_VIRTUAL, + __void__popViewport, + "", + ""); + 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_Method2(void, pushModelViewMatrix, IN, osg::RefMatrix *, matrix, IN, osg::Transform::ReferenceFrame, referenceFrame, + Properties::NON_VIRTUAL, + __void__pushModelViewMatrix__osg_RefMatrix_P1__Transform_ReferenceFrame, + "", + ""); + I_Method0(void, popModelViewMatrix, + Properties::NON_VIRTUAL, + __void__popModelViewMatrix, + "", + ""); + I_Method0(float, getFrustumVolume, + Properties::NON_VIRTUAL, + __float__getFrustumVolume, + "", + ""); + I_Method2(float, pixelSize, IN, const osg::Vec3 &, v, IN, float, radius, + Properties::NON_VIRTUAL, + __float__pixelSize__C5_Vec3_R1__float, + "Compute the pixel size 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 size of the 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 size 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 size of the bounding sphere. ", + "fabs()ed to always be positive. "); + 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, + "", + ""); + 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_Method1(bool, isCulled, IN, const osg::Node &, node, + Properties::NON_VIRTUAL, + __bool__isCulled__C5_osg_Node_R1, + "", + ""); + I_Method0(void, pushCurrentMask, + Properties::NON_VIRTUAL, + __void__pushCurrentMask, + "", + ""); + I_Method0(void, popCurrentMask, + Properties::NON_VIRTUAL, + __void__popCurrentMask, + "", + ""); + I_Method0(osg::CullStack::CullingStack &, getClipSpaceCullingStack, + Properties::NON_VIRTUAL, + __CullingStack_R1__getClipSpaceCullingStack, + "", + ""); + I_Method0(osg::CullStack::CullingStack &, getProjectionCullingStack, + Properties::NON_VIRTUAL, + __CullingStack_R1__getProjectionCullingStack, + "", + ""); + I_Method0(osg::CullStack::CullingStack &, getModelViewCullingStack, + Properties::NON_VIRTUAL, + __CullingStack_R1__getModelViewCullingStack, + "", + ""); + I_Method0(osg::CullingSet &, getCurrentCullingSet, + Properties::NON_VIRTUAL, + __CullingSet_R1__getCurrentCullingSet, + "", + ""); + I_Method0(const osg::CullingSet &, getCurrentCullingSet, + Properties::NON_VIRTUAL, + __C5_CullingSet_R1__getCurrentCullingSet, + "", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "", + ""); + I_Method0(osg::RefMatrix *, getModelViewMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getModelViewMatrix, + "", + ""); + I_Method0(osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getProjectionMatrix, + "", + ""); + I_Method0(osg::Matrix, getWindowMatrix, + Properties::NON_VIRTUAL, + __osg_Matrix__getWindowMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getMVPW, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getMVPW, + "", + ""); + I_Method0(const osg::Vec3 &, getReferenceViewPoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferenceViewPoint, + "", + ""); + I_Method1(void, pushReferenceViewPoint, IN, const osg::Vec3 &, viewPoint, + Properties::NON_VIRTUAL, + __void__pushReferenceViewPoint__C5_osg_Vec3_R1, + "", + ""); + I_Method0(void, popReferenceViewPoint, + Properties::NON_VIRTUAL, + __void__popReferenceViewPoint, + "", + ""); + I_Method0(const osg::Vec3 &, getEyeLocal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getEyeLocal, + "", + ""); + I_Method0(const osg::Vec3 &, getViewPointLocal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getViewPointLocal, + "", + ""); + I_Method0(const osg::Vec3, getUpLocal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getUpLocal, + "", + ""); + I_Method0(const osg::Vec3, getLookVectorLocal, + Properties::NON_VIRTUAL, + __C5_osg_Vec3__getLookVectorLocal, + "", + ""); + I_ProtectedMethod0(void, computeFrustumVolume, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeFrustumVolume, + "", + ""); + I_ProtectedMethod1(osg::RefMatrix *, createOrReuseMatrix, IN, const osg::Matrix &, value, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_RefMatrix_P1__createOrReuseMatrix__C5_osg_Matrix_R1, + "", + ""); + I_SimpleProperty(osg::CullStack::CullingStack &, ClipSpaceCullingStack, + __CullingStack_R1__getClipSpaceCullingStack, + 0); + I_SimpleProperty(osg::CullingSet &, CurrentCullingSet, + __CullingSet_R1__getCurrentCullingSet, + 0); + I_SimpleProperty(const osg::Vec3 &, EyeLocal, + __C5_osg_Vec3_R1__getEyeLocal, + 0); + I_SimpleProperty(float, FrustumVolume, + __float__getFrustumVolume, + 0); + I_SimpleProperty(const osg::Vec3, LookVectorLocal, + __C5_osg_Vec3__getLookVectorLocal, + 0); + I_SimpleProperty(const osg::RefMatrix *, MVPW, + __C5_osg_RefMatrix_P1__getMVPW, + 0); + I_SimpleProperty(osg::CullStack::CullingStack &, ModelViewCullingStack, + __CullingStack_R1__getModelViewCullingStack, + 0); + I_SimpleProperty(osg::RefMatrix *, ModelViewMatrix, + __osg_RefMatrix_P1__getModelViewMatrix, + 0); + I_SimpleProperty(const osg::ShadowVolumeOccluderList &, OccluderList, + __C5_ShadowVolumeOccluderList_R1__getOccluderList, + __void__setOccluderList__C5_ShadowVolumeOccluderList_R1); + I_SimpleProperty(osg::CullStack::CullingStack &, ProjectionCullingStack, + __CullingStack_R1__getProjectionCullingStack, + 0); + I_SimpleProperty(osg::RefMatrix *, ProjectionMatrix, + __osg_RefMatrix_P1__getProjectionMatrix, + 0); + I_SimpleProperty(const osg::Vec3 &, ReferenceViewPoint, + __C5_osg_Vec3_R1__getReferenceViewPoint, + 0); + I_SimpleProperty(const osg::Vec3, UpLocal, + __C5_osg_Vec3__getUpLocal, + 0); + I_SimpleProperty(const osg::Vec3 &, ViewPointLocal, + __C5_osg_Vec3_R1__getViewPointLocal, + 0); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + 0); + I_SimpleProperty(osg::Matrix, WindowMatrix, + __osg_Matrix__getWindowMatrix, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::CullingSet >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ShadowVolumeOccluder >) + diff --git a/src/osgWrappers/introspection/osg/CullingSet.cpp b/src/osgWrappers/introspection/osg/CullingSet.cpp new file mode 100644 index 000000000..1e55da002 --- /dev/null +++ b/src/osgWrappers/introspection/osg/CullingSet.cpp @@ -0,0 +1,273 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::CullingSet::MaskValues) + I_DeclaringFile("osg/CullingSet"); + I_EnumLabel(osg::CullingSet::NO_CULLING); + I_EnumLabel(osg::CullingSet::VIEW_FRUSTUM_SIDES_CULLING); + I_EnumLabel(osg::CullingSet::NEAR_PLANE_CULLING); + I_EnumLabel(osg::CullingSet::FAR_PLANE_CULLING); + I_EnumLabel(osg::CullingSet::VIEW_FRUSTUM_CULLING); + I_EnumLabel(osg::CullingSet::SMALL_FEATURE_CULLING); + I_EnumLabel(osg::CullingSet::SHADOW_OCCLUSION_CULLING); + I_EnumLabel(osg::CullingSet::DEFAULT_CULLING); + I_EnumLabel(osg::CullingSet::ENABLE_ALL_CULLING); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateSet > COMMA osg::Polytope >, osg::CullingSet::StateFrustumPair) + +TYPE_NAME_ALIAS(std::vector< osg::CullingSet::StateFrustumPair >, osg::CullingSet::StateFrustumList) + +TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::CullingSet::OccluderList) + +TYPE_NAME_ALIAS(unsigned int, osg::CullingSet::Mask) + +BEGIN_OBJECT_REFLECTOR(osg::CullingSet) + I_DeclaringFile("osg/CullingSet"); + I_BaseType(osg::Referenced); + I_Constructor0(____CullingSet, + "", + ""); + I_Constructor1(IN, const osg::CullingSet &, cs, + Properties::NON_EXPLICIT, + ____CullingSet__C5_CullingSet_R1, + "", + ""); + I_Constructor3(IN, const osg::CullingSet &, cs, IN, const osg::Matrix &, matrix, IN, const osg::Vec4 &, pixelSizeVector, + ____CullingSet__C5_CullingSet_R1__C5_Matrix_R1__C5_Vec4_R1, + "", + ""); + 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, + "", + ""); + I_StaticMethod3(osg::Vec4, computePixelSizeVector, IN, const osg::Viewport &, W, IN, const osg::Matrix &, P, IN, const osg::Matrix &, M, + __osg_Vec4__computePixelSizeVector__C5_Viewport_R1__C5_Matrix_R1__C5_Matrix_R1_S, + "", + ""); + I_SimpleProperty(osg::CullingSet::Mask, CullingMask, + __Mask__getCullingMask, + __void__setCullingMask__Mask); + I_SimpleProperty(osg::Polytope &, Frustum, + __Polytope_R1__getFrustum, + __void__setFrustum__Polytope_R1); + I_SimpleProperty(const osg::Vec4 &, PixelSizeVector, + __C5_Vec4_R1__getPixelSizeVector, + __void__setPixelSizeVector__C5_Vec4_R1); + I_SimpleProperty(float, SmallFeatureCullingPixelSize, + __float__getSmallFeatureCullingPixelSize, + __void__setSmallFeatureCullingPixelSize__float); + I_SimpleProperty(osg::CullingSet::StateFrustumList &, StateFrustumList, + __StateFrustumList_R1__getStateFrustumList, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateSet >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::StateSet *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::StateSet > COMMA osg::Polytope >) + +STD_VECTOR_REFLECTOR(std::vector< osg::CullingSet::StateFrustumPair >) + diff --git a/src/osgWrappers/introspection/osg/DeleteHandler.cpp b/src/osgWrappers/introspection/osg/DeleteHandler.cpp new file mode 100644 index 000000000..aed5d1751 --- /dev/null +++ b/src/osgWrappers/introspection/osg/DeleteHandler.cpp @@ -0,0 +1,91 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::pair< int COMMA const osg::Referenced * >, osg::DeleteHandler::FrameNumberObjectPair) + +TYPE_NAME_ALIAS(std::list< osg::DeleteHandler::FrameNumberObjectPair >, osg::DeleteHandler::ObjectsToDeleteList) + +BEGIN_OBJECT_REFLECTOR(osg::DeleteHandler) + I_DeclaringFile("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 objects for several frames is useful to prevent premature deletion when objects are still 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 number so 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. "); + I_ProtectedConstructor1(IN, const osg::DeleteHandler &, x, + Properties::NON_EXPLICIT, + ____DeleteHandler__C5_DeleteHandler_R1, + "", + ""); + I_SimpleProperty(int, FrameNumber, + __int__getFrameNumber, + __void__setFrameNumber__int); + I_SimpleProperty(int, NumFramesToRetainObjects, + 0, + __void__setNumFramesToRetainObjects__int); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::DeleteHandler::FrameNumberObjectPair >) + +STD_PAIR_REFLECTOR(std::pair< int COMMA const osg::Referenced * >) + diff --git a/src/osgWrappers/introspection/osg/Depth.cpp b/src/osgWrappers/introspection/osg/Depth.cpp new file mode 100644 index 000000000..36c95f665 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Depth.cpp @@ -0,0 +1,156 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Depth::Function) + I_DeclaringFile("osg/Depth"); + I_EnumLabel(osg::Depth::NEVER); + I_EnumLabel(osg::Depth::LESS); + I_EnumLabel(osg::Depth::EQUAL); + I_EnumLabel(osg::Depth::LEQUAL); + I_EnumLabel(osg::Depth::GREATER); + I_EnumLabel(osg::Depth::NOTEQUAL); + I_EnumLabel(osg::Depth::GEQUAL); + I_EnumLabel(osg::Depth::ALWAYS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Depth) + I_DeclaringFile("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, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Depth &, dp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Depth__C5_Depth_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::Depth::Function, Function, + __Function__getFunction, + __void__setFunction__Function); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(bool, WriteMask, + __bool__getWriteMask, + __void__setWriteMask__bool); + I_SimpleProperty(double, ZFar, + __double__getZFar, + __void__setZFar__double); + I_SimpleProperty(double, ZNear, + __double__getZNear, + __void__setZNear__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/DisplaySettings.cpp b/src/osgWrappers/introspection/osg/DisplaySettings.cpp new file mode 100644 index 000000000..20f499161 --- /dev/null +++ b/src/osgWrappers/introspection/osg/DisplaySettings.cpp @@ -0,0 +1,593 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::DisplayType) + I_DeclaringFile("osg/DisplaySettings"); + I_EnumLabel(osg::DisplaySettings::MONITOR); + I_EnumLabel(osg::DisplaySettings::POWERWALL); + I_EnumLabel(osg::DisplaySettings::REALITY_CENTER); + I_EnumLabel(osg::DisplaySettings::HEAD_MOUNTED_DISPLAY); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::StereoMode) + I_DeclaringFile("osg/DisplaySettings"); + I_EnumLabel(osg::DisplaySettings::QUAD_BUFFER); + I_EnumLabel(osg::DisplaySettings::ANAGLYPHIC); + I_EnumLabel(osg::DisplaySettings::HORIZONTAL_SPLIT); + I_EnumLabel(osg::DisplaySettings::VERTICAL_SPLIT); + I_EnumLabel(osg::DisplaySettings::LEFT_EYE); + I_EnumLabel(osg::DisplaySettings::RIGHT_EYE); + I_EnumLabel(osg::DisplaySettings::HORIZONTAL_INTERLACE); + I_EnumLabel(osg::DisplaySettings::VERTICAL_INTERLACE); + I_EnumLabel(osg::DisplaySettings::CHECKERBOARD); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::SplitStereoHorizontalEyeMapping) + I_DeclaringFile("osg/DisplaySettings"); + I_EnumLabel(osg::DisplaySettings::LEFT_EYE_LEFT_VIEWPORT); + I_EnumLabel(osg::DisplaySettings::LEFT_EYE_RIGHT_VIEWPORT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::SplitStereoVerticalEyeMapping) + I_DeclaringFile("osg/DisplaySettings"); + I_EnumLabel(osg::DisplaySettings::LEFT_EYE_TOP_VIEWPORT); + I_EnumLabel(osg::DisplaySettings::LEFT_EYE_BOTTOM_VIEWPORT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::DisplaySettings::ImplicitBufferAttachment) + I_DeclaringFile("osg/DisplaySettings"); + I_EnumLabel(osg::DisplaySettings::IMPLICIT_DEPTH_BUFFER_ATTACHMENT); + I_EnumLabel(osg::DisplaySettings::IMPLICIT_STENCIL_BUFFER_ATTACHMENT); + I_EnumLabel(osg::DisplaySettings::IMPLICIT_COLOR_BUFFER_ATTACHMENT); + I_EnumLabel(osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT); +END_REFLECTOR + +TYPE_NAME_ALIAS(int, osg::DisplaySettings::ImplicitBufferAttachmentMask) + +BEGIN_OBJECT_REFLECTOR(osg::DisplaySettings) + I_DeclaringFile("osg/DisplaySettings"); + I_BaseType(osg::Referenced); + I_StaticMethod0(osg::DisplaySettings *, instance, + __DisplaySettings_P1__instance_S, + "Maintain a DisplaySettings singleton for objects to query at runtime. ", + ""); + 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, setSplitStereoAutoAdjustAspectRatio, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setSplitStereoAutoAdjustAspectRatio__bool, + "", + ""); + I_Method0(bool, getSplitStereoAutoAdjustAspectRatio, + Properties::NON_VIRTUAL, + __bool__getSplitStereoAutoAdjustAspectRatio, + "", + ""); + 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, + "", + ""); + I_Method1(void, setCompileContextsHint, IN, bool, useCompileContexts, + Properties::NON_VIRTUAL, + __void__setCompileContextsHint__bool, + "", + ""); + I_Method0(bool, getCompileContextsHint, + Properties::NON_VIRTUAL, + __bool__getCompileContextsHint, + "", + ""); + I_Method1(void, setSerializeDrawDispatch, IN, bool, serializeDrawDispatch, + Properties::NON_VIRTUAL, + __void__setSerializeDrawDispatch__bool, + "", + ""); + I_Method0(bool, getSerializeDrawDispatch, + Properties::NON_VIRTUAL, + __bool__getSerializeDrawDispatch, + "", + ""); + I_Method1(void, setNumOfDatabaseThreadsHint, IN, unsigned int, numThreads, + Properties::NON_VIRTUAL, + __void__setNumOfDatabaseThreadsHint__unsigned_int, + "Set the hint for the total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads. ", + ""); + I_Method0(unsigned int, getNumOfDatabaseThreadsHint, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfDatabaseThreadsHint, + "Get the hint for total number of threads in the DatbasePager set up, inclusive of the number of http dedicated threads. ", + ""); + I_Method1(void, setNumOfHttpDatabaseThreadsHint, IN, unsigned int, numThreads, + Properties::NON_VIRTUAL, + __void__setNumOfHttpDatabaseThreadsHint__unsigned_int, + "Set the hint for number of threads in the DatbasePager to dedicate to reading http requests. ", + ""); + I_Method0(unsigned int, getNumOfHttpDatabaseThreadsHint, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfHttpDatabaseThreadsHint, + "Get the hint for number of threads in the DatbasePager dedicated to reading http requests. ", + ""); + I_Method1(void, setApplication, IN, const std::string &, application, + Properties::NON_VIRTUAL, + __void__setApplication__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplication, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getApplication, + "", + ""); + I_Method1(void, setMaxTexturePoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxTexturePoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxTexturePoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxTexturePoolSize, + "", + ""); + I_Method1(void, setMaxBufferObjectPoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxBufferObjectPoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxBufferObjectPoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxBufferObjectPoolSize, + "", + ""); + I_MethodWithDefaults2(void, setImplicitBufferAttachmentMask, IN, osg::DisplaySettings::ImplicitBufferAttachmentMask, renderMask, osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, IN, osg::DisplaySettings::ImplicitBufferAttachmentMask, resolveMask, osg::DisplaySettings::DEFAULT_IMPLICIT_BUFFER_ATTACHMENT, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentMask__ImplicitBufferAttachmentMask__ImplicitBufferAttachmentMask, + "", + ""); + I_Method1(void, setImplicitBufferAttachmentRenderMask, IN, osg::DisplaySettings::ImplicitBufferAttachmentMask, implicitBufferAttachmentRenderMask, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentRenderMask__ImplicitBufferAttachmentMask, + "", + ""); + I_Method1(void, setImplicitBufferAttachmentResolveMask, IN, osg::DisplaySettings::ImplicitBufferAttachmentMask, implicitBufferAttachmentResolveMask, + Properties::NON_VIRTUAL, + __void__setImplicitBufferAttachmentResolveMask__ImplicitBufferAttachmentMask, + "", + ""); + I_Method0(osg::DisplaySettings::ImplicitBufferAttachmentMask, getImplicitBufferAttachmentRenderMask, + Properties::NON_VIRTUAL, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentRenderMask, + "Get mask selecting default implict buffer attachments for Cameras primary FBOs. ", + ""); + I_Method0(osg::DisplaySettings::ImplicitBufferAttachmentMask, getImplicitBufferAttachmentResolveMask, + Properties::NON_VIRTUAL, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentResolveMask, + "Get mask selecting default implict buffer attachments for Cameras secondary MULTISAMPLE FBOs. ", + ""); + I_Method1(void, setGLContextVersion, IN, const std::string &, version, + Properties::NON_VIRTUAL, + __void__setGLContextVersion__C5_std_string_R1, + "Set the hint of which OpenGL version to attempt to create a graphics context for. ", + ""); + I_Method0(const std::string, getGLContextVersion, + Properties::NON_VIRTUAL, + __C5_std_string__getGLContextVersion, + "Get the hint of which OpenGL version to attempt to create a graphics context for. ", + ""); + I_Method1(void, setGLContextFlags, IN, unsigned int, flags, + Properties::NON_VIRTUAL, + __void__setGLContextFlags__unsigned_int, + "Set the hint of the flags to use in when creating graphic contexts. ", + ""); + I_Method0(unsigned int, getGLContextFlags, + Properties::NON_VIRTUAL, + __unsigned_int__getGLContextFlags, + "Get the hint of the flags to use in when creating graphic contexts. ", + ""); + I_Method1(void, setGLContextProfileMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setGLContextProfileMask__unsigned_int, + "Set the hint of the profile mask to use in when creating graphic contexts. ", + ""); + I_Method0(unsigned int, getGLContextProfileMask, + Properties::NON_VIRTUAL, + __unsigned_int__getGLContextProfileMask, + "Get the hint of the profile mask to use in when creating graphic contexts. ", + ""); + I_SimpleProperty(bool, AccumBuffer, + __bool__getAccumBuffer, + 0); + I_SimpleProperty(bool, AlphaBuffer, + __bool__getAlphaBuffer, + 0); + I_SimpleProperty(const std::string &, Application, + __C5_std_string_R1__getApplication, + __void__setApplication__C5_std_string_R1); + I_SimpleProperty(bool, CompileContextsHint, + __bool__getCompileContextsHint, + __void__setCompileContextsHint__bool); + I_SimpleProperty(bool, DepthBuffer, + __bool__getDepthBuffer, + __void__setDepthBuffer__bool); + I_SimpleProperty(const osg::DisplaySettings &, DisplaySettings, + 0, + __void__setDisplaySettings__C5_DisplaySettings_R1); + I_SimpleProperty(osg::DisplaySettings::DisplayType, DisplayType, + __DisplayType__getDisplayType, + __void__setDisplayType__DisplayType); + I_SimpleProperty(bool, DoubleBuffer, + __bool__getDoubleBuffer, + __void__setDoubleBuffer__bool); + I_SimpleProperty(float, EyeSeparation, + __float__getEyeSeparation, + __void__setEyeSeparation__float); + I_SimpleProperty(unsigned int, GLContextFlags, + __unsigned_int__getGLContextFlags, + __void__setGLContextFlags__unsigned_int); + I_SimpleProperty(unsigned int, GLContextProfileMask, + __unsigned_int__getGLContextProfileMask, + __void__setGLContextProfileMask__unsigned_int); + I_SimpleProperty(const std::string &, GLContextVersion, + 0, + __void__setGLContextVersion__C5_std_string_R1); + I_SimpleProperty(osg::DisplaySettings::ImplicitBufferAttachmentMask, ImplicitBufferAttachmentRenderMask, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentRenderMask, + __void__setImplicitBufferAttachmentRenderMask__ImplicitBufferAttachmentMask); + I_SimpleProperty(osg::DisplaySettings::ImplicitBufferAttachmentMask, ImplicitBufferAttachmentResolveMask, + __ImplicitBufferAttachmentMask__getImplicitBufferAttachmentResolveMask, + __void__setImplicitBufferAttachmentResolveMask__ImplicitBufferAttachmentMask); + I_SimpleProperty(unsigned int, MaxBufferObjectPoolSize, + __unsigned_int__getMaxBufferObjectPoolSize, + __void__setMaxBufferObjectPoolSize__unsigned_int); + I_SimpleProperty(unsigned int, MaxNumberOfGraphicsContexts, + __unsigned_int__getMaxNumberOfGraphicsContexts, + __void__setMaxNumberOfGraphicsContexts__unsigned_int); + I_SimpleProperty(unsigned int, MaxTexturePoolSize, + __unsigned_int__getMaxTexturePoolSize, + __void__setMaxTexturePoolSize__unsigned_int); + I_SimpleProperty(unsigned int, MinimumNumAccumAlphaBits, + __unsigned_int__getMinimumNumAccumAlphaBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumBlueBits, + __unsigned_int__getMinimumNumAccumBlueBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumGreenBits, + __unsigned_int__getMinimumNumAccumGreenBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAccumRedBits, + __unsigned_int__getMinimumNumAccumRedBits, + 0); + I_SimpleProperty(unsigned int, MinimumNumAlphaBits, + __unsigned_int__getMinimumNumAlphaBits, + __void__setMinimumNumAlphaBits__unsigned_int); + I_SimpleProperty(unsigned int, MinimumNumStencilBits, + __unsigned_int__getMinimumNumStencilBits, + __void__setMinimumNumStencilBits__unsigned_int); + I_SimpleProperty(bool, MultiSamples, + __bool__getMultiSamples, + 0); + I_SimpleProperty(unsigned int, NumMultiSamples, + 0, + __void__setNumMultiSamples__unsigned_int); + I_SimpleProperty(unsigned int, NumOfDatabaseThreadsHint, + 0, + __void__setNumOfDatabaseThreadsHint__unsigned_int); + I_SimpleProperty(unsigned int, NumOfHttpDatabaseThreadsHint, + 0, + __void__setNumOfHttpDatabaseThreadsHint__unsigned_int); + I_SimpleProperty(bool, RGB, + __bool__getRGB, + __void__setRGB__bool); + I_SimpleProperty(float, ScreenDistance, + __float__getScreenDistance, + __void__setScreenDistance__float); + I_SimpleProperty(float, ScreenHeight, + __float__getScreenHeight, + __void__setScreenHeight__float); + I_SimpleProperty(float, ScreenWidth, + __float__getScreenWidth, + __void__setScreenWidth__float); + I_SimpleProperty(bool, SerializeDrawDispatch, + __bool__getSerializeDrawDispatch, + __void__setSerializeDrawDispatch__bool); + I_SimpleProperty(bool, SplitStereoAutoAdjustAspectRatio, + __bool__getSplitStereoAutoAdjustAspectRatio, + __void__setSplitStereoAutoAdjustAspectRatio__bool); + I_SimpleProperty(osg::DisplaySettings::SplitStereoHorizontalEyeMapping, SplitStereoHorizontalEyeMapping, + __SplitStereoHorizontalEyeMapping__getSplitStereoHorizontalEyeMapping, + __void__setSplitStereoHorizontalEyeMapping__SplitStereoHorizontalEyeMapping); + I_SimpleProperty(int, SplitStereoHorizontalSeparation, + __int__getSplitStereoHorizontalSeparation, + __void__setSplitStereoHorizontalSeparation__int); + I_SimpleProperty(osg::DisplaySettings::SplitStereoVerticalEyeMapping, SplitStereoVerticalEyeMapping, + __SplitStereoVerticalEyeMapping__getSplitStereoVerticalEyeMapping, + __void__setSplitStereoVerticalEyeMapping__SplitStereoVerticalEyeMapping); + I_SimpleProperty(int, SplitStereoVerticalSeparation, + __int__getSplitStereoVerticalSeparation, + __void__setSplitStereoVerticalSeparation__int); + I_SimpleProperty(bool, StencilBuffer, + __bool__getStencilBuffer, + 0); + I_SimpleProperty(bool, Stereo, + __bool__getStereo, + __void__setStereo__bool); + I_SimpleProperty(osg::DisplaySettings::StereoMode, StereoMode, + __StereoMode__getStereoMode, + __void__setStereoMode__StereoMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/DrawPixels.cpp b/src/osgWrappers/introspection/osg/DrawPixels.cpp new file mode 100644 index 000000000..17e16632b --- /dev/null +++ b/src/osgWrappers/introspection/osg/DrawPixels.cpp @@ -0,0 +1,134 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::DrawPixels) + I_DeclaringFile("osg/DrawPixels"); + I_BaseType(osg::Drawable); + I_Constructor0(____DrawPixels, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawPixels &, drawimage, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawPixels__C5_DrawPixels_R1__C5_CopyOp_R1, + "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 &, 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. "); + 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::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__RenderInfo_R1, + "drawImplementation(RenderInfo&) 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 renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. "); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(bool, UseSubImage, + __bool__getUseSubImage, + __void__setUseSubImage__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Drawable.cpp b/src/osgWrappers/introspection/osg/Drawable.cpp new file mode 100644 index 000000000..739bade15 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Drawable.cpp @@ -0,0 +1,908 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Drawable::AttributeTypes) + I_DeclaringFile("osg/Drawable"); + I_EnumLabel(osg::Drawable::VERTICES); + I_EnumLabel(osg::Drawable::WEIGHTS); + I_EnumLabel(osg::Drawable::NORMALS); + I_EnumLabel(osg::Drawable::COLORS); + I_EnumLabel(osg::Drawable::SECONDARY_COLORS); + I_EnumLabel(osg::Drawable::FOG_COORDS); + I_EnumLabel(osg::Drawable::ATTRIBUTE_6); + I_EnumLabel(osg::Drawable::ATTRIBUTE_7); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_0); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_1); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_2); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_3); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_4); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_5); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_6); + I_EnumLabel(osg::Drawable::TEXTURE_COORDS_7); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::Drawable::ParentList) + +TYPE_NAME_ALIAS(unsigned int, osg::Drawable::AttributeType) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Drawable) + I_DeclaringFile("osg/Drawable"); + I_BaseType(osg::Object); + I_Constructor0(____Drawable, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Drawable &, drawable, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Drawable__C5_Drawable_R1__C5_CopyOp_R1, + "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(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assessment of callback etc. ", + ""); + 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_MethodWithDefaults1(osg::MatrixList, getWorldMatrices, IN, const osg::Node *, haltTraversalAtNode, 0, + Properties::NON_VIRTUAL, + __MatrixList__getWorldMatrices__C5_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, 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::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::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/VertexBufferObjects. ", + "Operation is ignored if _useDisplayList is false or VertexBufferObjects are not used. "); + 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 objects 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::RenderInfo &, renderInfo, + Properties::PURE_VIRTUAL, + __void__drawImplementation__RenderInfo_R1, + "drawImplementation(RenderInfo&) 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 renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State 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. "); + I_StaticMethodWithDefaults2(GLuint, generateDisplayList, IN, unsigned int, contextID, , IN, unsigned int, sizeHint, 0, + __GLuint__generateDisplayList__unsigned_int__unsigned_int_S, + "Return a OpenGL display list handle a newly generated or reused from display list cache. ", + ""); + I_StaticMethod1(void, setMinimumNumberOfDisplayListsToRetainInCache, IN, unsigned int, minimum, + __void__setMinimumNumberOfDisplayListsToRetainInCache__unsigned_int_S, + "Set the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethod0(unsigned int, getMinimumNumberOfDisplayListsToRetainInCache, + __unsigned_int__getMinimumNumberOfDisplayListsToRetainInCache_S, + "Get the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethodWithDefaults3(void, deleteDisplayList, IN, unsigned int, contextID, , IN, GLuint, globj, , IN, unsigned int, sizeHint, 0, + __void__deleteDisplayList__unsigned_int__GLuint__unsigned_int_S, + "Use deleteDisplayList instead of glDeleteList to allow OpenGL display list to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod1(void, flushAllDeletedDisplayLists, IN, unsigned int, contextID, + __void__flushAllDeletedDisplayLists__unsigned_int_S, + "Flush all the cached display list which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardAllDeletedDisplayLists, IN, unsigned int, contextID, + __void__discardAllDeletedDisplayLists__unsigned_int_S, + "Flush all the cached display list which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_StaticMethod2(void, flushDeletedDisplayLists, IN, unsigned int, contextID, IN, double &, availableTime, + __void__flushDeletedDisplayLists__unsigned_int__double_R1_S, + "Flush the cached display list which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(osg::Drawable::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object is only created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Drawable::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_ProtectedMethod1(void, setBound, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__setBound__C5_BoundingBox_R1, + "set the bounding box . ", + ""); + I_ProtectedMethod1(void, addParent, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addParent__osg_Node_P1, + "", + ""); + I_ProtectedMethod1(void, removeParent, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeParent__osg_Node_P1, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringUpdateTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringUpdateTraversal__unsigned_int, + "", + ""); + I_ProtectedMethod0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, + Properties::CONST, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringEventTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringEventTraversal__unsigned_int, + "", + ""); + I_ProtectedMethod0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, + Properties::CONST, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "", + ""); + I_SimpleProperty(const osg::BoundingBox &, Bound, + __C5_BoundingBox_R1__getBound, + 0); + I_SimpleProperty(osg::Drawable::ComputeBoundingBoxCallback *, ComputeBoundingBoxCallback, + __ComputeBoundingBoxCallback_P1__getComputeBoundingBoxCallback, + __void__setComputeBoundingBoxCallback__ComputeBoundingBoxCallback_P1); + I_SimpleProperty(osg::Drawable::CullCallback *, CullCallback, + __CullCallback_P1__getCullCallback, + __void__setCullCallback__CullCallback_P1); + I_SimpleProperty(osg::Drawable::DrawCallback *, DrawCallback, + __DrawCallback_P1__getDrawCallback, + __void__setDrawCallback__DrawCallback_P1); + I_SimpleProperty(osg::Drawable::EventCallback *, EventCallback, + __EventCallback_P1__getEventCallback, + __void__setEventCallback__EventCallback_P1); + I_SimpleProperty(unsigned int, GLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + 0); + I_SimpleProperty(const osg::BoundingBox &, InitialBound, + __C5_BoundingBox_R1__getInitialBound, + __void__setInitialBound__C5_osg_BoundingBox_R1); + I_ArrayProperty(osg::Node *, Parent, + __Node_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Drawable::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Shape *, Shape, + __Shape_P1__getShape, + __void__setShape__Shape_P1); + I_SimpleProperty(osg::StateSet *, StateSet, + __StateSet_P1__getStateSet, + __void__setStateSet__StateSet_P1); + I_SimpleProperty(bool, SupportsDisplayList, + __bool__getSupportsDisplayList, + __void__setSupportsDisplayList__bool); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::Drawable::UpdateCallback *, UpdateCallback, + __UpdateCallback_P1__getUpdateCallback, + __void__setUpdateCallback__UpdateCallback_P1); + I_SimpleProperty(bool, UseDisplayList, + __bool__getUseDisplayList, + __void__setUseDisplayList__bool); + I_SimpleProperty(bool, UseVertexBufferObjects, + __bool__getUseVertexBufferObjects, + __void__setUseVertexBufferObjects__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Drawable::AttributeFunctor) + I_DeclaringFile("osg/Drawable"); + 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, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, double *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__double_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec2d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec2d_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec3d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec3d_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, osg::Vec4d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__Vec4d_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Drawable::ComputeBoundingBoxCallback) + I_DeclaringFile("osg/Drawable"); + I_BaseType(osg::Object); + I_Constructor0(____ComputeBoundingBoxCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::ComputeBoundingBoxCallback &, x, IN, const osg::CopyOp &, x, + ____ComputeBoundingBoxCallback__C5_ComputeBoundingBoxCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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) + I_DeclaringFile("osg/Drawable"); + I_Constructor0(____ConstAttributeFunctor, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLbyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLbyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLshort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLshort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLubyte_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLushort_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_GLuint_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const float *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_float_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec2_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec3_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec4_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec4ub *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec4ub_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const double *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_double_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec2d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec2d_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec3d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec3d_P1, + "", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, x, IN, unsigned, int, IN, const osg::Vec4d *, x, + Properties::VIRTUAL, + __void__apply__AttributeType__unsigned__C5_Vec4d_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Drawable::CullCallback) + I_DeclaringFile("osg/Drawable"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____CullCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::CullCallback &, x, IN, const osg::CopyOp &, x, + ____CullCallback__C5_CullCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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) + I_DeclaringFile("osg/Drawable"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____DrawCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::DrawCallback &, x, IN, const osg::CopyOp &, x, + ____DrawCallback__C5_DrawCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method2(void, drawImplementation, IN, osg::RenderInfo &, x, IN, const osg::Drawable *, x, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__C5_osg_Drawable_P1, + "do customized draw code. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Drawable::EventCallback) + I_DeclaringFile("osg/Drawable"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____EventCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::EventCallback &, x, IN, const osg::CopyOp &, x, + ____EventCallback__C5_EventCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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::UpdateCallback) + I_DeclaringFile("osg/Drawable"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____UpdateCallback, + "", + ""); + I_Constructor2(IN, const osg::Drawable::UpdateCallback &, x, IN, const osg::CopyOp &, x, + ____UpdateCallback__C5_UpdateCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. ", + ""); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Node * >) + diff --git a/src/osgWrappers/introspection/osg/Endian.cpp b/src/osgWrappers/introspection/osg/Endian.cpp new file mode 100644 index 000000000..76872cf84 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Endian.cpp @@ -0,0 +1,28 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Endian) + I_DeclaringFile("osg/Endian"); + I_EnumLabel(osg::BigEndian); + I_EnumLabel(osg::LittleEndian); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Fog.cpp b/src/osgWrappers/introspection/osg/Fog.cpp new file mode 100644 index 000000000..01afb3bb4 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Fog.cpp @@ -0,0 +1,178 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Fog::Mode) + I_DeclaringFile("osg/Fog"); + I_EnumLabel(osg::Fog::LINEAR); + I_EnumLabel(osg::Fog::EXP); + I_EnumLabel(osg::Fog::EXP2); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Fog::FogCoordinateSource) + I_DeclaringFile("osg/Fog"); + I_EnumLabel(osg::Fog::FOG_COORDINATE); + I_EnumLabel(osg::Fog::FRAGMENT_DEPTH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Fog) + I_DeclaringFile("osg/Fog"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Fog, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Fog &, fog, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Fog__C5_Fog_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(float, Density, + __float__getDensity, + __void__setDensity__float); + I_SimpleProperty(float, End, + __float__getEnd, + __void__setEnd__float); + I_SimpleProperty(GLint, FogCoordinateSource, + __GLint__getFogCoordinateSource, + __void__setFogCoordinateSource__GLint); + I_SimpleProperty(osg::Fog::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(float, Start, + __float__getStart, + __void__setStart__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/FragmentProgram.cpp b/src/osgWrappers/introspection/osg/FragmentProgram.cpp new file mode 100644 index 000000000..f7bdcff2e --- /dev/null +++ b/src/osgWrappers/introspection/osg/FragmentProgram.cpp @@ -0,0 +1,205 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::FragmentProgram::LocalParamList) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::FragmentProgram::MatrixList) + +BEGIN_OBJECT_REFLECTOR(osg::FragmentProgram) + I_DeclaringFile("osg/FragmentProgram"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____FragmentProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FragmentProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FragmentProgram__C5_FragmentProgram_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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, 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 objects for all graphics context if State object pointer == NULL. ", + ""); + I_StaticMethod2(void, deleteFragmentProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, + __void__deleteFragmentProgramObject__unsigned_int__GLuint_S, + "use deleteFragmentProgramObject instead of glDeletePrograms to allow OpenGL Fragment Program objects to be cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod3(void, flushDeletedFragmentProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedFragmentProgramObjects__unsigned_int__double__double_R1_S, + "flush all the cached fragment programs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedFragmentProgramObjects, IN, unsigned int, contextID, + __void__discardDeletedFragmentProgramObjects__unsigned_int_S, + "discard all the cached fragment programs which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_StaticMethod2(osg::FragmentProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag has been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::FragmentProgram::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const std::string &, FragmentProgram, + __C5_std_string_R1__getFragmentProgram, + __void__setFragmentProgram__C5_std_string_R1); + I_SimpleProperty(const osg::FragmentProgram::LocalParamList &, LocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + __void__setLocalParameters__C5_LocalParamList_R1); + I_SimpleProperty(const osg::FragmentProgram::MatrixList &, Matrices, + __C5_MatrixList_R1__getMatrices, + __void__setMatrices__C5_MatrixList_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< GLenum COMMA osg::Matrix >) + +STD_MAP_REFLECTOR(std::map< GLuint COMMA osg::Vec4 >) + diff --git a/src/osgWrappers/introspection/osg/FrameBufferObject.cpp b/src/osgWrappers/introspection/osg/FrameBufferObject.cpp new file mode 100644 index 000000000..43605b61f --- /dev/null +++ b/src/osgWrappers/introspection/osg/FrameBufferObject.cpp @@ -0,0 +1,454 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::FrameBufferAttachment) + I_DeclaringFile("osg/FrameBufferObject"); + I_Constructor0(____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, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Texture1D *, target, , IN, int, level, 0, + ____FrameBufferAttachment__Texture1D_P1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Texture2D *, target, , IN, int, level, 0, + ____FrameBufferAttachment__Texture2D_P1__int, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Texture3D *, target, , IN, int, zoffset, , IN, int, level, 0, + ____FrameBufferAttachment__Texture3D_P1__int__int, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Texture2DArray *, target, , IN, int, layer, , IN, int, level, 0, + ____FrameBufferAttachment__Texture2DArray_P1__int__int, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::TextureCubeMap *, target, , IN, int, face, , IN, int, level, 0, + ____FrameBufferAttachment__TextureCubeMap_P1__int__int, + "", + ""); + 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_Method0(bool, isMultisample, + Properties::NON_VIRTUAL, + __bool__isMultisample, + "", + ""); + I_Method2(void, createRequiredTexturesAndApplyGenerateMipMap, IN, osg::State &, state, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__createRequiredTexturesAndApplyGenerateMipMap__State_R1__C5_FBOExtensions_P1, + "", + ""); + I_Method4(void, attach, IN, osg::State &, state, IN, GLenum, target, IN, GLenum, attachment_point, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __void__attach__State_R1__GLenum__GLenum__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::FrameBufferAttachment &, fa, + Properties::NON_VIRTUAL, + __int__compare__C5_FrameBufferAttachment_R1, + "", + ""); + I_Method0(osg::RenderBuffer *, getRenderBuffer, + Properties::NON_VIRTUAL, + __RenderBuffer_P1__getRenderBuffer, + "", + ""); + I_Method0(const osg::RenderBuffer *, getRenderBuffer, + Properties::NON_VIRTUAL, + __C5_RenderBuffer_P1__getRenderBuffer, + "", + ""); + I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __Texture_P1__getTexture, + "", + ""); + I_Method0(const osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __C5_Texture_P1__getTexture, + "", + ""); + I_Method0(int, getCubeMapFace, + Properties::NON_VIRTUAL, + __int__getCubeMapFace, + "", + ""); + I_Method0(int, getTextureLevel, + Properties::NON_VIRTUAL, + __int__getTextureLevel, + "", + ""); + I_Method0(int, getTexture3DZOffset, + Properties::NON_VIRTUAL, + __int__getTexture3DZOffset, + "", + ""); + I_Method0(int, getTextureArrayLayer, + Properties::NON_VIRTUAL, + __int__getTextureArrayLayer, + "", + ""); + I_SimpleProperty(int, CubeMapFace, + __int__getCubeMapFace, + 0); + I_SimpleProperty(osg::RenderBuffer *, RenderBuffer, + __RenderBuffer_P1__getRenderBuffer, + 0); + I_SimpleProperty(osg::Texture *, Texture, + __Texture_P1__getTexture, + 0); + I_SimpleProperty(int, Texture3DZOffset, + __int__getTexture3DZOffset, + 0); + I_SimpleProperty(int, TextureArrayLayer, + __int__getTextureArrayLayer, + 0); + I_SimpleProperty(int, TextureLevel, + __int__getTextureLevel, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::FrameBufferObject::BindTarget) + I_DeclaringFile("osg/FrameBufferObject"); + I_EnumLabel(osg::FrameBufferObject::READ_FRAMEBUFFER); + I_EnumLabel(osg::FrameBufferObject::DRAW_FRAMEBUFFER); + I_EnumLabel(osg::FrameBufferObject::READ_DRAW_FRAMEBUFFER); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< osg::Camera::BufferComponent COMMA osg::FrameBufferAttachment >, osg::FrameBufferObject::AttachmentMap) + +TYPE_NAME_ALIAS(std::vector< GLenum >, osg::FrameBufferObject::MultipleRenderingTargets) + +TYPE_NAME_ALIAS(osg::Camera::BufferComponent, osg::FrameBufferObject::BufferComponent) + +BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) + I_DeclaringFile("osg/FrameBufferObject"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____FrameBufferObject, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FrameBufferObject &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FrameBufferObject__C5_FrameBufferObject_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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_Method2(void, setAttachment, IN, osg::FrameBufferObject::BufferComponent, attachment_point, IN, const osg::FrameBufferAttachment &, attachment, + Properties::NON_VIRTUAL, + __void__setAttachment__BufferComponent__C5_FrameBufferAttachment_R1, + "", + ""); + I_Method1(const osg::FrameBufferAttachment &, getAttachment, IN, osg::FrameBufferObject::BufferComponent, attachment_point, + Properties::NON_VIRTUAL, + __C5_FrameBufferAttachment_R1__getAttachment__BufferComponent, + "", + ""); + I_Method1(bool, hasAttachment, IN, osg::FrameBufferObject::BufferComponent, attachment_point, + Properties::NON_VIRTUAL, + __bool__hasAttachment__BufferComponent, + "", + ""); + I_Method0(bool, hasMultipleRenderingTargets, + Properties::NON_VIRTUAL, + __bool__hasMultipleRenderingTargets, + "", + ""); + I_Method0(const osg::FrameBufferObject::MultipleRenderingTargets &, getMultipleRenderingTargets, + Properties::NON_VIRTUAL, + __C5_MultipleRenderingTargets_R1__getMultipleRenderingTargets, + "", + ""); + I_Method0(bool, isMultisample, + Properties::NON_VIRTUAL, + __bool__isMultisample, + "", + ""); + 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 &, 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_Method2(void, apply, IN, osg::State &, state, IN, osg::FrameBufferObject::BindTarget, target, + Properties::NON_VIRTUAL, + __void__apply__State_R1__BindTarget, + "Bind the FBO as either the read or draw target, or both. ", + ""); + I_StaticMethod2(void, deleteFrameBufferObject, IN, unsigned int, contextID, IN, GLuint, program, + __void__deleteFrameBufferObject__unsigned_int__GLuint_S, + "Mark internal FBO for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedFrameBufferObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedFrameBufferObjects__unsigned_int__double__double_R1_S, + "flush all the cached FBOs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedFrameBufferObjects, IN, unsigned int, contextID, + __void__discardDeletedFrameBufferObjects__unsigned_int_S, + "discard all the cached FBOs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_ProtectedMethod0(void, updateDrawBuffers, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateDrawBuffers, + "", + ""); + I_ProtectedMethod0(void, dirtyAll, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyAll, + "", + ""); + I_ProtectedMethod1(GLenum, convertBufferComponentToGLenum, IN, osg::FrameBufferObject::BufferComponent, attachment_point, + Properties::NON_VIRTUAL, + Properties::CONST, + __GLenum__convertBufferComponentToGLenum__BufferComponent, + "", + ""); + I_IndexedProperty(const osg::FrameBufferAttachment &, Attachment, + __C5_FrameBufferAttachment_R1__getAttachment__BufferComponent, + __void__setAttachment__BufferComponent__C5_FrameBufferAttachment_R1, + 0); + I_SimpleProperty(const osg::FrameBufferObject::AttachmentMap &, AttachmentMap, + __C5_AttachmentMap_R1__getAttachmentMap, + 0); + I_SimpleProperty(const osg::FrameBufferObject::MultipleRenderingTargets &, MultipleRenderingTargets, + __C5_MultipleRenderingTargets_R1__getMultipleRenderingTargets, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) + I_DeclaringFile("osg/FrameBufferObject"); + I_BaseType(osg::Object); + I_Constructor0(____RenderBuffer, + "", + ""); + I_ConstructorWithDefaults5(IN, int, width, , IN, int, height, , IN, GLenum, internalFormat, , IN, int, samples, 0, IN, int, colorSamples, 0, + ____RenderBuffer__int__int__GLenum__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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_Method0(int, getSamples, + Properties::NON_VIRTUAL, + __int__getSamples, + "", + ""); + I_Method0(int, getColorSamples, + Properties::NON_VIRTUAL, + __int__getColorSamples, + "", + ""); + I_Method1(void, setSamples, IN, int, samples, + Properties::NON_VIRTUAL, + __void__setSamples__int, + "", + ""); + I_Method1(void, setColorSamples, IN, int, colorSamples, + Properties::NON_VIRTUAL, + __void__setColorSamples__int, + "", + ""); + 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, + "", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedRenderBuffers, IN, unsigned int, contextID, + __void__discardDeletedRenderBuffers__unsigned_int_S, + "discard all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_StaticMethod2(int, getMaxSamples, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + __int__getMaxSamples__unsigned_int__C5_FBOExtensions_P1_S, + "", + ""); + I_ProtectedMethod0(void, dirtyAll, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__dirtyAll, + "", + ""); + I_SimpleProperty(int, ColorSamples, + __int__getColorSamples, + __void__setColorSamples__int); + I_SimpleProperty(int, Height, + __int__getHeight, + __void__setHeight__int); + I_SimpleProperty(GLenum, InternalFormat, + __GLenum__getInternalFormat, + __void__setInternalFormat__GLenum); + I_SimpleProperty(int, Samples, + __int__getSamples, + __void__setSamples__int); + I_SimpleProperty(int, Width, + __int__getWidth, + __void__setWidth__int); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::Camera::BufferComponent COMMA osg::FrameBufferAttachment >) + +STD_VECTOR_REFLECTOR(std::vector< GLenum >) + diff --git a/src/osgWrappers/introspection/osg/FrameStamp.cpp b/src/osgWrappers/introspection/osg/FrameStamp.cpp new file mode 100644 index 000000000..155d497e8 --- /dev/null +++ b/src/osgWrappers/introspection/osg/FrameStamp.cpp @@ -0,0 +1,87 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::FrameStamp) + I_DeclaringFile("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, + "", + ""); + I_SimpleProperty(const tm &, CalendarTime, + 0, + __void__setCalendarTime__C5_tm_R1); + I_SimpleProperty(int, FrameNumber, + __int__getFrameNumber, + __void__setFrameNumber__int); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); + I_SimpleProperty(double, SimulationTime, + __double__getSimulationTime, + __void__setSimulationTime__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/FrontFace.cpp b/src/osgWrappers/introspection/osg/FrontFace.cpp new file mode 100644 index 000000000..434edecee --- /dev/null +++ b/src/osgWrappers/introspection/osg/FrontFace.cpp @@ -0,0 +1,102 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::FrontFace::Mode) + I_DeclaringFile("osg/FrontFace"); + I_EnumLabel(osg::FrontFace::CLOCKWISE); + I_EnumLabel(osg::FrontFace::COUNTER_CLOCKWISE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::FrontFace) + I_DeclaringFile("osg/FrontFace"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::FrontFace::Mode, face, osg::FrontFace::COUNTER_CLOCKWISE, + Properties::NON_EXPLICIT, + ____FrontFace__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::FrontFace &, ff, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FrontFace__C5_FrontFace_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(osg::FrontFace::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/GL2Extensions.cpp b/src/osgWrappers/introspection/osg/GL2Extensions.cpp new file mode 100644 index 000000000..6d4b62609 --- /dev/null +++ b/src/osgWrappers/introspection/osg/GL2Extensions.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osg/GLBeginEndAdapter.cpp b/src/osgWrappers/introspection/osg/GLBeginEndAdapter.cpp new file mode 100644 index 000000000..e9009b928 --- /dev/null +++ b/src/osgWrappers/introspection/osg/GLBeginEndAdapter.cpp @@ -0,0 +1,289 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::GLBeginEndAdapter::MatrixMode) + I_DeclaringFile("osg/GLBeginEndAdapter"); + I_EnumLabel(osg::GLBeginEndAdapter::APPLY_LOCAL_MATRICES_TO_VERTICES); + I_EnumLabel(osg::GLBeginEndAdapter::APPLY_LOCAL_MATRICES_TO_MODELVIEW); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::GLBeginEndAdapter) + I_DeclaringFile("osg/GLBeginEndAdapter"); + I_ConstructorWithDefaults1(IN, osg::State *, state, 0, + Properties::NON_EXPLICIT, + ____GLBeginEndAdapter__State_P1, + "", + ""); + 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, setMatrixMode, IN, osg::GLBeginEndAdapter::MatrixMode, mode, + Properties::NON_VIRTUAL, + __void__setMatrixMode__MatrixMode, + "", + ""); + I_Method0(osg::GLBeginEndAdapter::MatrixMode, setMatrixMode, + Properties::NON_VIRTUAL, + __MatrixMode__setMatrixMode, + "", + ""); + I_Method0(void, PushMatrix, + Properties::NON_VIRTUAL, + __void__PushMatrix, + "", + ""); + I_Method0(void, PopMatrix, + Properties::NON_VIRTUAL, + __void__PopMatrix, + "", + ""); + I_Method0(void, LoadIdentity, + Properties::NON_VIRTUAL, + __void__LoadIdentity, + "", + ""); + I_Method1(void, LoadMatrixd, IN, const GLdouble *, m, + Properties::NON_VIRTUAL, + __void__LoadMatrixd__C5_GLdouble_P1, + "", + ""); + I_Method1(void, MultMatrixd, IN, const GLdouble *, m, + Properties::NON_VIRTUAL, + __void__MultMatrixd__C5_GLdouble_P1, + "", + ""); + I_Method3(void, Translatef, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Translatef__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method3(void, Scalef, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Scalef__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method4(void, Rotatef, IN, GLfloat, angle, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Rotatef__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method3(void, Translated, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Translated__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method3(void, Scaled, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Scaled__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method4(void, Rotated, IN, GLdouble, angle, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Rotated__GLdouble__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method3(void, Vertex3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Vertex3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Vertex3fv, IN, const GLfloat *, v, + Properties::NON_VIRTUAL, + __void__Vertex3fv__C5_GLfloat_P1, + "", + ""); + I_Method4(void, Color4f, IN, GLfloat, red, IN, GLfloat, green, IN, GLfloat, blue, IN, GLfloat, alpha, + Properties::NON_VIRTUAL, + __void__Color4f__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Color4fv, IN, const GLfloat *, c, + Properties::NON_VIRTUAL, + __void__Color4fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, Color4ubv, IN, const GLubyte *, c, + Properties::NON_VIRTUAL, + __void__Color4ubv__C5_GLubyte_P1, + "", + ""); + I_Method3(void, Normal3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Normal3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Normal3fv, IN, const GLfloat *, n, + Properties::NON_VIRTUAL, + __void__Normal3fv__C5_GLfloat_P1, + "", + ""); + I_Method1(void, TexCoord1f, IN, GLfloat, x, + Properties::NON_VIRTUAL, + __void__TexCoord1f__GLfloat, + "", + ""); + I_Method1(void, TexCoord1fv, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord1fv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, TexCoord2f, IN, GLfloat, x, IN, GLfloat, y, + Properties::NON_VIRTUAL, + __void__TexCoord2f__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord2fv, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord2fv__C5_GLfloat_P1, + "", + ""); + I_Method3(void, TexCoord3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__TexCoord3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord3fv, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord3fv__C5_GLfloat_P1, + "", + ""); + I_Method4(void, TexCoord4f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + Properties::NON_VIRTUAL, + __void__TexCoord4f__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord4fv, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord4fv__C5_GLfloat_P1, + "", + ""); + I_Method2(void, MultiTexCoord1f, IN, GLenum, target, IN, GLfloat, x, + Properties::NON_VIRTUAL, + __void__MultiTexCoord1f__GLenum__GLfloat, + "", + ""); + I_Method2(void, MultiTexCoord1fv, IN, GLenum, target, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__MultiTexCoord1fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method3(void, MultiTexCoord2f, IN, GLenum, target, IN, GLfloat, x, IN, GLfloat, y, + Properties::NON_VIRTUAL, + __void__MultiTexCoord2f__GLenum__GLfloat__GLfloat, + "", + ""); + I_Method2(void, MultiTexCoord2fv, IN, GLenum, target, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__MultiTexCoord2fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method4(void, MultiTexCoord3f, IN, GLenum, target, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__MultiTexCoord3f__GLenum__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, MultiTexCoord3fv, IN, GLenum, target, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__MultiTexCoord3fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method5(void, MultiTexCoord4f, IN, GLenum, target, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + Properties::NON_VIRTUAL, + __void__MultiTexCoord4f__GLenum__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, MultiTexCoord4fv, IN, GLenum, target, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__MultiTexCoord4fv__GLenum__C5_GLfloat_P1, + "", + ""); + I_Method2(void, VertexAttrib1f, IN, GLuint, unit, IN, GLfloat, x, + Properties::NON_VIRTUAL, + __void__VertexAttrib1f__GLuint__GLfloat, + "", + ""); + I_Method2(void, VertexAttrib1fv, IN, GLuint, unit, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__VertexAttrib1fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method3(void, VertexAttrib2f, IN, GLuint, unit, IN, GLfloat, x, IN, GLfloat, y, + Properties::NON_VIRTUAL, + __void__VertexAttrib2f__GLuint__GLfloat__GLfloat, + "", + ""); + I_Method2(void, VertexAttrib2fv, IN, GLuint, unit, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__VertexAttrib2fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method4(void, VertexAttrib3f, IN, GLuint, unit, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__VertexAttrib3f__GLuint__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, VertexAttrib3fv, IN, GLuint, unit, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__VertexAttrib3fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method5(void, VertexAttrib4f, IN, GLuint, unit, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + Properties::NON_VIRTUAL, + __void__VertexAttrib4f__GLuint__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method2(void, VertexAttrib4fv, IN, GLuint, unit, IN, const GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__VertexAttrib4fv__GLuint__C5_GLfloat_P1, + "", + ""); + I_Method1(void, Begin, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__Begin__GLenum, + "", + ""); + I_Method0(void, End, + Properties::NON_VIRTUAL, + __void__End, + "", + ""); + I_SimpleProperty(osg::GLBeginEndAdapter::MatrixMode, MatrixMode, + 0, + __void__setMatrixMode__MatrixMode); + I_SimpleProperty(osg::State *, State, + __State_P1__getState, + __void__setState__State_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Geode.cpp b/src/osgWrappers/introspection/osg/Geode.cpp new file mode 100644 index 000000000..89da762eb --- /dev/null +++ b/src/osgWrappers/introspection/osg/Geode.cpp @@ -0,0 +1,227 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osg::Geode::DrawableList) + +BEGIN_OBJECT_REFLECTOR(osg::Geode) + I_DeclaringFile("osg/Geode"); + I_BaseType(osg::Node); + I_Constructor0(____Geode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Geode__C5_Geode_R1__C5_CopyOp_R1, + "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::Geode *, asGeode, + Properties::VIRTUAL, + __Geode_P1__asGeode, + "Convert 'this' into a Geode pointer if Node is a Geode, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Geode *, asGeode, + Properties::VIRTUAL, + __C5_Geode_P1__asGeode, + "convert 'const this' into a const Geode pointer if Node is a Geode, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + 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 objects for all graphics contexts. "); + I_SimpleProperty(const osg::BoundingBox &, BoundingBox, + __C5_BoundingBox_R1__getBoundingBox, + 0); + I_ArrayProperty(osg::Drawable *, Drawable, + __Drawable_P1__getDrawable__unsigned_int, + __bool__setDrawable__unsigned_int__Drawable_P1, + __unsigned_int__getNumDrawables, + __bool__addDrawable__Drawable_P1, + 0, + __bool__removeDrawables__unsigned_int__unsigned_int); + I_SimpleProperty(const osg::Geode::DrawableList &, DrawableList, + __C5_DrawableList_R1__getDrawableList, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Drawable >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Drawable *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Drawable > >) + diff --git a/src/osgWrappers/introspection/osg/Geometry.cpp b/src/osgWrappers/introspection/osg/Geometry.cpp new file mode 100644 index 000000000..f7d4b1252 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Geometry.cpp @@ -0,0 +1,1010 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Geometry::AttributeBinding) + I_DeclaringFile("osg/Geometry"); + I_EnumLabel(osg::Geometry::BIND_OFF); + I_EnumLabel(osg::Geometry::BIND_OVERALL); + I_EnumLabel(osg::Geometry::BIND_PER_PRIMITIVE_SET); + I_EnumLabel(osg::Geometry::BIND_PER_PRIMITIVE); + I_EnumLabel(osg::Geometry::BIND_PER_VERTEX); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Geometry::ArrayData >, osg::Geometry::ArrayDataList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::PrimitiveSet > >, osg::Geometry::PrimitiveSetList) + +TYPE_NAME_ALIAS(std::vector< osg::Array * >, osg::Geometry::ArrayList) + +TYPE_NAME_ALIAS(std::vector< osg::DrawElements * >, osg::Geometry::DrawElementsList) + +BEGIN_OBJECT_REFLECTOR(osg::Geometry) + I_DeclaringFile("osg/Geometry"); + I_BaseType(osg::Drawable); + I_Constructor0(____Geometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry &, geometry, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Geometry__C5_Geometry_R1__C5_CopyOp_R1, + "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 &, 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. "); + 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, 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, 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, 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, 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, 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, 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::ArrayDataList &, getTexCoordArrayList, + Properties::NON_VIRTUAL, + __ArrayDataList_R1__getTexCoordArrayList, + "", + ""); + I_Method0(const osg::Geometry::ArrayDataList &, getTexCoordArrayList, + Properties::NON_VIRTUAL, + __C5_ArrayDataList_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, 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::ArrayDataList &, getVertexAttribArrayList, + Properties::NON_VIRTUAL, + __ArrayDataList_R1__getVertexAttribArrayList, + "", + ""); + I_Method0(const osg::Geometry::ArrayDataList &, getVertexAttribArrayList, + Properties::NON_VIRTUAL, + __C5_ArrayDataList_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, setVertexIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setVertexIndices__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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, setNormalIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setNormalIndices__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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, setColorIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setColorIndices__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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, setSecondaryColorIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setSecondaryColorIndices__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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, setFogCoordIndices, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setFogCoordIndices__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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_Method2(void, setTexCoordIndices, IN, unsigned int, unit, IN, osg::IndexArray *, x, + Properties::NON_VIRTUAL, + __void__setTexCoordIndices__unsigned_int__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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, setVertexAttribIndices, IN, unsigned int, index, IN, osg::IndexArray *, array, + Properties::NON_VIRTUAL, + __void__setVertexAttribIndices__unsigned_int__IndexArray_P1, + "deprecated - forces OpenGL slow path, just kept for backwards compatibility. ", + ""); + 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_Method1(void, setUseVertexBufferObjects, IN, bool, flag, + Properties::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(void, dirtyDisplayList, + Properties::VIRTUAL, + __void__dirtyDisplayList, + "Force a recompile on next draw() of any OpenGL display list associated with this geoset. ", + ""); + 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 objects for all graphics contexts. "); + I_Method1(bool, getArrayList, IN, osg::Geometry::ArrayList &, arrayList, + Properties::NON_VIRTUAL, + __bool__getArrayList__ArrayList_R1, + "", + ""); + I_Method1(bool, getDrawElementsList, IN, osg::Geometry::DrawElementsList &, drawElementsList, + Properties::NON_VIRTUAL, + __bool__getDrawElementsList__DrawElementsList_R1, + "", + ""); + I_Method0(osg::VertexBufferObject *, getOrCreateVertexBufferObject, + Properties::NON_VIRTUAL, + __osg_VertexBufferObject_P1__getOrCreateVertexBufferObject, + "", + ""); + I_Method0(osg::ElementBufferObject *, getOrCreateElementBufferObject, + Properties::NON_VIRTUAL, + __osg_ElementBufferObject_P1__getOrCreateElementBufferObject, + "", + ""); + 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 directly use vertex arrays, and glDrawArrays/glDrawElements so have low CPU overhead. With Slow paths the osg::Geometry::drawImplementation has to dynamically assemble OpenGL compatible vertex arrays from the osg::Geometry arrays data and then dispatch these to OpenGL, so have higher CPU overhead than the Fast paths. 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(bool, containsSharedArrays, + Properties::NON_VIRTUAL, + __bool__containsSharedArrays, + "", + ""); + I_Method0(void, duplicateSharedArrays, + Properties::NON_VIRTUAL, + __void__duplicateSharedArrays, + "", + ""); + 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 deleted display lists/vertex buffer objects. "); + I_Method1(void, compileGLObjects, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__compileGLObjects__RenderInfo_R1, + "Immediately compile this Drawable into an OpenGL Display List/VertexBufferObjects. ", + "Operation is ignored if _useDisplayList is false or VertexBufferObjects are not used. "); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__RenderInfo_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_Drawable_AttributeFunctor_R1, + "Return true, osg::Geometry does support accept(Drawable::AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, + __void__accept__Drawable_AttributeFunctor_R1, + "Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_Drawable_ConstAttributeFunctor_R1, + "Return true, osg::Geometry does support accept(Drawable::ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __void__accept__Drawable_ConstAttributeFunctor_R1, + "Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal 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 internal 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 internal primitives that this Drawable has. ", + ""); + I_ProtectedMethod1(bool, verifyBindings, IN, const osg::Geometry::ArrayData &, arrayData, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__verifyBindings__C5_ArrayData_R1, + "", + ""); + I_ProtectedMethod1(bool, verifyBindings, IN, const osg::Geometry::Vec3ArrayData &, arrayData, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__verifyBindings__C5_Vec3ArrayData_R1, + "", + ""); + I_ProtectedMethod2(void, computeCorrectBindingsAndArraySizes, IN, osg::Geometry::ArrayData &, arrayData, IN, const char *, arrayName, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeCorrectBindingsAndArraySizes__ArrayData_R1__C5_char_P1, + "", + ""); + I_ProtectedMethod2(void, computeCorrectBindingsAndArraySizes, IN, osg::Geometry::Vec3ArrayData &, arrayData, IN, const char *, arrayName, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeCorrectBindingsAndArraySizes__Vec3ArrayData_R1__C5_char_P1, + "", + ""); + I_ProtectedMethod1(void, addVertexBufferObjectIfRequired, IN, osg::Array *, array, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addVertexBufferObjectIfRequired__osg_Array_P1, + "", + ""); + I_ProtectedMethod1(void, addElementBufferObjectIfRequired, IN, osg::PrimitiveSet *, primitiveSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addElementBufferObjectIfRequired__osg_PrimitiveSet_P1, + "", + ""); + I_SimpleProperty(osg::Array *, ColorArray, + __Array_P1__getColorArray, + __void__setColorArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, ColorBinding, + __AttributeBinding__getColorBinding, + __void__setColorBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, ColorData, + __C5_ArrayData_R1__getColorData, + __void__setColorData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, ColorIndices, + __IndexArray_P1__getColorIndices, + __void__setColorIndices__IndexArray_P1); + I_SimpleProperty(bool, FastPathHint, + __bool__getFastPathHint, + __void__setFastPathHint__bool); + I_SimpleProperty(osg::Array *, FogCoordArray, + __Array_P1__getFogCoordArray, + __void__setFogCoordArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, FogCoordBinding, + __AttributeBinding__getFogCoordBinding, + __void__setFogCoordBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, FogCoordData, + __C5_ArrayData_R1__getFogCoordData, + __void__setFogCoordData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, FogCoordIndices, + __IndexArray_P1__getFogCoordIndices, + __void__setFogCoordIndices__IndexArray_P1); + I_SimpleProperty(unsigned int, GLObjectSizeHint, + __unsigned_int__getGLObjectSizeHint, + 0); + I_SimpleProperty(osg::Geometry *, InternalOptimizedGeometry, + __osg_Geometry_P1__getInternalOptimizedGeometry, + __void__setInternalOptimizedGeometry__osg_Geometry_P1); + I_SimpleProperty(osg::Array *, NormalArray, + __Array_P1__getNormalArray, + __void__setNormalArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, NormalBinding, + __AttributeBinding__getNormalBinding, + __void__setNormalBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, NormalData, + __C5_ArrayData_R1__getNormalData, + __void__setNormalData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, NormalIndices, + __IndexArray_P1__getNormalIndices, + __void__setNormalIndices__IndexArray_P1); + I_ArrayProperty(osg::PrimitiveSet *, PrimitiveSet, + __PrimitiveSet_P1__getPrimitiveSet__unsigned_int, + __bool__setPrimitiveSet__unsigned_int__PrimitiveSet_P1, + __unsigned_int__getNumPrimitiveSets, + __bool__addPrimitiveSet__PrimitiveSet_P1, + __bool__insertPrimitiveSet__unsigned_int__PrimitiveSet_P1, + __bool__removePrimitiveSet__unsigned_int__unsigned_int); + I_SimpleProperty(const osg::Geometry::PrimitiveSetList &, PrimitiveSetList, + __C5_PrimitiveSetList_R1__getPrimitiveSetList, + __void__setPrimitiveSetList__C5_PrimitiveSetList_R1); + I_SimpleProperty(osg::Array *, SecondaryColorArray, + __Array_P1__getSecondaryColorArray, + __void__setSecondaryColorArray__Array_P1); + I_SimpleProperty(osg::Geometry::AttributeBinding, SecondaryColorBinding, + __AttributeBinding__getSecondaryColorBinding, + __void__setSecondaryColorBinding__AttributeBinding); + I_SimpleProperty(const osg::Geometry::ArrayData &, SecondaryColorData, + __C5_ArrayData_R1__getSecondaryColorData, + __void__setSecondaryColorData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, SecondaryColorIndices, + __IndexArray_P1__getSecondaryColorIndices, + __void__setSecondaryColorIndices__IndexArray_P1); + I_ArrayProperty(osg::Array *, TexCoordArray, + __Array_P1__getTexCoordArray__unsigned_int, + __void__setTexCoordArray__unsigned_int__Array_P1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_SimpleProperty(osg::Geometry::ArrayDataList &, TexCoordArrayList, + __ArrayDataList_R1__getTexCoordArrayList, + 0); + I_ArrayProperty(const osg::Geometry::ArrayData &, TexCoordData, + __C5_ArrayData_R1__getTexCoordData__unsigned_int, + __void__setTexCoordData__unsigned_int__C5_ArrayData_R1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_ArrayProperty(osg::IndexArray *, TexCoordIndices, + __IndexArray_P1__getTexCoordIndices__unsigned_int, + __void__setTexCoordIndices__unsigned_int__IndexArray_P1, + __unsigned_int__getNumTexCoordArrays, + 0, + 0, + 0); + I_SimpleProperty(bool, UseVertexBufferObjects, + 0, + __void__setUseVertexBufferObjects__bool); + I_SimpleProperty(osg::Array *, VertexArray, + __Array_P1__getVertexArray, + __void__setVertexArray__Array_P1); + I_ArrayProperty(osg::Array *, VertexAttribArray, + __Array_P1__getVertexAttribArray__unsigned_int, + __void__setVertexAttribArray__unsigned_int__Array_P1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_SimpleProperty(osg::Geometry::ArrayDataList &, VertexAttribArrayList, + __ArrayDataList_R1__getVertexAttribArrayList, + 0); + I_ArrayProperty(osg::Geometry::AttributeBinding, VertexAttribBinding, + __AttributeBinding__getVertexAttribBinding__unsigned_int, + __void__setVertexAttribBinding__unsigned_int__AttributeBinding, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(const osg::Geometry::ArrayData &, VertexAttribData, + __C5_ArrayData_R1__getVertexAttribData__unsigned_int, + __void__setVertexAttribData__unsigned_int__C5_ArrayData_R1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(osg::IndexArray *, VertexAttribIndices, + __IndexArray_P1__getVertexAttribIndices__unsigned_int, + __void__setVertexAttribIndices__unsigned_int__IndexArray_P1, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_ArrayProperty(GLboolean, VertexAttribNormalize, + __GLboolean__getVertexAttribNormalize__unsigned_int, + __void__setVertexAttribNormalize__unsigned_int__GLboolean, + __unsigned_int__getNumVertexAttribArrays, + 0, + 0, + 0); + I_SimpleProperty(const osg::Geometry::ArrayData &, VertexData, + __C5_ArrayData_R1__getVertexData, + __void__setVertexData__C5_ArrayData_R1); + I_SimpleProperty(osg::IndexArray *, VertexIndices, + __IndexArray_P1__getVertexIndices, + __void__setVertexIndices__IndexArray_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Geometry::ArrayData) + I_DeclaringFile("osg/Geometry"); + I_Constructor0(____ArrayData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry::ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ArrayData__C5_ArrayData_R1__C5_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____ArrayData__Array_P1__AttributeBinding__GLboolean, + "", + ""); + I_ConstructorWithDefaults4(IN, osg::Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____ArrayData__Array_P1__IndexArray_P1__AttributeBinding__GLboolean, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Array >, array); + I_PublicMemberProperty(osg::ref_ptr< osg::IndexArray >, indices); + I_PublicMemberProperty(osg::Geometry::AttributeBinding, binding); + I_PublicMemberProperty(GLboolean, normalize); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Geometry::Vec3ArrayData) + I_DeclaringFile("osg/Geometry"); + I_Constructor0(____Vec3ArrayData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Geometry::Vec3ArrayData &, data, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Vec3ArrayData__C5_Vec3ArrayData_R1__C5_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Vec3Array *, a, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____Vec3ArrayData__Vec3Array_P1__AttributeBinding__GLboolean, + "", + ""); + I_ConstructorWithDefaults4(IN, osg::Vec3Array *, a, , IN, osg::IndexArray *, i, , IN, osg::Geometry::AttributeBinding, b, , IN, GLboolean, n, GL_FALSE, + ____Vec3ArrayData__Vec3Array_P1__IndexArray_P1__AttributeBinding__GLboolean, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Vec3Array >, array); + I_PublicMemberProperty(osg::ref_ptr< osg::IndexArray >, indices); + I_PublicMemberProperty(osg::Geometry::AttributeBinding, binding); + I_PublicMemberProperty(GLboolean, normalize); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PrimitiveSet >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::PrimitiveSet *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Array * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::DrawElements * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Geometry::ArrayData >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::PrimitiveSet > >) + diff --git a/src/osgWrappers/introspection/osg/GraphicsContext.cpp b/src/osgWrappers/introspection/osg/GraphicsContext.cpp new file mode 100644 index 000000000..aed6c9e6b --- /dev/null +++ b/src/osgWrappers/introspection/osg/GraphicsContext.cpp @@ -0,0 +1,624 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext::ScreenSettings >, osg::GraphicsContext::ScreenSettingsList) + +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osg::GraphicsContext::GraphicsContexts) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Operation > >, osg::GraphicsContext::GraphicsOperationQueue) + +TYPE_NAME_ALIAS(std::list< osg::Camera * >, osg::GraphicsContext::Cameras) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext) + I_DeclaringFile("osg/GraphicsContext"); + I_BaseType(osg::Object); + I_StaticMethod1(void, setWindowingSystemInterface, IN, osg::GraphicsContext::WindowingSystemInterface *, wsInterface, + __void__setWindowingSystemInterface__WindowingSystemInterface_P1_S, + "Set the query the windowing system for screens and create graphics context - this functor should be supplied by the windows toolkit. ", + ""); + I_StaticMethod0(osg::GraphicsContext::WindowingSystemInterface *, getWindowingSystemInterface, + __WindowingSystemInterface_P1__getWindowingSystemInterface_S, + "Get the WindowingSystemInterface. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + __GraphicsContext_P1__createGraphicsContext__Traits_P1_S, + "Create a graphics context for a specified set of traits. ", + ""); + I_StaticMethod0(unsigned int, createNewContextID, + __unsigned_int__createNewContextID_S, + "Create a contextID for a new graphics context, this contextID is used to set up the osg::State associate with context. ", + "Automatically increments the usage count of the contextID to 1. "); + I_StaticMethod0(unsigned int, getMaxContextID, + __unsigned_int__getMaxContextID_S, + "Get the current max ContextID. ", + ""); + I_StaticMethod1(void, incrementContextIDUsageCount, IN, unsigned int, contextID, + __void__incrementContextIDUsageCount__unsigned_int_S, + "Increment the usage count associate with a contextID. ", + "The usage count specifies how many graphics contexts a specific contextID is shared between. "); + I_StaticMethod1(void, decrementContextIDUsageCount, IN, unsigned int, contextID, + __void__decrementContextIDUsageCount__unsigned_int_S, + "Decrement the usage count associate with a contextID. ", + "Once the contextID goes to 0 the contextID is then free to be reused. "); + I_StaticMethod0(osg::GraphicsContext::GraphicsContexts, getAllRegisteredGraphicsContexts, + __GraphicsContexts__getAllRegisteredGraphicsContexts_S, + "Get all the registered graphics contexts. ", + ""); + I_StaticMethod1(osg::GraphicsContext::GraphicsContexts, getRegisteredGraphicsContexts, IN, unsigned int, contextID, + __GraphicsContexts__getRegisteredGraphicsContexts__unsigned_int_S, + "Get all the registered graphics contexts associated with a specific contextID. ", + ""); + I_StaticMethod2(void, setCompileContext, IN, unsigned int, contextID, IN, osg::GraphicsContext *, gc, + __void__setCompileContext__unsigned_int__GraphicsContext_P1_S, + "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, getOrCreateCompileContext, IN, unsigned int, contextID, + __GraphicsContext_P1__getOrCreateCompileContext__unsigned_int_S, + "Get existing or create a new GraphicsContext to do background compilation for GraphicsContexts associated with specified contextID. ", + ""); + I_StaticMethod1(osg::GraphicsContext *, getCompileContext, IN, unsigned int, contextID, + __GraphicsContext_P1__getCompileContext__unsigned_int_S, + "Get the GraphicsContext for doing background compilation for GraphicsContexts associated with specified contextID. ", + ""); + 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::GraphicsOperationQueue &, getOperationsQueue, + Properties::NON_VIRTUAL, + __GraphicsOperationQueue_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::RefBlock *, getOperationsBlock, + Properties::NON_VIRTUAL, + __osg_RefBlock_P1__getOperationsBlock, + "Get the operations queue block used to mark an empty queue, if you end items into the empty queue 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 0 - so no clear is done by default by the GraphicsContext, instead the Camera's attached the GraphicsContext will do the clear. GraphicsContext::setClearMask() is useful for when the Camera's Viewports don't conver the whole context, so the context will fill in the gaps. "); + 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(double, getTimeSinceLastClear, + Properties::NON_VIRTUAL, + __double__getTimeSinceLastClear, + "", + ""); + I_Method0(bool, realize, + Properties::NON_VIRTUAL, + __bool__realize, + "Realize 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 realized and is ready to use. ", + ""); + I_Method0(bool, makeCurrent, + Properties::NON_VIRTUAL, + __bool__makeCurrent, + "Make this graphics context current. ", + "Implemented 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. ", + "Implemented 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::GraphicsThread *, gt, + Properties::NON_VIRTUAL, + __void__setGraphicsThread__GraphicsThread_P1, + "Assign a graphics thread to the graphics context, so that the thread handles all OpenGL operations. ", + ""); + I_Method0(osg::GraphicsThread *, getGraphicsThread, + Properties::NON_VIRTUAL, + __GraphicsThread_P1__getGraphicsThread, + "Get the graphics thread assigned the graphics context. ", + ""); + I_Method0(const osg::GraphicsThread *, getGraphicsThread, + Properties::NON_VIRTUAL, + __C5_GraphicsThread_P1__getGraphicsThread, + "Get the const graphics thread assigned the graphics context. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::PURE_VIRTUAL, + __bool__realizeImplementation, + "Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::PURE_VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realized, and is ready to use, implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(void, closeImplementation, + Properties::PURE_VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::PURE_VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrete 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 concrete 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 concrete 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 concrete 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. ", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_ProtectedConstructor0(____GraphicsContext, + "", + ""); + I_ProtectedConstructor2(IN, const osg::GraphicsContext &, x, IN, const osg::CopyOp &, x, + ____GraphicsContext__C5_GraphicsContext_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod0(osg::Object *, cloneType, + Properties::VIRTUAL, + Properties::CONST, + __Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_ProtectedMethod1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + Properties::CONST, + __Object_P1__clone__C5_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_ProtectedMethod1(void, addCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addCamera__osg_Camera_P1, + "", + ""); + I_ProtectedMethod1(void, removeCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeCamera__osg_Camera_P1, + "", + ""); + I_SimpleProperty(osg::GraphicsContext::Cameras &, Cameras, + __Cameras_R1__getCameras, + 0); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_Vec4_R1__getClearColor, + __void__setClearColor__C5_Vec4_R1); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(osg::Operation *, CurrentOperation, + __Operation_P1__getCurrentOperation, + 0); + I_SimpleProperty(osg::GraphicsThread *, GraphicsThread, + __GraphicsThread_P1__getGraphicsThread, + __void__setGraphicsThread__GraphicsThread_P1); + I_SimpleProperty(osg::RefBlock *, OperationsBlock, + __osg_RefBlock_P1__getOperationsBlock, + 0); + I_SimpleProperty(OpenThreads::Mutex *, OperationsMutex, + __OpenThreads_Mutex_P1__getOperationsMutex, + 0); + I_SimpleProperty(osg::GraphicsContext::GraphicsOperationQueue &, OperationsQueue, + __GraphicsOperationQueue_R1__getOperationsQueue, + 0); + I_SimpleProperty(osg::GraphicsContext::ResizedCallback *, ResizedCallback, + __ResizedCallback_P1__getResizedCallback, + __void__setResizedCallback__ResizedCallback_P1); + I_SimpleProperty(osg::State *, State, + __State_P1__getState, + __void__setState__State_P1); + I_SimpleProperty(double, TimeSinceLastClear, + __double__getTimeSinceLastClear, + 0); + I_SimpleProperty(const osg::GraphicsContext::Traits *, Traits, + __C5_Traits_P1__getTraits, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::ResizedCallback) + I_DeclaringFile("osg/GraphicsContext"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenIdentifier) + I_DeclaringFile("osg/GraphicsContext"); + I_Constructor0(____ScreenIdentifier, + "", + ""); + I_Constructor1(IN, int, in_screenNum, + Properties::NON_EXPLICIT, + ____ScreenIdentifier__int, + "", + ""); + I_Constructor3(IN, const std::string &, in_hostName, IN, int, in_displayNum, IN, int, in_screenNum, + ____ScreenIdentifier__C5_std_string_R1__int__int, + "", + ""); + I_Method0(std::string, displayName, + Properties::NON_VIRTUAL, + __std_string__displayName, + "Return the display name in the form hostName::displayNum:screenNum. ", + ""); + I_Method0(void, readDISPLAY, + Properties::NON_VIRTUAL, + __void__readDISPLAY, + "Read the DISPLAY environmental variable, and set the ScreenIdentifier accordingly. ", + "Note, if either of displayNum or screenNum are not defined then -1 is set respectively to signify the this parameter has not been set. When parameters are undefined one can call call setUndefinedScreenDetalstoDefaultScreen() method after readDISPLAY() to ensure valid values. "); + I_Method1(void, setScreenIdentifier, IN, const std::string &, displayName, + Properties::NON_VIRTUAL, + __void__setScreenIdentifier__C5_std_string_R1, + "Set the screenIndentifier from the displayName string. ", + "Note, if either of displayNum or screenNum are not defined then -1 is set respectively to signify the this parameter has not been set. When parameters are undefined one can call call setUndefinedScreenDetalstoDefaultScreen() method after readDISPLAY() to ensure valid values. "); + I_Method0(void, setUndefinedScreenDetailsToDefaultScreen, + Properties::NON_VIRTUAL, + __void__setUndefinedScreenDetailsToDefaultScreen, + "Set any undefined displayNum or screenNum values (i.e. ", + "-1) to the default display & screen of 0 respectively. "); + I_SimpleProperty(const std::string &, ScreenIdentifier, + 0, + __void__setScreenIdentifier__C5_std_string_R1); + I_PublicMemberProperty(std::string, hostName); + I_PublicMemberProperty(int, displayNum); + I_PublicMemberProperty(int, screenNum); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::GraphicsContext::ScreenSettings) + I_DeclaringFile("osg/GraphicsContext"); + I_Constructor0(____ScreenSettings, + "", + ""); + I_ConstructorWithDefaults4(IN, int, width, , IN, int, height, , IN, double, refreshRate, 0, IN, unsigned int, colorDepth, 0, + ____ScreenSettings__int__int__double__unsigned_int, + "", + ""); + I_PublicMemberProperty(int, width); + I_PublicMemberProperty(int, height); + I_PublicMemberProperty(double, refreshRate); + I_PublicMemberProperty(unsigned int, colorDepth); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::GraphicsContext::Traits) + I_DeclaringFile("osg/GraphicsContext"); + I_BaseType(osg::Referenced); + I_BaseType(osg::GraphicsContext::ScreenIdentifier); + I_ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, 0, + Properties::NON_EXPLICIT, + ____Traits__DisplaySettings_P1, + "", + ""); + I_PublicMemberProperty(int, x); + I_PublicMemberProperty(int, y); + I_PublicMemberProperty(int, width); + I_PublicMemberProperty(int, height); + I_PublicMemberProperty(std::string, windowName); + I_PublicMemberProperty(bool, windowDecoration); + I_PublicMemberProperty(bool, supportsResize); + I_PublicMemberProperty(unsigned int, red); + I_PublicMemberProperty(unsigned int, blue); + I_PublicMemberProperty(unsigned int, green); + I_PublicMemberProperty(unsigned int, alpha); + I_PublicMemberProperty(unsigned int, depth); + I_PublicMemberProperty(unsigned int, stencil); + I_PublicMemberProperty(unsigned int, sampleBuffers); + I_PublicMemberProperty(unsigned int, samples); + I_PublicMemberProperty(bool, pbuffer); + I_PublicMemberProperty(bool, quadBufferStereo); + I_PublicMemberProperty(bool, doubleBuffer); + I_PublicMemberProperty(GLenum, target); + I_PublicMemberProperty(GLenum, format); + I_PublicMemberProperty(unsigned int, level); + I_PublicMemberProperty(unsigned int, face); + I_PublicMemberProperty(unsigned int, mipMapGeneration); + I_PublicMemberProperty(bool, vsync); + I_PublicMemberProperty(bool, useMultiThreadedOpenGLEngine); + I_PublicMemberProperty(bool, useCursor); + I_PublicMemberProperty(std::string, glContextVersion); + I_PublicMemberProperty(unsigned int, glContextFlags); + I_PublicMemberProperty(unsigned int, glContextProfileMask); + I_PublicMemberProperty(osg::GraphicsContext *, sharedContext); + I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, inheritedWindowData); + I_PublicMemberProperty(bool, setInheritedWindowPixelFormat); + I_PublicMemberProperty(bool, overrideRedirect); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsContext::WindowingSystemInterface) + I_DeclaringFile("osg/GraphicsContext"); + I_BaseType(osg::Referenced); + I_Constructor0(____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_Method2(void, getScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, osg::GraphicsContext::ScreenSettings &, resolution, + Properties::PURE_VIRTUAL, + __void__getScreenSettings__C5_ScreenIdentifier_R1__ScreenSettings_R1, + "", + ""); + I_Method2(bool, setScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, x, IN, const osg::GraphicsContext::ScreenSettings &, x, + Properties::VIRTUAL, + __bool__setScreenSettings__C5_ScreenIdentifier_R1__C5_ScreenSettings_R1, + "", + ""); + I_Method2(void, enumerateScreenSettings, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, osg::GraphicsContext::ScreenSettingsList &, resolutionList, + Properties::PURE_VIRTUAL, + __void__enumerateScreenSettings__C5_ScreenIdentifier_R1__ScreenSettingsList_R1, + "", + ""); + I_Method1(osg::GraphicsContext *, createGraphicsContext, IN, osg::GraphicsContext::Traits *, traits, + Properties::PURE_VIRTUAL, + __GraphicsContext_P1__createGraphicsContext__Traits_P1, + "", + ""); + I_Method3(void, getScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int &, width, IN, unsigned int &, height, + Properties::NON_VIRTUAL, + __void__getScreenResolution__C5_ScreenIdentifier_R1__unsigned_int_R1__unsigned_int_R1, + "Gets screen resolution without using the ScreenResolution structure. ", + ""); + I_Method3(bool, setScreenResolution, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, unsigned int, width, IN, unsigned int, height, + Properties::NON_VIRTUAL, + __bool__setScreenResolution__C5_ScreenIdentifier_R1__unsigned_int__unsigned_int, + "Sets screen resolution without using the ScreenSettings structure. ", + ""); + I_Method2(bool, setScreenRefreshRate, IN, const osg::GraphicsContext::ScreenIdentifier &, screenIdentifier, IN, double, refreshRate, + Properties::NON_VIRTUAL, + __bool__setScreenRefreshRate__C5_ScreenIdentifier_R1__double, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Operation >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Operation *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::Camera * >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Operation > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::GraphicsContext::ScreenSettings >) + diff --git a/src/osgWrappers/introspection/osg/GraphicsThread.cpp b/src/osgWrappers/introspection/osg/GraphicsThread.cpp new file mode 100644 index 000000000..89795ed9c --- /dev/null +++ b/src/osgWrappers/introspection/osg/GraphicsThread.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::BarrierOperation::PreBlockOp) + I_DeclaringFile("osg/GraphicsThread"); + I_EnumLabel(osg::BarrierOperation::NO_OPERATION); + I_EnumLabel(osg::BarrierOperation::GL_FLUSH); + I_EnumLabel(osg::BarrierOperation::GL_FINISH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::BarrierOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::Operation); + I_BaseType(OpenThreads::Barrier); + I_ConstructorWithDefaults3(IN, int, numThreads, , IN, osg::BarrierOperation::PreBlockOp, op, osg::BarrierOperation::NO_OPERATION, IN, bool, keep, true, + ____BarrierOperation__int__PreBlockOp__bool, + "", + ""); + I_Method0(void, release, + Properties::VIRTUAL, + __void__release, + "Release the barrier, now. ", + ""); + I_PublicMemberProperty(osg::BarrierOperation::PreBlockOp, _preBlockOp); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::BlockAndFlushOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::GraphicsOperation); + I_BaseType(OpenThreads::Block); + I_Constructor0(____BlockAndFlushOperation, + "", + ""); + I_Method0(void, release, + Properties::VIRTUAL, + __void__release, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::EndOfDynamicDrawBlock) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(OpenThreads::BlockCount); + 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, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::FlushDeletedGLObjectsOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::GraphicsOperation); + I_ConstructorWithDefaults2(IN, double, availableTime, , IN, bool, keep, false, + ____FlushDeletedGLObjectsOperation__double__bool, + "", + ""); + I_PublicMemberProperty(double, _availableTime); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::GraphicsOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::Operation); + I_Constructor2(IN, const std::string &, name, IN, bool, keep, + ____GraphicsOperation__C5_std_string_R1__bool, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::GraphicsThread) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::OperationThread); + I_Constructor0(____GraphicsThread, + "", + ""); + I_Method0(void, run, + Properties::VIRTUAL, + __void__run, + "Run does the graphics thread run loop. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ReleaseContext_Block_MakeCurrentOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::GraphicsOperation); + I_BaseType(osg::RefBlock); + I_Constructor0(____ReleaseContext_Block_MakeCurrentOperation, + "", + ""); + I_Method0(void, release, + Properties::VIRTUAL, + __void__release, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RunOperations) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::GraphicsOperation); + I_Constructor0(____RunOperations, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::SwapBuffersOperation) + I_DeclaringFile("osg/GraphicsThread"); + I_BaseType(osg::GraphicsOperation); + I_Constructor0(____SwapBuffersOperation, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Group.cpp b/src/osgWrappers/introspection/osg/Group.cpp new file mode 100644 index 000000000..286f5da9b --- /dev/null +++ b/src/osgWrappers/introspection/osg/Group.cpp @@ -0,0 +1,231 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Group) + I_DeclaringFile("osg/Group"); + I_BaseType(osg::Node); + I_Constructor0(____Group, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Group &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Group__C5_Group_R1__C5_CopyOp_R1, + "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 &, x, + 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 further details on implementation. "); + I_Method0(unsigned int, getNumChildren, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildren, + "Return the number of children 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 objects 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(). "); + I_ProtectedMethod2(void, childRemoved, IN, unsigned, int, IN, unsigned, int, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__childRemoved__unsigned__unsigned, + "", + ""); + I_ProtectedMethod1(void, childInserted, IN, unsigned, int, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__childInserted__unsigned, + "", + ""); + I_ArrayProperty(osg::Node *, Child, + __Node_P1__getChild__unsigned_int, + __bool__setChild__unsigned_int__Node_P1, + __unsigned_int__getNumChildren, + __bool__addChild__Node_P1, + __bool__insertChild__unsigned_int__Node_P1, + __bool__removeChild__unsigned_int__unsigned_int); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osg::NodeList) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Node >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Node *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Node > >) + diff --git a/src/osgWrappers/introspection/osg/Hint.cpp b/src/osgWrappers/introspection/osg/Hint.cpp new file mode 100644 index 000000000..c4609858a --- /dev/null +++ b/src/osgWrappers/introspection/osg/Hint.cpp @@ -0,0 +1,119 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Hint) + I_DeclaringFile("osg/Hint"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Hint, + "", + ""); + I_Constructor2(IN, GLenum, target, IN, GLenum, mode, + ____Hint__GLenum__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Hint &, hint, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Hint__C5_Hint_R1__C5_CopyOp_R1, + "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 &, x, + 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(void, setTarget, IN, GLenum, target, + Properties::NON_VIRTUAL, + __void__setTarget__GLenum, + "", + ""); + I_Method0(GLenum, getTarget, + Properties::NON_VIRTUAL, + __GLenum__getTarget, + "", + ""); + I_Method1(void, setMode, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__setMode__GLenum, + "", + ""); + I_Method0(GLenum, getMode, + Properties::NON_VIRTUAL, + __GLenum__getMode, + "", + ""); + 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_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(GLenum, Mode, + __GLenum__getMode, + __void__setMode__GLenum); + I_SimpleProperty(GLenum, Target, + __GLenum__getTarget, + __void__setTarget__GLenum); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Image.cpp b/src/osgWrappers/introspection/osg/Image.cpp new file mode 100644 index 000000000..b6136b0ae --- /dev/null +++ b/src/osgWrappers/introspection/osg/Image.cpp @@ -0,0 +1,516 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Image::WriteHint) + I_DeclaringFile("osg/Image"); + I_EnumLabel(osg::Image::NO_PREFERENCE); + I_EnumLabel(osg::Image::STORE_INLINE); + I_EnumLabel(osg::Image::EXTERNAL_FILE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Image::AllocationMode) + I_DeclaringFile("osg/Image"); + I_EnumLabel(osg::Image::NO_DELETE); + I_EnumLabel(osg::Image::USE_NEW_DELETE); + I_EnumLabel(osg::Image::USE_MALLOC_FREE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Image::Origin) + I_DeclaringFile("osg/Image"); + I_EnumLabel(osg::Image::BOTTOM_LEFT); + I_EnumLabel(osg::Image::TOP_LEFT); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::Image::MipmapDataType) + +BEGIN_OBJECT_REFLECTOR(osg::Image) + I_DeclaringFile("osg/Image"); + I_BaseType(osg::BufferData); + I_Constructor0(____Image, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Image &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Image__C5_Image_R1__C5_CopyOp_R1, + "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 &, 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. "); + I_Method0(const GLvoid *, getDataPointer, + Properties::VIRTUAL, + __C5_GLvoid_P1__getDataPointer, + "", + ""); + I_Method0(unsigned int, getTotalDataSize, + Properties::VIRTUAL, + __unsigned_int__getTotalDataSize, + "", + ""); + 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, setWriteHint, IN, osg::Image::WriteHint, writeHint, + Properties::NON_VIRTUAL, + __void__setWriteHint__WriteHint, + "", + ""); + I_Method0(osg::Image::WriteHint, getWriteHint, + Properties::NON_VIRTUAL, + __WriteHint__getWriteHint, + "", + ""); + 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::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::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::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::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. ", + "The method uses gluScaleImage() and thus needs a valid rendering context. "); + I_Method4(void, scaleImage, IN, int, s, IN, int, t, IN, int, r, IN, GLenum, newDataType, + Properties::VIRTUAL, + __void__scaleImage__int__int__int__GLenum, + "Scale image to specified size and with specified data type. ", + "The method uses gluScaleImage() and thus needs a valid rendering context. "); + I_Method4(void, copySubImage, IN, int, s_offset, IN, int, t_offset, IN, int, r_offset, IN, const osg::Image *, source, + Properties::VIRTUAL, + __void__copySubImage__int__int__int__C5_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_Method1(void, setOrigin, IN, osg::Image::Origin, origin, + Properties::NON_VIRTUAL, + __void__setOrigin__Origin, + "Set the origin of the image. ", + "The default value is BOTTOM_LEFT and is consistent with OpenGL. TOP_LEFT is used for imagery that follows standard Imagery convention, such as movies, and hasn't been flipped yet. For such images one much flip the t axis of the tex coords. to handle this origin position. "); + I_Method0(osg::Image::Origin, getOrigin, + Properties::NON_VIRTUAL, + __Origin__getOrigin, + "Get the origin of the image. ", + ""); + 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_Method1(void, setPixelAspectRatio, IN, float, pixelAspectRatio, + Properties::NON_VIRTUAL, + __void__setPixelAspectRatio__float, + "Set the pixel aspect ratio, defined as the pixel width divided by the pixel height. ", + ""); + I_Method0(float, getPixelAspectRatio, + Properties::NON_VIRTUAL, + __float__getPixelAspectRatio, + "Get the pixel aspect ratio. ", + ""); + 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_MethodWithDefaults3(osg::Vec4, getColor, IN, unsigned int, s, , IN, unsigned, t, 0, IN, unsigned, r, 0, + Properties::NON_VIRTUAL, + __Vec4__getColor__unsigned_int__unsigned__unsigned, + "Get the color value for specified texcoord. ", + ""); + I_Method1(osg::Vec4, getColor, IN, const osg::Vec2 &, texcoord, + Properties::NON_VIRTUAL, + __Vec4__getColor__C5_Vec2_R1, + "Get the color value for specified texcoord. ", + ""); + I_Method1(osg::Vec4, getColor, IN, const osg::Vec3 &, texcoord, + Properties::NON_VIRTUAL, + __Vec4__getColor__C5_Vec3_R1, + "Get the color value for specified texcoord. ", + ""); + 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(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::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. ", + ""); + I_Method0(bool, requiresUpdateCall, + Properties::VIRTUAL, + __bool__requiresUpdateCall, + "return whether the update(NodeVisitor* nv) should be required on each frame to enable proper working of osg::Image. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __void__update__NodeVisitor_P1, + "update method for osg::Image subclasses that update themselves during the update traversal. ", + ""); + I_Method3(bool, sendPointerEvent, IN, int, x, IN, int, x, IN, int, x, + Properties::VIRTUAL, + __bool__sendPointerEvent__int__int__int, + "method for sending pointer events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. ", + "Return true if handled. "); + I_Method2(bool, sendKeyEvent, IN, int, x, IN, bool, x, + Properties::VIRTUAL, + __bool__sendKeyEvent__int__bool, + "method for sending key events to images that are acting as front ends to interactive surfaces such as a vnc or browser window. ", + "Return true if handled. "); + I_Method1(void, setFrameLastRendered, IN, const osg::FrameStamp *, x, + Properties::VIRTUAL, + __void__setFrameLastRendered__C5_osg_FrameStamp_P1, + "method for passing frame information to the custom Image classes, to be called only when objects associated with imagery are not culled. ", + ""); + I_StaticMethod1(bool, isPackedType, IN, GLenum, type, + __bool__isPackedType__GLenum_S, + "", + ""); + I_StaticMethod1(GLenum, computePixelFormat, IN, GLenum, pixelFormat, + __GLenum__computePixelFormat__GLenum_S, + "", + ""); + I_StaticMethod1(GLenum, computeFormatDataType, IN, GLenum, pixelFormat, + __GLenum__computeFormatDataType__GLenum_S, + "", + ""); + I_StaticMethod1(unsigned int, computeNumComponents, IN, GLenum, pixelFormat, + __unsigned_int__computeNumComponents__GLenum_S, + "", + ""); + I_StaticMethod2(unsigned int, computePixelSizeInBits, IN, GLenum, pixelFormat, IN, GLenum, type, + __unsigned_int__computePixelSizeInBits__GLenum__GLenum_S, + "", + ""); + I_StaticMethod4(unsigned int, computeRowWidthInBytes, IN, int, width, IN, GLenum, pixelFormat, IN, GLenum, type, IN, int, packing, + __unsigned_int__computeRowWidthInBytes__int__GLenum__GLenum__int_S, + "", + ""); + I_StaticMethodWithDefaults2(int, computeNearestPowerOfTwo, IN, int, s, , IN, float, bias, 0.5f, + __int__computeNearestPowerOfTwo__int__float_S, + "", + ""); + I_StaticMethodWithDefaults3(int, computeNumberOfMipmapLevels, IN, int, s, , IN, int, t, 1, IN, int, r, 1, + __int__computeNumberOfMipmapLevels__int__int__int_S, + "", + ""); + I_ProtectedMethod0(void, deallocateData, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__deallocateData, + "", + ""); + I_ProtectedMethod2(void, setData, IN, unsigned char *, data, IN, osg::Image::AllocationMode, allocationMode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setData__unsigned_char_P1__AllocationMode, + "", + ""); + I_SimpleProperty(osg::Image::AllocationMode, AllocationMode, + __AllocationMode__getAllocationMode, + __void__setAllocationMode__AllocationMode); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(GLenum, DataType, + __GLenum__getDataType, + __void__setDataType__GLenum); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(const osg::FrameStamp *, FrameLastRendered, + 0, + __void__setFrameLastRendered__C5_osg_FrameStamp_P1); + I_SimpleProperty(unsigned int, ImageSizeInBytes, + __unsigned_int__getImageSizeInBytes, + 0); + I_SimpleProperty(GLint, InternalTextureFormat, + __GLint__getInternalTextureFormat, + __void__setInternalTextureFormat__GLint); + I_SimpleProperty(const osg::Image::MipmapDataType &, MipmapLevels, + __C5_MipmapDataType_R1__getMipmapLevels, + __void__setMipmapLevels__C5_MipmapDataType_R1); + I_SimpleProperty(osg::Image::Origin, Origin, + __Origin__getOrigin, + __void__setOrigin__Origin); + I_SimpleProperty(unsigned int, Packing, + __unsigned_int__getPacking, + __void__setPacking__unsigned_int); + I_SimpleProperty(float, PixelAspectRatio, + __float__getPixelAspectRatio, + __void__setPixelAspectRatio__float); + I_SimpleProperty(osg::PixelBufferObject *, PixelBufferObject, + __PixelBufferObject_P1__getPixelBufferObject, + __void__setPixelBufferObject__PixelBufferObject_P1); + I_SimpleProperty(GLenum, PixelFormat, + __GLenum__getPixelFormat, + __void__setPixelFormat__GLenum); + I_SimpleProperty(unsigned int, PixelSizeInBits, + __unsigned_int__getPixelSizeInBits, + 0); + I_SimpleProperty(unsigned int, RowSizeInBytes, + __unsigned_int__getRowSizeInBytes, + 0); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); + I_SimpleProperty(unsigned int, TotalSizeInBytes, + __unsigned_int__getTotalSizeInBytes, + 0); + I_SimpleProperty(unsigned int, TotalSizeInBytesIncludingMipmaps, + __unsigned_int__getTotalSizeInBytesIncludingMipmaps, + 0); + I_SimpleProperty(osg::Image::WriteHint, WriteHint, + __WriteHint__getWriteHint, + __void__setWriteHint__WriteHint); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Image::UpdateCallback) + I_DeclaringFile("osg/Image"); + I_BaseType(osg::StateAttributeCallback); + I_Constructor0(____UpdateCallback, + "", + ""); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< unsigned int >) + diff --git a/src/osgWrappers/introspection/osg/ImageSequence.cpp b/src/osgWrappers/introspection/osg/ImageSequence.cpp new file mode 100644 index 000000000..b93081658 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ImageSequence.cpp @@ -0,0 +1,319 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ImageSequence::Mode) + I_DeclaringFile("osg/ImageSequence"); + I_EnumLabel(osg::ImageSequence::PRE_LOAD_ALL_IMAGES); + I_EnumLabel(osg::ImageSequence::PAGE_AND_RETAIN_IMAGES); + I_EnumLabel(osg::ImageSequence::PAGE_AND_DISCARD_USED_IMAGES); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Image > >, osg::ImageSequence::Images) + +TYPE_NAME_ALIAS(std::vector< std::string >, osg::ImageSequence::FileNames) + +BEGIN_OBJECT_REFLECTOR(osg::ImageSequence) + I_DeclaringFile("osg/ImageSequence"); + I_BaseType(osg::ImageStream); + I_Constructor0(____ImageSequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ImageSequence &, ImageSequence, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageSequence__C5_ImageSequence_R1__C5_CopyOp_R1, + "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 &, 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. "); + 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, setReferenceTime, IN, double, t, + Properties::VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method0(double, getReferenceTime, + Properties::VIRTUAL, + __double__getReferenceTime, + "", + ""); + I_Method1(void, setTimeMultiplier, IN, double, tm, + Properties::VIRTUAL, + __void__setTimeMultiplier__double, + "", + ""); + I_Method0(double, getTimeMultiplier, + Properties::VIRTUAL, + __double__getTimeMultiplier, + "", + ""); + I_Method1(void, seek, IN, double, time, + Properties::VIRTUAL, + __void__seek__double, + "", + ""); + 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_Method1(void, setMode, IN, osg::ImageSequence::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::ImageSequence::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setLength, IN, double, length, + Properties::NON_VIRTUAL, + __void__setLength__double, + "", + ""); + I_Method0(double, getLength, + Properties::VIRTUAL, + __double__getLength, + "", + ""); + I_Method1(void, addImageFile, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __void__addImageFile__C5_std_string_R1, + "", + ""); + I_Method2(void, setImageFile, IN, unsigned int, pos, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __void__setImageFile__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(std::string, getImageFile, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __std_string__getImageFile__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumImageFiles, + Properties::NON_VIRTUAL, + __unsigned_int__getNumImageFiles, + "", + ""); + I_Method0(osg::ImageSequence::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __FileNames_R1__getFileNames, + "", + ""); + I_Method0(const osg::ImageSequence::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __C5_FileNames_R1__getFileNames, + "", + ""); + I_Method1(void, addImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__addImage__osg_Image_P1, + "", + ""); + 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::VIRTUAL, + __void__setImage__int__int__int__GLint__GLenum__GLenum__unsigned_char_P1__AllocationMode__int, + "Set the image dimensions, format and data. ", + ""); + I_Method2(void, setImage, IN, unsigned int, pos, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__unsigned_int__osg_Image_P1, + "", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __Image_P1__getImage__unsigned_int, + "", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumImages, + Properties::NON_VIRTUAL, + __unsigned_int__getNumImages, + "", + ""); + I_Method0(osg::ImageSequence::Images &, getImages, + Properties::NON_VIRTUAL, + __Images_R1__getImages, + "", + ""); + I_Method0(const osg::ImageSequence::Images &, getImages, + Properties::NON_VIRTUAL, + __C5_Images_R1__getImages, + "", + ""); + I_Method0(bool, requiresUpdateCall, + Properties::VIRTUAL, + __bool__requiresUpdateCall, + "ImageSequence requires a call to update(NodeVisitor*) during the update traversal so return true. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor *, nv, + Properties::VIRTUAL, + __void__update__NodeVisitor_P1, + "update method for osg::Image subclasses that update themselves during the update traversal. ", + ""); + I_ProtectedMethod0(void, applyLoopingMode, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__applyLoopingMode, + "", + ""); + I_ProtectedMethod1(void, setImageToChild, IN, const osg::Image *, image, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setImageToChild__C5_osg_Image_P1, + "", + ""); + I_ProtectedMethod0(void, computeTimePerImage, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeTimePerImage, + "", + ""); + I_ProtectedMethod1(int, imageIndex, IN, double, time, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int__imageIndex__double, + "", + ""); + I_SimpleProperty(osg::ImageSequence::FileNames &, FileNames, + __FileNames_R1__getFileNames, + 0); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__osg_Image_P1, + __unsigned_int__getNumImages, + __void__addImage__osg_Image_P1, + 0, + 0); + I_ArrayProperty(std::string, ImageFile, + __std_string__getImageFile__unsigned_int, + __void__setImageFile__unsigned_int__C5_std_string_R1, + __unsigned_int__getNumImageFiles, + 0, + 0, + 0); + I_SimpleProperty(osg::ImageSequence::Images &, Images, + __Images_R1__getImages, + 0); + I_SimpleProperty(double, Length, + __double__getLength, + __void__setLength__double); + I_SimpleProperty(osg::ImageSequence::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Image *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Image > >) + +STD_VECTOR_REFLECTOR(std::vector< std::string >) + diff --git a/src/osgWrappers/introspection/osg/ImageStream.cpp b/src/osgWrappers/introspection/osg/ImageStream.cpp new file mode 100644 index 000000000..185b2c91d --- /dev/null +++ b/src/osgWrappers/introspection/osg/ImageStream.cpp @@ -0,0 +1,251 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ImageStream::StreamStatus) + I_DeclaringFile("osg/ImageStream"); + I_EnumLabel(osg::ImageStream::INVALID); + I_EnumLabel(osg::ImageStream::PLAYING); + I_EnumLabel(osg::ImageStream::PAUSED); + I_EnumLabel(osg::ImageStream::REWINDING); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::ImageStream::LoopingMode) + I_DeclaringFile("osg/ImageStream"); + I_EnumLabel(osg::ImageStream::NO_LOOPING); + I_EnumLabel(osg::ImageStream::LOOPING); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::AudioStream > >, osg::ImageStream::AudioStreams) + +BEGIN_OBJECT_REFLECTOR(osg::ImageStream) + I_DeclaringFile("osg/ImageStream"); + I_BaseType(osg::Image); + I_Constructor0(____ImageStream, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ImageStream &, image, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageStream__C5_ImageStream_R1__C5_CopyOp_R1, + "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 &, 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. "); + 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, seek, IN, double, x, + Properties::VIRTUAL, + __void__seek__double, + "", + ""); + 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_Method0(double, getLength, + Properties::VIRTUAL, + __double__getLength, + "", + ""); + I_Method0(double, getFrameRate, + Properties::VIRTUAL, + __double__getFrameRate, + "", + ""); + 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_Method1(void, setVolume, IN, float, x, + Properties::VIRTUAL, + __void__setVolume__float, + "", + ""); + I_Method0(float, getVolume, + Properties::VIRTUAL, + __float__getVolume, + "", + ""); + I_Method1(void, setAudioStreams, IN, const osg::ImageStream::AudioStreams &, asl, + Properties::NON_VIRTUAL, + __void__setAudioStreams__C5_AudioStreams_R1, + "", + ""); + I_Method0(osg::ImageStream::AudioStreams &, getAudioStreams, + Properties::NON_VIRTUAL, + __AudioStreams_R1__getAudioStreams, + "", + ""); + I_Method0(const osg::ImageStream::AudioStreams &, getAudioStreams, + Properties::NON_VIRTUAL, + __C5_AudioStreams_R1__getAudioStreams, + "", + ""); + I_ProtectedMethod0(void, applyLoopingMode, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__applyLoopingMode, + "", + ""); + I_SimpleProperty(const osg::ImageStream::AudioStreams &, AudioStreams, + __C5_AudioStreams_R1__getAudioStreams, + __void__setAudioStreams__C5_AudioStreams_R1); + I_SimpleProperty(double, FrameRate, + __double__getFrameRate, + 0); + I_SimpleProperty(double, Length, + __double__getLength, + 0); + I_SimpleProperty(osg::ImageStream::LoopingMode, LoopingMode, + __LoopingMode__getLoopingMode, + __void__setLoopingMode__LoopingMode); + I_SimpleProperty(double, ReferenceTime, + __double__getReferenceTime, + __void__setReferenceTime__double); + I_SimpleProperty(osg::ImageStream::StreamStatus, Status, + __StreamStatus__getStatus, + 0); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); + I_SimpleProperty(float, Volume, + __float__getVolume, + __void__setVolume__float); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::AudioStream >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::AudioStream *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::AudioStream > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::AudioStream *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::AudioStream *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::AudioStream > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::AudioStream *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::AudioStream > >) + diff --git a/src/osgWrappers/introspection/osg/KdTree.cpp b/src/osgWrappers/introspection/osg/KdTree.cpp new file mode 100644 index 000000000..401ef2e56 --- /dev/null +++ b/src/osgWrappers/introspection/osg/KdTree.cpp @@ -0,0 +1,265 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::KdTree::LineSegmentIntersection >, osg::KdTree::LineSegmentIntersections) + +TYPE_NAME_ALIAS(int, osg::KdTree::value_type) + +TYPE_NAME_ALIAS(std::vector< osg::KdTree::KdNode >, osg::KdTree::KdNodeList) + +TYPE_NAME_ALIAS(std::vector< osg::KdTree::Triangle >, osg::KdTree::TriangleList) + +BEGIN_OBJECT_REFLECTOR(osg::KdTree) + I_DeclaringFile("osg/KdTree"); + I_BaseType(osg::Shape); + I_Constructor0(____KdTree, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::KdTree &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____KdTree__C5_KdTree_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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(bool, build, IN, osg::KdTree::BuildOptions &, buildOptions, IN, osg::Geometry *, geometry, + Properties::VIRTUAL, + __bool__build__BuildOptions_R1__osg_Geometry_P1, + "Build the kdtree from the specified source geometry object. ", + "retun true on success. "); + I_Method3(bool, intersect, IN, const osg::Vec3 &, start, IN, const osg::Vec3 &, end, IN, osg::KdTree::LineSegmentIntersections &, intersections, + Properties::VIRTUAL, + __bool__intersect__C5_osg_Vec3_R1__C5_osg_Vec3_R1__LineSegmentIntersections_R1, + "compute the intersection of a line segment and the kdtree, return true if an intersection has been found. ", + ""); + I_Method1(int, addNode, IN, const osg::KdTree::KdNode &, node, + Properties::NON_VIRTUAL, + __int__addNode__C5_KdNode_R1, + "", + ""); + I_Method1(osg::KdTree::KdNode &, getNode, IN, int, nodeNum, + Properties::NON_VIRTUAL, + __KdNode_R1__getNode__int, + "", + ""); + I_Method1(const osg::KdTree::KdNode &, getNode, IN, int, nodeNum, + Properties::NON_VIRTUAL, + __C5_KdNode_R1__getNode__int, + "", + ""); + I_Method0(osg::KdTree::KdNodeList &, getNodes, + Properties::NON_VIRTUAL, + __KdNodeList_R1__getNodes, + "", + ""); + I_Method0(const osg::KdTree::KdNodeList &, getNodes, + Properties::NON_VIRTUAL, + __C5_KdNodeList_R1__getNodes, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__osg_Vec3Array_P1, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_osg_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(unsigned int, addTriangle, IN, const osg::KdTree::Triangle &, tri, + Properties::NON_VIRTUAL, + __unsigned_int__addTriangle__C5_Triangle_R1, + "", + ""); + I_Method1(osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Triangle_R1__getTriangle__unsigned_int, + "", + ""); + I_Method1(const osg::KdTree::Triangle &, getTriangle, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Triangle_R1__getTriangle__unsigned_int, + "", + ""); + I_Method0(osg::KdTree::TriangleList &, getTriangles, + Properties::NON_VIRTUAL, + __TriangleList_R1__getTriangles, + "", + ""); + I_Method0(const osg::KdTree::TriangleList &, getTriangles, + Properties::NON_VIRTUAL, + __C5_TriangleList_R1__getTriangles, + "", + ""); + I_SimpleProperty(osg::KdTree::KdNodeList &, Nodes, + __KdNodeList_R1__getNodes, + 0); + I_SimpleProperty(osg::KdTree::TriangleList &, Triangles, + __TriangleList_R1__getTriangles, + 0); + I_SimpleProperty(osg::Vec3Array *, Vertices, + 0, + __void__setVertices__osg_Vec3Array_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::BuildOptions) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____BuildOptions, + "", + ""); + I_PublicMemberProperty(unsigned int, _numVerticesProcessed); + I_PublicMemberProperty(unsigned int, _targetNumTrianglesPerLeaf); + I_PublicMemberProperty(unsigned int, _maxNumLevels); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::KdNode) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____KdNode, + "", + ""); + I_Constructor2(IN, osg::KdTree::value_type, f, IN, osg::KdTree::value_type, s, + ____KdNode__value_type__value_type, + "", + ""); + I_PublicMemberProperty(osg::BoundingBox, bb); + I_PublicMemberProperty(osg::KdTree::value_type, first); + I_PublicMemberProperty(osg::KdTree::value_type, second); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osg::KdTree::LineSegmentIntersection::IndexList) + +TYPE_NAME_ALIAS(std::vector< double >, osg::KdTree::LineSegmentIntersection::RatioList) + +BEGIN_VALUE_REFLECTOR(osg::KdTree::LineSegmentIntersection) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____LineSegmentIntersection, + "", + ""); + I_PublicMemberProperty(double, ratio); + I_PublicMemberProperty(osg::Vec3d, intersectionPoint); + I_PublicMemberProperty(osg::Vec3, intersectionNormal); + I_PublicMemberProperty(unsigned int, p0); + I_PublicMemberProperty(unsigned int, p1); + I_PublicMemberProperty(unsigned int, p2); + I_PublicMemberProperty(float, r0); + I_PublicMemberProperty(float, r1); + I_PublicMemberProperty(float, r2); + I_PublicMemberProperty(unsigned int, primitiveIndex); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::KdTree::Triangle) + I_DeclaringFile("osg/KdTree"); + I_Constructor0(____Triangle, + "", + ""); + I_Constructor3(IN, unsigned int, ip0, IN, unsigned int, ip1, IN, unsigned int, ip2, + ____Triangle__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_PublicMemberProperty(unsigned int, p0); + I_PublicMemberProperty(unsigned int, p1); + I_PublicMemberProperty(unsigned int, p2); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::KdTreeBuilder) + I_DeclaringFile("osg/KdTree"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____KdTreeBuilder, + "", + ""); + I_Constructor1(IN, const osg::KdTreeBuilder &, rhs, + Properties::NON_EXPLICIT, + ____KdTreeBuilder__C5_KdTreeBuilder_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + I_Method0(osg::KdTreeBuilder *, clone, + Properties::VIRTUAL, + __KdTreeBuilder_P1__clone, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_PublicMemberProperty(osg::KdTree::BuildOptions, _buildOptions); + I_PublicMemberProperty(osg::ref_ptr< osg::KdTree >, _kdTreePrototype); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< double >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::KdNode >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::LineSegmentIntersection >) + +STD_VECTOR_REFLECTOR(std::vector< osg::KdTree::Triangle >) + diff --git a/src/osgWrappers/introspection/osg/LOD.cpp b/src/osgWrappers/introspection/osg/LOD.cpp new file mode 100644 index 000000000..eb1530f84 --- /dev/null +++ b/src/osgWrappers/introspection/osg/LOD.cpp @@ -0,0 +1,203 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::LOD::CenterMode) + I_DeclaringFile("osg/LOD"); + I_EnumLabel(osg::LOD::USE_BOUNDING_SPHERE_CENTER); + I_EnumLabel(osg::LOD::USER_DEFINED_CENTER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::LOD::RangeMode) + I_DeclaringFile("osg/LOD"); + I_EnumLabel(osg::LOD::DISTANCE_FROM_EYE_POINT); + I_EnumLabel(osg::LOD::PIXEL_SIZE_ON_SCREEN); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::LOD::vec_type) + +TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::LOD::value_type) + +TYPE_NAME_ALIAS(std::pair< float COMMA float >, osg::LOD::MinMaxPair) + +TYPE_NAME_ALIAS(std::vector< osg::LOD::MinMaxPair >, osg::LOD::RangeList) + +BEGIN_OBJECT_REFLECTOR(osg::LOD) + I_DeclaringFile("osg/LOD"); + I_BaseType(osg::Group); + I_Constructor0(____LOD, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LOD__C5_LOD_R1__C5_CopyOp_R1, + "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 &, x, + 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::LOD::vec_type &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_vec_type_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::LOD::vec_type &, getCenter, + Properties::NON_VIRTUAL, + __C5_vec_type_R1__getCenter, + "return the LOD center point. ", + ""); + I_Method1(void, setRadius, IN, osg::LOD::value_type, radius, + Properties::NON_VIRTUAL, + __void__setRadius__value_type, + "Set the object-space reference radius of the volume enclosed by the LOD. ", + "Used to determine the bounding sphere of the LOD in the absence of any children. "); + I_Method0(osg::LOD::value_type, getRadius, + Properties::NON_VIRTUAL, + __value_type__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 interpreted when computing which child is active. ", + ""); + I_Method0(osg::LOD::RangeMode, getRangeMode, + Properties::NON_VIRTUAL, + __RangeMode__getRangeMode, + "Get how the range values should be interpreted 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 specific 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(). "); + I_SimpleProperty(const osg::LOD::vec_type &, Center, + __C5_vec_type_R1__getCenter, + __void__setCenter__C5_vec_type_R1); + I_SimpleProperty(osg::LOD::CenterMode, CenterMode, + __CenterMode__getCenterMode, + __void__setCenterMode__CenterMode); + I_SimpleProperty(osg::LOD::value_type, Radius, + __value_type__getRadius, + __void__setRadius__value_type); + I_SimpleProperty(const osg::LOD::RangeList &, RangeList, + __C5_RangeList_R1__getRangeList, + __void__setRangeList__C5_RangeList_R1); + I_SimpleProperty(osg::LOD::RangeMode, RangeMode, + __RangeMode__getRangeMode, + __void__setRangeMode__RangeMode); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< float COMMA float >) + +STD_VECTOR_REFLECTOR(std::vector< osg::LOD::MinMaxPair >) + diff --git a/src/osgWrappers/introspection/osg/Light.cpp b/src/osgWrappers/introspection/osg/Light.cpp new file mode 100644 index 000000000..3a7bbe7df --- /dev/null +++ b/src/osgWrappers/introspection/osg/Light.cpp @@ -0,0 +1,255 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Light) + I_DeclaringFile("osg/Light"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Light, + "", + ""); + I_Constructor1(IN, unsigned int, lightnum, + Properties::NON_EXPLICIT, + ____Light__unsigned_int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Light &, light, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Light__C5_Light_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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. ", + ""); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "Initialize the light's settings with some decent defaults. ", + ""); + I_SimpleProperty(const osg::Vec4 &, Ambient, + __C5_Vec4_R1__getAmbient, + __void__setAmbient__C5_Vec4_R1); + I_SimpleProperty(float, ConstantAttenuation, + __float__getConstantAttenuation, + __void__setConstantAttenuation__float); + I_SimpleProperty(const osg::Vec4 &, Diffuse, + __C5_Vec4_R1__getDiffuse, + __void__setDiffuse__C5_Vec4_R1); + I_SimpleProperty(const osg::Vec3 &, Direction, + __C5_Vec3_R1__getDirection, + __void__setDirection__C5_Vec3_R1); + I_SimpleProperty(int, LightNum, + __int__getLightNum, + __void__setLightNum__int); + I_SimpleProperty(float, LinearAttenuation, + __float__getLinearAttenuation, + __void__setLinearAttenuation__float); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_SimpleProperty(const osg::Vec4 &, Position, + __C5_Vec4_R1__getPosition, + __void__setPosition__C5_Vec4_R1); + I_SimpleProperty(float, QuadraticAttenuation, + __float__getQuadraticAttenuation, + __void__setQuadraticAttenuation__float); + I_SimpleProperty(const osg::Vec4 &, Specular, + __C5_Vec4_R1__getSpecular, + __void__setSpecular__C5_Vec4_R1); + I_SimpleProperty(float, SpotCutoff, + __float__getSpotCutoff, + __void__setSpotCutoff__float); + I_SimpleProperty(float, SpotExponent, + __float__getSpotExponent, + __void__setSpotExponent__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LightModel.cpp b/src/osgWrappers/introspection/osg/LightModel.cpp new file mode 100644 index 000000000..73388fae5 --- /dev/null +++ b/src/osgWrappers/introspection/osg/LightModel.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::LightModel::ColorControl) + I_DeclaringFile("osg/LightModel"); + I_EnumLabel(osg::LightModel::SEPARATE_SPECULAR_COLOR); + I_EnumLabel(osg::LightModel::SINGLE_COLOR); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::LightModel) + I_DeclaringFile("osg/LightModel"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____LightModel, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LightModel &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightModel__C5_LightModel_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(const osg::Vec4 &, AmbientIntensity, + __C5_osg_Vec4_R1__getAmbientIntensity, + __void__setAmbientIntensity__C5_osg_Vec4_R1); + I_SimpleProperty(osg::LightModel::ColorControl, ColorControl, + __ColorControl__getColorControl, + __void__setColorControl__ColorControl); + I_SimpleProperty(bool, LocalViewer, + __bool__getLocalViewer, + __void__setLocalViewer__bool); + I_SimpleProperty(bool, TwoSided, + __bool__getTwoSided, + __void__setTwoSided__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LightSource.cpp b/src/osgWrappers/introspection/osg/LightSource.cpp new file mode 100644 index 000000000..c4aee9fea --- /dev/null +++ b/src/osgWrappers/introspection/osg/LightSource.cpp @@ -0,0 +1,134 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::LightSource::ReferenceFrame) + I_DeclaringFile("osg/LightSource"); + I_EnumLabel(osg::LightSource::RELATIVE_RF); + I_EnumLabel(osg::LightSource::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::LightSource) + I_DeclaringFile("osg/LightSource"); + I_BaseType(osg::Group); + I_Constructor0(____LightSource, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LightSource &, ls, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightSource__C5_LightSource_R1__C5_CopyOp_R1, + "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(). "); + I_SimpleProperty(osg::Light *, Light, + __Light_P1__getLight, + __void__setLight__Light_P1); + I_SimpleProperty(osg::StateAttribute::GLModeValue, LocalStateSetModes, + 0, + __void__setLocalStateSetModes__StateAttribute_GLModeValue); + I_SimpleProperty(osg::LightSource::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LineSegment.cpp b/src/osgWrappers/introspection/osg/LineSegment.cpp new file mode 100644 index 000000000..9519ffbd1 --- /dev/null +++ b/src/osgWrappers/introspection/osg/LineSegment.cpp @@ -0,0 +1,128 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Vec3d, osg::LineSegment::vec_type) + +TYPE_NAME_ALIAS(osg::LineSegment::vec_type::value_type, osg::LineSegment::value_type) + +BEGIN_OBJECT_REFLECTOR(osg::LineSegment) + I_DeclaringFile("osg/LineSegment"); + I_BaseType(osg::Referenced); + I_Constructor0(____LineSegment, + "", + ""); + I_Constructor1(IN, const osg::LineSegment &, seg, + Properties::NON_EXPLICIT, + ____LineSegment__C5_LineSegment_R1, + "", + ""); + I_Constructor2(IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + ____LineSegment__C5_vec_type_R1__C5_vec_type_R1, + "", + ""); + I_Method2(void, set, IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + Properties::NON_VIRTUAL, + __void__set__C5_vec_type_R1__C5_vec_type_R1, + "", + ""); + I_Method0(osg::LineSegment::vec_type &, start, + Properties::NON_VIRTUAL, + __vec_type_R1__start, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, start, + Properties::NON_VIRTUAL, + __C5_vec_type_R1__start, + "", + ""); + I_Method0(osg::LineSegment::vec_type &, end, + Properties::NON_VIRTUAL, + __vec_type_R1__end, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, end, + Properties::NON_VIRTUAL, + __C5_vec_type_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_Method3(bool, intersect, IN, const osg::BoundingBox &, bb, IN, double &, r1, IN, double &, r2, + Properties::NON_VIRTUAL, + __bool__intersect__C5_BoundingBox_R1__double_R1__double_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_Method3(bool, intersect, IN, const osg::BoundingSphere &, bs, IN, double &, r1, IN, double &, r2, + Properties::NON_VIRTUAL, + __bool__intersect__C5_BoundingSphere_R1__double_R1__double_R1, + "return true if segment intersects BoundingSphere and return the intersection ratio. ", + ""); + I_Method4(bool, intersect, IN, const osg::Vec3f &, v1, IN, const osg::Vec3f &, v2, IN, const osg::Vec3f &, v3, IN, float &, r, + Properties::NON_VIRTUAL, + __bool__intersect__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1__float_R1, + "return true if segment intersects triangle and set ratio long segment. ", + ""); + I_Method4(bool, intersect, IN, const osg::Vec3d &, v1, IN, const osg::Vec3d &, v2, IN, const osg::Vec3d &, v3, IN, double &, r, + Properties::NON_VIRTUAL, + __bool__intersect__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1__double_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. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LineStipple.cpp b/src/osgWrappers/introspection/osg/LineStipple.cpp new file mode 100644 index 000000000..675e0773e --- /dev/null +++ b/src/osgWrappers/introspection/osg/LineStipple.cpp @@ -0,0 +1,116 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::LineStipple) + I_DeclaringFile("osg/LineStipple"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____LineStipple, + "", + ""); + I_Constructor2(IN, GLint, factor, IN, GLushort, pattern, + ____LineStipple__GLint__GLushort, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LineStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LineStipple__C5_LineStipple_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(GLint, Factor, + __GLint__getFactor, + __void__setFactor__GLint); + I_SimpleProperty(GLushort, Pattern, + __GLushort__getPattern, + __void__setPattern__GLushort); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LineWidth.cpp b/src/osgWrappers/introspection/osg/LineWidth.cpp new file mode 100644 index 000000000..3023385ef --- /dev/null +++ b/src/osgWrappers/introspection/osg/LineWidth.cpp @@ -0,0 +1,96 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::LineWidth) + I_DeclaringFile("osg/LineWidth"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, float, width, 1.0f, + Properties::NON_EXPLICIT, + ____LineWidth__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LineWidth &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LineWidth__C5_LineWidth_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/LogicOp.cpp b/src/osgWrappers/introspection/osg/LogicOp.cpp new file mode 100644 index 000000000..d72e5ccaa --- /dev/null +++ b/src/osgWrappers/introspection/osg/LogicOp.cpp @@ -0,0 +1,124 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::LogicOp::Opcode) + I_DeclaringFile("osg/LogicOp"); + I_EnumLabel(osg::LogicOp::CLEAR); + I_EnumLabel(osg::LogicOp::SET); + I_EnumLabel(osg::LogicOp::COPY); + I_EnumLabel(osg::LogicOp::COPY_INVERTED); + I_EnumLabel(osg::LogicOp::NOOP); + I_EnumLabel(osg::LogicOp::INVERT); + I_EnumLabel(osg::LogicOp::AND); + I_EnumLabel(osg::LogicOp::NAND); + I_EnumLabel(osg::LogicOp::OR); + I_EnumLabel(osg::LogicOp::NOR); + I_EnumLabel(osg::LogicOp::XOR); + I_EnumLabel(osg::LogicOp::EQUIV); + I_EnumLabel(osg::LogicOp::AND_REVERSE); + I_EnumLabel(osg::LogicOp::AND_INVERTED); + I_EnumLabel(osg::LogicOp::OR_REVERSE); + I_EnumLabel(osg::LogicOp::OR_INVERTED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::LogicOp) + I_DeclaringFile("osg/LogicOp"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____LogicOp, + "", + ""); + I_Constructor1(IN, osg::LogicOp::Opcode, opcode, + Properties::NON_EXPLICIT, + ____LogicOp__Opcode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::LogicOp &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LogicOp__C5_LogicOp_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::LogicOp::Opcode, Opcode, + __Opcode__getOpcode, + __void__setOpcode__Opcode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Material.cpp b/src/osgWrappers/introspection/osg/Material.cpp new file mode 100644 index 000000000..f71ac329a --- /dev/null +++ b/src/osgWrappers/introspection/osg/Material.cpp @@ -0,0 +1,237 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Material::Face) + I_DeclaringFile("osg/Material"); + I_EnumLabel(osg::Material::FRONT); + I_EnumLabel(osg::Material::BACK); + I_EnumLabel(osg::Material::FRONT_AND_BACK); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Material::ColorMode) + I_DeclaringFile("osg/Material"); + I_EnumLabel(osg::Material::AMBIENT); + I_EnumLabel(osg::Material::DIFFUSE); + I_EnumLabel(osg::Material::SPECULAR); + I_EnumLabel(osg::Material::EMISSION); + I_EnumLabel(osg::Material::AMBIENT_AND_DIFFUSE); + I_EnumLabel(osg::Material::OFF); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Material) + I_DeclaringFile("osg/Material"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Material, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Material &, mat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Material__C5_Material_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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, 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. "); + I_IndexedProperty(const osg::Vec4 &, Ambient, + __C5_Vec4_R1__getAmbient__Face, + __void__setAmbient__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, AmbientFrontAndBack, + __bool__getAmbientFrontAndBack, + 0); + I_SimpleProperty(osg::Material::ColorMode, ColorMode, + __ColorMode__getColorMode, + __void__setColorMode__ColorMode); + I_IndexedProperty(const osg::Vec4 &, Diffuse, + __C5_Vec4_R1__getDiffuse__Face, + __void__setDiffuse__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, DiffuseFrontAndBack, + __bool__getDiffuseFrontAndBack, + 0); + I_IndexedProperty(const osg::Vec4 &, Emission, + __C5_Vec4_R1__getEmission__Face, + __void__setEmission__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, EmissionFrontAndBack, + __bool__getEmissionFrontAndBack, + 0); + I_IndexedProperty(float, Shininess, + __float__getShininess__Face, + __void__setShininess__Face__float, + 0); + I_SimpleProperty(bool, ShininessFrontAndBack, + __bool__getShininessFrontAndBack, + 0); + I_IndexedProperty(const osg::Vec4 &, Specular, + __C5_Vec4_R1__getSpecular__Face, + __void__setSpecular__Face__C5_Vec4_R1, + 0); + I_SimpleProperty(bool, SpecularFrontAndBack, + __bool__getSpecularFrontAndBack, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Matrix.cpp b/src/osgWrappers/introspection/osg/Matrix.cpp new file mode 100644 index 000000000..5980916f4 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Matrix.cpp @@ -0,0 +1,26 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Matrixd, osg::Matrix) + +TYPE_NAME_ALIAS(osg::RefMatrixd, osg::RefMatrix) + diff --git a/src/osgWrappers/introspection/osg/MatrixTransform.cpp b/src/osgWrappers/introspection/osg/MatrixTransform.cpp new file mode 100644 index 000000000..f7644fa69 --- /dev/null +++ b/src/osgWrappers/introspection/osg/MatrixTransform.cpp @@ -0,0 +1,124 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::MatrixTransform) + I_DeclaringFile("osg/MatrixTransform"); + I_BaseType(osg::Transform); + I_Constructor0(____MatrixTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::MatrixTransform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MatrixTransform__C5_MatrixTransform_R1__C5_CopyOp_R1, + "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, + "", + ""); + I_SimpleProperty(const osg::Matrix &, InverseMatrix, + __C5_Matrix_R1__getInverseMatrix, + 0); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Matrixd.cpp b/src/osgWrappers/introspection/osg/Matrixd.cpp new file mode 100644 index 000000000..bf7a5d181 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Matrixd.cpp @@ -0,0 +1,603 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(double, osg::Matrixd::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Matrixd) + I_DeclaringFile("osg/Matrixd"); + I_Constructor0(____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, + "", + ""); + I_Constructor16(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, + ____Matrixd__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_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 orientation. ", + ""); + 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 orientation. ", + ""); + 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 orthographic 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, + "Get the matrix rotation as a Quat. ", + "Note that this function assumes a non-scaled matrix and will return incorrect results for scaled matrixces. Consider decompose() instead. "); + 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, + "", + ""); + I_Method1(void, preMultTranslate, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__preMultTranslate__C5_Vec3d_R1, + "Optimized version of preMult(translate(v));. ", + ""); + I_Method1(void, preMultTranslate, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__preMultTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, postMultTranslate, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__postMultTranslate__C5_Vec3d_R1, + "Optimized version of postMult(translate(v));. ", + ""); + I_Method1(void, postMultTranslate, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__postMultTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, preMultScale, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__preMultScale__C5_Vec3d_R1, + "Optimized version of preMult(scale(v));. ", + ""); + I_Method1(void, preMultScale, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__preMultScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, postMultScale, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__postMultScale__C5_Vec3d_R1, + "Optimized version of postMult(scale(v));. ", + ""); + I_Method1(void, postMultScale, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__postMultScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, preMultRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, + __void__preMultRotate__C5_Quat_R1, + "Optimized version of preMult(rotate(q));. ", + ""); + I_Method1(void, postMultRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, + __void__postMultRotate__C5_Quat_R1, + "Optimized version of postMult(rotate(q));. ", + ""); + I_StaticMethod0(osg::Matrixd, identity, + __Matrixd__identity_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3f &, sv, + __Matrixd__scale__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, scale, IN, const osg::Vec3d &, sv, + __Matrixd__scale__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixd, scale, IN, osg::Matrixd::value_type, sx, IN, osg::Matrixd::value_type, sy, IN, osg::Matrixd::value_type, sz, + __Matrixd__scale__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3f &, dv, + __Matrixd__translate__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, translate, IN, const osg::Vec3d &, dv, + __Matrixd__translate__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixd, translate, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + __Matrixd__translate__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __Matrixd__rotate__C5_Vec3f_R1__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __Matrixd__rotate__C5_Vec3d_R1__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod4(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, osg::Matrixd::value_type, x, IN, osg::Matrixd::value_type, y, IN, osg::Matrixd::value_type, z, + __Matrixd__rotate__value_type__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3f &, axis, + __Matrixd__rotate__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixd, rotate, IN, osg::Matrixd::value_type, angle, IN, const osg::Vec3d &, axis, + __Matrixd__rotate__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, rotate, 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, + __Matrixd__rotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, rotate, 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, + __Matrixd__rotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, rotate, IN, const osg::Quat &, quat, + __Matrixd__rotate__C5_Quat_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, inverse, IN, const osg::Matrixd &, matrix, + __Matrixd__inverse__C5_Matrixd_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixd, orthoNormal, IN, const osg::Matrixd &, matrix, + __Matrixd__orthoNormal__C5_Matrixd_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixd, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixd__ortho__double__double__double__double__double__double_S, + "Create an orthographic projection matrix. ", + "See glOrtho for further details. "); + I_StaticMethod4(osg::Matrixd, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __Matrixd__ortho2D__double__double__double__double_S, + "Create a 2D orthographic projection. ", + "See glOrtho for further details. "); + I_StaticMethod6(osg::Matrixd, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixd__frustum__double__double__double__double__double__double_S, + "Create a perspective projection. ", + "See glFrustum for further details. "); + I_StaticMethod4(osg::Matrixd, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __Matrixd__perspective__double__double__double__double_S, + "Create a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height. "); + I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up, + __Matrixd__lookAt__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod3(osg::Matrixd, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __Matrixd__lookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixd &, m, + __Vec3f__transform3x3__C5_Vec3f_R1__C5_Matrixd_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixd &, m, + __Vec3d__transform3x3__C5_Vec3d_R1__C5_Matrixd_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3f &, v, + __Vec3f__transform3x3__C5_Matrixd_R1__C5_Vec3f_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixd &, m, IN, const osg::Vec3d &, v, + __Vec3d__transform3x3__C5_Matrixd_R1__C5_Vec3d_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_SimpleProperty(osg::Quat, Rotate, + __Quat__getRotate, + __void__setRotate__C5_Quat_R1); + I_SimpleProperty(osg::Vec3d, Scale, + __Vec3d__getScale, + 0); + I_SimpleProperty(osg::Vec3d, Trans, + __Vec3d__getTrans, + __void__setTrans__C5_Vec3d_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RefMatrixd) + I_DeclaringFile("osg/Matrixd"); + 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, + "", + ""); + I_Constructor16(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, + ____RefMatrixd__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type__Matrixd_value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Matrixf.cpp b/src/osgWrappers/introspection/osg/Matrixf.cpp new file mode 100644 index 000000000..0ca984ecf --- /dev/null +++ b/src/osgWrappers/introspection/osg/Matrixf.cpp @@ -0,0 +1,603 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(float, osg::Matrixf::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Matrixf) + I_DeclaringFile("osg/Matrixf"); + I_Constructor0(____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, + "", + ""); + I_Constructor16(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, + ____Matrixf__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_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 orientation. ", + ""); + 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 orientation. ", + ""); + 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 orthographic 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, + "Get the matrix rotation as a Quat. ", + "Note that this function assumes a non-scaled matrix and will return incorrect results for scaled matrixces. Consider decompose() instead. "); + 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, + "", + ""); + I_Method1(void, preMultTranslate, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__preMultTranslate__C5_Vec3d_R1, + "Optimized version of preMult(translate(v));. ", + ""); + I_Method1(void, preMultTranslate, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__preMultTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, postMultTranslate, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__postMultTranslate__C5_Vec3d_R1, + "Optimized version of postMult(translate(v));. ", + ""); + I_Method1(void, postMultTranslate, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__postMultTranslate__C5_Vec3f_R1, + "", + ""); + I_Method1(void, preMultScale, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__preMultScale__C5_Vec3d_R1, + "Optimized version of preMult(scale(v));. ", + ""); + I_Method1(void, preMultScale, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__preMultScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, postMultScale, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __void__postMultScale__C5_Vec3d_R1, + "Optimized version of postMult(scale(v));. ", + ""); + I_Method1(void, postMultScale, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __void__postMultScale__C5_Vec3f_R1, + "", + ""); + I_Method1(void, preMultRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, + __void__preMultRotate__C5_Quat_R1, + "Optimized version of preMult(rotate(q));. ", + ""); + I_Method1(void, postMultRotate, IN, const osg::Quat &, q, + Properties::NON_VIRTUAL, + __void__postMultRotate__C5_Quat_R1, + "Optimized version of postMult(rotate(q));. ", + ""); + I_StaticMethod0(osg::Matrixf, identity, + __Matrixf__identity_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3f &, sv, + __Matrixf__scale__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, scale, IN, const osg::Vec3d &, sv, + __Matrixf__scale__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixf, scale, IN, osg::Matrixf::value_type, sx, IN, osg::Matrixf::value_type, sy, IN, osg::Matrixf::value_type, sz, + __Matrixf__scale__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3f &, dv, + __Matrixf__translate__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, translate, IN, const osg::Vec3d &, dv, + __Matrixf__translate__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod3(osg::Matrixf, translate, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + __Matrixf__translate__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3f &, from, IN, const osg::Vec3f &, to, + __Matrixf__rotate__C5_Vec3f_R1__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, const osg::Vec3d &, from, IN, const osg::Vec3d &, to, + __Matrixf__rotate__C5_Vec3d_R1__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod4(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, osg::Matrixf::value_type, x, IN, osg::Matrixf::value_type, y, IN, osg::Matrixf::value_type, z, + __Matrixf__rotate__value_type__value_type__value_type__value_type_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3f &, axis, + __Matrixf__rotate__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod2(osg::Matrixf, rotate, IN, osg::Matrixf::value_type, angle, IN, const osg::Vec3d &, axis, + __Matrixf__rotate__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, rotate, 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, + __Matrixf__rotate__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, rotate, 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, + __Matrixf__rotate__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, rotate, IN, const osg::Quat &, quat, + __Matrixf__rotate__C5_Quat_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, inverse, IN, const osg::Matrixf &, matrix, + __Matrixf__inverse__C5_Matrixf_R1_S, + "", + ""); + I_StaticMethod1(osg::Matrixf, orthoNormal, IN, const osg::Matrixf &, matrix, + __Matrixf__orthoNormal__C5_Matrixf_R1_S, + "", + ""); + I_StaticMethod6(osg::Matrixf, ortho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixf__ortho__double__double__double__double__double__double_S, + "Create an orthographic projection matrix. ", + "See glOrtho for further details. "); + I_StaticMethod4(osg::Matrixf, ortho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, + __Matrixf__ortho2D__double__double__double__double_S, + "Create a 2D orthographic projection. ", + "See glOrtho for further details. "); + I_StaticMethod6(osg::Matrixf, frustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar, + __Matrixf__frustum__double__double__double__double__double__double_S, + "Create a perspective projection. ", + "See glFrustum for further details. "); + I_StaticMethod4(osg::Matrixf, perspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar, + __Matrixf__perspective__double__double__double__double_S, + "Create a symmetrical perspective projection. ", + "See gluPerspective for further details. Aspect ratio is defined as width/height. "); + I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3f &, eye, IN, const osg::Vec3f &, center, IN, const osg::Vec3f &, up, + __Matrixf__lookAt__C5_Vec3f_R1__C5_Vec3f_R1__C5_Vec3f_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod3(osg::Matrixf, lookAt, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, center, IN, const osg::Vec3d &, up, + __Matrixf__lookAt__C5_Vec3d_R1__C5_Vec3d_R1__C5_Vec3d_R1_S, + "Create the position and orientation as per a camera, using the same convention as gluLookAt. ", + ""); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Vec3f &, v, IN, const osg::Matrixf &, m, + __Vec3f__transform3x3__C5_Vec3f_R1__C5_Matrixf_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Vec3d &, v, IN, const osg::Matrixf &, m, + __Vec3d__transform3x3__C5_Vec3d_R1__C5_Matrixf_R1_S, + "apply a 3x3 transform of v*M[0. ", + ".2,0..2]. "); + I_StaticMethod2(osg::Vec3f, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3f &, v, + __Vec3f__transform3x3__C5_Matrixf_R1__C5_Vec3f_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_StaticMethod2(osg::Vec3d, transform3x3, IN, const osg::Matrixf &, m, IN, const osg::Vec3d &, v, + __Vec3d__transform3x3__C5_Matrixf_R1__C5_Vec3d_R1_S, + "apply a 3x3 transform of M[0. ", + ".2,0..2]*v. "); + I_SimpleProperty(osg::Quat, Rotate, + __Quat__getRotate, + __void__setRotate__C5_Quat_R1); + I_SimpleProperty(osg::Vec3d, Scale, + __Vec3d__getScale, + 0); + I_SimpleProperty(osg::Vec3d, Trans, + __Vec3d__getTrans, + __void__setTrans__C5_Vec3d_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RefMatrixf) + I_DeclaringFile("osg/Matrixf"); + 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, + "", + ""); + I_Constructor16(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, + ____RefMatrixf__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type__Matrixf_value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Multisample.cpp b/src/osgWrappers/introspection/osg/Multisample.cpp new file mode 100644 index 000000000..8f4dc4bfe --- /dev/null +++ b/src/osgWrappers/introspection/osg/Multisample.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Multisample::Mode) + I_DeclaringFile("osg/Multisample"); + I_EnumLabel(osg::Multisample::FASTEST); + I_EnumLabel(osg::Multisample::NICEST); + I_EnumLabel(osg::Multisample::DONT_CARE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Multisample) + I_DeclaringFile("osg/Multisample"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Multisample, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Multisample &, trans, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Multisample__C5_Multisample_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_StaticMethod2(osg::Multisample::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID.. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Multisample::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(float, Coverage, + __float__getCoverage, + __void__setCoverage__float); + I_SimpleProperty(osg::Multisample::Mode, Hint, + __Mode__getHint, + __void__setHint__Mode); + I_SimpleProperty(bool, Invert, + __bool__getInvert, + __void__setInvert__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Node.cpp b/src/osgWrappers/introspection/osg/Node.cpp new file mode 100644 index 000000000..6f7f3b25d --- /dev/null +++ b/src/osgWrappers/introspection/osg/Node.cpp @@ -0,0 +1,541 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Group * >, osg::Node::ParentList) + +TYPE_NAME_ALIAS(unsigned int, osg::Node::NodeMask) + +TYPE_NAME_ALIAS(std::vector< std::string >, osg::Node::DescriptionList) + +BEGIN_OBJECT_REFLECTOR(osg::Node) + I_DeclaringFile("osg/Node"); + I_BaseType(osg::Object); + I_Constructor0(____Node, + "Construct a node. ", + "Initialize the parent list to empty, node name to \"\" and bounding sphere dirty flag to true. "); + I_ConstructorWithDefaults2(IN, const osg::Node &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Node__C5_Node_R1__C5_CopyOp_R1, + "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_Method0(osg::Switch *, asSwitch, + Properties::VIRTUAL, + __Switch_P1__asSwitch, + "Convert 'this' into a Switch pointer if Node is a Switch, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Switch *, asSwitch, + Properties::VIRTUAL, + __C5_Switch_P1__asSwitch, + "convert 'const this' into a const Switch pointer if Node is a Switch, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(osg::Geode *, asGeode, + Properties::VIRTUAL, + __Geode_P1__asGeode, + "Convert 'this' into a Geode pointer if Node is a Geode, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Geode *, asGeode, + Properties::VIRTUAL, + __C5_Geode_P1__asGeode, + "convert 'const this' into a const Geode pointer if Node is a Geode, 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, const osg::Node *, haltTraversalAtNode, 0, + Properties::NON_VIRTUAL, + __MatrixList__getWorldMatrices__C5_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_Method1(void, addUpdateCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__addUpdateCallback__NodeCallback_P1, + "Convenience method that sets the update callback of the node if it doesn't exist, or nest it into the existing one. ", + ""); + I_Method1(void, removeUpdateCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__removeUpdateCallback__NodeCallback_P1, + "Convenience method that removes a given callback from a node, even if that callback is nested. ", + "There is no error return in case the given callback is not found. "); + 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 event node callback, called during event traversal. ", + ""); + I_Method0(osg::NodeCallback *, getEventCallback, + Properties::NON_VIRTUAL, + __NodeCallback_P1__getEventCallback, + "Get event node callback, called during event traversal. ", + ""); + I_Method0(const osg::NodeCallback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_NodeCallback_P1__getEventCallback, + "Get const event node callback, called during event traversal. ", + ""); + I_Method1(void, addEventCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__addEventCallback__NodeCallback_P1, + "Convenience method that sets the event callback of the node if it doesn't exist, or nest it into the existing one. ", + ""); + I_Method1(void, removeEventCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__removeEventCallback__NodeCallback_P1, + "Convenience method that removes a given callback from a node, even if that callback is nested. ", + "There is no error return in case the given callback is not found. "); + 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, addCullCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__addCullCallback__NodeCallback_P1, + "Convenience method that sets the cull callback of the node if it doesn't exist, or nest it into the existing one. ", + ""); + I_Method1(void, removeCullCallback, IN, osg::NodeCallback *, nc, + Properties::NON_VIRTUAL, + __void__removeCullCallback__NodeCallback_P1, + "Convenience method that removes a given callback from a node, even if that callback is nested. ", + "There is no error return in case the given callback is not found. "); + 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 initial 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 initial 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 objects for all graphics contexts. "); + I_ProtectedMethod1(void, addParent, IN, osg::Group *, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addParent__osg_Group_P1, + "", + ""); + I_ProtectedMethod1(void, removeParent, IN, osg::Group *, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeParent__osg_Group_P1, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringUpdateTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringUpdateTraversal__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringEventTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringEventTraversal__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenWithCullingDisabled, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenWithCullingDisabled__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenWithOccluderNodes, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenWithOccluderNodes__unsigned_int, + "", + ""); + I_SimpleProperty(const osg::BoundingSphere &, Bound, + __C5_BoundingSphere_R1__getBound, + 0); + I_SimpleProperty(osg::Node::ComputeBoundingSphereCallback *, ComputeBoundingSphereCallback, + __ComputeBoundingSphereCallback_P1__getComputeBoundingSphereCallback, + __void__setComputeBoundingSphereCallback__ComputeBoundingSphereCallback_P1); + I_SimpleProperty(osg::NodeCallback *, CullCallback, + __NodeCallback_P1__getCullCallback, + __void__setCullCallback__NodeCallback_P1); + I_SimpleProperty(bool, CullingActive, + __bool__getCullingActive, + __void__setCullingActive__bool); + I_ArrayProperty(const std::string &, Description, + __C5_std_string_R1__getDescription__unsigned_int, + 0, + __unsigned_int__getNumDescriptions, + __void__addDescription__C5_std_string_R1, + 0, + 0); + I_SimpleProperty(const osg::Node::DescriptionList &, Descriptions, + __C5_DescriptionList_R1__getDescriptions, + __void__setDescriptions__C5_DescriptionList_R1); + I_SimpleProperty(osg::NodeCallback *, EventCallback, + __NodeCallback_P1__getEventCallback, + __void__setEventCallback__NodeCallback_P1); + I_SimpleProperty(const osg::BoundingSphere &, InitialBound, + __C5_BoundingSphere_R1__getInitialBound, + __void__setInitialBound__C5_osg_BoundingSphere_R1); + I_SimpleProperty(osg::Node::NodeMask, NodeMask, + __NodeMask__getNodeMask, + __void__setNodeMask__NodeMask); + I_ArrayProperty(osg::Group *, Parent, + __Group_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Node::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::NodeCallback *, UpdateCallback, + __NodeCallback_P1__getUpdateCallback, + __void__setUpdateCallback__NodeCallback_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Node::ComputeBoundingSphereCallback) + I_DeclaringFile("osg/Node"); + I_BaseType(osg::Object); + I_Constructor0(____ComputeBoundingSphereCallback, + "", + ""); + I_Constructor2(IN, const osg::Node::ComputeBoundingSphereCallback &, x, IN, const osg::CopyOp &, x, + ____ComputeBoundingSphereCallback__C5_ComputeBoundingSphereCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(osg::BoundingSphere, computeBound, IN, const osg::Node &, x, + Properties::VIRTUAL, + __BoundingSphere__computeBound__C5_osg_Node_R1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Node * >, osg::NodePath) + +TYPE_NAME_ALIAS(std::vector< osg::NodePath >, osg::NodePathList) + +TYPE_NAME_ALIAS(std::vector< osg::Matrix >, osg::MatrixList) + +STD_VECTOR_REFLECTOR(std::vector< osg::Group * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Matrix >) + +STD_VECTOR_REFLECTOR(std::vector< osg::NodePath >) + diff --git a/src/osgWrappers/introspection/osg/NodeCallback.cpp b/src/osgWrappers/introspection/osg/NodeCallback.cpp new file mode 100644 index 000000000..3c74fbdab --- /dev/null +++ b/src/osgWrappers/introspection/osg/NodeCallback.cpp @@ -0,0 +1,97 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::NodeCallback) + I_DeclaringFile("osg/NodeCallback"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____NodeCallback, + "", + ""); + I_Constructor2(IN, const osg::NodeCallback &, nc, IN, const osg::CopyOp &, x, + ____NodeCallback__C5_NodeCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, + "", + ""); + I_SimpleProperty(osg::NodeCallback *, NestedCallback, + __NodeCallback_P1__getNestedCallback, + __void__setNestedCallback__NodeCallback_P1); + I_PublicMemberProperty(osg::ref_ptr< osg::NodeCallback >, _nestedCallback); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/NodeTrackerCallback.cpp b/src/osgWrappers/introspection/osg/NodeTrackerCallback.cpp new file mode 100644 index 000000000..4c8412942 --- /dev/null +++ b/src/osgWrappers/introspection/osg/NodeTrackerCallback.cpp @@ -0,0 +1,118 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osg::NodeTrackerCallback::ObserverNodePath) + +BEGIN_OBJECT_REFLECTOR(osg::NodeTrackerCallback) + I_DeclaringFile("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::ObserverNodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_ObserverNodePath_R1, + "", + ""); + I_Method0(osg::NodeTrackerCallback::ObserverNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, + __ObserverNodePath_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, + "", + ""); + I_SimpleProperty(osg::Node *, TrackNode, + __osg_Node_P1__getTrackNode, + __void__setTrackNode__osg_Node_P1); + I_SimpleProperty(osg::NodeTrackerCallback::ObserverNodePath &, TrackNodePath, + __ObserverNodePath_R1__getTrackNodePath, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osg::Node >) + I_DeclaringFile("osg/observer_ptr"); + 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(osg::Node *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osg::Node *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::observer_ptr< osg::Node > >) + diff --git a/src/osgWrappers/introspection/osg/NodeVisitor.cpp b/src/osgWrappers/introspection/osg/NodeVisitor.cpp new file mode 100644 index 000000000..c87533355 --- /dev/null +++ b/src/osgWrappers/introspection/osg/NodeVisitor.cpp @@ -0,0 +1,494 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::NodeAcceptOp) + I_DeclaringFile("osg/NodeVisitor"); + I_Constructor1(IN, osg::NodeVisitor &, nv, + Properties::NON_EXPLICIT, + ____NodeAcceptOp__NodeVisitor_R1, + "", + ""); + I_Constructor1(IN, const osg::NodeAcceptOp &, naop, + Properties::NON_EXPLICIT, + ____NodeAcceptOp__C5_NodeAcceptOp_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::NodeVisitor::TraversalMode) + I_DeclaringFile("osg/NodeVisitor"); + I_EnumLabel(osg::NodeVisitor::TRAVERSE_NONE); + I_EnumLabel(osg::NodeVisitor::TRAVERSE_PARENTS); + I_EnumLabel(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN); + I_EnumLabel(osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::NodeVisitor::VisitorType) + I_DeclaringFile("osg/NodeVisitor"); + I_EnumLabel(osg::NodeVisitor::NODE_VISITOR); + I_EnumLabel(osg::NodeVisitor::UPDATE_VISITOR); + I_EnumLabel(osg::NodeVisitor::EVENT_VISITOR); + I_EnumLabel(osg::NodeVisitor::COLLECT_OCCLUDER_VISITOR); + I_EnumLabel(osg::NodeVisitor::CULL_VISITOR); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::NodeVisitor) + I_DeclaringFile("osg/NodeVisitor"); + I_VirtualBaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE, + Properties::NON_EXPLICIT, + ____NodeVisitor__TraversalMode, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::NodeVisitor::VisitorType, type, , IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_NONE, + ____NodeVisitor__VisitorType__TraversalMode, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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 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 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, apply, IN, osg::OcclusionQueryNode &, node, + Properties::VIRTUAL, + __void__apply__OcclusionQueryNode_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. ", + ""); + I_Method1(void, setImageRequestHandler, IN, osg::NodeVisitor::ImageRequestHandler *, handler, + Properties::NON_VIRTUAL, + __void__setImageRequestHandler__ImageRequestHandler_P1, + "Set the handler for image requests. ", + ""); + I_Method0(osg::NodeVisitor::ImageRequestHandler *, getImageRequestHandler, + Properties::NON_VIRTUAL, + __ImageRequestHandler_P1__getImageRequestHandler, + "Get the handler for image requests. ", + ""); + I_Method0(const osg::NodeVisitor::ImageRequestHandler *, getImageRequestHandler, + Properties::NON_VIRTUAL, + __C5_ImageRequestHandler_P1__getImageRequestHandler, + "Get the const handler for image requests. ", + ""); + I_SimpleProperty(osg::NodeVisitor::DatabaseRequestHandler *, DatabaseRequestHandler, + __DatabaseRequestHandler_P1__getDatabaseRequestHandler, + __void__setDatabaseRequestHandler__DatabaseRequestHandler_P1); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + 0); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + 0, + __void__setFrameStamp__FrameStamp_P1); + I_SimpleProperty(osg::NodeVisitor::ImageRequestHandler *, ImageRequestHandler, + __ImageRequestHandler_P1__getImageRequestHandler, + __void__setImageRequestHandler__ImageRequestHandler_P1); + I_SimpleProperty(osg::Node::NodeMask, NodeMaskOverride, + __Node_NodeMask__getNodeMaskOverride, + __void__setNodeMaskOverride__Node_NodeMask); + I_SimpleProperty(osg::NodePath &, NodePath, + __NodePath_R1__getNodePath, + 0); + I_SimpleProperty(osg::Node::NodeMask, TraversalMask, + __Node_NodeMask__getTraversalMask, + __void__setTraversalMask__Node_NodeMask); + I_SimpleProperty(osg::NodeVisitor::TraversalMode, TraversalMode, + __TraversalMode__getTraversalMode, + __void__setTraversalMode__TraversalMode); + I_SimpleProperty(int, TraversalNumber, + __int__getTraversalNumber, + __void__setTraversalNumber__int); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); + I_SimpleProperty(osg::Vec3, ViewPoint, + __osg_Vec3__getViewPoint, + 0); + I_SimpleProperty(osg::NodeVisitor::VisitorType, VisitorType, + __VisitorType__getVisitorType, + __void__setVisitorType__VisitorType); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeVisitor::DatabaseRequestHandler) + I_DeclaringFile("osg/NodeVisitor"); + I_BaseType(osg::Referenced); + I_Constructor0(____DatabaseRequestHandler, + "", + ""); + I_MethodWithDefaults6(void, requestNodeFile, IN, const std::string &, fileName, , IN, osg::Group *, group, , IN, float, priority, , IN, const osg::FrameStamp *, framestamp, , IN, osg::ref_ptr< osg::Referenced > &, databaseRequest, , IN, const osg::Referenced *, options, 0, + Properties::PURE_VIRTUAL, + __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1__C5_osg_Referenced_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NodeVisitor::ImageRequestHandler) + I_DeclaringFile("osg/NodeVisitor"); + I_BaseType(osg::Referenced); + I_Constructor0(____ImageRequestHandler, + "", + ""); + I_Method0(double, getPreLoadTime, + Properties::PURE_VIRTUAL, + __double__getPreLoadTime, + "", + ""); + I_Method1(osg::Image *, readImageFile, IN, const std::string &, fileName, + Properties::PURE_VIRTUAL, + __osg_Image_P1__readImageFile__C5_std_string_R1, + "", + ""); + I_Method5(void, requestImageFile, IN, const std::string &, fileName, IN, osg::Object *, attachmentPoint, IN, int, attachmentIndex, IN, double, timeToMergeBy, IN, const osg::FrameStamp *, framestamp, + Properties::PURE_VIRTUAL, + __void__requestImageFile__C5_std_string_R1__osg_Object_P1__int__double__C5_FrameStamp_P1, + "", + ""); + I_SimpleProperty(double, PreLoadTime, + __double__getPreLoadTime, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Referenced >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Referenced *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Referenced > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Referenced *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Referenced *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Referenced > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Referenced *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Notify.cpp b/src/osgWrappers/introspection/osg/Notify.cpp new file mode 100644 index 000000000..5c6f2c797 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Notify.cpp @@ -0,0 +1,59 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::NotifyHandler) + I_DeclaringFile("osg/Notify"); + I_BaseType(osg::Referenced); + I_Constructor0(____NotifyHandler, + "", + ""); + I_Method2(void, notify, IN, osg::NotifySeverity, severity, IN, const char *, message, + Properties::PURE_VIRTUAL, + __void__notify__osg_NotifySeverity__C5_char_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StandardNotifyHandler) + I_DeclaringFile("osg/Notify"); + I_BaseType(osg::NotifyHandler); + I_Constructor0(____StandardNotifyHandler, + "", + ""); + I_Method2(void, notify, IN, osg::NotifySeverity, severity, IN, const char *, message, + Properties::VIRTUAL, + __void__notify__osg_NotifySeverity__C5_char_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::NotifySeverity) + I_DeclaringFile("osg/Notify"); + I_EnumLabel(osg::ALWAYS); + I_EnumLabel(osg::FATAL); + I_EnumLabel(osg::WARN); + I_EnumLabel(osg::NOTICE); + I_EnumLabel(osg::INFO); + I_EnumLabel(osg::DEBUG_INFO); + I_EnumLabel(osg::DEBUG_FP); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Object.cpp b/src/osgWrappers/introspection/osg/Object.cpp new file mode 100644 index 000000000..c825b9dba --- /dev/null +++ b/src/osgWrappers/introspection/osg/Object.cpp @@ -0,0 +1,138 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Object::DataVariance) + I_DeclaringFile("osg/Object"); + I_EnumLabel(osg::Object::DYNAMIC); + I_EnumLabel(osg::Object::STATIC); + I_EnumLabel(osg::Object::UNSPECIFIED); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Object) + I_DeclaringFile("osg/Object"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Object &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Object__C5_Object_R1__C5_CopyOp_R1, + "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 optimization codes that wish to share static data. UNSPECIFIED is used to specify that the DataVariance hasn't been set yet. "); + I_Method0(osg::Object::DataVariance, getDataVariance, + Properties::NON_VIRTUAL, + __DataVariance__getDataVariance, + "Get the data variance of this object. ", + ""); + I_Method0(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assessment of callback etc. ", + ""); + 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 objects for all graphics contexts. "); + I_SimpleProperty(osg::Object::DataVariance, DataVariance, + __DataVariance__getDataVariance, + __void__setDataVariance__DataVariance); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/OccluderNode.cpp b/src/osgWrappers/introspection/osg/OccluderNode.cpp new file mode 100644 index 000000000..7583a3a19 --- /dev/null +++ b/src/osgWrappers/introspection/osg/OccluderNode.cpp @@ -0,0 +1,92 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::OccluderNode) + I_DeclaringFile("osg/OccluderNode"); + I_BaseType(osg::Group); + I_Constructor0(____OccluderNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::OccluderNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderNode__C5_OccluderNode_R1__C5_CopyOp_R1, + "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. ", + ""); + I_SimpleProperty(osg::ConvexPlanarOccluder *, Occluder, + __ConvexPlanarOccluder_P1__getOccluder, + __void__setOccluder__ConvexPlanarOccluder_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/OcclusionQueryNode.cpp b/src/osgWrappers/introspection/osg/OcclusionQueryNode.cpp new file mode 100644 index 000000000..6587a436c --- /dev/null +++ b/src/osgWrappers/introspection/osg/OcclusionQueryNode.cpp @@ -0,0 +1,206 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::OcclusionQueryNode) + I_DeclaringFile("osg/OcclusionQueryNode"); + I_BaseType(osg::Group); + I_Constructor0(____OcclusionQueryNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::OcclusionQueryNode &, oqn, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OcclusionQueryNode__C5_OcclusionQueryNode_R1__C5_osg_CopyOp_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::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(). "); + 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 objects for all graphics contexts. "); + I_MethodWithDefaults1(void, setQueriesEnabled, IN, bool, enable, true, + Properties::NON_VIRTUAL, + __void__setQueriesEnabled__bool, + "", + ""); + I_Method0(bool, getQueriesEnabled, + Properties::NON_VIRTUAL, + __bool__getQueriesEnabled, + "", + ""); + I_Method1(void, setVisibilityThreshold, IN, unsigned int, pixels, + Properties::NON_VIRTUAL, + __void__setVisibilityThreshold__unsigned_int, + "", + ""); + I_Method0(unsigned int, getVisibilityThreshold, + Properties::NON_VIRTUAL, + __unsigned_int__getVisibilityThreshold, + "", + ""); + I_Method1(void, setQueryFrameCount, IN, int, frames, + Properties::NON_VIRTUAL, + __void__setQueryFrameCount__int, + "", + ""); + I_Method0(int, getQueryFrameCount, + Properties::NON_VIRTUAL, + __int__getQueryFrameCount, + "", + ""); + I_Method1(void, setDebugDisplay, IN, bool, enable, + Properties::NON_VIRTUAL, + __void__setDebugDisplay__bool, + "", + ""); + I_Method0(bool, getDebugDisplay, + Properties::NON_VIRTUAL, + __bool__getDebugDisplay, + "", + ""); + I_Method1(void, setQueryStateSet, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __void__setQueryStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getQueryStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getQueryStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getQueryStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getQueryStateSet, + "", + ""); + I_Method1(void, setDebugStateSet, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + __void__setDebugStateSet__osg_StateSet_P1, + "", + ""); + I_Method0(osg::StateSet *, getDebugStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getDebugStateSet, + "", + ""); + I_Method0(const osg::StateSet *, getDebugStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getDebugStateSet, + "", + ""); + I_Method0(bool, getPassed, + Properties::NON_VIRTUAL, + __bool__getPassed, + "", + ""); + I_Method2(bool, getPassed, IN, const osg::Camera *, camera, IN, float, distanceToEyePoint, + Properties::NON_VIRTUAL, + __bool__getPassed__C5_osg_Camera_P1__float, + "", + ""); + I_Method2(void, traverseQuery, IN, const osg::Camera *, camera, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__traverseQuery__C5_osg_Camera_P1__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverseDebug, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + __void__traverseDebug__osg_NodeVisitor_R1, + "", + ""); + I_StaticMethod3(void, flushDeletedQueryObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedQueryObjects__unsigned_int__double__double_R1_S, + "", + ""); + I_StaticMethod1(void, discardDeletedQueryObjects, IN, unsigned int, contextID, + __void__discardDeletedQueryObjects__unsigned_int_S, + "", + ""); + I_ProtectedMethod0(void, createSupportNodes, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__createSupportNodes, + "", + ""); + I_SimpleProperty(bool, DebugDisplay, + __bool__getDebugDisplay, + __void__setDebugDisplay__bool); + I_SimpleProperty(osg::StateSet *, DebugStateSet, + __osg_StateSet_P1__getDebugStateSet, + __void__setDebugStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, Passed, + __bool__getPassed, + 0); + I_SimpleProperty(bool, QueriesEnabled, + __bool__getQueriesEnabled, + __void__setQueriesEnabled__bool); + I_SimpleProperty(int, QueryFrameCount, + __int__getQueryFrameCount, + __void__setQueryFrameCount__int); + I_SimpleProperty(osg::StateSet *, QueryStateSet, + __osg_StateSet_P1__getQueryStateSet, + __void__setQueryStateSet__osg_StateSet_P1); + I_SimpleProperty(unsigned int, VisibilityThreshold, + __unsigned_int__getVisibilityThreshold, + __void__setVisibilityThreshold__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/OperationThread.cpp b/src/osgWrappers/introspection/osg/OperationThread.cpp new file mode 100644 index 000000000..a647b1788 --- /dev/null +++ b/src/osgWrappers/introspection/osg/OperationThread.cpp @@ -0,0 +1,271 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Operation) + I_DeclaringFile("osg/OperationThread"); + I_VirtualBaseType(osg::Referenced); + I_Constructor2(IN, const std::string &, name, IN, bool, keep, + ____Operation__C5_std_string_R1__bool, + "", + ""); + 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. ", + ""); + I_ProtectedConstructor0(____Operation, + "", + ""); + I_ProtectedConstructor1(IN, const osg::Operation &, op, + Properties::NON_EXPLICIT, + ____Operation__C5_Operation_R1, + "", + ""); + I_SimpleProperty(bool, Keep, + __bool__getKeep, + __void__setKeep__bool); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::OperationThread * >, osg::OperationQueue::OperationThreads) + +BEGIN_OBJECT_REFLECTOR(osg::OperationQueue) + I_DeclaringFile("osg/OperationThread"); + I_BaseType(osg::Referenced); + I_Constructor0(____OperationQueue, + "", + ""); + I_MethodWithDefaults1(osg::ref_ptr< osg::Operation >, getNextOperation, IN, bool, blockIfEmpty, false, + Properties::NON_VIRTUAL, + __osg_ref_ptrT1_Operation___getNextOperation__bool, + "Get the next operation from the operation queue. ", + "Return null ref_ptr<> if no operations are left in queue. "); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "Return true if the operation queue is empty. ", + ""); + I_Method0(unsigned int, getNumOperationsInQueue, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOperationsInQueue, + "Return the num of pending operations that are sitting in the OperationQueue. ", + ""); + I_Method1(void, add, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__add__Operation_P1, + "Add operation to end of OperationQueue, this will be executed by the operation 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_MethodWithDefaults1(void, runOperations, IN, osg::Object *, callingObject, 0, + Properties::NON_VIRTUAL, + __void__runOperations__Object_P1, + "Run the operations. ", + ""); + I_Method0(void, releaseAllOperations, + Properties::NON_VIRTUAL, + __void__releaseAllOperations, + "Call release on all operations. ", + ""); + I_Method0(void, releaseOperationsBlock, + Properties::NON_VIRTUAL, + __void__releaseOperationsBlock, + "Release operations block that is used to block threads that are waiting on an empty operations queue. ", + ""); + I_Method0(const osg::OperationQueue::OperationThreads &, getOperationThreads, + Properties::NON_VIRTUAL, + __C5_OperationThreads_R1__getOperationThreads, + "Get the set of OperationThreads that are sharing this OperationQueue. ", + ""); + I_ProtectedMethod1(void, addOperationThread, IN, osg::OperationThread *, thread, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addOperationThread__OperationThread_P1, + "", + ""); + I_ProtectedMethod1(void, removeOperationThread, IN, osg::OperationThread *, thread, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeOperationThread__OperationThread_P1, + "", + ""); + I_SimpleProperty(const osg::OperationQueue::OperationThreads &, OperationThreads, + __C5_OperationThreads_R1__getOperationThreads, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::OperationThread) + I_DeclaringFile("osg/OperationThread"); + I_BaseType(osg::Referenced); + I_BaseType(OpenThreads::Thread); + I_Constructor0(____OperationThread, + "", + ""); + 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_Method1(void, setOperationQueue, IN, osg::OperationQueue *, opq, + Properties::NON_VIRTUAL, + __void__setOperationQueue__OperationQueue_P1, + "Set the OperationQueue. ", + ""); + I_Method0(osg::OperationQueue *, getOperationQueue, + Properties::NON_VIRTUAL, + __OperationQueue_P1__getOperationQueue, + "Get the OperationQueue. ", + ""); + I_Method0(const osg::OperationQueue *, getOperationQueue, + Properties::NON_VIRTUAL, + __C5_OperationQueue_P1__getOperationQueue, + "Get the const OperationQueue. ", + ""); + I_Method1(void, add, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__add__Operation_P1, + "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 opertion 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. ", + ""); + I_SimpleProperty(osg::ref_ptr< osg::Operation >, CurrentOperation, + __osg_ref_ptrT1_Operation___getCurrentOperation, + 0); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); + I_SimpleProperty(osg::OperationQueue *, OperationQueue, + __OperationQueue_P1__getOperationQueue, + __void__setOperationQueue__OperationQueue_P1); + I_SimpleProperty(osg::Object *, Parent, + __Object_P1__getParent, + __void__setParent__Object_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RefBlock) + I_DeclaringFile("osg/OperationThread"); + I_VirtualBaseType(osg::Referenced); + I_BaseType(OpenThreads::Block); + I_Constructor0(____RefBlock, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RefBlockCount) + I_DeclaringFile("osg/OperationThread"); + I_VirtualBaseType(osg::Referenced); + I_BaseType(OpenThreads::BlockCount); + I_Constructor1(IN, unsigned, blockCount, + Properties::NON_EXPLICIT, + ____RefBlockCount__unsigned, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::OperationThread, osg::OperationsThread) + +STD_SET_REFLECTOR(std::set< osg::OperationThread * >) + diff --git a/src/osgWrappers/introspection/osg/PagedLOD.cpp b/src/osgWrappers/introspection/osg/PagedLOD.cpp new file mode 100644 index 000000000..ee490a39e --- /dev/null +++ b/src/osgWrappers/introspection/osg/PagedLOD.cpp @@ -0,0 +1,324 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::PagedLOD::PerRangeData >, osg::PagedLOD::PerRangeDataList) + +BEGIN_OBJECT_REFLECTOR(osg::PagedLOD) + I_DeclaringFile("osg/PagedLOD"); + I_BaseType(osg::LOD); + I_Constructor0(____PagedLOD, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PagedLOD &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PagedLOD__C5_PagedLOD_R1__C5_CopyOp_R1, + "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 &, x, + 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, setDatabaseOptions, IN, osg::Referenced *, options, + Properties::NON_VIRTUAL, + __void__setDatabaseOptions__osg_Referenced_P1, + "Set the optional database osgDB::Options object to use when loaded children. ", + ""); + I_Method0(osg::Referenced *, getDatabaseOptions, + Properties::NON_VIRTUAL, + __osg_Referenced_P1__getDatabaseOptions, + "Get the optional database osgDB::Options object used when loaded children. ", + ""); + I_Method0(const osg::Referenced *, getDatabaseOptions, + Properties::NON_VIRTUAL, + __C5_osg_Referenced_P1__getDatabaseOptions, + "Get the optional database osgDB::Options object used when loaded children. ", + ""); + 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_Method2(void, setFrameNumber, IN, unsigned int, childNo, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __void__setFrameNumber__unsigned_int__int, + "", + ""); + I_Method1(double, getFrameNumber, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __double__getFrameNumber__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumFrameNumbers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrameNumbers, + "", + ""); + I_Method1(osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int, + "Return the DatabaseRequest object used by the DatabasePager to keep track of file load requests being carried on behalf of the DatabasePager. ", + "Note, in normal OSG usage you should not set this value yourself, as this will be managed by the osgDB::DatabasePager. "); + I_Method1(const osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int, + "Return the const DatabaseRequest object. ", + ""); + 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_Method1(void, setDisableExternalChildrenPaging, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDisableExternalChildrenPaging__bool, + "Set wether you want to disable the paging in of external nodes. ", + ""); + I_Method0(bool, getDisableExternalChildrenPaging, + Properties::NON_VIRTUAL, + __bool__getDisableExternalChildrenPaging, + "", + ""); + I_Method3(bool, removeExpiredChildren, IN, double, expiryTime, IN, int, expiryFrame, IN, osg::NodeList &, removedChildren, + Properties::VIRTUAL, + __bool__removeExpiredChildren__double__int__NodeList_R1, + "Remove the children from the PagedLOD which haven't been visited since specified expiry time and expiry frame number. ", + "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. "); + I_Method2(bool, releaseGLObjectsOnExpiredChildren, IN, double, releaseTime, IN, int, releaseFrame, + Properties::VIRTUAL, + __bool__releaseGLObjectsOnExpiredChildren__double__int, + "Release the GL Objects of the children from the PagedLOD which haven't been visited since specified expiry time and expiry frame number. ", + "Return true if any children have release called upon them, false otherwise. "); + I_ProtectedMethod1(void, expandPerRangeDataTo, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__expandPerRangeDataTo__unsigned_int, + "", + ""); + I_SimpleProperty(osg::Referenced *, DatabaseOptions, + __osg_Referenced_P1__getDatabaseOptions, + __void__setDatabaseOptions__osg_Referenced_P1); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_SimpleProperty(bool, DisableExternalChildrenPaging, + __bool__getDisableExternalChildrenPaging, + __void__setDisableExternalChildrenPaging__bool); + I_ArrayProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + __unsigned_int__getNumFileNames, + 0, + 0, + 0); + I_ArrayProperty(double, FrameNumber, + __double__getFrameNumber__unsigned_int, + 0, + __unsigned_int__getNumFrameNumbers, + 0, + 0, + 0); + I_SimpleProperty(int, FrameNumberOfLastTraversal, + __int__getFrameNumberOfLastTraversal, + __void__setFrameNumberOfLastTraversal__int); + I_SimpleProperty(unsigned int, NumChildrenThatCannotBeExpired, + 0, + __void__setNumChildrenThatCannotBeExpired__unsigned_int); + I_ArrayProperty(float, PriorityOffset, + __float__getPriorityOffset__unsigned_int, + __void__setPriorityOffset__unsigned_int__float, + __unsigned_int__getNumPriorityOffsets, + 0, + 0, + 0); + I_ArrayProperty(float, PriorityScale, + __float__getPriorityScale__unsigned_int, + __void__setPriorityScale__unsigned_int__float, + __unsigned_int__getNumPriorityScales, + 0, + 0, + 0); + I_ArrayProperty(double, TimeStamp, + __double__getTimeStamp__unsigned_int, + __void__setTimeStamp__unsigned_int__double, + __unsigned_int__getNumTimeStamps, + 0, + 0, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::PagedLOD::PerRangeData) + I_DeclaringFile("osg/PagedLOD"); + I_Constructor0(____PerRangeData, + "", + ""); + I_Constructor1(IN, const osg::PagedLOD::PerRangeData &, prd, + Properties::NON_EXPLICIT, + ____PerRangeData__C5_PerRangeData_R1, + "", + ""); + I_PublicMemberProperty(std::string, _filename); + I_PublicMemberProperty(float, _priorityOffset); + I_PublicMemberProperty(float, _priorityScale); + I_PublicMemberProperty(double, _timeStamp); + I_PublicMemberProperty(int, _frameNumber); + I_PublicMemberProperty(int, _frameNumberOfLastReleaseGLObjects); + I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, _databaseRequest); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::PagedLOD::PerRangeData >) + diff --git a/src/osgWrappers/introspection/osg/Plane.cpp b/src/osgWrappers/introspection/osg/Plane.cpp new file mode 100644 index 000000000..2ff7d955d --- /dev/null +++ b/src/osgWrappers/introspection/osg/Plane.cpp @@ -0,0 +1,214 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(double, osg::Plane::value_type) + +TYPE_NAME_ALIAS(osg::Vec3d, osg::Plane::Vec3_type) + +TYPE_NAME_ALIAS(osg::Vec4d, osg::Plane::Vec4_type) + +BEGIN_VALUE_REFLECTOR(osg::Plane) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Plane"); + I_Constructor0(____Plane, + "", + ""); + I_Constructor1(IN, const osg::Plane &, pl, + Properties::NON_EXPLICIT, + ____Plane__C5_Plane_R1, + "", + ""); + I_Constructor4(IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + ____Plane__value_type__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, osg::Plane::value_type, d, + ____Plane__C5_Vec3_type_R1__value_type, + "", + ""); + I_Constructor3(IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + 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::Vec3f > &, vertices, + Properties::NON_VIRTUAL, + __int__intersect__C5_std_vectorT1_Vec3f__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 std::vector< osg::Vec3d > &, vertices, + Properties::NON_VIRTUAL, + __int__intersect__C5_std_vectorT1_Vec3d__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. "); + I_SimpleProperty(osg::Plane::Vec3_type, Normal, + __Vec3_type__getNormal, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec3d >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec3f >) + diff --git a/src/osgWrappers/introspection/osg/Point.cpp b/src/osgWrappers/introspection/osg/Point.cpp new file mode 100644 index 000000000..7922d3361 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Point.cpp @@ -0,0 +1,165 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Point) + I_DeclaringFile("osg/Point"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Point, + "", + ""); + I_Constructor1(IN, float, size, + Properties::NON_EXPLICIT, + ____Point__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Extensions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec3 &, DistanceAttenuation, + __C5_Vec3_R1__getDistanceAttenuation, + __void__setDistanceAttenuation__C5_Vec3_R1); + I_SimpleProperty(float, FadeThresholdSize, + __float__getFadeThresholdSize, + __void__setFadeThresholdSize__float); + I_SimpleProperty(float, MaxSize, + __float__getMaxSize, + __void__setMaxSize__float); + I_SimpleProperty(float, MinSize, + __float__getMinSize, + __void__setMinSize__float); + I_SimpleProperty(float, Size, + __float__getSize, + __void__setSize__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/PointSprite.cpp b/src/osgWrappers/introspection/osg/PointSprite.cpp new file mode 100644 index 000000000..c2814269a --- /dev/null +++ b/src/osgWrappers/introspection/osg/PointSprite.cpp @@ -0,0 +1,119 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::PointSprite::CoordOriginMode) + I_DeclaringFile("osg/PointSprite"); + I_EnumLabel(osg::PointSprite::UPPER_LEFT); + I_EnumLabel(osg::PointSprite::LOWER_LEFT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PointSprite) + I_DeclaringFile("osg/PointSprite"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____PointSprite, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PointSprite &, ps, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PointSprite__C5_PointSprite_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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__StateAttribute_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_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 &, x, + 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, + "", + ""); + I_StaticMethod1(bool, isPointSpriteSupported, IN, unsigned int, context, + __bool__isPointSpriteSupported__unsigned_int_S, + "", + ""); + I_SimpleProperty(osg::PointSprite::CoordOriginMode, CoordOriginMode, + __CoordOriginMode__getCoordOriginMode, + __void__setCoordOriginMode__CoordOriginMode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/PolygonMode.cpp b/src/osgWrappers/introspection/osg/PolygonMode.cpp new file mode 100644 index 000000000..af1fda549 --- /dev/null +++ b/src/osgWrappers/introspection/osg/PolygonMode.cpp @@ -0,0 +1,121 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Mode) + I_DeclaringFile("osg/PolygonMode"); + I_EnumLabel(osg::PolygonMode::POINT); + I_EnumLabel(osg::PolygonMode::LINE); + I_EnumLabel(osg::PolygonMode::FILL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PolygonMode::Face) + I_DeclaringFile("osg/PolygonMode"); + I_EnumLabel(osg::PolygonMode::FRONT_AND_BACK); + I_EnumLabel(osg::PolygonMode::FRONT); + I_EnumLabel(osg::PolygonMode::BACK); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::PolygonMode) + I_DeclaringFile("osg/PolygonMode"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____PolygonMode, + "", + ""); + I_Constructor2(IN, osg::PolygonMode::Face, face, IN, osg::PolygonMode::Mode, mode, + ____PolygonMode__Face__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonMode &, pm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonMode__C5_PolygonMode_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(bool, FrontAndBack, + __bool__getFrontAndBack, + 0); + I_IndexedProperty(osg::PolygonMode::Mode, Mode, + __Mode__getMode__Face, + __void__setMode__Face__Mode, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/PolygonOffset.cpp b/src/osgWrappers/introspection/osg/PolygonOffset.cpp new file mode 100644 index 000000000..36b411ad2 --- /dev/null +++ b/src/osgWrappers/introspection/osg/PolygonOffset.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::PolygonOffset) + I_DeclaringFile("osg/PolygonOffset"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____PolygonOffset, + "", + ""); + I_Constructor2(IN, float, factor, IN, float, units, + ____PolygonOffset__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonOffset &, po, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonOffset__C5_PolygonOffset_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_StaticMethod1(void, setFactorMultiplier, IN, float, multiplier, + __void__setFactorMultiplier__float_S, + "", + ""); + I_StaticMethod0(float, getFactorMultiplier, + __float__getFactorMultiplier_S, + "", + ""); + I_StaticMethod1(void, setUnitsMultiplier, IN, float, multiplier, + __void__setUnitsMultiplier__float_S, + "", + ""); + I_StaticMethod0(float, getUnitsMultiplier, + __float__getUnitsMultiplier_S, + "", + ""); + I_StaticMethod0(bool, areFactorAndUnitsMultipliersSet, + __bool__areFactorAndUnitsMultipliersSet_S, + "", + ""); + I_StaticMethod0(void, setFactorAndUnitsMultipliersUsingBestGuessForDriver, + __void__setFactorAndUnitsMultipliersUsingBestGuessForDriver_S, + "Checks with the OpenGL driver to try and pick multiplier appropriate for the hardware. ", + "note, requires a valid graphics context to be current. "); + I_SimpleProperty(float, Factor, + __float__getFactor, + __void__setFactor__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(float, Units, + __float__getUnits, + __void__setUnits__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/PolygonStipple.cpp b/src/osgWrappers/introspection/osg/PolygonStipple.cpp new file mode 100644 index 000000000..0d20d5acc --- /dev/null +++ b/src/osgWrappers/introspection/osg/PolygonStipple.cpp @@ -0,0 +1,104 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::PolygonStipple) + I_DeclaringFile("osg/PolygonStipple"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____PolygonStipple, + "", + ""); + I_Constructor1(IN, const GLubyte *, mask, + Properties::NON_EXPLICIT, + ____PolygonStipple__C5_GLubyte_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PolygonStipple &, lw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PolygonStipple__C5_PolygonStipple_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(const GLubyte *, Mask, + __C5_GLubyte_P1__getMask, + __void__setMask__C5_GLubyte_P1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Polytope.cpp b/src/osgWrappers/introspection/osg/Polytope.cpp new file mode 100644 index 000000000..0071f53c7 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Polytope.cpp @@ -0,0 +1,282 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(unsigned int, osg::Polytope::ClippingMask) + +TYPE_NAME_ALIAS(std::vector< osg::Plane >, osg::Polytope::PlaneList) + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osg::Polytope::VertexList) + +TYPE_NAME_ALIAS(osg::fast_back_stack< osg::Polytope::ClippingMask >, osg::Polytope::MaskStack) + +BEGIN_VALUE_REFLECTOR(osg::Polytope) + I_DeclaringFile("osg/Polytope"); + I_Constructor0(____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_Method1(void, setToBoundingBox, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __void__setToBoundingBox__C5_BoundingBox_R1, + "Create a Polytope which is a equivalent to BoundingBox. ", + ""); + 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. "); + I_SimpleProperty(osg::Polytope::ClippingMask, CurrentMask, + __ClippingMask__getCurrentMask, + 0); + I_SimpleProperty(osg::Polytope::MaskStack &, MaskStack, + __MaskStack_R1__getMaskStack, + 0); + I_SimpleProperty(osg::Polytope::PlaneList &, PlaneList, + __PlaneList_R1__getPlaneList, + 0); + I_SimpleProperty(osg::Polytope::VertexList &, ReferenceVertexList, + __VertexList_R1__getReferenceVertexList, + __void__setReferenceVertexList__VertexList_R1); + I_SimpleProperty(osg::Polytope::ClippingMask, ResultMask, + __ClippingMask__getResultMask, + __void__setResultMask__ClippingMask); + I_SimpleProperty(const osg::BoundingBox &, ToBoundingBox, + 0, + __void__setToBoundingBox__C5_BoundingBox_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::fast_back_stack< osg::Polytope::ClippingMask >) + I_DeclaringFile("osg/fast_back_stack"); + I_Constructor0(____fast_back_stack, + "", + ""); + 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, + "", + ""); + I_PublicMemberProperty(osg::Polytope::ClippingMask, _value); + I_PublicMemberProperty(std::vector< osg::Polytope::ClippingMask >, _stack); + I_PublicMemberProperty(unsigned int, _size); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Plane >) + diff --git a/src/osgWrappers/introspection/osg/PositionAttitudeTransform.cpp b/src/osgWrappers/introspection/osg/PositionAttitudeTransform.cpp new file mode 100644 index 000000000..d4bd0f34d --- /dev/null +++ b/src/osgWrappers/introspection/osg/PositionAttitudeTransform.cpp @@ -0,0 +1,142 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::PositionAttitudeTransform) + I_DeclaringFile("osg/PositionAttitudeTransform"); + I_BaseType(osg::Transform); + I_Constructor0(____PositionAttitudeTransform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PositionAttitudeTransform &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PositionAttitudeTransform__C5_PositionAttitudeTransform_R1__C5_CopyOp_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::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, + "", + ""); + I_SimpleProperty(const osg::Quat &, Attitude, + __C5_Quat_R1__getAttitude, + __void__setAttitude__C5_Quat_R1); + I_SimpleProperty(const osg::Vec3d &, PivotPoint, + __C5_Vec3d_R1__getPivotPoint, + __void__setPivotPoint__C5_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_Vec3d_R1__getPosition, + __void__setPosition__C5_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Scale, + __C5_Vec3d_R1__getScale, + __void__setScale__C5_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/PrimitiveSet.cpp b/src/osgWrappers/introspection/osg/PrimitiveSet.cpp new file mode 100644 index 000000000..1de2a8606 --- /dev/null +++ b/src/osgWrappers/introspection/osg/PrimitiveSet.cpp @@ -0,0 +1,541 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::VectorGLsizei, osg::DrawArrayLengths::vector_type) + +BEGIN_OBJECT_REFLECTOR(osg::DrawArrays) + I_DeclaringFile("osg/PrimitiveSet"); + I_BaseType(osg::PrimitiveSet); + I_ConstructorWithDefaults1(IN, GLenum, mode, 0, + Properties::NON_EXPLICIT, + ____DrawArrays__GLenum, + "", + ""); + I_ConstructorWithDefaults4(IN, GLenum, mode, , IN, GLint, first, , IN, GLsizei, count, , IN, int, numInstances, 0, + ____DrawArrays__GLenum__GLint__GLsizei__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawArrays &, da, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawArrays__C5_DrawArrays_R1__C5_CopyOp_R1, + "", + ""); + 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. "); + 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, + "", + ""); + I_SimpleProperty(GLsizei, Count, + __GLsizei__getCount, + __void__setCount__GLsizei); + I_SimpleProperty(GLint, First, + __GLint__getFirst, + __void__setFirst__GLint); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::DrawElements) + I_DeclaringFile("osg/PrimitiveSet"); + I_BaseType(osg::PrimitiveSet); + I_ConstructorWithDefaults3(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, IN, int, numInstances, 0, + ____DrawElements__Type__GLenum__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::DrawElements &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DrawElements__C5_DrawElements_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::DrawElements *, getDrawElements, + Properties::VIRTUAL, + __DrawElements_P1__getDrawElements, + "", + ""); + I_Method0(const osg::DrawElements *, getDrawElements, + Properties::VIRTUAL, + __C5_DrawElements_P1__getDrawElements, + "", + ""); + I_Method1(void, setElementBufferObject, IN, osg::ElementBufferObject *, ebo, + Properties::NON_VIRTUAL, + __void__setElementBufferObject__osg_ElementBufferObject_P1, + "Set the ElementBufferObject. ", + ""); + I_Method0(osg::ElementBufferObject *, getElementBufferObject, + Properties::NON_VIRTUAL, + __osg_ElementBufferObject_P1__getElementBufferObject, + "Get the ElementBufferObject. ", + "If no EBO is assigned returns NULL "); + I_Method0(const osg::ElementBufferObject *, getElementBufferObject, + Properties::NON_VIRTUAL, + __C5_osg_ElementBufferObject_P1__getElementBufferObject, + "Get the const ElementBufferObject. ", + "If no EBO is assigned returns NULL "); + I_Method1(void, reserveElements, IN, unsigned int, numIndices, + Properties::PURE_VIRTUAL, + __void__reserveElements__unsigned_int, + "", + ""); + I_Method2(void, setElement, IN, unsigned, int, IN, unsigned, int, + Properties::PURE_VIRTUAL, + __void__setElement__unsigned__unsigned, + "", + ""); + I_Method1(unsigned int, getElement, IN, unsigned, int, + Properties::PURE_VIRTUAL, + __unsigned_int__getElement__unsigned, + "", + ""); + I_Method1(void, addElement, IN, unsigned, int, + Properties::PURE_VIRTUAL, + __void__addElement__unsigned, + "", + ""); + I_SimpleProperty(osg::DrawElements *, DrawElements, + __DrawElements_P1__getDrawElements, + 0); + I_SimpleProperty(osg::ElementBufferObject *, ElementBufferObject, + __osg_ElementBufferObject_P1__getElementBufferObject, + __void__setElementBufferObject__osg_ElementBufferObject_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::VectorGLubyte, osg::DrawElementsUByte::vector_type) + +TYPE_NAME_ALIAS(osg::VectorGLuint, osg::DrawElementsUInt::vector_type) + +TYPE_NAME_ALIAS(osg::VectorGLushort, osg::DrawElementsUShort::vector_type) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveFunctor) + I_DeclaringFile("osg/PrimitiveSet"); + I_Constructor0(____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_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec2d_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::Vec3d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec3d_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::Vec4d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec4d_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. ", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveIndexFunctor) + I_DeclaringFile("osg/PrimitiveSet"); + I_Constructor0(____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_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec2d_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec3d_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4d *, vertices, + Properties::PURE_VIRTUAL, + __void__setVertexArray__unsigned_int__C5_Vec4d_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, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Type) + I_DeclaringFile("osg/PrimitiveSet"); + I_EnumLabel(osg::PrimitiveSet::PrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawArraysPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawArrayLengthsPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUBytePrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUShortPrimitiveType); + I_EnumLabel(osg::PrimitiveSet::DrawElementsUIntPrimitiveType); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::PrimitiveSet::Mode) + I_DeclaringFile("osg/PrimitiveSet"); + I_EnumLabel(osg::PrimitiveSet::POINTS); + I_EnumLabel(osg::PrimitiveSet::LINES); + I_EnumLabel(osg::PrimitiveSet::LINE_STRIP); + I_EnumLabel(osg::PrimitiveSet::LINE_LOOP); + I_EnumLabel(osg::PrimitiveSet::TRIANGLES); + I_EnumLabel(osg::PrimitiveSet::TRIANGLE_STRIP); + I_EnumLabel(osg::PrimitiveSet::TRIANGLE_FAN); + I_EnumLabel(osg::PrimitiveSet::QUADS); + I_EnumLabel(osg::PrimitiveSet::QUAD_STRIP); + I_EnumLabel(osg::PrimitiveSet::POLYGON); + I_EnumLabel(osg::PrimitiveSet::LINES_ADJACENCY); + I_EnumLabel(osg::PrimitiveSet::LINE_STRIP_ADJACENCY); + I_EnumLabel(osg::PrimitiveSet::TRIANGLES_ADJACENCY); + I_EnumLabel(osg::PrimitiveSet::TRIANGLE_STRIP_ADJECENCY); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::PrimitiveSet) + I_DeclaringFile("osg/PrimitiveSet"); + I_BaseType(osg::BufferData); + I_ConstructorWithDefaults3(IN, osg::PrimitiveSet::Type, primType, osg::PrimitiveSet::PrimitiveType, IN, GLenum, mode, 0, IN, int, numInstances, 0, + ____PrimitiveSet__Type__GLenum__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::PrimitiveSet &, prim, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrimitiveSet__C5_PrimitiveSet_R1__C5_CopyOp_R1, + "", + ""); + 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_Method0(osg::DrawElements *, getDrawElements, + Properties::VIRTUAL, + __DrawElements_P1__getDrawElements, + "", + ""); + I_Method0(const osg::DrawElements *, getDrawElements, + Properties::VIRTUAL, + __C5_DrawElements_P1__getDrawElements, + "", + ""); + I_Method1(void, setNumInstances, IN, int, n, + Properties::NON_VIRTUAL, + __void__setNumInstances__int, + "", + ""); + I_Method0(int, getNumInstances, + Properties::NON_VIRTUAL, + __int__getNumInstances, + "", + ""); + 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, computeRange, + Properties::VIRTUAL, + __void__computeRange, + "", + ""); + I_SimpleProperty(const GLvoid *, DataPointer, + __C5_GLvoid_P1__getDataPointer, + 0); + I_SimpleProperty(osg::DrawElements *, DrawElements, + __DrawElements_P1__getDrawElements, + 0); + I_SimpleProperty(GLenum, Mode, + __GLenum__getMode, + __void__setMode__GLenum); + I_SimpleProperty(int, NumInstances, + 0, + __void__setNumInstances__int); + I_SimpleProperty(unsigned int, TotalDataSize, + __unsigned_int__getTotalDataSize, + 0); + I_SimpleProperty(osg::PrimitiveSet::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Program.cpp b/src/osgWrappers/introspection/osg/Program.cpp new file mode 100644 index 000000000..38e103db5 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Program.cpp @@ -0,0 +1,352 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< std::string COMMA GLuint >, osg::Program::AttribBindingList) + +TYPE_NAME_ALIAS(std::map< std::string COMMA GLuint >, osg::Program::FragDataBindingList) + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::Program::ActiveVarInfo >, osg::Program::ActiveVarInfoMap) + +BEGIN_OBJECT_REFLECTOR(osg::Program) + I_DeclaringFile("osg/Program"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Program, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Program &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Program__C5_Program_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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, setParameter, IN, GLenum, pname, IN, GLint, value, + Properties::NON_VIRTUAL, + __void__setParameter__GLenum__GLint, + "Set/get GL program parameters. ", + ""); + I_Method1(GLint, getParameter, IN, GLenum, pname, + Properties::NON_VIRTUAL, + __GLint__getParameter__GLenum, + "", + ""); + 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, + "Remove an attribute location binding. ", + ""); + I_Method2(void, addBindFragDataLocation, IN, const std::string &, name, IN, GLuint, index, + Properties::NON_VIRTUAL, + __void__addBindFragDataLocation__C5_std_string_R1__GLuint, + "Add an frag data location binding. ", + "See EXT_gpu_shader4 for BindFragDataLocationEXT "); + I_Method1(void, removeBindFragDataLocation, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeBindFragDataLocation__C5_std_string_R1, + "Remove an frag data location binding. ", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttribBindingList, + Properties::NON_VIRTUAL, + __C5_AttribBindingList_R1__getAttribBindingList, + "", + ""); + I_Method0(const osg::Program::FragDataBindingList &, getFragDataBindingList, + Properties::NON_VIRTUAL, + __C5_FragDataBindingList_R1__getFragDataBindingList, + "", + ""); + 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. ", + ""); + I_StaticMethod2(void, deleteGlProgram, IN, unsigned int, contextID, IN, GLuint, program, + __void__deleteGlProgram__unsigned_int__GLuint_S, + "Mark internal glProgram for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedGlPrograms, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedGlPrograms__unsigned_int__double__double_R1_S, + "flush all the cached glPrograms which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedGlPrograms, IN, unsigned int, contextID, + __void__discardDeletedGlPrograms__unsigned_int_S, + "discard all the cached glPrograms which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_SimpleProperty(const osg::Program::AttribBindingList &, AttribBindingList, + __C5_AttribBindingList_R1__getAttribBindingList, + 0); + I_SimpleProperty(const osg::Program::FragDataBindingList &, FragDataBindingList, + __C5_FragDataBindingList_R1__getFragDataBindingList, + 0); + I_IndexedProperty(GLint, Parameter, + __GLint__getParameter__GLenum, + __void__setParameter__GLenum__GLint, + 0); + I_ArrayProperty(osg::Shader *, Shader, + __Shader_P1__getShader__unsigned_int, + 0, + __unsigned_int__getNumShaders, + __bool__addShader__Shader_P1, + 0, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Program::ActiveVarInfo) + I_DeclaringFile("osg/Program"); + I_Constructor0(____ActiveVarInfo, + "", + ""); + I_Constructor3(IN, GLint, loc, IN, GLenum, type, IN, GLint, size, + ____ActiveVarInfo__GLint__GLenum__GLint, + "", + ""); + I_PublicMemberProperty(GLint, _location); + I_PublicMemberProperty(GLenum, _type); + I_PublicMemberProperty(GLint, _size); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Program::PerContextProgram) + I_DeclaringFile("osg/Program"); + 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_Method1(void, linkProgram, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__linkProgram__osg_State_R1, + "", + ""); + 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, + "", + ""); + I_Method1(void, addShaderToAttach, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__addShaderToAttach__Shader_P1, + "", + ""); + I_Method1(void, addShaderToDetach, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__addShaderToDetach__Shader_P1, + "", + ""); + I_SimpleProperty(const osg::Program::ActiveVarInfoMap &, ActiveAttribs, + __C5_ActiveVarInfoMap_R1__getActiveAttribs, + 0); + I_SimpleProperty(const osg::Program::ActiveVarInfoMap &, ActiveUniforms, + __C5_ActiveVarInfoMap_R1__getActiveUniforms, + 0); + I_SimpleProperty(GLuint, Handle, + __GLuint__getHandle, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA GLuint >) + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::Program::ActiveVarInfo >) + diff --git a/src/osgWrappers/introspection/osg/Projection.cpp b/src/osgWrappers/introspection/osg/Projection.cpp new file mode 100644 index 000000000..09a5b0798 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Projection.cpp @@ -0,0 +1,96 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Projection) + I_DeclaringFile("osg/Projection"); + I_BaseType(osg::Group); + I_Constructor0(____Projection, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Projection &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Projection__C5_Projection_R1__C5_CopyOp_R1, + "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. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ProxyNode.cpp b/src/osgWrappers/introspection/osg/ProxyNode.cpp new file mode 100644 index 000000000..2e457de1a --- /dev/null +++ b/src/osgWrappers/introspection/osg/ProxyNode.cpp @@ -0,0 +1,234 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ProxyNode::CenterMode) + I_DeclaringFile("osg/ProxyNode"); + I_EnumLabel(osg::ProxyNode::USE_BOUNDING_SPHERE_CENTER); + I_EnumLabel(osg::ProxyNode::USER_DEFINED_CENTER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::ProxyNode::LoadingExternalReferenceMode) + I_DeclaringFile("osg/ProxyNode"); + I_EnumLabel(osg::ProxyNode::LOAD_IMMEDIATELY); + I_EnumLabel(osg::ProxyNode::DEFER_LOADING_TO_DATABASE_PAGER); + I_EnumLabel(osg::ProxyNode::NO_AUTOMATIC_LOADING); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::BoundingSphere::vec_type, osg::ProxyNode::vec_type) + +TYPE_NAME_ALIAS(osg::BoundingSphere::value_type, osg::ProxyNode::value_type) + +BEGIN_OBJECT_REFLECTOR(osg::ProxyNode) + I_DeclaringFile("osg/ProxyNode"); + I_BaseType(osg::Group); + I_Constructor0(____ProxyNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ProxyNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProxyNode__C5_ProxyNode_R1__C5_CopyOp_R1, + "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 &, x, + 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, setDatabaseOptions, IN, osg::Referenced *, options, + Properties::NON_VIRTUAL, + __void__setDatabaseOptions__osg_Referenced_P1, + "Set the optional database osgDB::Options object to use when loaded children. ", + ""); + I_Method0(osg::Referenced *, getDatabaseOptions, + Properties::NON_VIRTUAL, + __osg_Referenced_P1__getDatabaseOptions, + "Get the optional database osgDB::Options object used when loaded children. ", + ""); + I_Method0(const osg::Referenced *, getDatabaseOptions, + Properties::NON_VIRTUAL, + __C5_osg_Referenced_P1__getDatabaseOptions, + "Get the optional database osgDB::Options object used when loaded children. ", + ""); + 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(osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int, + "Return the DatabaseRequest object used by the DatabasePager to keep track of file load requests being carried on behalf of the DatabasePager. ", + "Note, in normal OSG usage you should not set this value yourself, as this will be managed by the osgDB::DatabasePager. "); + I_Method1(const osg::ref_ptr< osg::Referenced > &, getDatabaseRequest, IN, unsigned int, childNo, + Properties::NON_VIRTUAL, + __C5_osg_ref_ptrT1_osg_Referenced__R1__getDatabaseRequest__unsigned_int, + "Return the const DatabaseRequest object. ", + ""); + 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, setLoadingExternalReferenceMode, IN, osg::ProxyNode::LoadingExternalReferenceMode, mode, + Properties::NON_VIRTUAL, + __void__setLoadingExternalReferenceMode__LoadingExternalReferenceMode, + "Set how the child loading is done. ", + ""); + I_Method0(osg::ProxyNode::LoadingExternalReferenceMode, getLoadingExternalReferenceMode, + Properties::NON_VIRTUAL, + __LoadingExternalReferenceMode__getLoadingExternalReferenceMode, + "Get the setted mode of loading. ", + ""); + 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::ProxyNode::vec_type &, getCenter, + Properties::NON_VIRTUAL, + __C5_vec_type_R1__getCenter, + "return the ProxyNode center point. ", + ""); + I_Method1(void, setRadius, IN, osg::ProxyNode::value_type, radius, + Properties::NON_VIRTUAL, + __void__setRadius__value_type, + "Set the object-space reference radius of the volume enclosed by the ProxyNode. ", + "Used to determine the bounding sphere of the ProxyNode in the absence of any children. "); + I_Method0(osg::ProxyNode::value_type, getRadius, + Properties::NON_VIRTUAL, + __value_type__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(). "); + I_ProtectedMethod1(void, expandFileNameListTo, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__expandFileNameListTo__unsigned_int, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + 0, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(osg::ProxyNode::CenterMode, CenterMode, + __CenterMode__getCenterMode, + __void__setCenterMode__CenterMode); + I_SimpleProperty(osg::Referenced *, DatabaseOptions, + __osg_Referenced_P1__getDatabaseOptions, + __void__setDatabaseOptions__osg_Referenced_P1); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_ArrayProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + __unsigned_int__getNumFileNames, + 0, + 0, + 0); + I_SimpleProperty(osg::ProxyNode::LoadingExternalReferenceMode, LoadingExternalReferenceMode, + __LoadingExternalReferenceMode__getLoadingExternalReferenceMode, + __void__setLoadingExternalReferenceMode__LoadingExternalReferenceMode); + I_SimpleProperty(osg::ProxyNode::value_type, Radius, + __value_type__getRadius, + __void__setRadius__value_type); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Quat.cpp b/src/osgWrappers/introspection/osg/Quat.cpp new file mode 100644 index 000000000..79e5df94f --- /dev/null +++ b/src/osgWrappers/introspection/osg/Quat.cpp @@ -0,0 +1,241 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(double, osg::Quat::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Quat) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Quat"); + I_Constructor0(____Quat, + "", + ""); + I_Constructor4(IN, osg::Quat::value_type, x, IN, osg::Quat::value_type, y, IN, osg::Quat::value_type, z, IN, osg::Quat::value_type, w, + ____Quat__value_type__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); + I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3f &, axis, + ____Quat__value_type__C5_Vec3f_R1, + "", + ""); + I_Constructor2(IN, osg::Quat::value_type, angle, IN, const osg::Vec3d &, axis, + ____Quat__value_type__C5_Vec3d_R1, + "", + ""); + I_Constructor6(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, + ____Quat__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1__value_type__C5_Vec3f_R1, + "", + ""); + I_Constructor6(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, + ____Quat__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1__value_type__C5_Vec3d_R1, + "", + ""); + 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\". "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Referenced.cpp b/src/osgWrappers/introspection/osg/Referenced.cpp new file mode 100644 index 000000000..395d4c809 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Referenced.cpp @@ -0,0 +1,119 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Referenced) + I_DeclaringFile("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(OpenThreads::Mutex *, getRefMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getRefMutex, + "Get the mutex used to ensure thread safety of ref()/unref(). ", + ""); + 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 responsible 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 observing 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 observing this object, notify the Observer when this object gets deleted. ", + ""); + I_StaticMethod0(OpenThreads::Mutex *, getGlobalReferencedMutex, + __OpenThreads_Mutex_P1__getGlobalReferencedMutex_S, + "Get the optional global Referenced mutex, this can be shared between all osg::Referenced. ", + ""); + I_StaticMethod1(void, setThreadSafeReferenceCounting, IN, bool, enableThreadSafeReferenceCounting, + __void__setThreadSafeReferenceCounting__bool_S, + "Set whether reference counting should be use a mutex to create thread reference counting. ", + ""); + I_StaticMethod0(bool, getThreadSafeReferenceCounting, + __bool__getThreadSafeReferenceCounting_S, + "Get whether reference counting is active. ", + ""); + I_StaticMethod1(void, setDeleteHandler, IN, osg::DeleteHandler *, handler, + __void__setDeleteHandler__DeleteHandler_P1_S, + "Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. ", + ""); + I_StaticMethod0(osg::DeleteHandler *, getDeleteHandler, + __DeleteHandler_P1__getDeleteHandler_S, + "Get a DeleteHandler. ", + ""); + I_ProtectedMethod0(void, deleteUsingDeleteHandler, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__deleteUsingDeleteHandler, + "", + ""); + I_SimpleProperty(OpenThreads::Mutex *, RefMutex, + __OpenThreads_Mutex_P1__getRefMutex, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + __bool__getThreadSafeRefUnref, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/RenderInfo.cpp b/src/osgWrappers/introspection/osg/RenderInfo.cpp new file mode 100644 index 000000000..88bc427a9 --- /dev/null +++ b/src/osgWrappers/introspection/osg/RenderInfo.cpp @@ -0,0 +1,122 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::RenderInfo) + I_DeclaringFile("osg/RenderInfo"); + I_Constructor0(____RenderInfo, + "", + ""); + I_Constructor1(IN, const osg::RenderInfo &, rhs, + Properties::NON_EXPLICIT, + ____RenderInfo__C5_RenderInfo_R1, + "", + ""); + I_Constructor2(IN, osg::State *, state, IN, osg::View *, view, + ____RenderInfo__State_P1__View_P1, + "", + ""); + 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, pushCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__pushCamera__Camera_P1, + "", + ""); + I_Method0(void, popCamera, + Properties::NON_VIRTUAL, + __void__popCamera, + "", + ""); + I_Method0(osg::Camera *, getCurrentCamera, + Properties::NON_VIRTUAL, + __Camera_P1__getCurrentCamera, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + 0); + I_SimpleProperty(osg::Camera *, CurrentCamera, + __Camera_P1__getCurrentCamera, + 0); + I_SimpleProperty(osg::State *, State, + __State_P1__getState, + __void__setState__State_P1); + I_SimpleProperty(osg::Referenced *, UserData, + __Referenced_P1__getUserData, + __void__setUserData__Referenced_P1); + I_SimpleProperty(osg::View *, View, + __View_P1__getView, + __void__setView__View_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Scissor.cpp b/src/osgWrappers/introspection/osg/Scissor.cpp new file mode 100644 index 000000000..50c8a425e --- /dev/null +++ b/src/osgWrappers/introspection/osg/Scissor.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Scissor) + I_DeclaringFile("osg/Scissor"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Scissor, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Scissor__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scissor__C5_Scissor_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Sequence.cpp b/src/osgWrappers/introspection/osg/Sequence.cpp new file mode 100644 index 000000000..059be755b --- /dev/null +++ b/src/osgWrappers/introspection/osg/Sequence.cpp @@ -0,0 +1,324 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Sequence::LoopMode) + I_DeclaringFile("osg/Sequence"); + I_EnumLabel(osg::Sequence::LOOP); + I_EnumLabel(osg::Sequence::SWING); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Sequence::SequenceMode) + I_DeclaringFile("osg/Sequence"); + I_EnumLabel(osg::Sequence::START); + I_EnumLabel(osg::Sequence::STOP); + I_EnumLabel(osg::Sequence::PAUSE); + I_EnumLabel(osg::Sequence::RESUME); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Sequence) + I_DeclaringFile("osg/Sequence"); + I_BaseType(osg::Group); + I_Constructor0(____Sequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Sequence &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sequence__C5_Sequence_R1__C5_CopyOp_R1, + "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 &, x, + 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, double, t, + Properties::VIRTUAL, + __bool__addChild__Node_P1__double, + "", + ""); + 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, double, t, + Properties::VIRTUAL, + __bool__insertChild__unsigned_int__Node_P1__double, + "", + ""); + I_Method1(bool, removeChild, IN, osg::Node *, child, + Properties::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_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, setValue, IN, int, value, + Properties::NON_VIRTUAL, + __void__setValue__int, + "value is which child node is to be displayed ", + ""); + I_Method0(int, getValue, + Properties::NON_VIRTUAL, + __int__getValue, + "", + ""); + I_Method2(void, setTime, IN, unsigned int, frame, IN, double, t, + Properties::NON_VIRTUAL, + __void__setTime__unsigned_int__double, + "Set time in seconds for child. ", + ""); + I_Method1(double, getTime, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __double__getTime__unsigned_int, + "Get time for child. ", + ""); + I_Method1(void, setTimeList, IN, const std::vector< double > &, timeList, + Properties::NON_VIRTUAL, + __void__setTimeList__C5_std_vectorT1_double__R1, + "Set the time list for children. ", + ""); + I_Method0(const std::vector< double > &, getTimeList, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_double__R1__getTimeList, + "Get the time list for children. ", + ""); + I_Method1(void, setDefaultTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setDefaultTime__double, + "Set default time in seconds for new child. ", + "if t<0, t=0 "); + I_Method0(double, getDefaultTime, + Properties::NON_VIRTUAL, + __double__getDefaultTime, + "Get default time in seconds for new child. ", + ""); + I_Method1(void, setLastFrameTime, IN, double, t, + Properties::NON_VIRTUAL, + __void__setLastFrameTime__double, + "Set time of last frame of last loop, in seconds. ", + "if t<= 0, then ignored "); + I_Method0(double, getLastFrameTime, + Properties::NON_VIRTUAL, + __double__getLastFrameTime, + "Get last frame time in seconds. ", + ""); + I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrames, + "Get number of frames. ", + ""); + I_Method1(void, setLoopMode, IN, osg::Sequence::LoopMode, mode, + Properties::NON_VIRTUAL, + __void__setLoopMode__LoopMode, + "Set sequence mode. ", + ""); + I_Method0(osg::Sequence::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, + __LoopMode__getLoopMode, + "Get sequence mode. ", + ""); + I_Method1(void, setBegin, IN, int, begin, + Properties::NON_VIRTUAL, + __void__setBegin__int, + "Set interval beginning. ", + ""); + I_Method0(int, getBegin, + Properties::NON_VIRTUAL, + __int__getBegin, + "Get interval beginning. ", + ""); + I_Method1(void, setEnd, IN, int, end, + Properties::NON_VIRTUAL, + __void__setEnd__int, + "Set interval ending. ", + ""); + I_Method0(int, getEnd, + Properties::NON_VIRTUAL, + __int__getEnd, + "Get interval ending. ", + ""); + 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_Method1(void, setSpeed, IN, float, speed, + Properties::NON_VIRTUAL, + __void__setSpeed__float, + "Set speed. ", + ""); + I_Method0(float, getSpeed, + Properties::NON_VIRTUAL, + __float__getSpeed, + "Get speed. ", + ""); + I_Method1(void, setNumRepeats, IN, int, nreps, + Properties::NON_VIRTUAL, + __void__setNumRepeats__int, + "Set number of repeats. ", + ""); + I_Method0(int, getNumRepeats, + Properties::NON_VIRTUAL, + __int__getNumRepeats, + "Get number of repeats. ", + ""); + 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. ", + ""); + I_Method1(void, setSync, IN, bool, sync, + Properties::NON_VIRTUAL, + __void__setSync__bool, + "If false (default), frames will not be sync'd to frameTime. ", + "If true, frames will be sync'd to frameTime. "); + I_Method0(bool, getSync, + Properties::NON_VIRTUAL, + __bool__getSync, + "Get sync value. ", + ""); + I_Method1(void, setClearOnStop, IN, bool, clearOnStop, + Properties::NON_VIRTUAL, + __void__setClearOnStop__bool, + "If true, show no child nodes after stopping. ", + ""); + I_Method0(bool, getClearOnStop, + Properties::NON_VIRTUAL, + __bool__getClearOnStop, + "Get whether to show no child nodes after stopping. ", + ""); + I_ProtectedMethod0(int, _getNextValue, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int___getNextValue, + "", + ""); + I_ProtectedMethod0(void, _update, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___update, + "", + ""); + I_SimpleProperty(int, Begin, + __int__getBegin, + __void__setBegin__int); + I_SimpleProperty(bool, ClearOnStop, + __bool__getClearOnStop, + __void__setClearOnStop__bool); + I_SimpleProperty(double, DefaultTime, + __double__getDefaultTime, + __void__setDefaultTime__double); + I_SimpleProperty(int, End, + __int__getEnd, + __void__setEnd__int); + I_SimpleProperty(double, LastFrameTime, + __double__getLastFrameTime, + __void__setLastFrameTime__double); + I_SimpleProperty(osg::Sequence::LoopMode, LoopMode, + __LoopMode__getLoopMode, + __void__setLoopMode__LoopMode); + I_SimpleProperty(osg::Sequence::SequenceMode, Mode, + __SequenceMode__getMode, + __void__setMode__SequenceMode); + I_SimpleProperty(int, NumRepeats, + 0, + __void__setNumRepeats__int); + I_SimpleProperty(float, Speed, + __float__getSpeed, + __void__setSpeed__float); + I_SimpleProperty(bool, Sync, + __bool__getSync, + __void__setSync__bool); + I_IndexedProperty(double, Time, + __double__getTime__unsigned_int, + __void__setTime__unsigned_int__double, + 0); + I_SimpleProperty(const std::vector< double > &, TimeList, + __C5_std_vectorT1_double__R1__getTimeList, + __void__setTimeList__C5_std_vectorT1_double__R1); + I_SimpleProperty(int, Value, + __int__getValue, + __void__setValue__int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ShadeModel.cpp b/src/osgWrappers/introspection/osg/ShadeModel.cpp new file mode 100644 index 000000000..a522dac69 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ShadeModel.cpp @@ -0,0 +1,102 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::ShadeModel::Mode) + I_DeclaringFile("osg/ShadeModel"); + I_EnumLabel(osg::ShadeModel::FLAT); + I_EnumLabel(osg::ShadeModel::SMOOTH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ShadeModel) + I_DeclaringFile("osg/ShadeModel"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::ShadeModel::Mode, mode, osg::ShadeModel::SMOOTH, + Properties::NON_EXPLICIT, + ____ShadeModel__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ShadeModel &, sm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadeModel__C5_ShadeModel_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(osg::ShadeModel::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Shader.cpp b/src/osgWrappers/introspection/osg/Shader.cpp new file mode 100644 index 000000000..b7705e33d --- /dev/null +++ b/src/osgWrappers/introspection/osg/Shader.cpp @@ -0,0 +1,290 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Shader::Type) + I_DeclaringFile("osg/Shader"); + I_EnumLabel(osg::Shader::VERTEX); + I_EnumLabel(osg::Shader::FRAGMENT); + I_EnumLabel(osg::Shader::GEOMETRY); + I_EnumLabel(osg::Shader::UNDEFINED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Shader) + I_DeclaringFile("osg/Shader"); + I_BaseType(osg::Object); + I_ConstructorWithDefaults1(IN, osg::Shader::Type, type, osg::Shader::UNDEFINED, + Properties::NON_EXPLICIT, + ____Shader__Type, + "", + ""); + I_Constructor2(IN, osg::Shader::Type, type, IN, const std::string &, source, + ____Shader__Type__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, osg::Shader::Type, type, IN, osg::ShaderBinary *, shaderBinary, + ____Shader__Type__ShaderBinary_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Shader &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shader__C5_Shader_R1__C5_osg_CopyOp_R1, + "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 &, 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_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, + "Set the Shader type as an enum. ", + ""); + 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, setFileName, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set file name for the shader source code. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName, + "Get filename to which the shader source code belongs. ", + ""); + I_Method1(void, setShaderSource, IN, const std::string &, sourceText, + Properties::NON_VIRTUAL, + __void__setShaderSource__C5_std_string_R1, + "Set the Shader's source code text from a string. ", + ""); + I_Method0(const std::string &, getShaderSource, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getShaderSource, + "Query the shader's source code text. ", + ""); + I_Method1(void, setShaderBinary, IN, osg::ShaderBinary *, shaderBinary, + Properties::NON_VIRTUAL, + __void__setShaderBinary__ShaderBinary_P1, + "Set the Shader using a ShaderBinary. ", + ""); + I_Method0(osg::ShaderBinary *, getShaderBinary, + Properties::NON_VIRTUAL, + __ShaderBinary_P1__getShaderBinary, + "Get the Shader's ShaderBinary, return NULL if none is assigned. ", + ""); + I_Method0(const osg::ShaderBinary *, getShaderBinary, + Properties::NON_VIRTUAL, + __C5_ShaderBinary_P1__getShaderBinary, + "Get the const Shader's ShaderBinary, return NULL if none is assigned. ", + ""); + 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_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, osg::State &, state, + Properties::NON_VIRTUAL, + __void__compileShader__osg_State_R1, + "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(void, detachShader, IN, unsigned int, contextID, IN, GLuint, program, + Properties::NON_VIRTUAL, + __void__detachShader__unsigned_int__GLuint, + "For a given GL context, detach 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. ", + ""); + I_StaticMethod2(osg::Shader *, readShaderFile, IN, osg::Shader::Type, type, IN, const std::string &, fileName, + __Shader_P1__readShaderFile__Type__C5_std_string_R1_S, + "Read shader source from file and then constructor shader of specified type. ", + "Return the resulting Shader or 0 if no valid shader source could be read. "); + I_StaticMethod2(void, deleteGlShader, IN, unsigned int, contextID, IN, GLuint, shader, + __void__deleteGlShader__unsigned_int__GLuint_S, + "Mark internal glShader for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedGlShaders, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedGlShaders__unsigned_int__double__double_R1_S, + "flush all the cached glShaders which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedGlShaders, IN, unsigned int, contextID, + __void__discardDeletedGlShaders__unsigned_int_S, + "discard all the cached glShaders which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_StaticMethod1(osg::Shader::Type, getTypeId, IN, const std::string &, tname, + __Shader_Type__getTypeId__C5_std_string_R1_S, + "", + ""); + + I_ProtectedMethod1(bool, addProgramRef, IN, osg::Program *, program, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__addProgramRef__osg_Program_P1, + "", + ""); + I_ProtectedMethod1(bool, removeProgramRef, IN, osg::Program *, program, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__removeProgramRef__osg_Program_P1, + "", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::ShaderBinary *, ShaderBinary, + __ShaderBinary_P1__getShaderBinary, + __void__setShaderBinary__ShaderBinary_P1); + I_SimpleProperty(const std::string &, ShaderSource, + __C5_std_string_R1__getShaderSource, + __void__setShaderSource__C5_std_string_R1); + I_SimpleProperty(osg::Shader::Type, Type, + __Type__getType, + __bool__setType__Type); + I_SimpleProperty(const char *, Typename, + __C5_char_P1__getTypename, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::ShaderBinary) + I_DeclaringFile("osg/Shader"); + I_BaseType(osg::Object); + I_Constructor0(____ShaderBinary, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ShaderBinary &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShaderBinary__C5_ShaderBinary_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method2(void, assign, IN, unsigned int, size, IN, const unsigned char *, data, + Properties::NON_VIRTUAL, + __void__assign__unsigned_int__C5_unsigned_char_P1, + "Allocated a data buffer of specified size/*/ void allocate(unsigned int size);. ", + "/** Assign shader binary data, copying the specified data into locally stored data buffer, the original data can then be deleted. "); + I_Method0(unsigned int, getSize, + Properties::NON_VIRTUAL, + __unsigned_int__getSize, + "Get the size of the shader binary data. ", + ""); + I_Method0(unsigned char *, getData, + Properties::NON_VIRTUAL, + __unsigned_char_P1__getData, + "Get a ptr to the shader binary data. ", + ""); + I_Method0(const unsigned char *, getData, + Properties::NON_VIRTUAL, + __C5_unsigned_char_P1__getData, + "Get a const ptr to the shader binary data. ", + ""); + I_StaticMethod1(osg::ShaderBinary *, readShaderBinaryFile, IN, const std::string &, fileName, + __ShaderBinary_P1__readShaderBinaryFile__C5_std_string_R1_S, + "Read shader binary from file. ", + "Return the resulting Shader or 0 if no valid shader binary could be read. "); + I_SimpleProperty(unsigned char *, Data, + __unsigned_char_P1__getData, + 0); + I_SimpleProperty(unsigned int, Size, + __unsigned_int__getSize, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/ShadowVolumeOccluder.cpp b/src/osgWrappers/introspection/osg/ShadowVolumeOccluder.cpp new file mode 100644 index 000000000..46f770e37 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ShadowVolumeOccluder.cpp @@ -0,0 +1,145 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Polytope >, osg::ShadowVolumeOccluder::HoleList) + +BEGIN_VALUE_REFLECTOR(osg::ShadowVolumeOccluder) + I_DeclaringFile("osg/ShadowVolumeOccluder"); + I_Constructor1(IN, const osg::ShadowVolumeOccluder &, svo, + Properties::NON_EXPLICIT, + ____ShadowVolumeOccluder__C5_ShadowVolumeOccluder_R1, + "", + ""); + I_Constructor0(____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, + "", + ""); + I_SimpleProperty(osg::ShadowVolumeOccluder::HoleList &, HoleList, + __HoleList_R1__getHoleList, + 0); + I_SimpleProperty(osg::NodePath &, NodePath, + __NodePath_R1__getNodePath, + __void__setNodePath__NodePath_R1); + I_SimpleProperty(osg::Polytope &, Occluder, + __Polytope_R1__getOccluder, + 0); + I_SimpleProperty(float, Volume, + __float__getVolume, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ShadowVolumeOccluder >, osg::ShadowVolumeOccluderList) + +STD_VECTOR_REFLECTOR(std::vector< osg::Polytope >) + diff --git a/src/osgWrappers/introspection/osg/Shape.cpp b/src/osgWrappers/introspection/osg/Shape.cpp new file mode 100644 index 000000000..e4e48390b --- /dev/null +++ b/src/osgWrappers/introspection/osg/Shape.cpp @@ -0,0 +1,1326 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Box) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____Box, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, center, IN, float, width, + ____Box__C5_osg_Vec3_R1__float, + "", + ""); + I_Constructor4(IN, const osg::Vec3 &, center, IN, float, lengthX, IN, float, lengthY, IN, float, lengthZ, + ____Box__C5_osg_Vec3_R1__float__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Box &, box, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Box__C5_Box_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, HalfLengths, + __C5_Vec3_R1__getHalfLengths, + __void__setHalfLengths__C5_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Capsule) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____Capsule, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Capsule__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Capsule &, capsule, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Capsule__C5_Capsule_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Shape > >, osg::CompositeShape::ChildList) + +BEGIN_OBJECT_REFLECTOR(osg::CompositeShape) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____CompositeShape, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::CompositeShape &, cs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeShape__C5_CompositeShape_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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(). ", + ""); + I_ArrayProperty(osg::Shape *, Child, + __Shape_P1__getChild__unsigned_int, + 0, + __unsigned_int__getNumChildren, + __void__addChild__Shape_P1, + 0, + __void__removeChild__unsigned_int); + I_SimpleProperty(osg::Shape *, Shape, + __Shape_P1__getShape, + __void__setShape__Shape_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Cone) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____Cone, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Cone__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Cone &, cone, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cone__C5_Cone_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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, + "", + ""); + I_SimpleProperty(float, BaseOffset, + __float__getBaseOffset, + 0); + I_SimpleProperty(float, BaseOffsetFactor, + __float__getBaseOffsetFactor, + 0); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ConstShapeVisitor) + I_DeclaringFile("osg/Shape"); + I_Constructor0(____ConstShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, const osg::Shape &, x, + Properties::VIRTUAL, + __void__apply__C5_Shape_R1, + "", + ""); + 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) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::TriangleMesh); + I_Constructor0(____ConvexHull, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ConvexHull &, hull, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConvexHull__C5_ConvexHull_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____Cylinder, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, center, IN, float, radius, IN, float, height, + ____Cylinder__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Cylinder &, cylinder, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cylinder__C5_Cylinder_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< float >, osg::HeightField::HeightList) + +BEGIN_OBJECT_REFLECTOR(osg::HeightField) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____HeightField, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::HeightField &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightField__C5_HeightField_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __osg_FloatArray_P1__getFloatArray, + "Get the FloatArray height data. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __C5_osg_FloatArray_P1__getFloatArray, + "Get the const FloatArray height data. ", + ""); + 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_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_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, + "", + ""); + I_SimpleProperty(unsigned int, BorderWidth, + __unsigned_int__getBorderWidth, + __void__setBorderWidth__unsigned_int); + I_SimpleProperty(osg::FloatArray *, FloatArray, + __osg_FloatArray_P1__getFloatArray, + 0); + I_IndexedProperty(float, Height, + __float__getHeight__unsigned_int__unsigned_int, + __void__setHeight__unsigned_int__unsigned_int__float, + 0); + I_SimpleProperty(osg::HeightField::HeightList &, HeightList, + __HeightList_R1__getHeightList, + 0); + I_SimpleProperty(const osg::Vec3 &, Origin, + __C5_osg_Vec3_R1__getOrigin, + __void__setOrigin__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_Quat_R1__getRotation, + __void__setRotation__C5_Quat_R1); + I_SimpleProperty(float, SkirtHeight, + __float__getSkirtHeight, + __void__setSkirtHeight__float); + I_SimpleProperty(float, XInterval, + __float__getXInterval, + __void__setXInterval__float); + I_SimpleProperty(float, YInterval, + __float__getYInterval, + __void__setYInterval__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::InfinitePlane) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_BaseType(osg::Plane); + I_Constructor0(____InfinitePlane, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::InfinitePlane &, plane, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____InfinitePlane__C5_InfinitePlane_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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_ABSTRACT_OBJECT_REFLECTOR(osg::Shape) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Object); + I_Constructor0(____Shape, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Shape &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shape__C5_Shape_R1__C5_CopyOp_R1, + "", + ""); + 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) + I_DeclaringFile("osg/Shape"); + I_Constructor0(____ShapeVisitor, + "", + ""); + I_Method1(void, apply, IN, osg::Shape &, x, + Properties::VIRTUAL, + __void__apply__Shape_R1, + "", + ""); + 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) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____Sphere, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, center, IN, float, radius, + ____Sphere__C5_osg_Vec3_R1__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Sphere &, sphere, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sphere__C5_Sphere_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_Vec3_R1__getCenter, + __void__setCenter__C5_Vec3_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) + I_DeclaringFile("osg/Shape"); + I_BaseType(osg::Shape); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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, + "", + ""); + I_SimpleProperty(osg::IndexArray *, Indices, + __IndexArray_P1__getIndices, + __void__setIndices__IndexArray_P1); + I_SimpleProperty(osg::Vec3Array *, Vertices, + __Vec3Array_P1__getVertices, + __void__setVertices__Vec3Array_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(osg::HeightField, osg::Grid) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Shape >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Shape *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< float >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Shape > >) + diff --git a/src/osgWrappers/introspection/osg/ShapeDrawable.cpp b/src/osgWrappers/introspection/osg/ShapeDrawable.cpp new file mode 100644 index 000000000..2f693f012 --- /dev/null +++ b/src/osgWrappers/introspection/osg/ShapeDrawable.cpp @@ -0,0 +1,310 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) + I_DeclaringFile("osg/ShapeDrawable"); + I_BaseType(osg::Drawable); + I_Constructor0(____ShapeDrawable, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, + ____ShapeDrawable__Shape_P1__TessellationHints_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, + "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 &, 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. "); + 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::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__RenderInfo_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_Drawable_ConstAttributeFunctor_R1, + "Return true, osg::ShapeDrawable does support accept(Drawable::ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __void__accept__Drawable_ConstAttributeFunctor_R1, + "Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal 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. ", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(osg::TessellationHints *, TessellationHints, + __TessellationHints_P1__getTessellationHints, + __void__setTessellationHints__TessellationHints_P1); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) + I_DeclaringFile("osg/ShapeDrawable"); + I_EnumLabel(osg::TessellationHints::USE_SHAPE_DEFAULTS); + I_EnumLabel(osg::TessellationHints::USE_TARGET_NUM_FACES); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TessellationHints) + I_DeclaringFile("osg/ShapeDrawable"); + I_BaseType(osg::Object); + I_Constructor0(____TessellationHints, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TessellationHints &, tess, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TessellationHints__C5_TessellationHints_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, + "", + ""); + I_SimpleProperty(bool, CreateBackFace, + __bool__getCreateBackFace, + __void__setCreateBackFace__bool); + I_SimpleProperty(bool, CreateBody, + __bool__getCreateBody, + __void__setCreateBody__bool); + I_SimpleProperty(bool, CreateBottom, + __bool__getCreateBottom, + __void__setCreateBottom__bool); + I_SimpleProperty(bool, CreateFrontFace, + __bool__getCreateFrontFace, + __void__setCreateFrontFace__bool); + I_SimpleProperty(bool, CreateNormals, + __bool__getCreateNormals, + __void__setCreateNormals__bool); + I_SimpleProperty(bool, CreateTextureCoords, + __bool__getCreateTextureCoords, + __void__setCreateTextureCoords__bool); + I_SimpleProperty(bool, CreateTop, + __bool__getCreateTop, + __void__setCreateTop__bool); + I_SimpleProperty(float, DetailRatio, + __float__getDetailRatio, + __void__setDetailRatio__float); + I_SimpleProperty(unsigned int, TargetNumFaces, + __unsigned_int__getTargetNumFaces, + __void__setTargetNumFaces__unsigned_int); + I_SimpleProperty(osg::TessellationHints::TessellationMode, TessellationMode, + __TessellationMode__getTessellationMode, + __void__setTessellationMode__TessellationMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/State.cpp b/src/osgWrappers/introspection/osg/State.cpp new file mode 100644 index 000000000..cbb98aa9b --- /dev/null +++ b/src/osgWrappers/introspection/osg/State.cpp @@ -0,0 +1,1152 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::State::CheckForGLErrors) + I_DeclaringFile("osg/State"); + I_EnumLabel(osg::State::NEVER_CHECK_GL_ERRORS); + I_EnumLabel(osg::State::ONCE_PER_FRAME); + I_EnumLabel(osg::State::ONCE_PER_ATTRIBUTE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< const osg::StateSet * >, osg::State::StateSetStack) + +TYPE_NAME_ALIAS(std::vector< osg::VertexAttribAlias >, osg::State::VertexAttribAliasList) + +TYPE_NAME_ALIAS(std::vector< GLushort >, osg::State::Indices) + +TYPE_NAME_ALIAS(std::pair< const osg::StateAttribute * COMMA osg::StateAttribute::OverrideValue >, osg::State::AttributePair) + +TYPE_NAME_ALIAS(std::vector< osg::State::AttributePair >, osg::State::AttributeVec) + +BEGIN_OBJECT_REFLECTOR(osg::State) + I_DeclaringFile("osg/State"); + I_BaseType(osg::Referenced); + I_BaseType(osg::Observer); + 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_Method2(void, insertStateSet, IN, unsigned int, pos, IN, const osg::StateSet *, dstate, + Properties::NON_VIRTUAL, + __void__insertStateSet__unsigned_int__C5_StateSet_P1, + "Insert stateset onto state stack. ", + ""); + I_Method1(void, removeStateSet, IN, unsigned int, pos, + Properties::NON_VIRTUAL, + __void__removeStateSet__unsigned_int, + "Pop stateset off state stack. ", + ""); + 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_Method1(void, setUseModelViewAndProjectionUniforms, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseModelViewAndProjectionUniforms__bool, + "", + ""); + I_Method0(bool, getUseModelViewAndProjectionUniforms, + Properties::NON_VIRTUAL, + __bool__getUseModelViewAndProjectionUniforms, + "", + ""); + I_Method0(void, updateModelViewAndProjectionMatrixUniforms, + Properties::NON_VIRTUAL, + __void__updateModelViewAndProjectionMatrixUniforms, + "", + ""); + I_Method0(void, applyModelViewAndProjectionUniformsIfRequired, + Properties::NON_VIRTUAL, + __void__applyModelViewAndProjectionUniformsIfRequired, + "", + ""); + I_Method0(osg::Uniform *, getModelViewMatrixUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getModelViewMatrixUniform, + "", + ""); + I_Method0(osg::Uniform *, getProjectionMatrixUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getProjectionMatrixUniform, + "", + ""); + I_Method0(osg::Uniform *, getModelViewProjectionMatrixUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getModelViewProjectionMatrixUniform, + "", + ""); + I_Method0(osg::Uniform *, getNormalMatrixUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getNormalMatrixUniform, + "", + ""); + I_Method0(osg::Polytope, getViewFrustum, + Properties::NON_VIRTUAL, + __Polytope__getViewFrustum, + "", + ""); + I_Method1(void, setUseVertexAttributeAliasing, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setUseVertexAttributeAliasing__bool, + "", + ""); + I_Method0(bool, getUseVertexAttributeAliasing, + Properties::NON_VIRTUAL, + __bool__getUseVertexAttributeAliasing, + "", + ""); + I_Method0(const osg::VertexAttribAlias &, getVertexAlias, + Properties::NON_VIRTUAL, + __C5_VertexAttribAlias_R1__getVertexAlias, + "", + ""); + I_Method0(const osg::VertexAttribAlias &, getNormalAlias, + Properties::NON_VIRTUAL, + __C5_VertexAttribAlias_R1__getNormalAlias, + "", + ""); + I_Method0(const osg::VertexAttribAlias &, getColorAlias, + Properties::NON_VIRTUAL, + __C5_VertexAttribAlias_R1__getColorAlias, + "", + ""); + I_Method0(const osg::VertexAttribAlias &, getSecondaryColorAlias, + Properties::NON_VIRTUAL, + __C5_VertexAttribAlias_R1__getSecondaryColorAlias, + "", + ""); + I_Method0(const osg::VertexAttribAlias &, getFogCoordAlias, + Properties::NON_VIRTUAL, + __C5_VertexAttribAlias_R1__getFogCoordAlias, + "", + ""); + I_Method0(const osg::State::VertexAttribAliasList &, getTexCoordAliasList, + Properties::NON_VIRTUAL, + __C5_VertexAttribAliasList_R1__getTexCoordAliasList, + "", + ""); + I_Method0(const osg::Program::AttribBindingList &, getAttributeBindingList, + Properties::NON_VIRTUAL, + __C5_Program_AttribBindingList_R1__getAttributeBindingList, + "", + ""); + I_Method1(bool, convertVertexShaderSourceToOsgBuiltIns, IN, std::string &, source, + Properties::NON_VIRTUAL, + __bool__convertVertexShaderSourceToOsgBuiltIns__std_string_R1, + "", + ""); + 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-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 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_Method1(void, setCurrentVertexBufferObject, IN, osg::GLBufferObject *, vbo, + Properties::NON_VIRTUAL, + __void__setCurrentVertexBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(const osg::GLBufferObject *, getCurrentVertexBufferObject, + Properties::NON_VIRTUAL, + __C5_GLBufferObject_P1__getCurrentVertexBufferObject, + "", + ""); + I_Method1(void, bindVertexBufferObject, IN, osg::GLBufferObject *, vbo, + Properties::NON_VIRTUAL, + __void__bindVertexBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(void, unbindVertexBufferObject, + Properties::NON_VIRTUAL, + __void__unbindVertexBufferObject, + "", + ""); + I_Method1(void, setCurrentElementBufferObject, IN, osg::GLBufferObject *, ebo, + Properties::NON_VIRTUAL, + __void__setCurrentElementBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(const osg::GLBufferObject *, getCurrentElementBufferObject, + Properties::NON_VIRTUAL, + __C5_GLBufferObject_P1__getCurrentElementBufferObject, + "", + ""); + I_Method1(void, bindElementBufferObject, IN, osg::GLBufferObject *, ebo, + Properties::NON_VIRTUAL, + __void__bindElementBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(void, unbindElementBufferObject, + Properties::NON_VIRTUAL, + __void__unbindElementBufferObject, + "", + ""); + I_Method1(void, setCurrentPixelBufferObject, IN, osg::GLBufferObject *, pbo, + Properties::NON_VIRTUAL, + __void__setCurrentPixelBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(const osg::GLBufferObject *, getCurrentPixelBufferObject, + Properties::NON_VIRTUAL, + __C5_GLBufferObject_P1__getCurrentPixelBufferObject, + "", + ""); + I_Method1(void, bindPixelBufferObject, IN, osg::GLBufferObject *, pbo, + Properties::NON_VIRTUAL, + __void__bindPixelBufferObject__osg_GLBufferObject_P1, + "", + ""); + I_Method0(void, unbindPixelBufferObject, + Properties::NON_VIRTUAL, + __void__unbindPixelBufferObject, + "", + ""); + I_MethodWithDefaults3(void, drawQuads, IN, GLint, first, , IN, GLsizei, count, , IN, GLsizei, primCount, 0, + Properties::NON_VIRTUAL, + __void__drawQuads__GLint__GLsizei__GLsizei, + "", + ""); + I_Method4(void, glDrawArraysInstanced, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, IN, GLsizei, primcount, + Properties::NON_VIRTUAL, + __void__glDrawArraysInstanced__GLenum__GLint__GLsizei__GLsizei, + "", + ""); + I_Method5(void, glDrawElementsInstanced, IN, GLenum, mode, IN, GLsizei, count, IN, GLenum, type, IN, const GLvoid *, indices, IN, GLsizei, primcount, + Properties::NON_VIRTUAL, + __void__glDrawElementsInstanced__GLenum__GLsizei__GLenum__C5_GLvoid_P1__GLsizei, + "", + ""); + I_MethodWithDefaults4(void, Vertex, IN, float, x, , IN, float, y, , IN, float, z, , IN, float, w, 1.0f, + Properties::NON_VIRTUAL, + __void__Vertex__float__float__float__float, + "", + ""); + I_MethodWithDefaults4(void, Color, IN, float, r, , IN, float, g, , IN, float, b, , IN, float, a, 1.0f, + Properties::NON_VIRTUAL, + __void__Color__float__float__float__float, + "", + ""); + I_Method3(void, Normal, IN, float, x, IN, float, y, IN, float, z, + Properties::NON_VIRTUAL, + __void__Normal__float__float__float, + "", + ""); + I_MethodWithDefaults4(void, TexCoord, IN, float, x, , IN, float, y, 0.0f, IN, float, z, 0.0f, IN, float, w, 1.0f, + Properties::NON_VIRTUAL, + __void__TexCoord__float__float__float__float, + "", + ""); + I_MethodWithDefaults5(void, MultiTexCoord, IN, unsigned int, unit, , IN, float, x, , IN, float, y, 0.0f, IN, float, z, 0.0f, IN, float, w, 1.0f, + Properties::NON_VIRTUAL, + __void__MultiTexCoord__unsigned_int__float__float__float__float, + "", + ""); + I_MethodWithDefaults5(void, VerteAttrib, IN, unsigned int, location, , IN, float, x, , IN, float, y, 0.0f, IN, float, z, 0.0f, IN, float, w, 0.0f, + Properties::NON_VIRTUAL, + __void__VerteAttrib__unsigned_int__float__float__float__float, + "", + ""); + I_Method0(void, lazyDisablingOfVertexAttributes, + Properties::NON_VIRTUAL, + __void__lazyDisablingOfVertexAttributes, + "Mark all the vertex attributes as being disabled but leave the disabling till a later call to applyDisablingOfVertexAttributes. ", + ""); + I_Method0(void, applyDisablingOfVertexAttributes, + Properties::NON_VIRTUAL, + __void__applyDisablingOfVertexAttributes, + "Disable all the vertex attributes that have been marked as to be disabled. ", + ""); + 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_Method1(void, setVertexPointer, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setVertexPointer__C5_Array_P1, + "Set the vertex pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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_Method1(void, setNormalPointer, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setNormalPointer__C5_Array_P1, + "Set the normal pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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_Method1(void, setColorPointer, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setColorPointer__C5_Array_P1, + "Set the color pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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_Method1(void, setSecondaryColorPointer, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setSecondaryColorPointer__C5_Array_P1, + "Set the secondary color pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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_Method0(bool, isFogCoordSupported, + Properties::NON_VIRTUAL, + __bool__isFogCoordSupported, + "", + ""); + I_Method1(void, setFogCoordPointer, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setFogCoordPointer__C5_Array_P1, + "Set the fog coord pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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_Method2(void, setTexCoordPointer, IN, unsigned int, unit, IN, const osg::Array *, array, + Properties::NON_VIRTUAL, + __void__setTexCoordPointer__unsigned_int__C5_Array_P1, + "Set the tex coord pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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 multi texturing 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 multi texturing 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_Method3(void, setVertexAttribPointer, IN, unsigned int, unit, IN, const osg::Array *, array, IN, GLboolean, normalized, + Properties::NON_VIRTUAL, + __void__setVertexAttribPointer__unsigned_int__C5_Array_P1__GLboolean, + "Set the vertex attrib pointer using an osg::Array, and manage any VBO that are required. ", + ""); + 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, dirtyVertexAttribPointer, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__dirtyVertexAttribPointer__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(osg::State::AttributeVec &, getAttributeVec, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __AttributeVec_R1__getAttributeVec__C5_osg_StateAttribute_P1, + "", + ""); + 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(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __FrameStamp_P1__getFrameStamp, + "Get the frame stamp for the current frame. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_FrameStamp_P1__getFrameStamp, + "Get the const 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, setMaxTexturePoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxTexturePoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxTexturePoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxTexturePoolSize, + "", + ""); + I_Method1(void, setMaxBufferObjectPoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxBufferObjectPoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxBufferObjectPoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxBufferObjectPoolSize, + "", + ""); + 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, + "", + ""); + I_Method0(void, initializeExtensionProcs, + Properties::NON_VIRTUAL, + __void__initializeExtensionProcs, + "Initialize extension used by osg:State. ", + ""); + I_Method1(void, objectDeleted, IN, void *, object, + Properties::VIRTUAL, + __void__objectDeleted__void_P1, + "", + ""); + I_Method0(osg::GLBeginEndAdapter &, getGLBeginEndAdapter, + Properties::NON_VIRTUAL, + __GLBeginEndAdapter_R1__getGLBeginEndAdapter, + "get the GL adapter object used to map OpenGL 1.0 glBegin/glEnd usage to vertex arrays. ", + ""); + I_Method0(osg::ArrayDispatchers &, getArrayDispatchers, + Properties::NON_VIRTUAL, + __ArrayDispatchers_R1__getArrayDispatchers, + "get the helper class for dispatching osg::Arrays as OpenGL attribute data. ", + ""); + I_ProtectedMethod5(void, setUpVertexAttribAlias, IN, osg::VertexAttribAlias &, alias, IN, GLuint, location, IN, const std::string, glName, IN, const std::string, osgName, IN, const std::string &, declaration, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpVertexAttribAlias__VertexAttribAlias_R1__GLuint__C5_std_string__C5_std_string__C5_std_string_R1, + "", + ""); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + I_ProtectedMethod0(bool, computeSecondaryColorSupported, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__computeSecondaryColorSupported, + "", + ""); + I_ProtectedMethod0(bool, computeFogCoordSupported, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__computeFogCoordSupported, + "", + ""); + I_ProtectedMethod0(bool, computeVertexBufferObjectSupported, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__computeVertexBufferObjectSupported, + "", + ""); + + + + + + + + + I_SimpleProperty(bool, AbortRendering, + __bool__getAbortRendering, + 0); + I_SimpleProperty(bool *, AbortRenderingPtr, + 0, + __void__setAbortRenderingPtr__bool_P1); + I_SimpleProperty(unsigned int, ActiveTextureUnit, + __unsigned_int__getActiveTextureUnit, + __bool__setActiveTextureUnit__unsigned_int); + I_SimpleProperty(osg::ArrayDispatchers &, ArrayDispatchers, + __ArrayDispatchers_R1__getArrayDispatchers, + 0); + I_SimpleProperty(const osg::Program::AttribBindingList &, AttributeBindingList, + __C5_Program_AttribBindingList_R1__getAttributeBindingList, + 0); + I_SimpleProperty(osg::State::CheckForGLErrors, CheckForGLErrors, + __CheckForGLErrors__getCheckForGLErrors, + __void__setCheckForGLErrors__CheckForGLErrors); + I_SimpleProperty(unsigned int, ClientActiveTextureUnit, + __unsigned_int__getClientActiveTextureUnit, + __bool__setClientActiveTextureUnit__unsigned_int); + I_SimpleProperty(const osg::VertexAttribAlias &, ColorAlias, + __C5_VertexAttribAlias_R1__getColorAlias, + 0); + I_SimpleProperty(const osg::Array *, ColorPointer, + 0, + __void__setColorPointer__C5_Array_P1); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + __void__setContextID__unsigned_int); + I_SimpleProperty(osg::GLBufferObject *, CurrentElementBufferObject, + 0, + __void__setCurrentElementBufferObject__osg_GLBufferObject_P1); + I_SimpleProperty(osg::GLBufferObject *, CurrentPixelBufferObject, + 0, + __void__setCurrentPixelBufferObject__osg_GLBufferObject_P1); + I_SimpleProperty(osg::GLBufferObject *, CurrentVertexBufferObject, + 0, + __void__setCurrentVertexBufferObject__osg_GLBufferObject_P1); + I_SimpleProperty(const osg::Viewport *, CurrentViewport, + __C5_Viewport_P1__getCurrentViewport, + 0); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + 0, + __void__setDisplaySettings__DisplaySettings_P1); + I_SimpleProperty(unsigned int, DynamicObjectCount, + __unsigned_int__getDynamicObjectCount, + 0); + I_SimpleProperty(osg::State::DynamicObjectRenderingCompletedCallback *, DynamicObjectRenderingCompletedCallback, + __DynamicObjectRenderingCompletedCallback_P1__getDynamicObjectRenderingCompletedCallback, + __void__setDynamicObjectRenderingCompletedCallback__DynamicObjectRenderingCompletedCallback_P1); + I_SimpleProperty(const osg::VertexAttribAlias &, FogCoordAlias, + __C5_VertexAttribAlias_R1__getFogCoordAlias, + 0); + I_SimpleProperty(const osg::Array *, FogCoordPointer, + 0, + __void__setFogCoordPointer__C5_Array_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __FrameStamp_P1__getFrameStamp, + __void__setFrameStamp__FrameStamp_P1); + I_SimpleProperty(osg::GLBeginEndAdapter &, GLBeginEndAdapter, + __GLBeginEndAdapter_R1__getGLBeginEndAdapter, + 0); + I_SimpleProperty(const osg::StateAttribute *, GlobalDefaultAttribute, + 0, + __void__setGlobalDefaultAttribute__C5_StateAttribute_P1); + I_IndexedProperty(bool, GlobalDefaultModeValue, + __bool__getGlobalDefaultModeValue__StateAttribute_GLMode, + __void__setGlobalDefaultModeValue__StateAttribute_GLMode__bool, + 0); + I_IndexedProperty(bool, GlobalDefaultTextureModeValue, + __bool__getGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode, + __void__setGlobalDefaultTextureModeValue__unsigned_int__StateAttribute_GLMode__bool, + 0); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__GraphicsContext_P1); + I_SimpleProperty(const osg::Matrix &, InitialInverseViewMatrix, + __C5_osg_Matrix_R1__getInitialInverseViewMatrix, + 0); + I_SimpleProperty(const osg::RefMatrix *, InitialViewMatrix, + 0, + __void__setInitialViewMatrix__C5_osg_RefMatrix_P1); + I_SimpleProperty(const osg::Program::PerContextProgram *, LastAppliedProgramObject, + __C5_Program_PerContextProgram_P1__getLastAppliedProgramObject, + __void__setLastAppliedProgramObject__C5_Program_PerContextProgram_P1); + I_SimpleProperty(unsigned int, MaxBufferObjectPoolSize, + __unsigned_int__getMaxBufferObjectPoolSize, + __void__setMaxBufferObjectPoolSize__unsigned_int); + I_SimpleProperty(unsigned int, MaxTexturePoolSize, + __unsigned_int__getMaxTexturePoolSize, + __void__setMaxTexturePoolSize__unsigned_int); + I_IndexedProperty(bool, ModeValidity, + __bool__getModeValidity__StateAttribute_GLMode, + __void__setModeValidity__StateAttribute_GLMode__bool, + 0); + I_SimpleProperty(const osg::Matrix &, ModelViewMatrix, + __C5_osg_Matrix_R1__getModelViewMatrix, + 0); + I_SimpleProperty(osg::Uniform *, ModelViewMatrixUniform, + __osg_Uniform_P1__getModelViewMatrixUniform, + 0); + I_SimpleProperty(osg::Uniform *, ModelViewProjectionMatrixUniform, + __osg_Uniform_P1__getModelViewProjectionMatrixUniform, + 0); + I_SimpleProperty(const osg::VertexAttribAlias &, NormalAlias, + __C5_VertexAttribAlias_R1__getNormalAlias, + 0); + I_SimpleProperty(osg::Uniform *, NormalMatrixUniform, + __osg_Uniform_P1__getNormalMatrixUniform, + 0); + I_SimpleProperty(const osg::Array *, NormalPointer, + 0, + __void__setNormalPointer__C5_Array_P1); + I_SimpleProperty(const osg::Matrix &, ProjectionMatrix, + __C5_osg_Matrix_R1__getProjectionMatrix, + 0); + I_SimpleProperty(osg::Uniform *, ProjectionMatrixUniform, + __osg_Uniform_P1__getProjectionMatrixUniform, + 0); + I_SimpleProperty(const osg::VertexAttribAlias &, SecondaryColorAlias, + __C5_VertexAttribAlias_R1__getSecondaryColorAlias, + 0); + I_SimpleProperty(const osg::Array *, SecondaryColorPointer, + 0, + __void__setSecondaryColorPointer__C5_Array_P1); + I_SimpleProperty(osg::State::StateSetStack &, StateSetStack, + __StateSetStack_R1__getStateSetStack, + 0); + I_SimpleProperty(unsigned int, StateSetStackSize, + __unsigned_int__getStateSetStackSize, + 0); + I_SimpleProperty(const osg::State::VertexAttribAliasList &, TexCoordAliasList, + __C5_VertexAttribAliasList_R1__getTexCoordAliasList, + 0); + I_SimpleProperty(bool, UseModelViewAndProjectionUniforms, + __bool__getUseModelViewAndProjectionUniforms, + __void__setUseModelViewAndProjectionUniforms__bool); + I_SimpleProperty(bool, UseVertexAttributeAliasing, + __bool__getUseVertexAttributeAliasing, + __void__setUseVertexAttributeAliasing__bool); + I_SimpleProperty(const osg::VertexAttribAlias &, VertexAlias, + __C5_VertexAttribAlias_R1__getVertexAlias, + 0); + I_SimpleProperty(const osg::Array *, VertexPointer, + 0, + __void__setVertexPointer__C5_Array_P1); + I_SimpleProperty(osg::Polytope, ViewFrustum, + __Polytope__getViewFrustum, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallback) + I_DeclaringFile("osg/State"); + I_BaseType(osg::Referenced); + I_Constructor0(____DynamicObjectRenderingCompletedCallback, + "", + ""); + I_Method1(void, completed, IN, osg::State *, x, + Properties::PURE_VIRTUAL, + __void__completed__osg_State_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::VertexAttribAlias) + I_DeclaringFile("osg/State"); + I_Constructor0(____VertexAttribAlias, + "", + ""); + I_Constructor1(IN, const osg::VertexAttribAlias &, rhs, + Properties::NON_EXPLICIT, + ____VertexAttribAlias__C5_VertexAttribAlias_R1, + "", + ""); + I_Constructor4(IN, GLuint, location, IN, const std::string, glName, IN, const std::string, osgName, IN, const std::string &, declaration, + ____VertexAttribAlias__GLuint__C5_std_string__C5_std_string__C5_std_string_R1, + "", + ""); + I_PublicMemberProperty(GLuint, _location); + I_PublicMemberProperty(std::string, _glName); + I_PublicMemberProperty(std::string, _osgName); + I_PublicMemberProperty(std::string, _declaration); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< const osg::StateAttribute * COMMA osg::StateAttribute::OverrideValue >) + +STD_VECTOR_REFLECTOR(std::vector< GLushort >) + +STD_VECTOR_REFLECTOR(std::vector< const osg::StateSet * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::State::AttributePair >) + +STD_VECTOR_REFLECTOR(std::vector< osg::VertexAttribAlias >) + diff --git a/src/osgWrappers/introspection/osg/StateAttribute.cpp b/src/osgWrappers/introspection/osg/StateAttribute.cpp new file mode 100644 index 000000000..0fb03e589 --- /dev/null +++ b/src/osgWrappers/introspection/osg/StateAttribute.cpp @@ -0,0 +1,311 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::StateAttribute::Values) + I_DeclaringFile("osg/StateAttribute"); + I_EnumLabel(osg::StateAttribute::OFF); + I_EnumLabel(osg::StateAttribute::ON); + I_EnumLabel(osg::StateAttribute::OVERRIDE); + I_EnumLabel(osg::StateAttribute::PROTECTED); + I_EnumLabel(osg::StateAttribute::INHERIT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StateAttribute::Type) + I_DeclaringFile("osg/StateAttribute"); + I_EnumLabel(osg::StateAttribute::TEXTURE); + I_EnumLabel(osg::StateAttribute::POLYGONMODE); + I_EnumLabel(osg::StateAttribute::POLYGONOFFSET); + I_EnumLabel(osg::StateAttribute::MATERIAL); + I_EnumLabel(osg::StateAttribute::ALPHAFUNC); + I_EnumLabel(osg::StateAttribute::ANTIALIAS); + I_EnumLabel(osg::StateAttribute::COLORTABLE); + I_EnumLabel(osg::StateAttribute::CULLFACE); + I_EnumLabel(osg::StateAttribute::FOG); + I_EnumLabel(osg::StateAttribute::FRONTFACE); + I_EnumLabel(osg::StateAttribute::LIGHT); + I_EnumLabel(osg::StateAttribute::POINT); + I_EnumLabel(osg::StateAttribute::LINEWIDTH); + I_EnumLabel(osg::StateAttribute::LINESTIPPLE); + I_EnumLabel(osg::StateAttribute::POLYGONSTIPPLE); + I_EnumLabel(osg::StateAttribute::SHADEMODEL); + I_EnumLabel(osg::StateAttribute::TEXENV); + I_EnumLabel(osg::StateAttribute::TEXENVFILTER); + I_EnumLabel(osg::StateAttribute::TEXGEN); + I_EnumLabel(osg::StateAttribute::TEXMAT); + I_EnumLabel(osg::StateAttribute::LIGHTMODEL); + I_EnumLabel(osg::StateAttribute::BLENDFUNC); + I_EnumLabel(osg::StateAttribute::BLENDEQUATION); + I_EnumLabel(osg::StateAttribute::LOGICOP); + I_EnumLabel(osg::StateAttribute::STENCIL); + I_EnumLabel(osg::StateAttribute::COLORMASK); + I_EnumLabel(osg::StateAttribute::DEPTH); + I_EnumLabel(osg::StateAttribute::VIEWPORT); + I_EnumLabel(osg::StateAttribute::SCISSOR); + I_EnumLabel(osg::StateAttribute::BLENDCOLOR); + I_EnumLabel(osg::StateAttribute::MULTISAMPLE); + I_EnumLabel(osg::StateAttribute::CLIPPLANE); + I_EnumLabel(osg::StateAttribute::COLORMATRIX); + I_EnumLabel(osg::StateAttribute::VERTEXPROGRAM); + I_EnumLabel(osg::StateAttribute::FRAGMENTPROGRAM); + I_EnumLabel(osg::StateAttribute::POINTSPRITE); + I_EnumLabel(osg::StateAttribute::PROGRAM); + I_EnumLabel(osg::StateAttribute::CLAMPCOLOR); + I_EnumLabel(osg::StateAttribute::HINT); + I_EnumLabel(osg::StateAttribute::VALIDATOR); + I_EnumLabel(osg::StateAttribute::VIEWMATRIXEXTRACTOR); + I_EnumLabel(osg::StateAttribute::OSGNV_PARAMETER_BLOCK); + I_EnumLabel(osg::StateAttribute::OSGNVEXT_TEXTURE_SHADER); + I_EnumLabel(osg::StateAttribute::OSGNVEXT_VERTEX_PROGRAM); + I_EnumLabel(osg::StateAttribute::OSGNVEXT_REGISTER_COMBINERS); + I_EnumLabel(osg::StateAttribute::OSGNVCG_PROGRAM); + I_EnumLabel(osg::StateAttribute::OSGNVSLANG_PROGRAM); + I_EnumLabel(osg::StateAttribute::OSGNVPARSE_PROGRAM_PARSER); +END_REFLECTOR + +TYPE_NAME_ALIAS(GLenum, osg::StateAttribute::GLMode) + +TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::GLModeValue) + +TYPE_NAME_ALIAS(unsigned int, osg::StateAttribute::OverrideValue) + +TYPE_NAME_ALIAS(std::pair< osg::StateAttribute::Type COMMA unsigned int >, osg::StateAttribute::TypeMemberPair) + +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::StateAttribute::ParentList) + +TYPE_NAME_ALIAS(osg::StateAttributeCallback, osg::StateAttribute::Callback) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute) + I_DeclaringFile("osg/StateAttribute"); + I_BaseType(osg::Object); + I_Constructor0(____StateAttribute, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateAttribute &, sa, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateAttribute__C5_StateAttribute_R1__C5_CopyOp_R1, + "", + ""); + 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::Texture *, asTexture, + Properties::VIRTUAL, + __Texture_P1__asTexture, + "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", + ""); + I_Method0(const osg::Texture *, asTexture, + Properties::VIRTUAL, + __C5_Texture_P1__asTexture, + "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", + ""); + 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::StateAttributeCallback *, uc, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__StateAttributeCallback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateAttributeCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __StateAttributeCallback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::StateAttributeCallback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_StateAttributeCallback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateAttributeCallback *, ec, + Properties::NON_VIRTUAL, + __void__setEventCallback__StateAttributeCallback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::StateAttributeCallback *, getEventCallback, + Properties::NON_VIRTUAL, + __StateAttributeCallback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::StateAttributeCallback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_StateAttributeCallback_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 objects for all graphics context if State object pointer NULL. ", + ""); + I_ProtectedMethod1(void, addParent, IN, osg::StateSet *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addParent__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(void, removeParent, IN, osg::StateSet *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeParent__osg_StateSet_P1, + "", + ""); + I_SimpleProperty(osg::StateAttributeCallback *, EventCallback, + __StateAttributeCallback_P1__getEventCallback, + __void__setEventCallback__StateAttributeCallback_P1); + I_SimpleProperty(unsigned int, Member, + __unsigned_int__getMember, + 0); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(const osg::StateAttribute::ParentList &, Parents, + __C5_ParentList_R1__getParents, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(osg::StateAttribute::TypeMemberPair, TypeMemberPair, + __TypeMemberPair__getTypeMemberPair, + 0); + I_SimpleProperty(osg::StateAttributeCallback *, UpdateCallback, + __StateAttributeCallback_P1__getUpdateCallback, + __void__setUpdateCallback__StateAttributeCallback_P1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::StateAttribute::ModeUsage) + I_DeclaringFile("osg/StateAttribute"); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< osg::StateAttribute::Type COMMA unsigned int >) + +STD_VECTOR_REFLECTOR(std::vector< osg::StateSet * >) + diff --git a/src/osgWrappers/introspection/osg/StateAttributeCallback.cpp b/src/osgWrappers/introspection/osg/StateAttributeCallback.cpp new file mode 100644 index 000000000..25fe43e26 --- /dev/null +++ b/src/osgWrappers/introspection/osg/StateAttributeCallback.cpp @@ -0,0 +1,63 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::StateAttributeCallback) + I_DeclaringFile("osg/StateAttributeCallback"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____StateAttributeCallback, + "", + ""); + I_Constructor2(IN, const osg::StateAttributeCallback &, x, IN, const osg::CopyOp &, x, + ____StateAttributeCallback__C5_StateAttributeCallback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/StateSet.cpp b/src/osgWrappers/introspection/osg/StateSet.cpp new file mode 100644 index 000000000..698d5957a --- /dev/null +++ b/src/osgWrappers/introspection/osg/StateSet.cpp @@ -0,0 +1,807 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) + I_DeclaringFile("osg/StateSet"); + I_EnumLabel(osg::StateSet::DEFAULT_BIN); + I_EnumLabel(osg::StateSet::OPAQUE_BIN); + I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) + I_DeclaringFile("osg/StateSet"); + I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList) + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList) + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair) + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >, osg::StateSet::AttributeList) + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::ModeList >, osg::StateSet::TextureModeList) + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::AttributeList >, osg::StateSet::TextureAttributeList) + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefUniformPair) + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList) + +BEGIN_OBJECT_REFLECTOR(osg::StateSet) + I_DeclaringFile("osg/StateSet"); + I_BaseType(osg::Object); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + 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. "); + 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, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assessment of callback etc. ", + ""); + 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_Method1(void, removeAssociatedModes, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAssociatedModes__C5_StateAttribute_P1, + "", + ""); + 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_Method2(void, removeAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1, + "", + ""); + 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, setNestRenderBins, IN, bool, val, + Properties::NON_VIRTUAL, + __void__setNestRenderBins__bool, + "By default render bins will be nested within each other dependent upon where they are set in the scene graph. ", + "This can be problematic if a transparent render bin is attached to an opaque render bin which is attached to another transparent render bin as these render bins will be sorted separately, giving the wrong draw ordering for back-to-front transparency. Therefore, to prevent render bins being nested, call setNestRenderBins(false). "); + I_Method0(bool, getNestRenderBins, + Properties::NON_VIRTUAL, + __bool__getNestRenderBins, + "Get whether associated RenderBin should be nested within parents RenderBin. ", + ""); + 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. ", + ""); + I_ProtectedMethod1(void, addParent, IN, osg::Object *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addParent__osg_Object_P1, + "", + ""); + I_ProtectedMethod1(void, removeParent, IN, osg::Object *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeParent__osg_Object_P1, + "", + ""); + I_ProtectedMethod1(osg::StateSet::ModeList &, getOrCreateTextureModeList, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ModeList_R1__getOrCreateTextureModeList__unsigned_int, + "", + ""); + I_ProtectedMethod1(osg::StateSet::AttributeList &, getOrCreateTextureAttributeList, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __AttributeList_R1__getOrCreateTextureAttributeList__unsigned_int, + "", + ""); + I_ProtectedMethod2(int, compareModes, IN, const osg::StateSet::ModeList &, lhs, IN, const osg::StateSet::ModeList &, rhs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int__compareModes__C5_ModeList_R1__C5_ModeList_R1, + "", + ""); + I_ProtectedMethod2(int, compareAttributePtrs, IN, const osg::StateSet::AttributeList &, lhs, IN, const osg::StateSet::AttributeList &, rhs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int__compareAttributePtrs__C5_AttributeList_R1__C5_AttributeList_R1, + "", + ""); + I_ProtectedMethod2(int, compareAttributeContents, IN, const osg::StateSet::AttributeList &, lhs, IN, const osg::StateSet::AttributeList &, rhs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int__compareAttributeContents__C5_AttributeList_R1__C5_AttributeList_R1, + "", + ""); + I_ProtectedMethod3(void, setMode, IN, osg::StateSet::ModeList &, modeList, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setMode__ModeList_R1__StateAttribute_GLMode__StateAttribute_GLModeValue, + "", + ""); + I_ProtectedMethod2(void, setModeToInherit, IN, osg::StateSet::ModeList &, modeList, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setModeToInherit__ModeList_R1__StateAttribute_GLMode, + "", + ""); + I_ProtectedMethod2(osg::StateAttribute::GLModeValue, getMode, IN, const osg::StateSet::ModeList &, modeList, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + Properties::CONST, + __StateAttribute_GLModeValue__getMode__C5_ModeList_R1__StateAttribute_GLMode, + "", + ""); + I_ProtectedMethodWithDefaults3(void, setAttribute, IN, osg::StateSet::AttributeList &, attributeList, , IN, osg::StateAttribute *, attribute, , IN, const osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setAttribute__AttributeList_R1__StateAttribute_P1__C5_StateAttribute_OverrideValue, + "", + ""); + I_ProtectedMethod3(osg::StateAttribute *, getAttribute, IN, osg::StateSet::AttributeList &, attributeList, IN, const osg::StateAttribute::Type, type, IN, unsigned int, member, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __StateAttribute_P1__getAttribute__AttributeList_R1__C5_StateAttribute_Type__unsigned_int, + "", + ""); + I_ProtectedMethod3(const osg::StateAttribute *, getAttribute, IN, const osg::StateSet::AttributeList &, attributeList, IN, const osg::StateAttribute::Type, type, IN, unsigned int, member, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_StateAttribute_P1__getAttribute__C5_AttributeList_R1__C5_StateAttribute_Type__unsigned_int, + "", + ""); + I_ProtectedMethod3(const osg::StateSet::RefAttributePair *, getAttributePair, IN, const osg::StateSet::AttributeList &, attributeList, IN, const osg::StateAttribute::Type, type, IN, unsigned int, member, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_RefAttributePair_P1__getAttributePair__C5_AttributeList_R1__C5_StateAttribute_Type__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringUpdateTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringUpdateTraversal__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, setNumChildrenRequiringEventTraversal, IN, unsigned int, num, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setNumChildrenRequiringEventTraversal__unsigned_int, + "", + ""); + I_SimpleProperty(osg::StateSet::AttributeList &, AttributeList, + __AttributeList_R1__getAttributeList, + __void__setAttributeList__AttributeList_R1); + I_SimpleProperty(const std::string &, BinName, + __C5_std_string_R1__getBinName, + __void__setBinName__C5_std_string_R1); + I_SimpleProperty(int, BinNumber, + __int__getBinNumber, + __void__setBinNumber__int); + I_SimpleProperty(osg::StateSet::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + + I_SimpleProperty(osg::StateSet::ModeList &, ModeList, + __ModeList_R1__getModeList, + __void__setModeList__ModeList_R1); + I_SimpleProperty(bool, NestRenderBins, + __bool__getNestRenderBins, + __void__setNestRenderBins__bool); + I_ArrayProperty(osg::Object *, Parent, + __Object_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::StateSet::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet::RenderBinMode, RenderBinMode, + __RenderBinMode__getRenderBinMode, + __void__setRenderBinMode__RenderBinMode); + I_SimpleProperty(int, RenderingHint, + __int__getRenderingHint, + __void__setRenderingHint__int); + I_SimpleProperty(osg::StateSet::TextureAttributeList &, TextureAttributeList, + __TextureAttributeList_R1__getTextureAttributeList, + __void__setTextureAttributeList__TextureAttributeList_R1); + I_IndexedProperty(osg::StateAttribute::GLModeValue, TextureMode, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + 0); + I_SimpleProperty(osg::StateSet::TextureModeList &, TextureModeList, + __TextureModeList_R1__getTextureModeList, + __void__setTextureModeList__TextureModeList_R1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::StateSet::UniformList &, UniformList, + __UniformList_R1__getUniformList, + __void__setUniformList__UniformList_R1); + I_SimpleProperty(osg::StateSet::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) + I_DeclaringFile("osg/StateSet"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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. "); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateAttribute >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::StateAttribute *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Uniform >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Uniform *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR_WITH_TYPES(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateAttribute::GLMode, osg::StateAttribute::Values) +STD_MAP_REFLECTOR(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >) + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::StateSet::RefUniformPair >) + +STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >) + +STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Object * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::AttributeList >) + +STD_VECTOR_REFLECTOR(std::vector< osg::StateSet::ModeList >) + diff --git a/src/osgWrappers/introspection/osg/Stats.cpp b/src/osgWrappers/introspection/osg/Stats.cpp new file mode 100644 index 000000000..71d33fc4b --- /dev/null +++ b/src/osgWrappers/introspection/osg/Stats.cpp @@ -0,0 +1,156 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< std::string COMMA double >, osg::Stats::AttributeMap) + +TYPE_NAME_ALIAS(std::vector< osg::Stats::AttributeMap >, osg::Stats::AttributeMapList) + +TYPE_NAME_ALIAS(std::map< std::string COMMA bool >, osg::Stats::CollectMap) + +BEGIN_OBJECT_REFLECTOR(osg::Stats) + I_DeclaringFile("osg/Stats"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, const std::string &, name, + Properties::NON_EXPLICIT, + ____Stats__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const std::string &, name, IN, unsigned int, numberOfFrames, + ____Stats__C5_std_string_R1__unsigned_int, + "", + ""); + 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, + "", + ""); + I_ProtectedMethod3(bool, getAttributeNoMutex, IN, int, frameNumber, IN, const std::string &, attributeName, IN, double &, value, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__getAttributeNoMutex__int__C5_std_string_R1__double_R1, + "", + ""); + I_ProtectedMethod1(osg::Stats::AttributeMap &, getAttributeMapNoMutex, IN, int, frameNumber, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __AttributeMap_R1__getAttributeMapNoMutex__int, + "", + ""); + I_ProtectedMethod1(const osg::Stats::AttributeMap &, getAttributeMapNoMutex, IN, int, frameNumber, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_AttributeMap_R1__getAttributeMapNoMutex__int, + "", + ""); + I_ProtectedMethod1(int, getIndex, IN, int, frameNumber, + Properties::NON_VIRTUAL, + Properties::CONST, + __int__getIndex__int, + "", + ""); + I_SimpleProperty(int, EarliestFrameNumber, + __int__getEarliestFrameNumber, + 0); + I_SimpleProperty(int, LatestFrameNumber, + __int__getLatestFrameNumber, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA bool >) + +STD_MAP_REFLECTOR(std::map< std::string COMMA double >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Stats::AttributeMap >) + diff --git a/src/osgWrappers/introspection/osg/Stencil.cpp b/src/osgWrappers/introspection/osg/Stencil.cpp new file mode 100644 index 000000000..85fdf3c97 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Stencil.cpp @@ -0,0 +1,211 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Stencil::Function) + I_DeclaringFile("osg/Stencil"); + I_EnumLabel(osg::Stencil::NEVER); + I_EnumLabel(osg::Stencil::LESS); + I_EnumLabel(osg::Stencil::EQUAL); + I_EnumLabel(osg::Stencil::LEQUAL); + I_EnumLabel(osg::Stencil::GREATER); + I_EnumLabel(osg::Stencil::NOTEQUAL); + I_EnumLabel(osg::Stencil::GEQUAL); + I_EnumLabel(osg::Stencil::ALWAYS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Stencil::Operation) + I_DeclaringFile("osg/Stencil"); + I_EnumLabel(osg::Stencil::KEEP); + I_EnumLabel(osg::Stencil::ZERO); + I_EnumLabel(osg::Stencil::REPLACE); + I_EnumLabel(osg::Stencil::INCR); + I_EnumLabel(osg::Stencil::DECR); + I_EnumLabel(osg::Stencil::INVERT); + I_EnumLabel(osg::Stencil::INCR_WRAP); + I_EnumLabel(osg::Stencil::DECR_WRAP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Stencil) + I_DeclaringFile("osg/Stencil"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Stencil, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Stencil &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Stencil__C5_Stencil_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_SimpleProperty(osg::Stencil::Function, Function, + __Function__getFunction, + __void__setFunction__Function); + I_SimpleProperty(unsigned int, FunctionMask, + __unsigned_int__getFunctionMask, + __void__setFunctionMask__unsigned_int); + I_SimpleProperty(int, FunctionRef, + __int__getFunctionRef, + __void__setFunctionRef__int); + I_SimpleProperty(osg::Stencil::Operation, StencilFailOperation, + __Operation__getStencilFailOperation, + __void__setStencilFailOperation__Operation); + I_SimpleProperty(osg::Stencil::Operation, StencilPassAndDepthFailOperation, + __Operation__getStencilPassAndDepthFailOperation, + __void__setStencilPassAndDepthFailOperation__Operation); + I_SimpleProperty(osg::Stencil::Operation, StencilPassAndDepthPassOperation, + __Operation__getStencilPassAndDepthPassOperation, + __void__setStencilPassAndDepthPassOperation__Operation); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(unsigned int, WriteMask, + __unsigned_int__getWriteMask, + __void__setWriteMask__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/StencilTwoSided.cpp b/src/osgWrappers/introspection/osg/StencilTwoSided.cpp new file mode 100644 index 000000000..66aa31f85 --- /dev/null +++ b/src/osgWrappers/introspection/osg/StencilTwoSided.cpp @@ -0,0 +1,232 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Face) + I_DeclaringFile("osg/StencilTwoSided"); + I_EnumLabel(osg::StencilTwoSided::FRONT); + I_EnumLabel(osg::StencilTwoSided::BACK); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Function) + I_DeclaringFile("osg/StencilTwoSided"); + I_EnumLabel(osg::StencilTwoSided::NEVER); + I_EnumLabel(osg::StencilTwoSided::LESS); + I_EnumLabel(osg::StencilTwoSided::EQUAL); + I_EnumLabel(osg::StencilTwoSided::LEQUAL); + I_EnumLabel(osg::StencilTwoSided::GREATER); + I_EnumLabel(osg::StencilTwoSided::NOTEQUAL); + I_EnumLabel(osg::StencilTwoSided::GEQUAL); + I_EnumLabel(osg::StencilTwoSided::ALWAYS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StencilTwoSided::Operation) + I_DeclaringFile("osg/StencilTwoSided"); + I_EnumLabel(osg::StencilTwoSided::KEEP); + I_EnumLabel(osg::StencilTwoSided::ZERO); + I_EnumLabel(osg::StencilTwoSided::REPLACE); + I_EnumLabel(osg::StencilTwoSided::INCR); + I_EnumLabel(osg::StencilTwoSided::DECR); + I_EnumLabel(osg::StencilTwoSided::INVERT); + I_EnumLabel(osg::StencilTwoSided::INCR_WRAP); + I_EnumLabel(osg::StencilTwoSided::DECR_WRAP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StencilTwoSided) + I_DeclaringFile("osg/StencilTwoSided"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____StencilTwoSided, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StencilTwoSided &, stencil, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StencilTwoSided__C5_StencilTwoSided_R1__C5_CopyOp_R1, + "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 &, x, + 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__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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_StaticMethod2(osg::StencilTwoSided::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::StencilTwoSided::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_IndexedProperty(osg::StencilTwoSided::Function, Function, + __Function__getFunction__Face, + __void__setFunction__Face__Function, + 0); + I_IndexedProperty(unsigned int, FunctionMask, + __unsigned_int__getFunctionMask__Face, + __void__setFunctionMask__Face__unsigned_int, + 0); + I_IndexedProperty(int, FunctionRef, + __int__getFunctionRef__Face, + __void__setFunctionRef__Face__int, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilFailOperation, + __Operation__getStencilFailOperation__Face, + __void__setStencilFailOperation__Face__Operation, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilPassAndDepthFailOperation, + __Operation__getStencilPassAndDepthFailOperation__Face, + __void__setStencilPassAndDepthFailOperation__Face__Operation, + 0); + I_IndexedProperty(osg::StencilTwoSided::Operation, StencilPassAndDepthPassOperation, + __Operation__getStencilPassAndDepthPassOperation__Face, + __void__setStencilPassAndDepthPassOperation__Face__Operation, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_IndexedProperty(unsigned int, WriteMask, + __unsigned_int__getWriteMask__Face, + __void__setWriteMask__Face__unsigned_int, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Switch.cpp b/src/osgWrappers/introspection/osg/Switch.cpp new file mode 100644 index 000000000..5dca10777 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Switch.cpp @@ -0,0 +1,190 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< bool >, osg::Switch::ValueList) + +BEGIN_OBJECT_REFLECTOR(osg::Switch) + I_DeclaringFile("osg/Switch"); + I_BaseType(osg::Group); + I_Constructor0(____Switch, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Switch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Switch__C5_Switch_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Switch *, asSwitch, + Properties::VIRTUAL, + __Switch_P1__asSwitch, + "Convert 'this' into a Switch pointer if Node is a Switch, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + I_Method0(const osg::Switch *, asSwitch, + Properties::VIRTUAL, + __C5_Switch_P1__asSwitch, + "convert 'const this' into a const Switch pointer if Node is a Switch, otherwise return 0. ", + "Equivalent to dynamic_cast(this). "); + 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 &, x, + 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(). "); + I_IndexedProperty(bool, ChildValue, + __bool__getChildValue__C5_Node_P1, + __void__setChildValue__C5_Node_P1__bool, + 0); + I_SimpleProperty(bool, NewChildDefaultValue, + __bool__getNewChildDefaultValue, + __void__setNewChildDefaultValue__bool); + I_SimpleProperty(unsigned int, SingleChildOn, + 0, + __bool__setSingleChildOn__unsigned_int); + I_IndexedProperty(bool, Value, + __bool__getValue__unsigned_int, + __void__setValue__unsigned_int__bool, + 0); + I_SimpleProperty(const osg::Switch::ValueList &, ValueList, + __C5_ValueList_R1__getValueList, + __void__setValueList__C5_ValueList_R1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< bool >) + diff --git a/src/osgWrappers/introspection/osg/TexEnv.cpp b/src/osgWrappers/introspection/osg/TexEnv.cpp new file mode 100644 index 000000000..1f4e33193 --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexEnv.cpp @@ -0,0 +1,129 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::TexEnv::Mode) + I_DeclaringFile("osg/TexEnv"); + I_EnumLabel(osg::TexEnv::DECAL); + I_EnumLabel(osg::TexEnv::MODULATE); + I_EnumLabel(osg::TexEnv::BLEND); + I_EnumLabel(osg::TexEnv::REPLACE); + I_EnumLabel(osg::TexEnv::ADD); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexEnv) + I_DeclaringFile("osg/TexEnv"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + Properties::NON_EXPLICIT, + ____TexEnv__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnv__C5_TexEnv_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(osg::TexEnv::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TexEnvCombine.cpp b/src/osgWrappers/introspection/osg/TexEnvCombine.cpp new file mode 100644 index 000000000..f541f9002 --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexEnvCombine.cpp @@ -0,0 +1,370 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::CombineParam) + I_DeclaringFile("osg/TexEnvCombine"); + I_EnumLabel(osg::TexEnvCombine::REPLACE); + I_EnumLabel(osg::TexEnvCombine::MODULATE); + I_EnumLabel(osg::TexEnvCombine::ADD); + I_EnumLabel(osg::TexEnvCombine::ADD_SIGNED); + I_EnumLabel(osg::TexEnvCombine::INTERPOLATE); + I_EnumLabel(osg::TexEnvCombine::SUBTRACT); + I_EnumLabel(osg::TexEnvCombine::DOT3_RGB); + I_EnumLabel(osg::TexEnvCombine::DOT3_RGBA); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::SourceParam) + I_DeclaringFile("osg/TexEnvCombine"); + I_EnumLabel(osg::TexEnvCombine::CONSTANT); + I_EnumLabel(osg::TexEnvCombine::PRIMARY_COLOR); + I_EnumLabel(osg::TexEnvCombine::PREVIOUS); + I_EnumLabel(osg::TexEnvCombine::TEXTURE); + I_EnumLabel(osg::TexEnvCombine::TEXTURE0); + I_EnumLabel(osg::TexEnvCombine::TEXTURE1); + I_EnumLabel(osg::TexEnvCombine::TEXTURE2); + I_EnumLabel(osg::TexEnvCombine::TEXTURE3); + I_EnumLabel(osg::TexEnvCombine::TEXTURE4); + I_EnumLabel(osg::TexEnvCombine::TEXTURE5); + I_EnumLabel(osg::TexEnvCombine::TEXTURE6); + I_EnumLabel(osg::TexEnvCombine::TEXTURE7); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnvCombine::OperandParam) + I_DeclaringFile("osg/TexEnvCombine"); + I_EnumLabel(osg::TexEnvCombine::SRC_COLOR); + I_EnumLabel(osg::TexEnvCombine::ONE_MINUS_SRC_COLOR); + I_EnumLabel(osg::TexEnvCombine::SRC_ALPHA); + I_EnumLabel(osg::TexEnvCombine::ONE_MINUS_SRC_ALPHA); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexEnvCombine) + I_DeclaringFile("osg/TexEnvCombine"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____TexEnvCombine, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnvCombine &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnvCombine__C5_TexEnvCombine_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_ProtectedMethod1(bool, needsTexEnvCombiner, IN, GLint, value, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__needsTexEnvCombiner__GLint, + "", + ""); + I_ProtectedMethod0(void, computeNeedForTexEnvCombiners, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeNeedForTexEnvCombiners, + "", + ""); + I_SimpleProperty(GLint, Combine_Alpha, + __GLint__getCombine_Alpha, + __void__setCombine_Alpha__GLint); + I_SimpleProperty(GLint, Combine_RGB, + __GLint__getCombine_RGB, + __void__setCombine_RGB__GLint); + I_SimpleProperty(const osg::Vec4 &, ConstantColor, + __C5_Vec4_R1__getConstantColor, + __void__setConstantColor__C5_Vec4_R1); + I_SimpleProperty(osg::Vec3, ConstantColorAsLightDirection, + __Vec3__getConstantColorAsLightDirection, + __void__setConstantColorAsLightDirection__C5_Vec3_R1); + I_SimpleProperty(GLint, Operand0_Alpha, + __GLint__getOperand0_Alpha, + __void__setOperand0_Alpha__GLint); + I_SimpleProperty(GLint, Operand0_RGB, + __GLint__getOperand0_RGB, + __void__setOperand0_RGB__GLint); + I_SimpleProperty(GLint, Operand1_Alpha, + __GLint__getOperand1_Alpha, + __void__setOperand1_Alpha__GLint); + I_SimpleProperty(GLint, Operand1_RGB, + __GLint__getOperand1_RGB, + __void__setOperand1_RGB__GLint); + I_SimpleProperty(GLint, Operand2_Alpha, + __GLint__getOperand2_Alpha, + __void__setOperand2_Alpha__GLint); + I_SimpleProperty(GLint, Operand2_RGB, + __GLint__getOperand2_RGB, + __void__setOperand2_RGB__GLint); + I_SimpleProperty(float, Scale_Alpha, + __float__getScale_Alpha, + __void__setScale_Alpha__float); + I_SimpleProperty(float, Scale_RGB, + __float__getScale_RGB, + __void__setScale_RGB__float); + I_SimpleProperty(GLint, Source0_Alpha, + __GLint__getSource0_Alpha, + __void__setSource0_Alpha__GLint); + I_SimpleProperty(GLint, Source0_RGB, + __GLint__getSource0_RGB, + __void__setSource0_RGB__GLint); + I_SimpleProperty(GLint, Source1_Alpha, + __GLint__getSource1_Alpha, + __void__setSource1_Alpha__GLint); + I_SimpleProperty(GLint, Source1_RGB, + __GLint__getSource1_RGB, + __void__setSource1_RGB__GLint); + I_SimpleProperty(GLint, Source2_Alpha, + __GLint__getSource2_Alpha, + __void__setSource2_Alpha__GLint); + I_SimpleProperty(GLint, Source2_RGB, + __GLint__getSource2_RGB, + __void__setSource2_RGB__GLint); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TexEnvFilter.cpp b/src/osgWrappers/introspection/osg/TexEnvFilter.cpp new file mode 100644 index 000000000..065e20d1e --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexEnvFilter.cpp @@ -0,0 +1,101 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::TexEnvFilter) + I_DeclaringFile("osg/TexEnvFilter"); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, float, lodBias, 0.0f, + Properties::NON_EXPLICIT, + ____TexEnvFilter__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnvFilter &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnvFilter__C5_TexEnvFilter_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, 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_SimpleProperty(float, LodBias, + __float__getLodBias, + __void__setLodBias__float); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TexGen.cpp b/src/osgWrappers/introspection/osg/TexGen.cpp new file mode 100644 index 000000000..dd2a0607a --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexGen.cpp @@ -0,0 +1,150 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::TexGen::Mode) + I_DeclaringFile("osg/TexGen"); + I_EnumLabel(osg::TexGen::OBJECT_LINEAR); + I_EnumLabel(osg::TexGen::EYE_LINEAR); + I_EnumLabel(osg::TexGen::SPHERE_MAP); + I_EnumLabel(osg::TexGen::NORMAL_MAP); + I_EnumLabel(osg::TexGen::REFLECTION_MAP); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexGen::Coord) + I_DeclaringFile("osg/TexGen"); + I_EnumLabel(osg::TexGen::S); + I_EnumLabel(osg::TexGen::T); + I_EnumLabel(osg::TexGen::R); + I_EnumLabel(osg::TexGen::Q); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexGen) + I_DeclaringFile("osg/TexGen"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____TexGen, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGen__C5_TexGen_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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, 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. "); + I_SimpleProperty(osg::TexGen::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_IndexedProperty(const osg::Plane &, Plane, + __C5_Plane_R1__getPlane__Coord, + __void__setPlane__Coord__C5_Plane_R1, + 0); + I_SimpleProperty(const osg::Matrixd &, PlanesFromMatrix, + 0, + __void__setPlanesFromMatrix__C5_Matrixd_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TexGenNode.cpp b/src/osgWrappers/introspection/osg/TexGenNode.cpp new file mode 100644 index 000000000..687e1675d --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexGenNode.cpp @@ -0,0 +1,131 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::TexGenNode::ReferenceFrame) + I_DeclaringFile("osg/TexGenNode"); + I_EnumLabel(osg::TexGenNode::RELATIVE_RF); + I_EnumLabel(osg::TexGenNode::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) + I_DeclaringFile("osg/TexGenNode"); + I_BaseType(osg::Group); + I_Constructor0(____TexGenNode, + "", + ""); + I_Constructor1(IN, osg::TexGen *, texgen, + Properties::NON_EXPLICIT, + ____TexGenNode__TexGen_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGenNode__C5_TexGenNode_R1__C5_CopyOp_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, 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. ", + ""); + I_SimpleProperty(osg::TexGenNode::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(osg::TexGen *, TexGen, + __TexGen_P1__getTexGen, + __void__setTexGen__TexGen_P1); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TexMat.cpp b/src/osgWrappers/introspection/osg/TexMat.cpp new file mode 100644 index 000000000..d2536423f --- /dev/null +++ b/src/osgWrappers/introspection/osg/TexMat.cpp @@ -0,0 +1,123 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::TexMat) + I_DeclaringFile("osg/TexMat"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____TexMat, + "", + ""); + I_Constructor1(IN, const osg::Matrix &, matrix, + Properties::NON_EXPLICIT, + ____TexMat__C5_Matrix_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexMat__C5_TexMat_R1__C5_CopyOp_R1, + "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 &, x, + 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. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); + I_SimpleProperty(bool, ScaleByTextureRectangleSize, + __bool__getScaleByTextureRectangleSize, + __void__setScaleByTextureRectangleSize__bool); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Texture.cpp b/src/osgWrappers/introspection/osg/Texture.cpp new file mode 100644 index 000000000..67868409f --- /dev/null +++ b/src/osgWrappers/introspection/osg/Texture.cpp @@ -0,0 +1,1226 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::WRAP_S); + I_EnumLabel(osg::Texture::WRAP_T); + I_EnumLabel(osg::Texture::WRAP_R); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::WrapMode) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::CLAMP); + I_EnumLabel(osg::Texture::CLAMP_TO_EDGE); + I_EnumLabel(osg::Texture::CLAMP_TO_BORDER); + I_EnumLabel(osg::Texture::REPEAT); + I_EnumLabel(osg::Texture::MIRROR); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::FilterParameter) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::MIN_FILTER); + I_EnumLabel(osg::Texture::MAG_FILTER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::FilterMode) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::LINEAR); + I_EnumLabel(osg::Texture::LINEAR_MIPMAP_LINEAR); + I_EnumLabel(osg::Texture::LINEAR_MIPMAP_NEAREST); + I_EnumLabel(osg::Texture::NEAREST); + I_EnumLabel(osg::Texture::NEAREST_MIPMAP_LINEAR); + I_EnumLabel(osg::Texture::NEAREST_MIPMAP_NEAREST); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatMode) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::USE_IMAGE_DATA_FORMAT); + I_EnumLabel(osg::Texture::USE_USER_DEFINED_FORMAT); + I_EnumLabel(osg::Texture::USE_ARB_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT1_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT3_COMPRESSION); + I_EnumLabel(osg::Texture::USE_S3TC_DXT5_COMPRESSION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatType) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::NORMALIZED); + I_EnumLabel(osg::Texture::FLOAT); + I_EnumLabel(osg::Texture::SIGNED_INTEGER); + I_EnumLabel(osg::Texture::UNSIGNED_INTEGER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowCompareFunc) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::NEVER); + I_EnumLabel(osg::Texture::LESS); + I_EnumLabel(osg::Texture::EQUAL); + I_EnumLabel(osg::Texture::LEQUAL); + I_EnumLabel(osg::Texture::GREATER); + I_EnumLabel(osg::Texture::NOTEQUAL); + I_EnumLabel(osg::Texture::GEQUAL); + I_EnumLabel(osg::Texture::ALWAYS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::LUMINANCE); + I_EnumLabel(osg::Texture::INTENSITY); + I_EnumLabel(osg::Texture::ALPHA); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Texture::GenerateMipmapMode) + I_DeclaringFile("osg/Texture"); + I_EnumLabel(osg::Texture::GENERATE_MIPMAP_NONE); + I_EnumLabel(osg::Texture::GENERATE_MIPMAP); + I_EnumLabel(osg::Texture::GENERATE_MIPMAP_TEX_PARAMETER); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) + I_DeclaringFile("osg/Texture"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Texture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture__C5_Texture_R1__C5_CopyOp_R1, + "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 &, x, + 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::Texture *, asTexture, + Properties::VIRTUAL, + __Texture_P1__asTexture, + "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", + ""); + I_Method0(const osg::Texture *, asTexture, + Properties::VIRTUAL, + __C5_Texture_P1__asTexture, + "Fast alternative to dynamic_cast<> for determining if state attribute is a Texture. ", + ""); + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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::Vec4d &, color, + Properties::NON_VIRTUAL, + __void__setBorderColor__C5_Vec4d_R1, + "Sets the border color. ", + "Only used when wrap mode is CLAMP_TO_BORDER. The border color will be casted to the appropriate type to match the internal pixel format of the texture. "); + I_Method0(const osg::Vec4d &, getBorderColor, + Properties::NON_VIRTUAL, + __C5_Vec4d_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 (equivalent 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 referenced 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. The corresponding internal format type will be computed. "); + 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_Method0(osg::Texture::InternalFormatType, getInternalFormatType, + Properties::NON_VIRTUAL, + __InternalFormatType__getInternalFormatType, + "Get the internal texture format type. ", + ""); + I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __TextureObject_P1__getTextureObject__unsigned_int, + "Returns a pointer to the TextureBbject for the current context. ", + ""); + I_Method2(void, setTextureObject, IN, unsigned int, contextID, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__setTextureObject__unsigned_int__TextureObject_P1, + "", + ""); + 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_Method0(void, allocateMipmapLevels, + Properties::NON_VIRTUAL, + __void__allocateMipmapLevels, + "Force a manual allocation of the mipmap levels on the next apply() call. ", + "User is responsible for filling the mipmap levels with valid data. The OpenGL's glGenerateMipmapEXT function is used to generate the mipmap levels. If glGenerateMipmapEXT is not supported or texture's internal format is not supported by the glGenerateMipmapEXT, then empty mipmap levels will be allocated manually. The mipmap levels are also allocated if a non-mipmapped min filter is used. "); + 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_Method0(bool, getShadowComparison, + Properties::NON_VIRTUAL, + __bool__getShadowComparison, + "", + ""); + 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 graphics context to read from when using PBuffers for RenderToTexture. ", + ""); + I_Method0(osg::GraphicsContext *, getReadPBuffer, + Properties::NON_VIRTUAL, + __GraphicsContext_P1__getReadPBuffer, + "Get the PBuffer graphics 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 graphics 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 overridden. ", + ""); + 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 objects 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_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Gets the extension for the specified context. ", + "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "Overrides Extensions objects across graphics contexts. ", + "Typically used to ensure the same lowest common denominator of extensions on systems with different graphics pipes. "); + I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, + __bool__isCompressedInternalFormat__GLint_S, + "Determine whether the given internalFormat is a compressed image format. ", + ""); + I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, + __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, + "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", + "The block size and the size are output parameters. "); + I_StaticMethod1(osg::ref_ptr< osg::Texture::TextureObjectManager > &, getTextureObjectManager, IN, unsigned int, contextID, + __osg_ref_ptrT1_Texture_TextureObjectManager__R1__getTextureObjectManager__unsigned_int_S, + "", + ""); + I_StaticMethod3(osg::Texture::TextureObject *, generateTextureObject, IN, const osg::Texture *, texture, IN, unsigned int, contextID, IN, GLenum, target, + __TextureObject_P1__generateTextureObject__C5_Texture_P1__unsigned_int__GLenum_S, + "", + ""); + I_StaticMethod9(osg::Texture::TextureObject *, generateTextureObject, IN, const osg::Texture *, texture, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + __TextureObject_P1__generateTextureObject__C5_Texture_P1__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, + "", + ""); + I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, + __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, + "Set the minimum number of texture objects to retain in the deleted display list cache. ", + ""); + I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, + __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, + "Get the minimum number of display lists to retain in the deleted display list cache. ", + ""); + I_StaticMethod1(void, deleteAllTextureObjects, IN, unsigned int, contextID, + __void__deleteAllTextureObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, discardAllTextureObjects, IN, unsigned int, contextID, + __void__discardAllTextureObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, + __void__flushAllDeletedTextureObjects__unsigned_int_S, + "", + ""); + I_StaticMethod1(void, discardAllDeletedTextureObjects, IN, unsigned int, contextID, + __void__discardAllDeletedTextureObjects__unsigned_int_S, + "", + ""); + I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, + "", + ""); + I_StaticMethod2(void, releaseTextureObject, IN, unsigned int, contextID, IN, osg::Texture::TextureObject *, to, + __void__releaseTextureObject__unsigned_int__TextureObject_P1_S, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::PURE_VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, computeInternalFormatWithImage, IN, const osg::Image &, image, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeInternalFormatWithImage__C5_osg_Image_R1, + "", + ""); + I_ProtectedMethod5(void, computeRequiredTextureDimensions, IN, osg::State &, state, IN, const osg::Image &, image, IN, GLsizei &, width, IN, GLsizei &, height, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeRequiredTextureDimensions__State_R1__C5_osg_Image_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormatType, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeInternalFormatType, + "", + ""); + I_ProtectedMethod2(void, applyTexParameters, IN, GLenum, target, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexParameters__GLenum__State_R1, + "Helper method. ", + "Sets texture parameters. "); + I_ProtectedMethod1(bool, isHardwareMipmapGenerationEnabled, IN, const osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isHardwareMipmapGenerationEnabled__C5_State_R1, + "Returns true if _useHardwareMipMapGeneration is true and either glGenerateMipmapEXT() or GL_GENERATE_MIPMAP_SGIS are supported. ", + ""); + I_ProtectedMethod2(osg::Texture::GenerateMipmapMode, mipmapBeforeTexImage, IN, const osg::State &, state, IN, bool, hardwareMipmapOn, + Properties::NON_VIRTUAL, + Properties::CONST, + __GenerateMipmapMode__mipmapBeforeTexImage__C5_State_R1__bool, + "Helper methods to be called before and after calling gl[Compressed][Copy]Tex[Sub]Image2D to handle generating mipmaps. ", + ""); + I_ProtectedMethod2(void, mipmapAfterTexImage, IN, osg::State &, state, IN, osg::Texture::GenerateMipmapMode, beforeResult, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__mipmapAfterTexImage__State_R1__GenerateMipmapMode, + "", + ""); + I_ProtectedMethod1(void, generateMipmap, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__generateMipmap__State_R1, + "Helper method to generate mipmap levels by calling of glGenerateMipmapEXT. ", + "If it is not supported, then call the virtual allocateMipmap() method "); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod1(int, compareTexture, IN, const osg::Texture &, rhs, + Properties::NON_VIRTUAL, + Properties::CONST, + __int__compareTexture__C5_Texture_R1, + "Returns -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_ProtectedMethod1(int, compareTextureObjects, IN, const osg::Texture &, rhs, + Properties::NON_VIRTUAL, + Properties::CONST, + __int__compareTextureObjects__C5_Texture_R1, + "Returns -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_SimpleProperty(const osg::Vec4d &, BorderColor, + __C5_Vec4d_R1__getBorderColor, + __void__setBorderColor__C5_Vec4d_R1); + I_SimpleProperty(GLint, BorderWidth, + __GLint__getBorderWidth, + __void__setBorderWidth__GLint); + I_SimpleProperty(bool, ClientStorageHint, + __bool__getClientStorageHint, + __void__setClientStorageHint__bool); + I_IndexedProperty(osg::Texture::FilterMode, Filter, + __FilterMode__getFilter__FilterParameter, + __void__setFilter__FilterParameter__FilterMode, + 0); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(GLint, InternalFormat, + __GLint__getInternalFormat, + __void__setInternalFormat__GLint); + I_SimpleProperty(osg::Texture::InternalFormatMode, InternalFormatMode, + __InternalFormatMode__getInternalFormatMode, + __void__setInternalFormatMode__InternalFormatMode); + I_SimpleProperty(osg::Texture::InternalFormatType, InternalFormatType, + __InternalFormatType__getInternalFormatType, + 0); + I_SimpleProperty(float, MaxAnisotropy, + __float__getMaxAnisotropy, + __void__setMaxAnisotropy__float); + I_SimpleProperty(osg::GraphicsContext *, ReadPBuffer, + __GraphicsContext_P1__getReadPBuffer, + __void__setReadPBuffer__GraphicsContext_P1); + I_SimpleProperty(bool, ResizeNonPowerOfTwoHint, + __bool__getResizeNonPowerOfTwoHint, + __void__setResizeNonPowerOfTwoHint__bool); + I_SimpleProperty(float, ShadowAmbient, + __float__getShadowAmbient, + __void__setShadowAmbient__float); + I_SimpleProperty(osg::Texture::ShadowCompareFunc, ShadowCompareFunc, + __ShadowCompareFunc__getShadowCompareFunc, + __void__setShadowCompareFunc__ShadowCompareFunc); + I_SimpleProperty(bool, ShadowComparison, + __bool__getShadowComparison, + __void__setShadowComparison__bool); + I_SimpleProperty(osg::Texture::ShadowTextureMode, ShadowTextureMode, + __ShadowTextureMode__getShadowTextureMode, + __void__setShadowTextureMode__ShadowTextureMode); + I_SimpleProperty(GLenum, SourceFormat, + __GLenum__getSourceFormat, + __void__setSourceFormat__GLenum); + I_SimpleProperty(GLenum, SourceType, + __GLenum__getSourceType, + __void__setSourceType__GLenum); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + 0); + I_IndexedProperty(osg::Texture::TextureObject *, TextureObject, + __TextureObject_P1__getTextureObject__unsigned_int, + __void__setTextureObject__unsigned_int__TextureObject_P1, + 0); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + 0); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(bool, UnRefImageDataAfterApply, + __bool__getUnRefImageDataAfterApply, + __void__setUnRefImageDataAfterApply__bool); + I_SimpleProperty(bool, UseHardwareMipMapGeneration, + __bool__getUseHardwareMipMapGeneration, + __void__setUseHardwareMipMapGeneration__bool); + I_IndexedProperty(osg::Texture::WrapMode, Wrap, + __WrapMode__getWrap__WrapParameter, + __void__setWrap__WrapParameter__WrapMode, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) + I_DeclaringFile("osg/Texture"); + I_BaseType(osg::Referenced); + I_Constructor3(IN, osg::Texture *, texture, IN, GLuint, id, IN, GLenum, target, + ____TextureObject__Texture_P1__GLuint__GLenum, + "", + ""); + I_Constructor3(IN, osg::Texture *, texture, IN, GLuint, id, IN, const osg::Texture::TextureProfile &, profile, + ____TextureObject__Texture_P1__GLuint__C5_TextureProfile_R1, + "", + ""); + I_Constructor9(IN, osg::Texture *, texture, IN, GLuint, id, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + ____TextureObject__Texture_P1__GLuint__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + 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_Method0(GLenum, id, + Properties::NON_VIRTUAL, + __GLenum__id, + "", + ""); + I_Method0(GLenum, target, + Properties::NON_VIRTUAL, + __GLenum__target, + "", + ""); + I_Method0(unsigned int, size, + Properties::NON_VIRTUAL, + __unsigned_int__size, + "", + ""); + I_Method1(void, setTexture, IN, osg::Texture *, texture, + Properties::NON_VIRTUAL, + __void__setTexture__Texture_P1, + "", + ""); + I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __Texture_P1__getTexture, + "", + ""); + I_Method1(void, setTimeStamp, IN, double, timestamp, + Properties::NON_VIRTUAL, + __void__setTimeStamp__double, + "", + ""); + I_Method0(double, getTimeStamp, + Properties::NON_VIRTUAL, + __double__getTimeStamp, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(bool, Allocated, + 0, + __void__setAllocated__bool); + I_SimpleProperty(osg::Texture *, Texture, + __Texture_P1__getTexture, + __void__setTexture__Texture_P1); + I_SimpleProperty(double, TimeStamp, + __double__getTimeStamp, + __void__setTimeStamp__double); + I_PublicMemberProperty(GLuint, _id); + I_PublicMemberProperty(osg::Texture::TextureProfile, _profile); + I_PublicMemberProperty(osg::Texture::TextureObjectSet *, _set); + I_PublicMemberProperty(osg::Texture::TextureObject *, _previous); + I_PublicMemberProperty(osg::Texture::TextureObject *, _next); + I_PublicMemberProperty(osg::Texture *, _texture); + I_PublicMemberProperty(bool, _allocated); + I_PublicMemberProperty(unsigned int, _frameLastUsed); + I_PublicMemberProperty(double, _timeStamp); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObjectManager) + I_DeclaringFile("osg/Texture"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____TextureObjectManager__unsigned_int, + "", + ""); + I_Method0(unsigned int, getContextID, + Properties::NON_VIRTUAL, + __unsigned_int__getContextID, + "", + ""); + I_Method1(void, setNumberActiveTextureObjects, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setNumberActiveTextureObjects__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getNumberActiveTextureObjects, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberActiveTextureObjects, + "", + ""); + I_Method0(unsigned int, getNumberActiveTextureObjects, + Properties::NON_VIRTUAL, + __unsigned_int__getNumberActiveTextureObjects, + "", + ""); + I_Method1(void, setNumberOrphanedTextureObjects, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setNumberOrphanedTextureObjects__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getNumberOrphanedTextureObjects, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberOrphanedTextureObjects, + "", + ""); + I_Method0(unsigned int, getNumberOrphanedTextureObjects, + Properties::NON_VIRTUAL, + __unsigned_int__getNumberOrphanedTextureObjects, + "", + ""); + I_Method1(void, setCurrTexturePoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setCurrTexturePoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int &, getCurrTexturePoolSize, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getCurrTexturePoolSize, + "", + ""); + I_Method0(unsigned int, getCurrTexturePoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getCurrTexturePoolSize, + "", + ""); + I_Method1(void, setMaxTexturePoolSize, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __void__setMaxTexturePoolSize__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxTexturePoolSize, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxTexturePoolSize, + "", + ""); + I_Method1(bool, hasSpace, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __bool__hasSpace__unsigned_int, + "", + ""); + I_Method1(bool, makeSpace, IN, unsigned int, size, + Properties::NON_VIRTUAL, + __bool__makeSpace__unsigned_int, + "", + ""); + I_Method2(osg::Texture::TextureObject *, generateTextureObject, IN, const osg::Texture *, texture, IN, GLenum, target, + Properties::NON_VIRTUAL, + __TextureObject_P1__generateTextureObject__C5_Texture_P1__GLenum, + "", + ""); + I_Method8(osg::Texture::TextureObject *, generateTextureObject, IN, const osg::Texture *, texture, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + Properties::NON_VIRTUAL, + __TextureObject_P1__generateTextureObject__C5_Texture_P1__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method0(void, handlePendingOrphandedTextureObjects, + Properties::NON_VIRTUAL, + __void__handlePendingOrphandedTextureObjects, + "", + ""); + I_Method0(void, deleteAllTextureObjects, + Properties::NON_VIRTUAL, + __void__deleteAllTextureObjects, + "", + ""); + I_Method0(void, discardAllTextureObjects, + Properties::NON_VIRTUAL, + __void__discardAllTextureObjects, + "", + ""); + I_Method0(void, flushAllDeletedTextureObjects, + Properties::NON_VIRTUAL, + __void__flushAllDeletedTextureObjects, + "", + ""); + I_Method0(void, discardAllDeletedTextureObjects, + Properties::NON_VIRTUAL, + __void__discardAllDeletedTextureObjects, + "", + ""); + I_Method2(void, flushDeletedTextureObjects, IN, double, currentTime, IN, double &, availableTime, + Properties::NON_VIRTUAL, + __void__flushDeletedTextureObjects__double__double_R1, + "", + ""); + I_Method1(void, releaseTextureObject, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__releaseTextureObject__TextureObject_P1, + "", + ""); + I_Method1(osg::Texture::TextureObjectSet *, getTextureObjectSet, IN, const osg::Texture::TextureProfile &, profile, + Properties::NON_VIRTUAL, + __TextureObjectSet_P1__getTextureObjectSet__C5_TextureProfile_R1, + "", + ""); + I_Method1(void, newFrame, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__newFrame__osg_FrameStamp_P1, + "", + ""); + I_Method0(void, resetStats, + Properties::NON_VIRTUAL, + __void__resetStats, + "", + ""); + I_Method0(void, reportStats, + Properties::NON_VIRTUAL, + __void__reportStats, + "", + ""); + I_Method0(unsigned int &, getFrameNumber, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getFrameNumber, + "", + ""); + I_Method0(unsigned int &, getNumberFrames, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberFrames, + "", + ""); + I_Method0(unsigned int &, getNumberDeleted, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberDeleted, + "", + ""); + I_Method0(double &, getDeleteTime, + Properties::NON_VIRTUAL, + __double_R1__getDeleteTime, + "", + ""); + I_Method0(unsigned int &, getNumberGenerated, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberGenerated, + "", + ""); + I_Method0(double &, getGenerateTime, + Properties::NON_VIRTUAL, + __double_R1__getGenerateTime, + "", + ""); + I_Method0(unsigned int &, getNumberApplied, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getNumberApplied, + "", + ""); + I_Method0(double &, getApplyTime, + Properties::NON_VIRTUAL, + __double_R1__getApplyTime, + "", + ""); + I_SimpleProperty(double &, ApplyTime, + __double_R1__getApplyTime, + 0); + I_SimpleProperty(unsigned int, ContextID, + __unsigned_int__getContextID, + 0); + I_SimpleProperty(unsigned int, CurrTexturePoolSize, + __unsigned_int__getCurrTexturePoolSize, + __void__setCurrTexturePoolSize__unsigned_int); + I_SimpleProperty(double &, DeleteTime, + __double_R1__getDeleteTime, + 0); + I_SimpleProperty(unsigned int &, FrameNumber, + __unsigned_int_R1__getFrameNumber, + 0); + I_SimpleProperty(double &, GenerateTime, + __double_R1__getGenerateTime, + 0); + I_SimpleProperty(unsigned int, MaxTexturePoolSize, + __unsigned_int__getMaxTexturePoolSize, + __void__setMaxTexturePoolSize__unsigned_int); + I_SimpleProperty(unsigned int, NumberActiveTextureObjects, + __unsigned_int__getNumberActiveTextureObjects, + __void__setNumberActiveTextureObjects__unsigned_int); + I_SimpleProperty(unsigned int &, NumberApplied, + __unsigned_int_R1__getNumberApplied, + 0); + I_SimpleProperty(unsigned int &, NumberDeleted, + __unsigned_int_R1__getNumberDeleted, + 0); + I_SimpleProperty(unsigned int &, NumberFrames, + __unsigned_int_R1__getNumberFrames, + 0); + I_SimpleProperty(unsigned int &, NumberGenerated, + __unsigned_int_R1__getNumberGenerated, + 0); + I_SimpleProperty(unsigned int, NumberOrphanedTextureObjects, + __unsigned_int__getNumberOrphanedTextureObjects, + __void__setNumberOrphanedTextureObjects__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObjectSet) + I_DeclaringFile("osg/Texture"); + I_BaseType(osg::Referenced); + I_Constructor2(IN, osg::Texture::TextureObjectManager *, parent, IN, const osg::Texture::TextureProfile &, profile, + ____TextureObjectSet__TextureObjectManager_P1__C5_TextureProfile_R1, + "", + ""); + I_Method0(void, handlePendingOrphandedTextureObjects, + Properties::NON_VIRTUAL, + __void__handlePendingOrphandedTextureObjects, + "", + ""); + I_Method0(void, deleteAllTextureObjects, + Properties::NON_VIRTUAL, + __void__deleteAllTextureObjects, + "", + ""); + I_Method0(void, discardAllTextureObjects, + Properties::NON_VIRTUAL, + __void__discardAllTextureObjects, + "", + ""); + I_Method0(void, flushAllDeletedTextureObjects, + Properties::NON_VIRTUAL, + __void__flushAllDeletedTextureObjects, + "", + ""); + I_Method0(void, discardAllDeletedTextureObjects, + Properties::NON_VIRTUAL, + __void__discardAllDeletedTextureObjects, + "", + ""); + I_Method2(void, flushDeletedTextureObjects, IN, double, currentTime, IN, double &, availableTime, + Properties::NON_VIRTUAL, + __void__flushDeletedTextureObjects__double__double_R1, + "", + ""); + I_Method1(osg::Texture::TextureObject *, takeFromOrphans, IN, osg::Texture *, texture, + Properties::NON_VIRTUAL, + __TextureObject_P1__takeFromOrphans__Texture_P1, + "", + ""); + I_Method1(osg::Texture::TextureObject *, takeOrGenerate, IN, osg::Texture *, texture, + Properties::NON_VIRTUAL, + __TextureObject_P1__takeOrGenerate__Texture_P1, + "", + ""); + I_Method1(void, moveToBack, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__moveToBack__TextureObject_P1, + "", + ""); + I_Method1(void, addToBack, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__addToBack__TextureObject_P1, + "", + ""); + I_Method1(void, orphan, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__orphan__TextureObject_P1, + "", + ""); + I_Method1(void, remove, IN, osg::Texture::TextureObject *, to, + Properties::NON_VIRTUAL, + __void__remove__TextureObject_P1, + "", + ""); + I_Method2(void, moveToSet, IN, osg::Texture::TextureObject *, to, IN, osg::Texture::TextureObjectSet *, set, + Properties::NON_VIRTUAL, + __void__moveToSet__TextureObject_P1__TextureObjectSet_P1, + "", + ""); + I_Method0(unsigned int, size, + Properties::NON_VIRTUAL, + __unsigned_int__size, + "", + ""); + I_Method1(bool, makeSpace, IN, unsigned int &, size, + Properties::NON_VIRTUAL, + __bool__makeSpace__unsigned_int_R1, + "", + ""); + I_Method0(bool, checkConsistency, + Properties::NON_VIRTUAL, + __bool__checkConsistency, + "", + ""); + I_Method0(osg::Texture::TextureObjectManager *, getParent, + Properties::NON_VIRTUAL, + __TextureObjectManager_P1__getParent, + "", + ""); + I_SimpleProperty(osg::Texture::TextureObjectManager *, Parent, + __TextureObjectManager_P1__getParent, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Texture::TextureProfile) + I_DeclaringFile("osg/Texture"); + I_Constructor1(IN, GLenum, target, + Properties::NON_EXPLICIT, + ____TextureProfile__GLenum, + "", + ""); + I_Constructor7(IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + ____TextureProfile__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + I_Method6(void, set, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, + Properties::NON_VIRTUAL, + __void__set__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint, + "", + ""); + 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, computeSize, + Properties::NON_VIRTUAL, + __void__computeSize, + "", + ""); + I_PublicMemberProperty(GLenum, _target); + I_PublicMemberProperty(GLint, _numMipmapLevels); + I_PublicMemberProperty(GLenum, _internalFormat); + I_PublicMemberProperty(GLsizei, _width); + I_PublicMemberProperty(GLsizei, _height); + I_PublicMemberProperty(GLsizei, _depth); + I_PublicMemberProperty(GLint, _border); + I_PublicMemberProperty(unsigned int, _size); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture::TextureObject >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Texture::TextureObject *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture::TextureObjectManager >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Texture::TextureObjectManager *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Texture::TextureObjectManager > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Texture::TextureObjectManager *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Texture::TextureObjectManager *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture::TextureObjectManager > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Texture::TextureObjectManager *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Texture::TextureObject > >) + diff --git a/src/osgWrappers/introspection/osg/Texture1D.cpp b/src/osgWrappers/introspection/osg/Texture1D.cpp new file mode 100644 index 000000000..ff38b732c --- /dev/null +++ b/src/osgWrappers/introspection/osg/Texture1D.cpp @@ -0,0 +1,244 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Texture1D) + I_DeclaringFile("osg/Texture1D"); + I_BaseType(osg::Texture); + I_Constructor0(____Texture1D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____Texture1D__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture1D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture1D__C5_Texture1D_R1__C5_CopyOp_R1, + "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 &, x, + 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::Texture::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. "); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod5(void, applyTexImage1D, IN, GLenum, target, IN, osg::Image *, image, IN, osg::State &, state, IN, GLsizei &, width, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage1D__GLenum__Image_P1__State_R1__GLsizei_R1__GLsizei_R1, + "Helper method. ", + "Create the texture without setting or using a texture binding. "); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture1D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + 0); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture1D::SubloadCallback) + I_DeclaringFile("osg/Texture1D"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Texture2D.cpp b/src/osgWrappers/introspection/osg/Texture2D.cpp new file mode 100644 index 000000000..3e356a103 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Texture2D.cpp @@ -0,0 +1,248 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Texture2D) + I_DeclaringFile("osg/Texture2D"); + I_BaseType(osg::Texture); + I_Constructor0(____Texture2D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____Texture2D__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, + "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 &, x, + 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::Texture::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. "); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture2D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) + I_DeclaringFile("osg/Texture2D"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Texture2DArray.cpp b/src/osgWrappers/introspection/osg/Texture2DArray.cpp new file mode 100644 index 000000000..abc77195f --- /dev/null +++ b/src/osgWrappers/introspection/osg/Texture2DArray.cpp @@ -0,0 +1,252 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Texture2DArray) + I_DeclaringFile("osg/Texture2DArray"); + I_BaseType(osg::Texture); + I_Constructor0(____Texture2DArray, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture2DArray &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture2DArray__C5_Texture2DArray_R1__C5_CopyOp_R1, + "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 &, x, + 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, layer, IN, osg::Image *, image, + Properties::VIRTUAL, + __void__setImage__unsigned_int__Image_P1, + "Set the texture image for specified layer. ", + ""); + I_Method1(osg::Image *, getImage, IN, unsigned int, layer, + Properties::VIRTUAL, + __Image_P1__getImage__unsigned_int, + "Get the texture image for specified layer. ", + ""); + I_Method1(const osg::Image *, getImage, IN, unsigned int, layer, + Properties::VIRTUAL, + __C5_Image_P1__getImage__unsigned_int, + "Get the const texture image for specified layer. ", + ""); + I_Method0(unsigned int, getNumImages, + Properties::VIRTUAL, + __unsigned_int__getNumImages, + "Get the number of images that are assigned to the Texture. ", + "The number is equal to the texture depth. To get the maximum possible image/layer count, you have to use the extension subclass, since it provides graphic context dependent information. "); + I_Method2(unsigned int &, getModifiedCount, IN, unsigned int, layer, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __unsigned_int_R1__getModifiedCount__unsigned_int__unsigned_int, + "Check how often was a certain layer in the given context modified. ", + ""); + I_Method3(void, setTextureSize, IN, int, width, IN, int, height, IN, int, depth, + Properties::NON_VIRTUAL, + __void__setTextureSize__int__int__int, + "Set the texture width and height. ", + "If width or height are zero then the respective size value is calculated from the source image sizes. Depth parameter specifies the number of layers to be used. "); + 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::Texture2DArray::SubloadCallback *, cb, + Properties::NON_VIRTUAL, + __void__setSubloadCallback__SubloadCallback_P1, + "", + ""); + I_Method0(osg::Texture2DArray::SubloadCallback *, getSubloadCallback, + Properties::NON_VIRTUAL, + __SubloadCallback_P1__getSubloadCallback, + "", + ""); + I_Method0(const osg::Texture2DArray::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::Texture::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, copyTexSubImage2DArray, 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__copyTexSubImage2DArray__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 and yoffset. zoffset specifies the layer of the texture array to which the result is copied. "); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "Bind the texture if already compiled. ", + "Otherwise recompile. "); + I_StaticMethod2(osg::Texture2DArray::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture2DArray::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_ProtectedMethod0(bool, imagesValid, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__imagesValid, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod7(void, applyTexImage2DArray_subload, IN, osg::State &, state, IN, osg::Image *, image, IN, GLsizei, inwidth, IN, GLsizei, inheight, IN, GLsizei, indepth, IN, GLint, inInternalFormat, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage2DArray_subload__State_R1__Image_P1__GLsizei__GLsizei__GLsizei__GLint__GLsizei_R1, + "", + ""); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture2DArray::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + __void__setTextureDepth__int); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2DArray::SubloadCallback) + I_DeclaringFile("osg/Texture2DArray"); + I_BaseType(osg::Referenced); + I_Constructor0(____SubloadCallback, + "", + ""); + I_Method2(void, load, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture2DArray_R1__State_R1, + "", + ""); + I_Method2(void, subload, IN, const osg::Texture2DArray &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture2DArray_R1__State_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Texture3D.cpp b/src/osgWrappers/introspection/osg/Texture3D.cpp new file mode 100644 index 000000000..141454846 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Texture3D.cpp @@ -0,0 +1,273 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::Texture3D) + I_DeclaringFile("osg/Texture3D"); + I_BaseType(osg::Texture); + I_Constructor0(____Texture3D, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____Texture3D__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Texture3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Texture3D__C5_Texture3D_R1__C5_CopyOp_R1, + "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 &, x, + 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::Texture::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. "); + I_StaticMethod2(osg::Texture3D::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Encapsulates queries of extension availability, obtains extension function pointers, and provides convenience wrappers for calling extension functions. ", + ""); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture3D::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "Overrides Extensions objects across graphics contexts. ", + "Typically used to ensure the same lowest common denominator of extensions on systems with different graphics pipes. "); + I_ProtectedMethod6(void, computeRequiredTextureDimensions, IN, osg::State &, state, IN, const osg::Image &, image, IN, GLsizei &, width, IN, GLsizei &, height, IN, GLsizei &, depth, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeRequiredTextureDimensions__State_R1__C5_osg_Image_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod7(void, applyTexImage3D, IN, GLenum, target, IN, osg::Image *, image, IN, osg::State &, state, IN, GLsizei &, inwidth, IN, GLsizei &, inheight, IN, GLsizei &, indepth, IN, GLsizei &, numMipmapLevels, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage3D__GLenum__Image_P1__State_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1__GLsizei_R1, + "", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::Texture3D::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + __void__setTextureDepth__int); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) + I_DeclaringFile("osg/Texture3D"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TextureCubeMap.cpp b/src/osgWrappers/introspection/osg/TextureCubeMap.cpp new file mode 100644 index 000000000..0549c788a --- /dev/null +++ b/src/osgWrappers/introspection/osg/TextureCubeMap.cpp @@ -0,0 +1,289 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::TextureCubeMap::Face) + I_DeclaringFile("osg/TextureCubeMap"); + I_EnumLabel(osg::TextureCubeMap::POSITIVE_X); + I_EnumLabel(osg::TextureCubeMap::NEGATIVE_X); + I_EnumLabel(osg::TextureCubeMap::POSITIVE_Y); + I_EnumLabel(osg::TextureCubeMap::NEGATIVE_Y); + I_EnumLabel(osg::TextureCubeMap::POSITIVE_Z); + I_EnumLabel(osg::TextureCubeMap::NEGATIVE_Z); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap) + I_DeclaringFile("osg/TextureCubeMap"); + I_BaseType(osg::Texture); + I_Constructor0(____TextureCubeMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TextureCubeMap &, cm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TextureCubeMap__C5_TextureCubeMap_R1__C5_CopyOp_R1, + "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 &, x, + 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. "); + I_StaticMethod2(osg::TextureCubeMap::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::TextureCubeMap::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_ProtectedMethod0(bool, imagesValid, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__imagesValid, + "", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ArrayProperty(osg::Image *, Image, + __Image_P1__getImage__unsigned_int, + __void__setImage__unsigned_int__Image_P1, + __unsigned_int__getNumImages, + 0, + 0, + 0); + I_SimpleProperty(unsigned int, NumMipmapLevels, + 0, + __void__setNumMipmapLevels__unsigned_int); + I_SimpleProperty(osg::TextureCubeMap::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TextureCubeMap::Extensions) + I_DeclaringFile("osg/TextureCubeMap"); + 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, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setCubeMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCubeMapSupported__bool, + "", + ""); + I_Method0(bool, isCubeMapSupported, + Properties::NON_VIRTUAL, + __bool__isCubeMapSupported, + "", + ""); + I_SimpleProperty(bool, CubeMapSupported, + 0, + __void__setCubeMapSupported__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureCubeMap::SubloadCallback) + I_DeclaringFile("osg/TextureCubeMap"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/TextureRectangle.cpp b/src/osgWrappers/introspection/osg/TextureRectangle.cpp new file mode 100644 index 000000000..c58f33edc --- /dev/null +++ b/src/osgWrappers/introspection/osg/TextureRectangle.cpp @@ -0,0 +1,247 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::TextureRectangle) + I_DeclaringFile("osg/TextureRectangle"); + I_BaseType(osg::Texture); + I_Constructor0(____TextureRectangle, + "", + ""); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____TextureRectangle__Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TextureRectangle &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TextureRectangle__C5_TextureRectangle_R1__C5_CopyOp_R1, + "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 &, x, + 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 respective 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. ", + ""); + I_ProtectedMethod0(void, computeInternalFormat, + Properties::VIRTUAL, + Properties::CONST, + __void__computeInternalFormat, + "", + ""); + I_ProtectedMethod1(void, allocateMipmap, IN, osg::State &, state, + Properties::VIRTUAL, + Properties::CONST, + __void__allocateMipmap__State_R1, + "Allocate mipmap levels of the texture by subsequent calling of glTexImage* function. ", + ""); + I_ProtectedMethod5(void, applyTexImage_load, IN, GLenum, target, IN, osg::Image *, image, IN, osg::State &, state, IN, GLsizei &, inwidth, IN, GLsizei &, inheight, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage_load__GLenum__Image_P1__State_R1__GLsizei_R1__GLsizei_R1, + "", + ""); + I_ProtectedMethod6(void, applyTexImage_subload, IN, GLenum, target, IN, osg::Image *, image, IN, osg::State &, state, IN, GLsizei &, inwidth, IN, GLsizei &, inheight, IN, GLint &, inInternalFormat, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__applyTexImage_subload__GLenum__Image_P1__State_R1__GLsizei_R1__GLsizei_R1__GLint_R1, + "", + ""); + I_SimpleProperty(osg::Image *, Image, + __Image_P1__getImage, + __void__setImage__Image_P1); + I_SimpleProperty(osg::TextureRectangle::SubloadCallback *, SubloadCallback, + __SubloadCallback_P1__getSubloadCallback, + __void__setSubloadCallback__SubloadCallback_P1); + I_SimpleProperty(int, TextureDepth, + __int__getTextureDepth, + 0); + I_SimpleProperty(int, TextureHeight, + __int__getTextureHeight, + __void__setTextureHeight__int); + I_SimpleProperty(GLenum, TextureTarget, + __GLenum__getTextureTarget, + 0); + I_SimpleProperty(int, TextureWidth, + __int__getTextureWidth, + __void__setTextureWidth__int); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::TextureRectangle::SubloadCallback) + I_DeclaringFile("osg/TextureRectangle"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Timer.cpp b/src/osgWrappers/introspection/osg/Timer.cpp new file mode 100644 index 000000000..9d7b53d1c --- /dev/null +++ b/src/osgWrappers/introspection/osg/Timer.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::ElapsedTime) + I_DeclaringFile("osg/Timer"); + I_ConstructorWithDefaults2(IN, double *, elapsedTime, , IN, osg::Timer *, timer, 0, + ____ElapsedTime__double_P1__osg_Timer_P1, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::Timer *, timer, 0, + Properties::NON_EXPLICIT, + ____ElapsedTime__osg_Timer_P1, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(double, elapsedTime, + Properties::NON_VIRTUAL, + __double__elapsedTime, + "", + ""); + I_Method0(void, finish, + Properties::NON_VIRTUAL, + __void__finish, + "", + ""); + I_ProtectedMethod1(void, init, IN, osg::Timer *, timer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init__osg_Timer_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Timer) + I_DeclaringFile("osg/Timer"); + I_Constructor0(____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 number of seconds per tick. ", + ""); + I_StaticMethod0(osg::Timer *, instance, + __Timer_P1__instance_S, + "", + ""); + I_SimpleProperty(double, SecondsPerTick, + __double__getSecondsPerTick, + 0); + I_SimpleProperty(osg::Timer_t, StartTick, + __Timer_t__getStartTick, + __void__setStartTick__Timer_t); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned long long, osg::Timer_t) + diff --git a/src/osgWrappers/introspection/osg/TransferFunction.cpp b/src/osgWrappers/introspection/osg/TransferFunction.cpp new file mode 100644 index 000000000..3311ea2a1 --- /dev/null +++ b/src/osgWrappers/introspection/osg/TransferFunction.cpp @@ -0,0 +1,195 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::TransferFunction) + I_DeclaringFile("osg/TransferFunction"); + I_BaseType(osg::Object); + I_Constructor0(____TransferFunction, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TransferFunction &, tf, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TransferFunction__C5_TransferFunction_R1__C5_CopyOp_R1, + "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 &, 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(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "Get the image that is used for passing the transfer function data to the GPU. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::NON_VIRTUAL, + __C5_osg_Image_P1__getImage, + "Get the const image that is used for passing the transfer function data to the GPU. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< float COMMA osg::Vec4 >, osg::TransferFunction1D::ColorMap) + +BEGIN_OBJECT_REFLECTOR(osg::TransferFunction1D) + I_DeclaringFile("osg/TransferFunction"); + I_BaseType(osg::TransferFunction); + I_Constructor0(____TransferFunction1D, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TransferFunction1D &, tf, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TransferFunction1D__C5_TransferFunction1D_R1__C5_CopyOp_R1, + "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 &, 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(float, getMinimum, + Properties::NON_VIRTUAL, + __float__getMinimum, + "Get the mnimum transfer function value. ", + ""); + I_Method0(float, getMaximum, + Properties::NON_VIRTUAL, + __float__getMaximum, + "Get the maximum transfer function value. ", + ""); + I_Method1(void, allocate, IN, unsigned int, numImageCells, + Properties::NON_VIRTUAL, + __void__allocate__unsigned_int, + "allocate the osg::Image with specified dimension. ", + "The Image tracks the color map, and is used to represent the transfer function when download to GPU. "); + I_MethodWithDefaults1(void, clear, IN, const osg::Vec4 &, color, osg::Vec4(1.0f, 1.0f, 1.0f, 1.0f), + Properties::NON_VIRTUAL, + __void__clear__C5_osg_Vec4_R1, + "Clear the whole range to just represet a single color. ", + ""); + I_Method1(osg::Vec4, getPixelValue, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __osg_Vec4__getPixelValue__unsigned_int, + "Get pixel value from the image. ", + ""); + I_Method0(unsigned int, getNumberImageCells, + Properties::NON_VIRTUAL, + __unsigned_int__getNumberImageCells, + "Get the number of image cells that are assigned to the represent the transfer function when download to the GPU. ", + ""); + I_MethodWithDefaults3(void, setColor, IN, float, v, , IN, const osg::Vec4 &, color, , IN, bool, updateImage, true, + Properties::NON_VIRTUAL, + __void__setColor__float__C5_osg_Vec4_R1__bool, + "Set the color for a specified transfer function value. ", + "updateImage defaults to true, and tells the setColor function to update the associate osg::Image that tracks the color map. Pass in false as the updateImage parameter if you are setting up many values at once to avoid recomputating og the image data, then once all setColor calls are made explictly call updateImage() to bring the osg::Image back into sync with the color map. "); + I_Method1(osg::Vec4, getColor, IN, float, v, + Properties::NON_VIRTUAL, + __osg_Vec4__getColor__float, + "Get the color for a specified transfer function value, interpolating the value if no exact match is found. ", + ""); + I_Method0(osg::TransferFunction1D::ColorMap &, getColorMap, + Properties::NON_VIRTUAL, + __ColorMap_R1__getColorMap, + "Get the color map that stores the mapping between the the tranfser function value and the colour it maps to. ", + ""); + I_Method0(const osg::TransferFunction1D::ColorMap &, getColorMap, + Properties::NON_VIRTUAL, + __C5_ColorMap_R1__getColorMap, + "Get the const color map that stores the mapping between the the tranfser function value and the colour it maps to. ", + ""); + I_Method1(void, assign, IN, const osg::TransferFunction1D::ColorMap &, vcm, + Properties::NON_VIRTUAL, + __void__assign__C5_ColorMap_R1, + "Assign a color map and automatically update the image to make sure they are in sync. ", + ""); + I_Method0(void, updateImage, + Properties::NON_VIRTUAL, + __void__updateImage, + "Manually update the associate osg::Image to represent the colors assigned in the color map. ", + ""); + I_ProtectedMethod4(void, assignToImage, IN, float, lower_v, IN, const osg::Vec4 &, lower_c, IN, float, upper_v, IN, const osg::Vec4 &, upper_c, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__assignToImage__float__C5_osg_Vec4_R1__float__C5_osg_Vec4_R1, + "", + ""); + I_SimpleProperty(osg::TransferFunction1D::ColorMap &, ColorMap, + __ColorMap_R1__getColorMap, + 0); + I_SimpleProperty(float, Maximum, + __float__getMaximum, + 0); + I_SimpleProperty(float, Minimum, + __float__getMinimum, + 0); + I_SimpleProperty(unsigned int, NumberImageCells, + __unsigned_int__getNumberImageCells, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< float COMMA osg::Vec4 >) + diff --git a/src/osgWrappers/introspection/osg/Transform.cpp b/src/osgWrappers/introspection/osg/Transform.cpp new file mode 100644 index 000000000..b02dcc71c --- /dev/null +++ b/src/osgWrappers/introspection/osg/Transform.cpp @@ -0,0 +1,136 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::Transform::ReferenceFrame) + I_DeclaringFile("osg/Transform"); + I_EnumLabel(osg::Transform::RELATIVE_RF); + I_EnumLabel(osg::Transform::ABSOLUTE_RF); + I_EnumLabel(osg::Transform::ABSOLUTE_RF_INHERIT_VIEWPOINT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Transform) + I_DeclaringFile("osg/Transform"); + I_BaseType(osg::Group); + I_Constructor0(____Transform, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Transform &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Transform__C5_Transform_R1__C5_CopyOp_R1, + "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 necessary 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' absolute 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). "); + I_SimpleProperty(osg::Transform::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Uniform.cpp b/src/osgWrappers/introspection/osg/Uniform.cpp new file mode 100644 index 000000000..484d4da80 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Uniform.cpp @@ -0,0 +1,1008 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::Matrix2) + I_DeclaringFile("osg/Uniform"); + I_Constructor0(____Matrix2, + "", + ""); + I_Constructor1(IN, const osg::Matrix2 &, mat, + Properties::NON_EXPLICIT, + ____Matrix2__C5_Matrix2_R1, + "", + ""); + I_Constructor4(IN, float, a00, IN, float, a01, IN, float, a10, IN, float, a11, + ____Matrix2__float__float__float__float, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::Matrix3) + I_DeclaringFile("osg/Uniform"); + I_Constructor0(____Matrix3, + "", + ""); + I_Constructor1(IN, const osg::Matrix3 &, mat, + Properties::NON_EXPLICIT, + ____Matrix3__C5_Matrix3_R1, + "", + ""); + I_Constructor9(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, + ____Matrix3__float__float__float__float__float__float__float__float__float, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) + I_DeclaringFile("osg/Uniform"); + I_EnumLabel(osg::Uniform::FLOAT); + I_EnumLabel(osg::Uniform::FLOAT_VEC2); + I_EnumLabel(osg::Uniform::FLOAT_VEC3); + I_EnumLabel(osg::Uniform::FLOAT_VEC4); + I_EnumLabel(osg::Uniform::INT); + I_EnumLabel(osg::Uniform::INT_VEC2); + I_EnumLabel(osg::Uniform::INT_VEC3); + I_EnumLabel(osg::Uniform::INT_VEC4); + I_EnumLabel(osg::Uniform::BOOL); + I_EnumLabel(osg::Uniform::BOOL_VEC2); + I_EnumLabel(osg::Uniform::BOOL_VEC3); + I_EnumLabel(osg::Uniform::BOOL_VEC4); + I_EnumLabel(osg::Uniform::FLOAT_MAT2); + I_EnumLabel(osg::Uniform::FLOAT_MAT3); + I_EnumLabel(osg::Uniform::FLOAT_MAT4); + I_EnumLabel(osg::Uniform::SAMPLER_1D); + I_EnumLabel(osg::Uniform::SAMPLER_2D); + I_EnumLabel(osg::Uniform::SAMPLER_3D); + I_EnumLabel(osg::Uniform::SAMPLER_CUBE); + I_EnumLabel(osg::Uniform::SAMPLER_1D_SHADOW); + I_EnumLabel(osg::Uniform::SAMPLER_2D_SHADOW); + I_EnumLabel(osg::Uniform::SAMPLER_1D_ARRAY); + I_EnumLabel(osg::Uniform::SAMPLER_2D_ARRAY); + I_EnumLabel(osg::Uniform::SAMPLER_1D_ARRAY_SHADOW); + I_EnumLabel(osg::Uniform::SAMPLER_2D_ARRAY_SHADOW); + I_EnumLabel(osg::Uniform::FLOAT_MAT2x3); + I_EnumLabel(osg::Uniform::FLOAT_MAT2x4); + I_EnumLabel(osg::Uniform::FLOAT_MAT3x2); + I_EnumLabel(osg::Uniform::FLOAT_MAT3x4); + I_EnumLabel(osg::Uniform::FLOAT_MAT4x2); + I_EnumLabel(osg::Uniform::FLOAT_MAT4x3); + I_EnumLabel(osg::Uniform::SAMPLER_BUFFER); + I_EnumLabel(osg::Uniform::SAMPLER_CUBE_SHADOW); + I_EnumLabel(osg::Uniform::UNSIGNED_INT); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC2); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC3); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_VEC4); + I_EnumLabel(osg::Uniform::INT_SAMPLER_1D); + I_EnumLabel(osg::Uniform::INT_SAMPLER_2D); + I_EnumLabel(osg::Uniform::INT_SAMPLER_3D); + I_EnumLabel(osg::Uniform::INT_SAMPLER_CUBE); + I_EnumLabel(osg::Uniform::INT_SAMPLER_2D_RECT); + I_EnumLabel(osg::Uniform::INT_SAMPLER_1D_ARRAY); + I_EnumLabel(osg::Uniform::INT_SAMPLER_2D_ARRAY); + I_EnumLabel(osg::Uniform::INT_SAMPLER_BUFFER); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_1D); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_3D); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_CUBE); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D_RECT); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_1D_ARRAY); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_2D_ARRAY); + I_EnumLabel(osg::Uniform::UNSIGNED_INT_SAMPLER_BUFFER); + I_EnumLabel(osg::Uniform::UNDEFINED); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList) + +BEGIN_OBJECT_REFLECTOR(osg::Uniform) + I_DeclaringFile("osg/Uniform"); + I_BaseType(osg::Object); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "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 &, 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_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(osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, + __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. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, unsigned int, i, + ____Uniform__C5_char_P1__unsigned_int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, unsigned int, i0, IN, unsigned int, i1, + ____Uniform__C5_char_P1__unsigned_int__unsigned_int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, + ____Uniform__C5_char_P1__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, IN, unsigned int, i3, + ____Uniform__C5_char_P1__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + 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, unsigned int, i, + Properties::NON_VIRTUAL, + __bool__set__unsigned_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, unsigned int, i0, IN, unsigned int, i1, + Properties::NON_VIRTUAL, + __bool__set__unsigned_int__unsigned_int, + "", + ""); + I_Method3(bool, set, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, + Properties::NON_VIRTUAL, + __bool__set__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method4(bool, set, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, IN, unsigned int, i3, + Properties::NON_VIRTUAL, + __bool__set__unsigned_int__unsigned_int__unsigned_int__unsigned_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, unsigned int &, i, + Properties::NON_VIRTUAL, + __bool__get__unsigned_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, unsigned int &, i0, IN, unsigned int &, i1, + Properties::NON_VIRTUAL, + __bool__get__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method3(bool, get, IN, unsigned int &, i0, IN, unsigned int &, i1, IN, unsigned int &, i2, + Properties::NON_VIRTUAL, + __bool__get__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method4(bool, get, IN, unsigned int &, i0, IN, unsigned int &, i1, IN, unsigned int &, i2, IN, unsigned int &, i3, + Properties::NON_VIRTUAL, + __bool__get__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_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, unsigned int, i, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__unsigned_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, unsigned int, i0, IN, unsigned int, i1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, unsigned int, i0, IN, unsigned int, i1, IN, unsigned int, i2, IN, unsigned int, i3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__unsigned_int__unsigned_int__unsigned_int__unsigned_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, unsigned int &, i, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__unsigned_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, unsigned int &, i0, IN, unsigned int &, i1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, unsigned int &, i0, IN, unsigned int &, i1, IN, unsigned int &, i2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, unsigned int &, i0, IN, unsigned int &, i1, IN, unsigned int &, i2, IN, unsigned int &, i3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__unsigned_int_R1__unsigned_int_R1__unsigned_int_R1__unsigned_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: automatically 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_Method1(bool, setArray, IN, osg::UIntArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__UIntArray_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_Method0(osg::UIntArray *, getUIntArray, + Properties::NON_VIRTUAL, + __UIntArray_P1__getUIntArray, + "Get the internal data array for an unsigned int osg::Uniform. ", + ""); + I_Method0(const osg::UIntArray *, getUIntArray, + Properties::NON_VIRTUAL, + __C5_UIntArray_P1__getUIntArray, + "", + ""); + 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, + "", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_ProtectedMethod1(bool, isCompatibleType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isCompatibleType__Type, + "", + ""); + I_ProtectedMethod0(bool, isScalar, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isScalar, + "", + ""); + I_ProtectedMethod0(void, allocateDataArray, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__allocateDataArray, + "", + ""); + I_ProtectedMethod1(void, addParent, IN, osg::StateSet *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addParent__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(void, removeParent, IN, osg::StateSet *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeParent__osg_StateSet_P1, + "", + ""); + I_SimpleProperty(osg::FloatArray *, Array, + 0, + __bool__setArray__FloatArray_P1); + I_ArrayProperty(bool, Element, + 0, + __bool__setElement__unsigned_int__bool, + __unsigned_int__getNumElements, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + I_SimpleProperty(osg::FloatArray *, FloatArray, + __FloatArray_P1__getFloatArray, + 0); + I_SimpleProperty(osg::IntArray *, IntArray, + __IntArray_P1__getIntArray, + 0); + I_SimpleProperty(unsigned int, InternalArrayNumElements, + __unsigned_int__getInternalArrayNumElements, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(const std::string &, Name, + 0, + __void__setName__C5_std_string_R1); + I_SimpleProperty(unsigned int, NumElements, + 0, + __void__setNumElements__unsigned_int); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Uniform::Type, Type, + __Type__getType, + __bool__setType__Type); + I_SimpleProperty(osg::UIntArray *, UIntArray, + __UIntArray_P1__getUIntArray, + 0); + I_SimpleProperty(osg::Uniform::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) + I_DeclaringFile("osg/Uniform"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osg::Uniform::Callback &, x, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec2.cpp b/src/osgWrappers/introspection/osg/Vec2.cpp new file mode 100644 index 000000000..98d26f6b4 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec2.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Vec2f, osg::Vec2) + diff --git a/src/osgWrappers/introspection/osg/Vec2b.cpp b/src/osgWrappers/introspection/osg/Vec2b.cpp new file mode 100644 index 000000000..9eb9eed06 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec2b.cpp @@ -0,0 +1,99 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(signed char, osg::Vec2b::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec2b) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec2b"); + I_Constructor0(____Vec2b, + "", + ""); + I_Constructor2(IN, osg::Vec2b::value_type, r, IN, osg::Vec2b::value_type, g, + ____Vec2b__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec2d.cpp b/src/osgWrappers/introspection/osg/Vec2d.cpp new file mode 100644 index 000000000..5a3c9fb10 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec2d.cpp @@ -0,0 +1,105 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(double, osg::Vec2d::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec2d) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec2d"); + I_Constructor0(____Vec2d, + "", + ""); + I_Constructor2(IN, osg::Vec2d::value_type, x, IN, osg::Vec2d::value_type, y, + ____Vec2d__value_type__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec2f.cpp b/src/osgWrappers/introspection/osg/Vec2f.cpp new file mode 100644 index 000000000..3069707a3 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec2f.cpp @@ -0,0 +1,99 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(float, osg::Vec2f::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec2f) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec2f"); + I_Constructor0(____Vec2f, + "", + ""); + I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + ____Vec2f__value_type__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec2s.cpp b/src/osgWrappers/introspection/osg/Vec2s.cpp new file mode 100644 index 000000000..f969cfc5c --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec2s.cpp @@ -0,0 +1,95 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(short, osg::Vec2s::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec2s) + I_DeclaringFile("osg/Vec2s"); + I_Constructor0(____Vec2s, + "", + ""); + I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + ____Vec2s__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec3.cpp b/src/osgWrappers/introspection/osg/Vec3.cpp new file mode 100644 index 000000000..b3dcb02f2 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec3.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Vec3f, osg::Vec3) + diff --git a/src/osgWrappers/introspection/osg/Vec3b.cpp b/src/osgWrappers/introspection/osg/Vec3b.cpp new file mode 100644 index 000000000..5850e4e3a --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec3b.cpp @@ -0,0 +1,119 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(signed char, osg::Vec3b::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec3b) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec3b"); + I_Constructor0(____Vec3b, + "", + ""); + I_Constructor3(IN, osg::Vec3b::value_type, r, IN, osg::Vec3b::value_type, g, IN, osg::Vec3b::value_type, b, + ____Vec3b__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec3d.cpp b/src/osgWrappers/introspection/osg/Vec3d.cpp new file mode 100644 index 000000000..e00f6f192 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec3d.cpp @@ -0,0 +1,125 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(double, osg::Vec3d::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec3d) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec3d"); + I_Constructor0(____Vec3d, + "", + ""); + I_Constructor1(IN, const osg::Vec3f &, vec, + Properties::NON_EXPLICIT, + ____Vec3d__C5_Vec3f_R1, + "", + ""); + I_Constructor3(IN, osg::Vec3d::value_type, x, IN, osg::Vec3d::value_type, y, IN, osg::Vec3d::value_type, z, + ____Vec3d__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec2d &, v2, IN, osg::Vec3d::value_type, zz, + ____Vec3d__C5_Vec2d_R1__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec3f.cpp b/src/osgWrappers/introspection/osg/Vec3f.cpp new file mode 100644 index 000000000..cd8f5403c --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec3f.cpp @@ -0,0 +1,119 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(float, osg::Vec3f::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec3f) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec3f"); + I_Constructor0(____Vec3f, + "", + ""); + I_Constructor3(IN, osg::Vec3f::value_type, x, IN, osg::Vec3f::value_type, y, IN, osg::Vec3f::value_type, z, + ____Vec3f__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec2f &, v2, IN, osg::Vec3f::value_type, zz, + ____Vec3f__C5_Vec2f_R1__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec3s.cpp b/src/osgWrappers/introspection/osg/Vec3s.cpp new file mode 100644 index 000000000..365f55447 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec3s.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(short, osg::Vec3s::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec3s) + I_DeclaringFile("osg/Vec3s"); + I_Constructor0(____Vec3s, + "", + ""); + I_Constructor3(IN, osg::Vec3s::value_type, r, IN, osg::Vec3s::value_type, g, IN, osg::Vec3s::value_type, b, + ____Vec3s__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec4.cpp b/src/osgWrappers/introspection/osg/Vec4.cpp new file mode 100644 index 000000000..671ce35e6 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Vec4f, osg::Vec4) + diff --git a/src/osgWrappers/introspection/osg/Vec4b.cpp b/src/osgWrappers/introspection/osg/Vec4b.cpp new file mode 100644 index 000000000..4da66e781 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4b.cpp @@ -0,0 +1,134 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(signed char, osg::Vec4b::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec4b) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec4b"); + I_Constructor0(____Vec4b, + "", + ""); + I_Constructor4(IN, osg::Vec4b::value_type, x, IN, osg::Vec4b::value_type, y, IN, osg::Vec4b::value_type, z, IN, osg::Vec4b::value_type, w, + ____Vec4b__value_type__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec4d.cpp b/src/osgWrappers/introspection/osg/Vec4d.cpp new file mode 100644 index 000000000..470a4f1e3 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4d.cpp @@ -0,0 +1,180 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(double, osg::Vec4d::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec4d) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec4d"); + I_Constructor0(____Vec4d, + "", + ""); + I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + ____Vec4d__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w, + ____Vec4d__C5_Vec3d_R1__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec4f.cpp b/src/osgWrappers/introspection/osg/Vec4f.cpp new file mode 100644 index 000000000..10c3f7ca5 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4f.cpp @@ -0,0 +1,174 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(float, osg::Vec4f::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec4f) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec4f"); + I_Constructor0(____Vec4f, + "", + ""); + I_Constructor4(IN, osg::Vec4f::value_type, x, IN, osg::Vec4f::value_type, y, IN, osg::Vec4f::value_type, z, IN, osg::Vec4f::value_type, w, + ____Vec4f__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3f &, v3, IN, osg::Vec4f::value_type, w, + ____Vec4f__C5_Vec3f_R1__value_type, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec4s.cpp b/src/osgWrappers/introspection/osg/Vec4s.cpp new file mode 100644 index 000000000..d04ec6475 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4s.cpp @@ -0,0 +1,130 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(short, osg::Vec4s::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec4s) + I_DeclaringFile("osg/Vec4s"); + I_Constructor0(____Vec4s, + "", + ""); + I_Constructor4(IN, osg::Vec4s::value_type, x, IN, osg::Vec4s::value_type, y, IN, osg::Vec4s::value_type, z, IN, osg::Vec4s::value_type, w, + ____Vec4s__value_type__value_type__value_type__value_type, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Vec4ub.cpp b/src/osgWrappers/introspection/osg/Vec4ub.cpp new file mode 100644 index 000000000..fc284a06a --- /dev/null +++ b/src/osgWrappers/introspection/osg/Vec4ub.cpp @@ -0,0 +1,94 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +TYPE_NAME_ALIAS(unsigned char, osg::Vec4ub::value_type) + +BEGIN_VALUE_REFLECTOR(osg::Vec4ub) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_DeclaringFile("osg/Vec4ub"); + I_Constructor0(____Vec4ub, + "", + ""); + I_Constructor4(IN, osg::Vec4ub::value_type, x, IN, osg::Vec4ub::value_type, y, IN, osg::Vec4ub::value_type, z, IN, osg::Vec4ub::value_type, w, + ____Vec4ub__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4ub::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4ub::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4ub::value_type, r, IN, osg::Vec4ub::value_type, g, IN, osg::Vec4ub::value_type, b, IN, osg::Vec4ub::value_type, a, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4ub::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4ub::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4ub::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4ub::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4ub::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4ub::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4ub::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4ub::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/VertexProgram.cpp b/src/osgWrappers/introspection/osg/VertexProgram.cpp new file mode 100644 index 000000000..273cfe949 --- /dev/null +++ b/src/osgWrappers/introspection/osg/VertexProgram.cpp @@ -0,0 +1,201 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalParamList) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList) + +BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) + I_DeclaringFile("osg/VertexProgram"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____VertexProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, + "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 &, x, + 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 &, x, + Properties::VIRTUAL, + __bool__getModeUsage__StateAttribute_ModeUsage_R1, + "Return the modes associated with this StateAttribute. ", + ""); + 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 &, 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, 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 objects for all graphics contexts if State object pointer is NULL. ", + ""); + I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, + __void__deleteVertexProgramObject__unsigned_int__GLuint_S, + "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", + ""); + I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, + "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod1(void, discardDeletedVertexProgramObjects, IN, unsigned int, contextID, + __void__discardDeletedVertexProgramObjects__unsigned_int_S, + "discard all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", + "Note, unlike flush no OpenGL calls are made, instead the handles are all removed. this call is useful for when an OpenGL context has been destroyed. "); + I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Function to call to get the extension of a specified context. ", + "If the Extension object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "The setExtensions method allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::VertexProgram::LocalParamList &, LocalParameters, + __C5_LocalParamList_R1__getLocalParameters, + __void__setLocalParameters__C5_LocalParamList_R1); + I_SimpleProperty(const osg::VertexProgram::MatrixList &, Matrices, + __C5_MatrixList_R1__getMatrices, + __void__setMatrices__C5_MatrixList_R1); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); + I_SimpleProperty(const std::string &, VertexProgram, + __C5_std_string_R1__getVertexProgram, + __void__setVertexProgram__C5_std_string_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/View.cpp b/src/osgWrappers/introspection/osg/View.cpp new file mode 100644 index 000000000..a82dd24ad --- /dev/null +++ b/src/osgWrappers/introspection/osg/View.cpp @@ -0,0 +1,249 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osg::View::LightingMode) + I_DeclaringFile("osg/View"); + I_EnumLabel(osg::View::NO_LIGHT); + I_EnumLabel(osg::View::HEADLIGHT); + I_EnumLabel(osg::View::SKY_LIGHT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::View) + I_DeclaringFile("osg/View"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____View, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::View &, view, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____View__C5_osg_View_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, take, IN, osg::View &, rhs, + Properties::VIRTUAL, + __void__take__View_R1, + "Take all the settings, Camera and Slaves from the passed in view, leaving it empty. ", + ""); + 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 Viewers Stats object. ", + ""); + I_Method0(const osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __C5_osg_Stats_P1__getStats, + "Get the Viewers Stats object. ", + ""); + I_Method1(void, setLightingMode, IN, osg::View::LightingMode, lightingMode, + Properties::NON_VIRTUAL, + __void__setLightingMode__LightingMode, + "Set the global lighting to use for this view. ", + "Defaults to headlight. "); + I_Method0(osg::View::LightingMode, getLightingMode, + Properties::NON_VIRTUAL, + __LightingMode__getLightingMode, + "Get the global lighting used for this view. ", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setLight__osg_Light_P1, + "Get the global light. ", + ""); + I_Method0(osg::Light *, getLight, + Properties::NON_VIRTUAL, + __osg_Light_P1__getLight, + "Get the global lighting if assigned. ", + ""); + I_Method0(const osg::Light *, getLight, + Properties::NON_VIRTUAL, + __C5_osg_Light_P1__getLight, + "Get the const global lighting if assigned. ", + ""); + 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(void, setFrameStamp, IN, osg::FrameStamp *, fs, + Properties::NON_VIRTUAL, + __void__setFrameStamp__osg_FrameStamp_P1, + "Set the frame stamp of the view. ", + ""); + I_Method0(osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp of the view. ", + ""); + I_Method0(const osg::FrameStamp *, getFrameStamp, + Properties::NON_VIRTUAL, + __C5_osg_FrameStamp_P1__getFrameStamp, + "Get the frame stamp of the view. ", + ""); + I_MethodWithDefaults2(bool, addSlave, IN, osg::Camera *, camera, , IN, bool, useMastersSceneData, true, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1__bool, + "", + ""); + I_MethodWithDefaults4(bool, addSlave, IN, osg::Camera *, camera, , IN, const osg::Matrix &, projectionOffset, , IN, const osg::Matrix &, viewOffset, , IN, bool, useMastersSceneData, true, + Properties::NON_VIRTUAL, + __bool__addSlave__osg_Camera_P1__C5_osg_Matrix_R1__C5_osg_Matrix_R1__bool, + "", + ""); + 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(unsigned int, findSlaveIndexForCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __unsigned_int__findSlaveIndexForCamera__osg_Camera_P1, + "", + ""); + 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, + "", + ""); + I_ProtectedMethod1(osg::GraphicsOperation *, createRenderer, IN, osg::Camera *, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __osg_GraphicsOperation_P1__createRenderer__osg_Camera_P1, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + __void__setFrameStamp__osg_FrameStamp_P1); + I_SimpleProperty(osg::Light *, Light, + __osg_Light_P1__getLight, + __void__setLight__osg_Light_P1); + I_SimpleProperty(osg::View::LightingMode, LightingMode, + __LightingMode__getLightingMode, + __void__setLightingMode__LightingMode); + I_ArrayProperty(osg::View::Slave &, Slave, + __Slave_R1__getSlave__unsigned_int, + 0, + __unsigned_int__getNumSlaves, + 0, + 0, + __bool__removeSlave__unsigned_int); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::View::Slave) + I_DeclaringFile("osg/View"); + I_ConstructorWithDefaults1(IN, bool, useMastersSceneData, true, + Properties::NON_EXPLICIT, + ____Slave__bool, + "", + ""); + I_ConstructorWithDefaults4(IN, osg::Camera *, camera, , IN, const osg::Matrixd &, projectionOffset, , IN, const osg::Matrixd &, viewOffset, , IN, bool, useMastersSceneData, true, + ____Slave__osg_Camera_P1__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__bool, + "", + ""); + I_Constructor1(IN, const osg::View::Slave &, rhs, + Properties::NON_EXPLICIT, + ____Slave__C5_Slave_R1, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Camera >, _camera); + I_PublicMemberProperty(osg::Matrixd, _projectionOffset); + I_PublicMemberProperty(osg::Matrixd, _viewOffset); + I_PublicMemberProperty(bool, _useMastersSceneData); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/Viewport.cpp b/src/osgWrappers/introspection/osg/Viewport.cpp new file mode 100644 index 000000000..d6ecbb174 --- /dev/null +++ b/src/osgWrappers/introspection/osg/Viewport.cpp @@ -0,0 +1,148 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(double, osg::Viewport::value_type) + +BEGIN_OBJECT_REFLECTOR(osg::Viewport) + I_DeclaringFile("osg/Viewport"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Viewport, + "", + ""); + I_Constructor4(IN, osg::Viewport::value_type, x, IN, osg::Viewport::value_type, y, IN, osg::Viewport::value_type, width, IN, osg::Viewport::value_type, height, + ____Viewport__value_type__value_type__value_type__value_type, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Viewport &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Viewport__C5_Viewport_R1__C5_CopyOp_R1, + "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 &, x, + 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 potential 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 &, 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_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osg/observer_ptr.cpp b/src/osgWrappers/introspection/osg/observer_ptr.cpp new file mode 100644 index 000000000..544dfe7d4 --- /dev/null +++ b/src/osgWrappers/introspection/osg/observer_ptr.cpp @@ -0,0 +1,34 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osg::Observer) + I_DeclaringFile("osg/observer_ptr"); + I_Constructor0(____Observer, + "", + ""); + I_Method1(void, objectDeleted, IN, void *, x, + Properties::VIRTUAL, + __void__objectDeleted__void_P1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Action.cpp b/src/osgWrappers/introspection/osgAnimation/Action.cpp new file mode 100644 index 000000000..7f100ee44 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Action.cpp @@ -0,0 +1,257 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osg::ref_ptr< osgAnimation::Action::Callback > >, osgAnimation::Action::FrameCallback) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Action) + I_DeclaringFile("osgAnimation/Action"); + I_BaseType(osg::Object); + 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Constructor0(____Action, + "", + ""); + I_Constructor2(IN, const osgAnimation::Action &, x, IN, const osg::CopyOp &, x, + ____Action__C5_Action_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method2(void, setCallback, IN, double, when, IN, osgAnimation::Action::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setCallback__double__Callback_P1, + "", + ""); + I_Method2(void, setCallback, IN, unsigned int, frame, IN, osgAnimation::Action::Callback *, callback, + Properties::NON_VIRTUAL, + __void__setCallback__unsigned_int__Callback_P1, + "", + ""); + I_Method1(osgAnimation::Action::Callback *, getCallback, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __Callback_P1__getCallback__unsigned_int, + "", + ""); + I_Method1(void, removeCallback, IN, osgAnimation::Action::Callback *, x, + Properties::NON_VIRTUAL, + __void__removeCallback__Callback_P1, + "", + ""); + I_Method1(osgAnimation::Action::Callback *, getFrameCallback, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __Callback_P1__getFrameCallback__unsigned_int, + "", + ""); + I_Method1(osgAnimation::Action::Callback *, getFrameCallback, IN, double, time, + Properties::NON_VIRTUAL, + __Callback_P1__getFrameCallback__double, + "", + ""); + I_Method0(unsigned int, getFramesPerSecond, + Properties::NON_VIRTUAL, + __unsigned_int__getFramesPerSecond, + "", + ""); + I_Method1(void, setNumFrames, IN, unsigned int, numFrames, + Properties::NON_VIRTUAL, + __void__setNumFrames__unsigned_int, + "", + ""); + I_Method1(void, setDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setDuration__double, + "", + ""); + I_Method0(unsigned int, getNumFrames, + Properties::NON_VIRTUAL, + __unsigned_int__getNumFrames, + "", + ""); + I_Method0(double, getDuration, + Properties::NON_VIRTUAL, + __double__getDuration, + "", + ""); + I_Method1(void, setLoop, IN, int, nb, + Properties::VIRTUAL, + __void__setLoop__int, + "", + ""); + I_Method0(unsigned int, getLoop, + Properties::VIRTUAL, + __unsigned_int__getLoop, + "", + ""); + I_Method3(bool, evaluateFrame, IN, unsigned int, frame, IN, unsigned int &, resultframe, IN, unsigned int &, nbloop, + Properties::NON_VIRTUAL, + __bool__evaluateFrame__unsigned_int__unsigned_int_R1__unsigned_int_R1, + "", + ""); + I_Method1(void, traverse, IN, osgAnimation::ActionVisitor &, visitor, + Properties::VIRTUAL, + __void__traverse__ActionVisitor_R1, + "", + ""); + I_IndexedProperty(osgAnimation::Action::Callback *, Callback, + __Callback_P1__getCallback__unsigned_int, + __void__setCallback__unsigned_int__Callback_P1, + 0); + I_SimpleProperty(double, Duration, + __double__getDuration, + __void__setDuration__double); + I_SimpleProperty(unsigned int, FramesPerSecond, + __unsigned_int__getFramesPerSecond, + 0); + I_SimpleProperty(int, Loop, + 0, + __void__setLoop__int); + I_SimpleProperty(unsigned int, NumFrames, + 0, + __void__setNumFrames__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Action::Callback) + I_DeclaringFile("osgAnimation/Action"); + I_BaseType(osg::Object); + I_Constructor0(____Callback, + "", + ""); + I_Constructor2(IN, const osgAnimation::Action::Callback &, nc, IN, const osg::CopyOp &, x, + ____Callback__C5_Callback_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(osgAnimation::Action::Callback *, getNestedCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getNestedCallback, + "", + ""); + I_Method1(void, addNestedCallback, IN, osgAnimation::Action::Callback *, callback, + Properties::NON_VIRTUAL, + __void__addNestedCallback__Callback_P1, + "", + ""); + I_Method1(void, removeCallback, IN, osgAnimation::Action::Callback *, cb, + Properties::NON_VIRTUAL, + __void__removeCallback__Callback_P1, + "", + ""); + I_SimpleProperty(osgAnimation::Action::Callback *, NestedCallback, + __Callback_P1__getNestedCallback, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Action::Callback >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Action::Callback *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Action::Callback > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Action::Callback *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Action::Callback *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Action::Callback > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Action::Callback *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osg::ref_ptr< osgAnimation::Action::Callback > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionAnimation.cpp b/src/osgWrappers/introspection/osgAnimation/ActionAnimation.cpp new file mode 100644 index 000000000..ae208f2a5 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionAnimation.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionAnimation) + I_DeclaringFile("osgAnimation/ActionAnimation"); + I_BaseType(osgAnimation::Action); + 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Constructor0(____ActionAnimation, + "", + ""); + I_Constructor2(IN, const osgAnimation::ActionAnimation &, a, IN, const osg::CopyOp &, c, + ____ActionAnimation__C5_ActionAnimation_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, osgAnimation::Animation *, animation, + Properties::NON_EXPLICIT, + ____ActionAnimation__Animation_P1, + "", + ""); + I_Method2(void, updateAnimation, IN, unsigned int, frame, IN, int, priority, + Properties::NON_VIRTUAL, + __void__updateAnimation__unsigned_int__int, + "", + ""); + I_Method0(osgAnimation::Animation *, getAnimation, + Properties::NON_VIRTUAL, + __Animation_P1__getAnimation, + "", + ""); + I_SimpleProperty(osgAnimation::Animation *, Animation, + __Animation_P1__getAnimation, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionBlendIn.cpp b/src/osgWrappers/introspection/osgAnimation/ActionBlendIn.cpp new file mode 100644 index 000000000..6354d1acd --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionBlendIn.cpp @@ -0,0 +1,93 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionBlendIn) + I_DeclaringFile("osgAnimation/ActionBlendIn"); + I_BaseType(osgAnimation::Action); + 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Constructor0(____ActionBlendIn, + "", + ""); + I_Constructor2(IN, const osgAnimation::ActionBlendIn &, a, IN, const osg::CopyOp &, c, + ____ActionBlendIn__C5_ActionBlendIn_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor3(IN, osgAnimation::Animation *, animation, IN, double, duration, IN, double, weight, + ____ActionBlendIn__Animation_P1__double__double, + "", + ""); + I_Method0(double, getWeight, + Properties::NON_VIRTUAL, + __double__getWeight, + "", + ""); + I_Method0(osgAnimation::Animation *, getAnimation, + Properties::NON_VIRTUAL, + __Animation_P1__getAnimation, + "", + ""); + I_Method1(void, computeWeight, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__computeWeight__unsigned_int, + "", + ""); + I_SimpleProperty(osgAnimation::Animation *, Animation, + __Animation_P1__getAnimation, + 0); + I_SimpleProperty(double, Weight, + __double__getWeight, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionBlendOut.cpp b/src/osgWrappers/introspection/osgAnimation/ActionBlendOut.cpp new file mode 100644 index 000000000..35bd004f6 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionBlendOut.cpp @@ -0,0 +1,93 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionBlendOut) + I_DeclaringFile("osgAnimation/ActionBlendOut"); + I_BaseType(osgAnimation::Action); + 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Constructor0(____ActionBlendOut, + "", + ""); + I_Constructor2(IN, const osgAnimation::ActionBlendOut &, a, IN, const osg::CopyOp &, c, + ____ActionBlendOut__C5_ActionBlendOut_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor2(IN, osgAnimation::Animation *, animation, IN, double, duration, + ____ActionBlendOut__Animation_P1__double, + "", + ""); + I_Method0(osgAnimation::Animation *, getAnimation, + Properties::NON_VIRTUAL, + __Animation_P1__getAnimation, + "", + ""); + I_Method0(double, getWeight, + Properties::NON_VIRTUAL, + __double__getWeight, + "", + ""); + I_Method1(void, computeWeight, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__computeWeight__unsigned_int, + "", + ""); + I_SimpleProperty(osgAnimation::Animation *, Animation, + __Animation_P1__getAnimation, + 0); + I_SimpleProperty(double, Weight, + __double__getWeight, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionCallback.cpp b/src/osgWrappers/introspection/osgAnimation/ActionCallback.cpp new file mode 100644 index 000000000..09475be56 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionCallback.cpp @@ -0,0 +1,49 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::RunAction) + I_DeclaringFile("osgAnimation/ActionCallback"); + I_BaseType(osgAnimation::Action::Callback); + I_ConstructorWithDefaults2(IN, osgAnimation::Action *, a, , IN, int, priority, 0, + ____RunAction__Action_P1__int, + "", + ""); + I_Method0(osgAnimation::Action *, getAction, + Properties::NON_VIRTUAL, + __Action_P1__getAction, + "", + ""); + I_Method0(int, getPriority, + Properties::NON_VIRTUAL, + __int__getPriority, + "", + ""); + I_SimpleProperty(osgAnimation::Action *, Action, + __Action_P1__getAction, + 0); + I_SimpleProperty(int, Priority, + __int__getPriority, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionStripAnimation.cpp b/src/osgWrappers/introspection/osgAnimation/ActionStripAnimation.cpp new file mode 100644 index 000000000..de0f828ce --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionStripAnimation.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionStripAnimation) + I_DeclaringFile("osgAnimation/ActionStripAnimation"); + I_BaseType(osgAnimation::Action); + 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Constructor0(____ActionStripAnimation, + "", + ""); + I_Constructor2(IN, const osgAnimation::ActionStripAnimation &, a, IN, const osg::CopyOp &, c, + ____ActionStripAnimation__C5_ActionStripAnimation_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults4(IN, osgAnimation::Animation *, animation, , IN, double, blendInDuration, 0.0, IN, double, blendOutDuration, 0.0, IN, double, blendInWeightTarget, 1.0, + ____ActionStripAnimation__Animation_P1__double__double__double, + "", + ""); + I_Method0(osgAnimation::ActionAnimation *, getAnimation, + Properties::NON_VIRTUAL, + __ActionAnimation_P1__getAnimation, + "", + ""); + I_Method0(osgAnimation::ActionBlendIn *, getBlendIn, + Properties::NON_VIRTUAL, + __ActionBlendIn_P1__getBlendIn, + "", + ""); + I_Method0(osgAnimation::ActionBlendOut *, getBlendOut, + Properties::NON_VIRTUAL, + __ActionBlendOut_P1__getBlendOut, + "", + ""); + I_Method0(const osgAnimation::ActionAnimation *, getAnimation, + Properties::NON_VIRTUAL, + __C5_ActionAnimation_P1__getAnimation, + "", + ""); + I_Method0(const osgAnimation::ActionBlendIn *, getBlendIn, + Properties::NON_VIRTUAL, + __C5_ActionBlendIn_P1__getBlendIn, + "", + ""); + I_Method0(const osgAnimation::ActionBlendOut *, getBlendOut, + Properties::NON_VIRTUAL, + __C5_ActionBlendOut_P1__getBlendOut, + "", + ""); + I_Method0(unsigned int, getBlendOutStartFrame, + Properties::NON_VIRTUAL, + __unsigned_int__getBlendOutStartFrame, + "", + ""); + I_Method0(unsigned int, getLoop, + Properties::VIRTUAL, + __unsigned_int__getLoop, + "", + ""); + I_Method1(void, setLoop, IN, unsigned int, loop, + Properties::NON_VIRTUAL, + __void__setLoop__unsigned_int, + "", + ""); + I_Method1(void, traverse, IN, osgAnimation::ActionVisitor &, visitor, + Properties::VIRTUAL, + __void__traverse__ActionVisitor_R1, + "", + ""); + I_SimpleProperty(osgAnimation::ActionAnimation *, Animation, + __ActionAnimation_P1__getAnimation, + 0); + I_SimpleProperty(osgAnimation::ActionBlendIn *, BlendIn, + __ActionBlendIn_P1__getBlendIn, + 0); + I_SimpleProperty(osgAnimation::ActionBlendOut *, BlendOut, + __ActionBlendOut_P1__getBlendOut, + 0); + I_SimpleProperty(unsigned int, BlendOutStartFrame, + __unsigned_int__getBlendOutStartFrame, + 0); + I_SimpleProperty(unsigned int, Loop, + __unsigned_int__getLoop, + __void__setLoop__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/ActionVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/ActionVisitor.cpp new file mode 100644 index 000000000..b1670a5fa --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ActionVisitor.cpp @@ -0,0 +1,246 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ActionVisitor) + I_DeclaringFile("osgAnimation/ActionVisitor"); + I_BaseType(osg::Referenced); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____ActionVisitor, + "", + ""); + I_Method1(void, traverse, IN, osgAnimation::Action &, visitor, + Properties::NON_VIRTUAL, + __void__traverse__Action_R1, + "", + ""); + I_Method1(void, pushFrameActionOnStack, IN, const osgAnimation::FrameAction &, fa, + Properties::NON_VIRTUAL, + __void__pushFrameActionOnStack__C5_FrameAction_R1, + "", + ""); + I_Method0(void, popFrameAction, + Properties::NON_VIRTUAL, + __void__popFrameAction, + "", + ""); + I_Method1(void, pushTimelineOnStack, IN, osgAnimation::Timeline *, tm, + Properties::NON_VIRTUAL, + __void__pushTimelineOnStack__Timeline_P1, + "", + ""); + I_Method0(void, popTimeline, + Properties::NON_VIRTUAL, + __void__popTimeline, + "", + ""); + I_Method0(osgAnimation::Timeline *, getCurrentTimeline, + Properties::NON_VIRTUAL, + __Timeline_P1__getCurrentTimeline, + "", + ""); + I_Method1(void, setCurrentLayer, IN, int, layer, + Properties::NON_VIRTUAL, + __void__setCurrentLayer__int, + "", + ""); + I_Method0(int, getCurrentLayer, + Properties::NON_VIRTUAL, + __int__getCurrentLayer, + "", + ""); + I_Method0(const std::vector< osgAnimation::FrameAction > &, getStackedFrameAction, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_FrameAction__R1__getStackedFrameAction, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Action &, action, + Properties::VIRTUAL, + __void__apply__Action_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Timeline &, tm, + Properties::VIRTUAL, + __void__apply__Timeline_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendIn &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendIn_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendOut &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendOut_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionAnimation_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionStripAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionStripAnimation_R1, + "", + ""); + I_SimpleProperty(int, CurrentLayer, + __int__getCurrentLayer, + __void__setCurrentLayer__int); + I_SimpleProperty(osgAnimation::Timeline *, CurrentTimeline, + __Timeline_P1__getCurrentTimeline, + 0); + I_SimpleProperty(const std::vector< osgAnimation::FrameAction > &, StackedFrameAction, + __C5_std_vectorT1_FrameAction__R1__getStackedFrameAction, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgAnimation::ClearActionVisitor::ClearType) + I_DeclaringFile("osgAnimation/ActionVisitor"); + I_EnumLabel(osgAnimation::ClearActionVisitor::BEFORE_FRAME); + I_EnumLabel(osgAnimation::ClearActionVisitor::AFTER_FRAME); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ClearActionVisitor) + I_DeclaringFile("osgAnimation/ActionVisitor"); + I_BaseType(osgAnimation::ActionVisitor); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_ConstructorWithDefaults1(IN, osgAnimation::ClearActionVisitor::ClearType, type, osgAnimation::ClearActionVisitor::BEFORE_FRAME, + Properties::NON_EXPLICIT, + ____ClearActionVisitor__ClearType, + "", + ""); + I_Method1(void, setFrame, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__setFrame__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Timeline &, action, + Properties::VIRTUAL, + __void__apply__Timeline_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Action &, action, + Properties::VIRTUAL, + __void__apply__Action_R1, + "", + ""); + I_SimpleProperty(unsigned int, Frame, + 0, + __void__setFrame__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateActionVisitor) + I_DeclaringFile("osgAnimation/ActionVisitor"); + I_BaseType(osgAnimation::ActionVisitor); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____UpdateActionVisitor, + "", + ""); + I_Method1(void, setFrame, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__setFrame__unsigned_int, + "", + ""); + I_Method1(bool, isActive, IN, osgAnimation::Action &, action, + Properties::NON_VIRTUAL, + __bool__isActive__Action_R1, + "", + ""); + I_Method0(unsigned int, getLocalFrame, + Properties::NON_VIRTUAL, + __unsigned_int__getLocalFrame, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Timeline &, action, + Properties::VIRTUAL, + __void__apply__Timeline_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Action &, action, + Properties::VIRTUAL, + __void__apply__Action_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendIn &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendIn_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendOut &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendOut_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionAnimation_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionStripAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionStripAnimation_R1, + "", + ""); + I_SimpleProperty(unsigned int, Frame, + 0, + __void__setFrame__unsigned_int); + I_SimpleProperty(unsigned int, LocalFrame, + __unsigned_int__getLocalFrame, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::FrameAction >) + diff --git a/src/osgWrappers/introspection/osgAnimation/Animation.cpp b/src/osgWrappers/introspection/osgAnimation/Animation.cpp new file mode 100644 index 000000000..844ad8997 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Animation.cpp @@ -0,0 +1,212 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgAnimation::Animation::PlayMode) + I_DeclaringFile("osgAnimation/Animation"); + I_EnumLabel(osgAnimation::Animation::ONCE); + I_EnumLabel(osgAnimation::Animation::STAY); + I_EnumLabel(osgAnimation::Animation::LOOP); + I_EnumLabel(osgAnimation::Animation::PPONG); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Animation) + I_DeclaringFile("osgAnimation/Animation"); + I_BaseType(osg::Object); + 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_Constructor0(____Animation, + "", + ""); + I_Constructor2(IN, const osgAnimation::Animation &, x, IN, const osg::CopyOp &, x, + ____Animation__C5_osgAnimation_Animation_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, addChannel, IN, osgAnimation::Channel *, pChannel, + Properties::NON_VIRTUAL, + __void__addChannel__Channel_P1, + "", + ""); + I_Method0(osgAnimation::ChannelList &, getChannels, + Properties::NON_VIRTUAL, + __ChannelList_R1__getChannels, + "Those accessors let you add and remove channels if you modify something that can change the duration you are supposed to call computeDuration or setDuration. ", + ""); + I_Method0(const osgAnimation::ChannelList &, getChannels, + Properties::NON_VIRTUAL, + __C5_ChannelList_R1__getChannels, + "", + ""); + I_Method1(void, setDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setDuration__double, + "Change the duration of animation then evaluate the animation in the range 0-duration it stretch the animation in time. ", + "see computeDuration too "); + I_Method0(void, computeDuration, + Properties::NON_VIRTUAL, + __void__computeDuration, + "Compute duration from channel and keyframes if the duration is not specified you should call this method before using it. ", + ""); + I_Method0(float, getDuration, + Properties::NON_VIRTUAL, + __float__getDuration, + "", + ""); + I_Method1(void, setWeight, IN, float, weight, + Properties::NON_VIRTUAL, + __void__setWeight__float, + "", + ""); + I_Method0(float, getWeight, + Properties::NON_VIRTUAL, + __float__getWeight, + "", + ""); + I_MethodWithDefaults2(bool, update, IN, float, time, , IN, int, priority, 0, + Properties::NON_VIRTUAL, + __bool__update__float__int, + "", + ""); + I_Method0(void, resetTargets, + Properties::NON_VIRTUAL, + __void__resetTargets, + "", + ""); + I_Method1(void, setPlaymode, IN, osgAnimation::Animation::PlayMode, mode, + Properties::NON_VIRTUAL, + __void__setPlaymode__PlayMode, + "", + ""); + I_Method0(osgAnimation::Animation::PlayMode, getPlayMode, + Properties::NON_VIRTUAL, + __PlayMode__getPlayMode, + "", + ""); + I_Method1(void, setStartTime, IN, float, time, + Properties::NON_VIRTUAL, + __void__setStartTime__float, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_ProtectedMethod0(double, computeDurationFromChannels, + Properties::NON_VIRTUAL, + Properties::CONST, + __double__computeDurationFromChannels, + "", + ""); + I_SimpleProperty(osgAnimation::ChannelList &, Channels, + __ChannelList_R1__getChannels, + 0); + I_SimpleProperty(double, Duration, + 0, + __void__setDuration__double); + I_SimpleProperty(osgAnimation::Animation::PlayMode, PlayMode, + __PlayMode__getPlayMode, + 0); + I_SimpleProperty(osgAnimation::Animation::PlayMode, Playmode, + 0, + __void__setPlaymode__PlayMode); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + __void__setStartTime__float); + I_SimpleProperty(float, Weight, + __float__getWeight, + __void__setWeight__float); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgAnimation::Animation > >, osgAnimation::AnimationList) + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< osgAnimation::Animation > >, osgAnimation::AnimationMap) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Animation >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Animation *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Animation > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Animation *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Animation *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Animation > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Animation *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< osgAnimation::Animation > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::Animation > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/AnimationManagerBase.cpp b/src/osgWrappers/introspection/osgAnimation/AnimationManagerBase.cpp new file mode 100644 index 000000000..ba5725faf --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/AnimationManagerBase.cpp @@ -0,0 +1,158 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osgAnimation::Target > >, osgAnimation::AnimationManagerBase::TargetSet) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationManagerBase) + I_DeclaringFile("osgAnimation/AnimationManagerBase"); + I_BaseType(osg::NodeCallback); + I_Constructor0(____AnimationManagerBase, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgAnimation::AnimationManagerBase &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnimationManagerBase__C5_AnimationManagerBase_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(void, buildTargetReference, + Properties::VIRTUAL, + __void__buildTargetReference, + "", + ""); + I_Method1(void, registerAnimation, IN, osgAnimation::Animation *, x, + Properties::VIRTUAL, + __void__registerAnimation__Animation_P1, + "", + ""); + I_Method1(void, unregisterAnimation, IN, osgAnimation::Animation *, x, + Properties::VIRTUAL, + __void__unregisterAnimation__Animation_P1, + "", + ""); + I_Method1(void, link, IN, osg::Node *, subgraph, + Properties::VIRTUAL, + __void__link__osg_Node_P1, + "", + ""); + I_Method1(void, update, IN, double, t, + Properties::PURE_VIRTUAL, + __void__update__double, + "", + ""); + I_Method0(bool, needToLink, + Properties::VIRTUAL, + __bool__needToLink, + "", + ""); + I_Method0(const osgAnimation::AnimationList &, getAnimationList, + Properties::NON_VIRTUAL, + __C5_AnimationList_R1__getAnimationList, + "", + ""); + I_Method0(void, clearTargets, + Properties::NON_VIRTUAL, + __void__clearTargets, + "Reset the value of targets this Operation must be done each frame. ", + ""); + I_Method0(osgAnimation::LinkVisitor *, getOrCreateLinkVisitor, + Properties::NON_VIRTUAL, + __LinkVisitor_P1__getOrCreateLinkVisitor, + "", + ""); + I_Method1(void, setLinkVisitor, IN, osgAnimation::LinkVisitor *, x, + Properties::NON_VIRTUAL, + __void__setLinkVisitor__LinkVisitor_P1, + "", + ""); + I_Method1(void, setAutomaticLink, IN, bool, x, + Properties::NON_VIRTUAL, + __void__setAutomaticLink__bool, + "set a flag to define the behaviour ", + ""); + I_Method0(bool, isAutomaticLink, + Properties::NON_VIRTUAL, + __bool__isAutomaticLink, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "", + ""); + I_SimpleProperty(const osgAnimation::AnimationList &, AnimationList, + __C5_AnimationList_R1__getAnimationList, + 0); + I_SimpleProperty(bool, AutomaticLink, + 0, + __void__setAutomaticLink__bool); + I_SimpleProperty(osgAnimation::LinkVisitor *, LinkVisitor, + 0, + __void__setLinkVisitor__LinkVisitor_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Target >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Target *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Target > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Target *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Target *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Target > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Target *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osgAnimation::Target > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/Assert.cpp b/src/osgWrappers/introspection/osgAnimation/Assert.cpp new file mode 100644 index 000000000..31150b73a --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Assert.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgAnimation::ThrowAssert) + I_DeclaringFile("osgAnimation/Assert"); + I_Method0(const char *, what, + Properties::VIRTUAL, + __C5_char_P1__what, + "", + ""); + I_Constructor3(IN, const std::string &, msg, IN, const char *, file, IN, int, line, + ____ThrowAssert__C5_std_string_R1__C5_char_P1__int, + "", + ""); + I_Constructor0(____ThrowAssert, + "", + ""); + I_PublicMemberProperty(std::string, mMsg); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/BasicAnimationManager.cpp b/src/osgWrappers/introspection/osgAnimation/BasicAnimationManager.cpp new file mode 100644 index 000000000..99b99d397 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/BasicAnimationManager.cpp @@ -0,0 +1,98 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::BasicAnimationManager) + I_DeclaringFile("osgAnimation/BasicAnimationManager"); + I_BaseType(osgAnimation::AnimationManagerBase); + 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_Constructor0(____BasicAnimationManager, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgAnimation::AnimationManagerBase &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BasicAnimationManager__C5_AnimationManagerBase_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, update, IN, double, time, + Properties::VIRTUAL, + __void__update__double, + "", + ""); + I_MethodWithDefaults3(void, playAnimation, IN, osgAnimation::Animation *, pAnimation, , IN, int, priority, 0, IN, float, weight, 1.0, + Properties::NON_VIRTUAL, + __void__playAnimation__Animation_P1__int__float, + "", + ""); + I_Method1(bool, stopAnimation, IN, osgAnimation::Animation *, pAnimation, + Properties::NON_VIRTUAL, + __bool__stopAnimation__Animation_P1, + "", + ""); + I_Method1(bool, findAnimation, IN, osgAnimation::Animation *, pAnimation, + Properties::NON_VIRTUAL, + __bool__findAnimation__Animation_P1, + "", + ""); + I_Method1(bool, isPlaying, IN, osgAnimation::Animation *, pAnimation, + Properties::NON_VIRTUAL, + __bool__isPlaying__Animation_P1, + "", + ""); + I_Method1(bool, isPlaying, IN, const std::string &, animationName, + Properties::NON_VIRTUAL, + __bool__isPlaying__C5_std_string_R1, + "", + ""); + I_Method0(void, stopAll, + Properties::NON_VIRTUAL, + __void__stopAll, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Bone.cpp b/src/osgWrappers/introspection/osgAnimation/Bone.cpp new file mode 100644 index 000000000..db7e7feb7 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Bone.cpp @@ -0,0 +1,343 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::ref_ptr< osgAnimation::Bone >, osgAnimation::Bone::PointerType) + +TYPE_NAME_ALIAS(std::map< std::string COMMA osgAnimation::Bone::PointerType >, osgAnimation::Bone::BoneMap) + +TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::Bone::MatrixType) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone) + I_DeclaringFile("osgAnimation/Bone"); + I_BaseType(osg::Transform); + 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_ConstructorWithDefaults2(IN, const osgAnimation::Bone &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Bone__C5_Bone_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, const std::string &, name, "", + Properties::NON_EXPLICIT, + ____Bone__C5_std_string_R1, + "", + ""); + I_MethodWithDefaults1(void, setDefaultUpdateCallback, IN, const std::string &, name, "", + Properties::NON_VIRTUAL, + __void__setDefaultUpdateCallback__C5_std_string_R1, + "", + ""); + 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, + "", + ""); + I_Method0(osgAnimation::Bone *, getBoneParent, + Properties::NON_VIRTUAL, + __Bone_P1__getBoneParent, + "", + ""); + I_Method0(const osgAnimation::Bone *, getBoneParent, + Properties::NON_VIRTUAL, + __C5_Bone_P1__getBoneParent, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, trans, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, setRotation, IN, const osg::Quat &, quat, + Properties::NON_VIRTUAL, + __void__setRotation__C5_osg_Quat_R1, + "", + ""); + I_Method1(void, setScale, IN, const osg::Vec3 &, scale, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getTranslation, + "", + ""); + I_Method0(const osg::Quat &, getRotation, + Properties::NON_VIRTUAL, + __C5_osg_Quat_R1__getRotation, + "", + ""); + I_Method0(const osg::Vec3 &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getScale, + "", + ""); + I_Method0(osg::Matrix, getMatrixInBoneSpace, + Properties::NON_VIRTUAL, + __osg_Matrix__getMatrixInBoneSpace, + "", + ""); + I_Method0(const osg::Matrix &, getBindMatrixInBoneSpace, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getBindMatrixInBoneSpace, + "", + ""); + I_Method0(const osg::Matrix &, getMatrixInSkeletonSpace, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getMatrixInSkeletonSpace, + "", + ""); + I_Method0(const osg::Matrix &, getInvBindMatrixInSkeletonSpace, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInvBindMatrixInSkeletonSpace, + "", + ""); + I_Method1(void, setMatrixInSkeletonSpace, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrixInSkeletonSpace__C5_osg_Matrix_R1, + "", + ""); + I_Method1(void, setBindMatrixInBoneSpace, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setBindMatrixInBoneSpace__C5_osg_Matrix_R1, + "", + ""); + I_Method0(bool, needToComputeBindMatrix, + Properties::NON_VIRTUAL, + __bool__needToComputeBindMatrix, + "", + ""); + I_Method0(void, computeBindMatrix, + Properties::VIRTUAL, + __void__computeBindMatrix, + "", + ""); + I_Method1(void, setNeedToComputeBindMatrix, IN, bool, state, + Properties::NON_VIRTUAL, + __void__setNeedToComputeBindMatrix__bool, + "", + ""); + 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_Method0(osgAnimation::Bone::BoneMap, getBoneMap, + Properties::NON_VIRTUAL, + __BoneMap__getBoneMap, + "", + ""); + I_SimpleProperty(const osg::Matrix &, BindMatrixInBoneSpace, + __C5_osg_Matrix_R1__getBindMatrixInBoneSpace, + __void__setBindMatrixInBoneSpace__C5_osg_Matrix_R1); + I_SimpleProperty(osgAnimation::Bone::BoneMap, BoneMap, + __BoneMap__getBoneMap, + 0); + I_SimpleProperty(osgAnimation::Bone *, BoneParent, + __Bone_P1__getBoneParent, + 0); + I_SimpleProperty(const std::string &, DefaultUpdateCallback, + 0, + __void__setDefaultUpdateCallback__C5_std_string_R1); + I_SimpleProperty(const osg::Matrix &, InvBindMatrixInSkeletonSpace, + __C5_osg_Matrix_R1__getInvBindMatrixInSkeletonSpace, + 0); + I_SimpleProperty(osg::Matrix, MatrixInBoneSpace, + __osg_Matrix__getMatrixInBoneSpace, + 0); + I_SimpleProperty(const osg::Matrix &, MatrixInSkeletonSpace, + __C5_osg_Matrix_R1__getMatrixInSkeletonSpace, + __void__setMatrixInSkeletonSpace__C5_osg_Matrix_R1); + I_SimpleProperty(bool, NeedToComputeBindMatrix, + 0, + __void__setNeedToComputeBindMatrix__bool); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(const osg::Vec3 &, Scale, + __C5_osg_Vec3_R1__getScale, + __void__setScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, Translation, + __C5_osg_Vec3_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Bone::UpdateBone) + I_DeclaringFile("osgAnimation/Bone"); + 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_Constructor2(IN, const osgAnimation::Bone::UpdateBone &, apc, IN, const osg::CopyOp &, copyop, + ____UpdateBone__C5_UpdateBone_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, const std::string &, name, "", + Properties::NON_EXPLICIT, + ____UpdateBone__C5_std_string_R1, + "", + ""); + I_Method1(void, update, IN, osgAnimation::Bone &, bone, + Properties::NON_VIRTUAL, + __void__update__osgAnimation_Bone_R1, + "", + ""); + I_Method0(osgAnimation::QuatTarget *, getQuaternion, + Properties::NON_VIRTUAL, + __osgAnimation_QuatTarget_P1__getQuaternion, + "", + ""); + I_Method0(osgAnimation::Vec3Target *, getPosition, + Properties::NON_VIRTUAL, + __osgAnimation_Vec3Target_P1__getPosition, + "", + ""); + I_Method0(osgAnimation::Vec3Target *, getScale, + Properties::NON_VIRTUAL, + __osgAnimation_Vec3Target_P1__getScale, + "", + ""); + I_Method0(bool, needLink, + Properties::NON_VIRTUAL, + __bool__needLink, + "", + ""); + I_Method1(bool, link, IN, osgAnimation::Channel *, channel, + Properties::VIRTUAL, + __bool__link__osgAnimation_Channel_P1, + "Link channel. ", + ""); + I_SimpleProperty(osgAnimation::Vec3Target *, Position, + __osgAnimation_Vec3Target_P1__getPosition, + 0); + I_SimpleProperty(osgAnimation::QuatTarget *, Quaternion, + __osgAnimation_QuatTarget_P1__getQuaternion, + 0); + I_SimpleProperty(osgAnimation::Vec3Target *, Scale, + __osgAnimation_Vec3Target_P1__getScale, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Bone >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Bone *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Bone > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Bone *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Bone *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Bone > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Bone *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osgAnimation::Bone::PointerType >) + diff --git a/src/osgWrappers/introspection/osgAnimation/BoneMapVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/BoneMapVisitor.cpp new file mode 100644 index 000000000..ac6dfc4cb --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/BoneMapVisitor.cpp @@ -0,0 +1,61 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::BoneMapVisitor) + I_DeclaringFile("osgAnimation/BoneMapVisitor"); + I_BaseType(osg::NodeVisitor); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + I_Constructor0(____BoneMapVisitor, + "", + ""); + 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_Method0(const osgAnimation::Bone::BoneMap &, getBoneMap, + Properties::NON_VIRTUAL, + __C5_Bone_BoneMap_R1__getBoneMap, + "", + ""); + I_SimpleProperty(const osgAnimation::Bone::BoneMap &, BoneMap, + __C5_Bone_BoneMap_R1__getBoneMap, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Channel.cpp b/src/osgWrappers/introspection/osgAnimation/Channel.cpp new file mode 100644 index 000000000..d567578a7 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Channel.cpp @@ -0,0 +1,203 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::Channel) + I_DeclaringFile("osgAnimation/Channel"); + I_BaseType(osg::Referenced); + I_Constructor0(____Channel, + "", + ""); + I_Constructor1(IN, const osgAnimation::Channel &, channel, + Properties::NON_EXPLICIT, + ____Channel__C5_Channel_R1, + "", + ""); + I_Method0(osgAnimation::Channel *, clone, + Properties::PURE_VIRTUAL, + __Channel_P1__clone, + "", + ""); + I_Method3(void, update, IN, float, time, IN, float, weight, IN, int, priority, + Properties::PURE_VIRTUAL, + __void__update__float__float__int, + "", + ""); + I_Method0(void, reset, + Properties::PURE_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osgAnimation::Target *, getTarget, + Properties::PURE_VIRTUAL, + __Target_P1__getTarget, + "", + ""); + I_Method1(bool, setTarget, IN, osgAnimation::Target *, x, + Properties::PURE_VIRTUAL, + __bool__setTarget__Target_P1, + "", + ""); + I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getName, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "", + ""); + I_Method0(float, getStartTime, + Properties::PURE_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::PURE_VIRTUAL, + __float__getEndTime, + "", + ""); + I_Method0(const std::string &, getTargetName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getTargetName, + "", + ""); + I_Method1(void, setTargetName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setTargetName__C5_std_string_R1, + "", + ""); + I_Method0(osgAnimation::Sampler *, getSampler, + Properties::PURE_VIRTUAL, + __Sampler_P1__getSampler, + "", + ""); + I_Method0(const osgAnimation::Sampler *, getSampler, + Properties::PURE_VIRTUAL, + __C5_Sampler_P1__getSampler, + "", + ""); + I_Method0(bool, createKeyframeContainerFromTargetValue, + Properties::PURE_VIRTUAL, + __bool__createKeyframeContainerFromTargetValue, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); + I_SimpleProperty(osgAnimation::Sampler *, Sampler, + __Sampler_P1__getSampler, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); + I_SimpleProperty(osgAnimation::Target *, Target, + __Target_P1__getTarget, + __bool__setTarget__Target_P1); + I_SimpleProperty(const std::string &, TargetName, + __C5_std_string_R1__getTargetName, + __void__setTargetName__C5_std_string_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgAnimation::Channel > >, osgAnimation::ChannelList) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::DoubleStepSampler >, osgAnimation::DoubleStepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::FloatStepSampler >, osgAnimation::FloatStepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec2StepSampler >, osgAnimation::Vec2StepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec3StepSampler >, osgAnimation::Vec3StepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec4StepSampler >, osgAnimation::Vec4StepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::QuatStepSampler >, osgAnimation::QuatStepChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::DoubleLinearSampler >, osgAnimation::DoubleLinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::FloatLinearSampler >, osgAnimation::FloatLinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec2LinearSampler >, osgAnimation::Vec2LinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec3LinearSampler >, osgAnimation::Vec3LinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec4LinearSampler >, osgAnimation::Vec4LinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::QuatSphericalLinearSampler >, osgAnimation::QuatSphericalLinearChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::FloatCubicBezierSampler >, osgAnimation::FloatCubicBezierChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::DoubleCubicBezierSampler >, osgAnimation::DoubleCubicBezierChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec2CubicBezierSampler >, osgAnimation::Vec2CubicBezierChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec3CubicBezierSampler >, osgAnimation::Vec3CubicBezierChannel) + +TYPE_NAME_ALIAS(osgAnimation::TemplateChannel< osgAnimation::Vec4CubicBezierSampler >, osgAnimation::Vec4CubicBezierChannel) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Channel >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Channel *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Channel > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Channel *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Channel *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Channel > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Channel *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::Channel > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/ComputeBindMatrixVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/ComputeBindMatrixVisitor.cpp new file mode 100644 index 000000000..30d4e6f9c --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/ComputeBindMatrixVisitor.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::ComputeBindMatrixVisitor) + I_DeclaringFile("osgAnimation/ComputeBindMatrixVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____ComputeBindMatrixVisitor, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/CubicBezier.cpp b/src/osgWrappers/introspection/osgAnimation/CubicBezier.cpp new file mode 100644 index 000000000..a4e404fb4 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/CubicBezier.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< float >, osgAnimation::FloatCubicBezier) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< double >, osgAnimation::DoubleCubicBezier) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< osg::Vec2 >, osgAnimation::Vec2CubicBezier) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< osg::Vec3 >, osgAnimation::Vec3CubicBezier) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezier< osg::Vec4 >, osgAnimation::Vec4CubicBezier) + diff --git a/src/osgWrappers/introspection/osgAnimation/EaseMotion.cpp b/src/osgWrappers/introspection/osgAnimation/EaseMotion.cpp new file mode 100644 index 000000000..1a268030a --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/EaseMotion.cpp @@ -0,0 +1,607 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgAnimation::Motion > >, osgAnimation::CompositeMotion::MotionList) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::CompositeMotion) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_Method0(osgAnimation::CompositeMotion::MotionList &, getMotionList, + Properties::NON_VIRTUAL, + __MotionList_R1__getMotionList, + "", + ""); + I_Method0(const osgAnimation::CompositeMotion::MotionList &, getMotionList, + Properties::NON_VIRTUAL, + __C5_MotionList_R1__getMotionList, + "", + ""); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____CompositeMotion__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); + I_SimpleProperty(osgAnimation::CompositeMotion::MotionList &, MotionList, + __MotionList_R1__getMotionList, + 0); + I_PublicMemberProperty(osgAnimation::CompositeMotion::MotionList, _motions); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InBounceFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InBounceFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InCubicFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InCubicFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InElasticFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InElasticFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InOutBounceFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InOutBounceFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InOutCubicFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InOutCubicFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InOutElasticFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InOutElasticFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InOutQuadFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InOutQuadFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InOutQuartFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InOutQuartFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InQuadFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InQuadFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::InQuartFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____InQuartFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::LinearFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____LinearFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgAnimation::Motion::TimeBehaviour) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_EnumLabel(osgAnimation::Motion::CLAMP); + I_EnumLabel(osgAnimation::Motion::LOOP); +END_REFLECTOR + +TYPE_NAME_ALIAS(float, osgAnimation::Motion::value_type) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::Motion) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____Motion__float__float__float__TimeBehaviour, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(float, getTime, + Properties::NON_VIRTUAL, + __float__getTime, + "", + ""); + I_Method1(float, evaluateTime, IN, float, time, + Properties::NON_VIRTUAL, + __float__evaluateTime__float, + "", + ""); + I_Method1(void, update, IN, float, dt, + Properties::NON_VIRTUAL, + __void__update__float, + "", + ""); + I_Method1(void, setTime, IN, float, time, + Properties::NON_VIRTUAL, + __void__setTime__float, + "", + ""); + I_Method1(void, getValue, IN, osgAnimation::Motion::value_type &, result, + Properties::NON_VIRTUAL, + __void__getValue__value_type_R1, + "", + ""); + I_Method0(osgAnimation::Motion::value_type, getValue, + Properties::NON_VIRTUAL, + __value_type__getValue, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::Motion::value_type &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__value_type_R1, + "", + ""); + I_Method1(osgAnimation::Motion::value_type, getValueAt, IN, float, time, + Properties::NON_VIRTUAL, + __value_type__getValueAt__float, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::PURE_VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); + I_Method0(float, getDuration, + Properties::NON_VIRTUAL, + __float__getDuration, + "", + ""); + I_SimpleProperty(float, Duration, + __float__getDuration, + 0); + I_SimpleProperty(float, Time, + __float__getTime, + __void__setTime__float); + I_SimpleProperty(osgAnimation::Motion::value_type, Value, + __value_type__getValue, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::OutBounceFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____OutBounceFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::OutCubicFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____OutCubicFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::OutElasticFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____OutElasticFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::OutQuadFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____OutQuadFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::OutQuartFunction) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_Constructor0(____OutQuartFunction, + "", + ""); + I_StaticMethod2(void, getValueAt, IN, float, t, IN, float &, result, + __void__getValueAt__float__float_R1_S, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::LinearFunction >, osgAnimation::LinearMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::OutQuadFunction >, osgAnimation::OutQuadMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InQuadFunction >, osgAnimation::InQuadMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InOutQuadFunction >, osgAnimation::InOutQuadMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::OutCubicFunction >, osgAnimation::OutCubicMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InCubicFunction >, osgAnimation::InCubicMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InOutCubicFunction >, osgAnimation::InOutCubicMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::OutQuartFunction >, osgAnimation::OutQuartMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InQuartFunction >, osgAnimation::InQuartMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InOutQuartFunction >, osgAnimation::InOutQuartMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::OutBounceFunction >, osgAnimation::OutBounceMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InBounceFunction >, osgAnimation::InBounceMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InOutBounceFunction >, osgAnimation::InOutBounceMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::OutElasticFunction >, osgAnimation::OutElasticMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InElasticFunction >, osgAnimation::InElasticMotion) + +TYPE_NAME_ALIAS(osgAnimation::MathMotionTemplate< osgAnimation::InOutElasticFunction >, osgAnimation::InOutElasticMotion) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Motion >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Motion *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Motion > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Motion *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Motion *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Motion > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Motion *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InBounceFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InCubicFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InElasticFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InOutBounceFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InOutCubicFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InOutElasticFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InOutQuadFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InOutQuartFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InQuadFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::InQuartFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::LinearFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::OutBounceFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::OutCubicFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::OutElasticFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::OutQuadFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MathMotionTemplate< osgAnimation::OutQuartFunction >) + I_DeclaringFile("osgAnimation/EaseMotion"); + I_BaseType(osgAnimation::Motion); + I_ConstructorWithDefaults4(IN, float, startValue, 0, IN, float, duration, 1, IN, float, changeValue, 1, IN, osgAnimation::Motion::TimeBehaviour, tb, osgAnimation::Motion::CLAMP, + ____MathMotionTemplate__float__float__float__TimeBehaviour, + "", + ""); + I_Method2(void, getValueInNormalizedRange, IN, float, t, IN, osgAnimation::Motion::value_type &, result, + Properties::VIRTUAL, + __void__getValueInNormalizedRange__float__value_type_R1, + "", + ""); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::Motion > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/FindParentAnimationManagerVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/FindParentAnimationManagerVisitor.cpp new file mode 100644 index 000000000..908ac83ee --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/FindParentAnimationManagerVisitor.cpp @@ -0,0 +1,45 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::FindParentAnimationManagerVisitor) + I_DeclaringFile("osgAnimation/FindParentAnimationManagerVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____FindParentAnimationManagerVisitor, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method0(osgAnimation::AnimationManagerBase *, getAnimationManager, + Properties::NON_VIRTUAL, + __osgAnimation_AnimationManagerBase_P1__getAnimationManager, + "", + ""); + I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager, + __osgAnimation_AnimationManagerBase_P1__getAnimationManager, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/FrameAction.cpp b/src/osgWrappers/introspection/osgAnimation/FrameAction.cpp new file mode 100644 index 000000000..b93506cb0 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/FrameAction.cpp @@ -0,0 +1,67 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA osg::ref_ptr< osgAnimation::Action > >, osgAnimation::FrameAction) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::Action >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::Action *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::Action > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::Action *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::Action *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::Action > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::Action *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA osg::ref_ptr< osgAnimation::Action > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/Interpolator.cpp b/src/osgWrappers/introspection/osgAnimation/Interpolator.cpp new file mode 100644 index 000000000..3fcf811f6 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Interpolator.cpp @@ -0,0 +1,60 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< double COMMA double >, osgAnimation::DoubleStepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< float COMMA float >, osgAnimation::FloatStepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< osg::Vec2 COMMA osg::Vec2 >, osgAnimation::Vec2StepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< osg::Vec3 COMMA osg::Vec3 >, osgAnimation::Vec3StepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< osg::Vec3 COMMA osgAnimation::Vec3Packed >, osgAnimation::Vec3PackedStepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< osg::Vec4 COMMA osg::Vec4 >, osgAnimation::Vec4StepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateStepInterpolator< osg::Quat COMMA osg::Quat >, osgAnimation::QuatStepInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< double COMMA double >, osgAnimation::DoubleLinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< float COMMA float >, osgAnimation::FloatLinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< osg::Vec2 COMMA osg::Vec2 >, osgAnimation::Vec2LinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< osg::Vec3 COMMA osg::Vec3 >, osgAnimation::Vec3LinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< osg::Vec3 COMMA osgAnimation::Vec3Packed >, osgAnimation::Vec3PackedLinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateLinearInterpolator< osg::Vec4 COMMA osg::Vec4 >, osgAnimation::Vec4LinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSphericalLinearInterpolator< osg::Quat COMMA osg::Quat >, osgAnimation::QuatSphericalLinearInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< float COMMA osgAnimation::FloatCubicBezier >, osgAnimation::FloatCubicBezierInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< double COMMA osgAnimation::DoubleCubicBezier >, osgAnimation::DoubleCubicBezierInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec2 COMMA osgAnimation::Vec2CubicBezier >, osgAnimation::Vec2CubicBezierInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec3 COMMA osgAnimation::Vec3CubicBezier >, osgAnimation::Vec3CubicBezierInterpolator) + +TYPE_NAME_ALIAS(osgAnimation::TemplateCubicBezierInterpolator< osg::Vec4 COMMA osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierInterpolator) + diff --git a/src/osgWrappers/introspection/osgAnimation/Keyframe.cpp b/src/osgWrappers/introspection/osgAnimation/Keyframe.cpp new file mode 100644 index 000000000..18c44543e --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Keyframe.cpp @@ -0,0 +1,103 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgAnimation::Keyframe) + I_DeclaringFile("osgAnimation/Keyframe"); + I_Constructor0(____Keyframe, + "", + ""); + I_Method0(float, getTime, + Properties::NON_VIRTUAL, + __float__getTime, + "", + ""); + I_Method1(void, setTime, IN, float, time, + Properties::NON_VIRTUAL, + __void__setTime__float, + "", + ""); + I_SimpleProperty(float, Time, + __float__getTime, + __void__setTime__float); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::KeyframeContainer) + I_DeclaringFile("osgAnimation/Keyframe"); + I_BaseType(osg::Referenced); + I_Constructor0(____KeyframeContainer, + "", + ""); + I_Method0(unsigned int, size, + Properties::PURE_VIRTUAL, + __unsigned_int__size, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< float >, osgAnimation::FloatKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< float >, osgAnimation::FloatKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< double >, osgAnimation::DoubleKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< double >, osgAnimation::DoubleKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Vec2 >, osgAnimation::Vec2Keyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Vec2 >, osgAnimation::Vec2KeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Vec3 >, osgAnimation::Vec3Keyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Vec3 >, osgAnimation::Vec3KeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Vec4 >, osgAnimation::Vec4Keyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Vec4 >, osgAnimation::Vec4KeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osg::Quat >, osgAnimation::QuatKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osg::Quat >, osgAnimation::QuatKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::Vec3Packed >, osgAnimation::Vec3PackedKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3Packed >, osgAnimation::Vec3PackedKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::FloatCubicBezier >, osgAnimation::FloatCubicBezierKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::FloatCubicBezier >, osgAnimation::FloatCubicBezierKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::DoubleCubicBezier >, osgAnimation::DoubleCubicBezierKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::DoubleCubicBezier >, osgAnimation::DoubleCubicBezierKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::Vec2CubicBezier >, osgAnimation::Vec2CubicBezierKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec2CubicBezier >, osgAnimation::Vec2CubicBezierKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::Vec3CubicBezier >, osgAnimation::Vec3CubicBezierKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec3CubicBezier >, osgAnimation::Vec3CubicBezierKeyframeContainer) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframe< osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierKeyframe) + +TYPE_NAME_ALIAS(osgAnimation::TemplateKeyframeContainer< osgAnimation::Vec4CubicBezier >, osgAnimation::Vec4CubicBezierKeyframeContainer) + diff --git a/src/osgWrappers/introspection/osgAnimation/LinkVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/LinkVisitor.cpp new file mode 100644 index 000000000..1aa4366fb --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/LinkVisitor.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::LinkVisitor) + I_DeclaringFile("osgAnimation/LinkVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____LinkVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method0(osgAnimation::AnimationList &, getAnimationList, + Properties::NON_VIRTUAL, + __AnimationList_R1__getAnimationList, + "", + ""); + 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_Method0(unsigned int, getNbLinkedTarget, + Properties::NON_VIRTUAL, + __unsigned_int__getNbLinkedTarget, + "", + ""); + I_ProtectedMethod1(void, handle_stateset, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_stateset__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(void, link, IN, osgAnimation::AnimationUpdateCallbackBase *, cb, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__link__osgAnimation_AnimationUpdateCallbackBase_P1, + "", + ""); + I_SimpleProperty(osgAnimation::AnimationList &, AnimationList, + __AnimationList_R1__getAnimationList, + 0); + I_SimpleProperty(unsigned int, NbLinkedTarget, + __unsigned_int__getNbLinkedTarget, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/MorphGeometry.cpp b/src/osgWrappers/introspection/osgAnimation/MorphGeometry.cpp new file mode 100644 index 000000000..53376d3a2 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/MorphGeometry.cpp @@ -0,0 +1,250 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgAnimation::MorphGeometry::Method) + I_DeclaringFile("osgAnimation/MorphGeometry"); + I_EnumLabel(osgAnimation::MorphGeometry::NORMALIZED); + I_EnumLabel(osgAnimation::MorphGeometry::RELATIVE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgAnimation::MorphGeometry::MorphTarget >, osgAnimation::MorphGeometry::MorphTargetList) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MorphGeometry) + I_DeclaringFile("osgAnimation/MorphGeometry"); + I_BaseType(osg::Geometry); + I_Constructor0(____MorphGeometry, + "", + ""); + I_Constructor1(IN, const osg::Geometry &, b, + Properties::NON_EXPLICIT, + ____MorphGeometry__C5_osg_Geometry_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgAnimation::MorphGeometry &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MorphGeometry__C5_MorphGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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, transformSoftwareMethod, + Properties::VIRTUAL, + __void__transformSoftwareMethod, + "", + ""); + I_Method1(void, setMethod, IN, osgAnimation::MorphGeometry::Method, method, + Properties::NON_VIRTUAL, + __void__setMethod__Method, + "Set the morphing method. ", + ""); + I_Method0(osgAnimation::MorphGeometry::Method, getMethod, + Properties::NON_VIRTUAL, + __Method__getMethod, + "Get the morphing method. ", + ""); + I_Method1(void, setMorphNormals, IN, bool, morphNormals, + Properties::NON_VIRTUAL, + __void__setMorphNormals__bool, + "Set flag for morphing normals. ", + ""); + I_Method0(bool, getMorphNormals, + Properties::NON_VIRTUAL, + __bool__getMorphNormals, + "Get the flag for morphing normals. ", + ""); + I_MethodWithDefaults2(void, addMorphTarget, IN, osg::Geometry *, morphTarget, , IN, float, weight, 1.0, + Properties::VIRTUAL, + __void__addMorphTarget__osg_Geometry_P1__float, + "Add a MorphTarget to the MorphGeometry. ", + " param morphTarget The MorphTarget to be added to the MorphGeometry. weight The weight to be added to the MorphGeometry. return true for success; false otherwise. "); + I_Method2(void, setWeight, IN, unsigned int, index, IN, float, morphWeight, + Properties::NON_VIRTUAL, + __void__setWeight__unsigned_int__float, + "", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Set the MorphGeometry dirty. ", + ""); + I_Method0(const osgAnimation::MorphGeometry::MorphTargetList &, getMorphTargetList, + Properties::NON_VIRTUAL, + __C5_MorphTargetList_R1__getMorphTargetList, + "Get the list of MorphTargets. ", + ""); + I_Method0(osgAnimation::MorphGeometry::MorphTargetList &, getMorphTargetList, + Properties::NON_VIRTUAL, + __MorphTargetList_R1__getMorphTargetList, + "Get the list of MorphTargets. ", + "Warning if you modify this array you will have to call dirty() "); + I_Method1(const osgAnimation::MorphGeometry::MorphTarget &, getMorphTarget, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_MorphTarget_R1__getMorphTarget__unsigned_int, + "Return the MorphTarget at position i. ", + ""); + I_Method1(osgAnimation::MorphGeometry::MorphTarget &, getMorphTarget, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __MorphTarget_R1__getMorphTarget__unsigned_int, + "Return the MorphTarget at position i. ", + ""); + I_SimpleProperty(osgAnimation::MorphGeometry::Method, Method, + __Method__getMethod, + __void__setMethod__Method); + I_SimpleProperty(bool, MorphNormals, + __bool__getMorphNormals, + __void__setMorphNormals__bool); + I_SimpleProperty(osgAnimation::MorphGeometry::MorphTargetList &, MorphTargetList, + __MorphTargetList_R1__getMorphTargetList, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::MorphGeometry::MorphTarget) + I_DeclaringFile("osgAnimation/MorphGeometry"); + I_ConstructorWithDefaults2(IN, osg::Geometry *, geom, , IN, float, w, 1.0, + ____MorphTarget__osg_Geometry_P1__float, + "", + ""); + I_Method1(void, setWeight, IN, float, weight, + Properties::NON_VIRTUAL, + __void__setWeight__float, + "", + ""); + I_Method0(const float, getWeight, + Properties::NON_VIRTUAL, + __C5_float__getWeight, + "", + ""); + 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, setGeometry, IN, osg::Geometry *, geom, + Properties::NON_VIRTUAL, + __void__setGeometry__osg_Geometry_P1, + "", + ""); + I_SimpleProperty(osg::Geometry *, Geometry, + __osg_Geometry_P1__getGeometry, + __void__setGeometry__osg_Geometry_P1); + I_SimpleProperty(float, Weight, + 0, + __void__setWeight__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::MorphGeometry::UpdateVertex) + I_DeclaringFile("osgAnimation/MorphGeometry"); + I_BaseType(osg::Drawable::UpdateCallback); + I_Constructor0(____UpdateVertex, + "", + ""); + 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. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMorph) + I_DeclaringFile("osgAnimation/MorphGeometry"); + 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_ConstructorWithDefaults1(IN, const std::string &, name, "", + Properties::NON_EXPLICIT, + ____UpdateMorph__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgAnimation::UpdateMorph &, apc, IN, const osg::CopyOp &, copyop, + ____UpdateMorph__C5_UpdateMorph_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(bool, needLink, + Properties::NON_VIRTUAL, + __bool__needLink, + "", + ""); + I_Method1(bool, link, IN, osgAnimation::Channel *, channel, + Properties::VIRTUAL, + __bool__link__osgAnimation_Channel_P1, + "", + ""); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::MorphGeometry::MorphTarget >) + diff --git a/src/osgWrappers/introspection/osgAnimation/RigGeometry.cpp b/src/osgWrappers/introspection/osgAnimation/RigGeometry.cpp new file mode 100644 index 000000000..92a33d312 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/RigGeometry.cpp @@ -0,0 +1,178 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::RigGeometry) + I_DeclaringFile("osgAnimation/RigGeometry"); + I_BaseType(osg::Geometry); + I_Constructor0(____RigGeometry, + "", + ""); + I_Constructor1(IN, const osg::Geometry &, b, + Properties::NON_EXPLICIT, + ____RigGeometry__C5_osg_Geometry_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgAnimation::RigGeometry &, b, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RigGeometry__C5_RigGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setInfluenceMap, IN, osgAnimation::VertexInfluenceMap *, vertexInfluenceMap, + Properties::NON_VIRTUAL, + __void__setInfluenceMap__VertexInfluenceMap_P1, + "", + ""); + I_Method0(const osgAnimation::VertexInfluenceMap *, getInfluenceMap, + Properties::NON_VIRTUAL, + __C5_VertexInfluenceMap_P1__getInfluenceMap, + "", + ""); + I_Method0(osgAnimation::VertexInfluenceMap *, getInfluenceMap, + Properties::NON_VIRTUAL, + __VertexInfluenceMap_P1__getInfluenceMap, + "", + ""); + I_Method0(const osgAnimation::Skeleton *, getSkeleton, + Properties::NON_VIRTUAL, + __C5_Skeleton_P1__getSkeleton, + "", + ""); + I_Method0(osgAnimation::Skeleton *, getSkeleton, + Properties::NON_VIRTUAL, + __Skeleton_P1__getSkeleton, + "", + ""); + I_Method1(void, setSkeleton, IN, osgAnimation::Skeleton *, x, + Properties::NON_VIRTUAL, + __void__setSkeleton__Skeleton_P1, + "", + ""); + I_Method1(void, setNeedToComputeMatrix, IN, bool, state, + Properties::NON_VIRTUAL, + __void__setNeedToComputeMatrix__bool, + "", + ""); + I_Method0(bool, getNeedToComputeMatrix, + Properties::NON_VIRTUAL, + __bool__getNeedToComputeMatrix, + "", + ""); + I_Method0(void, buildVertexInfluenceSet, + Properties::NON_VIRTUAL, + __void__buildVertexInfluenceSet, + "", + ""); + I_Method0(const osgAnimation::VertexInfluenceSet &, getVertexInfluenceSet, + Properties::NON_VIRTUAL, + __C5_VertexInfluenceSet_R1__getVertexInfluenceSet, + "", + ""); + I_Method0(void, computeMatrixFromRootSkeleton, + Properties::NON_VIRTUAL, + __void__computeMatrixFromRootSkeleton, + "", + ""); + I_Method1(void, setRigTransformImplementation, IN, osgAnimation::RigTransform *, x, + Properties::NON_VIRTUAL, + __void__setRigTransformImplementation__RigTransform_P1, + "", + ""); + I_Method0(osgAnimation::RigTransform *, getRigTransformImplementation, + Properties::NON_VIRTUAL, + __RigTransform_P1__getRigTransformImplementation, + "", + ""); + I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_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_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "", + ""); + I_Method0(const osg::Matrix &, getMatrixFromSkeletonToGeometry, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getMatrixFromSkeletonToGeometry, + "", + ""); + I_Method0(const osg::Matrix &, getInvMatrixFromSkeletonToGeometry, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInvMatrixFromSkeletonToGeometry, + "", + ""); + I_SimpleProperty(osgAnimation::VertexInfluenceMap *, InfluenceMap, + __VertexInfluenceMap_P1__getInfluenceMap, + __void__setInfluenceMap__VertexInfluenceMap_P1); + I_SimpleProperty(const osg::Matrix &, InvMatrixFromSkeletonToGeometry, + __C5_osg_Matrix_R1__getInvMatrixFromSkeletonToGeometry, + 0); + I_SimpleProperty(const osg::Matrix &, MatrixFromSkeletonToGeometry, + __C5_osg_Matrix_R1__getMatrixFromSkeletonToGeometry, + 0); + I_SimpleProperty(bool, NeedToComputeMatrix, + __bool__getNeedToComputeMatrix, + __void__setNeedToComputeMatrix__bool); + I_SimpleProperty(osgAnimation::RigTransform *, RigTransformImplementation, + __RigTransform_P1__getRigTransformImplementation, + __void__setRigTransformImplementation__RigTransform_P1); + I_SimpleProperty(osgAnimation::Skeleton *, Skeleton, + __Skeleton_P1__getSkeleton, + __void__setSkeleton__Skeleton_P1); + I_SimpleProperty(const osgAnimation::VertexInfluenceSet &, VertexInfluenceSet, + __C5_VertexInfluenceSet_R1__getVertexInfluenceSet, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/RigTransform.cpp b/src/osgWrappers/introspection/osgAnimation/RigTransform.cpp new file mode 100644 index 000000000..3fb649a11 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/RigTransform.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::RigTransform) + I_DeclaringFile("osgAnimation/RigTransform"); + I_BaseType(osg::Referenced); + I_Constructor0(____RigTransform, + "", + ""); + I_Method0(bool, needInit, + Properties::NON_VIRTUAL, + __bool__needInit, + "", + ""); + I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x, + Properties::PURE_VIRTUAL, + __bool__init__RigGeometry_R1, + "", + ""); + I_Method1(void, update, IN, osgAnimation::RigGeometry &, x, + Properties::PURE_VIRTUAL, + __void__update__RigGeometry_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/RigTransformHardware.cpp b/src/osgWrappers/introspection/osgAnimation/RigTransformHardware.cpp new file mode 100644 index 000000000..7766e1000 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/RigTransformHardware.cpp @@ -0,0 +1,242 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Matrix, osgAnimation::RigTransformHardware::MatrixType) + +TYPE_NAME_ALIAS(osgAnimation::Bone, osgAnimation::RigTransformHardware::BoneType) + +TYPE_NAME_ALIAS(osgAnimation::Bone::BoneMap, osgAnimation::RigTransformHardware::BoneMap) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec4Array > >, osgAnimation::RigTransformHardware::BoneWeightAttribList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > >, osgAnimation::RigTransformHardware::BonePalette) + +TYPE_NAME_ALIAS(std::vector< osg::Matrix >, osgAnimation::RigTransformHardware::MatrixPalette) + +TYPE_NAME_ALIAS(std::vector< std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry > >, osgAnimation::RigTransformHardware::VertexIndexWeightList) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::RigTransformHardware) + I_DeclaringFile("osgAnimation/RigTransformHardware"); + I_BaseType(osgAnimation::RigTransform); + I_Constructor0(____RigTransformHardware, + "", + ""); + I_Method1(osg::Vec4Array *, getVertexAttrib, IN, int, index, + Properties::NON_VIRTUAL, + __osg_Vec4Array_P1__getVertexAttrib__int, + "", + ""); + I_Method0(int, getNumVertexAttrib, + Properties::NON_VIRTUAL, + __int__getNumVertexAttrib, + "", + ""); + I_Method0(osg::Uniform *, getMatrixPaletteUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getMatrixPaletteUniform, + "", + ""); + I_Method2(void, computeMatrixPaletteUniform, IN, const osg::Matrix &, transformFromSkeletonToGeometry, IN, const osg::Matrix &, invTransformFromSkeletonToGeometry, + Properties::NON_VIRTUAL, + __void__computeMatrixPaletteUniform__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method0(int, getNumBonesPerVertex, + Properties::NON_VIRTUAL, + __int__getNumBonesPerVertex, + "", + ""); + I_Method0(int, getNumVertexes, + Properties::NON_VIRTUAL, + __int__getNumVertexes, + "", + ""); + I_Method3(bool, createPalette, IN, int, nbVertexes, IN, osgAnimation::RigTransformHardware::BoneMap, boneMap, IN, const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, vertexIndexToBoneWeightMap, + Properties::NON_VIRTUAL, + __bool__createPalette__int__BoneMap__C5_VertexInfluenceSet_VertexIndexToBoneWeightMap_R1, + "", + ""); + I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x, + Properties::VIRTUAL, + __bool__init__RigGeometry_R1, + "", + ""); + I_Method1(void, update, IN, osgAnimation::RigGeometry &, x, + Properties::VIRTUAL, + __void__update__RigGeometry_R1, + "", + ""); + I_Method1(void, setShader, IN, osg::Shader *, x, + Properties::NON_VIRTUAL, + __void__setShader__osg_Shader_P1, + "", + ""); + I_ProtectedMethod0(osgAnimation::RigTransformHardware::BoneWeightAttribList, createVertexAttribList, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __BoneWeightAttribList__createVertexAttribList, + "", + ""); + I_ProtectedMethod0(osg::Uniform *, createVertexUniform, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Uniform_P1__createVertexUniform, + "", + ""); + I_SimpleProperty(osg::Uniform *, MatrixPaletteUniform, + __osg_Uniform_P1__getMatrixPaletteUniform, + 0); + I_SimpleProperty(osg::Shader *, Shader, + 0, + __void__setShader__osg_Shader_P1); + I_ArrayProperty(osg::Vec4Array *, VertexAttrib, + __osg_Vec4Array_P1__getVertexAttrib__int, + 0, + __int__getNumVertexAttrib, + 0, + 0, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformHardware::IndexWeightEntry) + I_DeclaringFile("osgAnimation/RigTransformHardware"); + I_Constructor0(____IndexWeightEntry, + "", + ""); + I_Constructor2(IN, int, index, IN, float, weight, + ____IndexWeightEntry__int__float, + "", + ""); + I_Method0(int, getIndex, + Properties::NON_VIRTUAL, + __int__getIndex, + "", + ""); + I_Method0(float, getWeight, + Properties::NON_VIRTUAL, + __float__getWeight, + "", + ""); + I_SimpleProperty(int, Index, + __int__getIndex, + 0); + I_SimpleProperty(float, Weight, + __float__getWeight, + 0); + I_PublicMemberProperty(int, _boneIndex); + I_PublicMemberProperty(float, _boneWeight); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec4Array >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Vec4Array *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Vec4Array > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Vec4Array *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Vec4Array *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Vec4Array > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Vec4Array *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgAnimation::RigTransformHardware::BoneType *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgAnimation::RigTransformHardware::BoneType *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgAnimation::RigTransformHardware::BoneType *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgAnimation::RigTransformHardware::BoneType *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Vec4Array > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgAnimation::RigTransformHardware::BoneType > >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry >) + +STD_VECTOR_REFLECTOR(std::vector< std::vector< osgAnimation::RigTransformHardware::IndexWeightEntry > >) + diff --git a/src/osgWrappers/introspection/osgAnimation/RigTransformSoftware.cpp b/src/osgWrappers/introspection/osgAnimation/RigTransformSoftware.cpp new file mode 100644 index 000000000..50488b6c7 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/RigTransformSoftware.cpp @@ -0,0 +1,149 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osgAnimation::RigTransformSoftware::BoneWeight >, osgAnimation::RigTransformSoftware::BoneWeightList) + +TYPE_NAME_ALIAS(std::vector< int >, osgAnimation::RigTransformSoftware::VertexList) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::RigTransformSoftware) + I_DeclaringFile("osgAnimation/RigTransformSoftware"); + I_BaseType(osgAnimation::RigTransform); + I_Constructor0(____RigTransformSoftware, + "", + ""); + I_Method1(bool, init, IN, osgAnimation::RigGeometry &, x, + Properties::VIRTUAL, + __bool__init__RigGeometry_R1, + "", + ""); + I_Method1(void, update, IN, osgAnimation::RigGeometry &, x, + Properties::VIRTUAL, + __void__update__RigGeometry_R1, + "", + ""); + I_Method0(const std::vector< osg::Vec3 > &, getPositionSource, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_osg_Vec3__R1__getPositionSource, + "", + ""); + I_Method0(const std::vector< osg::Vec3 > &, getNormalSource, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_osg_Vec3__R1__getNormalSource, + "", + ""); + I_ProtectedMethod2(void, initVertexSetFromBones, IN, const osgAnimation::Bone::BoneMap &, map, IN, const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, influence, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__initVertexSetFromBones__C5_Bone_BoneMap_R1__C5_VertexInfluenceSet_UniqVertexSetToBoneSetList_R1, + "", + ""); + I_SimpleProperty(const std::vector< osg::Vec3 > &, NormalSource, + __C5_std_vectorT1_osg_Vec3__R1__getNormalSource, + 0); + I_SimpleProperty(const std::vector< osg::Vec3 > &, PositionSource, + __C5_std_vectorT1_osg_Vec3__R1__getPositionSource, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformSoftware::BoneWeight) + I_DeclaringFile("osgAnimation/RigTransformSoftware"); + I_Constructor2(IN, osgAnimation::Bone *, bone, IN, float, weight, + ____BoneWeight__Bone_P1__float, + "", + ""); + I_Method0(const osgAnimation::Bone *, getBone, + Properties::NON_VIRTUAL, + __C5_Bone_P1__getBone, + "", + ""); + I_Method0(float, getWeight, + Properties::NON_VIRTUAL, + __float__getWeight, + "", + ""); + I_Method1(void, setWeight, IN, float, w, + Properties::NON_VIRTUAL, + __void__setWeight__float, + "", + ""); + I_SimpleProperty(const osgAnimation::Bone *, Bone, + __C5_Bone_P1__getBone, + 0); + I_SimpleProperty(float, Weight, + __float__getWeight, + __void__setWeight__float); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::RigTransformSoftware::UniqBoneSetVertexSet) + I_DeclaringFile("osgAnimation/RigTransformSoftware"); + I_Constructor0(____UniqBoneSetVertexSet, + "", + ""); + I_Method0(osgAnimation::RigTransformSoftware::BoneWeightList &, getBones, + Properties::NON_VIRTUAL, + __BoneWeightList_R1__getBones, + "", + ""); + I_Method0(osgAnimation::RigTransformSoftware::VertexList &, getVertexes, + Properties::NON_VIRTUAL, + __VertexList_R1__getVertexes, + "", + ""); + I_Method0(void, resetMatrix, + Properties::NON_VIRTUAL, + __void__resetMatrix, + "", + ""); + I_Method3(void, accummulateMatrix, IN, const osg::Matrix &, invBindMatrix, IN, const osg::Matrix &, matrix, IN, osg::Matrix::value_type, weight, + Properties::NON_VIRTUAL, + __void__accummulateMatrix__C5_osg_Matrix_R1__C5_osg_Matrix_R1__osg_Matrix_value_type, + "", + ""); + I_Method0(void, computeMatrixForVertexSet, + Properties::NON_VIRTUAL, + __void__computeMatrixForVertexSet, + "", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getMatrix, + "", + ""); + I_SimpleProperty(osgAnimation::RigTransformSoftware::BoneWeightList &, Bones, + __BoneWeightList_R1__getBones, + 0); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_osg_Matrix_R1__getMatrix, + 0); + I_SimpleProperty(osgAnimation::RigTransformSoftware::VertexList &, Vertexes, + __VertexList_R1__getVertexes, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< int >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::RigTransformSoftware::BoneWeight >) + diff --git a/src/osgWrappers/introspection/osgAnimation/Sampler.cpp b/src/osgWrappers/introspection/osgAnimation/Sampler.cpp new file mode 100644 index 000000000..3fa59ce84 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Sampler.cpp @@ -0,0 +1,1184 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::Sampler) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osg::Referenced); + I_Constructor0(____Sampler, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::PURE_VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::PURE_VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >, osgAnimation::DoubleStepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >, osgAnimation::FloatStepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >, osgAnimation::Vec2StepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >, osgAnimation::Vec3StepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >, osgAnimation::Vec4StepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >, osgAnimation::QuatStepSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >, osgAnimation::DoubleLinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >, osgAnimation::FloatLinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >, osgAnimation::Vec2LinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >, osgAnimation::Vec3LinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >, osgAnimation::Vec4LinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >, osgAnimation::QuatSphericalLinearSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >, osgAnimation::FloatCubicBezierSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >, osgAnimation::DoubleCubicBezierSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >, osgAnimation::Vec2CubicBezierSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >, osgAnimation::Vec3CubicBezierSampler) + +TYPE_NAME_ALIAS(osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >, osgAnimation::Vec4CubicBezierSampler) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::DoubleCubicBezierInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::DoubleLinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::DoubleStepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::FloatCubicBezierInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::FloatLinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::FloatStepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::QuatSphericalLinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::QuatStepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec2CubicBezierInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec2LinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec2StepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec3CubicBezierInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec3LinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec3StepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec4CubicBezierInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec4LinearInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >) + I_DeclaringFile("osgAnimation/Sampler"); + I_BaseType(osgAnimation::Sampler); + I_Constructor0(____TemplateSampler, + "", + ""); + I_Method2(void, getValueAt, IN, float, time, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::UsingType &, result, + Properties::NON_VIRTUAL, + __void__getValueAt__float__UsingType_R1, + "", + ""); + I_Method1(void, setKeyframeContainer, IN, osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::KeyframeContainerType *, kf, + Properties::NON_VIRTUAL, + __void__setKeyframeContainer__KeyframeContainerType_P1, + "", + ""); + I_Method0(osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(const osgAnimation::KeyframeContainer *, getKeyframeContainer, + Properties::VIRTUAL, + __C5_KeyframeContainer_P1__getKeyframeContainer, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(const osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::KeyframeContainerType *, getKeyframeContainerTyped, + Properties::NON_VIRTUAL, + __C5_KeyframeContainerType_P1__getKeyframeContainerTyped, + "", + ""); + I_Method0(osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::KeyframeContainerType *, getOrCreateKeyframeContainer, + Properties::NON_VIRTUAL, + __KeyframeContainerType_P1__getOrCreateKeyframeContainer, + "", + ""); + I_Method0(float, getStartTime, + Properties::NON_VIRTUAL, + __float__getStartTime, + "", + ""); + I_Method0(float, getEndTime, + Properties::NON_VIRTUAL, + __float__getEndTime, + "", + ""); + I_SimpleProperty(float, EndTime, + __float__getEndTime, + 0); + I_SimpleProperty(osgAnimation::KeyframeContainer *, KeyframeContainer, + __KeyframeContainer_P1__getKeyframeContainer, + 0); + I_SimpleProperty(osgAnimation::TemplateSampler< osgAnimation::Vec4StepInterpolator >::KeyframeContainerType *, KeyframeContainerTyped, + __KeyframeContainerType_P1__getKeyframeContainerTyped, + 0); + I_SimpleProperty(float, StartTime, + __float__getStartTime, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Skeleton.cpp b/src/osgWrappers/introspection/osgAnimation/Skeleton.cpp new file mode 100644 index 000000000..60ba276a1 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Skeleton.cpp @@ -0,0 +1,120 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Skeleton) + I_DeclaringFile("osgAnimation/Skeleton"); + I_BaseType(osgAnimation::Bone); + 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_Constructor0(____Skeleton, + "", + ""); + I_Constructor2(IN, const osgAnimation::Skeleton &, x, IN, const osg::CopyOp &, x, + ____Skeleton__C5_Skeleton_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(void, setDefaultUpdateCallback, + Properties::NON_VIRTUAL, + __void__setDefaultUpdateCallback, + "", + ""); + I_Method0(void, computeBindMatrix, + Properties::VIRTUAL, + __void__computeBindMatrix, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Skeleton::UpdateSkeleton) + I_DeclaringFile("osgAnimation/Skeleton"); + I_BaseType(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 &, 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_Constructor0(____UpdateSkeleton, + "", + ""); + I_Constructor2(IN, const osgAnimation::Skeleton::UpdateSkeleton &, x, IN, const osg::CopyOp &, x, + ____UpdateSkeleton__C5_UpdateSkeleton_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(bool, needToValidate, + Properties::NON_VIRTUAL, + __bool__needToValidate, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/StatsHandler.cpp b/src/osgWrappers/introspection/osgAnimation/StatsHandler.cpp new file mode 100644 index 000000000..c7be88826 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/StatsHandler.cpp @@ -0,0 +1,145 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgAnimation::StatsHandler::StatsType) + I_DeclaringFile("osgAnimation/StatsHandler"); + I_EnumLabel(osgAnimation::StatsHandler::NO_STATS); + I_EnumLabel(osgAnimation::StatsHandler::FRAME_RATE); + I_EnumLabel(osgAnimation::StatsHandler::LAST); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::StatsHandler) + I_DeclaringFile("osgAnimation/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_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + 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_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpHUDCamera__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createBackgroundRectangle, IN, const osg::Vec3 &, pos, IN, const float, width, IN, const float, height, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createBackgroundRectangle__C5_osg_Vec3_R1__C5_float__C5_float__osg_Vec4_R1, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createGeometry, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createGeometry__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createFrameMarkers, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createFrameMarkers__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createTick, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numTicks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createTick__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod7(osg::Node *, createCameraTimeStats, IN, const std::string &, font, IN, osg::Vec3 &, pos, IN, float, startBlocks, IN, bool, acquireGPUStats, IN, float, characterSize, IN, osg::Stats *, viewerStats, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Node_P1__createCameraTimeStats__C5_std_string_R1__osg_Vec3_R1__float__bool__float__osg_Stats_P1__osg_Camera_P1, + "", + ""); + I_ProtectedMethod1(void, setUpScene, IN, osgViewer::Viewer *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpScene__osgViewer_Viewer_P1, + "", + ""); + I_SimpleProperty(double, BlockMultiplier, + __double__getBlockMultiplier, + 0); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(int, KeyEventPrintsOutStats, + __int__getKeyEventPrintsOutStats, + __void__setKeyEventPrintsOutStats__int); + I_SimpleProperty(int, KeyEventTogglesOnScreenStats, + __int__getKeyEventTogglesOnScreenStats, + __void__setKeyEventTogglesOnScreenStats__int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/StatsVisitor.cpp b/src/osgWrappers/introspection/osgAnimation/StatsVisitor.cpp new file mode 100644 index 000000000..72e0129df --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/StatsVisitor.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::StatsActionVisitor) + I_DeclaringFile("osgAnimation/StatsVisitor"); + I_BaseType(osgAnimation::UpdateActionVisitor); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____StatsActionVisitor, + "", + ""); + I_Constructor2(IN, osg::Stats *, stats, IN, unsigned int, frame, + ____StatsActionVisitor__osg_Stats_P1__unsigned_int, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(const std::vector< std::string > &, getChannels, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_std_string__R1__getChannels, + "", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "", + ""); + I_Method1(void, setFrame, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__setFrame__unsigned_int, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Timeline &, action, + Properties::VIRTUAL, + __void__apply__Timeline_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::Action &, action, + Properties::VIRTUAL, + __void__apply__Action_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendIn &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendIn_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionBlendOut &, action, + Properties::VIRTUAL, + __void__apply__ActionBlendOut_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionAnimation_R1, + "", + ""); + I_Method1(void, apply, IN, osgAnimation::ActionStripAnimation &, action, + Properties::VIRTUAL, + __void__apply__ActionStripAnimation_R1, + "", + ""); + I_SimpleProperty(const std::vector< std::string > &, Channels, + __C5_std_vectorT1_std_string__R1__getChannels, + 0); + I_SimpleProperty(unsigned int, Frame, + 0, + __void__setFrame__unsigned_int); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Target.cpp b/src/osgWrappers/introspection/osgAnimation/Target.cpp new file mode 100644 index 000000000..469d8b596 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Target.cpp @@ -0,0 +1,67 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Target) + I_DeclaringFile("osgAnimation/Target"); + I_BaseType(osg::Referenced); + I_Constructor0(____Target, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(int, getCount, + Properties::NON_VIRTUAL, + __int__getCount, + "", + ""); + I_Method0(float, getWeight, + Properties::NON_VIRTUAL, + __float__getWeight, + "", + ""); + I_SimpleProperty(int, Count, + __int__getCount, + 0); + I_SimpleProperty(float, Weight, + __float__getWeight, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Quat >, osgAnimation::QuatTarget) + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Vec3 >, osgAnimation::Vec3Target) + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Vec4 >, osgAnimation::Vec4Target) + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< osg::Vec2 >, osgAnimation::Vec2Target) + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< float >, osgAnimation::FloatTarget) + +TYPE_NAME_ALIAS(osgAnimation::TemplateTarget< double >, osgAnimation::DoubleTarget) + diff --git a/src/osgWrappers/introspection/osgAnimation/Timeline.cpp b/src/osgWrappers/introspection/osgAnimation/Timeline.cpp new file mode 100644 index 000000000..8cafe5b24 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Timeline.cpp @@ -0,0 +1,247 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgAnimation::Timeline::TimelineStatus) + I_DeclaringFile("osgAnimation/Timeline"); + I_EnumLabel(osgAnimation::Timeline::Play); + I_EnumLabel(osgAnimation::Timeline::Stop); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgAnimation::FrameAction >, osgAnimation::Timeline::ActionList) + +TYPE_NAME_ALIAS(std::map< int COMMA osgAnimation::Timeline::ActionList >, osgAnimation::Timeline::ActionLayers) + +BEGIN_OBJECT_REFLECTOR(osgAnimation::Timeline) + I_DeclaringFile("osgAnimation/Timeline"); + I_BaseType(osgAnimation::Action); + I_Constructor0(____Timeline, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgAnimation::Timeline &, nc, , IN, const osg::CopyOp &, op, osg::CopyOp::SHALLOW_COPY, + ____Timeline__C5_Timeline_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgAnimation::ActionVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osgAnimation_ActionVisitor_R1, + "", + ""); + I_Method0(osgAnimation::Timeline::TimelineStatus, getStatus, + Properties::NON_VIRTUAL, + __TimelineStatus__getStatus, + "", + ""); + I_Method1(const osgAnimation::Timeline::ActionList &, getActionLayer, IN, int, i, + Properties::NON_VIRTUAL, + __C5_ActionList_R1__getActionLayer__int, + "", + ""); + I_Method0(unsigned int, getCurrentFrame, + Properties::NON_VIRTUAL, + __unsigned_int__getCurrentFrame, + "", + ""); + I_Method0(double, getCurrentTime, + Properties::NON_VIRTUAL, + __double__getCurrentTime, + "", + ""); + I_Method0(void, play, + Properties::NON_VIRTUAL, + __void__play, + "", + ""); + I_Method1(void, gotoFrame, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__gotoFrame__unsigned_int, + "", + ""); + I_Method0(void, stop, + Properties::NON_VIRTUAL, + __void__stop, + "", + ""); + I_Method0(bool, getEvaluating, + Properties::NON_VIRTUAL, + __bool__getEvaluating, + "", + ""); + I_Method1(bool, isActive, IN, osgAnimation::Action *, activeAction, + Properties::NON_VIRTUAL, + __bool__isActive__Action_P1, + "", + ""); + I_Method1(void, removeAction, IN, osgAnimation::Action *, action, + Properties::NON_VIRTUAL, + __void__removeAction__Action_P1, + "", + ""); + I_MethodWithDefaults3(void, addActionAt, IN, unsigned int, frame, , IN, osgAnimation::Action *, action, , IN, int, priority, 0, + Properties::VIRTUAL, + __void__addActionAt__unsigned_int__Action_P1__int, + "", + ""); + I_MethodWithDefaults3(void, addActionAt, IN, double, t, , IN, osgAnimation::Action *, action, , IN, int, priority, 0, + Properties::VIRTUAL, + __void__addActionAt__double__Action_P1__int, + "", + ""); + I_MethodWithDefaults2(void, addActionNow, IN, osgAnimation::Action *, action, , IN, int, priority, 0, + Properties::NON_VIRTUAL, + __void__addActionNow__Action_P1__int, + "", + ""); + I_Method0(void, clearActions, + Properties::NON_VIRTUAL, + __void__clearActions, + "", + ""); + I_Method1(void, update, IN, double, simulationTime, + Properties::VIRTUAL, + __void__update__double, + "", + ""); + I_Method1(void, setLastFrameEvaluated, IN, unsigned int, frame, + Properties::NON_VIRTUAL, + __void__setLastFrameEvaluated__unsigned_int, + "", + ""); + I_Method1(void, setEvaluating, IN, bool, state, + Properties::NON_VIRTUAL, + __void__setEvaluating__bool, + "", + ""); + I_Method1(void, traverse, IN, osgAnimation::ActionVisitor &, visitor, + Properties::VIRTUAL, + __void__traverse__ActionVisitor_R1, + "", + ""); + I_Method1(void, setStats, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__setStats__osg_Stats_P1, + "", + ""); + I_Method0(osg::Stats *, getStats, + Properties::NON_VIRTUAL, + __osg_Stats_P1__getStats, + "", + ""); + I_Method1(void, collectStats, IN, bool, state, + Properties::NON_VIRTUAL, + __void__collectStats__bool, + "", + ""); + I_Method0(osgAnimation::StatsActionVisitor *, getStatsVisitor, + Properties::NON_VIRTUAL, + __osgAnimation_StatsActionVisitor_P1__getStatsVisitor, + "", + ""); + I_Method0(const osgAnimation::Timeline::ActionLayers &, getActionLayers, + Properties::NON_VIRTUAL, + __C5_ActionLayers_R1__getActionLayers, + "", + ""); + I_Method0(void, processPendingOperation, + Properties::NON_VIRTUAL, + __void__processPendingOperation, + "", + ""); + I_Method1(void, setAnimationManager, IN, osgAnimation::AnimationManagerBase *, x, + Properties::NON_VIRTUAL, + __void__setAnimationManager__AnimationManagerBase_P1, + "", + ""); + I_ProtectedMethod1(void, internalRemoveAction, IN, osgAnimation::Action *, action, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__internalRemoveAction__Action_P1, + "", + ""); + I_ProtectedMethod2(void, internalAddAction, IN, int, priority, IN, const osgAnimation::FrameAction &, ftl, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__internalAddAction__int__C5_FrameAction_R1, + "", + ""); + I_SimpleProperty(const osgAnimation::Timeline::ActionLayers &, ActionLayers, + __C5_ActionLayers_R1__getActionLayers, + 0); + I_SimpleProperty(osgAnimation::AnimationManagerBase *, AnimationManager, + 0, + __void__setAnimationManager__AnimationManagerBase_P1); + I_SimpleProperty(unsigned int, CurrentFrame, + __unsigned_int__getCurrentFrame, + 0); + I_SimpleProperty(double, CurrentTime, + __double__getCurrentTime, + 0); + I_SimpleProperty(bool, Evaluating, + __bool__getEvaluating, + __void__setEvaluating__bool); + I_SimpleProperty(unsigned int, LastFrameEvaluated, + 0, + __void__setLastFrameEvaluated__unsigned_int); + I_SimpleProperty(osg::Stats *, Stats, + __osg_Stats_P1__getStats, + __void__setStats__osg_Stats_P1); + I_SimpleProperty(osgAnimation::StatsActionVisitor *, StatsVisitor, + __osgAnimation_StatsActionVisitor_P1__getStatsVisitor, + 0); + I_SimpleProperty(osgAnimation::Timeline::TimelineStatus, Status, + __TimelineStatus__getStatus, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< int COMMA osgAnimation::Timeline::ActionList >) + diff --git a/src/osgWrappers/introspection/osgAnimation/TimelineAnimationManager.cpp b/src/osgWrappers/introspection/osgAnimation/TimelineAnimationManager.cpp new file mode 100644 index 000000000..f3d3f32dd --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/TimelineAnimationManager.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgAnimation::TimelineAnimationManager) + I_DeclaringFile("osgAnimation/TimelineAnimationManager"); + I_BaseType(osgAnimation::AnimationManagerBase); + 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_Constructor0(____TimelineAnimationManager, + "", + ""); + I_Constructor1(IN, const osgAnimation::AnimationManagerBase &, manager, + Properties::NON_EXPLICIT, + ____TimelineAnimationManager__C5_AnimationManagerBase_R1, + "", + ""); + I_Constructor2(IN, const osgAnimation::TimelineAnimationManager &, nc, IN, const osg::CopyOp &, x, + ____TimelineAnimationManager__C5_TimelineAnimationManager_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osgAnimation::Timeline *, getTimeline, + Properties::NON_VIRTUAL, + __Timeline_P1__getTimeline, + "", + ""); + I_Method0(const osgAnimation::Timeline *, getTimeline, + Properties::NON_VIRTUAL, + __C5_Timeline_P1__getTimeline, + "", + ""); + I_Method1(void, update, IN, double, time, + Properties::VIRTUAL, + __void__update__double, + "", + ""); + I_SimpleProperty(osgAnimation::Timeline *, Timeline, + __Timeline_P1__getTimeline, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/UpdateCallback.cpp b/src/osgWrappers/introspection/osgAnimation/UpdateCallback.cpp new file mode 100644 index 000000000..00beaa629 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/UpdateCallback.cpp @@ -0,0 +1,184 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgAnimation::AnimationUpdateCallbackBase) + I_DeclaringFile("osgAnimation/UpdateCallback"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____AnimationUpdateCallbackBase, + "", + ""); + I_Method1(bool, link, IN, osgAnimation::Channel *, channel, + Properties::PURE_VIRTUAL, + __bool__link__osgAnimation_Channel_P1, + "", + ""); + I_Method1(int, link, IN, osgAnimation::Animation *, animation, + Properties::PURE_VIRTUAL, + __int__link__osgAnimation_Animation_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateMaterial) + I_DeclaringFile("osgAnimation/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 &, 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_ConstructorWithDefaults1(IN, const std::string &, name, "", + Properties::NON_EXPLICIT, + ____UpdateMaterial__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgAnimation::UpdateMaterial &, apc, IN, const osg::CopyOp &, copyop, + ____UpdateMaterial__C5_UpdateMaterial_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, update, IN, osg::Material &, material, + Properties::NON_VIRTUAL, + __void__update__osg_Material_R1, + "", + ""); + I_Method1(bool, link, IN, osgAnimation::Channel *, channel, + Properties::VIRTUAL, + __bool__link__osgAnimation_Channel_P1, + "", + ""); + I_Method0(osgAnimation::Vec4Target *, getDiffuse, + Properties::NON_VIRTUAL, + __osgAnimation_Vec4Target_P1__getDiffuse, + "", + ""); + I_SimpleProperty(osgAnimation::Vec4Target *, Diffuse, + __osgAnimation_Vec4Target_P1__getDiffuse, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::UpdateTransform) + I_DeclaringFile("osgAnimation/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 &, 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_ConstructorWithDefaults1(IN, const std::string &, name, "", + Properties::NON_EXPLICIT, + ____UpdateTransform__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgAnimation::UpdateTransform &, apc, IN, const osg::CopyOp &, copyop, + ____UpdateTransform__C5_UpdateTransform_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, update, IN, osg::MatrixTransform &, mat, + Properties::NON_VIRTUAL, + __void__update__osg_MatrixTransform_R1, + "", + ""); + I_Method1(void, update, IN, osg::PositionAttitudeTransform &, pat, + Properties::NON_VIRTUAL, + __void__update__osg_PositionAttitudeTransform_R1, + "", + ""); + I_Method1(bool, link, IN, osgAnimation::Channel *, channel, + Properties::VIRTUAL, + __bool__link__osgAnimation_Channel_P1, + "", + ""); + I_Method0(osgAnimation::Vec3Target *, getEuler, + Properties::NON_VIRTUAL, + __osgAnimation_Vec3Target_P1__getEuler, + "", + ""); + I_Method0(osgAnimation::Vec3Target *, getPosition, + Properties::NON_VIRTUAL, + __osgAnimation_Vec3Target_P1__getPosition, + "", + ""); + I_Method0(osgAnimation::Vec3Target *, getScale, + Properties::NON_VIRTUAL, + __osgAnimation_Vec3Target_P1__getScale, + "", + ""); + I_SimpleProperty(osgAnimation::Vec3Target *, Euler, + __osgAnimation_Vec3Target_P1__getEuler, + 0); + I_SimpleProperty(osgAnimation::Vec3Target *, Position, + __osgAnimation_Vec3Target_P1__getPosition, + 0); + I_SimpleProperty(osgAnimation::Vec3Target *, Scale, + __osgAnimation_Vec3Target_P1__getScale, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/Vec3Packed.cpp b/src/osgWrappers/introspection/osgAnimation/Vec3Packed.cpp new file mode 100644 index 000000000..237578419 --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/Vec3Packed.cpp @@ -0,0 +1,70 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgAnimation::Vec3ArrayPacked) + I_DeclaringFile("osgAnimation/Vec3Packed"); + I_Constructor0(____Vec3ArrayPacked, + "", + ""); + I_Method1(void, analyze, IN, const std::vector< osg::Vec3 > &, src, + Properties::NON_VIRTUAL, + __void__analyze__C5_std_vectorT1_osg_Vec3__R1, + "", + ""); + I_Method1(void, compress, IN, const std::vector< osg::Vec3 > &, src, + Properties::NON_VIRTUAL, + __void__compress__C5_std_vectorT1_osg_Vec3__R1, + "", + ""); + I_PublicMemberProperty(std::vector< osgAnimation::Vec3Packed >, mVecCompressed); + I_PublicMemberProperty(osg::Vec3, mMin); + I_PublicMemberProperty(osg::Vec3, mScale); + I_PublicMemberProperty(osg::Vec3, mScaleInv); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned int, osgAnimation::Vec3Packed::uint32_t) + +BEGIN_VALUE_REFLECTOR(osgAnimation::Vec3Packed) + I_DeclaringFile("osgAnimation/Vec3Packed"); + I_Constructor1(IN, osgAnimation::Vec3Packed::uint32_t, val, + Properties::NON_EXPLICIT, + ____Vec3Packed__uint32_t, + "", + ""); + I_Constructor0(____Vec3Packed, + "", + ""); + I_Method3(void, uncompress, IN, const osg::Vec3 &, scale, IN, const osg::Vec3 &, min, IN, osg::Vec3 &, result, + Properties::NON_VIRTUAL, + __void__uncompress__C5_osg_Vec3_R1__C5_osg_Vec3_R1__osg_Vec3_R1, + "", + ""); + I_Method3(void, compress, IN, const osg::Vec3f &, src, IN, const osg::Vec3f &, min, IN, const osg::Vec3f &, scaleInv, + Properties::NON_VIRTUAL, + __void__compress__C5_osg_Vec3f_R1__C5_osg_Vec3f_R1__C5_osg_Vec3f_R1, + "", + ""); + I_PublicMemberProperty(osgAnimation::Vec3Packed::uint32_t, m32bits); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgAnimation/VertexInfluence.cpp b/src/osgWrappers/introspection/osgAnimation/VertexInfluence.cpp new file mode 100644 index 000000000..281ec3f7f --- /dev/null +++ b/src/osgWrappers/introspection/osgAnimation/VertexInfluence.cpp @@ -0,0 +1,210 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgAnimation::VertexInfluence) + I_DeclaringFile("osgAnimation/VertexInfluence"); + I_Constructor0(____VertexInfluence, + "", + ""); + I_Method0(const std::string &, getName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getName, + "", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "", + ""); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + __void__setName__C5_std_string_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgAnimation::VertexInfluenceMap) + I_DeclaringFile("osgAnimation/VertexInfluence"); + I_BaseType(osg::Object); + 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_Constructor0(____VertexInfluenceMap, + "", + ""); + I_Constructor2(IN, const osgAnimation::VertexInfluenceMap &, x, IN, const osg::CopyOp &, x, + ____VertexInfluenceMap__C5_osgAnimation_VertexInfluenceMap_R1__C5_osg_CopyOp_R1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgAnimation::VertexInfluence >, osgAnimation::VertexInfluenceSet::BoneToVertexList) + +TYPE_NAME_ALIAS(std::vector< osgAnimation::VertexInfluenceSet::BoneWeight >, osgAnimation::VertexInfluenceSet::BoneWeightList) + +TYPE_NAME_ALIAS(std::map< int COMMA osgAnimation::VertexInfluenceSet::BoneWeightList >, osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap) + +TYPE_NAME_ALIAS(std::vector< osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSet >, osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList) + +BEGIN_VALUE_REFLECTOR(osgAnimation::VertexInfluenceSet) + I_DeclaringFile("osgAnimation/VertexInfluence"); + I_Constructor0(____VertexInfluenceSet, + "", + ""); + I_Method0(const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, getUniqVertexSetToBoneSetList, + Properties::NON_VIRTUAL, + __C5_UniqVertexSetToBoneSetList_R1__getUniqVertexSetToBoneSetList, + "", + ""); + I_Method1(void, addVertexInfluence, IN, const osgAnimation::VertexInfluence &, v, + Properties::NON_VIRTUAL, + __void__addVertexInfluence__C5_VertexInfluence_R1, + "", + ""); + I_Method0(void, buildVertex2BoneList, + Properties::NON_VIRTUAL, + __void__buildVertex2BoneList, + "", + ""); + I_Method0(void, buildUniqVertexSetToBoneSetList, + Properties::NON_VIRTUAL, + __void__buildUniqVertexSetToBoneSetList, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method0(const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, getVertexToBoneList, + Properties::NON_VIRTUAL, + __C5_VertexIndexToBoneWeightMap_R1__getVertexToBoneList, + "", + ""); + I_SimpleProperty(const osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSetList &, UniqVertexSetToBoneSetList, + __C5_UniqVertexSetToBoneSetList_R1__getUniqVertexSetToBoneSetList, + 0); + I_SimpleProperty(const osgAnimation::VertexInfluenceSet::VertexIndexToBoneWeightMap &, VertexToBoneList, + __C5_VertexIndexToBoneWeightMap_R1__getVertexToBoneList, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::VertexInfluenceSet::BoneWeight) + I_DeclaringFile("osgAnimation/VertexInfluence"); + I_Constructor2(IN, const std::string &, name, IN, float, weight, + ____BoneWeight__C5_std_string_R1__float, + "", + ""); + I_Method0(const std::string &, getBoneName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getBoneName, + "", + ""); + I_Method0(float, getWeight, + Properties::NON_VIRTUAL, + __float__getWeight, + "", + ""); + I_Method1(void, setWeight, IN, float, weight, + Properties::NON_VIRTUAL, + __void__setWeight__float, + "", + ""); + I_SimpleProperty(const std::string &, BoneName, + __C5_std_string_R1__getBoneName, + 0); + I_SimpleProperty(float, Weight, + __float__getWeight, + __void__setWeight__float); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSet) + I_DeclaringFile("osgAnimation/VertexInfluence"); + I_Constructor0(____UniqVertexSetToBoneSet, + "", + ""); + I_Method1(void, setBones, IN, osgAnimation::VertexInfluenceSet::BoneWeightList &, bones, + Properties::NON_VIRTUAL, + __void__setBones__BoneWeightList_R1, + "", + ""); + I_Method0(const osgAnimation::VertexInfluenceSet::BoneWeightList &, getBones, + Properties::NON_VIRTUAL, + __C5_BoneWeightList_R1__getBones, + "", + ""); + I_Method0(std::vector< int > &, getVertexes, + Properties::NON_VIRTUAL, + __std_vectorT1_int__R1__getVertexes, + "", + ""); + I_Method0(const std::vector< int > &, getVertexes, + Properties::NON_VIRTUAL, + __C5_std_vectorT1_int__R1__getVertexes, + "", + ""); + I_SimpleProperty(osgAnimation::VertexInfluenceSet::BoneWeightList &, Bones, + 0, + __void__setBones__BoneWeightList_R1); + I_SimpleProperty(std::vector< int > &, Vertexes, + __std_vectorT1_int__R1__getVertexes, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< int COMMA float >, osgAnimation::VertexIndexWeight) + +TYPE_NAME_ALIAS(std::vector< osgAnimation::VertexIndexWeight >, osgAnimation::VertexList) + +STD_MAP_REFLECTOR(std::map< int COMMA osgAnimation::VertexInfluenceSet::BoneWeightList >) + +STD_PAIR_REFLECTOR(std::pair< int COMMA float >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::VertexIndexWeight >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::VertexInfluence >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::VertexInfluenceSet::BoneWeight >) + +STD_VECTOR_REFLECTOR(std::vector< osgAnimation::VertexInfluenceSet::UniqVertexSetToBoneSet >) + diff --git a/src/osgWrappers/introspection/osgDB/Archive.cpp b/src/osgWrappers/introspection/osgDB/Archive.cpp new file mode 100644 index 000000000..b7cfb78e8 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Archive.cpp @@ -0,0 +1,116 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::Archive::FileNameList) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Archive) + I_DeclaringFile("osgDB/Archive"); + I_BaseType(osgDB::ReaderWriter); + I_Constructor0(____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, + "return true if ReaderWriter accepts specified file extension. ", + ""); + 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::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::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::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::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::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::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::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::Options *, x, NULL, + Properties::PURE_VIRTUAL, + __WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_SimpleProperty(std::string, MasterFileName, + __std_string__getMasterFileName, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/AuthenticationMap.cpp b/src/osgWrappers/introspection/osgDB/AuthenticationMap.cpp new file mode 100644 index 000000000..ccddec88e --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/AuthenticationMap.cpp @@ -0,0 +1,62 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::AuthenticationDetails::HttpAuthentication) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_EnumLabel(osgDB::AuthenticationDetails::BASIC); + I_EnumLabel(osgDB::AuthenticationDetails::DIGEST); + I_EnumLabel(osgDB::AuthenticationDetails::NTLM); + I_EnumLabel(osgDB::AuthenticationDetails::GSSNegotiate); + I_EnumLabel(osgDB::AuthenticationDetails::ANY); + I_EnumLabel(osgDB::AuthenticationDetails::ANYSAFE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::AuthenticationDetails) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults3(IN, const std::string &, u, , IN, const std::string &, p, , IN, osgDB::AuthenticationDetails::HttpAuthentication, auth, osgDB::AuthenticationDetails::BASIC, + ____AuthenticationDetails__C5_std_string_R1__C5_std_string_R1__HttpAuthentication, + "", + ""); + I_PublicMemberProperty(std::string, username); + I_PublicMemberProperty(std::string, password); + I_PublicMemberProperty(osgDB::AuthenticationDetails::HttpAuthentication, httpAuthentication); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::AuthenticationMap) + I_DeclaringFile("osgDB/AuthenticationMap"); + I_BaseType(osg::Referenced); + I_Constructor0(____AuthenticationMap, + "", + ""); + I_Method2(void, addAuthenticationDetails, IN, const std::string &, path, IN, osgDB::AuthenticationDetails *, details, + Properties::VIRTUAL, + __void__addAuthenticationDetails__C5_std_string_R1__AuthenticationDetails_P1, + "", + ""); + I_Method1(const osgDB::AuthenticationDetails *, getAuthenticationDetails, IN, const std::string &, path, + Properties::VIRTUAL, + __C5_AuthenticationDetails_P1__getAuthenticationDetails__C5_std_string_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Callbacks.cpp b/src/osgWrappers/introspection/osgDB/Callbacks.cpp new file mode 100644 index 000000000..466744a60 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Callbacks.cpp @@ -0,0 +1,152 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::FileLocationCallback::Location) + I_DeclaringFile("osgDB/Callbacks"); + I_EnumLabel(osgDB::FileLocationCallback::LOCAL_FILE); + I_EnumLabel(osgDB::FileLocationCallback::REMOTE_FILE); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::FileLocationCallback) + I_DeclaringFile("osgDB/Callbacks"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____FileLocationCallback, + "", + ""); + I_Method2(osgDB::FileLocationCallback::Location, fileLocation, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::PURE_VIRTUAL, + __Location__fileLocation__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method0(bool, useFileCache, + Properties::PURE_VIRTUAL, + __bool__useFileCache, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::FindFileCallback) + I_DeclaringFile("osgDB/Callbacks"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____FindFileCallback, + "", + ""); + I_Method3(std::string, findDataFile, IN, const std::string &, filename, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::VIRTUAL, + __std_string__findDataFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); + I_Method3(std::string, findLibraryFile, IN, const std::string &, filename, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::VIRTUAL, + __std_string__findLibraryFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::ReadFileCallback) + I_DeclaringFile("osgDB/Callbacks"); + I_VirtualBaseType(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::Options *, useObjectCache, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readShader, IN, const std::string &, filename, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readShader__C5_std_string_R1__C5_Options_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::WriteFileCallback) + I_DeclaringFile("osgDB/Callbacks"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____WriteFileCallback, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeShader__C5_osg_Shader_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::CaseSensitivity) + I_DeclaringFile("osgDB/Callbacks"); + I_EnumLabel(osgDB::CASE_SENSITIVE); + I_EnumLabel(osgDB::CASE_INSENSITIVE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::deque< std::string >, osgDB::FilePathList) + +STD_VECTOR_REFLECTOR(std::deque< std::string >) + diff --git a/src/osgWrappers/introspection/osgDB/DatabasePager.cpp b/src/osgWrappers/introspection/osgDB/DatabasePager.cpp new file mode 100644 index 000000000..ef07ebd13 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/DatabasePager.cpp @@ -0,0 +1,681 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::DatabasePager::DrawablePolicy) + I_DeclaringFile("osgDB/DatabasePager"); + I_EnumLabel(osgDB::DatabasePager::DO_NOT_MODIFY_DRAWABLE_SETTINGS); + I_EnumLabel(osgDB::DatabasePager::USE_DISPLAY_LISTS); + I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgDB::DatabasePager::USE_VERTEX_ARRAYS); +END_REFLECTOR + +TYPE_NAME_ALIAS(OpenThreads::Thread::ThreadPriority, osgDB::DatabasePager::ThreadPriority) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::PagedLOD > >, osgDB::DatabasePager::PagedLODList) + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osg::StateSet > >, osgDB::DatabasePager::StateSetList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Drawable > >, osgDB::DatabasePager::DrawableList) + +TYPE_NAME_ALIAS(std::pair< osgDB::DatabasePager::StateSetList COMMA osgDB::DatabasePager::DrawableList >, osgDB::DatabasePager::DataToCompile) + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgDB::DatabasePager::DataToCompile >, osgDB::DatabasePager::DataToCompileMap) + +TYPE_NAME_ALIAS(std::set< unsigned int >, osgDB::DatabasePager::ActiveGraphicsContexts) + +TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::GraphicsContext > >, osgDB::DatabasePager::CompileGraphicsContexts) + +BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager) + I_DeclaringFile("osgDB/DatabasePager"); + I_BaseType(osg::NodeVisitor::DatabaseRequestHandler); + I_Constructor0(____DatabasePager, + "", + ""); + I_Constructor1(IN, const osgDB::DatabasePager &, rhs, + Properties::NON_EXPLICIT, + ____DatabasePager__C5_DatabasePager_R1, + "", + ""); + I_Method0(osgDB::DatabasePager *, clone, + Properties::VIRTUAL, + __DatabasePager_P1__clone, + "Create a shallow copy on the DatabasePager. ", + ""); + I_Method6(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp, IN, osg::ref_ptr< osg::Referenced > &, databaseRequest, IN, const osg::Referenced *, options, + Properties::VIRTUAL, + __void__requestNodeFile__C5_std_string_R1__osg_Group_P1__float__C5_osg_FrameStamp_P1__osg_ref_ptrT1_osg_Referenced__R1__C5_osg_Referenced_P1, + "Add a request to load a node file to end the the database request list. ", + ""); + I_Method1(int, setSchedulePriority, IN, OpenThreads::Thread::ThreadPriority, priority, + Properties::NON_VIRTUAL, + __int__setSchedulePriority__OpenThreads_Thread_ThreadPriority, + "Set the priority of the database pager thread(s). ", + ""); + I_Method0(int, cancel, + Properties::VIRTUAL, + __int__cancel, + "Cancel the database pager thread(s). ", + ""); + I_Method0(bool, isRunning, + Properties::VIRTUAL, + __bool__isRunning, + "", + ""); + I_Method0(void, clear, + Properties::VIRTUAL, + __void__clear, + "Clear all internally cached structures. ", + ""); + I_MethodWithDefaults2(void, setUpThreads, IN, unsigned int, totalNumThreads, 2, IN, unsigned int, numHttpThreads, 1, + Properties::NON_VIRTUAL, + __void__setUpThreads__unsigned_int__unsigned_int, + "", + ""); + I_Method2(unsigned int, addDatabaseThread, IN, osgDB::DatabasePager::DatabaseThread::Mode, mode, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __unsigned_int__addDatabaseThread__DatabaseThread_Mode__C5_std_string_R1, + "", + ""); + I_Method1(osgDB::DatabasePager::DatabaseThread *, getDatabaseThread, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __DatabaseThread_P1__getDatabaseThread__unsigned_int, + "", + ""); + I_Method1(const osgDB::DatabasePager::DatabaseThread *, getDatabaseThread, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_DatabaseThread_P1__getDatabaseThread__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumDatabaseThreads, + Properties::NON_VIRTUAL, + __unsigned_int__getNumDatabaseThreads, + "", + ""); + 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_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_MethodWithDefaults2(void, registerPagedLODs, IN, osg::Node *, subgraph, , IN, int, frameNumber, 0, + Properties::VIRTUAL, + __void__registerPagedLODs__osg_Node_P1__int, + "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, setTargetMaximumNumberOfPageLOD, IN, unsigned int, target, + Properties::NON_VIRTUAL, + __void__setTargetMaximumNumberOfPageLOD__unsigned_int, + "Set the target maximum number of PagedLOD to maintain in memory. ", + "Note, if more than the target number are required for rendering of a frame then these active PagedLOD are excempt from being expiried. But once the number of active drops back below the target the inactive PagedLOD will be trimmed back to the target number. "); + I_Method0(unsigned int, getTargetMaximumNumberOfPageLOD, + Properties::NON_VIRTUAL, + __unsigned_int__getTargetMaximumNumberOfPageLOD, + "Get the target maximum number of PagedLOD to maintain in memory. ", + ""); + I_Method1(void, setExpiryDelay, IN, double, expiryDelay, + Properties::NON_VIRTUAL, + __void__setExpiryDelay__double, + "Deprecated. ", + ""); + I_Method0(double, getExpiryDelay, + Properties::NON_VIRTUAL, + __double__getExpiryDelay, + "Deprecated. ", + ""); + I_Method1(void, setExpiryFrames, IN, int, expiryFrames, + Properties::NON_VIRTUAL, + __void__setExpiryFrames__int, + "Deprecated. ", + ""); + I_Method0(int, getExpiryFrames, + Properties::NON_VIRTUAL, + __int__getExpiryFrames, + "Deprecated. ", + ""); + I_Method1(void, setReleaseDelay, IN, double, releaseDelay, + Properties::NON_VIRTUAL, + __void__setReleaseDelay__double, + "Deprecated. ", + ""); + I_Method0(double, getReleaseDelay, + Properties::NON_VIRTUAL, + __double__getReleaseDelay, + "Deprecated. ", + ""); + I_Method1(void, setReleaseFrames, IN, int, releaseFrames, + Properties::NON_VIRTUAL, + __void__setReleaseFrames__int, + "Deprecated. ", + ""); + I_Method0(int, getReleaseFrames, + Properties::NON_VIRTUAL, + __int__getReleaseFrames, + "Deprecated. ", + ""); + 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, const osg::FrameStamp &, frameStamp, + Properties::VIRTUAL, + __void__updateSceneGraph__C5_osg_FrameStamp_R1, + "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 specified 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 specified graphics context on (true) or off(false). ", + ""); + I_Method1(bool, requiresExternalCompileGLObjects, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __bool__requiresExternalCompileGLObjects__unsigned_int, + "Return true if an external draw thread should call compileGLObjects(. ", + ".) or not. "); + 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_Method1(void, compileAllGLObjects, IN, osg::State &, state, + Properties::VIRTUAL, + __void__compileAllGLObjects__osg_State_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. ", + ""); + I_Method0(unsigned int, getDataToMergeListSize, + Properties::NON_VIRTUAL, + __unsigned_int__getDataToMergeListSize, + "Report how many items are in the _dataToCompileList queue. ", + ""); + I_Method0(bool, getRequestsInProgress, + Properties::NON_VIRTUAL, + __bool__getRequestsInProgress, + "Report whether any requests are in the pager. ", + ""); + I_Method0(double, getMinimumTimeToMergeTile, + Properties::NON_VIRTUAL, + __double__getMinimumTimeToMergeTile, + "Get the minimum time between the first request for a tile to be loaded and the time of its merge into the main scene graph. ", + ""); + I_Method0(double, getMaximumTimeToMergeTile, + Properties::NON_VIRTUAL, + __double__getMaximumTimeToMergeTile, + "Get the maximum time between the first request for a tile to be loaded and the time of its merge into the main scene graph. ", + ""); + I_Method0(double, getAverageTimeToMergeTiles, + Properties::NON_VIRTUAL, + __double__getAverageTimeToMergeTiles, + "Get the average time between the first request for a tile to be loaded and the time of its merge into the main scene graph. ", + ""); + I_Method0(void, resetStats, + Properties::NON_VIRTUAL, + __void__resetStats, + "Reset the Stats variables. ", + ""); + I_StaticMethod0(osg::ref_ptr< osgDB::DatabasePager > &, prototype, + __osg_ref_ptrT1_DatabasePager__R1__prototype_S, + "get the prototype singleton used by DatabasePager::create(). ", + ""); + I_StaticMethod0(osgDB::DatabasePager *, create, + __DatabasePager_P1__create_S, + "create a DatabasePager by cloning DatabasePager::prototype(). ", + ""); + I_ProtectedMethod1(bool, isCompiled, IN, osg::Texture *, texture, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isCompiled__osg_Texture_P1, + "", + ""); + I_ProtectedMethod1(bool, isCompiled, IN, osg::StateSet *, stateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__isCompiled__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(bool, isCompiled, IN, const osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__isCompiled__C5_osg_Drawable_P1, + "", + ""); + I_ProtectedMethod1(void, removeExpiredSubgraphs, IN, const osg::FrameStamp &, frameStamp, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__removeExpiredSubgraphs__C5_osg_FrameStamp_R1, + "Iterate through the active PagedLOD nodes children removing children which havn't been visited since specified expiryTime. ", + "note, should be only be called from the update thread. "); + I_ProtectedMethod1(void, expiry_removeExpiredSubgraphs, IN, const osg::FrameStamp &, frameStamp, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__expiry_removeExpiredSubgraphs__C5_osg_FrameStamp_R1, + "Old expiry delay based removeExpiredSubgraphs. ", + ""); + I_ProtectedMethod1(void, capped_removeExpiredSubgraphs, IN, const osg::FrameStamp &, frameStamp, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__capped_removeExpiredSubgraphs__C5_osg_FrameStamp_R1, + "New capped based removeExpiredSubgraphs. ", + ""); + I_ProtectedMethod1(void, addLoadedDataToSceneGraph, IN, const osg::FrameStamp &, frameStamp, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addLoadedDataToSceneGraph__C5_osg_FrameStamp_R1, + "Add the loaded data to the scene graph. ", + ""); + I_SimpleProperty(bool, AcceptNewDatabaseRequests, + __bool__getAcceptNewDatabaseRequests, + __void__setAcceptNewDatabaseRequests__bool); + I_SimpleProperty(double, AverageTimeToMergeTiles, + __double__getAverageTimeToMergeTiles, + 0); + I_IndexedProperty(bool, CompileGLObjectsForContextID, + __bool__getCompileGLObjectsForContextID__unsigned_int, + __void__setCompileGLObjectsForContextID__unsigned_int__bool, + 0); + I_SimpleProperty(unsigned int, DataToCompileListSize, + __unsigned_int__getDataToCompileListSize, + 0); + I_SimpleProperty(unsigned int, DataToMergeListSize, + __unsigned_int__getDataToMergeListSize, + 0); + I_SimpleProperty(bool, DatabasePagerThreadPause, + __bool__getDatabasePagerThreadPause, + __void__setDatabasePagerThreadPause__bool); + I_ArrayProperty(osgDB::DatabasePager::DatabaseThread *, DatabaseThread, + __DatabaseThread_P1__getDatabaseThread__unsigned_int, + 0, + __unsigned_int__getNumDatabaseThreads, + 0, + 0, + 0); + I_SimpleProperty(bool, DeleteRemovedSubgraphsInDatabaseThread, + __bool__getDeleteRemovedSubgraphsInDatabaseThread, + __void__setDeleteRemovedSubgraphsInDatabaseThread__bool); + I_SimpleProperty(bool, DoPreCompile, + __bool__getDoPreCompile, + __void__setDoPreCompile__bool); + I_SimpleProperty(osgDB::DatabasePager::DrawablePolicy, DrawablePolicy, + __DrawablePolicy__getDrawablePolicy, + __void__setDrawablePolicy__DrawablePolicy); + I_SimpleProperty(double, ExpiryDelay, + __double__getExpiryDelay, + __void__setExpiryDelay__double); + I_SimpleProperty(int, ExpiryFrames, + __int__getExpiryFrames, + __void__setExpiryFrames__int); + I_SimpleProperty(unsigned int, FileRequestListSize, + __unsigned_int__getFileRequestListSize, + 0); + I_SimpleProperty(unsigned int, MaximumNumOfObjectsToCompilePerFrame, + __unsigned_int__getMaximumNumOfObjectsToCompilePerFrame, + __void__setMaximumNumOfObjectsToCompilePerFrame__unsigned_int); + I_SimpleProperty(double, MaximumTimeToMergeTile, + __double__getMaximumTimeToMergeTile, + 0); + I_SimpleProperty(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame, + __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double); + I_SimpleProperty(double, MinimumTimeToMergeTile, + __double__getMinimumTimeToMergeTile, + 0); + I_SimpleProperty(double, ReleaseDelay, + __double__getReleaseDelay, + __void__setReleaseDelay__double); + I_SimpleProperty(int, ReleaseFrames, + __int__getReleaseFrames, + __void__setReleaseFrames__int); + I_SimpleProperty(bool, RequestsInProgress, + __bool__getRequestsInProgress, + 0); + I_SimpleProperty(OpenThreads::Thread::ThreadPriority, SchedulePriority, + 0, + __int__setSchedulePriority__OpenThreads_Thread_ThreadPriority); + I_SimpleProperty(double, TargetFrameRate, + __double__getTargetFrameRate, + __void__setTargetFrameRate__double); + I_SimpleProperty(unsigned int, TargetMaximumNumberOfPageLOD, + __unsigned_int__getTargetMaximumNumberOfPageLOD, + __void__setTargetMaximumNumberOfPageLOD__unsigned_int); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::DatabasePager::DatabaseThread::Mode) + I_DeclaringFile("osgDB/DatabasePager"); + I_EnumLabel(osgDB::DatabasePager::DatabaseThread::HANDLE_ALL_REQUESTS); + I_EnumLabel(osgDB::DatabasePager::DatabaseThread::HANDLE_NON_HTTP); + I_EnumLabel(osgDB::DatabasePager::DatabaseThread::HANDLE_ONLY_HTTP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager::DatabaseThread) + I_DeclaringFile("osgDB/DatabasePager"); + I_BaseType(osg::Referenced); + I_BaseType(OpenThreads::Thread); + I_Constructor3(IN, osgDB::DatabasePager *, pager, IN, osgDB::DatabasePager::DatabaseThread::Mode, mode, IN, const std::string &, name, + ____DatabaseThread__DatabasePager_P1__Mode__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgDB::DatabasePager::DatabaseThread &, dt, IN, osgDB::DatabasePager *, pager, + ____DatabaseThread__C5_DatabaseThread_R1__DatabasePager_P1, + "", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, getDone, + Properties::NON_VIRTUAL, + __bool__getDone, + "", + ""); + I_Method1(void, setActive, IN, bool, active, + Properties::NON_VIRTUAL, + __void__setActive__bool, + "", + ""); + I_Method0(bool, getActive, + Properties::NON_VIRTUAL, + __bool__getActive, + "", + ""); + I_Method0(int, cancel, + Properties::VIRTUAL, + __int__cancel, + "Cancel the thread. ", + "Equivalent to SIGKILL.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(void, run, + Properties::VIRTUAL, + __void__run, + "Thread's run method. ", + "Must be implemented by derived classes. This is where the action happens. "); + I_SimpleProperty(bool, Active, + __bool__getActive, + __void__setActive__bool); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osg::GraphicsContext >) + I_DeclaringFile("osg/observer_ptr"); + I_BaseType(osg::Observer); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osg::GraphicsContext *, t, + Properties::NON_EXPLICIT, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osg::GraphicsContext > &, 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(osg::GraphicsContext *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osg::GraphicsContext *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PagedLOD >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::PagedLOD *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::DatabasePager >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::DatabasePager *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::DatabasePager > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::DatabasePager *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::DatabasePager *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::DatabasePager > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::DatabasePager *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::PagedLOD > >) + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgDB::DatabasePager::DataToCompile >) + +STD_PAIR_REFLECTOR(std::pair< osgDB::DatabasePager::StateSetList COMMA osgDB::DatabasePager::DrawableList >) + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osg::StateSet > >) + +STD_SET_REFLECTOR(std::set< unsigned int >) + +STD_VECTOR_REFLECTOR(std::vector< osg::observer_ptr< osg::GraphicsContext > >) + diff --git a/src/osgWrappers/introspection/osgDB/DatabaseRevisions.cpp b/src/osgWrappers/introspection/osgDB/DatabaseRevisions.cpp new file mode 100644 index 000000000..426e4f2b4 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/DatabaseRevisions.cpp @@ -0,0 +1,351 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::set< std::string >, osgDB::DatabaseRevision::FileNames) + +BEGIN_OBJECT_REFLECTOR(osgDB::DatabaseRevision) + I_DeclaringFile("osgDB/DatabaseRevisions"); + I_BaseType(osg::Object); + I_Constructor0(____DatabaseRevision, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::DatabaseRevision &, revision, , IN, const osg::CopyOp, x, osg::CopyOp::SHALLOW_COPY, + ____DatabaseRevision__C5_DatabaseRevision_R1__C5_osg_CopyOp, + "", + ""); + 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_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDatabasePath, + "", + ""); + I_Method1(void, setFilesAdded, IN, osgDB::FileList *, fileList, + Properties::NON_VIRTUAL, + __void__setFilesAdded__FileList_P1, + "", + ""); + I_Method0(osgDB::FileList *, getFilesAdded, + Properties::NON_VIRTUAL, + __FileList_P1__getFilesAdded, + "", + ""); + I_Method0(const osgDB::FileList *, getFilesAdded, + Properties::NON_VIRTUAL, + __C5_FileList_P1__getFilesAdded, + "", + ""); + I_Method1(void, setFilesRemoved, IN, osgDB::FileList *, fileList, + Properties::NON_VIRTUAL, + __void__setFilesRemoved__FileList_P1, + "", + ""); + I_Method0(osgDB::FileList *, getFilesRemoved, + Properties::NON_VIRTUAL, + __FileList_P1__getFilesRemoved, + "", + ""); + I_Method0(const osgDB::FileList *, getFilesRemoved, + Properties::NON_VIRTUAL, + __C5_FileList_P1__getFilesRemoved, + "", + ""); + I_Method1(void, setFilesModified, IN, osgDB::FileList *, fileList, + Properties::NON_VIRTUAL, + __void__setFilesModified__FileList_P1, + "", + ""); + I_Method0(osgDB::FileList *, getFilesModified, + Properties::NON_VIRTUAL, + __FileList_P1__getFilesModified, + "", + ""); + I_Method0(const osgDB::FileList *, getFilesModified, + Properties::NON_VIRTUAL, + __C5_FileList_P1__getFilesModified, + "", + ""); + I_Method1(bool, isFileBlackListed, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__isFileBlackListed__C5_std_string_R1, + "", + ""); + I_Method1(bool, removeFile, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__removeFile__C5_std_string_R1, + "", + ""); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_SimpleProperty(osgDB::FileList *, FilesAdded, + __FileList_P1__getFilesAdded, + __void__setFilesAdded__FileList_P1); + I_SimpleProperty(osgDB::FileList *, FilesModified, + __FileList_P1__getFilesModified, + __void__setFilesModified__FileList_P1); + I_SimpleProperty(osgDB::FileList *, FilesRemoved, + __FileList_P1__getFilesRemoved, + __void__setFilesRemoved__FileList_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::DatabaseRevision > >, osgDB::DatabaseRevisions::DatabaseRevisionList) + +BEGIN_OBJECT_REFLECTOR(osgDB::DatabaseRevisions) + I_DeclaringFile("osgDB/DatabaseRevisions"); + I_BaseType(osg::Object); + I_Constructor0(____DatabaseRevisions, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::DatabaseRevisions &, revisions, , IN, const osg::CopyOp, x, osg::CopyOp::SHALLOW_COPY, + ____DatabaseRevisions__C5_DatabaseRevisions_R1__C5_osg_CopyOp, + "", + ""); + 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_Method1(void, setDatabasePath, IN, const std::string &, path, + Properties::NON_VIRTUAL, + __void__setDatabasePath__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getDatabasePath, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getDatabasePath, + "", + ""); + I_Method1(void, addRevision, IN, osgDB::DatabaseRevision *, revision, + Properties::NON_VIRTUAL, + __void__addRevision__DatabaseRevision_P1, + "", + ""); + I_Method1(void, removeRevision, IN, osgDB::DatabaseRevision *, revision, + Properties::NON_VIRTUAL, + __void__removeRevision__DatabaseRevision_P1, + "", + ""); + I_Method1(osgDB::DatabaseRevision *, getDatabaseRevision, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __DatabaseRevision_P1__getDatabaseRevision__unsigned_int, + "", + ""); + I_Method0(osgDB::DatabaseRevisions::DatabaseRevisionList &, getDatabaseRevisionList, + Properties::NON_VIRTUAL, + __DatabaseRevisionList_R1__getDatabaseRevisionList, + "", + ""); + I_Method0(const osgDB::DatabaseRevisions::DatabaseRevisionList &, getDatabaseRevisionList, + Properties::NON_VIRTUAL, + __C5_DatabaseRevisionList_R1__getDatabaseRevisionList, + "", + ""); + I_Method1(bool, isFileBlackListed, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__isFileBlackListed__C5_std_string_R1, + "", + ""); + I_Method1(bool, removeFile, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__removeFile__C5_std_string_R1, + "", + ""); + I_SimpleProperty(const std::string &, DatabasePath, + __C5_std_string_R1__getDatabasePath, + __void__setDatabasePath__C5_std_string_R1); + I_SimpleProperty(osgDB::DatabaseRevisions::DatabaseRevisionList &, DatabaseRevisionList, + __DatabaseRevisionList_R1__getDatabaseRevisionList, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< std::string >, osgDB::FileList::FileNames) + +BEGIN_OBJECT_REFLECTOR(osgDB::FileList) + I_DeclaringFile("osgDB/DatabaseRevisions"); + I_BaseType(osg::Object); + I_Constructor0(____FileList, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::FileList &, fileList, , IN, const osg::CopyOp, x, osg::CopyOp::SHALLOW_COPY, + ____FileList__C5_FileList_R1__C5_osg_CopyOp, + "", + ""); + 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(osgDB::FileList::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __FileNames_R1__getFileNames, + "", + ""); + I_Method0(const osgDB::FileList::FileNames &, getFileNames, + Properties::NON_VIRTUAL, + __C5_FileNames_R1__getFileNames, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_Method1(bool, containsFile, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__containsFile__C5_std_string_R1, + "", + ""); + I_Method1(void, addFile, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__addFile__C5_std_string_R1, + "", + ""); + I_Method1(bool, removeFile, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __bool__removeFile__C5_std_string_R1, + "", + ""); + I_Method1(void, append, IN, osgDB::FileList *, fileList, + Properties::NON_VIRTUAL, + __void__append__FileList_P1, + "", + ""); + I_SimpleProperty(osgDB::FileList::FileNames &, FileNames, + __FileNames_R1__getFileNames, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::DatabaseRevision >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::DatabaseRevision *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::DatabaseRevision > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::DatabaseRevision *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::DatabaseRevision *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::DatabaseRevision > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::DatabaseRevision *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_SET_REFLECTOR(std::set< std::string >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::DatabaseRevision > >) + diff --git a/src/osgWrappers/introspection/osgDB/DotOsgWrapper.cpp b/src/osgWrappers/introspection/osgDB/DotOsgWrapper.cpp new file mode 100644 index 000000000..13f9003b8 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/DotOsgWrapper.cpp @@ -0,0 +1,100 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::DotOsgWrapper::ReadWriteMode) + I_DeclaringFile("osgDB/DotOsgWrapper"); + I_EnumLabel(osgDB::DotOsgWrapper::READ_AND_WRITE); + I_EnumLabel(osgDB::DotOsgWrapper::READ_ONLY); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DotOsgWrapper::Associates) + +TYPE_NAME_ALIAS(bool (*)(osg::Object&,osgDB::Input&), osgDB::DotOsgWrapper::ReadFunc) + +TYPE_NAME_ALIAS(bool (*)(const osg::Object&,osgDB::Output&), osgDB::DotOsgWrapper::WriteFunc) + +BEGIN_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) + I_DeclaringFile("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, + "", + ""); + I_ProtectedConstructor0(____DotOsgWrapper, + "protected to prevent inappropriate creation of wrappers. ", + ""); + I_ProtectedConstructor1(IN, osgDB::DotOsgWrapper &, x, + Properties::NON_EXPLICIT, + ____DotOsgWrapper__DotOsgWrapper_R1, + "protected to prevent inappropriate creation of wrappers. ", + ""); + I_SimpleProperty(const osgDB::DotOsgWrapper::Associates &, Associates, + __C5_Associates_R1__getAssociates, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + 0); + I_SimpleProperty(const osg::Object *, Prototype, + __C5_osg_Object_P1__getPrototype, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::ReadFunc, ReadFunc, + __ReadFunc__getReadFunc, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::ReadWriteMode, ReadWriteMode, + __ReadWriteMode__getReadWriteMode, + 0); + I_SimpleProperty(osgDB::DotOsgWrapper::WriteFunc, WriteFunc, + __WriteFunc__getWriteFunc, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/DynamicLibrary.cpp b/src/osgWrappers/introspection/osgDB/DynamicLibrary.cpp new file mode 100644 index 000000000..10dc1d29e --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/DynamicLibrary.cpp @@ -0,0 +1,76 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::HANDLE) + +TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::PROC_ADDRESS) + +BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) + I_DeclaringFile("osgDB/DynamicLibrary"); + I_BaseType(osg::Referenced); + I_StaticMethod1(osgDB::DynamicLibrary *, loadLibrary, IN, const std::string &, libraryName, + __DynamicLibrary_P1__loadLibrary__C5_std_string_R1_S, + "returns a pointer to a DynamicLibrary object on successfully opening of library returns NULL on failure. ", + ""); + 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. ", + ""); + I_ProtectedConstructor0(____DynamicLibrary, + "disallow default constructor. ", + ""); + I_ProtectedConstructor1(IN, const osgDB::DynamicLibrary &, x, + Properties::NON_EXPLICIT, + ____DynamicLibrary__C5_DynamicLibrary_R1, + "disallow copy constructor. ", + ""); + I_ProtectedConstructor2(IN, const std::string &, name, IN, osgDB::DynamicLibrary::HANDLE, handle, + ____DynamicLibrary__C5_std_string_R1__HANDLE, + "Disallow public construction so that users have to go through loadLibrary() above which returns NULL on failure, a valid DynamicLibrary object on success. ", + ""); + I_SimpleProperty(const std::string &, FullName, + __C5_std_string_R1__getFullName, + 0); + I_SimpleProperty(osgDB::DynamicLibrary::HANDLE, Handle, + __HANDLE__getHandle, + 0); + I_SimpleProperty(const std::string &, Name, + __C5_std_string_R1__getName, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Field.cpp b/src/osgWrappers/introspection/osgDB/Field.cpp new file mode 100644 index 000000000..2a55c8f1e --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Field.cpp @@ -0,0 +1,233 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::Field::FieldType) + I_DeclaringFile("osgDB/Field"); + I_EnumLabel(osgDB::Field::OPEN_BRACKET); + I_EnumLabel(osgDB::Field::CLOSE_BRACKET); + I_EnumLabel(osgDB::Field::STRING); + I_EnumLabel(osgDB::Field::WORD); + I_EnumLabel(osgDB::Field::REAL); + I_EnumLabel(osgDB::Field::INTEGER); + I_EnumLabel(osgDB::Field::BLANK); + I_EnumLabel(osgDB::Field::UNINITIALISED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::Field) + I_DeclaringFile("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, + "", + ""); + I_StaticMethodWithDefaults2(osgDB::Field::FieldType, calculateFieldType, IN, const char *, str, , IN, bool, withinQuotes, false, + __FieldType__calculateFieldType__C5_char_P1__bool_S, + "", + ""); + I_ProtectedMethod0(void, _init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___init, + "", + ""); + I_ProtectedMethod0(void, _free, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___free, + "", + ""); + I_ProtectedMethod1(void, _copy, IN, const osgDB::Field &, ic, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___copy__C5_Field_R1, + "", + ""); + I_SimpleProperty(osgDB::Field::FieldType, FieldType, + __FieldType__getFieldType, + 0); + I_SimpleProperty(int, NoCharacters, + __int__getNoCharacters, + 0); + I_SimpleProperty(int, NoNestedBrackets, + __int__getNoNestedBrackets, + __void__setNoNestedBrackets__int); + I_SimpleProperty(const char *, Str, + __C5_char_P1__getStr, + 0); + I_SimpleProperty(bool, WithinQuotes, + __bool__getWithinQuotes, + __void__setWithinQuotes__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/FieldReader.cpp b/src/osgWrappers/introspection/osgDB/FieldReader.cpp new file mode 100644 index 000000000..385f7e52f --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/FieldReader.cpp @@ -0,0 +1,68 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgDB::FieldReader) + I_DeclaringFile("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 ", + ""); + I_SimpleProperty(int, NoNestedBrackets, + __int__getNoNestedBrackets, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/FieldReaderIterator.cpp b/src/osgWrappers/introspection/osgDB/FieldReaderIterator.cpp new file mode 100644 index 000000000..1220d3de0 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/FieldReaderIterator.cpp @@ -0,0 +1,200 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgDB::FieldReaderIterator) + I_DeclaringFile("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, + "", + ""); + I_SimpleProperty(osgDB::FieldReader &, FieldReader, + __FieldReader_R1__getFieldReader, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/FileCache.cpp b/src/osgWrappers/introspection/osgDB/FileCache.cpp new file mode 100644 index 000000000..68a50122e --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/FileCache.cpp @@ -0,0 +1,187 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgDB::DatabaseRevisions > >, osgDB::FileCache::DatabaseRevisionsList) + +BEGIN_OBJECT_REFLECTOR(osgDB::FileCache) + I_DeclaringFile("osgDB/FileCache"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, const std::string &, path, + Properties::NON_EXPLICIT, + ____FileCache__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getFileCachePath, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileCachePath, + "", + ""); + I_Method1(bool, isFileAppropriateForFileCache, IN, const std::string &, originalFileName, + Properties::VIRTUAL, + __bool__isFileAppropriateForFileCache__C5_std_string_R1, + "", + ""); + I_Method1(std::string, createCacheFileName, IN, const std::string &, originalFileName, + Properties::VIRTUAL, + __std_string__createCacheFileName__C5_std_string_R1, + "", + ""); + I_Method1(bool, existsInCache, IN, const std::string &, originalFileName, + Properties::VIRTUAL, + __bool__existsInCache__C5_std_string_R1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, image, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, object, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, hf, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, originalFileName, , IN, const osgDB::Options *, options, , IN, bool, buildKdTreeIfRequired, true, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_osgDB_Options_P1__bool, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readShader, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_ReadResult__readShader__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, shader, IN, const std::string &, originalFileName, IN, const osgDB::Options *, options, + Properties::VIRTUAL, + __ReaderWriter_WriteResult__writeShader__C5_osg_Shader_R1__C5_std_string_R1__C5_osgDB_Options_P1, + "", + ""); + I_Method1(bool, loadDatabaseRevisionsForFile, IN, const std::string &, originanlFileName, + Properties::NON_VIRTUAL, + __bool__loadDatabaseRevisionsForFile__C5_std_string_R1, + "", + ""); + I_Method0(osgDB::FileCache::DatabaseRevisionsList &, getDatabaseRevisionsList, + Properties::NON_VIRTUAL, + __DatabaseRevisionsList_R1__getDatabaseRevisionsList, + "", + ""); + I_Method1(bool, isCachedFileBlackListed, IN, const std::string &, originalFileName, + Properties::NON_VIRTUAL, + __bool__isCachedFileBlackListed__C5_std_string_R1, + "", + ""); + I_ProtectedMethod1(osgDB::FileList *, readFileList, IN, const std::string &, originalFileName, + Properties::NON_VIRTUAL, + Properties::CONST, + __FileList_P1__readFileList__C5_std_string_R1, + "", + ""); + I_ProtectedMethod1(bool, removeFileFromBlackListed, IN, const std::string &, originalFileName, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__removeFileFromBlackListed__C5_std_string_R1, + "", + ""); + I_SimpleProperty(osgDB::FileCache::DatabaseRevisionsList &, DatabaseRevisionsList, + __DatabaseRevisionsList_R1__getDatabaseRevisionsList, + 0); + I_SimpleProperty(const std::string &, FileCachePath, + __C5_std_string_R1__getFileCachePath, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::DatabaseRevisions >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::DatabaseRevisions *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::DatabaseRevisions > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::DatabaseRevisions *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::DatabaseRevisions *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::DatabaseRevisions > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::DatabaseRevisions *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgDB::DatabaseRevisions > >) + diff --git a/src/osgWrappers/introspection/osgDB/FileUtils.cpp b/src/osgWrappers/introspection/osgDB/FileUtils.cpp new file mode 100644 index 000000000..3abff9ae1 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/FileUtils.cpp @@ -0,0 +1,31 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::FileType) + I_DeclaringFile("osgDB/FileUtils"); + I_EnumLabel(osgDB::FILE_NOT_FOUND); + I_EnumLabel(osgDB::REGULAR_FILE); + I_EnumLabel(osgDB::DIRECTORY); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DirectoryContents) + diff --git a/src/osgWrappers/introspection/osgDB/ImageOptions.cpp b/src/osgWrappers/introspection/osgDB/ImageOptions.cpp new file mode 100644 index 000000000..ac3a01020 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/ImageOptions.cpp @@ -0,0 +1,144 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::ImageOptions::ImageWindowMode) + I_DeclaringFile("osgDB/ImageOptions"); + I_EnumLabel(osgDB::ImageOptions::ALL_IMAGE); + I_EnumLabel(osgDB::ImageOptions::RATIO_WINDOW); + I_EnumLabel(osgDB::ImageOptions::PIXEL_WINDOW); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ImageOptions::ImageSamplingMode) + I_DeclaringFile("osgDB/ImageOptions"); + I_EnumLabel(osgDB::ImageOptions::NEAREST); + I_EnumLabel(osgDB::ImageOptions::LINEAR); + I_EnumLabel(osgDB::ImageOptions::CUBIC); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions) + I_DeclaringFile("osgDB/ImageOptions"); + I_BaseType(osgDB::Options); + I_Constructor0(____ImageOptions, + "", + ""); + I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, + ____ImageOptions__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::ImageOptions &, options, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageOptions__C5_ImageOptions_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_PublicMemberProperty(osgDB::ImageOptions::ImageSamplingMode, _sourceImageSamplingMode); + I_PublicMemberProperty(osgDB::ImageOptions::ImageWindowMode, _sourceImageWindowMode); + I_PublicMemberProperty(osgDB::ImageOptions::RatioWindow, _sourceRatioWindow); + I_PublicMemberProperty(osgDB::ImageOptions::PixelWindow, _sourcePixelWindow); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _destinationImage); + I_PublicMemberProperty(osgDB::ImageOptions::ImageWindowMode, _destinationImageWindowMode); + I_PublicMemberProperty(osgDB::ImageOptions::RatioWindow, _destinationRatioWindow); + I_PublicMemberProperty(osgDB::ImageOptions::PixelWindow, _destinationPixelWindow); + I_PublicMemberProperty(GLenum, _destinationDataType); + I_PublicMemberProperty(GLenum, _destinationPixelFormat); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::PixelWindow) + I_DeclaringFile("osgDB/ImageOptions"); + I_Constructor0(____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, + "", + ""); + I_PublicMemberProperty(unsigned int, windowX); + I_PublicMemberProperty(unsigned int, windowY); + I_PublicMemberProperty(unsigned int, windowWidth); + I_PublicMemberProperty(unsigned int, windowHeight); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::RatioWindow) + I_DeclaringFile("osgDB/ImageOptions"); + I_Constructor0(____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, + "", + ""); + I_PublicMemberProperty(double, windowX); + I_PublicMemberProperty(double, windowY); + I_PublicMemberProperty(double, windowWidth); + I_PublicMemberProperty(double, windowHeight); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::ImageOptions::TexCoordRange) + I_DeclaringFile("osgDB/ImageOptions"); + 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, + "", + ""); + I_PublicMemberProperty(double, _x); + I_PublicMemberProperty(double, _y); + I_PublicMemberProperty(double, _w); + I_PublicMemberProperty(double, _h); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/ImagePager.cpp b/src/osgWrappers/introspection/osgDB/ImagePager.cpp new file mode 100644 index 000000000..833cdcdfd --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/ImagePager.cpp @@ -0,0 +1,137 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgDB::ImagePager) + I_DeclaringFile("osgDB/ImagePager"); + I_BaseType(osg::NodeVisitor::ImageRequestHandler); + I_Constructor0(____ImagePager, + "", + ""); + I_Method1(osgDB::ImagePager::ImageThread *, getImageThread, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __ImageThread_P1__getImageThread__unsigned_int, + "", + ""); + I_Method1(const osgDB::ImagePager::ImageThread *, getImageThread, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_ImageThread_P1__getImageThread__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumImageThreads, + Properties::NON_VIRTUAL, + __unsigned_int__getNumImageThreads, + "", + ""); + I_Method1(void, setPreLoadTime, IN, double, preLoadTime, + Properties::NON_VIRTUAL, + __void__setPreLoadTime__double, + "", + ""); + I_Method0(double, getPreLoadTime, + Properties::VIRTUAL, + __double__getPreLoadTime, + "", + ""); + I_Method1(osg::Image *, readImageFile, IN, const std::string &, fileName, + Properties::VIRTUAL, + __osg_Image_P1__readImageFile__C5_std_string_R1, + "", + ""); + I_Method5(void, requestImageFile, IN, const std::string &, fileName, IN, osg::Object *, attachmentPoint, IN, int, attachmentIndex, IN, double, timeToMergeBy, IN, const osg::FrameStamp *, framestamp, + Properties::VIRTUAL, + __void__requestImageFile__C5_std_string_R1__osg_Object_P1__int__double__C5_osg_FrameStamp_P1, + "", + ""); + I_Method0(bool, requiresUpdateSceneGraph, + Properties::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, const osg::FrameStamp &, frameStamp, + Properties::VIRTUAL, + __void__updateSceneGraph__C5_osg_FrameStamp_R1, + "Merge the changes to the scene graph. ", + ""); + I_Method0(int, cancel, + Properties::NON_VIRTUAL, + __int__cancel, + "", + ""); + I_ArrayProperty(osgDB::ImagePager::ImageThread *, ImageThread, + __ImageThread_P1__getImageThread__unsigned_int, + 0, + __unsigned_int__getNumImageThreads, + 0, + 0, + 0); + I_SimpleProperty(double, PreLoadTime, + __double__getPreLoadTime, + __void__setPreLoadTime__double); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ImagePager::ImageThread::Mode) + I_DeclaringFile("osgDB/ImagePager"); + I_EnumLabel(osgDB::ImagePager::ImageThread::HANDLE_ALL_REQUESTS); + I_EnumLabel(osgDB::ImagePager::ImageThread::HANDLE_NON_HTTP); + I_EnumLabel(osgDB::ImagePager::ImageThread::HANDLE_ONLY_HTTP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::ImagePager::ImageThread) + I_DeclaringFile("osgDB/ImagePager"); + I_BaseType(osg::Referenced); + I_BaseType(OpenThreads::Thread); + I_Constructor3(IN, osgDB::ImagePager *, pager, IN, osgDB::ImagePager::ImageThread::Mode, mode, IN, const std::string &, name, + ____ImageThread__ImagePager_P1__Mode__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgDB::ImagePager::ImageThread &, dt, IN, osgDB::ImagePager *, pager, + ____ImageThread__C5_ImageThread_R1__ImagePager_P1, + "", + ""); + 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 the thread. ", + "Equivalent to SIGKILL.0 if normal, -1 if errno set, errno code otherwise. "); + I_Method0(void, run, + Properties::VIRTUAL, + __void__run, + "Thread's run method. ", + "Must be implemented by derived classes. This is where the action happens. "); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Input.cpp b/src/osgWrappers/introspection/osgDB/Input.cpp new file mode 100644 index 000000000..4a53a2b66 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Input.cpp @@ -0,0 +1,214 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::ArgumentParser::Parameter, osgDB::Input::Parameter) + +BEGIN_OBJECT_REFLECTOR(osgDB::Input) + I_DeclaringFile("osgDB/Input"); + I_BaseType(osgDB::FieldReaderIterator); + I_Constructor0(____Input, + "", + ""); + I_Method1(void, setOptions, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __void__setOptions__C5_Options_P1, + "", + ""); + I_Method0(const osgDB::Options *, getOptions, + Properties::NON_VIRTUAL, + __C5_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_Method0(osg::Shader *, readShader, + Properties::VIRTUAL, + __osg_Shader_P1__readShader, + "", + ""); + 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::Shader *, readShader, IN, const std::string &, fileName, + Properties::VIRTUAL, + __osg_Shader_P1__readShader__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, registerUniqueIDForObject, IN, const std::string &, uniqueID, IN, osg::Object *, obj, + Properties::VIRTUAL, + __void__registerUniqueIDForObject__C5_std_string_R1__osg_Object_P1, + "", + ""); + I_Method1(bool, read, IN, osgDB::Input::Parameter, value1, + Properties::NON_VIRTUAL, + __bool__read__Parameter, + "", + ""); + I_Method2(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter, + "", + ""); + I_Method3(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter, + "", + ""); + I_Method4(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method5(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method6(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method7(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method8(bool, read, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7, IN, osgDB::Input::Parameter, value8, + Properties::NON_VIRTUAL, + __bool__read__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method1(bool, read, IN, const char *, str, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1, + "", + ""); + I_Method2(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter, + "", + ""); + I_Method3(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter, + "", + ""); + I_Method4(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter, + "", + ""); + I_Method5(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method6(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method7(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method8(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_Method9(bool, read, IN, const char *, str, IN, osgDB::Input::Parameter, value1, IN, osgDB::Input::Parameter, value2, IN, osgDB::Input::Parameter, value3, IN, osgDB::Input::Parameter, value4, IN, osgDB::Input::Parameter, value5, IN, osgDB::Input::Parameter, value6, IN, osgDB::Input::Parameter, value7, IN, osgDB::Input::Parameter, value8, + Properties::NON_VIRTUAL, + __bool__read__C5_char_P1__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter__Parameter, + "", + ""); + I_SimpleProperty(const osgDB::Options *, Options, + __C5_Options_P1__getOptions, + __void__setOptions__C5_Options_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Options.cpp b/src/osgWrappers/introspection/osgDB/Options.cpp new file mode 100644 index 000000000..70149dbef --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Options.cpp @@ -0,0 +1,275 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::Options::CacheHintOptions) + I_DeclaringFile("osgDB/Options"); + I_EnumLabel(osgDB::Options::CACHE_NONE); + I_EnumLabel(osgDB::Options::CACHE_NODES); + I_EnumLabel(osgDB::Options::CACHE_IMAGES); + I_EnumLabel(osgDB::Options::CACHE_HEIGHTFIELDS); + I_EnumLabel(osgDB::Options::CACHE_ARCHIVES); + I_EnumLabel(osgDB::Options::CACHE_OBJECTS); + I_EnumLabel(osgDB::Options::CACHE_SHADERS); + I_EnumLabel(osgDB::Options::CACHE_ALL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::Options::BuildKdTreesHint) + I_DeclaringFile("osgDB/Options"); + I_EnumLabel(osgDB::Options::NO_PREFERENCE); + I_EnumLabel(osgDB::Options::DO_NOT_BUILD_KDTREES); + I_EnumLabel(osgDB::Options::BUILD_KDTREES); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Options) + I_DeclaringFile("osgDB/Options"); + I_BaseType(osg::Object); + I_Constructor0(____Options, + "", + ""); + I_Constructor1(IN, const std::string &, str, + Properties::NON_EXPLICIT, + ____Options__C5_std_string_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::Options &, options, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Options__C5_Options_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(osgDB::Options *, cloneOptions, + Properties::NON_VIRTUAL, + __Options_P1__cloneOptions, + "", + ""); + 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::Options::CacheHintOptions, useObjectCache, + Properties::NON_VIRTUAL, + __void__setObjectCacheHint__CacheHintOptions, + "Set whether the Registry::ObjectCache should be used by default. ", + ""); + I_Method0(osgDB::Options::CacheHintOptions, getObjectCacheHint, + Properties::NON_VIRTUAL, + __CacheHintOptions__getObjectCacheHint, + "Get whether the Registry::ObjectCache should be used by default. ", + ""); + I_Method1(void, setBuildKdTreesHint, IN, osgDB::Options::BuildKdTreesHint, hint, + Properties::NON_VIRTUAL, + __void__setBuildKdTreesHint__BuildKdTreesHint, + "Set whether the KdTrees should be built for geometry in the loader model. ", + ""); + I_Method0(osgDB::Options::BuildKdTreesHint, getBuildKdTreesHint, + Properties::NON_VIRTUAL, + __BuildKdTreesHint__getBuildKdTreesHint, + "Get whether the KdTrees should be built for geometry in the loader model. ", + ""); + I_Method1(void, setAuthenticationMap, IN, osgDB::AuthenticationMap *, authenticationMap, + Properties::NON_VIRTUAL, + __void__setAuthenticationMap__AuthenticationMap_P1, + "Set the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method0(const osgDB::AuthenticationMap *, getAuthenticationMap, + Properties::NON_VIRTUAL, + __C5_AuthenticationMap_P1__getAuthenticationMap, + "Get the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method2(void, setPluginData, IN, const std::string &, s, IN, void *, v, + Properties::NON_VIRTUAL, + __void__setPluginData__C5_std_string_R1__void_P1, + "Sets a plugindata value PluginData with a string. ", + ""); + I_Method1(void *, getPluginData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __void_P1__getPluginData__C5_std_string_R1, + "Get a value from the PluginData. ", + ""); + I_Method1(const void *, getPluginData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __C5_void_P1__getPluginData__C5_std_string_R1, + "Get a value from the PluginData. ", + ""); + I_Method1(void, removePluginData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __void__removePluginData__C5_std_string_R1, + "Remove a value from the PluginData. ", + ""); + I_Method2(void, setPluginStringData, IN, const std::string &, s, IN, const std::string &, v, + Properties::NON_VIRTUAL, + __void__setPluginStringData__C5_std_string_R1__C5_std_string_R1, + "Sets a plugindata value PluginData with a string. ", + ""); + I_Method1(std::string &, getPluginStringData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __std_string_R1__getPluginStringData__C5_std_string_R1, + "Get a string from the PluginStrData. ", + ""); + I_Method1(const std::string, getPluginStringData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __C5_std_string__getPluginStringData__C5_std_string_R1, + "Get a value from the PluginData. ", + ""); + I_Method1(void, removePluginStringData, IN, const std::string &, s, + Properties::NON_VIRTUAL, + __void__removePluginStringData__C5_std_string_R1, + "Remove a value from the PluginData. ", + ""); + I_Method1(void, setFindFileCallback, IN, osgDB::FindFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setFindFileCallback__FindFileCallback_P1, + "Set the find callback to use in place of the default findFile calls. ", + ""); + I_Method0(osgDB::FindFileCallback *, getFindFileCallback, + Properties::NON_VIRTUAL, + __FindFileCallback_P1__getFindFileCallback, + "Get the const findFile callback. ", + ""); + I_Method1(void, setReadFileCallback, IN, osgDB::ReadFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setReadFileCallback__ReadFileCallback_P1, + "Set the read callback to use in place of the default readFile calls. ", + ""); + I_Method0(osgDB::ReadFileCallback *, getReadFileCallback, + Properties::NON_VIRTUAL, + __ReadFileCallback_P1__getReadFileCallback, + "Get the const readFile callback. ", + ""); + I_Method1(void, setWriteFileCallback, IN, osgDB::WriteFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setWriteFileCallback__WriteFileCallback_P1, + "Set the callback to use in place of the default writeFile calls. ", + ""); + I_Method0(osgDB::WriteFileCallback *, getWriteFileCallback, + Properties::NON_VIRTUAL, + __WriteFileCallback_P1__getWriteFileCallback, + "Get the const writeFile callback. ", + ""); + I_Method1(void, setFileLocationCallback, IN, osgDB::FileLocationCallback *, cb, + Properties::NON_VIRTUAL, + __void__setFileLocationCallback__FileLocationCallback_P1, + "Set the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", + ""); + I_Method0(osgDB::FileLocationCallback *, getFileLocationCallback, + Properties::NON_VIRTUAL, + __FileLocationCallback_P1__getFileLocationCallback, + "Get the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", + ""); + I_Method1(void, setFileCache, IN, osgDB::FileCache *, fileCache, + Properties::NON_VIRTUAL, + __void__setFileCache__FileCache_P1, + "Set the FileCache that is used to manage local storage of files downloaded from the internet. ", + ""); + I_Method0(osgDB::FileCache *, getFileCache, + Properties::NON_VIRTUAL, + __FileCache_P1__getFileCache, + "Get the FileCache that is used to manage local storage of files downloaded from the internet. ", + ""); + I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap, + 0, + __void__setAuthenticationMap__AuthenticationMap_P1); + I_SimpleProperty(osgDB::Options::BuildKdTreesHint, BuildKdTreesHint, + __BuildKdTreesHint__getBuildKdTreesHint, + __void__setBuildKdTreesHint__BuildKdTreesHint); + I_SimpleProperty(const std::string &, DatabasePath, + 0, + __void__setDatabasePath__C5_std_string_R1); + I_SimpleProperty(osgDB::FilePathList &, DatabasePathList, + __FilePathList_R1__getDatabasePathList, + 0); + I_SimpleProperty(osgDB::FileCache *, FileCache, + __FileCache_P1__getFileCache, + __void__setFileCache__FileCache_P1); + I_SimpleProperty(osgDB::FileLocationCallback *, FileLocationCallback, + __FileLocationCallback_P1__getFileLocationCallback, + __void__setFileLocationCallback__FileLocationCallback_P1); + I_SimpleProperty(osgDB::FindFileCallback *, FindFileCallback, + __FindFileCallback_P1__getFindFileCallback, + __void__setFindFileCallback__FindFileCallback_P1); + I_SimpleProperty(osgDB::Options::CacheHintOptions, ObjectCacheHint, + __CacheHintOptions__getObjectCacheHint, + __void__setObjectCacheHint__CacheHintOptions); + I_SimpleProperty(const std::string &, OptionString, + __C5_std_string_R1__getOptionString, + __void__setOptionString__C5_std_string_R1); + I_IndexedProperty(void *, PluginData, + __void_P1__getPluginData__C5_std_string_R1, + __void__setPluginData__C5_std_string_R1__void_P1, + 0); + I_SimpleProperty(osgDB::ReadFileCallback *, ReadFileCallback, + __ReadFileCallback_P1__getReadFileCallback, + __void__setReadFileCallback__ReadFileCallback_P1); + I_SimpleProperty(osgDB::WriteFileCallback *, WriteFileCallback, + __WriteFileCallback_P1__getWriteFileCallback, + __void__setWriteFileCallback__WriteFileCallback_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Output.cpp b/src/osgWrappers/introspection/osgDB/Output.cpp new file mode 100644 index 000000000..c32050662 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Output.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::Output::PathNameHint) + I_DeclaringFile("osgDB/Output"); + I_EnumLabel(osgDB::Output::AS_IS); + I_EnumLabel(osgDB::Output::FULL_PATH); + I_EnumLabel(osgDB::Output::RELATIVE_PATH); + I_EnumLabel(osgDB::Output::FILENAME_ONLY); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/ParameterOutput.cpp b/src/osgWrappers/introspection/osgDB/ParameterOutput.cpp new file mode 100644 index 000000000..0230aac5a --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/ParameterOutput.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgDB::ParameterOutput) + I_DeclaringFile("osgDB/ParameterOutput"); + I_Constructor1(IN, osgDB::Output &, fw, + Properties::NON_EXPLICIT, + ____ParameterOutput__Output_R1, + "", + ""); + I_Constructor2(IN, osgDB::Output &, fw, IN, int, numItemsPerLine, + ____ParameterOutput__Output_R1__int, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/PluginQuery.cpp b/src/osgWrappers/introspection/osgDB/PluginQuery.cpp new file mode 100644 index 000000000..c10db0976 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/PluginQuery.cpp @@ -0,0 +1,84 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriterInfo) + I_DeclaringFile("osgDB/PluginQuery"); + I_BaseType(osg::Referenced); + I_Constructor0(____ReaderWriterInfo, + "", + ""); + I_PublicMemberProperty(std::string, plugin); + I_PublicMemberProperty(std::string, description); + I_PublicMemberProperty(osgDB::ReaderWriter::FormatDescriptionMap, protocols); + I_PublicMemberProperty(osgDB::ReaderWriter::FormatDescriptionMap, extensions); + I_PublicMemberProperty(osgDB::ReaderWriter::FormatDescriptionMap, options); + I_PublicMemberProperty(osgDB::ReaderWriter::Features, features); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< std::string >, osgDB::FileNameList) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgDB::ReaderWriterInfo > >, osgDB::ReaderWriterInfoList) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::ReaderWriterInfo >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::ReaderWriterInfo *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::ReaderWriterInfo > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::ReaderWriterInfo *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::ReaderWriterInfo *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::ReaderWriterInfo > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::ReaderWriterInfo *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgDB::ReaderWriterInfo > >) + +STD_LIST_REFLECTOR(std::list< std::string >) + diff --git a/src/osgWrappers/introspection/osgDB/ReaderWriter.cpp b/src/osgWrappers/introspection/osgDB/ReaderWriter.cpp new file mode 100644 index 000000000..1263b0866 --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/ReaderWriter.cpp @@ -0,0 +1,495 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::Features) + I_DeclaringFile("osgDB/ReaderWriter"); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_NONE); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_READ_OBJECT); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_READ_IMAGE); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_READ_HEIGHT_FIELD); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_READ_NODE); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_READ_SHADER); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_WRITE_OBJECT); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_WRITE_IMAGE); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_WRITE_HEIGHT_FIELD); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_WRITE_NODE); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_WRITE_SHADER); + I_EnumLabel(osgDB::ReaderWriter::FEATURE_ALL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) + I_DeclaringFile("osgDB/ReaderWriter"); + I_EnumLabel(osgDB::ReaderWriter::READ); + I_EnumLabel(osgDB::ReaderWriter::WRITE); + I_EnumLabel(osgDB::ReaderWriter::CREATE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osgDB::ReaderWriter::FormatDescriptionMap) + +TYPE_NAME_ALIAS(std::list< std::string >, osgDB::ReaderWriter::FeatureList) + +TYPE_NAME_ALIAS(osgDB::Options, osgDB::ReaderWriter::Options) + +BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter) + I_DeclaringFile("osgDB/ReaderWriter"); + I_BaseType(osg::Object); + I_Constructor0(____ReaderWriter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgDB::ReaderWriter &, rw, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReaderWriter__C5_ReaderWriter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedProtocols, + Properties::VIRTUAL, + __C5_FormatDescriptionMap_R1__supportedProtocols, + "return which protocols are supported by ReaderWriter. ", + ""); + I_Method0(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedExtensions, + Properties::VIRTUAL, + __C5_FormatDescriptionMap_R1__supportedExtensions, + "return which list of file extensions supported by ReaderWriter. ", + ""); + I_Method0(const osgDB::ReaderWriter::FormatDescriptionMap &, supportedOptions, + Properties::VIRTUAL, + __C5_FormatDescriptionMap_R1__supportedOptions, + "return which list of file extensions supported by ReaderWriter. ", + ""); + I_Method1(bool, acceptsExtension, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__acceptsExtension__C5_std_string_R1, + "return true if ReaderWriter accepts specified file extension. ", + ""); + I_Method0(osgDB::ReaderWriter::Features, supportedFeatures, + Properties::VIRTUAL, + __Features__supportedFeatures, + "return available features ", + ""); + I_Method2(bool, fileExists, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, + __bool__fileExists__C5_std_string_R1__C5_Options_P1, + "determine if a file exists, normally the default implementation will be approrpiate for local file access but with plugins like the libcurl based on it will return true if the file is accessible a server. ", + ""); + 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_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readShader, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, + __ReadResult__readShader__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_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, + __WriteResult__writeShader__C5_osg_Shader_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_MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readShader, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, + __ReadResult__readShader__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, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL, + Properties::VIRTUAL, + __WriteResult__writeShader__C5_osg_Shader_R1__std_ostream_R1__C5_Options_P1, + "", + ""); + I_Method2(void, supportsProtocol, IN, const std::string &, fmt, IN, const std::string &, description, + Properties::NON_VIRTUAL, + __void__supportsProtocol__C5_std_string_R1__C5_std_string_R1, + "Specify fmt string as a supported protocol. ", + "Please note, this method should usually only be used internally by subclasses of ReaderWriter, Only in special cases will a ReaderWriter implementation be able to handle a protocol format that is wasn't original designed for. To know whether it's safe to inject a new protocol format to an existing ReaderWriter you will need to review the source code and dependencies of that ReaderWriter. "); + I_Method2(void, supportsExtension, IN, const std::string &, ext, IN, const std::string &, description, + Properties::NON_VIRTUAL, + __void__supportsExtension__C5_std_string_R1__C5_std_string_R1, + "Specify ext string as a supported file extension. ", + "Please note, this method should usually only be used internally by subclasses of ReaderWriter. Only in special cases will a ReaderWriter implementation be able to handle a file extension that is wasn't original designed for. To know whether it's safe to inject a new file extension to an existing ReaderWriter you will need to review the the source code and dependencies of that ReaderWriter. "); + I_Method2(void, supportsOption, IN, const std::string &, opt, IN, const std::string &, description, + Properties::NON_VIRTUAL, + __void__supportsOption__C5_std_string_R1__C5_std_string_R1, + "Specify option string as a supported option string. ", + "Please note, this should usually only be used internally by subclasses of ReaderWriter. "); + I_StaticMethod1(osgDB::ReaderWriter::FeatureList, featureAsString, IN, osgDB::ReaderWriter::Features, feature, + __FeatureList__featureAsString__Features_S, + "return feature as string ", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ReadResult::ReadStatus) + I_DeclaringFile("osgDB/ReaderWriter"); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::NOT_IMPLEMENTED); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_NOT_FOUND); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_LOADED); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_LOADED_FROM_CACHE); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::ERROR_IN_READING_FILE); + I_EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_REQUESTED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::ReadResult) + I_DeclaringFile("osgDB/ReaderWriter"); + 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, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Object *, obj, , IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_LOADED, + ____ReadResult__osg_Object_P1__ReadStatus, + "", + ""); + 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(osg::Shader *, getShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__getShader, + "", + ""); + 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(bool, validShader, + Properties::NON_VIRTUAL, + __bool__validShader, + "", + ""); + 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(osg::Shader *, takeShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__takeShader, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgDB::Archive *, Archive, + __osgDB_Archive_P1__getArchive, + 0); + I_SimpleProperty(osg::HeightField *, HeightField, + __osg_HeightField_P1__getHeightField, + 0); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + 0); + I_SimpleProperty(osg::Object *, Object, + __osg_Object_P1__getObject, + 0); + I_SimpleProperty(osg::Shader *, Shader, + __osg_Shader_P1__getShader, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::WriteResult::WriteStatus) + I_DeclaringFile("osgDB/ReaderWriter"); + I_EnumLabel(osgDB::ReaderWriter::WriteResult::NOT_IMPLEMENTED); + I_EnumLabel(osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED); + I_EnumLabel(osgDB::ReaderWriter::WriteResult::FILE_SAVED); + I_EnumLabel(osgDB::ReaderWriter::WriteResult::ERROR_IN_WRITING_FILE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::WriteResult) + I_DeclaringFile("osgDB/ReaderWriter"); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/Registry.cpp b/src/osgWrappers/introspection/osgDB/Registry.cpp new file mode 100644 index 000000000..c68ee528a --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/Registry.cpp @@ -0,0 +1,790 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper) + I_DeclaringFile("osgDB/Registry"); + I_Constructor0(____basic_type_wrapper, + "", + ""); + I_Method1(bool, matches, IN, const osg::Object *, proto, + Properties::PURE_VIRTUAL, + __bool__matches__C5_osg_Object_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::PluginFunctionProxy) + I_DeclaringFile("osgDB/Registry"); + I_Constructor1(IN, CPluginFunction, function, + Properties::NON_EXPLICIT, + ____PluginFunctionProxy__CPluginFunction, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::RegisterDotOsgWrapperProxy) + I_DeclaringFile("osgDB/Registry"); + 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, + ____RegisterDotOsgWrapperProxy__osg_Object_P1__C5_std_string_R1__C5_std_string_R1__DotOsgWrapper_ReadFunc__DotOsgWrapper_WriteFunc__DotOsgWrapper_ReadWriteMode, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::Registry::LoadStatus) + I_DeclaringFile("osgDB/Registry"); + I_EnumLabel(osgDB::Registry::NOT_LOADED); + I_EnumLabel(osgDB::Registry::PREVIOUSLY_LOADED); + I_EnumLabel(osgDB::Registry::LOADED); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >, osgDB::Registry::ReaderWriterList) + +TYPE_NAME_ALIAS(class osgDB::FindFileCallback, osgDB::Registry::FindFileCallback) + +TYPE_NAME_ALIAS(class osgDB::ReadFileCallback, osgDB::Registry::ReadFileCallback) + +TYPE_NAME_ALIAS(class osgDB::WriteFileCallback, osgDB::Registry::WriteFileCallback) + +TYPE_NAME_ALIAS(class osgDB::FileLocationCallback, osgDB::Registry::FileLocationCallback) + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry) + I_DeclaringFile("osgDB/Registry"); + I_BaseType(osg::Referenced); + I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, + __Registry_P1__instance__bool_S, + "", + ""); + 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 parameters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); + I_Method2(void, addMimeTypeExtensionMapping, IN, const std::string, fromMimeType, IN, const std::string, toExt, + Properties::NON_VIRTUAL, + __void__addMimeTypeExtensionMapping__C5_std_string__C5_std_string, + "Registers a mapping of a mime-type to an extension. ", + "A process fetching data over HTTP can use this facility to determine the proper ReaderWriter to use when there is no filename extension to rely upon. "); + 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(osgDB::Registry::LoadStatus, loadLibrary, IN, const std::string &, fileName, + Properties::NON_VIRTUAL, + __LoadStatus__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_Method1(osgDB::ReaderWriter *, getReaderWriterForMimeType, IN, const std::string &, mimeType, + Properties::NON_VIRTUAL, + __ReaderWriter_P1__getReaderWriterForMimeType__C5_std_string_R1, + "gets a reader/writer that handles the extension mapped to by one of the registered mime-types. ", + ""); + I_Method0(osgDB::Registry::ReaderWriterList &, getReaderWriterList, + Properties::NON_VIRTUAL, + __ReaderWriterList_R1__getReaderWriterList, + "get list of all registered ReaderWriters. ", + ""); + I_Method0(const osgDB::Registry::ReaderWriterList &, getReaderWriterList, + Properties::NON_VIRTUAL, + __C5_ReaderWriterList_R1__getReaderWriterList, + "get const list of all registered ReaderWriters. ", + ""); + 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_Method1(osg::Shader *, readShader, IN, osgDB::Input &, fr, + Properties::NON_VIRTUAL, + __osg_Shader_P1__readShader__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, setFindFileCallback, IN, osgDB::Registry::FindFileCallback *, cb, + Properties::NON_VIRTUAL, + __void__setFindFileCallback__FindFileCallback_P1, + "Set the Registry callback to use in place of the default findFile calls. ", + ""); + I_Method0(osgDB::Registry::FindFileCallback *, getFindFileCallback, + Properties::NON_VIRTUAL, + __FindFileCallback_P1__getFindFileCallback, + "Get the findFile callback. ", + ""); + I_Method0(const osgDB::Registry::FindFileCallback *, getFindFileCallback, + Properties::NON_VIRTUAL, + __C5_FindFileCallback_P1__getFindFileCallback, + "Get the const findFile callback. ", + ""); + I_Method3(std::string, findDataFile, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::NON_VIRTUAL, + __std_string__findDataFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); + I_Method3(std::string, findDataFileImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::NON_VIRTUAL, + __std_string__findDataFileImplementation__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); + I_Method3(std::string, findLibraryFile, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::NON_VIRTUAL, + __std_string__findLibraryFile__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); + I_Method3(std::string, findLibraryFileImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, IN, osgDB::CaseSensitivity, caseSensitivity, + Properties::NON_VIRTUAL, + __std_string__findLibraryFileImplementation__C5_std_string_R1__C5_Options_P1__CaseSensitivity, + "", + ""); + 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::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_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::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, , IN, const osgDB::Options *, options, , IN, bool, buildKdTreeIfRequired, true, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_Options_P1__bool, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_MethodWithDefaults3(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, , IN, const osgDB::Options *, options, , IN, bool, buildKdTreeIfRequired, true, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_Options_P1__bool, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readShader, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readShader__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(osgDB::ReaderWriter::ReadResult, readShaderImplementation, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_ReadResult__readShaderImplementation__C5_std_string_R1__C5_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_Method3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeShader, IN, const osg::Shader &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeShader__C5_osg_Shader_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method3(osgDB::ReaderWriter::WriteResult, writeShaderImplementation, IN, const osg::Shader &, obj, IN, const std::string &, fileName, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __ReaderWriter_WriteResult__writeShaderImplementation__C5_osg_Shader_R1__C5_std_string_R1__C5_Options_P1, + "", + ""); + I_Method2(void, _buildKdTreeIfRequired, IN, osgDB::ReaderWriter::ReadResult &, result, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + __void___buildKdTreeIfRequired__ReaderWriter_ReadResult_R1__C5_Options_P1, + "", + ""); + I_Method1(void, setFileLocationCallback, IN, osgDB::Registry::FileLocationCallback *, cb, + Properties::NON_VIRTUAL, + __void__setFileLocationCallback__FileLocationCallback_P1, + "Set the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", + ""); + I_Method0(osgDB::Registry::FileLocationCallback *, getFileLocationCallback, + Properties::NON_VIRTUAL, + __FileLocationCallback_P1__getFileLocationCallback, + "Get the callback to use inform the DatabasePager whether a file is located on local or remote file system. ", + ""); + I_Method1(void, setBuildKdTreesHint, IN, osgDB::Options::BuildKdTreesHint, hint, + Properties::NON_VIRTUAL, + __void__setBuildKdTreesHint__Options_BuildKdTreesHint, + "Set whether the KdTrees should be built for geometry in the loader model. ", + ""); + I_Method0(osgDB::Options::BuildKdTreesHint, getBuildKdTreesHint, + Properties::NON_VIRTUAL, + __Options_BuildKdTreesHint__getBuildKdTreesHint, + "Get whether the KdTrees should be built for geometry in the loader model. ", + ""); + I_Method1(void, setKdTreeBuilder, IN, osg::KdTreeBuilder *, builder, + Properties::NON_VIRTUAL, + __void__setKdTreeBuilder__osg_KdTreeBuilder_P1, + "Set the KdTreeBuilder visitor that is used to build KdTree on loaded models. ", + ""); + I_Method0(osg::KdTreeBuilder *, getKdTreeBuilder, + Properties::NON_VIRTUAL, + __osg_KdTreeBuilder_P1__getKdTreeBuilder, + "Get the KdTreeBuilder visitor that is used to build KdTree on loaded models. ", + ""); + I_Method1(void, setFileCache, IN, osgDB::FileCache *, fileCache, + Properties::NON_VIRTUAL, + __void__setFileCache__FileCache_P1, + "Set the FileCache that is used to manage local storage of files downloaded from the internet. ", + ""); + I_Method0(osgDB::FileCache *, getFileCache, + Properties::NON_VIRTUAL, + __FileCache_P1__getFileCache, + "Get the FileCache that is used to manage local storage of files downloaded from the internet. ", + ""); + I_Method0(const osgDB::FileCache *, getFileCache, + Properties::NON_VIRTUAL, + __C5_FileCache_P1__getFileCache, + "Get the const FileCache that is used to manage local storage of files downloaded from the internet. ", + ""); + I_Method1(void, setAuthenticationMap, IN, osgDB::AuthenticationMap *, authenticationMap, + Properties::NON_VIRTUAL, + __void__setAuthenticationMap__AuthenticationMap_P1, + "Set the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method0(osgDB::AuthenticationMap *, getAuthenticationMap, + Properties::NON_VIRTUAL, + __AuthenticationMap_P1__getAuthenticationMap, + "Get the password map to be used by plugins when access files from secure locations. ", + ""); + I_Method0(const osgDB::AuthenticationMap *, getAuthenticationMap, + Properties::NON_VIRTUAL, + __C5_AuthenticationMap_P1__getAuthenticationMap, + "Get the password map to be used by plugins when access files from secure locations. ", + ""); + 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::Options *, opt, + Properties::NON_VIRTUAL, + __void__setOptions__Options_P1, + "", + ""); + I_Method0(osgDB::Options *, getOptions, + Properties::NON_VIRTUAL, + __Options_P1__getOptions, + "", + ""); + I_Method0(const osgDB::Options *, getOptions, + Properties::NON_VIRTUAL, + __C5_Options_P1__getOptions, + "", + ""); + I_Method0(void, initFilePathLists, + Properties::NON_VIRTUAL, + __void__initFilePathLists, + "initialize 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, + "initialize 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 delimited 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, + "initialize 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 delimited 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, updateTimeStampOfObjectsInCacheWithExternalReferences, IN, const osg::FrameStamp &, frameStamp, + Properties::NON_VIRTUAL, + __void__updateTimeStampOfObjectsInCacheWithExternalReferences__C5_osg_FrameStamp_R1, + "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. The time used is taken from the FrameStamp::getReferenceTime(). "); + I_Method1(void, removeExpiredObjectsInCache, IN, const osg::FrameStamp &, frameStamp, + Properties::NON_VIRTUAL, + __void__removeExpiredObjectsInCache__C5_osg_FrameStamp_R1, + "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 updateTimeStampOfObjectsInCacheWithExternalReferences(frameStamp). "); + I_Method1(void, setExpiryDelay, IN, double, expiryDelay, + Properties::NON_VIRTUAL, + __void__setExpiryDelay__double, + "set hint to viewer code calling removeExpiredObjectsInCache to specify how long it should give before expiring objects in Registry cache, ", + ""); + I_Method0(double, getExpiryDelay, + Properties::NON_VIRTUAL, + __double__getExpiryDelay, + "", + ""); + 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 triple 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, 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. "); + I_Method1(void, addArchiveExtension, IN, const std::string, ext, + Properties::NON_VIRTUAL, + __void__addArchiveExtension__C5_std_string, + "Add an Archive extension. ", + ""); + I_Method1(void, registerProtocol, IN, const std::string &, protocol, + Properties::NON_VIRTUAL, + __void__registerProtocol__C5_std_string_R1, + "registers a protocol ", + ""); + I_Method1(bool, isProtocolRegistered, IN, const std::string &, protocol, + Properties::NON_VIRTUAL, + __bool__isProtocolRegistered__C5_std_string_R1, + "returns true, if named protocol is registered ", + ""); + I_ProtectedConstructor0(____Registry, + "constructor is private, as its a singleton, preventing construction other than via the instance() method and therefore ensuring only one copy is ever constructed ", + ""); + + + + I_ProtectedMethod0(void, destruct, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__destruct, + "", + ""); + I_ProtectedMethod1(osgDB::ReaderWriter::ReadResult, read, IN, const osgDB::Registry::ReadFunctor &, readFunctor, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ReaderWriter_ReadResult__read__C5_ReadFunctor_R1, + "", + ""); + I_ProtectedMethod2(osgDB::ReaderWriter::ReadResult, readImplementation, IN, const osgDB::Registry::ReadFunctor &, readFunctor, IN, osgDB::Options::CacheHintOptions, cacheHint, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ReaderWriter_ReadResult__readImplementation__C5_ReadFunctor_R1__Options_CacheHintOptions, + "", + ""); + I_SimpleProperty(osgDB::AuthenticationMap *, AuthenticationMap, + __AuthenticationMap_P1__getAuthenticationMap, + __void__setAuthenticationMap__AuthenticationMap_P1); + I_SimpleProperty(osgDB::Options::BuildKdTreesHint, BuildKdTreesHint, + __Options_BuildKdTreesHint__getBuildKdTreesHint, + __void__setBuildKdTreesHint__Options_BuildKdTreesHint); + I_SimpleProperty(bool, CreateNodeFromImage, + __bool__getCreateNodeFromImage, + __void__setCreateNodeFromImage__bool); + I_SimpleProperty(const osgDB::FilePathList &, DataFilePathList, + __C5_FilePathList_R1__getDataFilePathList, + __void__setDataFilePathList__C5_FilePathList_R1); + I_SimpleProperty(double, ExpiryDelay, + __double__getExpiryDelay, + __void__setExpiryDelay__double); + I_SimpleProperty(osgDB::FileCache *, FileCache, + __FileCache_P1__getFileCache, + __void__setFileCache__FileCache_P1); + I_SimpleProperty(osgDB::Registry::FileLocationCallback *, FileLocationCallback, + __FileLocationCallback_P1__getFileLocationCallback, + __void__setFileLocationCallback__FileLocationCallback_P1); + I_SimpleProperty(osgDB::Registry::FindFileCallback *, FindFileCallback, + __FindFileCallback_P1__getFindFileCallback, + __void__setFindFileCallback__FindFileCallback_P1); + I_SimpleProperty(osg::KdTreeBuilder *, KdTreeBuilder, + __osg_KdTreeBuilder_P1__getKdTreeBuilder, + __void__setKdTreeBuilder__osg_KdTreeBuilder_P1); + I_SimpleProperty(const osgDB::FilePathList &, LibraryFilePathList, + __C5_FilePathList_R1__getLibraryFilePathList, + __void__setLibraryFilePathList__C5_FilePathList_R1); + I_SimpleProperty(osgDB::Options *, Options, + __Options_P1__getOptions, + __void__setOptions__Options_P1); + I_SimpleProperty(osgDB::Registry::ReadFileCallback *, ReadFileCallback, + __ReadFileCallback_P1__getReadFileCallback, + __void__setReadFileCallback__ReadFileCallback_P1); + I_SimpleProperty(osgDB::Registry::ReaderWriterList &, ReaderWriterList, + __ReaderWriterList_R1__getReaderWriterList, + 0); + I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager, + __SharedStateManager_P1__getSharedStateManager, + __void__setSharedStateManager__SharedStateManager_P1); + I_SimpleProperty(osgDB::Registry::WriteFileCallback *, WriteFileCallback, + __WriteFileCallback_P1__getWriteFileCallback, + __void__setWriteFileCallback__WriteFileCallback_P1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) + I_DeclaringFile("osgDB/Registry"); + I_Constructor2(IN, const std::string &, filename, IN, const osgDB::Options *, options, + ____ReadFunctor__C5_std_string_R1__C5_Options_P1, + "", + ""); + 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_VALUE_REFLECTOR(osg::ref_ptr< osgDB::ReaderWriter >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::ReaderWriter *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::ReaderWriter > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::ReaderWriter *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::ReaderWriter *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::ReaderWriter > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::ReaderWriter *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::ReaderWriter > >) + diff --git a/src/osgWrappers/introspection/osgDB/SharedStateManager.cpp b/src/osgWrappers/introspection/osgDB/SharedStateManager.cpp new file mode 100644 index 000000000..a4deedb1a --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/SharedStateManager.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::SharedStateManager::ShareMode) + I_DeclaringFile("osgDB/SharedStateManager"); + I_EnumLabel(osgDB::SharedStateManager::SHARE_NONE); + I_EnumLabel(osgDB::SharedStateManager::SHARE_STATIC_TEXTURES); + I_EnumLabel(osgDB::SharedStateManager::SHARE_UNSPECIFIED_TEXTURES); + I_EnumLabel(osgDB::SharedStateManager::SHARE_DYNAMIC_TEXTURES); + I_EnumLabel(osgDB::SharedStateManager::SHARE_STATIC_STATESETS); + I_EnumLabel(osgDB::SharedStateManager::SHARE_UNSPECIFIED_STATESETS); + I_EnumLabel(osgDB::SharedStateManager::SHARE_DYNAMIC_STATESETS); + I_EnumLabel(osgDB::SharedStateManager::SHARE_TEXTURES); + I_EnumLabel(osgDB::SharedStateManager::SHARE_STATESETS); + I_EnumLabel(osgDB::SharedStateManager::SHARE_ALL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::SharedStateManager) + I_DeclaringFile("osgDB/SharedStateManager"); + I_BaseType(osg::NodeVisitor); + I_ConstructorWithDefaults1(IN, unsigned int, mode, osgDB::SharedStateManager::SHARE_ALL, + Properties::NON_EXPLICIT, + ____SharedStateManager__unsigned_int, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_Method1(bool, isShared, IN, osg::StateSet *, stateSet, + Properties::NON_VIRTUAL, + __bool__isShared__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(bool, shareTexture, IN, osg::Object::DataVariance, variance, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__shareTexture__osg_Object_DataVariance, + "", + ""); + I_ProtectedMethod1(bool, shareStateSet, IN, osg::Object::DataVariance, variance, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__shareStateSet__osg_Object_DataVariance, + "", + ""); + I_ProtectedMethod2(void, process, IN, osg::StateSet *, ss, IN, osg::Object *, parent, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__process__osg_StateSet_P1__osg_Object_P1, + "", + ""); + I_ProtectedMethod1(osg::StateAttribute *, find, IN, osg::StateAttribute *, sa, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_StateAttribute_P1__find__osg_StateAttribute_P1, + "", + ""); + I_ProtectedMethod1(osg::StateSet *, find, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_StateSet_P1__find__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod2(void, setStateSet, IN, osg::StateSet *, ss, IN, osg::Object *, object, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setStateSet__osg_StateSet_P1__osg_Object_P1, + "", + ""); + I_ProtectedMethod1(void, shareTextures, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__shareTextures__osg_StateSet_P1, + "", + ""); + I_SimpleProperty(unsigned int, ShareMode, + __unsigned_int__getShareMode, + __void__setShareMode__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgDB/XmlParser.cpp b/src/osgWrappers/introspection/osgDB/XmlParser.cpp new file mode 100644 index 000000000..9ce36224e --- /dev/null +++ b/src/osgWrappers/introspection/osgDB/XmlParser.cpp @@ -0,0 +1,204 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgDB::XmlNode::NodeType) + I_DeclaringFile("osgDB/XmlParser"); + I_EnumLabel(osgDB::XmlNode::UNASSIGNED); + I_EnumLabel(osgDB::XmlNode::ATOM); + I_EnumLabel(osgDB::XmlNode::NODE); + I_EnumLabel(osgDB::XmlNode::GROUP); + I_EnumLabel(osgDB::XmlNode::ROOT); + I_EnumLabel(osgDB::XmlNode::COMMENT); + I_EnumLabel(osgDB::XmlNode::INFORMATION); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA std::string >, osgDB::XmlNode::Properties) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgDB::XmlNode > >, osgDB::XmlNode::Children) + +BEGIN_OBJECT_REFLECTOR(osgDB::XmlNode) + I_DeclaringFile("osgDB/XmlParser"); + I_BaseType(osg::Referenced); + I_Constructor0(____XmlNode, + "", + ""); + I_Method0(std::string, getTrimmedContents, + Properties::NON_VIRTUAL, + __std_string__getTrimmedContents, + "", + ""); + I_Method1(bool, read, IN, osgDB::XmlNode::Input &, input, + Properties::NON_VIRTUAL, + __bool__read__Input_R1, + "", + ""); + I_MethodWithDefaults2(bool, write, IN, std::ostream &, fout, , IN, const std::string &, indent, "", + Properties::NON_VIRTUAL, + __bool__write__std_ostream_R1__C5_std_string_R1, + "", + ""); + I_Method2(bool, writeString, IN, std::ostream &, fout, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __bool__writeString__std_ostream_R1__C5_std_string_R1, + "", + ""); + I_ProtectedMethod2(bool, writeChildren, IN, std::ostream &, fout, IN, const std::string &, indent, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__writeChildren__std_ostream_R1__C5_std_string_R1, + "", + ""); + I_ProtectedMethod1(bool, writeProperties, IN, std::ostream &, fout, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__writeProperties__std_ostream_R1, + "", + ""); + I_SimpleProperty(std::string, TrimmedContents, + __std_string__getTrimmedContents, + 0); + I_PublicMemberProperty(osgDB::XmlNode::NodeType, type); + I_PublicMemberProperty(std::string, name); + I_PublicMemberProperty(std::string, contents); + I_PublicMemberProperty(osgDB::XmlNode::Properties, properties); + I_PublicMemberProperty(osgDB::XmlNode::Children, children); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::string::size_type, osgDB::XmlNode::Input::size_type) + +TYPE_NAME_ALIAS(std::map< std::string COMMA int >, osgDB::XmlNode::Input::ControlToCharacterMap) + +TYPE_NAME_ALIAS(std::map< int COMMA std::string >, osgDB::XmlNode::Input::CharacterToControlMap) + +BEGIN_VALUE_REFLECTOR(osgDB::XmlNode::Input) + I_DeclaringFile("osgDB/XmlParser"); + I_Constructor0(____Input, + "", + ""); + I_Constructor1(IN, const osgDB::XmlNode::Input &, x, + Properties::NON_EXPLICIT, + ____Input__C5_Input_R1, + "", + ""); + I_Method1(void, open, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__open__C5_std_string_R1, + "", + ""); + I_Method1(void, attach, IN, std::istream &, istream, + Properties::NON_VIRTUAL, + __void__attach__std_istream_R1, + "", + ""); + I_Method0(void, readAllDataIntoBuffer, + Properties::NON_VIRTUAL, + __void__readAllDataIntoBuffer, + "", + ""); + I_Method0(osgDB::XmlNode::Input::size_type, currentPosition, + Properties::NON_VIRTUAL, + __size_type__currentPosition, + "", + ""); + I_Method0(int, get, + Properties::NON_VIRTUAL, + __int__get, + "", + ""); + I_Method0(void, skipWhiteSpace, + Properties::NON_VIRTUAL, + __void__skipWhiteSpace, + "", + ""); + I_MethodWithDefaults2(std::string, substr, IN, osgDB::XmlNode::Input::size_type, pos, , IN, osgDB::XmlNode::Input::size_type, n, std::string::npos, + Properties::NON_VIRTUAL, + __std_string__substr__size_type__size_type, + "", + ""); + I_Method1(osgDB::XmlNode::Input::size_type, find, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __size_type__find__C5_std_string_R1, + "", + ""); + I_Method1(bool, match, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __bool__match__C5_std_string_R1, + "", + ""); + I_Method2(void, addControlToCharacter, IN, const std::string &, control, IN, int, c, + Properties::NON_VIRTUAL, + __void__addControlToCharacter__C5_std_string_R1__int, + "", + ""); + I_SimpleProperty(int, , + __int__get, + 0); + I_PublicMemberProperty(osgDB::XmlNode::Input::ControlToCharacterMap, _controlToCharacterMap); + I_PublicMemberProperty(osgDB::XmlNode::Input::CharacterToControlMap, _characterToControlMap); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgDB::XmlNode >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgDB::XmlNode *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgDB::XmlNode > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgDB::XmlNode *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgDB::XmlNode *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgDB::XmlNode > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgDB::XmlNode *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< int COMMA std::string >) + +STD_MAP_REFLECTOR(std::map< std::string COMMA int >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgDB::XmlNode > >) + diff --git a/src/osgWrappers/introspection/osgFX/AnisotropicLighting.cpp b/src/osgWrappers/introspection/osgFX/AnisotropicLighting.cpp new file mode 100644 index 000000000..76dbfb4a9 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/AnisotropicLighting.cpp @@ -0,0 +1,120 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) + I_DeclaringFile("osgFX/AnisotropicLighting"); + I_BaseType(osgFX::Effect); + I_Constructor0(____AnisotropicLighting, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::AnisotropicLighting &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnisotropicLighting__C5_AnisotropicLighting_R1__C5_osg_CopyOp_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(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 ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(osg::Image *, LightingMap, + __osg_Image_P1__getLightingMap, + __void__setLightingMap__osg_Image_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/BumpMapping.cpp b/src/osgWrappers/introspection/osgFX/BumpMapping.cpp new file mode 100644 index 000000000..8c5ce423e --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/BumpMapping.cpp @@ -0,0 +1,186 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) + I_DeclaringFile("osgFX/BumpMapping"); + I_BaseType(osgFX::Effect); + I_Constructor0(____BumpMapping, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::BumpMapping &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BumpMapping__C5_BumpMapping_R1__C5_osg_CopyOp_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(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 ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(int, DiffuseTextureUnit, + __int__getDiffuseTextureUnit, + __void__setDiffuseTextureUnit__int); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(int, NormalMapTextureUnit, + __int__getNormalMapTextureUnit, + __void__setNormalMapTextureUnit__int); + I_SimpleProperty(osg::Texture2D *, OverrideDiffuseTexture, + __osg_Texture2D_P1__getOverrideDiffuseTexture, + __void__setOverrideDiffuseTexture__osg_Texture2D_P1); + I_SimpleProperty(osg::Texture2D *, OverrideNormalMapTexture, + __osg_Texture2D_P1__getOverrideNormalMapTexture, + __void__setOverrideNormalMapTexture__osg_Texture2D_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Cartoon.cpp b/src/osgWrappers/introspection/osgFX/Cartoon.cpp new file mode 100644 index 000000000..1f3b7cfb2 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Cartoon.cpp @@ -0,0 +1,128 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) + I_DeclaringFile("osgFX/Cartoon"); + I_BaseType(osgFX::Effect); + I_Constructor0(____Cartoon, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Cartoon &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Cartoon__C5_Cartoon_R1__C5_osg_CopyOp_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(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 ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(const osg::Vec4 &, OutlineColor, + __C5_osg_Vec4_R1__getOutlineColor, + __void__setOutlineColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, OutlineLineWidth, + __float__getOutlineLineWidth, + __void__setOutlineLineWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Effect.cpp b/src/osgWrappers/introspection/osgFX/Effect.cpp new file mode 100644 index 000000000..0b1f5a749 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Effect.cpp @@ -0,0 +1,154 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgFX::Effect::TechniqueSelection) + I_DeclaringFile("osgFX/Effect"); + I_EnumLabel(osgFX::Effect::AUTO_DETECT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) + I_DeclaringFile("osgFX/Effect"); + I_BaseType(osg::Group); + I_Constructor0(____Effect, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Effect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Effect__C5_Effect_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 ", + ""); + I_ProtectedMethod0(void, dirtyTechniques, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyTechniques, + "force rebuilding of techniques on next traversal ", + ""); + I_ProtectedMethod1(void, addTechnique, IN, osgFX::Technique *, tech, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addTechnique__Technique_P1, + "add a technique to the Effect ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(bool, Enabled, + __bool__getEnabled, + __void__setEnabled__bool); + I_SimpleProperty(int, SelectedTechnique, + __int__getSelectedTechnique, + 0); + I_ArrayProperty(osgFX::Technique *, Technique, + __Technique_P1__getTechnique__int, + 0, + __int__getNumTechniques, + 0, + 0, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/MultiTextureControl.cpp b/src/osgWrappers/introspection/osgFX/MultiTextureControl.cpp new file mode 100644 index 000000000..213c81e9f --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/MultiTextureControl.cpp @@ -0,0 +1,95 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) + I_DeclaringFile("osgFX/MultiTextureControl"); + I_BaseType(osg::Group); + I_Constructor0(____MultiTextureControl, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::MultiTextureControl &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiTextureControl__C5_MultiTextureControl_R1__C5_osg_CopyOp_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_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, + "", + ""); + I_ProtectedMethod0(void, updateStateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateStateSet, + "", + ""); + I_ArrayProperty(float, TextureWeight, + __float__getTextureWeight__unsigned_int, + __void__setTextureWeight__unsigned_int__float, + __unsigned_int__getNumTextureWeights, + 0, + 0, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Outline.cpp b/src/osgWrappers/introspection/osgFX/Outline.cpp new file mode 100644 index 000000000..0115e88f5 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Outline.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::Outline) + I_DeclaringFile("osgFX/Outline"); + I_BaseType(osgFX::Effect); + I_Constructor0(____Outline, + "Constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Outline &, copy, , IN, const osg::CopyOp &, op, osg::CopyOp::SHALLOW_COPY, + ____Outline__C5_Outline_R1__C5_osg_CopyOp_R1, + "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_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_Method1(void, setWidth, IN, float, w, + Properties::NON_VIRTUAL, + __void__setWidth__float, + "Set outline width. ", + ""); + I_Method0(float, getWidth, + Properties::NON_VIRTUAL, + __float__getWidth, + "Get outline width. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set outline color. ", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getColor, + "Get outline color. ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "Define available techniques. ", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_osg_Vec4_R1__getColor, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Registry.cpp b/src/osgWrappers/introspection/osgFX/Registry.cpp new file mode 100644 index 000000000..8c5781445 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Registry.cpp @@ -0,0 +1,61 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >, osgFX::Registry::EffectMap) + +BEGIN_OBJECT_REFLECTOR(osgFX::Registry) + I_DeclaringFile("osgFX/Registry"); + I_BaseType(osg::Referenced); + I_StaticMethod0(osgFX::Registry *, instance, + __Registry_P1__instance_S, + "", + ""); + 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, + "", + ""); + I_ProtectedConstructor0(____Registry, + "", + ""); + I_SimpleProperty(const osgFX::Registry::EffectMap &, EffectMap, + __C5_EffectMap_R1__getEffectMap, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) + I_DeclaringFile("osgFX/Registry"); + I_Constructor1(IN, const osgFX::Effect *, effect, + Properties::NON_EXPLICIT, + ____Proxy__C5_Effect_P1, + "", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >) + diff --git a/src/osgWrappers/introspection/osgFX/Scribe.cpp b/src/osgWrappers/introspection/osgFX/Scribe.cpp new file mode 100644 index 000000000..d70cb8134 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Scribe.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) + I_DeclaringFile("osgFX/Scribe"); + I_BaseType(osgFX::Effect); + I_Constructor0(____Scribe, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Scribe &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scribe__C5_Scribe_R1__C5_osg_CopyOp_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(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 ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(const osg::Vec4 &, WireframeColor, + __C5_osg_Vec4_R1__getWireframeColor, + __void__setWireframeColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, WireframeLineWidth, + __float__getWireframeLineWidth, + __void__setWireframeLineWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/SpecularHighlights.cpp b/src/osgWrappers/introspection/osgFX/SpecularHighlights.cpp new file mode 100644 index 000000000..17417f966 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/SpecularHighlights.cpp @@ -0,0 +1,141 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) + I_DeclaringFile("osgFX/SpecularHighlights"); + I_BaseType(osgFX::Effect); + I_Constructor0(____SpecularHighlights, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::SpecularHighlights &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SpecularHighlights__C5_SpecularHighlights_R1__C5_osg_CopyOp_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(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 ", + ""); + I_ProtectedMethod0(bool, define_techniques, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__define_techniques, + "abstract method to be implemented in derived classes; its purpose if to create the techniques that can be used for obtaining the desired effect. ", + "You will usually call addTechnique() inside this method. "); + I_SimpleProperty(int, LightNumber, + __int__getLightNumber, + __void__setLightNumber__int); + I_SimpleProperty(const osg::Vec4 &, SpecularColor, + __C5_osg_Vec4_R1__getSpecularColor, + __void__setSpecularColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, SpecularExponent, + __float__getSpecularExponent, + __void__setSpecularExponent__float); + I_SimpleProperty(int, TextureUnit, + __int__getTextureUnit, + __void__setTextureUnit__int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Technique.cpp b/src/osgWrappers/introspection/osgFX/Technique.cpp new file mode 100644 index 000000000..b70654c53 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Technique.cpp @@ -0,0 +1,109 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) + I_DeclaringFile("osgFX/Technique"); + I_BaseType(osg::Referenced); + I_Constructor0(____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 "); + I_ProtectedConstructor1(IN, const osgFX::Technique &, x, + Properties::NON_EXPLICIT, + ____Technique__C5_Technique_R1, + "", + ""); + I_ProtectedMethod0(void, dirtyPasses, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyPasses, + "force rebuilding of pass nodes on next traversal ", + ""); + I_ProtectedMethodWithDefaults1(void, addPass, IN, osg::StateSet *, ss, 0, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addPass__osg_StateSet_P1, + "create a new pass node, add it to the technique and associate a StateSet ", + ""); + I_ProtectedMethod1(osg::Node *, getOverrideChild, IN, int, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __osg_Node_P1__getOverrideChild__int, + "optional: return a node that overrides the child node on a specified pass ", + ""); + I_ProtectedMethod0(void, define_passes, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__define_passes, + "define the rendering passes that make up this technique. ", + "You must implement this method in derived classes to add the required passes. "); + I_ProtectedMethod2(void, traverse_implementation, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__traverse_implementation__osg_NodeVisitor_R1__Effect_P1, + "traverse children with multipass if necessary. ", + "Don't call this method directly unless you are in a customized version of traverse(). "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgFX/Validator.cpp b/src/osgWrappers/introspection/osgFX/Validator.cpp new file mode 100644 index 000000000..2ebf6cce8 --- /dev/null +++ b/src/osgWrappers/introspection/osgFX/Validator.cpp @@ -0,0 +1,97 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgFX::Validator) + I_DeclaringFile("osgFX/Validator"); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Validator, + "", + ""); + I_Constructor1(IN, osgFX::Effect *, effect, + Properties::NON_EXPLICIT, + ____Validator__Effect_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgFX::Validator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Validator__C5_Validator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, x, + 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 &, x, + 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 &, x, + 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, + "", + ""); + I_SimpleProperty(osg::StateAttribute::Type, Type, + __Type__getType, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/introspection/osgGA/AnimationPathManipulator.cpp new file mode 100644 index 000000000..7cff2a385 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/AnimationPathManipulator.cpp @@ -0,0 +1,146 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::AnimationPathManipulator) + I_DeclaringFile("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, printOutTimingInfo, + 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 &, 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(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(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_ProtectedMethod1(void, handleFrame, IN, double, time, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handleFrame__double, + "", + ""); + I_SimpleProperty(osg::AnimationPath *, AnimationPath, + __osg_AnimationPath_P1__getAnimationPath, + __void__setAnimationPath__osg_AnimationPath_P1); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(bool, PrintOutTimingInfo, + __bool__getPrintOutTimingInfo, + __void__setPrintOutTimingInfo__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/CameraViewSwitchManipulator.cpp b/src/osgWrappers/introspection/osgGA/CameraViewSwitchManipulator.cpp new file mode 100644 index 000000000..b07329a51 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/CameraViewSwitchManipulator.cpp @@ -0,0 +1,150 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::CameraView > >, osgGA::CameraViewSwitchManipulator::CameraViewList) + +BEGIN_OBJECT_REFLECTOR(osgGA::CameraViewSwitchManipulator) + I_DeclaringFile("osgGA/CameraViewSwitchManipulator"); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____CameraViewSwitchManipulator, + "", + ""); + 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 &, x, + 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 &, x, + 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 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, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::CameraView >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::CameraView *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::CameraView > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::CameraView *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::CameraView *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::CameraView > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::CameraView *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::CameraView > >) + diff --git a/src/osgWrappers/introspection/osgGA/DriveManipulator.cpp b/src/osgWrappers/introspection/osgGA/DriveManipulator.cpp new file mode 100644 index 000000000..ce77dede7 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/DriveManipulator.cpp @@ -0,0 +1,184 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) + I_DeclaringFile("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 &, 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_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. ", + ""); + 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, + "", + ""); + I_ProtectedMethod4(bool, intersect, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, IN, osg::Vec3d &, intersection, IN, osg::Vec3d &, normal, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__intersect__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, lv, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(double, Height, + __double__getHeight, + __void__setHeight__double); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, ModelScale, + __double__getModelScale, + __void__setModelScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, Velocity, + __double__getVelocity, + __void__setVelocity__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/EventQueue.cpp b/src/osgWrappers/introspection/osgGA/EventQueue.cpp new file mode 100644 index 000000000..f1efeef2d --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/EventQueue.cpp @@ -0,0 +1,338 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventQueue::Events) + +BEGIN_OBJECT_REFLECTOR(osgGA::EventQueue) + I_DeclaringFile("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_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "Set the graphics context associated with this event queue. ", + ""); + 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_Method3(void, penOrientation, IN, float, tiltX, IN, float, tiltY, IN, float, rotation, + Properties::NON_VIRTUAL, + __void__penOrientation__float__float__float, + "Method for adapting pen orientation events, placing this event on the back of the event queue. ", + ""); + I_Method4(void, penOrientation, IN, float, tiltX, IN, float, tiltY, IN, float, rotation, IN, double, time, + Properties::NON_VIRTUAL, + __void__penOrientation__float__float__float__double, + "Method for adapting pen orientation 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, + "convenience method for create an event ready to fill in. ", + "Clones the getCurrentEventState() to produce a up to date event state. "); + I_Method1(void, setCurrentEventState, IN, osgGA::GUIEventAdapter *, ea, + Properties::NON_VIRTUAL, + __void__setCurrentEventState__GUIEventAdapter_P1, + "", + ""); + I_Method0(osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, + __GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_Method0(const osgGA::GUIEventAdapter *, getCurrentEventState, + Properties::NON_VIRTUAL, + __C5_GUIEventAdapter_P1__getCurrentEventState, + "", + ""); + I_Method1(void, userEvent, IN, osg::Referenced *, userEventData, + Properties::NON_VIRTUAL, + __void__userEvent__osg_Referenced_P1, + "Method for adapting user defined events. ", + ""); + I_Method2(void, userEvent, IN, osg::Referenced *, userEventData, IN, double, time, + Properties::NON_VIRTUAL, + __void__userEvent__osg_Referenced_P1__double, + "Method for adapting user defined events with specified event time. ", + ""); + I_SimpleProperty(osgGA::GUIEventAdapter *, CurrentEventState, + __GUIEventAdapter_P1__getCurrentEventState, + __void__setCurrentEventState__GUIEventAdapter_P1); + I_SimpleProperty(osgGA::EventQueue::Events &, Events, + 0, + __void__setEvents__Events_R1); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + 0, + __void__setGraphicsContext__osg_GraphicsContext_P1); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(double, Time, + __double__getTime, + 0); + I_SimpleProperty(bool, UseFixedMouseInputRange, + __bool__getUseFixedMouseInputRange, + __void__setUseFixedMouseInputRange__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventAdapter >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgGA::GUIEventAdapter *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >) + diff --git a/src/osgWrappers/introspection/osgGA/EventVisitor.cpp b/src/osgWrappers/introspection/osgGA/EventVisitor.cpp new file mode 100644 index 000000000..c02e61684 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/EventVisitor.cpp @@ -0,0 +1,193 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventVisitor::EventList) + +BEGIN_OBJECT_REFLECTOR(osgGA::EventVisitor) + I_DeclaringFile("osgGA/EventVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____EventVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_ProtectedMethod1(void, handle_callbacks, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_callbacks__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(void, handle_callbacks_and_traverse, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_callbacks_and_traverse__osg_Node_R1, + "", + ""); + I_ProtectedMethod1(void, handle_geode_callbacks, IN, osg::Geode &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_geode_callbacks__osg_Geode_R1, + "", + ""); + I_ProtectedMethod1(void, traverseGeode, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__traverseGeode__osg_Geode_R1, + "", + ""); + I_SimpleProperty(osgGA::GUIActionAdapter *, ActionAdapter, + __osgGA_GUIActionAdapter_P1__getActionAdapter, + __void__setActionAdapter__osgGA_GUIActionAdapter_P1); + I_SimpleProperty(bool, EventHandled, + __bool__getEventHandled, + __void__setEventHandled__bool); + I_SimpleProperty(const osgGA::EventQueue::Events &, Events, + __C5_EventQueue_Events_R1__getEvents, + __void__setEvents__C5_EventQueue_Events_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/FlightManipulator.cpp b/src/osgWrappers/introspection/osgGA/FlightManipulator.cpp new file mode 100644 index 000000000..a2028e91d --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/FlightManipulator.cpp @@ -0,0 +1,187 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode) + I_DeclaringFile("osgGA/FlightManipulator"); + I_EnumLabel(osgGA::FlightManipulator::YAW_AUTOMATICALLY_WHEN_BANKED); + I_EnumLabel(osgGA::FlightManipulator::NO_AUTOMATIC_YAW); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) + I_DeclaringFile("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 &, 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_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. ", + ""); + 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, + "", + ""); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, lv, IN, const osg::Vec3 &, up, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePosition__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_SimpleProperty(double, Acceleration, + __double__getAcceleration, + __void__setAcceleration__double); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, ModelScale, + __double__getModelScale, + __void__setModelScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, Velocity, + __double__getVelocity, + __void__setVelocity__double); + I_SimpleProperty(osgGA::FlightManipulator::YawControlMode, YawControlMode, + 0, + __void__setYawControlMode__YawControlMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/GUIActionAdapter.cpp b/src/osgWrappers/introspection/osgGA/GUIActionAdapter.cpp new file mode 100644 index 000000000..1db958408 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/GUIActionAdapter.cpp @@ -0,0 +1,50 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) + I_DeclaringFile("osgGA/GUIActionAdapter"); + I_Constructor0(____GUIActionAdapter, + "", + ""); + I_Method0(osg::View *, asView, + Properties::VIRTUAL, + __osg_View_P1__asView, + "Provide a mechanism for getting the osg::View associated with this GUIActionAdapter. ", + "One would use this to case view to osgViewer::View(er) if supported by the subclass. "); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/GUIEventAdapter.cpp b/src/osgWrappers/introspection/osgGA/GUIEventAdapter.cpp new file mode 100644 index 000000000..1d602e43e --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/GUIEventAdapter.cpp @@ -0,0 +1,615 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseButtonMask) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON); + I_EnumLabel(osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON); + I_EnumLabel(osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::EventType) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::NONE); + I_EnumLabel(osgGA::GUIEventAdapter::PUSH); + I_EnumLabel(osgGA::GUIEventAdapter::RELEASE); + I_EnumLabel(osgGA::GUIEventAdapter::DOUBLECLICK); + I_EnumLabel(osgGA::GUIEventAdapter::DRAG); + I_EnumLabel(osgGA::GUIEventAdapter::MOVE); + I_EnumLabel(osgGA::GUIEventAdapter::KEYDOWN); + I_EnumLabel(osgGA::GUIEventAdapter::KEYUP); + I_EnumLabel(osgGA::GUIEventAdapter::FRAME); + I_EnumLabel(osgGA::GUIEventAdapter::RESIZE); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PRESSURE); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_ORIENTATION); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_ENTER); + I_EnumLabel(osgGA::GUIEventAdapter::PEN_PROXIMITY_LEAVE); + I_EnumLabel(osgGA::GUIEventAdapter::CLOSE_WINDOW); + I_EnumLabel(osgGA::GUIEventAdapter::QUIT_APPLICATION); + I_EnumLabel(osgGA::GUIEventAdapter::USER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::KeySymbol) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Space); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_BackSpace); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Tab); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Linefeed); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Clear); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Return); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Pause); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Scroll_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Sys_Req); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Escape); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Delete); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Home); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Left); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Right); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Prior); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Next); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_End); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Begin); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Select); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Print); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Execute); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Insert); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Undo); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Redo); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Menu); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Find); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Cancel); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Help); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Break); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Mode_switch); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Script_switch); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Num_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Space); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Tab); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Enter); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Home); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Left); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Right); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Prior); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Up); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Next); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Down); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_End); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Begin); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Insert); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Delete); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Equal); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Multiply); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Add); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Separator); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Subtract); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Decimal); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Divide); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_0); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_5); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_6); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_7); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_8); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_KP_9); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F1); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F2); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F3); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F4); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F5); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F6); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F7); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F8); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F9); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F10); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F11); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F12); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F13); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F14); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F15); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F16); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F17); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F18); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F19); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F20); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F21); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F22); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F23); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F24); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F25); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F26); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F27); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F28); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F29); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F30); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F31); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F32); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F33); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F34); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_F35); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Control_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Caps_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_Lock); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Super_R); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_L); + I_EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_R); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ModKeyMask) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_META); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_META); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SUPER); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SUPER); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_HYPER); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_HYPER); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_NUM_LOCK); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_CTRL); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_SHIFT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_ALT); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_META); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_SUPER); + I_EnumLabel(osgGA::GUIEventAdapter::MODKEY_HYPER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseYOrientation) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS); + I_EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ScrollingMotion) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_NONE); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_LEFT); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_RIGHT); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_UP); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_DOWN); + I_EnumLabel(osgGA::GUIEventAdapter::SCROLL_2D); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::TabletPointerType) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_EnumLabel(osgGA::GUIEventAdapter::UNKNOWN); + I_EnumLabel(osgGA::GUIEventAdapter::PEN); + I_EnumLabel(osgGA::GUIEventAdapter::PUCK); + I_EnumLabel(osgGA::GUIEventAdapter::ERASER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) + I_DeclaringFile("osgGA/GUIEventAdapter"); + I_BaseType(osg::Object); + I_Constructor0(____GUIEventAdapter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgGA::GUIEventAdapter &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____GUIEventAdapter__C5_GUIEventAdapter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, + "set the event type. ", + ""); + I_Method0(osgGA::GUIEventAdapter::EventType, getEventType, + Properties::VIRTUAL, + __EventType__getEventType, + "get the event type. ", + ""); + 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_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + 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 mouse minimum y. ", + ""); + I_Method0(float, getYmax, + Properties::NON_VIRTUAL, + __float__getYmax, + "get mouse maximum 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_Method0(float, getXnormalized, + Properties::NON_VIRTUAL, + __float__getXnormalized, + "return the current mouse x value normalized 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 current mouse y value normalized 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, + "set mouse-Y orientation (mouse-Y increases upwards or downwards). ", + ""); + I_Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation, + Properties::NON_VIRTUAL, + __MouseYOrientation__getMouseYOrientation, + "get mouse-Y orientation (mouse-Y increases upwards or downwards). ", + ""); + 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, + "set modifier key mask. ", + ""); + I_Method0(unsigned int, getModKeyMask, + Properties::NON_VIRTUAL, + __unsigned_int__getModKeyMask, + "get modifier key mask. ", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, motion, + Properties::NON_VIRTUAL, + __void__setScrollingMotion__ScrollingMotion, + "set scrolling motion (for EventType::SCROLL). ", + ""); + I_Method0(osgGA::GUIEventAdapter::ScrollingMotion, getScrollingMotion, + Properties::NON_VIRTUAL, + __ScrollingMotion__getScrollingMotion, + "get scrolling motion (for EventType::SCROLL). ", + ""); + I_Method2(void, setScrollingMotionDelta, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __void__setScrollingMotionDelta__float__float, + "set the scrolling delta to x,y and the scrolling motion to SCROLL_2D. ", + ""); + 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_Method1(void, setPenPressure, IN, float, pressure, + Properties::NON_VIRTUAL, + __void__setPenPressure__float, + "set the tablet pen pressure (range 0..1). ", + ""); + I_Method0(float, getPenPressure, + Properties::NON_VIRTUAL, + __float__getPenPressure, + "get the tablet pen pressure (range 0..1). ", + ""); + I_Method1(void, setPenTiltX, IN, float, tiltX, + Properties::NON_VIRTUAL, + __void__setPenTiltX__float, + "set the tablet pen tiltX in degrees. ", + ""); + I_Method0(float, getPenTiltX, + Properties::NON_VIRTUAL, + __float__getPenTiltX, + "get the tablet pen tiltX in degrees. ", + ""); + I_Method1(void, setPenTiltY, IN, float, tiltY, + Properties::NON_VIRTUAL, + __void__setPenTiltY__float, + "set the tablet pen tiltY in degrees. ", + ""); + I_Method0(float, getPenTiltY, + Properties::NON_VIRTUAL, + __float__getPenTiltY, + "get the tablet pen tiltY in degrees. ", + ""); + I_Method1(void, setPenRotation, IN, float, rotation, + Properties::NON_VIRTUAL, + __void__setPenRotation__float, + "set the tablet pen rotation around the Z-axis in degrees. ", + ""); + I_Method0(float, getPenRotation, + Properties::NON_VIRTUAL, + __float__getPenRotation, + "get the tablet pen rotation around the Z-axis in degrees. ", + ""); + I_Method1(void, setTabletPointerType, IN, osgGA::GUIEventAdapter::TabletPointerType, pt, + Properties::NON_VIRTUAL, + __void__setTabletPointerType__TabletPointerType, + "set the tablet pointer type. ", + ""); + I_Method0(osgGA::GUIEventAdapter::TabletPointerType, getTabletPointerType, + Properties::NON_VIRTUAL, + __TabletPointerType__getTabletPointerType, + "get the tablet pointer type. ", + ""); + I_Method0(const osg::Matrix, getPenOrientation, + Properties::NON_VIRTUAL, + __C5_osg_Matrix__getPenOrientation, + "set the orientation from a tablet input device as a matrix. ", + ""); + I_StaticMethod0(osg::ref_ptr< osgGA::GUIEventAdapter > &, getAccumulatedEventState, + __osg_ref_ptrT1_GUIEventAdapter__R1__getAccumulatedEventState_S, + "Get the accumulated event state singleton. ", + "Typically all EventQueue will share this single GUIEventAdapter object for tracking the mouse position, keyboard and mouse masks. "); + I_SimpleProperty(int, Button, + __int__getButton, + __void__setButton__int); + I_SimpleProperty(unsigned int, ButtonMask, + __unsigned_int__getButtonMask, + __void__setButtonMask__unsigned_int); + I_SimpleProperty(osgGA::GUIEventAdapter::EventType, EventType, + __EventType__getEventType, + __void__setEventType__EventType); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + 0, + __void__setGraphicsContext__osg_GraphicsContext_P1); + I_SimpleProperty(bool, Handled, + __bool__getHandled, + __void__setHandled__bool); + I_SimpleProperty(int, Key, + __int__getKey, + __void__setKey__int); + I_SimpleProperty(unsigned int, ModKeyMask, + __unsigned_int__getModKeyMask, + __void__setModKeyMask__unsigned_int); + I_SimpleProperty(osgGA::GUIEventAdapter::MouseYOrientation, MouseYOrientation, + __MouseYOrientation__getMouseYOrientation, + __void__setMouseYOrientation__MouseYOrientation); + I_SimpleProperty(const osg::Matrix, PenOrientation, + __C5_osg_Matrix__getPenOrientation, + 0); + I_SimpleProperty(float, PenPressure, + __float__getPenPressure, + __void__setPenPressure__float); + I_SimpleProperty(float, PenRotation, + __float__getPenRotation, + __void__setPenRotation__float); + I_SimpleProperty(float, PenTiltX, + __float__getPenTiltX, + __void__setPenTiltX__float); + I_SimpleProperty(float, PenTiltY, + __float__getPenTiltY, + __void__setPenTiltY__float); + I_SimpleProperty(float, ScrollingDeltaX, + __float__getScrollingDeltaX, + 0); + I_SimpleProperty(float, ScrollingDeltaY, + __float__getScrollingDeltaY, + 0); + I_SimpleProperty(osgGA::GUIEventAdapter::ScrollingMotion, ScrollingMotion, + __ScrollingMotion__getScrollingMotion, + __void__setScrollingMotion__ScrollingMotion); + I_SimpleProperty(osgGA::GUIEventAdapter::TabletPointerType, TabletPointerType, + __TabletPointerType__getTabletPointerType, + __void__setTabletPointerType__TabletPointerType); + I_SimpleProperty(double, Time, + __double__getTime, + __void__setTime__double); + I_SimpleProperty(int, WindowHeight, + __int__getWindowHeight, + 0); + I_SimpleProperty(int, WindowWidth, + __int__getWindowWidth, + 0); + I_SimpleProperty(int, WindowX, + __int__getWindowX, + 0); + I_SimpleProperty(int, WindowY, + __int__getWindowY, + 0); + I_SimpleProperty(float, X, + __float__getX, + __void__setX__float); + I_SimpleProperty(float, Xmax, + __float__getXmax, + 0); + I_SimpleProperty(float, Xmin, + __float__getXmin, + 0); + I_SimpleProperty(float, Xnormalized, + __float__getXnormalized, + 0); + I_SimpleProperty(float, Y, + __float__getY, + __void__setY__float); + I_SimpleProperty(float, Ymax, + __float__getYmax, + 0); + I_SimpleProperty(float, Ymin, + __float__getYmin, + 0); + I_SimpleProperty(float, Ynormalized, + __float__getYnormalized, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/GUIEventHandler.cpp b/src/osgWrappers/introspection/osgGA/GUIEventHandler.cpp new file mode 100644 index 000000000..41266c7a9 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/GUIEventHandler.cpp @@ -0,0 +1,123 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandler) + I_DeclaringFile("osgGA/GUIEventHandler"); + I_BaseType(osg::NodeCallback); + I_BaseType(osg::Drawable::EventCallback); + I_Constructor0(____GUIEventHandler, + "", + ""); + I_Constructor2(IN, const osgGA::GUIEventHandler &, eh, IN, const osg::CopyOp &, x, + ____GUIEventHandler__C5_GUIEventHandler_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable, + Properties::VIRTUAL, + __void__event__osg_NodeVisitor_P1__osg_Drawable_P1, + "Event traversal drawable callback method. ", + ""); + I_Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method4(bool, handleWithCheckAgainstIgnoreHandledEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, object, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __bool__handleWithCheckAgainstIgnoreHandledEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Convenience method that only passes on to the handle(,,,) method events that either haven't been handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. ", + "Note, this method is an inline method, and not appropriate for users to override, override the handle(,,,) method instead. "); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method2(bool, handleWithCheckAgainstIgnoreHandledEventsMask, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + __bool__handleWithCheckAgainstIgnoreHandledEventsMask__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Convenience method that only passes on to the handle(,) method events that either haven't been handled yet, or have been handled but haven't be set to be ignored by the IgnoreHandledEventsMask. ", + "Note, this method is an inline method, and not appropriate for users to override, override the handle(,) method instead. "); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method1(void, setIgnoreHandledEventsMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setIgnoreHandledEventsMask__unsigned_int, + "Set a mask of osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ", + ""); + I_Method0(unsigned int, getIgnoreHandledEventsMask, + Properties::NON_VIRTUAL, + __unsigned_int__getIgnoreHandledEventsMask, + "Get the event mask of the osgGA::GUIEeventAdapter::Event to be ignored if marked as handled. ", + ""); + I_SimpleProperty(unsigned int, IgnoreHandledEventsMask, + __unsigned_int__getIgnoreHandledEventsMask, + __void__setIgnoreHandledEventsMask__unsigned_int); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandlerVisitor) + I_DeclaringFile("osgGA/GUIEventHandler"); + I_Constructor0(____GUIEventHandlerVisitor, + "", + ""); + I_Method1(void, visit, IN, osgGA::GUIEventHandler &, x, + Properties::NON_VIRTUAL, + __void__visit__GUIEventHandler_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/introspection/osgGA/KeySwitchMatrixManipulator.cpp new file mode 100644 index 000000000..e2a75612f --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/KeySwitchMatrixManipulator.cpp @@ -0,0 +1,290 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipulator > >, osgGA::KeySwitchMatrixManipulator::NamedManipulator) + +TYPE_NAME_ALIAS(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >, osgGA::KeySwitchMatrixManipulator::KeyManipMap) + +BEGIN_OBJECT_REFLECTOR(osgGA::KeySwitchMatrixManipulator) + I_DeclaringFile("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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo convergence. "); + I_Method1(void, setDistance, IN, double, distance, + Properties::NON_VIRTUAL, + __void__setDistance__double, + "Set the distance property. ", + ""); + I_Method0(double, getDistance, + Properties::VIRTUAL, + __double__getDistance, + "Get the distance property. ", + ""); + 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_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 &, 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_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. ", + ""); + 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_SimpleProperty(bool, AutoComputeHomePosition, + 0, + __void__setAutoComputeHomePosition__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback, + 0, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1); + I_SimpleProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator, + __MatrixManipulator_P1__getCurrentMatrixManipulator, + 0); + I_SimpleProperty(double, Distance, + __double__getDistance, + __void__setDistance__double); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap, + __KeyManipMap_R1__getKeyManipMap, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(float, MinimumDistance, + 0, + __void__setMinimumDistance__float); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgGA::MatrixManipulator *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< int COMMA osgGA::KeySwitchMatrixManipulator::NamedManipulator >) + +STD_PAIR_REFLECTOR(std::pair< std::string COMMA osg::ref_ptr< osgGA::MatrixManipulator > >) + diff --git a/src/osgWrappers/introspection/osgGA/MatrixManipulator.cpp b/src/osgWrappers/introspection/osgGA/MatrixManipulator.cpp new file mode 100644 index 000000000..a910149a9 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/MatrixManipulator.cpp @@ -0,0 +1,246 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) + I_DeclaringFile("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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo convergence. "); + I_Method1(void, setDistance, IN, double, x, + Properties::NON_VIRTUAL, + __void__setDistance__double, + "Set the distance parameter (used by TrackballManipulator etc. ", + ") "); + I_Method0(double, getDistance, + Properties::VIRTUAL, + __double__getDistance, + "Get the distance parameter. ", + ""); + 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 manually 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. ", + ""); + I_ProtectedConstructor0(____MatrixManipulator, + "", + ""); + I_SimpleProperty(bool, AutoComputeHomePosition, + __bool__getAutoComputeHomePosition, + __void__setAutoComputeHomePosition__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback, + __CoordinateFrameCallback_P1__getCoordinateFrameCallback, + __void__setCoordinateFrameCallback__CoordinateFrameCallback_P1); + I_SimpleProperty(double, Distance, + __double__getDistance, + __void__setDistance__double); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(unsigned int, IntersectTraversalMask, + __unsigned_int__getIntersectTraversalMask, + __void__setIntersectTraversalMask__unsigned_int); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(float, MinimumDistance, + __float__getMinimumDistance, + __void__setMinimumDistance__float); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback) + I_DeclaringFile("osgGA/MatrixManipulator"); + I_BaseType(osg::Referenced); + I_Constructor0(____CoordinateFrameCallback, + "", + ""); + I_Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position, + Properties::PURE_VIRTUAL, + __osg_CoordinateFrame__getCoordinateFrame__C5_osg_Vec3d_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/introspection/osgGA/NodeTrackerManipulator.cpp new file mode 100644 index 000000000..ccb338089 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/NodeTrackerManipulator.cpp @@ -0,0 +1,287 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::TrackerMode) + I_DeclaringFile("osgGA/NodeTrackerManipulator"); + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER); + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM); + I_EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_ROTATION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) + I_DeclaringFile("osgGA/NodeTrackerManipulator"); + I_EnumLabel(osgGA::NodeTrackerManipulator::TRACKBALL); + I_EnumLabel(osgGA::NodeTrackerManipulator::ELEVATION_AZIM); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::observer_ptr< osg::Node > >, osgGA::NodeTrackerManipulator::ObserverNodePath) + +BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) + I_DeclaringFile("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::ObserverNodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setTrackNodePath__C5_ObserverNodePath_R1, + "", + ""); + I_Method0(osgGA::NodeTrackerManipulator::ObserverNodePath &, getTrackNodePath, + Properties::NON_VIRTUAL, + __ObserverNodePath_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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo 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. ", + ""); + I_ProtectedMethod0(osg::NodePath, getNodePath, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_NodePath__getNodePath, + "", + ""); + I_ProtectedMethod0(bool, validateNodePath, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__validateNodePath, + "", + ""); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod1(void, computeNodeWorldToLocal, IN, osg::Matrixd &, worldToLocal, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeNodeWorldToLocal__osg_Matrixd_R1, + "", + ""); + I_ProtectedMethod1(void, computeNodeLocalToWorld, IN, osg::Matrixd &, localToWorld, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeNodeLocalToWorld__osg_Matrixd_R1, + "", + ""); + I_ProtectedMethod2(void, computeNodeCenterAndRotation, IN, osg::Vec3d &, center, IN, osg::Quat &, rotation, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeNodeCenterAndRotation__osg_Vec3d_R1__osg_Quat_R1, + "", + ""); + I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, lv, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_ProtectedMethod6(void, trackball, IN, osg::Vec3 &, axis, IN, double &, angle, IN, double, p1x, IN, double, p1y, IN, double, p2x, IN, double, p2y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__trackball__osg_Vec3_R1__double_R1__double__double__double__double, + "", + ""); + I_ProtectedMethod3(double, tb_project_to_sphere, IN, double, r, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __double__tb_project_to_sphere__double__double__double, + "", + ""); + I_ProtectedMethod0(bool, isMouseMoving, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__isMouseMoving, + "Check the speed at which the mouse is moving. ", + "If speed is below a threshold then return false, otherwise return true. "); + I_ProtectedMethod0(void, clampOrientation, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__clampOrientation, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::NodeTrackerManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); + I_SimpleProperty(osg::Node *, TrackNode, + __osg_Node_P1__getTrackNode, + __void__setTrackNode__osg_Node_P1); + I_SimpleProperty(osgGA::NodeTrackerManipulator::ObserverNodePath &, TrackNodePath, + __ObserverNodePath_R1__getTrackNodePath, + 0); + I_SimpleProperty(osgGA::NodeTrackerManipulator::TrackerMode, TrackerMode, + __TrackerMode__getTrackerMode, + __void__setTrackerMode__TrackerMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/SphericalManipulator.cpp b/src/osgWrappers/introspection/osgGA/SphericalManipulator.cpp new file mode 100644 index 000000000..758026a6e --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/SphericalManipulator.cpp @@ -0,0 +1,296 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgGA::SphericalManipulator::RotationMode) + I_DeclaringFile("osgGA/SphericalManipulator"); + I_EnumLabel(osgGA::SphericalManipulator::ELEVATION_HEADING); + I_EnumLabel(osgGA::SphericalManipulator::HEADING); + I_EnumLabel(osgGA::SphericalManipulator::ELEVATION); + I_EnumLabel(osgGA::SphericalManipulator::MAP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::SphericalManipulator) + I_DeclaringFile("osgGA/SphericalManipulator"); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____SphericalManipulator, + "", + ""); + 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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo 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_osgGA_GUIEventAdapter_R1__osgGA_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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method1(void, zoomOn, IN, const osg::BoundingSphere &, bound, + Properties::NON_VIRTUAL, + __void__zoomOn__C5_osg_BoundingSphere_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method0(void, computeHomePosition, + Properties::VIRTUAL, + __void__computeHomePosition, + "Compute the home position. ", + ""); + I_Method4(void, computeViewPosition, IN, const osg::BoundingSphere &, bound, IN, double &, scale, IN, double &, distance, IN, osg::Vec3d &, center, + Properties::NON_VIRTUAL, + __void__computeViewPosition__C5_osg_BoundingSphere_R1__double_R1__double_R1__osg_Vec3d_R1, + "", + ""); + I_Method1(void, setCenter, IN, const osg::Vec3d &, center, + Properties::NON_VIRTUAL, + __void__setCenter__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getCenter, + "", + ""); + I_Method1(bool, setDistance, IN, double, x, + Properties::NON_VIRTUAL, + __bool__setDistance__double, + "Set the distance parameter (used by TrackballManipulator etc. ", + ") "); + I_Method0(double, getDistance, + Properties::VIRTUAL, + __double__getDistance, + "Get the distance parameter. ", + ""); + I_Method0(double, getHomeDistance, + Properties::NON_VIRTUAL, + __double__getHomeDistance, + "", + ""); + I_Method1(void, setHeading, IN, double, azimuth, + Properties::NON_VIRTUAL, + __void__setHeading__double, + "", + ""); + I_Method0(double, getHeading, + Properties::NON_VIRTUAL, + __double__getHeading, + "", + ""); + I_Method1(void, setElevation, IN, double, elevation, + Properties::NON_VIRTUAL, + __void__setElevation__double, + "", + ""); + I_Method0(double, getElevtion, + Properties::NON_VIRTUAL, + __double__getElevtion, + "", + ""); + 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, 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_Method1(void, setScroolWheelZoomDelta, IN, double, zoomDelta, + Properties::NON_VIRTUAL, + __void__setScroolWheelZoomDelta__double, + "set the mouse scroll wheel zoom delta. ", + "Range -1.0 to +1.0, -ve value inverts wheel direction and zero switches off scroll wheel. "); + I_Method0(double, getScroolWheelZoomDelta, + Properties::NON_VIRTUAL, + __double__getScroolWheelZoomDelta, + "get the mouse scroll wheel zoom delta. ", + ""); + 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(osgGA::SphericalManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::SphericalManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(bool, getAllowThrow, + Properties::NON_VIRTUAL, + __bool__getAllowThrow, + "Returns true if the camera can be thrown, false otherwise. ", + "This defaults to true. "); + I_Method1(void, setAllowThrow, IN, bool, allowThrow, + Properties::NON_VIRTUAL, + __void__setAllowThrow__bool, + "Set the 'allow throw' flag. ", + "Releasing the mouse button while moving the camera results in a throw. "); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_osgGA_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_ProtectedMethod0(bool, isMouseMoving, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__isMouseMoving, + "Check the speed at which the mouse is moving. ", + "If speed is below a threshold then return false, otherwise return true. "); + I_SimpleProperty(bool, AllowThrow, + __bool__getAllowThrow, + __void__setAllowThrow__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Vec3d &, Center, + __C5_osg_Vec3d_R1__getCenter, + __void__setCenter__C5_osg_Vec3d_R1); + I_SimpleProperty(double, Distance, + __double__getDistance, + __bool__setDistance__double); + I_SimpleProperty(double, Elevation, + 0, + __void__setElevation__double); + I_SimpleProperty(double, Elevtion, + __double__getElevtion, + 0); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(double, Heading, + __double__getHeading, + __void__setHeading__double); + I_SimpleProperty(double, HomeDistance, + __double__getHomeDistance, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, MinimumZoomScale, + __double__getMinimumZoomScale, + __void__setMinimumZoomScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::SphericalManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); + I_SimpleProperty(double, ScroolWheelZoomDelta, + __double__getScroolWheelZoomDelta, + __void__setScroolWheelZoomDelta__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/StateSetManipulator.cpp b/src/osgWrappers/introspection/osgGA/StateSetManipulator.cpp new file mode 100644 index 000000000..a87a7435c --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/StateSetManipulator.cpp @@ -0,0 +1,204 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::StateSetManipulator) + I_DeclaringFile("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 StateSet to the manipulator to be used for specifying view. ", + ""); + I_Method0(osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __osg_StateSet_P1__getStateSet, + "get the attached a StateSet. ", + ""); + I_Method0(const osg::StateSet *, getStateSet, + Properties::VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "get the attached a StateSet. ", + ""); + 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, + "", + ""); + I_Method1(void, setKeyEventToggleBackfaceCulling, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleBackfaceCulling__int, + "", + ""); + I_Method0(int, getKeyEventToggleBackfaceCulling, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleBackfaceCulling, + "", + ""); + I_Method1(void, setKeyEventToggleLighting, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleLighting__int, + "", + ""); + I_Method0(int, getKeyEventToggleLighting, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleLighting, + "", + ""); + I_Method1(void, setKeyEventToggleTexturing, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleTexturing__int, + "", + ""); + I_Method0(int, getKeyEventToggleTexturing, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleTexturing, + "", + ""); + I_Method1(void, setKeyEventCyclePolygonMode, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventCyclePolygonMode__int, + "", + ""); + I_Method0(int, getKeyEventCyclePolygonMode, + Properties::NON_VIRTUAL, + __int__getKeyEventCyclePolygonMode, + "", + ""); + I_ProtectedMethod0(void, clone, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__clone, + "", + ""); + I_ProtectedMethod0(osg::PolygonMode *, getOrCreatePolygonMode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_PolygonMode_P1__getOrCreatePolygonMode, + "", + ""); + I_SimpleProperty(bool, BackfaceEnabled, + __bool__getBackfaceEnabled, + __void__setBackfaceEnabled__bool); + I_SimpleProperty(int, KeyEventCyclePolygonMode, + __int__getKeyEventCyclePolygonMode, + __void__setKeyEventCyclePolygonMode__int); + I_SimpleProperty(int, KeyEventToggleBackfaceCulling, + __int__getKeyEventToggleBackfaceCulling, + __void__setKeyEventToggleBackfaceCulling__int); + I_SimpleProperty(int, KeyEventToggleLighting, + __int__getKeyEventToggleLighting, + __void__setKeyEventToggleLighting__int); + I_SimpleProperty(int, KeyEventToggleTexturing, + __int__getKeyEventToggleTexturing, + __void__setKeyEventToggleTexturing__int); + I_SimpleProperty(bool, LightingEnabled, + __bool__getLightingEnabled, + __void__setLightingEnabled__bool); + I_SimpleProperty(unsigned int, MaximumNumOfTextureUnits, + __unsigned_int__getMaximumNumOfTextureUnits, + __void__setMaximumNumOfTextureUnits__unsigned_int); + I_SimpleProperty(osg::PolygonMode::Mode, PolygonMode, + __osg_PolygonMode_Mode__getPolygonMode, + __void__setPolygonMode__osg_PolygonMode_Mode); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, TextureEnabled, + __bool__getTextureEnabled, + __void__setTextureEnabled__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/TerrainManipulator.cpp b/src/osgWrappers/introspection/osgGA/TerrainManipulator.cpp new file mode 100644 index 000000000..f226ab31b --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/TerrainManipulator.cpp @@ -0,0 +1,213 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgGA::TerrainManipulator::RotationMode) + I_DeclaringFile("osgGA/TerrainManipulator"); + I_EnumLabel(osgGA::TerrainManipulator::ELEVATION_HEADING_ROLL); + I_EnumLabel(osgGA::TerrainManipulator::ELEVATION_HEADING); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) + I_DeclaringFile("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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo convergence. "); + I_Method1(void, setDistance, IN, double, distance, + Properties::NON_VIRTUAL, + __void__setDistance__double, + "Set the distance of the trackball. ", + ""); + I_Method0(double, getDistance, + Properties::VIRTUAL, + __double__getDistance, + "Get the distance of the trackball. ", + ""); + 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. ", + ""); + I_ProtectedMethod3(bool, intersect, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, IN, osg::Vec3d &, intersection, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__intersect__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3d &, eye, IN, const osg::Vec3d &, lv, IN, const osg::Vec3d &, up, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePosition__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_ProtectedMethod6(void, trackball, IN, osg::Vec3 &, axis, IN, double &, angle, IN, double, p1x, IN, double, p1y, IN, double, p2x, IN, double, p2y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__trackball__osg_Vec3_R1__double_R1__double__double__double__double, + "", + ""); + I_ProtectedMethod3(double, tb_project_to_sphere, IN, double, r, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __double__tb_project_to_sphere__double__double__double, + "", + ""); + I_ProtectedMethod0(bool, isMouseMoving, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__isMouseMoving, + "Check the speed at which the mouse is moving. ", + "If speed is below a threshold then return false, otherwise return true. "); + I_ProtectedMethod0(void, clampOrientation, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__clampOrientation, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(double, Distance, + __double__getDistance, + __void__setDistance__double); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::TerrainManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/TrackballManipulator.cpp b/src/osgWrappers/introspection/osgGA/TrackballManipulator.cpp new file mode 100644 index 000000000..54a91dd97 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/TrackballManipulator.cpp @@ -0,0 +1,267 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::TrackballManipulator) + I_DeclaringFile("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 stereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up stereo 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, setScroolWheelZoomDelta, IN, double, zoomDelta, + Properties::NON_VIRTUAL, + __void__setScroolWheelZoomDelta__double, + "set the mouse scroll wheel zoom delta. ", + "Range -1.0 to +1.0, -ve value inverts wheel direction and zero switches off scroll wheel. "); + I_Method0(double, getScroolWheelZoomDelta, + Properties::NON_VIRTUAL, + __double__getScroolWheelZoomDelta, + "get the mouse scroll wheel zoom delta. ", + ""); + 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::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. ", + ""); + I_Method1(void, setAllowThrow, IN, bool, allowThrow, + Properties::NON_VIRTUAL, + __void__setAllowThrow__bool, + "Set the 'allow throw' flag. ", + "Releasing the mouse button while moving the camera results in a throw. "); + I_Method0(bool, getAllowThrow, + Properties::NON_VIRTUAL, + __bool__getAllowThrow, + "Returns true if the camera can be thrown, false otherwise. ", + "This defaults to true. "); + I_ProtectedMethod0(void, flushMouseEventStack, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__flushMouseEventStack, + "Reset the internal GUIEvent stack. ", + ""); + I_ProtectedMethod1(void, addMouseEvent, IN, const osgGA::GUIEventAdapter &, ea, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMouseEvent__C5_GUIEventAdapter_R1, + "Add the current mouse GUIEvent to internal stack. ", + ""); + I_ProtectedMethod3(void, computePosition, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, lv, IN, const osg::Vec3 &, up, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePosition__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_ProtectedMethod0(bool, calcMovement, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__calcMovement, + "For the give mouse movement calculate the movement of the camera. ", + "Return true is camera has moved and a redraw is required. "); + I_ProtectedMethod6(void, trackball, IN, osg::Vec3 &, axis, IN, float &, angle, IN, float, p1x, IN, float, p1y, IN, float, p2x, IN, float, p2y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__trackball__osg_Vec3_R1__float_R1__float__float__float__float, + "", + ""); + I_ProtectedMethod3(float, tb_project_to_sphere, IN, float, r, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __float__tb_project_to_sphere__float__float__float, + "", + ""); + I_ProtectedMethod0(bool, isMouseMoving, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__isMouseMoving, + "Check the speed at which the mouse is moving. ", + "If speed is below a threshold then return false, otherwise return true. "); + I_SimpleProperty(bool, AllowThrow, + __bool__getAllowThrow, + __void__setAllowThrow__bool); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Vec3d &, Center, + __C5_osg_Vec3d_R1__getCenter, + __void__setCenter__C5_osg_Vec3d_R1); + I_SimpleProperty(double, Distance, + __double__getDistance, + __void__setDistance__double); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, MinimumZoomScale, + __double__getMinimumZoomScale, + __void__setMinimumZoomScale__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(double, ScroolWheelZoomDelta, + __double__getScroolWheelZoomDelta, + __void__setScroolWheelZoomDelta__double); + I_SimpleProperty(float, TrackballSize, + __float__getTrackballSize, + __void__setTrackballSize__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgGA/UFOManipulator.cpp b/src/osgWrappers/introspection/osgGA/UFOManipulator.cpp new file mode 100644 index 000000000..cf47729e1 --- /dev/null +++ b/src/osgWrappers/introspection/osgGA/UFOManipulator.cpp @@ -0,0 +1,227 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgGA::UFOManipulator) + I_DeclaringFile("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 inverse 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, + "", + ""); + I_ProtectedMethod3(bool, intersect, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, IN, osg::Vec3d &, intersection, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__intersect__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_ProtectedMethod0(void, _stop, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___stop, + "", + ""); + I_ProtectedMethod2(void, _keyDown, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___keyDown__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_ProtectedMethod2(void, _keyUp, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___keyUp__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_ProtectedMethod2(void, _frame, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___frame__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_ProtectedMethod0(void, _adjustPosition, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___adjustPosition, + "", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(double, ForwardSpeed, + __double__getForwardSpeed, + __void__setForwardSpeed__double); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(double, MinDistance, + __double__getMinDistance, + __void__setMinDistance__double); + I_SimpleProperty(double, MinHeight, + __double__getMinHeight, + __void__setMinHeight__double); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(double, RotationSpeed, + __double__getRotationSpeed, + __void__setRotationSpeed__double); + I_SimpleProperty(double, SideSpeed, + __double__getSideSpeed, + __void__setSideSpeed__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/AntiSquish.cpp b/src/osgWrappers/introspection/osgManipulator/AntiSquish.cpp new file mode 100644 index 000000000..1608311cb --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/AntiSquish.cpp @@ -0,0 +1,93 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::AntiSquish) + I_DeclaringFile("osgManipulator/AntiSquish"); + I_BaseType(osg::MatrixTransform); + I_Constructor0(____AntiSquish, + "", + ""); + I_Constructor1(IN, const osg::Vec3d &, pivot, + Properties::NON_EXPLICIT, + ____AntiSquish__C5_osg_Vec3d_R1, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, pivot, IN, const osg::Vec3d &, position, + ____AntiSquish__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgManipulator::AntiSquish &, pat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AntiSquish__C5_AntiSquish_R1__C5_osg_CopyOp_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_Method1(void, setPivot, IN, const osg::Vec3d &, pvt, + Properties::NON_VIRTUAL, + __void__setPivot__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPivot, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getPivot, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3d &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_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, + "", + ""); + I_SimpleProperty(const osg::Vec3d &, Pivot, + __C5_osg_Vec3d_R1__getPivot, + __void__setPivot__C5_osg_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Position, + __C5_osg_Vec3d_R1__getPosition, + __void__setPosition__C5_osg_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Command.cpp b/src/osgWrappers/introspection/osgManipulator/Command.cpp new file mode 100644 index 000000000..d6ca64ff1 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Command.cpp @@ -0,0 +1,443 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgManipulator::MotionCommand::Stage) + I_DeclaringFile("osgManipulator/Command"); + I_EnumLabel(osgManipulator::MotionCommand::NONE); + I_EnumLabel(osgManipulator::MotionCommand::START); + I_EnumLabel(osgManipulator::MotionCommand::MOVE); + I_EnumLabel(osgManipulator::MotionCommand::FINISH); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osg::Referenced); + I_Constructor0(____MotionCommand, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::PURE_VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::PURE_VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "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, + "", + ""); + I_SimpleProperty(const osg::Matrix &, LocalToWorld, + __C5_osg_Matrix_R1__getLocalToWorld, + 0); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(osgManipulator::MotionCommand::Stage, Stage, + __Stage__getStage, + 0); + I_SimpleProperty(const osg::Matrix &, WorldToLocal, + __C5_osg_Matrix_R1__getWorldToLocal, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Rotate3DCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____Rotate3DCommand, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + 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 object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____Scale1DCommand, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + I_Method1(void, setScale, IN, double, s, + Properties::NON_VIRTUAL, + __void__setScale__double, + "", + ""); + I_Method0(double, getScale, + Properties::NON_VIRTUAL, + __double__getScale, + "", + ""); + I_Method1(void, setScaleCenter, IN, double, center, + Properties::NON_VIRTUAL, + __void__setScaleCenter__double, + "", + ""); + I_Method0(double, getScaleCenter, + Properties::NON_VIRTUAL, + __double__getScaleCenter, + "", + ""); + I_Method1(void, setReferencePoint, IN, double, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__double, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(double, getReferencePoint, + Properties::NON_VIRTUAL, + __double__getReferencePoint, + "", + ""); + I_Method1(void, setMinScale, IN, double, min, + Properties::NON_VIRTUAL, + __void__setMinScale__double, + "", + ""); + I_Method0(double, getMinScale, + Properties::NON_VIRTUAL, + __double__getMinScale, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(double, MinScale, + __double__getMinScale, + __void__setMinScale__double); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(double, ReferencePoint, + __double__getReferencePoint, + __void__setReferencePoint__double); + I_SimpleProperty(double, Scale, + __double__getScale, + __void__setScale__double); + I_SimpleProperty(double, ScaleCenter, + __double__getScaleCenter, + __void__setScaleCenter__double); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____Scale2DCommand, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + I_Method1(void, setScale, IN, const osg::Vec2d &, s, + Properties::NON_VIRTUAL, + __void__setScale__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getScale, + "", + ""); + I_Method1(void, setScaleCenter, IN, const osg::Vec2d &, center, + Properties::NON_VIRTUAL, + __void__setScaleCenter__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getScaleCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getScaleCenter, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec2d &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec2d_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec2d &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getReferencePoint, + "", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec2d &, min, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getMinScale, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(const osg::Vec2d &, MinScale, + __C5_osg_Vec2d_R1__getMinScale, + __void__setMinScale__C5_osg_Vec2d_R1); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Vec2d &, ReferencePoint, + __C5_osg_Vec2d_R1__getReferencePoint, + __void__setReferencePoint__C5_osg_Vec2d_R1); + I_SimpleProperty(const osg::Vec2d &, Scale, + __C5_osg_Vec2d_R1__getScale, + __void__setScale__C5_osg_Vec2d_R1); + I_SimpleProperty(const osg::Vec2d &, ScaleCenter, + __C5_osg_Vec2d_R1__getScaleCenter, + __void__setScaleCenter__C5_osg_Vec2d_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleUniformCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____ScaleUniformCommand, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + I_Method1(void, setScale, IN, double, s, + Properties::NON_VIRTUAL, + __void__setScale__double, + "", + ""); + I_Method0(double, getScale, + Properties::NON_VIRTUAL, + __double__getScale, + "", + ""); + I_Method1(void, setScaleCenter, IN, const osg::Vec3d &, center, + Properties::NON_VIRTUAL, + __void__setScaleCenter__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getScaleCenter, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getScaleCenter, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(double, Scale, + __double__getScale, + __void__setScale__double); + I_SimpleProperty(const osg::Vec3d &, ScaleCenter, + __C5_osg_Vec3d_R1__getScaleCenter, + __void__setScaleCenter__C5_osg_Vec3d_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____TranslateInLineCommand, + "", + ""); + I_Constructor2(IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + ____TranslateInLineCommand__C5_osg_LineSegment_vec_type_R1__C5_osg_LineSegment_vec_type_R1, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + I_Method2(void, setLine, IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + Properties::NON_VIRTUAL, + __void__setLine__C5_osg_LineSegment_vec_type_R1__C5_osg_LineSegment_vec_type_R1, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, getLineStart, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_vec_type_R1__getLineStart, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, getLineEnd, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_vec_type_R1__getLineEnd, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getTranslation, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(const osg::LineSegment::vec_type &, LineEnd, + __C5_osg_LineSegment_vec_type_R1__getLineEnd, + 0); + I_SimpleProperty(const osg::LineSegment::vec_type &, LineStart, + __C5_osg_LineSegment_vec_type_R1__getLineStart, + 0); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Vec3d &, Translation, + __C5_osg_Vec3d_R1__getTranslation, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) + I_DeclaringFile("osgManipulator/Command"); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____TranslateInPlaneCommand, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____TranslateInPlaneCommand__C5_osg_Plane_R1, + "", + ""); + I_Method0(osgManipulator::MotionCommand *, createCommandInverse, + Properties::VIRTUAL, + __MotionCommand_P1__createCommandInverse, + "create a MotionCommand that is the inverse of this command, and if applied will undo this commands changes. ", + ""); + 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::Vec3d &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getTranslation, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec3d &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec3d_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec3d &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getReferencePoint, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "Gets the matrix for transforming the object being dragged. ", + "This matrix is in the command's coordinate systems. "); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Plane &, Plane, + __C5_osg_Plane_R1__getPlane, + __void__setPlane__C5_osg_Plane_R1); + I_SimpleProperty(const osg::Vec3d &, ReferencePoint, + __C5_osg_Vec3d_R1__getReferencePoint, + __void__setReferencePoint__C5_osg_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Translation, + __C5_osg_Vec3d_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/CommandManager.cpp b/src/osgWrappers/introspection/osgManipulator/CommandManager.cpp new file mode 100644 index 000000000..3f8e7001a --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/CommandManager.cpp @@ -0,0 +1,97 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgManipulator::Selection > >, osgManipulator::CommandManager::Selections) + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CommandManager) + I_DeclaringFile("osgManipulator/CommandManager"); + I_BaseType(osg::Referenced); + I_Constructor0(____CommandManager, + "", + ""); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Selection &, selection, + Properties::NON_VIRTUAL, + __bool__connect__Dragger_R1__Selection_R1, + "", + ""); + I_Method2(bool, connect, IN, osgManipulator::Dragger &, dragger, IN, osgManipulator::Constraint &, constraint, + Properties::NON_VIRTUAL, + __bool__connect__Dragger_R1__Constraint_R1, + "", + ""); + I_Method1(bool, disconnect, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, + __bool__disconnect__Dragger_R1, + "", + ""); + I_Method1(osgManipulator::CommandManager::Selections, getConnectedSelections, IN, osgManipulator::Dragger &, dragger, + Properties::NON_VIRTUAL, + __Selections__getConnectedSelections__Dragger_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Selection >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgManipulator::Selection *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgManipulator::Selection > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgManipulator::Selection *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgManipulator::Selection *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::Selection > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgManipulator::Selection *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgManipulator::Selection > >) + diff --git a/src/osgWrappers/introspection/osgManipulator/Constraint.cpp b/src/osgWrappers/introspection/osgManipulator/Constraint.cpp new file mode 100644 index 000000000..a8897ea25 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Constraint.cpp @@ -0,0 +1,155 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Constraint) + I_DeclaringFile("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, + "", + ""); + I_ProtectedConstructor1(IN, osg::Node &, refNode, + Properties::NON_EXPLICIT, + ____Constraint__osg_Node_R1, + "", + ""); + I_ProtectedMethod0(osg::Node &, getReferenceNode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Node_R1__getReferenceNode, + "", + ""); + I_ProtectedMethod0(const osg::Node &, getReferenceNode, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Node_R1__getReferenceNode, + "", + ""); + I_ProtectedMethod0(const osg::Matrix &, getLocalToWorld, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Matrix_R1__getLocalToWorld, + "", + ""); + I_ProtectedMethod0(const osg::Matrix &, getWorldToLocal, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Matrix_R1__getWorldToLocal, + "", + ""); + I_ProtectedMethod0(void, computeLocalToWorldAndWorldToLocal, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeLocalToWorldAndWorldToLocal, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::GridConstraint) + I_DeclaringFile("osgManipulator/Constraint"); + 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_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getOrigin, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getOrigin, + "", + ""); + I_Method1(void, setSpacing, IN, const osg::Vec3d &, spacing, + Properties::NON_VIRTUAL, + __void__setSpacing__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getSpacing, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getSpacing, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(const osg::Vec3d &, Origin, + __C5_osg_Vec3d_R1__getOrigin, + __void__setOrigin__C5_osg_Vec3d_R1); + I_SimpleProperty(const osg::Vec3d &, Spacing, + __C5_osg_Vec3d_R1__getSpacing, + __void__setSpacing__C5_osg_Vec3d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Dragger.cpp b/src/osgWrappers/introspection/osgManipulator/Dragger.cpp new file mode 100644 index 000000000..4d2c87e78 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Dragger.cpp @@ -0,0 +1,677 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Dragger > >, osgManipulator::CompositeDragger::DraggerList) + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CompositeDragger) + I_DeclaringFile("osgManipulator/Dragger"); + I_BaseType(osgManipulator::Dragger); + 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 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, 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::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, + "", + ""); + I_ProtectedConstructor0(____CompositeDragger, + "", + ""); + I_ProtectedConstructorWithDefaults2(IN, const osgManipulator::CompositeDragger &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeDragger__C5_CompositeDragger_R1__C5_osg_CopyOp_R1, + "", + ""); + I_SimpleProperty(osgManipulator::CompositeDragger *, Composite, + __CompositeDragger_P1__getComposite, + 0); + I_ArrayProperty(osgManipulator::Dragger *, Dragger, + __Dragger_P1__getDragger__unsigned_int, + 0, + __unsigned_int__getNumDraggers, + __bool__addDragger__Dragger_P1, + 0, + 0); + I_SimpleProperty(osgManipulator::Dragger *, ParentDragger, + 0, + __void__setParentDragger__Dragger_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::Constraint > >, osgManipulator::Dragger::Constraints) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgManipulator::DraggerCallback > >, osgManipulator::Dragger::DraggerCallbacks) + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Dragger) + I_DeclaringFile("osgManipulator/Dragger"); + I_BaseType(osg::MatrixTransform); + 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, 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_Method1(void, setHandleEvents, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setHandleEvents__bool, + "", + ""); + I_Method0(bool, getHandleEvents, + Properties::NON_VIRTUAL, + __bool__getHandleEvents, + "", + ""); + I_Method1(void, setActivationModKeyMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setActivationModKeyMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getActivationModKeyMask, + Properties::NON_VIRTUAL, + __unsigned_int__getActivationModKeyMask, + "", + ""); + I_Method1(void, setActivationKeyEvent, IN, int, key, + Properties::NON_VIRTUAL, + __void__setActivationKeyEvent__int, + "", + ""); + I_Method0(int, getActivationKeyEvent, + Properties::NON_VIRTUAL, + __int__getActivationKeyEvent, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::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, + "", + ""); + I_Method1(void, addConstraint, IN, osgManipulator::Constraint *, constraint, + Properties::NON_VIRTUAL, + __void__addConstraint__Constraint_P1, + "", + ""); + I_Method1(void, removeConstraint, IN, osgManipulator::Constraint *, constraint, + Properties::NON_VIRTUAL, + __void__removeConstraint__Constraint_P1, + "", + ""); + I_Method0(osgManipulator::Dragger::Constraints &, getConstraints, + Properties::NON_VIRTUAL, + __Constraints_R1__getConstraints, + "", + ""); + I_Method0(const osgManipulator::Dragger::Constraints &, getConstraints, + Properties::NON_VIRTUAL, + __C5_Constraints_R1__getConstraints, + "", + ""); + I_Method1(void, addDraggerCallback, IN, osgManipulator::DraggerCallback *, dc, + Properties::NON_VIRTUAL, + __void__addDraggerCallback__DraggerCallback_P1, + "", + ""); + I_Method1(void, removeDraggerCallback, IN, osgManipulator::DraggerCallback *, dc, + Properties::NON_VIRTUAL, + __void__removeDraggerCallback__DraggerCallback_P1, + "", + ""); + I_Method0(osgManipulator::Dragger::DraggerCallbacks &, getDraggerCallbacks, + Properties::NON_VIRTUAL, + __DraggerCallbacks_R1__getDraggerCallbacks, + "", + ""); + I_Method0(const osgManipulator::Dragger::DraggerCallbacks &, getDraggerCallbacks, + Properties::NON_VIRTUAL, + __C5_DraggerCallbacks_R1__getDraggerCallbacks, + "", + ""); + I_Method1(void, addTransformUpdating, IN, osg::MatrixTransform *, transform, + Properties::NON_VIRTUAL, + __void__addTransformUpdating__MatrixTransform_P1, + "", + ""); + I_Method1(void, removeTransformUpdating, IN, osg::MatrixTransform *, transform, + Properties::NON_VIRTUAL, + __void__removeTransformUpdating__MatrixTransform_P1, + "", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, command, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "", + ""); + I_Method1(void, dispatch, IN, osgManipulator::MotionCommand &, command, + Properties::NON_VIRTUAL, + __void__dispatch__MotionCommand_R1, + "", + ""); + I_Method1(void, setDraggerActive, IN, bool, active, + Properties::NON_VIRTUAL, + __void__setDraggerActive__bool, + "", + ""); + I_Method0(bool, getDraggerActive, + Properties::NON_VIRTUAL, + __bool__getDraggerActive, + "", + ""); + I_ProtectedConstructor0(____Dragger, + "", + ""); + I_ProtectedConstructorWithDefaults2(IN, const osgManipulator::Dragger &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Dragger__C5_Dragger_R1__C5_osg_CopyOp_R1, + "", + ""); + I_SimpleProperty(int, ActivationKeyEvent, + __int__getActivationKeyEvent, + __void__setActivationKeyEvent__int); + I_SimpleProperty(unsigned int, ActivationModKeyMask, + __unsigned_int__getActivationModKeyMask, + __void__setActivationModKeyMask__unsigned_int); + I_SimpleProperty(osgManipulator::CompositeDragger *, Composite, + __CompositeDragger_P1__getComposite, + 0); + I_SimpleProperty(osgManipulator::Dragger::Constraints &, Constraints, + __Constraints_R1__getConstraints, + 0); + I_SimpleProperty(bool, DraggerActive, + __bool__getDraggerActive, + __void__setDraggerActive__bool); + I_SimpleProperty(osgManipulator::Dragger::DraggerCallbacks &, DraggerCallbacks, + __DraggerCallbacks_R1__getDraggerCallbacks, + 0); + I_SimpleProperty(bool, HandleEvents, + __bool__getHandleEvents, + __void__setHandleEvents__bool); + I_SimpleProperty(osgManipulator::Dragger *, ParentDragger, + __Dragger_P1__getParentDragger, + __void__setParentDragger__Dragger_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::DraggerCallback) + I_DeclaringFile("osgManipulator/Dragger"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____DraggerCallback, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgManipulator::DraggerCallback &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DraggerCallback__C5_DraggerCallback_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "Receive motion commands. ", + "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, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::DraggerTransformCallback) + I_DeclaringFile("osgManipulator/Dragger"); + I_BaseType(osgManipulator::DraggerCallback); + I_Constructor1(IN, osg::MatrixTransform *, transform, + Properties::NON_EXPLICIT, + ____DraggerTransformCallback__osg_MatrixTransform_P1, + "", + ""); + I_Method1(bool, receive, IN, const osgManipulator::MotionCommand &, x, + Properties::VIRTUAL, + __bool__receive__C5_MotionCommand_R1, + "Receive motion commands. ", + "Returns true on success. "); + I_Method0(osg::MatrixTransform *, getTransform, + Properties::NON_VIRTUAL, + __osg_MatrixTransform_P1__getTransform, + "", + ""); + I_Method0(const osg::MatrixTransform *, getTransform, + Properties::NON_VIRTUAL, + __C5_osg_MatrixTransform_P1__getTransform, + "", + ""); + I_SimpleProperty(osg::MatrixTransform *, Transform, + __osg_MatrixTransform_P1__getTransform, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< osg::NodePath COMMA osg::Vec3d >, osgManipulator::PointerInfo::NodePathIntersectionPair) + +TYPE_NAME_ALIAS(std::list< osgManipulator::PointerInfo::NodePathIntersectionPair >, osgManipulator::PointerInfo::IntersectionList) + +BEGIN_VALUE_REFLECTOR(osgManipulator::PointerInfo) + I_DeclaringFile("osgManipulator/Dragger"); + I_Constructor0(____PointerInfo, + "", + ""); + I_Constructor1(IN, const osgManipulator::PointerInfo &, rhs, + Properties::NON_EXPLICIT, + ____PointerInfo__C5_PointerInfo_R1, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method0(bool, completed, + Properties::NON_VIRTUAL, + __bool__completed, + "", + ""); + I_Method0(void, next, + Properties::NON_VIRTUAL, + __void__next, + "", + ""); + I_Method0(osg::Vec3d, getLocalIntersectPoint, + Properties::NON_VIRTUAL, + __osg_Vec3d__getLocalIntersectPoint, + "", + ""); + I_Method2(void, setNearFarPoints, IN, osg::Vec3d, nearPoint, IN, osg::Vec3d, farPoint, + Properties::NON_VIRTUAL, + __void__setNearFarPoints__osg_Vec3d__osg_Vec3d, + "", + ""); + I_Method0(const osg::Vec3d &, getEyeDir, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEyeDir, + "", + ""); + I_Method2(void, getNearFarPoints, IN, osg::Vec3d &, nearPoint, IN, osg::Vec3d &, farPoint, + Properties::NON_VIRTUAL, + __void__getNearFarPoints__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method1(bool, contains, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, + __bool__contains__C5_osg_Node_P1, + "", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "", + ""); + I_Method2(void, addIntersection, IN, const osg::NodePath &, nodePath, IN, const osg::Vec3d &, intersectionPoint, + Properties::NON_VIRTUAL, + __void__addIntersection__C5_osg_NodePath_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method2(void, setMousePosition, IN, float, pixel_x, IN, float, pixel_y, + Properties::NON_VIRTUAL, + __void__setMousePosition__float__float, + "", + ""); + I_ProtectedMethod3(bool, projectWindowXYIntoObject, IN, const osg::Vec2d &, windowCoord, IN, osg::Vec3d &, nearPoint, IN, osg::Vec3d &, farPoint, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__projectWindowXYIntoObject__C5_osg_Vec2d_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + 0, + __void__setCamera__osg_Camera_P1); + I_SimpleProperty(const osg::Vec3d &, EyeDir, + __C5_osg_Vec3d_R1__getEyeDir, + 0); + I_SimpleProperty(osg::Vec3d, LocalIntersectPoint, + __osg_Vec3d__getLocalIntersectPoint, + 0); + I_PublicMemberProperty(osgManipulator::PointerInfo::IntersectionList, _hitList); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Constraint >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgManipulator::Constraint *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgManipulator::Constraint > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgManipulator::Constraint *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgManipulator::Constraint *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::Constraint > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgManipulator::Constraint *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::Dragger >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgManipulator::Dragger *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgManipulator::DraggerCallback >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgManipulator::DraggerCallback *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgManipulator::DraggerCallback > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgManipulator::DraggerCallback *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgManipulator::DraggerCallback *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgManipulator::DraggerCallback > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgManipulator::DraggerCallback *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osgManipulator::PointerInfo::NodePathIntersectionPair >) + +STD_PAIR_REFLECTOR(std::pair< osg::NodePath COMMA osg::Vec3d >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgManipulator::Constraint > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgManipulator::Dragger > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgManipulator::DraggerCallback > >) + diff --git a/src/osgWrappers/introspection/osgManipulator/Projector.cpp b/src/osgWrappers/introspection/osgManipulator/Projector.cpp new file mode 100644 index 000000000..a9c3e102f --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Projector.cpp @@ -0,0 +1,286 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderPlaneProjector) + I_DeclaringFile("osgManipulator/Projector"); + 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::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_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::Vec3d &, p1, IN, bool, p1OnCyl, IN, const osg::Vec3d &, p2, IN, bool, p2OnCyl, + Properties::NON_VIRTUAL, + __osg_Quat__getRotation__C5_osg_Vec3d_R1__bool__C5_osg_Vec3d_R1__bool, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::CylinderProjector) + I_DeclaringFile("osgManipulator/Projector"); + 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::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_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::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __bool__isPointInFront__C5_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, + "", + ""); + I_SimpleProperty(osg::Cylinder *, Cylinder, + 0, + __void__setCylinder__osg_Cylinder_P1); + I_SimpleProperty(bool, Front, + 0, + __void__setFront__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::LineProjector) + I_DeclaringFile("osgManipulator/Projector"); + I_BaseType(osgManipulator::Projector); + I_Constructor0(____LineProjector, + "", + ""); + I_Constructor2(IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + ____LineProjector__C5_osg_LineSegment_vec_type_R1__C5_osg_LineSegment_vec_type_R1, + "", + ""); + I_Method2(void, setLine, IN, const osg::LineSegment::vec_type &, s, IN, const osg::LineSegment::vec_type &, e, + Properties::NON_VIRTUAL, + __void__setLine__C5_osg_LineSegment_vec_type_R1__C5_osg_LineSegment_vec_type_R1, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, getLineStart, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_vec_type_R1__getLineStart, + "", + ""); + I_Method0(osg::LineSegment::vec_type &, getLineStart, + Properties::NON_VIRTUAL, + __osg_LineSegment_vec_type_R1__getLineStart, + "", + ""); + I_Method0(const osg::LineSegment::vec_type &, getLineEnd, + Properties::NON_VIRTUAL, + __C5_osg_LineSegment_vec_type_R1__getLineEnd, + "", + ""); + I_Method0(osg::LineSegment::vec_type &, getLineEnd, + Properties::NON_VIRTUAL, + __osg_LineSegment_vec_type_R1__getLineEnd, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given line. ", + "Returns true on successful projection. "); + I_SimpleProperty(osg::LineSegment::vec_type &, LineEnd, + __osg_LineSegment_vec_type_R1__getLineEnd, + 0); + I_SimpleProperty(osg::LineSegment::vec_type &, LineStart, + __osg_LineSegment_vec_type_R1__getLineStart, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::PlaneProjector) + I_DeclaringFile("osgManipulator/Projector"); + 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::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_R1, + "Calculates the object coordinates (projectedPoint) of a window coordinate (pointToProject) when projected onto the given plane. ", + "Returns true on successful projection. "); + I_SimpleProperty(const osg::Plane &, Plane, + __C5_osg_Plane_R1__getPlane, + __void__setPlane__C5_osg_Plane_R1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::Projector) + I_DeclaringFile("osgManipulator/Projector"); + I_BaseType(osg::Referenced); + I_Constructor0(____Projector, + "", + ""); + I_Method2(bool, project, IN, const osgManipulator::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::PURE_VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_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. ", + ""); + I_SimpleProperty(const osg::Matrix &, LocalToWorld, + __C5_osg_Matrix_R1__getLocalToWorld, + __void__setLocalToWorld__C5_osg_Matrix_R1); + I_SimpleProperty(const osg::Matrix &, WorldToLocal, + __C5_osg_Matrix_R1__getWorldToLocal, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::SpherePlaneProjector) + I_DeclaringFile("osgManipulator/Projector"); + 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::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_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::Vec3d &, p1, , IN, bool, p1OnSphere, , IN, const osg::Vec3d &, p2, , IN, bool, p2OnSphere, , IN, float, radialFactor, 0.0f, + Properties::NON_VIRTUAL, + __osg_Quat__getRotation__C5_osg_Vec3d_R1__bool__C5_osg_Vec3d_R1__bool__float, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::SphereProjector) + I_DeclaringFile("osgManipulator/Projector"); + 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::PointerInfo &, pi, IN, osg::Vec3d &, projectedPoint, + Properties::VIRTUAL, + __bool__project__C5_PointerInfo_R1__osg_Vec3d_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::PointerInfo &, pi, IN, const osg::Matrix &, localToWorld, + Properties::NON_VIRTUAL, + __bool__isPointInFront__C5_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, + "", + ""); + I_SimpleProperty(bool, Front, + 0, + __void__setFront__bool); + I_SimpleProperty(osg::Sphere *, Sphere, + 0, + __void__setSphere__osg_Sphere_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/RotateCylinderDragger.cpp b/src/osgWrappers/introspection/osgManipulator/RotateCylinderDragger.cpp new file mode 100644 index 000000000..a8538fccf --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/RotateCylinderDragger.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateCylinderDragger) + I_DeclaringFile("osgManipulator/RotateCylinderDragger"); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____RotateCylinderDragger, + "", + ""); + 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_Method3(bool, handle, IN, const osgManipulator::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::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_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/RotateSphereDragger.cpp b/src/osgWrappers/introspection/osgManipulator/RotateSphereDragger.cpp new file mode 100644 index 000000000..2c9aec5f4 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/RotateSphereDragger.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger) + I_DeclaringFile("osgManipulator/RotateSphereDragger"); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____RotateSphereDragger, + "", + ""); + 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_Method3(bool, handle, IN, const osgManipulator::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::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_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Scale1DDragger.cpp b/src/osgWrappers/introspection/osgManipulator/Scale1DDragger.cpp new file mode 100644 index 000000000..e5a3f55e0 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Scale1DDragger.cpp @@ -0,0 +1,160 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgManipulator::Scale1DDragger::ScaleMode) + I_DeclaringFile("osgManipulator/Scale1DDragger"); + I_EnumLabel(osgManipulator::Scale1DDragger::SCALE_WITH_ORIGIN_AS_PIVOT); + I_EnumLabel(osgManipulator::Scale1DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale1DDragger) + I_DeclaringFile("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_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_Method3(bool, handle, IN, const osgManipulator::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::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setMinScale, IN, double, min, + Properties::NON_VIRTUAL, + __void__setMinScale__double, + "Set/Get min scale for dragger. ", + ""); + I_Method0(double, getMinScale, + Properties::NON_VIRTUAL, + __double__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, double, pos, + Properties::NON_VIRTUAL, + __void__setLeftHandlePosition__double, + "Set left/right handle position. ", + ""); + I_Method0(double, getLeftHandlePosition, + Properties::NON_VIRTUAL, + __double__getLeftHandlePosition, + "", + ""); + I_Method1(void, setRightHandlePosition, IN, double, pos, + Properties::NON_VIRTUAL, + __void__setRightHandlePosition__double, + "", + ""); + I_Method0(double, getRightHandlePosition, + Properties::NON_VIRTUAL, + __double__getRightHandlePosition, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Node &, LeftHandleNode, + 0, + __void__setLeftHandleNode__osg_Node_R1); + I_SimpleProperty(double, LeftHandlePosition, + __double__getLeftHandlePosition, + __void__setLeftHandlePosition__double); + I_SimpleProperty(double, MinScale, + __double__getMinScale, + __void__setMinScale__double); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Node &, RightHandleNode, + 0, + __void__setRightHandleNode__osg_Node_R1); + I_SimpleProperty(double, RightHandlePosition, + __double__getRightHandlePosition, + __void__setRightHandlePosition__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Scale2DDragger.cpp b/src/osgWrappers/introspection/osgManipulator/Scale2DDragger.cpp new file mode 100644 index 000000000..1b52de474 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Scale2DDragger.cpp @@ -0,0 +1,213 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgManipulator::Scale2DDragger::ScaleMode) + I_DeclaringFile("osgManipulator/Scale2DDragger"); + I_EnumLabel(osgManipulator::Scale2DDragger::SCALE_WITH_ORIGIN_AS_PIVOT); + I_EnumLabel(osgManipulator::Scale2DDragger::SCALE_WITH_OPPOSITE_HANDLE_AS_PIVOT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DDragger) + I_DeclaringFile("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_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_Method3(bool, handle, IN, const osgManipulator::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::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setMinScale, IN, const osg::Vec2d &, min, + Properties::NON_VIRTUAL, + __void__setMinScale__C5_osg_Vec2d_R1, + "Set/Get min scale for dragger. ", + ""); + I_Method0(const osg::Vec2d &, getMinScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_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::Vec2d &, pos, + Properties::NON_VIRTUAL, + __void__setTopLeftHandlePosition__C5_osg_Vec2d_R1, + "Set/Get the handle nodes postion for dragger. ", + ""); + I_Method0(const osg::Vec2d &, getTopLeftHandlePosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getTopLeftHandlePosition, + "", + ""); + I_Method1(void, setBottomLeftHandlePosition, IN, const osg::Vec2d &, pos, + Properties::NON_VIRTUAL, + __void__setBottomLeftHandlePosition__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getBottomLeftHandlePosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getBottomLeftHandlePosition, + "", + ""); + I_Method1(void, setTopRightHandlePosition, IN, const osg::Vec2d &, pos, + Properties::NON_VIRTUAL, + __void__setTopRightHandlePosition__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getTopRightHandlePosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getTopRightHandlePosition, + "", + ""); + I_Method1(void, setBottomRightHandlePosition, IN, const osg::Vec2d &, pos, + Properties::NON_VIRTUAL, + __void__setBottomRightHandlePosition__C5_osg_Vec2d_R1, + "", + ""); + I_Method0(const osg::Vec2d &, getBottomRightHandlePosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec2d_R1__getBottomRightHandlePosition, + "", + ""); + I_SimpleProperty(osg::Node &, BottomLeftHandleNode, + 0, + __void__setBottomLeftHandleNode__osg_Node_R1); + I_SimpleProperty(const osg::Vec2d &, BottomLeftHandlePosition, + __C5_osg_Vec2d_R1__getBottomLeftHandlePosition, + __void__setBottomLeftHandlePosition__C5_osg_Vec2d_R1); + I_SimpleProperty(osg::Node &, BottomRightHandleNode, + 0, + __void__setBottomRightHandleNode__osg_Node_R1); + I_SimpleProperty(const osg::Vec2d &, BottomRightHandlePosition, + __C5_osg_Vec2d_R1__getBottomRightHandlePosition, + __void__setBottomRightHandlePosition__C5_osg_Vec2d_R1); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec2d &, MinScale, + __C5_osg_Vec2d_R1__getMinScale, + __void__setMinScale__C5_osg_Vec2d_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Node &, TopLeftHandleNode, + 0, + __void__setTopLeftHandleNode__osg_Node_R1); + I_SimpleProperty(const osg::Vec2d &, TopLeftHandlePosition, + __C5_osg_Vec2d_R1__getTopLeftHandlePosition, + __void__setTopLeftHandlePosition__C5_osg_Vec2d_R1); + I_SimpleProperty(osg::Node &, TopRightHandleNode, + 0, + __void__setTopRightHandleNode__osg_Node_R1); + I_SimpleProperty(const osg::Vec2d &, TopRightHandlePosition, + __C5_osg_Vec2d_R1__getTopRightHandlePosition, + __void__setTopRightHandlePosition__C5_osg_Vec2d_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/ScaleAxisDragger.cpp b/src/osgWrappers/introspection/osgManipulator/ScaleAxisDragger.cpp new file mode 100644 index 000000000..2fcb86a3c --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/ScaleAxisDragger.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::ScaleAxisDragger) + I_DeclaringFile("osgManipulator/ScaleAxisDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____ScaleAxisDragger, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Selection.cpp b/src/osgWrappers/introspection/osgManipulator/Selection.cpp new file mode 100644 index 000000000..430c2c72a --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Selection.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::MatrixTransform, osgManipulator::Selection) + diff --git a/src/osgWrappers/introspection/osgManipulator/TabBoxDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TabBoxDragger.cpp new file mode 100644 index 000000000..165765a6c --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TabBoxDragger.cpp @@ -0,0 +1,60 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxDragger) + I_DeclaringFile("osgManipulator/TabBoxDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabBoxDragger, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::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, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, PlaneColor, + 0, + __void__setPlaneColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TabBoxTrackballDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TabBoxTrackballDragger.cpp new file mode 100644 index 000000000..9de92abdf --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TabBoxTrackballDragger.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabBoxTrackballDragger) + I_DeclaringFile("osgManipulator/TabBoxTrackballDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabBoxTrackballDragger, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TabPlaneDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TabPlaneDragger.cpp new file mode 100644 index 000000000..d89121ece --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TabPlaneDragger.cpp @@ -0,0 +1,68 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneDragger) + I_DeclaringFile("osgManipulator/TabPlaneDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabPlaneDragger, + "", + ""); + 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_Method3(bool, handle, IN, const osgManipulator::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, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, PlaneColor, + 0, + __void__setPlaneColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TabPlaneTrackballDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TabPlaneTrackballDragger.cpp new file mode 100644 index 000000000..c2880a038 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TabPlaneTrackballDragger.cpp @@ -0,0 +1,60 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TabPlaneTrackballDragger) + I_DeclaringFile("osgManipulator/TabPlaneTrackballDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TabPlaneTrackballDragger, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::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, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, PlaneColor, + 0, + __void__setPlaneColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TrackballDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TrackballDragger.cpp new file mode 100644 index 000000000..0d96ea838 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TrackballDragger.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TrackballDragger) + I_DeclaringFile("osgManipulator/TrackballDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_ConstructorWithDefaults1(IN, bool, useAutoTransform, false, + Properties::NON_EXPLICIT, + ____TrackballDragger__bool, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Translate1DDragger.cpp b/src/osgWrappers/introspection/osgManipulator/Translate1DDragger.cpp new file mode 100644 index 000000000..c086f0ef3 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Translate1DDragger.cpp @@ -0,0 +1,99 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate1DDragger) + I_DeclaringFile("osgManipulator/Translate1DDragger"); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____Translate1DDragger, + "", + ""); + 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_Constructor2(IN, const osg::Vec3d &, s, IN, const osg::Vec3d &, e, + ____Translate1DDragger__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::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::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, + "", + ""); + I_SimpleProperty(bool, CheckForNodeInNodePath, + 0, + __void__setCheckForNodeInNodePath__bool); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/Translate2DDragger.cpp b/src/osgWrappers/introspection/osgManipulator/Translate2DDragger.cpp new file mode 100644 index 000000000..228820889 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/Translate2DDragger.cpp @@ -0,0 +1,92 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::Translate2DDragger) + I_DeclaringFile("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_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_Method3(bool, handle, IN, const osgManipulator::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::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_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TranslateAxisDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TranslateAxisDragger.cpp new file mode 100644 index 000000000..d1e4e2587 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TranslateAxisDragger.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateAxisDragger) + I_DeclaringFile("osgManipulator/TranslateAxisDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslateAxisDragger, + "", + ""); + 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(void, setupDefaultGeometry, + Properties::VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgManipulator/TranslatePlaneDragger.cpp b/src/osgWrappers/introspection/osgManipulator/TranslatePlaneDragger.cpp new file mode 100644 index 000000000..9ffca1c38 --- /dev/null +++ b/src/osgWrappers/introspection/osgManipulator/TranslatePlaneDragger.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslatePlaneDragger) + I_DeclaringFile("osgManipulator/TranslatePlaneDragger"); + I_BaseType(osgManipulator::CompositeDragger); + I_Constructor0(____TranslatePlaneDragger, + "", + ""); + 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_Method3(bool, handle, IN, const osgManipulator::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::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, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(osgManipulator::Translate1DDragger *, Translate1DDragger, + __Translate1DDragger_P1__getTranslate1DDragger, + 0); + I_SimpleProperty(osgManipulator::Translate2DDragger *, Translate2DDragger, + __Translate2DDragger_P1__getTranslate2DDragger, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/AccelOperator.cpp b/src/osgWrappers/introspection/osgParticle/AccelOperator.cpp new file mode 100644 index 000000000..632321bbd --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/AccelOperator.cpp @@ -0,0 +1,95 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) + I_DeclaringFile("osgParticle/AccelOperator"); + I_BaseType(osgParticle::Operator); + I_Constructor0(____AccelOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::AccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AccelOperator__C5_AccelOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Acceleration, + __C5_osg_Vec3_R1__getAcceleration, + __void__setAcceleration__C5_osg_Vec3_R1); + I_SimpleProperty(float, ToGravity, + 0, + __void__setToGravity__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/introspection/osgParticle/AngularAccelOperator.cpp new file mode 100644 index 000000000..e10b218b3 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/AngularAccelOperator.cpp @@ -0,0 +1,87 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) + I_DeclaringFile("osgParticle/AngularAccelOperator"); + I_BaseType(osgParticle::Operator); + I_Constructor0(____AngularAccelOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::AngularAccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AngularAccelOperator__C5_AngularAccelOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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. ", + ""); + I_SimpleProperty(const osg::Vec3 &, AngularAcceleration, + __C5_osg_Vec3_R1__getAngularAcceleration, + __void__setAngularAcceleration__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/BoxPlacer.cpp b/src/osgWrappers/introspection/osgParticle/BoxPlacer.cpp new file mode 100644 index 000000000..7b8320094 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/BoxPlacer.cpp @@ -0,0 +1,131 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer) + I_DeclaringFile("osgParticle/BoxPlacer"); + I_BaseType(osgParticle::CenteredPlacer); + I_Constructor0(____BoxPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::BoxPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BoxPlacer__C5_BoxPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getXRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getXRange, + "Get the range of possible values along the X axis. ", + ""); + I_Method1(void, setXRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setXRange__C5_rangef_R1, + "Set the range of possible values along the X axis. ", + ""); + I_Method2(void, setXRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setXRange__float__float, + "Set the range of possible values along the X axis. ", + ""); + I_Method0(const osgParticle::rangef &, getYRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getYRange, + "Get the range of possible values along the Y axis. ", + ""); + I_Method1(void, setYRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setYRange__C5_rangef_R1, + "Set the range of possible values along the Y axis. ", + ""); + I_Method2(void, setYRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setYRange__float__float, + "Set the range of possible values along the Y axis. ", + ""); + I_Method0(const osgParticle::rangef &, getZRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getZRange, + "Get the range of possible values along the Z axis. ", + ""); + I_Method1(void, setZRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setZRange__C5_rangef_R1, + "Set the range of possible values along the Z axis. ", + ""); + I_Method2(void, setZRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setZRange__float__float, + "Set the range of possible values along the Z axis. ", + ""); + 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_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 ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osgParticle::rangef &, XRange, + __C5_rangef_R1__getXRange, + __void__setXRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, YRange, + __C5_rangef_R1__getYRange, + __void__setYRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, ZRange, + __C5_rangef_R1__getZRange, + __void__setZRange__C5_rangef_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/introspection/osgParticle/CenteredPlacer.cpp new file mode 100644 index 000000000..220e5f8a6 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/CenteredPlacer.cpp @@ -0,0 +1,70 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) + I_DeclaringFile("osgParticle/CenteredPlacer"); + I_BaseType(osgParticle::Placer); + I_Constructor0(____CenteredPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::CenteredPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CenteredPlacer__C5_CenteredPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Center, + __C5_osg_Vec3_R1__getCenter, + __void__setCenter__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ConnectedParticleSystem.cpp b/src/osgWrappers/introspection/osgParticle/ConnectedParticleSystem.cpp new file mode 100644 index 000000000..6e0927717 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ConnectedParticleSystem.cpp @@ -0,0 +1,104 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem) + I_DeclaringFile("osgParticle/ConnectedParticleSystem"); + I_BaseType(osgParticle::ParticleSystem); + I_Constructor0(____ConnectedParticleSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ConnectedParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConnectedParticleSystem__C5_ConnectedParticleSystem_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_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. ", + ""); + I_SimpleProperty(unsigned int, MaxNumberOfParticlesToSkip, + __unsigned_int__getMaxNumberOfParticlesToSkip, + __void__setMaxNumberOfParticlesToSkip__unsigned_int); + I_SimpleProperty(osgParticle::Particle *, StartParticle, + __osgParticle_Particle_P1__getStartParticle, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ConstantRateCounter.cpp b/src/osgWrappers/introspection/osgParticle/ConstantRateCounter.cpp new file mode 100644 index 000000000..ca306f9d1 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ConstantRateCounter.cpp @@ -0,0 +1,92 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter) + I_DeclaringFile("osgParticle/ConstantRateCounter"); + I_BaseType(osgParticle::Counter); + I_Constructor0(____ConstantRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ConstantRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConstantRateCounter__C5_ConstantRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. ", + ""); + I_SimpleProperty(int, MinimumNumberOfParticlesToCreate, + __int__getMinimumNumberOfParticlesToCreate, + __void__setMinimumNumberOfParticlesToCreate__int); + I_SimpleProperty(double, NumberOfParticlesPerSecondToCreate, + __double__getNumberOfParticlesPerSecondToCreate, + __void__setNumberOfParticlesPerSecondToCreate__double); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Counter.cpp b/src/osgWrappers/introspection/osgParticle/Counter.cpp new file mode 100644 index 000000000..954f1524f --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Counter.cpp @@ -0,0 +1,56 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) + I_DeclaringFile("osgParticle/Counter"); + I_BaseType(osg::Object); + I_Constructor0(____Counter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Counter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Counter__C5_Counter_R1__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Emitter.cpp b/src/osgWrappers/introspection/osgParticle/Emitter.cpp new file mode 100644 index 000000000..f4a5bfba3 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Emitter.cpp @@ -0,0 +1,96 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) + I_DeclaringFile("osgParticle/Emitter"); + I_BaseType(osgParticle::ParticleProcessor); + I_Constructor0(____Emitter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Emitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Emitter__C5_Emitter_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. "); + I_ProtectedMethod1(void, process, IN, double, dt, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__process__double, + "", + ""); + I_ProtectedMethod1(void, emit, IN, double, dt, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__emit__double, + "", + ""); + I_SimpleProperty(const osgParticle::Particle &, ParticleTemplate, + __C5_Particle_R1__getParticleTemplate, + __void__setParticleTemplate__C5_Particle_R1); + I_SimpleProperty(bool, UseDefaultTemplate, + __bool__getUseDefaultTemplate, + __void__setUseDefaultTemplate__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ExplosionDebrisEffect.cpp b/src/osgWrappers/introspection/osgParticle/ExplosionDebrisEffect.cpp new file mode 100644 index 000000000..c5e7aefc4 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ExplosionDebrisEffect.cpp @@ -0,0 +1,112 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect) + I_DeclaringFile("osgParticle/ExplosionDebrisEffect"); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ExplosionDebrisEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____ExplosionDebrisEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebrisEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ExplosionDebrisEffect__C5_ExplosionDebrisEffect_R1__C5_osg_CopyOp_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(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, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ExplosionEffect.cpp b/src/osgWrappers/introspection/osgParticle/ExplosionEffect.cpp new file mode 100644 index 000000000..6e4a0e176 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ExplosionEffect.cpp @@ -0,0 +1,112 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect) + I_DeclaringFile("osgParticle/ExplosionEffect"); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ExplosionEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____ExplosionEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ExplosionEffect__C5_ExplosionEffect_R1__C5_osg_CopyOp_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(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, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/FireEffect.cpp b/src/osgWrappers/introspection/osgParticle/FireEffect.cpp new file mode 100644 index 000000000..3c1f500ac --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/FireEffect.cpp @@ -0,0 +1,112 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect) + I_DeclaringFile("osgParticle/FireEffect"); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____FireEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____FireEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::FireEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FireEffect__C5_FireEffect_R1__C5_osg_CopyOp_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(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, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ForceOperator.cpp b/src/osgWrappers/introspection/osgParticle/ForceOperator.cpp new file mode 100644 index 000000000..ce8d64861 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ForceOperator.cpp @@ -0,0 +1,87 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) + I_DeclaringFile("osgParticle/ForceOperator"); + I_BaseType(osgParticle::Operator); + I_Constructor0(____ForceOperator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ForceOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ForceOperator__C5_ForceOperator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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. ", + ""); + I_SimpleProperty(const osg::Vec3 &, Force, + __C5_osg_Vec3_R1__getForce, + __void__setForce__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Interpolator.cpp b/src/osgWrappers/introspection/osgParticle/Interpolator.cpp new file mode 100644 index 000000000..b40b50919 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Interpolator.cpp @@ -0,0 +1,74 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) + I_DeclaringFile("osgParticle/Interpolator"); + I_BaseType(osg::Object); + I_Constructor0(____Interpolator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Interpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Interpolator__C5_Interpolator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/introspection/osgParticle/LinearInterpolator.cpp new file mode 100644 index 000000000..852fa9482 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/LinearInterpolator.cpp @@ -0,0 +1,66 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) + I_DeclaringFile("osgParticle/LinearInterpolator"); + I_BaseType(osgParticle::Interpolator); + I_Constructor0(____LinearInterpolator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::LinearInterpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LinearInterpolator__C5_LinearInterpolator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ModularEmitter.cpp b/src/osgWrappers/introspection/osgParticle/ModularEmitter.cpp new file mode 100644 index 000000000..bb1bf75fc --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ModularEmitter.cpp @@ -0,0 +1,143 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) + I_DeclaringFile("osgParticle/ModularEmitter"); + I_BaseType(osgParticle::Emitter); + I_Constructor0(____ModularEmitter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ModularEmitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ModularEmitter__C5_ModularEmitter_R1__C5_osg_CopyOp_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(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, getNumParticlesToCreateMovementCompensationRatio, + Properties::NON_VIRTUAL, + __float__getNumParticlesToCreateMovementCompensationRatio, + "Get the ratio between number of particle to create in compensation for movement of the emitter. ", + ""); + I_Method1(void, setNumParticlesToCreateMovementCompensationRatio, IN, float, r, + Properties::NON_VIRTUAL, + __void__setNumParticlesToCreateMovementCompensationRatio__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. ", + ""); + I_ProtectedMethod1(void, emit, IN, double, dt, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__emit__double, + "", + ""); + I_SimpleProperty(osgParticle::Counter *, Counter, + __Counter_P1__getCounter, + __void__setCounter__Counter_P1); + I_SimpleProperty(float, NumParticlesToCreateMovementCompensationRatio, + 0, + __void__setNumParticlesToCreateMovementCompensationRatio__float); + I_SimpleProperty(osgParticle::Placer *, Placer, + __Placer_P1__getPlacer, + __void__setPlacer__Placer_P1); + I_SimpleProperty(osgParticle::Shooter *, Shooter, + __Shooter_P1__getShooter, + __void__setShooter__Shooter_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ModularProgram.cpp b/src/osgWrappers/introspection/osgParticle/ModularProgram.cpp new file mode 100644 index 000000000..8382c812f --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ModularProgram.cpp @@ -0,0 +1,99 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) + I_DeclaringFile("osgParticle/ModularProgram"); + I_BaseType(osgParticle::Program); + I_Constructor0(____ModularProgram, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ModularProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ModularProgram__C5_ModularProgram_R1__C5_osg_CopyOp_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(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. ", + ""); + I_ProtectedMethod1(void, execute, IN, double, dt, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__execute__double, + "Execute the program on the particle system. Must be overriden in descendant classes. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/introspection/osgParticle/MultiSegmentPlacer.cpp new file mode 100644 index 000000000..aae5f2319 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/MultiSegmentPlacer.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) + I_DeclaringFile("osgParticle/MultiSegmentPlacer"); + I_BaseType(osgParticle::Placer); + I_Constructor0(____MultiSegmentPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::MultiSegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiSegmentPlacer__C5_MultiSegmentPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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 ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_IndexedProperty(const osg::Vec3 &, Vertex, + __C5_osg_Vec3_R1__getVertex__int, + __void__setVertex__int__C5_osg_Vec3_R1, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Operator.cpp b/src/osgWrappers/introspection/osgParticle/Operator.cpp new file mode 100644 index 000000000..24c975e20 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Operator.cpp @@ -0,0 +1,81 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) + I_DeclaringFile("osgParticle/Operator"); + I_BaseType(osg::Object); + I_Constructor0(____Operator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Operator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Operator__C5_Operator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. ", + ""); + I_SimpleProperty(bool, Enabled, + 0, + __void__setEnabled__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Particle.cpp b/src/osgWrappers/introspection/osgParticle/Particle.cpp new file mode 100644 index 000000000..a027dcb3c --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Particle.cpp @@ -0,0 +1,419 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgParticle::Particle::Shape) + I_DeclaringFile("osgParticle/Particle"); + I_EnumLabel(osgParticle::Particle::POINT); + I_EnumLabel(osgParticle::Particle::QUAD); + I_EnumLabel(osgParticle::Particle::QUAD_TRIANGLESTRIP); + I_EnumLabel(osgParticle::Particle::HEXAGON); + I_EnumLabel(osgParticle::Particle::LINE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::Particle) + I_DeclaringFile("osgParticle/Particle"); + I_Constructor0(____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(float, getSTexCoord, + Properties::NON_VIRTUAL, + __float__getSTexCoord, + "Get the s texture coordinate of the bottom left of the particle. ", + ""); + I_Method0(float, getTTexCoord, + Properties::NON_VIRTUAL, + __float__getTTexCoord, + "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_Method1(void, beginRender, IN, osg::GLBeginEndAdapter *, gl, + Properties::NON_VIRTUAL, + __void__beginRender__osg_GLBeginEndAdapter_P1, + "Perform some pre-rendering tasks. Called automatically by particle systems. ", + ""); + I_MethodWithDefaults5(void, render, IN, osg::GLBeginEndAdapter *, gl, , 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__osg_GLBeginEndAdapter_P1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__float, + "Render the particle. Called automatically by particle systems. ", + ""); + I_Method1(void, endRender, IN, osg::GLBeginEndAdapter *, gl, + Properties::NON_VIRTUAL, + __void__endRender__osg_GLBeginEndAdapter_P1, + "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_Method4(void, setTextureTileRange, IN, int, sTile, IN, int, tTile, IN, int, startTile, IN, int, endTile, + Properties::NON_VIRTUAL, + __void__setTextureTileRange__int__int__int__int, + "Specify how the particle texture is tiled. ", + "All tiles in the given range are sequentially displayed during the lifetime of the particle. When no range is given, all tiles are displayed during the lifetime. "); + I_MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, end, -1, + Properties::NON_VIRTUAL, + __void__setTextureTile__int__int__int, + "Same as above, range starts at 0 and ends at end. ", + ""); + 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. ", + ""); + I_SimpleProperty(double, Age, + __double__getAge, + 0); + I_SimpleProperty(osgParticle::Interpolator *, AlphaInterpolator, + 0, + __void__setAlphaInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangef &, AlphaRange, + __C5_rangef_R1__getAlphaRange, + __void__setAlphaRange__C5_rangef_R1); + I_SimpleProperty(const osg::Vec3 &, Angle, + __C5_osg_Vec3_R1__getAngle, + __void__setAngle__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, AngularVelocity, + __C5_osg_Vec3_R1__getAngularVelocity, + __void__setAngularVelocity__C5_osg_Vec3_R1); + I_SimpleProperty(osgParticle::Interpolator *, ColorInterpolator, + 0, + __void__setColorInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangev4 &, ColorRange, + __C5_rangev4_R1__getColorRange, + __void__setColorRange__C5_rangev4_R1); + I_SimpleProperty(float, CurrentAlpha, + __float__getCurrentAlpha, + 0); + I_SimpleProperty(const osg::Vec4 &, CurrentColor, + __C5_osg_Vec4_R1__getCurrentColor, + 0); + I_SimpleProperty(float, CurrentSize, + __float__getCurrentSize, + 0); + I_SimpleProperty(double, LifeTime, + __double__getLifeTime, + __void__setLifeTime__double); + I_SimpleProperty(float, Mass, + __float__getMass, + __void__setMass__float); + I_SimpleProperty(float, MassInv, + __float__getMassInv, + 0); + I_SimpleProperty(int, NextParticle, + __int__getNextParticle, + __void__setNextParticle__int); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, PreviousAngle, + __C5_osg_Vec3_R1__getPreviousAngle, + 0); + I_SimpleProperty(int, PreviousParticle, + __int__getPreviousParticle, + __void__setPreviousParticle__int); + I_SimpleProperty(const osg::Vec3 &, PreviousPosition, + __C5_osg_Vec3_R1__getPreviousPosition, + 0); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(float, STexCoord, + __float__getSTexCoord, + 0); + I_SimpleProperty(osgParticle::Particle::Shape, Shape, + __Shape__getShape, + __void__setShape__Shape); + I_SimpleProperty(osgParticle::Interpolator *, SizeInterpolator, + 0, + __void__setSizeInterpolator__Interpolator_P1); + I_SimpleProperty(const osgParticle::rangef &, SizeRange, + __C5_rangef_R1__getSizeRange, + __void__setSizeRange__C5_rangef_R1); + I_SimpleProperty(float, TTexCoord, + __float__getTTexCoord, + 0); + I_SimpleProperty(int, TileS, + __int__getTileS, + 0); + I_SimpleProperty(int, TileT, + __int__getTileT, + 0); + I_SimpleProperty(osgParticle::ParticleSystem *, UpTexCoordsAsPartOfConnectedParticleSystem, + 0, + __void__setUpTexCoordsAsPartOfConnectedParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Vec3 &, Velocity, + __C5_osg_Vec3_R1__getVelocity, + __void__setVelocity__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ParticleEffect.cpp b/src/osgWrappers/introspection/osgParticle/ParticleEffect.cpp new file mode 100644 index 000000000..089d71209 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ParticleEffect.cpp @@ -0,0 +1,271 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) + I_DeclaringFile("osgParticle/ParticleEffect"); + I_BaseType(osg::Group); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ParticleEffect__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleEffect__C5_ParticleEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(bool, AutomaticSetup, + __bool__getAutomaticSetup, + __void__setAutomaticSetup__bool); + I_SimpleProperty(const osgParticle::Particle &, DefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + __void__setDefaultParticleTemplate__C5_Particle_R1); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(double, EmitterDuration, + __double__getEmitterDuration, + __void__setEmitterDuration__double); + I_SimpleProperty(float, Intensity, + __float__getIntensity, + __void__setIntensity__float); + I_SimpleProperty(double, ParticleDuration, + __double__getParticleDuration, + __void__setParticleDuration__double); + I_SimpleProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem, + __void__setParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); + I_SimpleProperty(float, Scale, + __float__getScale, + __void__setScale__float); + I_SimpleProperty(double, StartTime, + __double__getStartTime, + __void__setStartTime__double); + I_SimpleProperty(const std::string &, TextureFileName, + __C5_std_string_R1__getTextureFileName, + __void__setTextureFileName__C5_std_string_R1); + I_SimpleProperty(bool, UseLocalParticleSystem, + __bool__getUseLocalParticleSystem, + __void__setUseLocalParticleSystem__bool); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/introspection/osgParticle/ParticleProcessor.cpp new file mode 100644 index 000000000..78a157b40 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ParticleProcessor.cpp @@ -0,0 +1,249 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleProcessor::ReferenceFrame) + I_DeclaringFile("osgParticle/ParticleProcessor"); + I_EnumLabel(osgParticle::ParticleProcessor::RELATIVE_RF); + I_EnumLabel(osgParticle::ParticleProcessor::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) + I_DeclaringFile("osgParticle/ParticleProcessor"); + I_BaseType(osg::Node); + I_Constructor0(____ParticleProcessor, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleProcessor &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleProcessor__C5_ParticleProcessor_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, x, + 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(). "); + I_ProtectedMethod1(void, process, IN, double, dt, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__process__double, + "", + ""); + I_SimpleProperty(double, CurrentTime, + __double__getCurrentTime, + __void__setCurrentTime__double); + I_SimpleProperty(bool, Enabled, + 0, + __void__setEnabled__bool); + I_SimpleProperty(bool, Endless, + 0, + __void__setEndless__bool); + I_SimpleProperty(double, LifeTime, + __double__getLifeTime, + __void__setLifeTime__double); + I_SimpleProperty(const osg::Matrix &, LocalToWorldMatrix, + __C5_osg_Matrix_R1__getLocalToWorldMatrix, + 0); + I_SimpleProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem, + __void__setParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Matrix &, PreviousLocalToWorldMatrix, + __C5_osg_Matrix_R1__getPreviousLocalToWorldMatrix, + 0); + I_SimpleProperty(const osg::Matrix &, PreviousWorldToLocalMatrix, + __C5_osg_Matrix_R1__getPreviousWorldToLocalMatrix, + 0); + I_SimpleProperty(osgParticle::ParticleProcessor::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(double, ResetTime, + __double__getResetTime, + __void__setResetTime__double); + I_SimpleProperty(double, StartTime, + __double__getStartTime, + __void__setStartTime__double); + I_SimpleProperty(const osg::Matrix &, WorldToLocalMatrix, + __C5_osg_Matrix_R1__getWorldToLocalMatrix, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ParticleSystem.cpp b/src/osgWrappers/introspection/osgParticle/ParticleSystem.cpp new file mode 100644 index 000000000..e6d2b1370 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ParticleSystem.cpp @@ -0,0 +1,311 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment) + I_DeclaringFile("osgParticle/ParticleSystem"); + I_EnumLabel(osgParticle::ParticleSystem::BILLBOARD); + I_EnumLabel(osgParticle::ParticleSystem::FIXED); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::ParticleScaleReferenceFrame) + I_DeclaringFile("osgParticle/ParticleSystem"); + I_EnumLabel(osgParticle::ParticleSystem::LOCAL_COORDINATES); + I_EnumLabel(osgParticle::ParticleSystem::WORLD_COORDINATES); +END_REFLECTOR + +TYPE_NAME_ALIAS(OpenThreads::Mutex, osgParticle::ParticleSystem::ReadWriterMutex) + +TYPE_NAME_ALIAS(OpenThreads::ScopedLock< OpenThreads::Mutex >, osgParticle::ParticleSystem::ScopedReadLock) + +TYPE_NAME_ALIAS(OpenThreads::ScopedLock< OpenThreads::Mutex >, osgParticle::ParticleSystem::ScopedWriteLock) + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) + I_DeclaringFile("osgParticle/ParticleSystem"); + I_BaseType(osg::Drawable); + I_Constructor0(____ParticleSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleSystem__C5_ParticleSystem_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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_Method1(void, setParticleScaleReferenceFrame, IN, osgParticle::ParticleSystem::ParticleScaleReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setParticleScaleReferenceFrame__ParticleScaleReferenceFrame, + "Set whether the particles should be scaled relative to world coordaintes or local coordinates. ", + ""); + I_Method0(osgParticle::ParticleSystem::ParticleScaleReferenceFrame, getParticleScaleReferenceFrame, + Properties::NON_VIRTUAL, + __ParticleScaleReferenceFrame__getParticleScaleReferenceFrame, + "Get whether the particles should be scaled relative to world coordaintes or local coordinates. ", + ""); + 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::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "drawImplementation(RenderInfo&) 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 renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State OpenGL state for the current graphics context. "); + I_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_Method0(osgParticle::ParticleSystem::ReadWriterMutex *, getReadWriteMutex, + Properties::NON_VIRTUAL, + __ReadWriterMutex_P1__getReadWriteMutex, + "", + ""); + I_ProtectedMethod2(void, update_bounds, IN, const osg::Vec3 &, p, IN, float, r, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__update_bounds__C5_osg_Vec3_R1__float, + "", + ""); + I_ProtectedMethod2(void, single_pass_render, IN, osg::State &, state, IN, const osg::Matrix &, modelview, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__single_pass_render__osg_State_R1__C5_osg_Matrix_R1, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, AlignVectorX, + __C5_osg_Vec3_R1__getAlignVectorX, + __void__setAlignVectorX__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, AlignVectorY, + __C5_osg_Vec3_R1__getAlignVectorY, + __void__setAlignVectorY__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::BoundingBox &, DefaultBoundingBox, + __C5_osg_BoundingBox_R1__getDefaultBoundingBox, + __void__setDefaultBoundingBox__C5_osg_BoundingBox_R1); + I_SimpleProperty(const osgParticle::Particle &, DefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + __void__setDefaultParticleTemplate__C5_Particle_R1); + I_SimpleProperty(bool, DoublePassRendering, + __bool__getDoublePassRendering, + __void__setDoublePassRendering__bool); + I_SimpleProperty(bool, FreezeOnCull, + __bool__getFreezeOnCull, + __void__setFreezeOnCull__bool); + I_SimpleProperty(bool, Frozen, + 0, + __void__setFrozen__bool); + I_SimpleProperty(int, LastFrameNumber, + __int__getLastFrameNumber, + 0); + I_SimpleProperty(int, LevelOfDetail, + __int__getLevelOfDetail, + __void__setLevelOfDetail__int); + I_SimpleProperty(osgParticle::ParticleSystem::Alignment, ParticleAlignment, + __Alignment__getParticleAlignment, + __void__setParticleAlignment__Alignment); + I_SimpleProperty(osgParticle::ParticleSystem::ParticleScaleReferenceFrame, ParticleScaleReferenceFrame, + __ParticleScaleReferenceFrame__getParticleScaleReferenceFrame, + __void__setParticleScaleReferenceFrame__ParticleScaleReferenceFrame); + I_SimpleProperty(osgParticle::ParticleSystem::ReadWriterMutex *, ReadWriteMutex, + __ReadWriterMutex_P1__getReadWriteMutex, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/introspection/osgParticle/ParticleSystemUpdater.cpp new file mode 100644 index 000000000..61a14f4ed --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/ParticleSystemUpdater.cpp @@ -0,0 +1,136 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) + I_DeclaringFile("osgParticle/ParticleSystemUpdater"); + I_BaseType(osg::Node); + I_Constructor0(____ParticleSystemUpdater, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleSystemUpdater &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleSystemUpdater__C5_ParticleSystemUpdater_R1__C5_osg_CopyOp_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(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::VIRTUAL, + __bool__addParticleSystem__ParticleSystem_P1, + "Add a particle system to the list. ", + ""); + I_Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::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::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::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::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 &, x, + 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(). "); + I_ArrayProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem__unsigned_int, + __bool__setParticleSystem__unsigned_int__ParticleSystem_P1, + __unsigned_int__getNumParticleSystems, + __bool__addParticleSystem__ParticleSystem_P1, + 0, + __bool__removeParticleSystem__unsigned_int__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Placer.cpp b/src/osgWrappers/introspection/osgParticle/Placer.cpp new file mode 100644 index 000000000..08c2dbb9f --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Placer.cpp @@ -0,0 +1,66 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) + I_DeclaringFile("osgParticle/Placer"); + I_BaseType(osg::Object); + I_Constructor0(____Placer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Placer__C5_Placer_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/PointPlacer.cpp b/src/osgWrappers/introspection/osgParticle/PointPlacer.cpp new file mode 100644 index 000000000..a04235c5b --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/PointPlacer.cpp @@ -0,0 +1,76 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) + I_DeclaringFile("osgParticle/PointPlacer"); + I_BaseType(osgParticle::CenteredPlacer); + I_Constructor0(____PointPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PointPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PointPlacer__C5_PointPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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 ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/introspection/osgParticle/PrecipitationEffect.cpp new file mode 100644 index 000000000..525249a85 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/PrecipitationEffect.cpp @@ -0,0 +1,473 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect) + I_DeclaringFile("osgParticle/PrecipitationEffect"); + I_BaseType(osg::Node); + I_Constructor0(____PrecipitationEffect, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrecipitationEffect__C5_PrecipitationEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, x, + 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, + "", + ""); + I_ProtectedMethod1(void, compileGLObjects, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__compileGLObjects__osg_RenderInfo_R1, + "", + ""); + I_ProtectedMethod0(void, update, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__update, + "", + ""); + I_ProtectedMethod4(void, createGeometry, IN, unsigned int, numParticles, IN, osg::Geometry *, quad_geometry, IN, osg::Geometry *, line_geometry, IN, osg::Geometry *, point_geometry, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__createGeometry__unsigned_int__osg_Geometry_P1__osg_Geometry_P1__osg_Geometry_P1, + "", + ""); + I_ProtectedMethod1(void, setUpGeometries, IN, unsigned int, numParticles, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpGeometries__unsigned_int, + "", + ""); + + + I_SimpleProperty(const osg::Vec3 &, CellSize, + __C5_osg_Vec3_R1__getCellSize, + __void__setCellSize__C5_osg_Vec3_R1); + I_SimpleProperty(float, FarTransition, + __float__getFarTransition, + __void__setFarTransition__float); + I_SimpleProperty(osg::Fog *, Fog, + __osg_Fog_P1__getFog, + __void__setFog__osg_Fog_P1); + I_SimpleProperty(osg::Geometry *, LineGeometry, + __osg_Geometry_P1__getLineGeometry, + 0); + I_SimpleProperty(osg::StateSet *, LineStateSet, + __osg_StateSet_P1__getLineStateSet, + 0); + I_SimpleProperty(float, MaximumParticleDensity, + 0, + __void__setMaximumParticleDensity__float); + I_SimpleProperty(float, NearTransition, + __float__getNearTransition, + __void__setNearTransition__float); + I_SimpleProperty(const osg::Vec4 &, ParticleColor, + __C5_osg_Vec4_R1__getParticleColor, + __void__setParticleColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, ParticleSize, + __float__getParticleSize, + __void__setParticleSize__float); + I_SimpleProperty(float, ParticleSpeed, + __float__getParticleSpeed, + __void__setParticleSpeed__float); + I_SimpleProperty(osg::Geometry *, PointGeometry, + __osg_Geometry_P1__getPointGeometry, + 0); + I_SimpleProperty(osg::StateSet *, PointStateSet, + __osg_StateSet_P1__getPointStateSet, + 0); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osg::Geometry *, QuadGeometry, + __osg_Geometry_P1__getQuadGeometry, + 0); + I_SimpleProperty(osg::StateSet *, QuadStateSet, + __osg_StateSet_P1__getQuadStateSet, + 0); + I_SimpleProperty(bool, UseFarLineSegments, + __bool__getUseFarLineSegments, + __void__setUseFarLineSegments__bool); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); +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) + I_DeclaringFile("osgParticle/PrecipitationEffect"); + I_BaseType(osg::Drawable); + I_Constructor0(____PrecipitationDrawable, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::PrecipitationEffect::PrecipitationDrawable &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____PrecipitationDrawable__C5_PrecipitationDrawable_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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(RenderInfo&) 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 renderInfo The osg::RenderInfo object that encapsulates the current rendering information including the osg::State 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, + "", + ""); + I_SimpleProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, CurrentCellMatrixMap, + __CellMatrixMap_R1__getCurrentCellMatrixMap, + 0); + I_SimpleProperty(GLenum, DrawType, + __GLenum__getDrawType, + __void__setDrawType__GLenum); + I_SimpleProperty(osg::Geometry *, Geometry, + __osg_Geometry_P1__getGeometry, + __void__setGeometry__osg_Geometry_P1); + I_SimpleProperty(unsigned int, NumberOfVertices, + __unsigned_int__getNumberOfVertices, + __void__setNumberOfVertices__unsigned_int); + I_SimpleProperty(osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap &, PreviousCellMatrixMap, + __CellMatrixMap_R1__getPreviousCellMatrixMap, + 0); + I_SimpleProperty(bool, RequiresPreviousMatrix, + __bool__getRequiresPreviousMatrix, + __void__setRequiresPreviousMatrix__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell) + I_DeclaringFile("osgParticle/PrecipitationEffect"); + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, + "", + ""); + I_PublicMemberProperty(int, i); + I_PublicMemberProperty(int, j); + I_PublicMemberProperty(int, k); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) + I_DeclaringFile("osgParticle/PrecipitationEffect"); + I_Constructor0(____DepthMatrixStartTime, + "", + ""); + I_PublicMemberProperty(float, depth); + I_PublicMemberProperty(float, startTime); + I_PublicMemberProperty(osg::Matrix, modelview); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::LessFunctor) + I_DeclaringFile("osgParticle/PrecipitationEffect"); + I_Constructor0(____LessFunctor, + "", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >) + diff --git a/src/osgWrappers/introspection/osgParticle/Program.cpp b/src/osgWrappers/introspection/osgParticle/Program.cpp new file mode 100644 index 000000000..d8653c228 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Program.cpp @@ -0,0 +1,69 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) + I_DeclaringFile("osgParticle/Program"); + I_BaseType(osgParticle::ParticleProcessor); + I_Constructor0(____Program, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Program &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Program__C5_Program_R1__C5_osg_CopyOp_R1, + "", + ""); + 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_ProtectedMethod1(void, process, IN, double, dt, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__process__double, + "Implementation of ParticleProcessor::process(). Do not call this method by yourself. ", + ""); + I_ProtectedMethod1(void, execute, IN, double, dt, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__execute__double, + "Execute the program on the particle system. Must be overriden in descendant classes. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/RadialShooter.cpp b/src/osgWrappers/introspection/osgParticle/RadialShooter.cpp new file mode 100644 index 000000000..d445cf3f0 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/RadialShooter.cpp @@ -0,0 +1,141 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) + I_DeclaringFile("osgParticle/RadialShooter"); + I_BaseType(osgParticle::Shooter); + I_Constructor0(____RadialShooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::RadialShooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RadialShooter__C5_RadialShooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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. ", + ""); + I_SimpleProperty(const osgParticle::rangev3 &, InitialRotationalSpeedRange, + __C5_rangev3_R1__getInitialRotationalSpeedRange, + __void__setInitialRotationalSpeedRange__C5_rangev3_R1); + I_SimpleProperty(const osgParticle::rangef &, InitialSpeedRange, + __C5_rangef_R1__getInitialSpeedRange, + __void__setInitialSpeedRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, PhiRange, + __C5_rangef_R1__getPhiRange, + __void__setPhiRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, ThetaRange, + __C5_rangef_R1__getThetaRange, + __void__setThetaRange__C5_rangef_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/introspection/osgParticle/RandomRateCounter.cpp new file mode 100644 index 000000000..5ef437b8c --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/RandomRateCounter.cpp @@ -0,0 +1,66 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) + I_DeclaringFile("osgParticle/RandomRateCounter"); + I_BaseType(osgParticle::VariableRateCounter); + I_Constructor0(____RandomRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::RandomRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RandomRateCounter__C5_RandomRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(int, numParticlesToCreate, IN, double, dt, + Properties::VIRTUAL, + __int__numParticlesToCreate__double, + "Return the number of particles to be created in this frame. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/SectorPlacer.cpp b/src/osgWrappers/introspection/osgParticle/SectorPlacer.cpp new file mode 100644 index 000000000..e97710619 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/SectorPlacer.cpp @@ -0,0 +1,113 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) + I_DeclaringFile("osgParticle/SectorPlacer"); + I_BaseType(osgParticle::CenteredPlacer); + I_Constructor0(____SectorPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SectorPlacer__C5_SectorPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, 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_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 ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osgParticle::rangef &, PhiRange, + __C5_rangef_R1__getPhiRange, + __void__setPhiRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, RadiusRange, + __C5_rangef_R1__getRadiusRange, + __void__setRadiusRange__C5_rangef_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/introspection/osgParticle/SegmentPlacer.cpp new file mode 100644 index 000000000..63cd26e35 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/SegmentPlacer.cpp @@ -0,0 +1,117 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) + I_DeclaringFile("osgParticle/SegmentPlacer"); + I_BaseType(osgParticle::Placer); + I_Constructor0(____SegmentPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SegmentPlacer__C5_SegmentPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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 ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osg::Vec3 &, VertexA, + __C5_osg_Vec3_R1__getVertexA, + __void__setVertexA__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, VertexB, + __C5_osg_Vec3_R1__getVertexB, + __void__setVertexB__C5_osg_Vec3_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/Shooter.cpp b/src/osgWrappers/introspection/osgParticle/Shooter.cpp new file mode 100644 index 000000000..14b2b88ed --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/Shooter.cpp @@ -0,0 +1,57 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) + I_DeclaringFile("osgParticle/Shooter"); + I_BaseType(osg::Object); + I_Constructor0(____Shooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shooter__C5_Shooter_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/SmokeEffect.cpp b/src/osgWrappers/introspection/osgParticle/SmokeEffect.cpp new file mode 100644 index 000000000..35a6f52b6 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/SmokeEffect.cpp @@ -0,0 +1,112 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) + I_DeclaringFile("osgParticle/SmokeEffect"); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____SmokeEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeEffect__C5_SmokeEffect_R1__C5_osg_CopyOp_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(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, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/SmokeTrailEffect.cpp b/src/osgWrappers/introspection/osgParticle/SmokeTrailEffect.cpp new file mode 100644 index 000000000..394309e2e --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/SmokeTrailEffect.cpp @@ -0,0 +1,112 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect) + I_DeclaringFile("osgParticle/SmokeTrailEffect"); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____SmokeTrailEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeTrailEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeTrailEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeTrailEffect__C5_SmokeTrailEffect_R1__C5_osg_CopyOp_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(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, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/VariableRateCounter.cpp b/src/osgWrappers/introspection/osgParticle/VariableRateCounter.cpp new file mode 100644 index 000000000..13d4434c6 --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/VariableRateCounter.cpp @@ -0,0 +1,70 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::VariableRateCounter) + I_DeclaringFile("osgParticle/VariableRateCounter"); + I_BaseType(osgParticle::Counter); + I_Constructor0(____VariableRateCounter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::VariableRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VariableRateCounter__C5_VariableRateCounter_R1__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(const osgParticle::rangef &, RateRange, + __C5_rangef_R1__getRateRange, + __void__setRateRange__C5_rangef_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgParticle/range.cpp b/src/osgWrappers/introspection/osgParticle/range.cpp new file mode 100644 index 000000000..90dcb2b9b --- /dev/null +++ b/src/osgWrappers/introspection/osgParticle/range.cpp @@ -0,0 +1,165 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgParticle::range< float >, osgParticle::rangef) + +TYPE_NAME_ALIAS(osgParticle::range< osg::Vec2 >, osgParticle::rangev2) + +TYPE_NAME_ALIAS(osgParticle::range< osg::Vec3 >, osgParticle::rangev3) + +TYPE_NAME_ALIAS(osgParticle::range< osg::Vec4 >, osgParticle::rangev4) + +BEGIN_VALUE_REFLECTOR(osgParticle::range< float >) + I_DeclaringFile("osgParticle/range"); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const float &, mn, IN, const float &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "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, + "", + ""); + I_PublicMemberProperty(float, minimum); + I_PublicMemberProperty(float, maximum); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec2 >) + I_DeclaringFile("osgParticle/range"); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "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, + "", + ""); + I_PublicMemberProperty(osg::Vec2, minimum); + I_PublicMemberProperty(osg::Vec2, maximum); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec3 >) + I_DeclaringFile("osgParticle/range"); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "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, + "", + ""); + I_PublicMemberProperty(osg::Vec3, minimum); + I_PublicMemberProperty(osg::Vec3, maximum); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec4 >) + I_DeclaringFile("osgParticle/range"); + I_Constructor0(____range, + "Construct the object by calling default constructors for min and max. ", + ""); + I_Constructor2(IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx, + ____range__C5_ValueType_R1__C5_ValueType_R1, + "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, + "", + ""); + I_PublicMemberProperty(osg::Vec4, minimum); + I_PublicMemberProperty(osg::Vec4, maximum); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgPresentation/AnimationMaterial.cpp b/src/osgWrappers/introspection/osgPresentation/AnimationMaterial.cpp new file mode 100644 index 000000000..d84525cb4 --- /dev/null +++ b/src/osgWrappers/introspection/osgPresentation/AnimationMaterial.cpp @@ -0,0 +1,315 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgPresentation::AnimationMaterial::LoopMode) + I_DeclaringFile("osgPresentation/AnimationMaterial"); + I_EnumLabel(osgPresentation::AnimationMaterial::SWING); + I_EnumLabel(osgPresentation::AnimationMaterial::LOOP); + I_EnumLabel(osgPresentation::AnimationMaterial::NO_LOOPING); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< double COMMA osg::ref_ptr< osg::Material > >, osgPresentation::AnimationMaterial::TimeControlPointMap) + +BEGIN_OBJECT_REFLECTOR(osgPresentation::AnimationMaterial) + I_DeclaringFile("osgPresentation/AnimationMaterial"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____AnimationMaterial, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgPresentation::AnimationMaterial &, ap, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AnimationMaterial__C5_AnimationMaterial_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method2(bool, getMaterial, IN, double, time, IN, osg::Material &, material, + Properties::NON_VIRTUAL, + __bool__getMaterial__double__osg_Material_R1, + "get the transformation matrix for a point in time. ", + ""); + I_Method2(void, insert, IN, double, time, IN, osg::Material *, material, + Properties::NON_VIRTUAL, + __void__insert__double__osg_Material_P1, + "", + ""); + 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, osgPresentation::AnimationMaterial::LoopMode, lm, + Properties::NON_VIRTUAL, + __void__setLoopMode__LoopMode, + "", + ""); + I_Method0(osgPresentation::AnimationMaterial::LoopMode, getLoopMode, + Properties::NON_VIRTUAL, + __LoopMode__getLoopMode, + "", + ""); + I_Method0(osgPresentation::AnimationMaterial::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method0(const osgPresentation::AnimationMaterial::TimeControlPointMap &, getTimeControlPointMap, + Properties::NON_VIRTUAL, + __C5_TimeControlPointMap_R1__getTimeControlPointMap, + "", + ""); + I_Method1(void, read, IN, std::istream &, in, + Properties::NON_VIRTUAL, + __void__read__std_istream_R1, + "read the anumation 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 anumation path to a flat ascii file stream. ", + ""); + I_Method0(bool, requiresBlending, + Properties::NON_VIRTUAL, + __bool__requiresBlending, + "", + ""); + I_ProtectedMethod4(void, interpolate, IN, osg::Material &, material, IN, float, r, IN, const osg::Material &, lhs, IN, const osg::Material &, rhs, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__interpolate__osg_Material_R1__float__C5_osg_Material_R1__C5_osg_Material_R1, + "", + ""); + I_SimpleProperty(double, FirstTime, + __double__getFirstTime, + 0); + I_SimpleProperty(double, LastTime, + __double__getLastTime, + 0); + I_SimpleProperty(osgPresentation::AnimationMaterial::LoopMode, LoopMode, + __LoopMode__getLoopMode, + __void__setLoopMode__LoopMode); + I_SimpleProperty(double, Period, + __double__getPeriod, + 0); + I_SimpleProperty(osgPresentation::AnimationMaterial::TimeControlPointMap &, TimeControlPointMap, + __TimeControlPointMap_R1__getTimeControlPointMap, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgPresentation::AnimationMaterialCallback) + I_DeclaringFile("osgPresentation/AnimationMaterial"); + I_BaseType(osg::NodeCallback); + I_Constructor0(____AnimationMaterialCallback, + "", + ""); + I_Constructor2(IN, const osgPresentation::AnimationMaterialCallback &, apc, IN, const osg::CopyOp &, copyop, + ____AnimationMaterialCallback__C5_AnimationMaterialCallback_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_ConstructorWithDefaults3(IN, osgPresentation::AnimationMaterial *, ap, , IN, double, timeOffset, 0.0f, IN, double, timeMultiplier, 1.0f, + ____AnimationMaterialCallback__AnimationMaterial_P1__double__double, + "", + ""); + I_Method1(void, setAnimationMaterial, IN, osgPresentation::AnimationMaterial *, path, + Properties::NON_VIRTUAL, + __void__setAnimationMaterial__AnimationMaterial_P1, + "", + ""); + I_Method0(osgPresentation::AnimationMaterial *, getAnimationMaterial, + Properties::NON_VIRTUAL, + __AnimationMaterial_P1__getAnimationMaterial, + "", + ""); + I_Method0(const osgPresentation::AnimationMaterial *, getAnimationMaterial, + Properties::NON_VIRTUAL, + __C5_AnimationMaterial_P1__getAnimationMaterial, + "", + ""); + 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(double, getAnimationTime, + Properties::NON_VIRTUAL, + __double__getAnimationTime, + "get the animation time that is used to specify the position along the AnimationMaterial. ", + "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, + "", + ""); + I_SimpleProperty(osgPresentation::AnimationMaterial *, AnimationMaterial, + __AnimationMaterial_P1__getAnimationMaterial, + __void__setAnimationMaterial__AnimationMaterial_P1); + I_SimpleProperty(double, AnimationTime, + __double__getAnimationTime, + 0); + I_SimpleProperty(bool, Pause, + 0, + __void__setPause__bool); + I_SimpleProperty(double, TimeMultiplier, + __double__getTimeMultiplier, + __void__setTimeMultiplier__double); + I_SimpleProperty(double, TimeOffset, + __double__getTimeOffset, + __void__setTimeOffset__double); + I_PublicMemberProperty(osg::ref_ptr< osgPresentation::AnimationMaterial >, _animationMaterial); + I_PublicMemberProperty(bool, _useInverseMatrix); + I_PublicMemberProperty(double, _timeOffset); + I_PublicMemberProperty(double, _timeMultiplier); + I_PublicMemberProperty(double, _firstTime); + I_PublicMemberProperty(double, _latestTime); + I_PublicMemberProperty(bool, _pause); + I_PublicMemberProperty(double, _pauseTime); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Material >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Material *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Material > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Material *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Material *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Material > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Material *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< double COMMA osg::ref_ptr< osg::Material > >) + diff --git a/src/osgWrappers/introspection/osgPresentation/CompileSlideCallback.cpp b/src/osgWrappers/introspection/osgPresentation/CompileSlideCallback.cpp new file mode 100644 index 000000000..0e8f3d5fa --- /dev/null +++ b/src/osgWrappers/introspection/osgPresentation/CompileSlideCallback.cpp @@ -0,0 +1,37 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgPresentation::CompileSlideCallback) + I_DeclaringFile("osgPresentation/CompileSlideCallback"); + I_BaseType(osg::Camera::DrawCallback); + I_Constructor0(____CompileSlideCallback, + "", + ""); + I_Method1(void, needCompile, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__needCompile__osg_Node_P1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgPresentation/PickEventHandler.cpp b/src/osgWrappers/introspection/osgPresentation/PickEventHandler.cpp new file mode 100644 index 000000000..3d69325b5 --- /dev/null +++ b/src/osgWrappers/introspection/osgPresentation/PickEventHandler.cpp @@ -0,0 +1,150 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgPresentation::PickEventHandler) + I_DeclaringFile("osgPresentation/PickEventHandler"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults4(IN, osgPresentation::Operation, operation, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + ____PickEventHandler__osgPresentation_Operation__bool__int__int, + "", + ""); + I_ConstructorWithDefaults5(IN, const std::string &, str, , IN, osgPresentation::Operation, operation, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + ____PickEventHandler__C5_std_string_R1__osgPresentation_Operation__bool__int__int, + "", + ""); + I_ConstructorWithDefaults4(IN, const osgPresentation::KeyPosition &, keyPos, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + ____PickEventHandler__C5_osgPresentation_KeyPosition_R1__bool__int__int, + "", + ""); + I_Method1(void, setOperation, IN, osgPresentation::Operation, operation, + Properties::NON_VIRTUAL, + __void__setOperation__osgPresentation_Operation, + "", + ""); + I_Method0(osgPresentation::Operation, getOperation, + Properties::NON_VIRTUAL, + __osgPresentation_Operation__getOperation, + "", + ""); + I_Method1(void, setCommand, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __void__setCommand__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getCommand, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getCommand, + "", + ""); + I_Method1(void, setKeyPosition, IN, const osgPresentation::KeyPosition &, keyPos, + Properties::NON_VIRTUAL, + __void__setKeyPosition__C5_osgPresentation_KeyPosition_R1, + "", + ""); + I_Method0(const osgPresentation::KeyPosition &, getKeyPosition, + Properties::NON_VIRTUAL, + __C5_osgPresentation_KeyPosition_R1__getKeyPosition, + "", + ""); + I_Method2(void, setRelativeJump, IN, int, slideDelta, IN, int, layerDelta, + Properties::NON_VIRTUAL, + __void__setRelativeJump__int__int, + "", + ""); + I_Method2(void, setAbsoluteJump, IN, int, slideNum, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__setAbsoluteJump__int__int, + "", + ""); + I_Method0(bool, getRelativeJump, + Properties::NON_VIRTUAL, + __bool__getRelativeJump, + "", + ""); + I_Method0(int, getSlideNum, + Properties::NON_VIRTUAL, + __int__getSlideNum, + "", + ""); + I_Method0(int, getLayerNum, + Properties::NON_VIRTUAL, + __int__getLayerNum, + "", + ""); + I_Method0(bool, requiresJump, + Properties::NON_VIRTUAL, + __bool__requiresJump, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, v, + Properties::VIRTUAL, + __void__accept__osgGA_GUIEventHandlerVisitor_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(void, doOperation, + Properties::NON_VIRTUAL, + __void__doOperation, + "", + ""); + I_SimpleProperty(const std::string &, Command, + __C5_std_string_R1__getCommand, + __void__setCommand__C5_std_string_R1); + I_SimpleProperty(const osgPresentation::KeyPosition &, KeyPosition, + __C5_osgPresentation_KeyPosition_R1__getKeyPosition, + __void__setKeyPosition__C5_osgPresentation_KeyPosition_R1); + I_SimpleProperty(int, LayerNum, + __int__getLayerNum, + 0); + I_SimpleProperty(osgPresentation::Operation, Operation, + __osgPresentation_Operation__getOperation, + __void__setOperation__osgPresentation_Operation); + I_SimpleProperty(bool, RelativeJump, + __bool__getRelativeJump, + 0); + I_SimpleProperty(int, SlideNum, + __int__getSlideNum, + 0); + I_PublicMemberProperty(std::string, _command); + I_PublicMemberProperty(osgPresentation::KeyPosition, _keyPos); + I_PublicMemberProperty(osgPresentation::Operation, _operation); + I_PublicMemberProperty(bool, _relativeJump); + I_PublicMemberProperty(int, _slideNum); + I_PublicMemberProperty(int, _layerNum); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgPresentation/SlideEventHandler.cpp b/src/osgWrappers/introspection/osgPresentation/SlideEventHandler.cpp new file mode 100644 index 000000000..b70681785 --- /dev/null +++ b/src/osgWrappers/introspection/osgPresentation/SlideEventHandler.cpp @@ -0,0 +1,677 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osgPresentation::ObjectOperator > COMMA osgPresentation::dereference_less >, osgPresentation::ActiveOperators::OperatorList) + +BEGIN_VALUE_REFLECTOR(osgPresentation::ActiveOperators) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_Constructor0(____ActiveOperators, + "", + ""); + I_MethodWithDefaults2(void, collect, IN, osg::Node *, incommingNode, , IN, osg::NodeVisitor::TraversalMode, tm, osg::NodeVisitor::TRAVERSE_ACTIVE_CHILDREN, + Properties::NON_VIRTUAL, + __void__collect__osg_Node_P1__osg_NodeVisitor_TraversalMode, + "", + ""); + I_Method0(void, process, + Properties::NON_VIRTUAL, + __void__process, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + Properties::NON_VIRTUAL, + __void__setPause__bool, + "", + ""); + I_Method0(bool, getPause, + Properties::NON_VIRTUAL, + __bool__getPause, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_ProtectedMethod0(void, processOutgoing, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__processOutgoing, + "", + ""); + I_ProtectedMethod0(void, processIncomming, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__processIncomming, + "", + ""); + I_ProtectedMethod0(void, processMaintained, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__processMaintained, + "", + ""); + I_SimpleProperty(bool, Pause, + __bool__getPause, + __void__setPause__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::dereference_less) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_Constructor0(____dereference_less, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgPresentation::FilePathData) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_VirtualBaseType(osg::Referenced); + I_Constructor1(IN, const osgDB::FilePathList &, fpl, + Properties::NON_EXPLICIT, + ____FilePathData__C5_osgDB_FilePathList_R1, + "", + ""); + I_PublicMemberProperty(osgDB::FilePathList, filePathList); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgPresentation::HomePosition) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____HomePosition, + "", + ""); + I_Constructor3(IN, const osg::Vec3 &, in_eye, IN, const osg::Vec3 &, in_center, IN, const osg::Vec3 &, in_up, + ____HomePosition__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1, + "", + ""); + I_PublicMemberProperty(osg::Vec3, eye); + I_PublicMemberProperty(osg::Vec3, center); + I_PublicMemberProperty(osg::Vec3, up); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::KeyPosition) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_ConstructorWithDefaults3(IN, unsigned int, key, 0, IN, float, x, FLT_MAX, IN, float, y, FLT_MAX, + ____KeyPosition__unsigned_int__float__float, + "", + ""); + I_MethodWithDefaults3(void, set, IN, unsigned int, key, 0, IN, float, x, FLT_MAX, IN, float, y, FLT_MAX, + Properties::NON_VIRTUAL, + __void__set__unsigned_int__float__float, + "", + ""); + I_PublicMemberProperty(osgGA::GUIEventAdapter::KeySymbol, _key); + I_PublicMemberProperty(float, _x); + I_PublicMemberProperty(float, _y); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgPresentation::KeyPosition >, osgPresentation::LayerAttributes::Keys) + +TYPE_NAME_ALIAS(std::vector< std::string >, osgPresentation::LayerAttributes::RunStrings) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgPresentation::LayerCallback > >, osgPresentation::LayerAttributes::LayerCallbacks) + +BEGIN_OBJECT_REFLECTOR(osgPresentation::LayerAttributes) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____LayerAttributes, + "", + ""); + I_Constructor1(IN, double, in_duration, + Properties::NON_EXPLICIT, + ____LayerAttributes__double, + "", + ""); + I_Method1(void, setDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setDuration__double, + "", + ""); + I_Method0(double, getDuration, + Properties::NON_VIRTUAL, + __double__getDuration, + "", + ""); + I_Method1(void, setKeys, IN, const osgPresentation::LayerAttributes::Keys &, keys, + Properties::NON_VIRTUAL, + __void__setKeys__C5_Keys_R1, + "", + ""); + I_Method0(const osgPresentation::LayerAttributes::Keys &, getKeys, + Properties::NON_VIRTUAL, + __C5_Keys_R1__getKeys, + "", + ""); + I_Method1(void, addKey, IN, const osgPresentation::KeyPosition &, kp, + Properties::NON_VIRTUAL, + __void__addKey__C5_KeyPosition_R1, + "", + ""); + I_Method1(void, setRunStrings, IN, const osgPresentation::LayerAttributes::RunStrings &, runStrings, + Properties::NON_VIRTUAL, + __void__setRunStrings__C5_RunStrings_R1, + "", + ""); + I_Method0(const osgPresentation::LayerAttributes::RunStrings &, getRunStrings, + Properties::NON_VIRTUAL, + __C5_RunStrings_R1__getRunStrings, + "", + ""); + I_Method1(void, addRunString, IN, const std::string &, runString, + Properties::NON_VIRTUAL, + __void__addRunString__C5_std_string_R1, + "", + ""); + I_Method3(void, setJump, IN, bool, relativeJump, IN, int, slideNum, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__setJump__bool__int__int, + "", + ""); + I_Method0(bool, getRelativeJump, + Properties::NON_VIRTUAL, + __bool__getRelativeJump, + "", + ""); + I_Method0(int, getSlideNum, + Properties::NON_VIRTUAL, + __int__getSlideNum, + "", + ""); + I_Method0(int, getLayerNum, + Properties::NON_VIRTUAL, + __int__getLayerNum, + "", + ""); + I_Method0(bool, requiresJump, + Properties::NON_VIRTUAL, + __bool__requiresJump, + "", + ""); + I_Method1(void, addEnterCallback, IN, osgPresentation::LayerCallback *, lc, + Properties::NON_VIRTUAL, + __void__addEnterCallback__LayerCallback_P1, + "", + ""); + I_Method1(void, addLeaveCallback, IN, osgPresentation::LayerCallback *, lc, + Properties::NON_VIRTUAL, + __void__addLeaveCallback__LayerCallback_P1, + "", + ""); + I_Method1(void, callEnterCallbacks, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__callEnterCallbacks__osg_Node_P1, + "", + ""); + I_Method1(void, callLeaveCallbacks, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__callLeaveCallbacks__osg_Node_P1, + "", + ""); + I_SimpleProperty(double, Duration, + __double__getDuration, + __void__setDuration__double); + I_SimpleProperty(const osgPresentation::LayerAttributes::Keys &, Keys, + __C5_Keys_R1__getKeys, + __void__setKeys__C5_Keys_R1); + I_SimpleProperty(int, LayerNum, + __int__getLayerNum, + 0); + I_SimpleProperty(bool, RelativeJump, + __bool__getRelativeJump, + 0); + I_SimpleProperty(const osgPresentation::LayerAttributes::RunStrings &, RunStrings, + __C5_RunStrings_R1__getRunStrings, + __void__setRunStrings__C5_RunStrings_R1); + I_SimpleProperty(int, SlideNum, + __int__getSlideNum, + 0); + I_PublicMemberProperty(double, _duration); + I_PublicMemberProperty(osgPresentation::LayerAttributes::Keys, _keys); + I_PublicMemberProperty(osgPresentation::LayerAttributes::RunStrings, _runStrings); + I_PublicMemberProperty(bool, _relativeJump); + I_PublicMemberProperty(int, _slideNum); + I_PublicMemberProperty(int, _layerNum); + I_PublicMemberProperty(osgPresentation::LayerAttributes::LayerCallbacks, _enterLayerCallbacks); + I_PublicMemberProperty(osgPresentation::LayerAttributes::LayerCallbacks, _leaveLayerCallbacks); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgPresentation::LayerCallback) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_VirtualBaseType(osg::Referenced); + I_Constructor0(____LayerCallback, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgPresentation::ObjectOperator) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_BaseType(osg::Referenced); + I_Constructor0(____ObjectOperator, + "", + ""); + I_Method0(void *, ptr, + Properties::PURE_VIRTUAL, + __void_P1__ptr, + "", + ""); + I_Method0(void, enter, + Properties::PURE_VIRTUAL, + __void__enter, + "", + ""); + I_Method0(void, maintain, + Properties::PURE_VIRTUAL, + __void__maintain, + "", + ""); + I_Method0(void, leave, + Properties::PURE_VIRTUAL, + __void__leave, + "", + ""); + I_Method1(void, setPause, IN, bool, pause, + Properties::PURE_VIRTUAL, + __void__setPause__bool, + "", + ""); + I_Method0(void, reset, + Properties::PURE_VIRTUAL, + __void__reset, + "", + ""); + I_SimpleProperty(bool, Pause, + 0, + __void__setPause__bool); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgPresentation::SlideEventHandler::WhichPosition) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_EnumLabel(osgPresentation::SlideEventHandler::FIRST_POSITION); + I_EnumLabel(osgPresentation::SlideEventHandler::LAST_POSITION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgPresentation::SlideEventHandler::ObjectMask) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_EnumLabel(osgPresentation::SlideEventHandler::MOVIE); + I_EnumLabel(osgPresentation::SlideEventHandler::OBJECTS); + I_EnumLabel(osgPresentation::SlideEventHandler::ALL_OBJECTS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgPresentation::SlideEventHandler) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults1(IN, osgViewer::Viewer *, viewer, 0, + Properties::NON_EXPLICIT, + ____SlideEventHandler__osgViewer_Viewer_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 *, 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, set, IN, osg::Node *, model, + Properties::NON_VIRTUAL, + __void__set__osg_Node_P1, + "", + ""); + I_Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, v, + Properties::VIRTUAL, + __void__accept__osgGA_GUIEventHandlerVisitor_R1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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 &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(osgViewer::Viewer *, getViewer, + Properties::NON_VIRTUAL, + __osgViewer_Viewer_P1__getViewer, + "", + ""); + I_Method1(void, compileSlide, IN, unsigned int, slideNum, + Properties::NON_VIRTUAL, + __void__compileSlide__unsigned_int, + "", + ""); + I_Method1(void, releaseSlide, IN, unsigned int, slideNum, + Properties::NON_VIRTUAL, + __void__releaseSlide__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumSlides, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSlides, + "", + ""); + I_Method0(int, getActiveSlide, + Properties::NON_VIRTUAL, + __int__getActiveSlide, + "", + ""); + I_Method0(int, getActiveLayer, + Properties::NON_VIRTUAL, + __int__getActiveLayer, + "", + ""); + I_MethodWithDefaults2(bool, selectSlide, IN, int, slideNum, , IN, int, layerNum, osgPresentation::SlideEventHandler::FIRST_POSITION, + Properties::NON_VIRTUAL, + __bool__selectSlide__int__int, + "", + ""); + I_Method1(bool, selectLayer, IN, int, layerNum, + Properties::NON_VIRTUAL, + __bool__selectLayer__int, + "", + ""); + I_Method0(bool, nextLayerOrSlide, + Properties::NON_VIRTUAL, + __bool__nextLayerOrSlide, + "", + ""); + I_Method0(bool, previousLayerOrSlide, + Properties::NON_VIRTUAL, + __bool__previousLayerOrSlide, + "", + ""); + I_Method0(bool, nextSlide, + Properties::NON_VIRTUAL, + __bool__nextSlide, + "", + ""); + I_Method0(bool, previousSlide, + Properties::NON_VIRTUAL, + __bool__previousSlide, + "", + ""); + I_Method0(bool, nextLayer, + Properties::NON_VIRTUAL, + __bool__nextLayer, + "", + ""); + I_Method0(bool, previousLayer, + Properties::NON_VIRTUAL, + __bool__previousLayer, + "", + ""); + I_Method0(bool, home, + Properties::NON_VIRTUAL, + __bool__home, + "", + ""); + I_MethodWithDefaults1(void, setAutoSteppingActive, IN, bool, flag, true, + Properties::NON_VIRTUAL, + __void__setAutoSteppingActive__bool, + "", + ""); + I_Method0(bool, getAutoSteppingActive, + Properties::NON_VIRTUAL, + __bool__getAutoSteppingActive, + "", + ""); + I_Method1(void, setTimeDelayBetweenSlides, IN, double, dt, + Properties::NON_VIRTUAL, + __void__setTimeDelayBetweenSlides__double, + "", + ""); + I_Method0(double, getTimeDelayBetweenSlides, + Properties::NON_VIRTUAL, + __double__getTimeDelayBetweenSlides, + "", + ""); + I_Method1(double, getDuration, IN, const osg::Node *, node, + Properties::NON_VIRTUAL, + __double__getDuration__C5_osg_Node_P1, + "", + ""); + I_Method0(double, getCurrentTimeDelayBetweenSlides, + Properties::NON_VIRTUAL, + __double__getCurrentTimeDelayBetweenSlides, + "", + ""); + I_Method1(void, setReleaseAndCompileOnEachNewSlide, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setReleaseAndCompileOnEachNewSlide__bool, + "", + ""); + I_Method0(bool, getReleaseAndCompileOnEachNewSlide, + Properties::NON_VIRTUAL, + __bool__getReleaseAndCompileOnEachNewSlide, + "", + ""); + I_Method1(void, setTimeDelayOnNewSlideWithMovies, IN, float, t, + Properties::NON_VIRTUAL, + __void__setTimeDelayOnNewSlideWithMovies__float, + "", + ""); + I_Method0(float, getTimeDelayOnNewSlideWithMovies, + Properties::NON_VIRTUAL, + __float__getTimeDelayOnNewSlideWithMovies, + "", + ""); + I_Method1(void, setLoopPresentation, IN, bool, loop, + Properties::NON_VIRTUAL, + __void__setLoopPresentation__bool, + "", + ""); + I_Method0(bool, getLoopPresentation, + Properties::NON_VIRTUAL, + __bool__getLoopPresentation, + "", + ""); + I_Method1(void, dispatchEvent, IN, const osgPresentation::KeyPosition &, keyPosition, + Properties::NON_VIRTUAL, + __void__dispatchEvent__C5_KeyPosition_R1, + "", + ""); + I_StaticMethod0(osgPresentation::SlideEventHandler *, instance, + __SlideEventHandler_P1__instance_S, + "", + ""); + I_ProtectedConstructor2(IN, const osgPresentation::SlideEventHandler &, x, IN, const osg::CopyOp &, x, + ____SlideEventHandler__C5_SlideEventHandler_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod2(bool, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__home__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_ProtectedMethod4(void, updateAlpha, IN, bool, x, IN, bool, x, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateAlpha__bool__bool__float__float, + "", + ""); + I_ProtectedMethod2(void, updateLight, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateLight__float__float, + "", + ""); + I_ProtectedMethod0(void, updateOperators, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateOperators, + "", + ""); + I_SimpleProperty(int, ActiveLayer, + __int__getActiveLayer, + 0); + I_SimpleProperty(int, ActiveSlide, + __int__getActiveSlide, + 0); + I_SimpleProperty(bool, AutoSteppingActive, + __bool__getAutoSteppingActive, + __void__setAutoSteppingActive__bool); + I_SimpleProperty(double, CurrentTimeDelayBetweenSlides, + __double__getCurrentTimeDelayBetweenSlides, + 0); + I_SimpleProperty(bool, LoopPresentation, + __bool__getLoopPresentation, + __void__setLoopPresentation__bool); + I_SimpleProperty(bool, ReleaseAndCompileOnEachNewSlide, + __bool__getReleaseAndCompileOnEachNewSlide, + __void__setReleaseAndCompileOnEachNewSlide__bool); + I_SimpleProperty(double, TimeDelayBetweenSlides, + __double__getTimeDelayBetweenSlides, + __void__setTimeDelayBetweenSlides__double); + I_SimpleProperty(float, TimeDelayOnNewSlideWithMovies, + __float__getTimeDelayOnNewSlideWithMovies, + __void__setTimeDelayOnNewSlideWithMovies__float); + I_SimpleProperty(osgViewer::Viewer *, Viewer, + __osgViewer_Viewer_P1__getViewer, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgPresentation::Operation) + I_DeclaringFile("osgPresentation/SlideEventHandler"); + I_EnumLabel(osgPresentation::RUN); + I_EnumLabel(osgPresentation::LOAD); + I_EnumLabel(osgPresentation::EVENT); + I_EnumLabel(osgPresentation::JUMP); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgPresentation::LayerCallback >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgPresentation::LayerCallback *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgPresentation::LayerCallback > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgPresentation::LayerCallback *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgPresentation::LayerCallback *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgPresentation::LayerCallback > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgPresentation::LayerCallback *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgPresentation::ObjectOperator >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgPresentation::ObjectOperator *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgPresentation::ObjectOperator > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgPresentation::ObjectOperator *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgPresentation::ObjectOperator *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgPresentation::ObjectOperator > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgPresentation::ObjectOperator *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgPresentation::LayerCallback > >) + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osgPresentation::ObjectOperator > COMMA osgPresentation::dereference_less >) + +STD_VECTOR_REFLECTOR(std::vector< osgPresentation::KeyPosition >) + diff --git a/src/osgWrappers/introspection/osgPresentation/SlideShowConstructor.cpp b/src/osgWrappers/introspection/osgPresentation/SlideShowConstructor.cpp new file mode 100644 index 000000000..6ba0cc8bd --- /dev/null +++ b/src/osgWrappers/introspection/osgPresentation/SlideShowConstructor.cpp @@ -0,0 +1,635 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgPresentation::SlideShowConstructor::CoordinateFrame) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_EnumLabel(osgPresentation::SlideShowConstructor::SLIDE); + I_EnumLabel(osgPresentation::SlideShowConstructor::MODEL); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Method1(osgPresentation::LayerAttributes *, getOrCreateLayerAttributes, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __LayerAttributes_P1__getOrCreateLayerAttributes__osg_Node_P1, + "", + ""); + I_Method2(void, setDuration, IN, osg::Node *, node, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setDuration__osg_Node_P1__double, + "", + ""); + I_Method2(void, addKey, IN, osg::Node *, node, IN, const osgPresentation::KeyPosition &, kp, + Properties::NON_VIRTUAL, + __void__addKey__osg_Node_P1__C5_KeyPosition_R1, + "", + ""); + I_Method2(void, addRunString, IN, osg::Node *, node, IN, const std::string &, runString, + Properties::NON_VIRTUAL, + __void__addRunString__osg_Node_P1__C5_std_string_R1, + "", + ""); + I_Method4(void, setJump, IN, osg::Node *, node, IN, bool, relativeJump, IN, int, slideNum, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__setJump__osg_Node_P1__bool__int__int, + "", + ""); + I_Method1(void, addPresentationKey, IN, const osgPresentation::KeyPosition &, kp, + Properties::NON_VIRTUAL, + __void__addPresentationKey__C5_KeyPosition_R1, + "", + ""); + I_Method1(void, addPresentationRunString, IN, const std::string &, runString, + Properties::NON_VIRTUAL, + __void__addPresentationRunString__C5_std_string_R1, + "", + ""); + I_Method1(void, addSlideKey, IN, const osgPresentation::KeyPosition &, kp, + Properties::NON_VIRTUAL, + __void__addSlideKey__C5_KeyPosition_R1, + "", + ""); + I_Method1(void, addSlideRunString, IN, const std::string &, runString, + Properties::NON_VIRTUAL, + __void__addSlideRunString__C5_std_string_R1, + "", + ""); + I_Method3(void, setSlideJump, IN, bool, relativeJump, IN, int, switchNum, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__setSlideJump__bool__int__int, + "", + ""); + I_Method1(void, addLayerKey, IN, const osgPresentation::KeyPosition &, kp, + Properties::NON_VIRTUAL, + __void__addLayerKey__C5_KeyPosition_R1, + "", + ""); + I_Method1(void, addLayerRunString, IN, const std::string &, runString, + Properties::NON_VIRTUAL, + __void__addLayerRunString__C5_std_string_R1, + "", + ""); + I_Method3(void, setLayerJump, IN, bool, relativeJump, IN, int, switchNum, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__setLayerJump__bool__int__int, + "", + ""); + I_Constructor1(IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_EXPLICIT, + ____SlideShowConstructor__C5_osgDB_ReaderWriter_Options_P1, + "", + ""); + I_Method0(void, createPresentation, + Properties::NON_VIRTUAL, + __void__createPresentation, + "", + ""); + I_Method2(void, setBackgroundColor, IN, const osg::Vec4 &, color, IN, bool, updateClearNode, + Properties::NON_VIRTUAL, + __void__setBackgroundColor__C5_osg_Vec4_R1__bool, + "", + ""); + I_Method0(const osg::Vec4 &, getBackgroundColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getBackgroundColor, + "", + ""); + I_Method1(void, setTextColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setTextColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getTextColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getTextColor, + "", + ""); + I_Method1(void, setPresentationName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setPresentationName__C5_std_string_R1, + "", + ""); + I_Method1(void, setPresentationAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, + __void__setPresentationAspectRatio__float, + "", + ""); + I_Method1(void, setPresentationAspectRatio, IN, const std::string &, str, + Properties::NON_VIRTUAL, + __void__setPresentationAspectRatio__C5_std_string_R1, + "", + ""); + I_Method1(void, setPresentationDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setPresentationDuration__double, + "", + ""); + I_Method0(void, addSlide, + Properties::NON_VIRTUAL, + __void__addSlide, + "", + ""); + I_Method1(void, selectSlide, IN, int, slideNum, + Properties::NON_VIRTUAL, + __void__selectSlide__int, + "", + ""); + I_Method3(void, setSlideTitle, IN, const std::string &, name, IN, osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, osgPresentation::SlideShowConstructor::FontData &, fontData, + Properties::NON_VIRTUAL, + __void__setSlideTitle__C5_std_string_R1__PositionData_R1__FontData_R1, + "", + ""); + I_Method1(void, setSlideBackground, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setSlideBackground__C5_std_string_R1, + "", + ""); + I_Method1(void, setSlideDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setSlideDuration__double, + "", + ""); + I_MethodWithDefaults2(void, addLayer, IN, bool, inheritPreviousLayers, true, IN, bool, defineAsBaseLayer, false, + Properties::NON_VIRTUAL, + __void__addLayer__bool__bool, + "", + ""); + I_Method1(void, selectLayer, IN, int, layerNum, + Properties::NON_VIRTUAL, + __void__selectLayer__int, + "", + ""); + I_Method1(void, setLayerDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setLayerDuration__double, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::FontData &, getTitleFontData, + Properties::NON_VIRTUAL, + __FontData_R1__getTitleFontData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::FontData &, getTitleFontDataDefault, + Properties::NON_VIRTUAL, + __FontData_R1__getTitleFontDataDefault, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getTitlePositionData, + Properties::NON_VIRTUAL, + __PositionData_R1__getTitlePositionData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getTitlePositionDataDefault, + Properties::NON_VIRTUAL, + __PositionData_R1__getTitlePositionDataDefault, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::FontData &, getTextFontData, + Properties::NON_VIRTUAL, + __FontData_R1__getTextFontData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::FontData &, getTextFontDataDefault, + Properties::NON_VIRTUAL, + __FontData_R1__getTextFontDataDefault, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getTextPositionData, + Properties::NON_VIRTUAL, + __PositionData_R1__getTextPositionData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getTextPositionDataDefault, + Properties::NON_VIRTUAL, + __PositionData_R1__getTextPositionDataDefault, + "", + ""); + I_Method1(void, translateTextCursor, IN, const osg::Vec3 &, delta, + Properties::NON_VIRTUAL, + __void__translateTextCursor__C5_osg_Vec3_R1, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getImagePositionData, + Properties::NON_VIRTUAL, + __PositionData_R1__getImagePositionData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getImagePositionDataDefault, + Properties::NON_VIRTUAL, + __PositionData_R1__getImagePositionDataDefault, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getModelPositionData, + Properties::NON_VIRTUAL, + __PositionData_R1__getModelPositionData, + "", + ""); + I_Method0(osgPresentation::SlideShowConstructor::PositionData &, getModelPositionDataDefault, + Properties::NON_VIRTUAL, + __PositionData_R1__getModelPositionDataDefault, + "", + ""); + I_MethodWithDefaults4(void, layerClickToDoOperation, IN, osgPresentation::Operation, operation, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + Properties::NON_VIRTUAL, + __void__layerClickToDoOperation__Operation__bool__int__int, + "", + ""); + I_MethodWithDefaults5(void, layerClickToDoOperation, IN, const std::string &, command, , IN, osgPresentation::Operation, operation, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + Properties::NON_VIRTUAL, + __void__layerClickToDoOperation__C5_std_string_R1__Operation__bool__int__int, + "", + ""); + I_MethodWithDefaults4(void, layerClickEventOperation, IN, const osgPresentation::KeyPosition &, keyPos, , IN, bool, relativeJump, true, IN, int, slideNum, 0, IN, int, layerNum, 0, + Properties::NON_VIRTUAL, + __void__layerClickEventOperation__C5_KeyPosition_R1__bool__int__int, + "", + ""); + I_Method3(void, addBullet, IN, const std::string &, bullet, IN, osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, osgPresentation::SlideShowConstructor::FontData &, fontData, + Properties::NON_VIRTUAL, + __void__addBullet__C5_std_string_R1__PositionData_R1__FontData_R1, + "", + ""); + I_Method3(void, addParagraph, IN, const std::string &, paragraph, IN, osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, osgPresentation::SlideShowConstructor::FontData &, fontData, + Properties::NON_VIRTUAL, + __void__addParagraph__C5_std_string_R1__PositionData_R1__FontData_R1, + "", + ""); + I_Method3(void, addImage, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, + Properties::NON_VIRTUAL, + __void__addImage__C5_std_string_R1__C5_PositionData_R1__C5_ImageData_R1, + "", + ""); + I_Method5(void, addStereoImagePair, IN, const std::string &, filenameLeft, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageDataLeft, IN, const std::string &, filenameRight, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageDataRight, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, + Properties::NON_VIRTUAL, + __void__addStereoImagePair__C5_std_string_R1__C5_ImageData_R1__C5_std_string_R1__C5_ImageData_R1__C5_PositionData_R1, + "", + ""); + I_Method3(void, addVNC, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, + Properties::NON_VIRTUAL, + __void__addVNC__C5_std_string_R1__C5_PositionData_R1__C5_ImageData_R1, + "", + ""); + I_Method3(void, addBrowser, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, + Properties::NON_VIRTUAL, + __void__addBrowser__C5_std_string_R1__C5_PositionData_R1__C5_ImageData_R1, + "", + ""); + I_Method3(void, addPDF, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, + Properties::NON_VIRTUAL, + __void__addPDF__C5_std_string_R1__C5_PositionData_R1__C5_ImageData_R1, + "", + ""); + I_Method3(osg::Image *, addInteractiveImage, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, + Properties::NON_VIRTUAL, + __osg_Image_P1__addInteractiveImage__C5_std_string_R1__C5_PositionData_R1__C5_ImageData_R1, + "", + ""); + I_Method3(void, addModel, IN, osg::Node *, subgraph, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ModelData &, modelData, + Properties::NON_VIRTUAL, + __void__addModel__osg_Node_P1__C5_PositionData_R1__C5_ModelData_R1, + "", + ""); + I_Method3(void, addModel, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::ModelData &, modelData, + Properties::NON_VIRTUAL, + __void__addModel__C5_std_string_R1__C5_PositionData_R1__C5_ModelData_R1, + "", + ""); + I_Method3(void, addVolume, IN, const std::string &, filename, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, IN, const osgPresentation::SlideShowConstructor::VolumeData &, volumeData, + Properties::NON_VIRTUAL, + __void__addVolume__C5_std_string_R1__C5_PositionData_R1__C5_VolumeData_R1, + "", + ""); + I_Method0(osg::Group *, takePresentation, + Properties::NON_VIRTUAL, + __osg_Group_P1__takePresentation, + "", + ""); + I_Method0(osg::Group *, getPresentation, + Properties::NON_VIRTUAL, + __osg_Group_P1__getPresentation, + "", + ""); + I_Method0(osg::Switch *, getPresentationSwitch, + Properties::NON_VIRTUAL, + __osg_Switch_P1__getPresentationSwitch, + "", + ""); + I_Method0(osg::Switch *, getCurrentSlide, + Properties::NON_VIRTUAL, + __osg_Switch_P1__getCurrentSlide, + "", + ""); + I_Method0(osg::Group *, getCurrentLayer, + Properties::NON_VIRTUAL, + __osg_Group_P1__getCurrentLayer, + "", + ""); + I_Method1(void, setLoopPresentation, IN, bool, loop, + Properties::NON_VIRTUAL, + __void__setLoopPresentation__bool, + "", + ""); + I_Method0(bool, getLoopPresentation, + Properties::NON_VIRTUAL, + __bool__getLoopPresentation, + "", + ""); + I_MethodWithDefaults1(void, setAutoSteppingActive, IN, bool, flag, true, + Properties::NON_VIRTUAL, + __void__setAutoSteppingActive__bool, + "", + ""); + I_Method0(bool, getAutoSteppingActive, + Properties::NON_VIRTUAL, + __bool__getAutoSteppingActive, + "", + ""); + I_ProtectedMethod1(void, findImageStreamsAndAddCallbacks, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__findImageStreamsAndAddCallbacks__osg_Node_P1, + "", + ""); + I_ProtectedMethod6(osg::Geometry *, createTexturedQuadGeometry, IN, const osg::Vec3 &, pos, IN, const osg::Vec4 &, rotation, IN, float, width, IN, float, height, IN, osg::Image *, image, IN, bool &, usedTextureRectangle, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createTexturedQuadGeometry__C5_osg_Vec3_R1__C5_osg_Vec4_R1__float__float__osg_Image_P1__bool_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec3, computePositionInModelCoords, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_Vec3__computePositionInModelCoords__C5_PositionData_R1, + "", + ""); + I_ProtectedMethod2(void, updatePositionFromInModelCoords, IN, const osg::Vec3 &, vertex, IN, osgPresentation::SlideShowConstructor::PositionData &, positionData, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__updatePositionFromInModelCoords__C5_osg_Vec3_R1__PositionData_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec3, convertSlideToModel, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_Vec3__convertSlideToModel__C5_osg_Vec3_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec3, convertModelToSlide, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_Vec3__convertModelToSlide__C5_osg_Vec3_R1, + "", + ""); + I_ProtectedMethod1(osg::AnimationPathCallback *, getAnimationPathCallback, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_AnimationPathCallback_P1__getAnimationPathCallback__C5_PositionData_R1, + "", + ""); + I_ProtectedMethod2(osg::Node *, attachMaterialAnimation, IN, osg::Node *, model, IN, const osgPresentation::SlideShowConstructor::PositionData &, positionData, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Node_P1__attachMaterialAnimation__osg_Node_P1__C5_PositionData_R1, + "", + ""); + I_ProtectedMethod5(bool, attachTexMat, IN, osg::StateSet *, stateset, IN, const osgPresentation::SlideShowConstructor::ImageData &, imageData, IN, float, s, IN, float, t, IN, bool, textureRectangle, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__attachTexMat__osg_StateSet_P1__C5_ImageData_R1__float__float__bool, + "", + ""); + I_ProtectedMethod0(osg::StateSet *, createTransformStateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_StateSet_P1__createTransformStateSet, + "", + ""); + I_ProtectedMethod1(std::string, findFileAndRecordPath, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __std_string__findFileAndRecordPath__C5_std_string_R1, + "", + ""); + I_ProtectedMethod1(void, recordOptionsFilePath, IN, const osgDB::Options *, options, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__recordOptionsFilePath__C5_osgDB_Options_P1, + "", + ""); + I_SimpleProperty(bool, AutoSteppingActive, + __bool__getAutoSteppingActive, + __void__setAutoSteppingActive__bool); + I_SimpleProperty(const osg::Vec4 &, BackgroundColor, + __C5_osg_Vec4_R1__getBackgroundColor, + 0); + I_SimpleProperty(osg::Group *, CurrentLayer, + __osg_Group_P1__getCurrentLayer, + 0); + I_SimpleProperty(osg::Switch *, CurrentSlide, + __osg_Switch_P1__getCurrentSlide, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, ImagePositionData, + __PositionData_R1__getImagePositionData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, ImagePositionDataDefault, + __PositionData_R1__getImagePositionDataDefault, + 0); + I_SimpleProperty(double, LayerDuration, + 0, + __void__setLayerDuration__double); + I_SimpleProperty(bool, LoopPresentation, + __bool__getLoopPresentation, + __void__setLoopPresentation__bool); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, ModelPositionData, + __PositionData_R1__getModelPositionData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, ModelPositionDataDefault, + __PositionData_R1__getModelPositionDataDefault, + 0); + I_SimpleProperty(osg::Group *, Presentation, + __osg_Group_P1__getPresentation, + 0); + I_SimpleProperty(float, PresentationAspectRatio, + 0, + __void__setPresentationAspectRatio__float); + I_SimpleProperty(double, PresentationDuration, + 0, + __void__setPresentationDuration__double); + I_SimpleProperty(const std::string &, PresentationName, + 0, + __void__setPresentationName__C5_std_string_R1); + I_SimpleProperty(osg::Switch *, PresentationSwitch, + __osg_Switch_P1__getPresentationSwitch, + 0); + I_SimpleProperty(const std::string &, SlideBackground, + 0, + __void__setSlideBackground__C5_std_string_R1); + I_SimpleProperty(double, SlideDuration, + 0, + __void__setSlideDuration__double); + I_SimpleProperty(const osg::Vec4 &, TextColor, + __C5_osg_Vec4_R1__getTextColor, + __void__setTextColor__C5_osg_Vec4_R1); + I_SimpleProperty(osgPresentation::SlideShowConstructor::FontData &, TextFontData, + __FontData_R1__getTextFontData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::FontData &, TextFontDataDefault, + __FontData_R1__getTextFontDataDefault, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, TextPositionData, + __PositionData_R1__getTextPositionData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, TextPositionDataDefault, + __PositionData_R1__getTextPositionDataDefault, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::FontData &, TitleFontData, + __FontData_R1__getTitleFontData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::FontData &, TitleFontDataDefault, + __FontData_R1__getTitleFontDataDefault, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, TitlePositionData, + __PositionData_R1__getTitlePositionData, + 0); + I_SimpleProperty(osgPresentation::SlideShowConstructor::PositionData &, TitlePositionDataDefault, + __PositionData_R1__getTitlePositionDataDefault, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor::FontData) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Constructor0(____FontData, + "", + ""); + I_PublicMemberProperty(std::string, font); + I_PublicMemberProperty(osgText::Text::Layout, layout); + I_PublicMemberProperty(osgText::Text::AlignmentType, alignment); + I_PublicMemberProperty(osgText::Text::AxisAlignment, axisAlignment); + I_PublicMemberProperty(float, characterSize); + I_PublicMemberProperty(float, maximumHeight); + I_PublicMemberProperty(float, maximumWidth); + I_PublicMemberProperty(osg::Vec4, color); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor::ImageData) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Constructor0(____ImageData, + "", + ""); + I_PublicMemberProperty(float, width); + I_PublicMemberProperty(float, height); + I_PublicMemberProperty(osg::Vec4, region); + I_PublicMemberProperty(bool, region_in_pixel_coords); + I_PublicMemberProperty(float, texcoord_rotate); + I_PublicMemberProperty(osg::ImageStream::LoopingMode, loopingMode); + I_PublicMemberProperty(int, page); + I_PublicMemberProperty(osg::Vec4, backgroundColor); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor::ModelData) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Constructor0(____ModelData, + "", + ""); + I_PublicMemberProperty(std::string, effect); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor::PositionData) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Constructor0(____PositionData, + "", + ""); + I_Method0(bool, requiresPosition, + Properties::NON_VIRTUAL, + __bool__requiresPosition, + "", + ""); + I_Method0(bool, requiresScale, + Properties::NON_VIRTUAL, + __bool__requiresScale, + "", + ""); + I_Method0(bool, requiresRotate, + Properties::NON_VIRTUAL, + __bool__requiresRotate, + "", + ""); + I_Method0(bool, requiresAnimation, + Properties::NON_VIRTUAL, + __bool__requiresAnimation, + "", + ""); + I_Method0(bool, requiresMaterialAnimation, + Properties::NON_VIRTUAL, + __bool__requiresMaterialAnimation, + "", + ""); + I_PublicMemberProperty(osgPresentation::SlideShowConstructor::CoordinateFrame, frame); + I_PublicMemberProperty(osg::Vec3, position); + I_PublicMemberProperty(osg::Vec3, scale); + I_PublicMemberProperty(osg::Vec4, rotate); + I_PublicMemberProperty(osg::Vec4, rotation); + I_PublicMemberProperty(std::string, animation_name); + I_PublicMemberProperty(bool, absolute_path); + I_PublicMemberProperty(bool, inverse_path); + I_PublicMemberProperty(double, path_time_offset); + I_PublicMemberProperty(double, path_time_multiplier); + I_PublicMemberProperty(osg::AnimationPath::LoopMode, path_loop_mode); + I_PublicMemberProperty(std::string, path); + I_PublicMemberProperty(double, animation_material_time_offset); + I_PublicMemberProperty(double, animation_material_time_multiplier); + I_PublicMemberProperty(osgPresentation::AnimationMaterial::LoopMode, animation_material_loop_mode); + I_PublicMemberProperty(std::string, animation_material_filename); + I_PublicMemberProperty(std::string, fade); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgPresentation::SlideShowConstructor::VolumeData::ShadingModel) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_EnumLabel(osgPresentation::SlideShowConstructor::VolumeData::Standard); + I_EnumLabel(osgPresentation::SlideShowConstructor::VolumeData::Light); + I_EnumLabel(osgPresentation::SlideShowConstructor::VolumeData::Isosurface); + I_EnumLabel(osgPresentation::SlideShowConstructor::VolumeData::MaximumIntensityProjection); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgPresentation::SlideShowConstructor::VolumeData) + I_DeclaringFile("osgPresentation/SlideShowConstructor"); + I_Constructor0(____VolumeData, + "", + ""); + I_PublicMemberProperty(osgPresentation::SlideShowConstructor::VolumeData::ShadingModel, shadingModel); + I_PublicMemberProperty(osg::ref_ptr< osg::TransferFunction1D >, transferFunction); + I_PublicMemberProperty(bool, useTabbedDragger); + I_PublicMemberProperty(bool, useTrackballDragger); + I_PublicMemberProperty(bool, region_in_pixel_coords); + I_PublicMemberProperty(float, alphaValue); + I_PublicMemberProperty(float, cutoffValue); + I_PublicMemberProperty(float, sampleDensityValue); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ConvexPolyhedron.cpp b/src/osgWrappers/introspection/osgShadow/ConvexPolyhedron.cpp new file mode 100644 index 000000000..4455e3189 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ConvexPolyhedron.cpp @@ -0,0 +1,168 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgShadow::ConvexPolyhedron::Vertices) + +TYPE_NAME_ALIAS(std::list< osgShadow::ConvexPolyhedron::Face >, osgShadow::ConvexPolyhedron::Faces) + +BEGIN_VALUE_REFLECTOR(osgShadow::ConvexPolyhedron) + I_DeclaringFile("osgShadow/ConvexPolyhedron"); + I_Constructor0(____ConvexPolyhedron, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Matrix &, matrix, , IN, const osg::Matrix &, inverse, , IN, const osg::BoundingBox &, bb, osg::BoundingBox(-1,-1,-1, 1, 1, 1), + ____ConvexPolyhedron__C5_osg_Matrix_R1__C5_osg_Matrix_R1__C5_osg_BoundingBox_R1, + "", + ""); + I_Method0(osgShadow::ConvexPolyhedron::Face &, createFace, + Properties::NON_VIRTUAL, + __Face_R1__createFace, + "", + ""); + 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, + "", + ""); + I_Method1(void, setToBoundingBox, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __void__setToBoundingBox__C5_osg_BoundingBox_R1, + "", + ""); + I_Method2(void, transform, IN, const osg::Matrix &, matrix, IN, const osg::Matrix &, inverse, + Properties::NON_VIRTUAL, + __void__transform__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method2(void, transformClip, IN, const osg::Matrix &, matrix, IN, const osg::Matrix &, inverse, + Properties::NON_VIRTUAL, + __void__transformClip__C5_osg_Matrix_R1__C5_osg_Matrix_R1, + "", + ""); + I_Method3(bool, mergeFaces, IN, const osgShadow::ConvexPolyhedron::Face &, face0, IN, const osgShadow::ConvexPolyhedron::Face &, face1, IN, osgShadow::ConvexPolyhedron::Face &, face, + Properties::NON_VIRTUAL, + __bool__mergeFaces__C5_Face_R1__C5_Face_R1__Face_R1, + "", + ""); + I_MethodWithDefaults2(void, mergeCoplanarFaces, IN, const double &, plane_normal_dot_tolerance, 0.0, IN, const double &, plane_distance_tolerance, 0.0, + Properties::NON_VIRTUAL, + __void__mergeCoplanarFaces__C5_double_R1__C5_double_R1, + "", + ""); + I_Method0(void, removeDuplicateVertices, + Properties::NON_VIRTUAL, + __void__removeDuplicateVertices, + "", + ""); + I_MethodWithDefaults2(bool, checkCoherency, IN, bool, checkForNonConvexPolys, false, IN, const char *, errorPrefix, NULL, + Properties::NON_VIRTUAL, + __bool__checkCoherency__bool__C5_char_P1, + "", + ""); + I_Method1(void, cut, IN, const osg::Polytope &, polytope, + Properties::NON_VIRTUAL, + __void__cut__C5_osg_Polytope_R1, + "", + ""); + I_Method1(void, cut, IN, const osgShadow::ConvexPolyhedron &, polytope, + Properties::NON_VIRTUAL, + __void__cut__C5_ConvexPolyhedron_R1, + "", + ""); + I_MethodWithDefaults2(void, cut, IN, const osg::Plane &, plane, , IN, const std::string &, name, std::string(), + Properties::NON_VIRTUAL, + __void__cut__C5_osg_Plane_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, extrude, IN, const osg::Vec3d &, offset, + Properties::NON_VIRTUAL, + __void__extrude__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, translate, IN, const osg::Vec3d &, offset, + Properties::NON_VIRTUAL, + __void__translate__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(void, getPolytope, IN, osg::Polytope &, polytope, + Properties::NON_VIRTUAL, + __void__getPolytope__osg_Polytope_R1, + "", + ""); + I_Method1(void, getPoints, IN, osgShadow::ConvexPolyhedron::Vertices &, vertices, + Properties::NON_VIRTUAL, + __void__getPoints__Vertices_R1, + "", + ""); + I_MethodWithDefaults1(osg::BoundingBox, computeBoundingBox, IN, const osg::Matrix &, m, osgShadow::ConvexPolyhedron::defaultMatrix, + Properties::NON_VIRTUAL, + __osg_BoundingBox__computeBoundingBox__C5_osg_Matrix_R1, + "", + ""); + I_MethodWithDefaults3(osg::Geometry *, buildGeometry, IN, const osg::Vec4d &, colorOutline, , IN, const osg::Vec4d &, colorInside, , IN, osg::Geometry *, useGeometry, NULL, + Properties::NON_VIRTUAL, + __osg_Geometry_P1__buildGeometry__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__osg_Geometry_P1, + "", + ""); + I_MethodWithDefaults12(bool, dumpGeometry, IN, const osgShadow::ConvexPolyhedron::Face *, face, NULL, IN, const osg::Plane *, plane, NULL, IN, osgShadow::ConvexPolyhedron *, basehull, NULL, IN, const char *, filename, "convexpolyhedron.osg", IN, const osg::Vec4d &, colorOutline, osg::Vec4(0, 1, 0, 0.5), IN, const osg::Vec4d &, colorInside, osg::Vec4(0, 1, 0, 0.25), IN, const osg::Vec4d &, faceColorOutline, osg::Vec4(0, 0, 1, 0.5), IN, const osg::Vec4d &, faceColorInside, osg::Vec4(0, 0, 1, 0.25), IN, const osg::Vec4d &, planeColorOutline, osg::Vec4(1, 0, 0, 0.5), IN, const osg::Vec4d &, planeColorInside, osg::Vec4(1, 0, 0, 0.25), IN, const osg::Vec4d &, baseColorOutline, osg::Vec4(0, 0, 0, 0.5), IN, const osg::Vec4d &, baseColorInside, osg::Vec4(0, 0, 0, 0.25), + Properties::NON_VIRTUAL, + __bool__dumpGeometry__C5_Face_P1__C5_osg_Plane_P1__ConvexPolyhedron_P1__C5_char_P1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1__C5_osg_Vec4d_R1, + "", + ""); + I_StaticMethodWithDefaults5(int, pointsColinear, IN, const osg::Vec3d &, va, , IN, const osg::Vec3d &, vb, , IN, const osg::Vec3d &, vc, , IN, const double &, edge_normal_dot_tolerance, 0.0, IN, const double &, null_edge_length_tolerance, 0.0, + __int__pointsColinear__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__C5_double_R1__C5_double_R1_S, + "", + ""); + I_StaticMethodWithDefaults2(int, isFacePolygonConvex, IN, osgShadow::ConvexPolyhedron::Face &, face, , IN, bool, ignoreCollinearVertices, true, + __int__isFacePolygonConvex__Face_R1__bool_S, + "", + ""); + I_SimpleProperty(const osg::BoundingBox &, ToBoundingBox, + 0, + __void__setToBoundingBox__C5_osg_BoundingBox_R1); + I_PublicMemberProperty(osgShadow::ConvexPolyhedron::Faces, _faces); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgShadow::ConvexPolyhedron::Face) + I_DeclaringFile("osgShadow/ConvexPolyhedron"); + I_Constructor0(____Face, + "", + ""); + I_PublicMemberProperty(std::string, name); + I_PublicMemberProperty(osg::Plane, plane); + I_PublicMemberProperty(osgShadow::ConvexPolyhedron::Vertices, vertices); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osgShadow::ConvexPolyhedron::Face >) + diff --git a/src/osgWrappers/introspection/osgShadow/DebugShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/DebugShadowMap.cpp new file mode 100644 index 000000000..fca80f90d --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/DebugShadowMap.cpp @@ -0,0 +1,78 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgShadow::DebugShadowMap, osgShadow::DebugShadowMap::ThisClass) + +TYPE_NAME_ALIAS(osgShadow::ViewDependentShadowTechnique, osgShadow::DebugShadowMap::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::DebugShadowMap) + I_DeclaringFile("osgShadow/DebugShadowMap"); + I_BaseType(osgShadow::ViewDependentShadowTechnique); + I_Constructor0(____DebugShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::DebugShadowMap &, dsm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DebugShadowMap__C5_DebugShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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_Method1(void, setDebugDraw, IN, bool, draw, + Properties::NON_VIRTUAL, + __void__setDebugDraw__bool, + "Turn on/off debuging hud & rendering of debug volumes in main view. ", + ""); + I_Method0(bool, getDebugDraw, + Properties::NON_VIRTUAL, + __bool__getDebugDraw, + "Tell if debuging hud & rendering of debug volumes is active. ", + ""); + I_SimpleProperty(bool, DebugDraw, + __bool__getDebugDraw, + __void__setDebugDraw__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/LightSpacePerspectiveShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/LightSpacePerspectiveShadowMap.cpp new file mode 100644 index 000000000..27bc40ffa --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/LightSpacePerspectiveShadowMap.cpp @@ -0,0 +1,260 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgShadow::LightSpacePerspectiveShadowMapAlgorithm) + I_DeclaringFile("osgShadow/LightSpacePerspectiveShadowMap"); + I_Constructor0(____LightSpacePerspectiveShadowMapAlgorithm, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgShadow::ProjectionShadowMap< osgShadow::MinimalCullBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >, osgShadow::LightSpacePerspectiveShadowMapCB::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::LightSpacePerspectiveShadowMapCB) + I_DeclaringFile("osgShadow/LightSpacePerspectiveShadowMap"); + I_Constructor0(____LightSpacePerspectiveShadowMapCB, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::LightSpacePerspectiveShadowMapCB &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightSpacePerspectiveShadowMapCB__C5_LightSpacePerspectiveShadowMapCB_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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. "); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgShadow::ProjectionShadowMap< osgShadow::MinimalDrawBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >, osgShadow::LightSpacePerspectiveShadowMapDB::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::LightSpacePerspectiveShadowMapDB) + I_DeclaringFile("osgShadow/LightSpacePerspectiveShadowMap"); + I_Constructor0(____LightSpacePerspectiveShadowMapDB, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::LightSpacePerspectiveShadowMapDB &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightSpacePerspectiveShadowMapDB__C5_LightSpacePerspectiveShadowMapDB_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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. "); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgShadow::ProjectionShadowMap< osgShadow::MinimalShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >, osgShadow::LightSpacePerspectiveShadowMapVB::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::LightSpacePerspectiveShadowMapVB) + I_DeclaringFile("osgShadow/LightSpacePerspectiveShadowMap"); + I_Constructor0(____LightSpacePerspectiveShadowMapVB, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::LightSpacePerspectiveShadowMapVB &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightSpacePerspectiveShadowMapVB__C5_LightSpacePerspectiveShadowMapVB_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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. "); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgShadow::LightSpacePerspectiveShadowMapDB, osgShadow::LightSpacePerspectiveShadowMap) + +BEGIN_OBJECT_REFLECTOR(osgShadow::ProjectionShadowMap< osgShadow::MinimalCullBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >) + I_DeclaringFile("osgShadow/ProjectionShadowMap"); + I_Constructor0(____ProjectionShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ProjectionShadowMap< osgShadow::MinimalCullBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm > &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProjectionShadowMap__C5_ProjectionShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ProjectionShadowMap< osgShadow::MinimalDrawBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >) + I_DeclaringFile("osgShadow/ProjectionShadowMap"); + I_Constructor0(____ProjectionShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ProjectionShadowMap< osgShadow::MinimalDrawBoundsShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm > &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProjectionShadowMap__C5_ProjectionShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ProjectionShadowMap< osgShadow::MinimalShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm >) + I_DeclaringFile("osgShadow/ProjectionShadowMap"); + I_Constructor0(____ProjectionShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ProjectionShadowMap< osgShadow::MinimalShadowMap COMMA osgShadow::LightSpacePerspectiveShadowMapAlgorithm > &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProjectionShadowMap__C5_ProjectionShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/MinimalCullBoundsShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/MinimalCullBoundsShadowMap.cpp new file mode 100644 index 000000000..bf25e0cce --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/MinimalCullBoundsShadowMap.cpp @@ -0,0 +1,65 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgShadow::MinimalCullBoundsShadowMap, osgShadow::MinimalCullBoundsShadowMap::ThisClass) + +TYPE_NAME_ALIAS(osgShadow::MinimalShadowMap, osgShadow::MinimalCullBoundsShadowMap::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::MinimalCullBoundsShadowMap) + I_DeclaringFile("osgShadow/MinimalCullBoundsShadowMap"); + I_BaseType(osgShadow::MinimalShadowMap); + I_Constructor0(____MinimalCullBoundsShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::MinimalCullBoundsShadowMap &, mcbsm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MinimalCullBoundsShadowMap__C5_MinimalCullBoundsShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/MinimalDrawBoundsShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/MinimalDrawBoundsShadowMap.cpp new file mode 100644 index 000000000..493243f86 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/MinimalDrawBoundsShadowMap.cpp @@ -0,0 +1,65 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgShadow::MinimalDrawBoundsShadowMap, osgShadow::MinimalDrawBoundsShadowMap::ThisClass) + +TYPE_NAME_ALIAS(osgShadow::MinimalShadowMap, osgShadow::MinimalDrawBoundsShadowMap::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::MinimalDrawBoundsShadowMap) + I_DeclaringFile("osgShadow/MinimalDrawBoundsShadowMap"); + I_BaseType(osgShadow::MinimalShadowMap); + I_Constructor0(____MinimalDrawBoundsShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::MinimalDrawBoundsShadowMap &, mdbsm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MinimalDrawBoundsShadowMap__C5_MinimalDrawBoundsShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/MinimalShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/MinimalShadowMap.cpp new file mode 100644 index 000000000..cd7ce0a30 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/MinimalShadowMap.cpp @@ -0,0 +1,126 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgShadow::MinimalShadowMap::ShadowReceivingCoarseBoundAccuracy) + I_DeclaringFile("osgShadow/MinimalShadowMap"); + I_EnumLabel(osgShadow::MinimalShadowMap::EMPTY_BOX); + I_EnumLabel(osgShadow::MinimalShadowMap::BOUNDING_SPHERE); + I_EnumLabel(osgShadow::MinimalShadowMap::BOUNDING_BOX); + I_EnumLabel(osgShadow::MinimalShadowMap::DEFAULT_ACCURACY); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgShadow::MinimalShadowMap, osgShadow::MinimalShadowMap::ThisClass) + +TYPE_NAME_ALIAS(osgShadow::StandardShadowMap, osgShadow::MinimalShadowMap::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::MinimalShadowMap) + I_DeclaringFile("osgShadow/MinimalShadowMap"); + I_BaseType(osgShadow::StandardShadowMap); + I_Constructor0(____MinimalShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::MinimalShadowMap &, msm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MinimalShadowMap__C5_MinimalShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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_Method1(void, setModellingSpaceToWorldTransform, IN, const osg::Matrix &, modellingSpaceToWorld, + Properties::NON_VIRTUAL, + __void__setModellingSpaceToWorldTransform__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getModellingSpaceToWorldTransform, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getModellingSpaceToWorldTransform, + "", + ""); + I_Method0(float, getMaxFarPlane, + Properties::NON_VIRTUAL, + __float__getMaxFarPlane, + "", + ""); + I_Method1(void, setMaxFarPlane, IN, float, maxFarPlane, + Properties::NON_VIRTUAL, + __void__setMaxFarPlane__float, + "", + ""); + I_Method0(float, getMinLightMargin, + Properties::NON_VIRTUAL, + __float__getMinLightMargin, + "", + ""); + I_Method1(void, setMinLightMargin, IN, float, minLightMargin, + Properties::NON_VIRTUAL, + __void__setMinLightMargin__float, + "", + ""); + I_Method1(void, setShadowReceivingCoarseBoundAccuracy, IN, osgShadow::MinimalShadowMap::ShadowReceivingCoarseBoundAccuracy, accuracy, + Properties::NON_VIRTUAL, + __void__setShadowReceivingCoarseBoundAccuracy__ShadowReceivingCoarseBoundAccuracy, + "", + ""); + I_Method0(osgShadow::MinimalShadowMap::ShadowReceivingCoarseBoundAccuracy, getShadowReceivingCoarseBoundAccuracy, + Properties::NON_VIRTUAL, + __ShadowReceivingCoarseBoundAccuracy__getShadowReceivingCoarseBoundAccuracy, + "", + ""); + I_SimpleProperty(float, MaxFarPlane, + __float__getMaxFarPlane, + __void__setMaxFarPlane__float); + I_SimpleProperty(float, MinLightMargin, + __float__getMinLightMargin, + __void__setMinLightMargin__float); + I_SimpleProperty(const osg::Matrix &, ModellingSpaceToWorldTransform, + __C5_osg_Matrix_R1__getModellingSpaceToWorldTransform, + __void__setModellingSpaceToWorldTransform__C5_osg_Matrix_R1); + I_SimpleProperty(osgShadow::MinimalShadowMap::ShadowReceivingCoarseBoundAccuracy, ShadowReceivingCoarseBoundAccuracy, + __ShadowReceivingCoarseBoundAccuracy__getShadowReceivingCoarseBoundAccuracy, + __void__setShadowReceivingCoarseBoundAccuracy__ShadowReceivingCoarseBoundAccuracy); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/OccluderGeometry.cpp b/src/osgWrappers/introspection/osgShadow/OccluderGeometry.cpp new file mode 100644 index 000000000..f99af8b82 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/OccluderGeometry.cpp @@ -0,0 +1,273 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::OccluderGeometry::Vec3List) + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::OccluderGeometry::UIntList) + +BEGIN_OBJECT_REFLECTOR(osgShadow::OccluderGeometry) + I_DeclaringFile("osgShadow/OccluderGeometry"); + I_BaseType(osg::Drawable); + I_Constructor0(____OccluderGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::OccluderGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OccluderGeometry__C5_OccluderGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + 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_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, + "", + ""); + + + I_ProtectedMethod0(void, setUpInternalStructures, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpInternalStructures, + "", + ""); + I_ProtectedMethod0(void, removeDuplicateVertices, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeDuplicateVertices, + "", + ""); + I_ProtectedMethod0(void, removeNullTriangles, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeNullTriangles, + "", + ""); + I_ProtectedMethod0(void, computeNormals, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeNormals, + "", + ""); + I_ProtectedMethod0(void, buildEdgeMaps, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__buildEdgeMaps, + "", + ""); + I_ProtectedMethod2(void, computeLightDirectionSilhouetteEdges, IN, const osg::Vec3 &, lightdirection, IN, osgShadow::OccluderGeometry::UIntList &, silhouetteIndices, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeLightDirectionSilhouetteEdges__C5_osg_Vec3_R1__UIntList_R1, + "", + ""); + I_ProtectedMethod2(void, computeLightPositionSilhouetteEdges, IN, const osg::Vec3 &, lightpos, IN, osgShadow::OccluderGeometry::UIntList &, silhouetteIndices, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeLightPositionSilhouetteEdges__C5_osg_Vec3_R1__UIntList_R1, + "", + ""); + I_SimpleProperty(const osg::Polytope &, BoundingPolytope, + __C5_osg_Polytope_R1__getBoundingPolytope, + __void__setBoundingPolytope__C5_osg_Polytope_R1); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgShadow::ShadowVolumeGeometry::DrawMode) + I_DeclaringFile("osgShadow/OccluderGeometry"); + I_EnumLabel(osgShadow::ShadowVolumeGeometry::GEOMETRY); + I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_PASS); + I_EnumLabel(osgShadow::ShadowVolumeGeometry::STENCIL_TWO_SIDED); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgShadow::ShadowVolumeGeometry::Vec3List) + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgShadow::ShadowVolumeGeometry::UIntList) + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolumeGeometry) + I_DeclaringFile("osgShadow/OccluderGeometry"); + I_BaseType(osg::Drawable); + I_Constructor0(____ShadowVolumeGeometry, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolumeGeometry &, oc, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolumeGeometry__C5_ShadowVolumeGeometry_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + 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_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. ", + ""); + I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode, + __DrawMode__getDrawMode, + __void__setDrawMode__DrawMode); + I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Normals, + __C5_Vec3List_R1__getNormals, + __void__setNormals__C5_Vec3List_R1); + I_SimpleProperty(const osgShadow::ShadowVolumeGeometry::Vec3List &, Vertices, + __C5_Vec3List_R1__getVertices, + __void__setVertices__C5_Vec3List_R1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< GLuint >) + diff --git a/src/osgWrappers/introspection/osgShadow/ParallelSplitShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/ParallelSplitShadowMap.cpp new file mode 100644 index 000000000..c1524cb9a --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ParallelSplitShadowMap.cpp @@ -0,0 +1,194 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgShadow::ParallelSplitShadowMap::SplitCalcMode) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_LINEAR); + I_EnumLabel(osgShadow::ParallelSplitShadowMap::SPLIT_EXP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_BaseType(osgShadow::ShadowTechnique); + I_ConstructorWithDefaults2(IN, osg::Geode **, debugGroup, NULL, IN, int, icountplanes, 3, + ____ParallelSplitShadowMap__osg_Geode_P1P1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ParallelSplitShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParallelSplitShadowMap__C5_ParallelSplitShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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, 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_Method0(void, setDebugColorOn, + Properties::NON_VIRTUAL, + __void__setDebugColorOn, + "Switch on the debug coloring in GLSL (only the first 3 texture/splits showed for visualisation. ", + ""); + I_Method1(void, setPolygonOffset, IN, const osg::Vec2f &, p, + Properties::NON_VIRTUAL, + __void__setPolygonOffset__C5_osg_Vec2f_R1, + "Set the polygon offset osg::Vec2f(factor,unit). ", + ""); + I_Method0(const osg::Vec2f &, getPolygonOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec2f_R1__getPolygonOffset, + "Get the polygon offset osg::Vec2f(factor,unit). ", + ""); + I_Method1(void, setTextureResolution, IN, unsigned int, resolution, + Properties::NON_VIRTUAL, + __void__setTextureResolution__unsigned_int, + "Set the texture resolution. ", + ""); + I_Method1(void, setMaxFarDistance, IN, double, farDist, + Properties::NON_VIRTUAL, + __void__setMaxFarDistance__double, + "Set the max far distance. ", + ""); + I_Method1(void, setMoveVCamBehindRCamFactor, IN, double, distFactor, + Properties::NON_VIRTUAL, + __void__setMoveVCamBehindRCamFactor__double, + "Set the factor for moving the virtual camera behind the real camera. ", + ""); + I_Method1(void, setMinNearDistanceForSplits, IN, double, nd, + Properties::NON_VIRTUAL, + __void__setMinNearDistanceForSplits__double, + "Set min near distance for splits. ", + ""); + I_Method1(void, setUserLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setUserLight__osg_Light_P1, + "set a user defined light for shadow simulation (sun light, . ", + ".. ) when this light get passed to pssm, the scene's light are no longer collected and simulated. just this user passed light, it needs to be a directional light. "); + I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, + Properties::NON_VIRTUAL, + __void__setAmbientBias__C5_osg_Vec2_R1, + "Set the values for the ambient bias the shader will use. ", + ""); + I_Method1(void, setFragmentShaderGenerator, IN, osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, fsw, + Properties::NON_VIRTUAL, + __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1, + "set fragment shader generator ", + ""); + I_MethodWithDefaults1(void, enableShadowGLSLFiltering, IN, bool, filtering, true, + Properties::NON_VIRTUAL, + __void__enableShadowGLSLFiltering__bool, + "enable / disable shadow filtering ", + ""); + I_MethodWithDefaults1(void, setSplitCalculationMode, IN, osgShadow::ParallelSplitShadowMap::SplitCalcMode, scm, osgShadow::ParallelSplitShadowMap::SPLIT_EXP, + Properties::NON_VIRTUAL, + __void__setSplitCalculationMode__SplitCalcMode, + "set split calculation mode ", + ""); + I_SimpleProperty(const osg::Vec2 &, AmbientBias, + 0, + __void__setAmbientBias__C5_osg_Vec2_R1); + I_SimpleProperty(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator *, FragmentShaderGenerator, + 0, + __void__setFragmentShaderGenerator__FragmentShaderGenerator_P1); + I_SimpleProperty(double, MaxFarDistance, + 0, + __void__setMaxFarDistance__double); + I_SimpleProperty(double, MinNearDistanceForSplits, + 0, + __void__setMinNearDistanceForSplits__double); + I_SimpleProperty(double, MoveVCamBehindRCamFactor, + 0, + __void__setMoveVCamBehindRCamFactor__double); + I_SimpleProperty(const osg::Vec2f &, PolygonOffset, + __C5_osg_Vec2f_R1__getPolygonOffset, + __void__setPolygonOffset__C5_osg_Vec2f_R1); + I_SimpleProperty(osgShadow::ParallelSplitShadowMap::SplitCalcMode, SplitCalculationMode, + 0, + __void__setSplitCalculationMode__SplitCalcMode); + I_SimpleProperty(unsigned int, TextureResolution, + 0, + __void__setTextureResolution__unsigned_int); + I_SimpleProperty(osg::Light *, UserLight, + 0, + __void__setUserLight__osg_Light_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ParallelSplitShadowMap::FragmentShaderGenerator) + I_DeclaringFile("osgShadow/ParallelSplitShadowMap"); + I_BaseType(osg::Referenced); + I_Constructor0(____FragmentShaderGenerator, + "", + ""); + I_Method6(std::string, generateGLSL_FragmentShader_BaseTex, IN, bool, debug, IN, unsigned int, splitCount, IN, double, textureRes, IN, bool, filtered, IN, unsigned int, nbrSplits, IN, unsigned int, textureOffset, + Properties::VIRTUAL, + __std_string__generateGLSL_FragmentShader_BaseTex__bool__unsigned_int__double__bool__unsigned_int__unsigned_int, + "generate the GLSL fragement shader ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/ShadowMap.cpp new file mode 100644 index 000000000..4e770f77b --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ShadowMap.cpp @@ -0,0 +1,269 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Uniform > >, osgShadow::ShadowMap::UniformList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Shader > >, osgShadow::ShadowMap::ShaderList) + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowMap) + I_DeclaringFile("osgShadow/ShadowMap"); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowMap__C5_ShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + I_Method1(void, setPolygonOffset, IN, const osg::Vec2 &, polyOffset, + Properties::NON_VIRTUAL, + __void__setPolygonOffset__C5_osg_Vec2_R1, + "set the polygon offset used initially ", + ""); + I_Method0(const osg::Vec2 &, getPolygonOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getPolygonOffset, + "get the used polygon offset ", + ""); + I_Method1(void, setAmbientBias, IN, const osg::Vec2 &, ambientBias, + Properties::NON_VIRTUAL, + __void__setAmbientBias__C5_osg_Vec2_R1, + "Set the values for the ambient bias the shader will use. ", + ""); + I_Method0(const osg::Vec2 &, getAmbientBias, + Properties::NON_VIRTUAL, + __C5_osg_Vec2_R1__getAmbientBias, + "Get the values that are used for the ambient bias in the shader. ", + ""); + I_Method1(void, setTextureSize, IN, const osg::Vec2s &, textureSize, + Properties::NON_VIRTUAL, + __void__setTextureSize__C5_osg_Vec2s_R1, + "set the size in pixels x / y for the shadow texture. ", + ""); + I_Method0(const osg::Vec2s &, getTextureSize, + Properties::NON_VIRTUAL, + __C5_osg_Vec2s_R1__getTextureSize, + "Get the values that are used for the ambient bias in the shader. ", + ""); + I_Method1(void, setLight, IN, osg::Light *, light, + Properties::NON_VIRTUAL, + __void__setLight__osg_Light_P1, + "Set the Light that will cast shadows. ", + ""); + I_Method1(void, setLight, IN, osg::LightSource *, ls, + Properties::NON_VIRTUAL, + __void__setLight__osg_LightSource_P1, + "", + ""); + I_Method1(void, addShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__addShader__osg_Shader_P1, + "Add a shader to internal list, will be used instead of the default ones. ", + ""); + I_Method0(void, clearShaderList, + Properties::NON_VIRTUAL, + __void__clearShaderList, + "Reset internal shader list. ", + ""); + 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_Method0(osg::ref_ptr< osg::Camera >, makeDebugHUD, + Properties::NON_VIRTUAL, + __osg_ref_ptrT1_osg_Camera___makeDebugHUD, + "", + ""); + I_ProtectedMethod0(void, createUniforms, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__createUniforms, + "Create the managed Uniforms. ", + ""); + I_ProtectedMethod0(void, createShaders, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__createShaders, + "", + ""); + I_SimpleProperty(const osg::Vec2 &, AmbientBias, + __C5_osg_Vec2_R1__getAmbientBias, + __void__setAmbientBias__C5_osg_Vec2_R1); + I_SimpleProperty(osg::Light *, Light, + 0, + __void__setLight__osg_Light_P1); + I_SimpleProperty(const osg::Vec2 &, PolygonOffset, + __C5_osg_Vec2_R1__getPolygonOffset, + __void__setPolygonOffset__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2s &, TextureSize, + __C5_osg_Vec2s_R1__getTextureSize, + __void__setTextureSize__C5_osg_Vec2s_R1); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Camera >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Camera *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Camera > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Camera *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Camera *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Camera > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Camera *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Shader >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Shader *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Shader > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Shader *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Shader *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Shader > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Shader *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Shader > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Uniform > >) + diff --git a/src/osgWrappers/introspection/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/introspection/osgShadow/ShadowTechnique.cpp new file mode 100644 index 000000000..4ff55dd95 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ShadowTechnique.cpp @@ -0,0 +1,102 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) + I_DeclaringFile("osgShadow/ShadowTechnique"); + I_BaseType(osg::Object); + I_Constructor0(____ShadowTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTechnique__C5_ShadowTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(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 local cached 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 structures are updated. ", + ""); + I_SimpleProperty(osgShadow::ShadowedScene *, ShadowedScene, + __ShadowedScene_P1__getShadowedScene, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ShadowTexture.cpp b/src/osgWrappers/introspection/osgShadow/ShadowTexture.cpp new file mode 100644 index 000000000..803c60085 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ShadowTexture.cpp @@ -0,0 +1,96 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTexture) + I_DeclaringFile("osgShadow/ShadowTexture"); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ShadowTexture, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTexture &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTexture__C5_ShadowTexture_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that the shadow texture will be applied on. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "Get the texture unit that the shadow texture will be applied on. ", + ""); + 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_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ShadowVolume.cpp b/src/osgWrappers/introspection/osgShadow/ShadowVolume.cpp new file mode 100644 index 000000000..3150301f1 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ShadowVolume.cpp @@ -0,0 +1,110 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowVolume) + I_DeclaringFile("osgShadow/ShadowVolume"); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ShadowVolume, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowVolume &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowVolume__C5_ShadowVolume_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. ", + ""); + I_SimpleProperty(osgShadow::ShadowVolumeGeometry::DrawMode, DrawMode, + __osgShadow_ShadowVolumeGeometry_DrawMode__getDrawMode, + __void__setDrawMode__osgShadow_ShadowVolumeGeometry_DrawMode); + I_SimpleProperty(bool, DynamicShadowVolumes, + __bool__getDynamicShadowVolumes, + __void__setDynamicShadowVolumes__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ShadowedScene.cpp b/src/osgWrappers/introspection/osgShadow/ShadowedScene.cpp new file mode 100644 index 000000000..f76077422 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ShadowedScene.cpp @@ -0,0 +1,129 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowedScene) + I_DeclaringFile("osgShadow/ShadowedScene"); + I_BaseType(osg::Group); + I_ConstructorWithDefaults1(IN, osgShadow::ShadowTechnique *, st, 0, + Properties::NON_EXPLICIT, + ____ShadowedScene__ShadowTechnique_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowedScene &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowedScene__C5_ShadowedScene_R1__C5_osg_CopyOp_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, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setReceivesShadowTraversalMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setReceivesShadowTraversalMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getReceivesShadowTraversalMask, + Properties::NON_VIRTUAL, + __unsigned_int__getReceivesShadowTraversalMask, + "", + ""); + 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. ", + ""); + I_SimpleProperty(unsigned int, CastsShadowTraversalMask, + __unsigned_int__getCastsShadowTraversalMask, + __void__setCastsShadowTraversalMask__unsigned_int); + I_SimpleProperty(unsigned int, ReceivesShadowTraversalMask, + __unsigned_int__getReceivesShadowTraversalMask, + __void__setReceivesShadowTraversalMask__unsigned_int); + I_SimpleProperty(osgShadow::ShadowTechnique *, ShadowTechnique, + __ShadowTechnique_P1__getShadowTechnique, + __void__setShadowTechnique__ShadowTechnique_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/SoftShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/SoftShadowMap.cpp new file mode 100644 index 000000000..96dabac9c --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/SoftShadowMap.cpp @@ -0,0 +1,131 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::SoftShadowMap) + I_DeclaringFile("osgShadow/SoftShadowMap"); + I_BaseType(osgShadow::ShadowMap); + I_Constructor0(____SoftShadowMap, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::SoftShadowMap &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SoftShadowMap__C5_SoftShadowMap_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setSoftnessWidth, IN, const float, softnessWidth, + Properties::NON_VIRTUAL, + __void__setSoftnessWidth__C5_float, + "Set the values for width of the soft penumbra the shader will use. ", + "Zero is for hard shadow (no penumbra). 0.01 is already very soft penumbra. Default is 0.005. "); + I_Method0(float, getSoftnessWidth, + Properties::NON_VIRTUAL, + __float__getSoftnessWidth, + "Get the value used for width of the soft penumbra in the shader. ", + ""); + I_Method1(void, setJitteringScale, IN, const float, jitteringScale, + Properties::NON_VIRTUAL, + __void__setJitteringScale__C5_float, + "Set the values for jittering scale the shader will use. ", + "Zero is no jittering (i.e. see the banding in penumbra) High values (>64) cause 'pixelization' of the penumbra. Usually but not necessarily power of two number. Default is 32. "); + I_Method0(float, getJitteringScale, + Properties::NON_VIRTUAL, + __float__getJitteringScale, + "Get the value used for jittering scale in the shader. ", + ""); + I_Method1(void, setJitterTextureUnit, IN, unsigned int, jitterTextureUnit, + Properties::NON_VIRTUAL, + __void__setJitterTextureUnit__unsigned_int, + "Set the texture unit that the jitter texture will be applied on. ", + ""); + I_Method0(unsigned int, getJitterTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getJitterTextureUnit, + "Get the texture unit that the jitter texture will be applied on. ", + ""); + I_Method1(void, setBias, IN, float, bias, + Properties::NON_VIRTUAL, + __void__setBias__float, + "Add a small bias to the z-value, this can reduce shadow acne problem. ", + "This is the same as calling setPolygonOffset(osg::Vec2(bias,0)); Suitable values are 0-0.005 Default is 0. "); + I_Method0(float, getBias, + Properties::NON_VIRTUAL, + __float__getBias, + "Return the bias value. ", + ""); + I_ProtectedMethod0(void, createUniforms, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__createUniforms, + "Create the managed Uniforms. ", + ""); + I_ProtectedMethod0(void, createShaders, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__createShaders, + "", + ""); + I_ProtectedMethod1(void, initJittering, IN, osg::StateSet *, ss, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__initJittering__osg_StateSet_P1, + "", + ""); + I_SimpleProperty(float, Bias, + __float__getBias, + __void__setBias__float); + I_SimpleProperty(unsigned int, JitterTextureUnit, + __unsigned_int__getJitterTextureUnit, + __void__setJitterTextureUnit__unsigned_int); + I_SimpleProperty(float, JitteringScale, + __float__getJitteringScale, + 0); + I_SimpleProperty(float, SoftnessWidth, + __float__getSoftnessWidth, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/StandardShadowMap.cpp b/src/osgWrappers/introspection/osgShadow/StandardShadowMap.cpp new file mode 100644 index 000000000..d1f55555f --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/StandardShadowMap.cpp @@ -0,0 +1,210 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osgShadow::StandardShadowMap, osgShadow::StandardShadowMap::ThisClass) + +TYPE_NAME_ALIAS(osgShadow::DebugShadowMap, osgShadow::StandardShadowMap::BaseClass) + +BEGIN_OBJECT_REFLECTOR(osgShadow::StandardShadowMap) + I_DeclaringFile("osgShadow/StandardShadowMap"); + I_BaseType(osgShadow::DebugShadowMap); + I_Constructor0(____StandardShadowMap, + "Classic OSG constructor. ", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::StandardShadowMap &, ssm, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StandardShadowMap__C5_StandardShadowMap_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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_Method1(void, setBaseTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setBaseTextureUnit__unsigned_int, + "", + ""); + I_Method0(unsigned int, getBaseTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getBaseTextureUnit, + "", + ""); + I_Method1(void, setShadowTextureUnit, IN, unsigned int, unit, + Properties::NON_VIRTUAL, + __void__setShadowTextureUnit__unsigned_int, + "", + ""); + I_Method0(unsigned int, getShadowTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getShadowTextureUnit, + "", + ""); + I_Method1(void, setBaseTextureCoordIndex, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__setBaseTextureCoordIndex__unsigned_int, + "", + ""); + I_Method0(unsigned int, getBaseTextureCoordIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getBaseTextureCoordIndex, + "", + ""); + I_Method1(void, setShadowTextureCoordIndex, IN, unsigned int, index, + Properties::NON_VIRTUAL, + __void__setShadowTextureCoordIndex__unsigned_int, + "", + ""); + I_Method0(unsigned int, getShadowTextureCoordIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getShadowTextureCoordIndex, + "", + ""); + I_Method1(void, setTextureSize, IN, const osg::Vec2s &, textureSize, + Properties::NON_VIRTUAL, + __void__setTextureSize__C5_osg_Vec2s_R1, + "", + ""); + I_Method0(osg::Vec2s, getTextureSize, + Properties::NON_VIRTUAL, + __osg_Vec2s__getTextureSize, + "", + ""); + 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(osg::Shader *, getShadowVertexShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__getShadowVertexShader, + "", + ""); + I_Method0(osg::Shader *, getShadowFragmentShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__getShadowFragmentShader, + "", + ""); + I_Method0(osg::Shader *, getMainVertexShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__getMainVertexShader, + "", + ""); + I_Method0(osg::Shader *, getMainFragmentShader, + Properties::NON_VIRTUAL, + __osg_Shader_P1__getMainFragmentShader, + "", + ""); + I_Method1(void, setShadowVertexShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__setShadowVertexShader__osg_Shader_P1, + "", + ""); + I_Method1(void, setShadowFragmentShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__setShadowFragmentShader__osg_Shader_P1, + "", + ""); + I_Method1(void, setMainVertexShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__setMainVertexShader__osg_Shader_P1, + "", + ""); + I_Method1(void, setMainFragmentShader, IN, osg::Shader *, shader, + Properties::NON_VIRTUAL, + __void__setMainFragmentShader__osg_Shader_P1, + "", + ""); + I_ProtectedMethod2(void, updateTextureCoordIndices, IN, unsigned int, baseTexCoordIndex, IN, unsigned int, shadowTexCoordIndex, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__updateTextureCoordIndices__unsigned_int__unsigned_int, + "", + ""); + I_ProtectedMethod3(void, searchAndReplaceShaderSource, IN, osg::Shader *, x, IN, std::string, fromString, IN, std::string, toString, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__searchAndReplaceShaderSource__osg_Shader_P1__std_string__std_string, + "", + ""); + I_SimpleProperty(unsigned int, BaseTextureCoordIndex, + __unsigned_int__getBaseTextureCoordIndex, + __void__setBaseTextureCoordIndex__unsigned_int); + I_SimpleProperty(unsigned int, BaseTextureUnit, + __unsigned_int__getBaseTextureUnit, + __void__setBaseTextureUnit__unsigned_int); + I_SimpleProperty(osg::Light *, Light, + __osg_Light_P1__getLight, + __void__setLight__osg_Light_P1); + I_SimpleProperty(osg::Shader *, MainFragmentShader, + __osg_Shader_P1__getMainFragmentShader, + __void__setMainFragmentShader__osg_Shader_P1); + I_SimpleProperty(osg::Shader *, MainVertexShader, + __osg_Shader_P1__getMainVertexShader, + __void__setMainVertexShader__osg_Shader_P1); + I_SimpleProperty(osg::Shader *, ShadowFragmentShader, + __osg_Shader_P1__getShadowFragmentShader, + __void__setShadowFragmentShader__osg_Shader_P1); + I_SimpleProperty(unsigned int, ShadowTextureCoordIndex, + __unsigned_int__getShadowTextureCoordIndex, + __void__setShadowTextureCoordIndex__unsigned_int); + I_SimpleProperty(unsigned int, ShadowTextureUnit, + __unsigned_int__getShadowTextureUnit, + __void__setShadowTextureUnit__unsigned_int); + I_SimpleProperty(osg::Shader *, ShadowVertexShader, + __osg_Shader_P1__getShadowVertexShader, + __void__setShadowVertexShader__osg_Shader_P1); + I_SimpleProperty(osg::Vec2s, TextureSize, + __osg_Vec2s__getTextureSize, + __void__setTextureSize__C5_osg_Vec2s_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgShadow/ViewDependentShadowTechnique.cpp b/src/osgWrappers/introspection/osgShadow/ViewDependentShadowTechnique.cpp new file mode 100644 index 000000000..d64053c43 --- /dev/null +++ b/src/osgWrappers/introspection/osgShadow/ViewDependentShadowTechnique.cpp @@ -0,0 +1,93 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgShadow::ViewDependentShadowTechnique) + I_DeclaringFile("osgShadow/ViewDependentShadowTechnique"); + I_BaseType(osgShadow::ShadowTechnique); + I_Constructor0(____ViewDependentShadowTechnique, + "osgShadow::ShadowTechnique equivalent methods for view dependent techniques ", + "Classic OSG constructor "); + I_ConstructorWithDefaults2(IN, const osgShadow::ViewDependentShadowTechnique &, vdst, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ViewDependentShadowTechnique__C5_ViewDependentShadowTechnique_R1__C5_osg_CopyOp_R1, + "Classic OSG cloning constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Declaration of standard OSG object methods. ", + ""); + 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, dirty, + Properties::VIRTUAL, + __void__dirty, + "Dirty view data bits and force update of view data resources. ", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "Initialize the ShadowedScene and some 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 local cached 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, + "Traverse shadow scene graph. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/BlinkSequence.cpp b/src/osgWrappers/introspection/osgSim/BlinkSequence.cpp new file mode 100644 index 000000000..642bc7b7c --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/BlinkSequence.cpp @@ -0,0 +1,174 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) + I_DeclaringFile("osgSim/BlinkSequence"); + I_BaseType(osg::Object); + I_Constructor0(____BlinkSequence, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::BlinkSequence &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BlinkSequence__C5_BlinkSequence_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. "); + I_SimpleProperty(double, PhaseShift, + __double__getPhaseShift, + __void__setPhaseShift__double); + I_SimpleProperty(double, PulsePeriod, + __double__getPulsePeriod, + 0); + I_SimpleProperty(osgSim::SequenceGroup *, SequenceGroup, + __SequenceGroup_P1__getSequenceGroup, + __void__setSequenceGroup__SequenceGroup_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) + I_DeclaringFile("osgSim/BlinkSequence"); + I_BaseType(osg::Object); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + 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 &, 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_PublicMemberProperty(double, _baseTime); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/ColorRange.cpp b/src/osgWrappers/introspection/osgSim/ColorRange.cpp new file mode 100644 index 000000000..c838f2eba --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ColorRange.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::ColorRange) + I_DeclaringFile("osgSim/ColorRange"); + I_BaseType(osgSim::ScalarsToColors); + I_Constructor2(IN, float, min, IN, float, max, + ____ColorRange__float__float, + "Constructor for a ColorRange with a default list of colors set to Red-Yellow-Green-Blue-Cyan. ", + " param min minimum scalar value max maximum scalar value "); + I_Constructor3(IN, float, min, IN, float, max, IN, const std::vector< osg::Vec4 > &, colors, + ____ColorRange__float__float__C5_std_vectorT1_osg_Vec4__R1, + "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. ", + ""); + I_SimpleProperty(const std::vector< osg::Vec4 > &, Colors, + 0, + __void__setColors__C5_std_vectorT1_osg_Vec4__R1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec4 >) + diff --git a/src/osgWrappers/introspection/osgSim/DOFTransform.cpp b/src/osgWrappers/introspection/osgSim/DOFTransform.cpp new file mode 100644 index 000000000..3ce27c610 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/DOFTransform.cpp @@ -0,0 +1,335 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::DOFTransform::MultOrder) + I_DeclaringFile("osgSim/DOFTransform"); + I_EnumLabel(osgSim::DOFTransform::PRH); + I_EnumLabel(osgSim::DOFTransform::PHR); + I_EnumLabel(osgSim::DOFTransform::HPR); + I_EnumLabel(osgSim::DOFTransform::HRP); + I_EnumLabel(osgSim::DOFTransform::RPH); + I_EnumLabel(osgSim::DOFTransform::RHP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) + I_DeclaringFile("osgSim/DOFTransform"); + I_BaseType(osg::Transform); + I_Constructor0(____DOFTransform, + "constructor ", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::DOFTransform &, dof, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DOFTransform__C5_DOFTransform_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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, + "", + ""); + I_SimpleProperty(bool, AnimationOn, + __bool__getAnimationOn, + __void__setAnimationOn__bool); + I_SimpleProperty(const osg::Vec3 &, CurrentHPR, + __C5_osg_Vec3_R1__getCurrentHPR, + __void__setCurrentHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, CurrentScale, + __C5_osg_Vec3_R1__getCurrentScale, + __void__setCurrentScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, CurrentTranslate, + __C5_osg_Vec3_R1__getCurrentTranslate, + __void__setCurrentTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osgSim::DOFTransform::MultOrder, HPRMultOrder, + __C5_MultOrder__getHPRMultOrder, + __void__setHPRMultOrder__C5_MultOrder); + I_SimpleProperty(const osg::Vec3 &, IncrementHPR, + __C5_osg_Vec3_R1__getIncrementHPR, + __void__setIncrementHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, IncrementScale, + __C5_osg_Vec3_R1__getIncrementScale, + __void__setIncrementScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, IncrementTranslate, + __C5_osg_Vec3_R1__getIncrementTranslate, + __void__setIncrementTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Matrix &, InversePutMatrix, + __C5_osg_Matrix_R1__getInversePutMatrix, + __void__setInversePutMatrix__C5_osg_Matrix_R1); + I_SimpleProperty(unsigned long, LimitationFlags, + __unsigned_long__getLimitationFlags, + __void__setLimitationFlags__unsigned_long); + I_SimpleProperty(const osg::Vec3 &, MaxHPR, + __C5_osg_Vec3_R1__getMaxHPR, + __void__setMaxHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MaxScale, + __C5_osg_Vec3_R1__getMaxScale, + __void__setMaxScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MaxTranslate, + __C5_osg_Vec3_R1__getMaxTranslate, + __void__setMaxTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinHPR, + __C5_osg_Vec3_R1__getMinHPR, + __void__setMinHPR__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinScale, + __C5_osg_Vec3_R1__getMinScale, + __void__setMinScale__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, MinTranslate, + __C5_osg_Vec3_R1__getMinTranslate, + __void__setMinTranslate__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Matrix &, PutMatrix, + __C5_osg_Matrix_R1__getPutMatrix, + __void__setPutMatrix__C5_osg_Matrix_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/ElevationSlice.cpp b/src/osgWrappers/introspection/osgSim/ElevationSlice.cpp new file mode 100644 index 000000000..be89aec4d --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ElevationSlice.cpp @@ -0,0 +1,111 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgSim::ElevationSlice::Vec3dList) + +TYPE_NAME_ALIAS(std::pair< double COMMA double >, osgSim::ElevationSlice::DistanceHeight) + +TYPE_NAME_ALIAS(std::vector< osgSim::ElevationSlice::DistanceHeight >, osgSim::ElevationSlice::DistanceHeightList) + +BEGIN_VALUE_REFLECTOR(osgSim::ElevationSlice) + I_DeclaringFile("osgSim/ElevationSlice"); + I_Constructor0(____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 multiple 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. ", + ""); + I_StaticMethodWithDefaults4(osgSim::ElevationSlice::Vec3dList, computeElevationSlice, IN, osg::Node *, scene, , IN, const osg::Vec3d &, startPoint, , IN, const osg::Vec3d &, endPoint, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Vec3dList__computeElevationSlice__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_SimpleProperty(const osgSim::ElevationSlice::DistanceHeightList &, DistanceHeightIntersections, + __C5_DistanceHeightList_R1__getDistanceHeightIntersections, + 0); + I_SimpleProperty(const osg::Vec3d &, EndPoint, + __C5_osg_Vec3d_R1__getEndPoint, + __void__setEndPoint__C5_osg_Vec3d_R1); + I_SimpleProperty(const osgSim::ElevationSlice::Vec3dList &, Intersections, + __C5_Vec3dList_R1__getIntersections, + 0); + I_SimpleProperty(const osg::Vec3d &, StartPoint, + __C5_osg_Vec3d_R1__getStartPoint, + __void__setStartPoint__C5_osg_Vec3d_R1); +END_REFLECTOR + +STD_PAIR_REFLECTOR(std::pair< double COMMA double >) + +STD_VECTOR_REFLECTOR(std::vector< osgSim::ElevationSlice::DistanceHeight >) + diff --git a/src/osgWrappers/introspection/osgSim/GeographicLocation.cpp b/src/osgWrappers/introspection/osgSim/GeographicLocation.cpp new file mode 100644 index 000000000..ba36746c4 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/GeographicLocation.cpp @@ -0,0 +1,79 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::GeographicLocation) + I_DeclaringFile("osgSim/GeographicLocation"); + I_BaseType(osg::Referenced); + I_Constructor0(____GeographicLocation, + "", + ""); + I_Constructor2(IN, double, lat, IN, double, lon, + ____GeographicLocation__double__double, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/HeightAboveTerrain.cpp b/src/osgWrappers/introspection/osgSim/HeightAboveTerrain.cpp new file mode 100644 index 000000000..49a70d51d --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/HeightAboveTerrain.cpp @@ -0,0 +1,109 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgSim::HeightAboveTerrain) + I_DeclaringFile("osgSim/HeightAboveTerrain"); + I_Constructor0(____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 query 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 multiple 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. ", + ""); + I_StaticMethodWithDefaults3(double, computeHeightAboveTerrain, IN, osg::Node *, scene, , IN, const osg::Vec3d &, point, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __double__computeHeightAboveTerrain__osg_Node_P1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the vertical distance between the specified scene graph and a single HAT point. ", + ""); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_SimpleProperty(double, LowestHeight, + __double__getLowestHeight, + __void__setLowestHeight__double); + I_ArrayProperty(const osg::Vec3d &, Point, + __C5_osg_Vec3d_R1__getPoint__unsigned_int, + __void__setPoint__unsigned_int__C5_osg_Vec3d_R1, + __unsigned_int__getNumPoints, + __unsigned_int__addPoint__C5_osg_Vec3d_R1, + 0, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/Impostor.cpp b/src/osgWrappers/introspection/osgSim/Impostor.cpp new file mode 100644 index 000000000..169261c5b --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/Impostor.cpp @@ -0,0 +1,171 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::Impostor::ImpostorSpriteList) + +BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) + I_DeclaringFile("osgSim/Impostor"); + I_BaseType(osg::LOD); + I_Constructor0(____Impostor, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::Impostor &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Impostor__C5_Impostor_R1__C5_osg_CopyOp_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, traverse, IN, osg::NodeVisitor &, x, + 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(). "); + I_ProtectedMethod1(osgSim::ImpostorSprite *, createImpostorSprite, IN, osgUtil::CullVisitor *, cv, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ImpostorSprite_P1__createImpostorSprite__osgUtil_CullVisitor_P1, + "", + ""); + I_SimpleProperty(float, ImpostorThreshold, + __float__getImpostorThreshold, + __void__setImpostorThreshold__float); + I_SimpleProperty(float, ImpostorThresholdToBound, + 0, + __void__setImpostorThresholdToBound__float); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgSim::ImpostorSprite >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgSim::ImpostorSprite *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >) + diff --git a/src/osgWrappers/introspection/osgSim/ImpostorSprite.cpp b/src/osgWrappers/introspection/osgSim/ImpostorSprite.cpp new file mode 100644 index 000000000..4506a2a4e --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ImpostorSprite.cpp @@ -0,0 +1,296 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) + I_DeclaringFile("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::RenderInfo &, renderInfo, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1, + "Draw ImpostorSprite directly. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_Drawable_AttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(Drawable::AttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af, + Properties::VIRTUAL, + __void__accept__Drawable_AttributeFunctor_R1, + "Accept an Drawable::AttributeFunctor and call its methods to tell it about the internal attributes that this Drawable has. ", + ""); + I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, + Properties::VIRTUAL, + __bool__supports__C5_Drawable_ConstAttributeFunctor_R1, + "Return true, osg::ImpostorSprite does support accept(Drawable::ConstAttributeFunctor&). ", + ""); + I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, + Properties::VIRTUAL, + __void__accept__Drawable_ConstAttributeFunctor_R1, + "Accept a Drawable::ConstAttributeFunctor and call its methods to tell it about the internal 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 internal primitives 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. ", + ""); + I_ProtectedConstructor1(IN, const osgSim::ImpostorSprite &, x, + Properties::NON_EXPLICIT, + ____ImpostorSprite__C5_ImpostorSprite_R1, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_P1); + I_SimpleProperty(osg::Vec3 *, ControlCoords, + __osg_Vec3_P1__getControlCoords, + 0); + I_SimpleProperty(osg::Vec3 *, Coords, + __osg_Vec3_P1__getCoords, + 0); + I_SimpleProperty(int, LastFrameUsed, + __int__getLastFrameUsed, + __void__setLastFrameUsed__int); + I_SimpleProperty(osgSim::Impostor *, Parent, + __Impostor_P1__getParent, + __void__setParent__Impostor_P1); + I_SimpleProperty(const osg::Vec3 &, StoredLocalEyePoint, + __C5_osg_Vec3_R1__getStoredLocalEyePoint, + __void__setStoredLocalEyePoint__C5_osg_Vec3_R1); + I_SimpleProperty(osg::Vec2 *, TexCoords, + __osg_Vec2_P1__getTexCoords, + 0); + I_SimpleProperty(osg::Texture2D *, Texture, + __osg_Texture2D_P1__getTexture, + 0); + I_PublicMemberProperty(osg::Vec4, _color); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) + I_DeclaringFile("osgSim/ImpostorSprite"); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/InsertImpostorsVisitor.cpp b/src/osgWrappers/introspection/osgSim/InsertImpostorsVisitor.cpp new file mode 100644 index 000000000..3b4500c6f --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/InsertImpostorsVisitor.cpp @@ -0,0 +1,94 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::InsertImpostorsVisitor) + I_DeclaringFile("osgSim/InsertImpostorsVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____InsertImpostorsVisitor, + "Default to traversing all children. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_SimpleProperty(float, ImpostorThresholdRatio, + __float__getImpostorThresholdRatio, + __void__setImpostorThresholdRatio__float); + I_SimpleProperty(unsigned int, MaximumNumberOfNestedImpostors, + __unsigned_int__getMaximumNumberOfNestedImpostors, + __void__setMaximumNumberOfNestedImpostors__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/LightPoint.cpp b/src/osgWrappers/introspection/osgSim/LightPoint.cpp new file mode 100644 index 000000000..d34b68f18 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/LightPoint.cpp @@ -0,0 +1,60 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::LightPoint::BlendingMode) + I_DeclaringFile("osgSim/LightPoint"); + I_EnumLabel(osgSim::LightPoint::ADDITIVE); + I_EnumLabel(osgSim::LightPoint::BLENDED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) + I_DeclaringFile("osgSim/LightPoint"); + I_Constructor0(____LightPoint, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, position, IN, const osg::Vec4 &, color, + ____LightPoint__C5_osg_Vec3_R1__C5_osg_Vec4_R1, + "", + ""); + I_ConstructorWithDefaults8(IN, bool, on, , IN, const osg::Vec3 &, position, , IN, const osg::Vec4 &, color, , IN, float, intensity, 1.0f, IN, float, radius, 1.0f, IN, osgSim::Sector *, sector, 0, IN, osgSim::BlinkSequence *, blinkSequence, 0, IN, osgSim::LightPoint::BlendingMode, blendingMode, osgSim::LightPoint::BLENDED, + ____LightPoint__bool__C5_osg_Vec3_R1__C5_osg_Vec4_R1__float__float__Sector_P1__BlinkSequence_P1__BlendingMode, + "", + ""); + I_Constructor1(IN, const osgSim::LightPoint &, lp, + Properties::NON_EXPLICIT, + ____LightPoint__C5_LightPoint_R1, + "", + ""); + I_PublicMemberProperty(bool, _on); + I_PublicMemberProperty(osg::Vec3, _position); + I_PublicMemberProperty(osg::Vec4, _color); + I_PublicMemberProperty(float, _intensity); + I_PublicMemberProperty(float, _radius); + I_PublicMemberProperty(osg::ref_ptr< osgSim::Sector >, _sector); + I_PublicMemberProperty(osg::ref_ptr< osgSim::BlinkSequence >, _blinkSequence); + I_PublicMemberProperty(osgSim::LightPoint::BlendingMode, _blendingMode); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/LightPointNode.cpp b/src/osgWrappers/introspection/osgSim/LightPointNode.cpp new file mode 100644 index 000000000..1ab60cf7c --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/LightPointNode.cpp @@ -0,0 +1,199 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::LightPointList) + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) + I_DeclaringFile("osgSim/LightPointNode"); + I_BaseType(osg::Node); + I_Constructor0(____LightPointNode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::LightPointNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightPointNode__C5_LightPointNode_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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(). "); + I_ArrayProperty(const osgSim::LightPoint &, LightPoint, + __C5_LightPoint_R1__getLightPoint__unsigned_int, + 0, + __unsigned_int__getNumLightPoints, + __unsigned_int__addLightPoint__C5_LightPoint_R1, + 0, + __void__removeLightPoint__unsigned_int); + I_SimpleProperty(const osgSim::LightPointNode::LightPointList &, LightPointList, + __C5_LightPointList_R1__getLightPointList, + __void__setLightPointList__C5_LightPointList_R1); + I_SimpleProperty(osgSim::LightPointSystem *, LightPointSystem, + __osgSim_LightPointSystem_P1__getLightPointSystem, + __void__setLightPointSystem__osgSim_LightPointSystem_P1); + I_SimpleProperty(float, MaxPixelSize, + __float__getMaxPixelSize, + __void__setMaxPixelSize__float); + I_SimpleProperty(float, MaxVisibleDistance2, + __float__getMaxVisibleDistance2, + __void__setMaxVisibleDistance2__float); + I_SimpleProperty(float, MinPixelSize, + __float__getMinPixelSize, + __void__setMinPixelSize__float); + I_SimpleProperty(bool, PointSprite, + __bool__getPointSprite, + __void__setPointSprite__bool); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgSim::LightPoint >) + diff --git a/src/osgWrappers/introspection/osgSim/LightPointSystem.cpp b/src/osgWrappers/introspection/osgSim/LightPointSystem.cpp new file mode 100644 index 000000000..6a49074ed --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/LightPointSystem.cpp @@ -0,0 +1,94 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::LightPointSystem::AnimationState) + I_DeclaringFile("osgSim/LightPointSystem"); + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_ON); + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_OFF); + I_EnumLabel(osgSim::LightPointSystem::ANIMATION_RANDOM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) + I_DeclaringFile("osgSim/LightPointSystem"); + I_BaseType(osg::Object); + I_Constructor0(____LightPointSystem, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::LightPointSystem &, lps, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightPointSystem__C5_LightPointSystem_R1__C5_osg_CopyOp_R1, + "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 &, 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_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, + "", + ""); + I_SimpleProperty(osgSim::LightPointSystem::AnimationState, AnimationState, + __LightPointSystem_AnimationState__getAnimationState, + __void__setAnimationState__LightPointSystem_AnimationState); + I_SimpleProperty(float, Intensity, + __float__getIntensity, + __void__setIntensity__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/LineOfSight.cpp b/src/osgWrappers/introspection/osgSim/LineOfSight.cpp new file mode 100644 index 000000000..f41992796 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/LineOfSight.cpp @@ -0,0 +1,144 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::DatabaseCacheReadCallback) + I_DeclaringFile("osgSim/LineOfSight"); + 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, + "", + ""); + I_SimpleProperty(unsigned int, MaximumNumOfFilesToCache, + __unsigned_int__getMaximumNumOfFilesToCache, + __void__setMaximumNumOfFilesToCache__unsigned_int); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgSim::LineOfSight::Intersections) + +BEGIN_VALUE_REFLECTOR(osgSim::LineOfSight) + I_DeclaringFile("osgSim/LineOfSight"); + I_Constructor0(____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 single 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 multiple 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. ", + ""); + I_StaticMethodWithDefaults4(osgSim::LineOfSight::Intersections, computeIntersections, IN, osg::Node *, scene, , IN, const osg::Vec3d &, start, , IN, const osg::Vec3d &, end, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + __Intersections__computeIntersections__osg_Node_P1__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1__osg_Node_NodeMask_S, + "Compute the intersection between the specified scene graph and a single LOS start,end pair. ", + "Returns an IntersectionList, of all the points intersected. "); + I_SimpleProperty(osgSim::DatabaseCacheReadCallback *, DatabaseCacheReadCallback, + __DatabaseCacheReadCallback_P1__getDatabaseCacheReadCallback, + __void__setDatabaseCacheReadCallback__DatabaseCacheReadCallback_P1); + I_IndexedProperty(const osg::Vec3d &, EndPoint, + __C5_osg_Vec3d_R1__getEndPoint__unsigned_int, + __void__setEndPoint__unsigned_int__C5_osg_Vec3d_R1, + 0); + I_IndexedProperty(const osg::Vec3d &, StartPoint, + __C5_osg_Vec3d_R1__getStartPoint__unsigned_int, + __void__setStartPoint__unsigned_int__C5_osg_Vec3d_R1, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/MultiSwitch.cpp b/src/osgWrappers/introspection/osgSim/MultiSwitch.cpp new file mode 100644 index 000000000..dcf15b50a --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/MultiSwitch.cpp @@ -0,0 +1,202 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +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) + I_DeclaringFile("osgSim/MultiSwitch"); + I_BaseType(osg::Group); + I_Constructor0(____MultiSwitch, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::MultiSwitch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MultiSwitch__C5_MultiSwitch_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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. ", + ""); + I_ProtectedMethod1(void, expandToEncompassSwitchSet, IN, unsigned int, switchSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__expandToEncompassSwitchSet__unsigned_int, + "", + ""); + I_SimpleProperty(unsigned int, ActiveSwitchSet, + __unsigned_int__getActiveSwitchSet, + __void__setActiveSwitchSet__unsigned_int); + I_SimpleProperty(unsigned int, AllChildrenOff, + 0, + __bool__setAllChildrenOff__unsigned_int); + I_SimpleProperty(unsigned int, AllChildrenOn, + 0, + __bool__setAllChildrenOn__unsigned_int); + I_IndexedProperty(bool, ChildValue, + __bool__getChildValue__C5_osg_Node_P1__unsigned_int, + __void__setChildValue__C5_osg_Node_P1__unsigned_int__bool, + 0); + I_SimpleProperty(bool, NewChildDefaultValue, + __bool__getNewChildDefaultValue, + __void__setNewChildDefaultValue__bool); + I_SimpleProperty(const osgSim::MultiSwitch::SwitchSetList &, SwitchSetList, + __C5_SwitchSetList_R1__getSwitchSetList, + __void__setSwitchSetList__C5_SwitchSetList_R1); + I_IndexedProperty(bool, Value, + __bool__getValue__unsigned_int__unsigned_int, + __void__setValue__unsigned_int__unsigned_int__bool, + 0); + I_IndexedProperty(const osgSim::MultiSwitch::ValueList &, ValueList, + __C5_ValueList_R1__getValueList__unsigned_int, + __void__setValueList__unsigned_int__C5_ValueList_R1, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgSim::MultiSwitch::ValueList >) + diff --git a/src/osgWrappers/introspection/osgSim/ObjectRecordData.cpp b/src/osgWrappers/introspection/osgSim/ObjectRecordData.cpp new file mode 100644 index 000000000..b3eefb3fe --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ObjectRecordData.cpp @@ -0,0 +1,77 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::ObjectRecordData::Flags) + I_DeclaringFile("osgSim/ObjectRecordData"); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_IN_DAYLIGHT); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_DUSK); + I_EnumLabel(osgSim::ObjectRecordData::DONT_DISPLAY_AT_NIGHT); + I_EnumLabel(osgSim::ObjectRecordData::DONT_ILLUMINATE); + I_EnumLabel(osgSim::ObjectRecordData::FLAT_SHADED); + I_EnumLabel(osgSim::ObjectRecordData::GROUPS_SHADOW_OBJECT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ObjectRecordData) + I_DeclaringFile("osgSim/ObjectRecordData"); + I_BaseType(osg::Object); + I_Constructor0(____ObjectRecordData, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ObjectRecordData &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ObjectRecordData__C5_ObjectRecordData_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_PublicMemberProperty(unsigned int, _flags); + I_PublicMemberProperty(short, _relativePriority); + I_PublicMemberProperty(unsigned short, _transparency); + I_PublicMemberProperty(short, _effectID1); + I_PublicMemberProperty(short, _effectID2); + I_PublicMemberProperty(short, _significance); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/OverlayNode.cpp b/src/osgWrappers/introspection/osgSim/OverlayNode.cpp new file mode 100644 index 000000000..238b3032e --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/OverlayNode.cpp @@ -0,0 +1,274 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::OverlayNode::OverlayTechnique) + I_DeclaringFile("osgSim/OverlayNode"); + I_EnumLabel(osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY); + I_EnumLabel(osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY); + I_EnumLabel(osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::OverlayNode) + I_DeclaringFile("osgSim/OverlayNode"); + I_BaseType(osg::Group); + I_ConstructorWithDefaults1(IN, osgSim::OverlayNode::OverlayTechnique, technique, osgSim::OverlayNode::OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, + Properties::NON_EXPLICIT, + ____OverlayNode__OverlayTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::OverlayNode &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____OverlayNode__C5_OverlayNode_R1__C5_osg_CopyOp_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, traverse, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setOverlayTechnique, IN, osgSim::OverlayNode::OverlayTechnique, technique, + Properties::NON_VIRTUAL, + __void__setOverlayTechnique__OverlayTechnique, + "", + ""); + I_Method0(osgSim::OverlayNode::OverlayTechnique, getOverlayTechnique, + Properties::NON_VIRTUAL, + __OverlayTechnique__getOverlayTechnique, + "", + ""); + I_Method1(void, setRenderTargetImplementation, IN, osg::Camera::RenderTargetImplementation, impl, + Properties::NON_VIRTUAL, + __void__setRenderTargetImplementation__osg_Camera_RenderTargetImplementation, + "Set the implementation to be used when creating the overlay texture. ", + ""); + 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, setOverlayBaseHeight, IN, double, baseHeight, + Properties::NON_VIRTUAL, + __void__setOverlayBaseHeight__double, + "Set the base height that the overlay subgraph will be projected down to. ", + "Normally you'll set this to just below ground level, if you set it too high then the overlay texture can end up being clipped in certain viewing directions, while if its too low then there will be a limit to how close you can get to the terrain before pixaltion becomes an issue. "); + I_Method0(double, getOverlayBaseHeight, + Properties::NON_VIRTUAL, + __double__getOverlayBaseHeight, + "Get the base height that the overlay subgraph will be projected down to. ", + ""); + 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_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. "); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "", + ""); + I_ProtectedMethod0(void, init_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, + "", + ""); + I_ProtectedMethod0(void, init_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, + "", + ""); + I_ProtectedMethod0(void, init_VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init_VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY, + "", + ""); + I_ProtectedMethod1(void, traverse_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__traverse_OBJECT_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY__osg_NodeVisitor_R1, + "", + ""); + I_ProtectedMethod1(void, traverse_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__traverse_VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY__osg_NodeVisitor_R1, + "", + ""); + I_ProtectedMethod1(void, traverse_VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY, IN, osg::NodeVisitor &, nv, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__traverse_VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY__osg_NodeVisitor_R1, + "", + ""); + I_ProtectedMethod0(void, updateMainSubgraphStateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateMainSubgraphStateSet, + "", + ""); + + I_SimpleProperty(bool, ContinuousUpdate, + __bool__getContinuousUpdate, + __void__setContinuousUpdate__bool); + I_SimpleProperty(double, OverlayBaseHeight, + __double__getOverlayBaseHeight, + __void__setOverlayBaseHeight__double); + I_SimpleProperty(const osg::Vec4 &, OverlayClearColor, + __C5_osg_Vec4_R1__getOverlayClearColor, + __void__setOverlayClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Node *, OverlaySubgraph, + __osg_Node_P1__getOverlaySubgraph, + __void__setOverlaySubgraph__osg_Node_P1); + I_SimpleProperty(osgSim::OverlayNode::OverlayTechnique, OverlayTechnique, + __OverlayTechnique__getOverlayTechnique, + __void__setOverlayTechnique__OverlayTechnique); + I_SimpleProperty(unsigned int, OverlayTextureSizeHint, + __unsigned_int__getOverlayTextureSizeHint, + __void__setOverlayTextureSizeHint__unsigned_int); + I_SimpleProperty(unsigned int, OverlayTextureUnit, + __unsigned_int__getOverlayTextureUnit, + __void__setOverlayTextureUnit__unsigned_int); + I_SimpleProperty(osg::Camera::RenderTargetImplementation, RenderTargetImplementation, + 0, + __void__setRenderTargetImplementation__osg_Camera_RenderTargetImplementation); + I_SimpleProperty(GLenum, TexEnvMode, + __GLenum__getTexEnvMode, + __void__setTexEnvMode__GLenum); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/ScalarBar.cpp b/src/osgWrappers/introspection/osgSim/ScalarBar.cpp new file mode 100644 index 000000000..9aaf40025 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ScalarBar.cpp @@ -0,0 +1,244 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) + I_DeclaringFile("osgSim/ScalarBar"); + I_EnumLabel(osgSim::ScalarBar::HORIZONTAL); + I_EnumLabel(osgSim::ScalarBar::VERTICAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) + I_DeclaringFile("osgSim/ScalarBar"); + I_BaseType(osg::Geode); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp 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. see Orientation. see ScalarPrinter "); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "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. ", + ""); + I_ProtectedMethod0(void, createDrawables, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__createDrawables, + "", + ""); + I_SimpleProperty(float, AspectRatio, + __float__getAspectRatio, + __void__setAspectRatio__float); + I_SimpleProperty(int, NumColors, + 0, + __void__setNumColors__int); + I_SimpleProperty(int, NumLabels, + 0, + __void__setNumLabels__int); + I_SimpleProperty(osgSim::ScalarBar::Orientation, Orientation, + __ScalarBar_Orientation__getOrientation, + __void__setOrientation__ScalarBar_Orientation); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter, + 0, + __void__setScalarPrinter__ScalarPrinter_P1); + I_SimpleProperty(osgSim::ScalarsToColors *, ScalarsToColors, + 0, + __void__setScalarsToColors__ScalarsToColors_P1); + I_SimpleProperty(const osgSim::ScalarBar::TextProperties &, TextProperties, + __C5_TextProperties_R1__getTextProperties, + __void__setTextProperties__C5_TextProperties_R1); + I_SimpleProperty(std::string, Title, + __std_string__getTitle, + __void__setTitle__C5_std_string_R1); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) + I_DeclaringFile("osgSim/ScalarBar"); + I_BaseType(osg::Referenced); + I_Constructor0(____ScalarPrinter, + "", + ""); + I_Method1(std::string, printScalar, IN, float, scalar, + Properties::VIRTUAL, + __std_string__printScalar__float, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) + I_DeclaringFile("osgSim/ScalarBar"); + I_Constructor0(____TextProperties, + "", + ""); + I_PublicMemberProperty(std::string, _fontFile); + I_PublicMemberProperty(std::pair< int COMMA int >, _fontResolution); + I_PublicMemberProperty(float, _characterSize); + I_PublicMemberProperty(osg::Vec4, _color); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/ScalarsToColors.cpp b/src/osgWrappers/introspection/osgSim/ScalarsToColors.cpp new file mode 100644 index 000000000..d8823dd17 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ScalarsToColors.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarsToColors) + I_DeclaringFile("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. ", + ""); + I_SimpleProperty(float, Max, + __float__getMax, + 0); + I_SimpleProperty(float, Min, + __float__getMin, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/Sector.cpp b/src/osgWrappers/introspection/osgSim/Sector.cpp new file mode 100644 index 000000000..8d14b7cc8 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/Sector.cpp @@ -0,0 +1,428 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_BaseType(osgSim::ElevationRange); + I_Constructor0(____AzimElevationSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::AzimElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AzimElevationSector__C5_AzimElevationSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults5(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + ____AzimElevationSector__float__float__float__float__float, + "", + ""); + 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. "); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) + I_DeclaringFile("osgSim/Sector"); + I_Constructor0(____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) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::AzimRange); + I_Constructor0(____AzimSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::AzimSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AzimSector__C5_AzimSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f, + ____AzimSector__float__float__float, + "", + ""); + 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. "); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osgSim::Sector); + I_Constructor0(____ConeSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ConeSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ConeSector__C5_ConeSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, axis, , IN, float, angle, , IN, float, fadeangle, 0.0f, + ____ConeSector__C5_osg_Vec3_R1__float__float, + "", + ""); + 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_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, + "", + ""); + I_SimpleProperty(float, Angle, + __float__getAngle, + 0); + I_SimpleProperty(const osg::Vec3 &, Axis, + __C5_osg_Vec3_R1__getAxis, + __void__setAxis__C5_osg_Vec3_R1); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osgSim::Sector); + I_Constructor0(____DirectionalSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::DirectionalSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DirectionalSector__C5_DirectionalSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults5(IN, const osg::Vec3 &, direction, , IN, float, horizLobeAngle, , IN, float, vertLobeAngle, , IN, float, lobeRollAngle, , IN, float, fadeAngle, 0.0f, + ____DirectionalSector__C5_osg_Vec3_R1__float__float__float__float, + "", + ""); + 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_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, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, Direction, + __C5_osg_Vec3_R1__getDirection, + __void__setDirection__C5_osg_Vec3_R1); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + __void__setFadeAngle__float); + I_SimpleProperty(float, HorizLobeAngle, + __float__getHorizLobeAngle, + __void__setHorizLobeAngle__float); + I_SimpleProperty(float, LobeRollAngle, + __float__getLobeRollAngle, + __void__setLobeRollAngle__float); + I_SimpleProperty(float, VertLobeAngle, + __float__getVertLobeAngle, + __void__setVertLobeAngle__float); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) + I_DeclaringFile("osgSim/Sector"); + I_Constructor0(____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, + "", + ""); + I_SimpleProperty(float, FadeAngle, + __float__getFadeAngle, + 0); + I_SimpleProperty(float, MaxElevation, + __float__getMaxElevation, + 0); + I_SimpleProperty(float, MinElevation, + __float__getMinElevation, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osgSim::Sector); + I_BaseType(osgSim::ElevationRange); + I_Constructor0(____ElevationSector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ElevationSector__C5_ElevationSector_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults3(IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f, + ____ElevationSector__float__float__float, + "", + ""); + 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. "); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) + I_DeclaringFile("osgSim/Sector"); + I_BaseType(osg::Object); + I_Constructor0(____Sector, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/ShapeAttribute.cpp b/src/osgWrappers/introspection/osgSim/ShapeAttribute.cpp new file mode 100644 index 000000000..c4c3e8bda --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/ShapeAttribute.cpp @@ -0,0 +1,74 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::ShapeAttribute::Type) + I_DeclaringFile("osgSim/ShapeAttribute"); + I_EnumLabel(osgSim::ShapeAttribute::UNKNOW); + I_EnumLabel(osgSim::ShapeAttribute::INTEGER); + I_EnumLabel(osgSim::ShapeAttribute::DOUBLE); + I_EnumLabel(osgSim::ShapeAttribute::STRING); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ShapeAttributeList) + I_DeclaringFile("osgSim/ShapeAttribute"); + I_BaseType(osg::Object); + 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_Constructor0(____ShapeAttributeList, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::ShapeAttributeList &, sal, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShapeAttributeList__C5_ShapeAttributeList_R1__C5_osg_CopyOp_R1, + "Copy constructor, optional CopyOp object can be used to control shallow vs deep copying of dynamic data. ", + ""); + I_Method1(int, compare, IN, const osgSim::ShapeAttributeList &, sal, + Properties::VIRTUAL, + __int__compare__C5_osgSim_ShapeAttributeList_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgSim/SphereSegment.cpp b/src/osgWrappers/introspection/osgSim/SphereSegment.cpp new file mode 100644 index 000000000..beccac126 --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/SphereSegment.cpp @@ -0,0 +1,286 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) + I_DeclaringFile("osgSim/SphereSegment"); + I_EnumLabel(osgSim::SphereSegment::SURFACE); + I_EnumLabel(osgSim::SphereSegment::SPOKES); + I_EnumLabel(osgSim::SphereSegment::EDGELINE); + I_EnumLabel(osgSim::SphereSegment::SIDES); + I_EnumLabel(osgSim::SphereSegment::ALL); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Vec3Array > >, osgSim::SphereSegment::LineList) + +BEGIN_OBJECT_REFLECTOR(osgSim::SphereSegment) + I_DeclaringFile("osgSim/SphereSegment"); + I_BaseType(osg::Geode); + I_Constructor0(____SphereSegment, + "Default constructor. ", + ""); + I_Constructor7(IN, const osg::Vec3 &, centre, IN, float, radius, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, IN, int, density, + ____SphereSegment__C5_osg_Vec3_R1__float__float__float__float__float__int, + "Construct by angle ranges. ", + " param centre sphere centre radius radius of sphere azMin azimuth minimum azMax azimuth maximum elevMin elevation minimum elevMax elevation maximum density number of units to divide the azimuth and elevation ranges into "); + I_Constructor6(IN, const osg::Vec3 &, centre, IN, float, radius, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, IN, int, density, + ____SphereSegment__C5_osg_Vec3_R1__float__C5_osg_Vec3_R1__float__float__int, + "Construct by vector. ", + " param centre sphere centre radius radius of sphere 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) density number of units to divide the azimuth and elevation ranges into "); + I_Constructor2(IN, const osgSim::SphereSegment &, rhs, IN, const osg::CopyOp &, co, + ____SphereSegment__C5_SphereSegment_R1__C5_osg_CopyOp_R1, + "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. "); + I_SimpleProperty(const osg::Vec4 &, AllColors, + 0, + __void__setAllColors__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec3 &, Centre, + __C5_osg_Vec3_R1__getCentre, + __void__setCentre__C5_osg_Vec3_R1); + I_SimpleProperty(int, Density, + __int__getDensity, + __void__setDensity__int); + I_SimpleProperty(osgSim::SphereSegment::DrawMask, DrawMask, + __DrawMask__getDrawMask, + __void__setDrawMask__DrawMask); + I_SimpleProperty(osg::Vec4, EdgeLineColor, + __osg_Vec4__getEdgeLineColor, + __void__setEdgeLineColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, Radius, + __float__getRadius, + __void__setRadius__float); + I_SimpleProperty(osg::Vec4, SideColor, + __osg_Vec4__getSideColor, + __void__setSideColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Vec4, SpokeColor, + __osg_Vec4__getSpokeColor, + __void__setSpokeColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::Vec4, SurfaceColor, + __osg_Vec4__getSurfaceColor, + __void__setSurfaceColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Vec3Array >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Vec3Array *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Vec3Array > >) + diff --git a/src/osgWrappers/introspection/osgSim/VisibilityGroup.cpp b/src/osgWrappers/introspection/osgSim/VisibilityGroup.cpp new file mode 100644 index 000000000..9c2b0655e --- /dev/null +++ b/src/osgWrappers/introspection/osgSim/VisibilityGroup.cpp @@ -0,0 +1,117 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) + I_DeclaringFile("osgSim/VisibilityGroup"); + I_BaseType(osg::Group); + I_Constructor0(____VisibilityGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VisibilityGroup__C5_VisibilityGroup_R1__C5_osg_CopyOp_R1, + "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 &, x, + 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. ", + ""); + I_SimpleProperty(float, SegmentLength, + __float__getSegmentLength, + __void__setSegmentLength__float); + I_SimpleProperty(osg::Node *, VisibilityVolume, + __osg_Node_P1__getVisibilityVolume, + __void__setVisibilityVolume__osg_Node_P1); + I_SimpleProperty(osg::Node::NodeMask, VolumeIntersectionMask, + __osg_Node_NodeMask__getVolumeIntersectionMask, + __void__setVolumeIntersectionMask__osg_Node_NodeMask); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/Export.cpp b/src/osgWrappers/introspection/osgTerrain/Export.cpp new file mode 100644 index 000000000..cb84b725c --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/Export.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp b/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp new file mode 100644 index 000000000..3be4d16d1 --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/GeometryTechnique.cpp @@ -0,0 +1,187 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgTerrain::GeometryTechnique::FilterType) + I_DeclaringFile("osgTerrain/GeometryTechnique"); + I_EnumLabel(osgTerrain::GeometryTechnique::GAUSSIAN); + I_EnumLabel(osgTerrain::GeometryTechnique::SMOOTH); + I_EnumLabel(osgTerrain::GeometryTechnique::SHARPEN); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::GeometryTechnique) + I_DeclaringFile("osgTerrain/GeometryTechnique"); + I_BaseType(osgTerrain::TerrainTechnique); + I_Constructor0(____GeometryTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::GeometryTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____GeometryTechnique__C5_GeometryTechnique_R1__C5_osg_CopyOp_R1, + "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 &, 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, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method0(osgTerrain::Locator *, computeMasterLocator, + Properties::VIRTUAL, + __Locator_P1__computeMasterLocator, + "", + ""); + I_Method1(osg::Vec3d, computeCenterModel, IN, osgTerrain::Locator *, masterLocator, + Properties::VIRTUAL, + __osg_Vec3d__computeCenterModel__Locator_P1, + "", + ""); + I_Method2(void, generateGeometry, IN, osgTerrain::Locator *, masterLocator, IN, const osg::Vec3d &, centerModel, + Properties::VIRTUAL, + __void__generateGeometry__Locator_P1__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(void, applyColorLayers, + Properties::VIRTUAL, + __void__applyColorLayers, + "", + ""); + I_Method0(void, applyTransparency, + Properties::VIRTUAL, + __void__applyTransparency, + "", + ""); + I_Method0(void, smoothGeometry, + Properties::VIRTUAL, + __void__smoothGeometry, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terain subgraph. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, setFilterBias, IN, float, filterBias, + Properties::NON_VIRTUAL, + __void__setFilterBias__float, + "", + ""); + I_Method0(float, getFilterBias, + Properties::NON_VIRTUAL, + __float__getFilterBias, + "", + ""); + I_Method1(void, setFilterWidth, IN, float, filterWidth, + Properties::NON_VIRTUAL, + __void__setFilterWidth__float, + "", + ""); + I_Method0(float, getFilterWidth, + Properties::NON_VIRTUAL, + __float__getFilterWidth, + "", + ""); + I_Method1(void, setFilterMatrix, IN, const osg::Matrix3 &, matrix, + Properties::NON_VIRTUAL, + __void__setFilterMatrix__C5_osg_Matrix3_R1, + "", + ""); + I_Method0(osg::Matrix3 &, getFilterMatrix, + Properties::NON_VIRTUAL, + __osg_Matrix3_R1__getFilterMatrix, + "", + ""); + I_Method0(const osg::Matrix3 &, getFilterMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix3_R1__getFilterMatrix, + "", + ""); + I_Method1(void, setFilterMatrixAs, IN, osgTerrain::GeometryTechnique::FilterType, filterType, + Properties::NON_VIRTUAL, + __void__setFilterMatrixAs__FilterType, + "", + ""); + 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 objects for all graphics contexts. "); + I_SimpleProperty(float, FilterBias, + __float__getFilterBias, + __void__setFilterBias__float); + I_SimpleProperty(const osg::Matrix3 &, FilterMatrix, + __C5_osg_Matrix3_R1__getFilterMatrix, + __void__setFilterMatrix__C5_osg_Matrix3_R1); + I_SimpleProperty(osgTerrain::GeometryTechnique::FilterType, FilterMatrixAs, + 0, + __void__setFilterMatrixAs__FilterType); + I_SimpleProperty(float, FilterWidth, + __float__getFilterWidth, + __void__setFilterWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/Layer.cpp b/src/osgWrappers/introspection/osgTerrain/Layer.cpp new file mode 100644 index 000000000..b34095e30 --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/Layer.cpp @@ -0,0 +1,1018 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::CompositeLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_Constructor0(____CompositeLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::CompositeLayer &, compositeLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeLayer__C5_CompositeLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method1(void, setSetName, IN, const std::string &, setname, + Properties::NON_VIRTUAL, + __void__setSetName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getSetName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getSetName, + "", + ""); + I_Method2(void, setSetName, IN, unsigned int, i, IN, const std::string &, setname, + Properties::NON_VIRTUAL, + __void__setSetName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(const std::string &, getSetName, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getSetName__unsigned_int, + "", + ""); + I_Method2(void, setFileName, IN, unsigned int, i, 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, i, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method2(void, setCompoundName, IN, unsigned int, i, IN, const std::string &, compoundname, + Properties::NON_VIRTUAL, + __void__setCompoundName__unsigned_int__C5_std_string_R1, + "", + ""); + I_Method1(std::string, getCompoundName, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __std_string__getCompoundName__unsigned_int, + "", + ""); + I_Method2(void, setLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int__Layer_P1, + "", + ""); + I_Method1(osgTerrain::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(const osgTerrain::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(void, addLayer, IN, const std::string &, compoundname, + Properties::NON_VIRTUAL, + __void__addLayer__C5_std_string_R1, + "", + ""); + I_Method2(void, addLayer, IN, const std::string &, setname, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__addLayer__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Method1(void, addLayer, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__addLayer__Layer_P1, + "", + ""); + I_Method1(void, removeLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLayers, + "", + ""); + I_IndexedProperty(std::string, CompoundName, + __std_string__getCompoundName__unsigned_int, + __void__setCompoundName__unsigned_int__C5_std_string_R1, + 0); + I_IndexedProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + 0); + I_ArrayProperty(osgTerrain::Layer *, Layer, + __Layer_P1__getLayer__unsigned_int, + __void__setLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumLayers, + __void__addLayer__Layer_P1, + 0, + __void__removeLayer__unsigned_int); + I_SimpleProperty(const std::string &, SetName, + __C5_std_string_R1__getSetName, + __void__setSetName__C5_std_string_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ContourLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::TransferFunction1D *, tf, 0, + Properties::NON_EXPLICIT, + ____ContourLayer__osg_TransferFunction1D_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ContourLayer &, tfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ContourLayer__C5_ContourLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setTransferFunction, IN, osg::TransferFunction1D *, tf, + Properties::NON_VIRTUAL, + __void__setTransferFunction__osg_TransferFunction1D_P1, + "", + ""); + I_Method0(osg::TransferFunction1D *, getTransferFunction, + Properties::NON_VIRTUAL, + __osg_TransferFunction1D_P1__getTransferFunction, + "", + ""); + I_Method0(const osg::TransferFunction1D *, getTransferFunction, + Properties::NON_VIRTUAL, + __C5_osg_TransferFunction1D_P1__getTransferFunction, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(osg::TransferFunction1D *, TransferFunction, + __osg_TransferFunction1D_P1__getTransferFunction, + __void__setTransferFunction__osg_TransferFunction1D_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::HeightField *, hf, 0, + Properties::NON_EXPLICIT, + ____HeightFieldLayer__osg_HeightField_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldLayer &, hfLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HeightFieldLayer__C5_HeightFieldLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setHeightField, IN, osg::HeightField *, hf, + Properties::NON_VIRTUAL, + __void__setHeightField__osg_HeightField_P1, + "", + ""); + I_Method0(osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __osg_HeightField_P1__getHeightField, + "", + ""); + I_Method0(const osg::HeightField *, getHeightField, + Properties::NON_VIRTUAL, + __C5_osg_HeightField_P1__getHeightField, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::HeightField *, HeightField, + __osg_HeightField_P1__getHeightField, + __void__setHeightField__osg_HeightField_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ImageLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, + ____ImageLayer__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ImageLayer &, imageLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageLayer__C5_ImageLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Layer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osg::Object); + I_Constructor0(____Layer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Layer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Layer__C5_Layer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setSetName, IN, const std::string &, setname, + Properties::NON_VIRTUAL, + __void__setSetName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getSetName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getSetName, + "", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method0(std::string, getCompoundName, + Properties::NON_VIRTUAL, + __std_string__getCompoundName, + "Return the compound name of the layer in the form set::name::filename string. ", + ""); + I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "", + ""); + I_Method0(osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "", + ""); + I_Method0(const osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "", + ""); + I_Method1(void, setMinLevel, IN, unsigned int, minLevel, + Properties::NON_VIRTUAL, + __void__setMinLevel__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMinLevel, + "", + ""); + I_Method1(void, setMaxLevel, IN, unsigned int, maxLevel, + Properties::NON_VIRTUAL, + __void__setMaxLevel__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMaxLevel, + Properties::NON_VIRTUAL, + __unsigned_int__getMaxLevel, + "", + ""); + I_Method1(void, setValidDataOperator, IN, osgTerrain::ValidDataOperator *, validDataOp, + Properties::NON_VIRTUAL, + __void__setValidDataOperator__ValidDataOperator_P1, + "", + ""); + I_Method0(osgTerrain::ValidDataOperator *, getValidDataOperator, + Properties::NON_VIRTUAL, + __ValidDataOperator_P1__getValidDataOperator, + "", + ""); + I_Method0(const osgTerrain::ValidDataOperator *, getValidDataOperator, + Properties::NON_VIRTUAL, + __C5_ValidDataOperator_P1__getValidDataOperator, + "", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method1(void, setDefaultValue, IN, const osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __void__setDefaultValue__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultValue, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultValue, + "", + ""); + I_Method1(void, setMinFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMinFilter__osg_Texture_FilterMode, + "Set the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMinFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilter, + "Get the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method1(void, setMagFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMagFilter__osg_Texture_FilterMode, + "Set the magniification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMagFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilter, + "Get the magnification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_Method2(bool, transform, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, float &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec2 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec3 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned, int, IN, unsigned, int, IN, osg::Vec4 &, x, + Properties::VIRTUAL, + __bool__getValue__unsigned__unsigned__osg_Vec4_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValidValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __bool__getValidValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method6(void, computeIndices, IN, double, ndc_x, IN, double, ndc_y, IN, unsigned int &, i, IN, unsigned int &, j, IN, double &, ir, IN, double &, jr, + Properties::NON_VIRTUAL, + __void__computeIndices__double__double__unsigned_int_R1__unsigned_int_R1__double_R1__double_R1, + "", + ""); + I_Method3(bool, getInterpolatedValue, IN, double, ndc_x, IN, double, ndc_y, IN, float &, value, + Properties::NON_VIRTUAL, + __bool__getInterpolatedValue__double__double__float_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound__bool, + "", + ""); + I_SimpleProperty(std::string, CompoundName, + __std_string__getCompoundName, + 0); + I_SimpleProperty(const osg::Vec4 &, DefaultValue, + __C5_osg_Vec4_R1__getDefaultValue, + __void__setDefaultValue__C5_osg_Vec4_R1); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osgTerrain::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(osg::Texture::FilterMode, MagFilter, + __osg_Texture_FilterMode__getMagFilter, + __void__setMagFilter__osg_Texture_FilterMode); + I_SimpleProperty(unsigned int, MaxLevel, + __unsigned_int__getMaxLevel, + __void__setMaxLevel__unsigned_int); + I_SimpleProperty(osg::Texture::FilterMode, MinFilter, + __osg_Texture_FilterMode__getMinFilter, + __void__setMinFilter__osg_Texture_FilterMode); + I_SimpleProperty(unsigned int, MinLevel, + __unsigned_int__getMinLevel, + __void__setMinLevel__unsigned_int); + I_SimpleProperty(unsigned, ModifiedCount, + 0, + __void__setModifiedCount__unsigned); + I_SimpleProperty(const std::string &, SetName, + __C5_std_string_R1__getSetName, + __void__setSetName__C5_std_string_R1); + I_SimpleProperty(osgTerrain::ValidDataOperator *, ValidDataOperator, + __ValidDataOperator_P1__getValidDataOperator, + __void__setValidDataOperator__ValidDataOperator_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ProxyLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::Layer); + I_Constructor0(____ProxyLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::ProxyLayer &, proxyLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ProxyLayer__C5_ProxyLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_Method1(void, setImplementation, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setImplementation__Layer_P1, + "Set the implementation layer that does the actual work. ", + ""); + I_Method0(osgTerrain::Layer *, getImplementation, + Properties::NON_VIRTUAL, + __Layer_P1__getImplementation, + "Get the implementation layer that does the actual work. ", + ""); + I_Method0(const osgTerrain::Layer *, getImplementation, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getImplementation, + "Get the const implementation layer that does the actual work. ", + ""); + I_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method0(unsigned int, getNumColumns, + Properties::VIRTUAL, + __unsigned_int__getNumColumns, + "", + ""); + I_Method0(unsigned int, getNumRows, + Properties::VIRTUAL, + __unsigned_int__getNumRows, + "", + ""); + I_Method2(bool, transform, IN, float, offset, IN, float, scale, + Properties::VIRTUAL, + __bool__transform__float__float, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, float &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__float_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec2 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec3 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method3(bool, getValue, IN, unsigned int, i, IN, unsigned int, j, IN, osg::Vec4 &, value, + Properties::VIRTUAL, + __bool__getValue__unsigned_int__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method1(osg::BoundingSphere, computeBound, IN, bool, treatAsElevationLayer, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound__bool, + "", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osgTerrain::Layer *, Implementation, + __Layer_P1__getImplementation, + __void__setImplementation__Layer_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::SwitchLayer) + I_DeclaringFile("osgTerrain/Layer"); + I_BaseType(osgTerrain::CompositeLayer); + I_Constructor0(____SwitchLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::SwitchLayer &, switchLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SwitchLayer__C5_SwitchLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setActiveLayer, IN, int, i, + Properties::NON_VIRTUAL, + __void__setActiveLayer__int, + "", + ""); + I_Method0(int, getActiveLayer, + Properties::NON_VIRTUAL, + __int__getActiveLayer, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_SimpleProperty(int, ActiveLayer, + __int__getActiveLayer, + __void__setActiveLayer__int); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/Locator.cpp b/src/osgWrappers/introspection/osgTerrain/Locator.cpp new file mode 100644 index 000000000..ef2f1696d --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/Locator.cpp @@ -0,0 +1,196 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgTerrain::Locator::CoordinateSystemType) + I_DeclaringFile("osgTerrain/Locator"); + I_EnumLabel(osgTerrain::Locator::GEOCENTRIC); + I_EnumLabel(osgTerrain::Locator::GEOGRAPHIC); + I_EnumLabel(osgTerrain::Locator::PROJECTED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Locator) + I_DeclaringFile("osgTerrain/Locator"); + I_BaseType(osg::Object); + I_Constructor0(____Locator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Locator &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Locator__C5_Locator_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setCoordinateSystemType, IN, osgTerrain::Locator::CoordinateSystemType, type, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemType__CoordinateSystemType, + "Set the CoordinatesSyetemType. ", + "Note, the user must keep the CoordinateSystemString consistent with the type of the CoordinateSystem. "); + I_Method0(osgTerrain::Locator::CoordinateSystemType, getCoordinateSystemType, + Properties::NON_VIRTUAL, + __CoordinateSystemType__getCoordinateSystemType, + "Get the CoordinatesSyetemType. ", + ""); + 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__osg_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, + __osg_EllipsoidModel_P1__getEllipsoidModel, + "Get the EllipsoidModel. ", + ""); + I_Method0(const osg::EllipsoidModel *, getEllipsoidModel, + Properties::NON_VIRTUAL, + __C5_osg_EllipsoidModel_P1__getEllipsoidModel, + "Get the const EllipsoidModel. ", + ""); + I_Method1(void, setTransform, IN, const osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setTransform__C5_osg_Matrixd_R1, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method0(const osg::Matrixd &, getTransform, + Properties::NON_VIRTUAL, + __C5_osg_Matrixd_R1__getTransform, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method4(void, setTransformAsExtents, IN, double, minX, IN, double, minY, IN, double, maxX, IN, double, maxY, + Properties::NON_VIRTUAL, + __void__setTransformAsExtents__double__double__double__double, + "Set the extents of the local coords. ", + ""); + I_Method0(bool, orientationOpenGL, + Properties::VIRTUAL, + __bool__orientationOpenGL, + "", + ""); + I_Method2(bool, convertLocalToModel, IN, const osg::Vec3d &, local, IN, osg::Vec3d &, world, + Properties::VIRTUAL, + __bool__convertLocalToModel__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, convertModelToLocal, IN, const osg::Vec3d &, world, IN, osg::Vec3d &, local, + Properties::VIRTUAL, + __bool__convertModelToLocal__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method3(bool, computeLocalBounds, IN, osgTerrain::Locator &, source, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__Locator_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method1(void, setDefinedInFile, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setDefinedInFile__bool, + "", + ""); + I_Method0(bool, getDefinedInFile, + Properties::NON_VIRTUAL, + __bool__getDefinedInFile, + "", + ""); + I_Method1(void, setTransformScaledByResolution, IN, bool, scaledByResolution, + Properties::NON_VIRTUAL, + __void__setTransformScaledByResolution__bool, + "", + ""); + I_Method0(bool, getTransformScaledByResolution, + Properties::NON_VIRTUAL, + __bool__getTransformScaledByResolution, + "", + ""); + I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgTerrain::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgTerrain::Locator &, destination, IN, osg::Vec3d &, destinationNDC, + __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, + "", + ""); + I_SimpleProperty(const std::string &, CoordinateSystem, + __C5_std_string_R1__getCoordinateSystem, + __void__setCoordinateSystem__C5_std_string_R1); + I_SimpleProperty(osgTerrain::Locator::CoordinateSystemType, CoordinateSystemType, + __CoordinateSystemType__getCoordinateSystemType, + __void__setCoordinateSystemType__CoordinateSystemType); + I_SimpleProperty(bool, DefinedInFile, + __bool__getDefinedInFile, + __void__setDefinedInFile__bool); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + __osg_EllipsoidModel_P1__getEllipsoidModel, + __void__setEllipsoidModel__osg_EllipsoidModel_P1); + I_SimpleProperty(const std::string &, Format, + __C5_std_string_R1__getFormat, + __void__setFormat__C5_std_string_R1); + I_SimpleProperty(const osg::Matrixd &, Transform, + __C5_osg_Matrixd_R1__getTransform, + __void__setTransform__C5_osg_Matrixd_R1); + I_SimpleProperty(bool, TransformScaledByResolution, + __bool__getTransformScaledByResolution, + __void__setTransformScaledByResolution__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/Terrain.cpp b/src/osgWrappers/introspection/osgTerrain/Terrain.cpp new file mode 100644 index 000000000..d7a2e7ae9 --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/Terrain.cpp @@ -0,0 +1,146 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::Terrain) + I_DeclaringFile("osgTerrain/Terrain"); + I_BaseType(osg::Group); + I_Constructor0(____Terrain, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::Terrain &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Terrain__C5_Terrain_R1__C5_osg_CopyOp_R1, + "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 &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(void, setSampleRatio, IN, float, ratio, + Properties::NON_VIRTUAL, + __void__setSampleRatio__float, + "Set the sample ratio hint that TerrainTile should use when building geometry. ", + "Defaults to 1.0, which means use all original sample points. "); + I_Method0(float, getSampleRatio, + Properties::NON_VIRTUAL, + __float__getSampleRatio, + "Get the sample ratio hint. ", + ""); + I_Method1(void, setVerticalScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setVerticalScale__float, + "Set the vertical scale hint. ", + ""); + I_Method0(float, getVerticalScale, + Properties::NON_VIRTUAL, + __float__getVerticalScale, + "Get the vertical scale hint. ", + ""); + I_Method1(osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __TerrainTile_P1__getTile__C5_TileID_R1, + "Get the TerrainTile for a given TileID. ", + ""); + I_Method1(const osgTerrain::TerrainTile *, getTile, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __C5_TerrainTile_P1__getTile__C5_TileID_R1, + "Get the const TerrainTile for a given TileID. ", + ""); + I_Method1(void, setTerrainTechniquePrototype, IN, osgTerrain::TerrainTechnique *, technique, + Properties::NON_VIRTUAL, + __void__setTerrainTechniquePrototype__TerrainTechnique_P1, + "Set the TerrainTechnique prototype from which TerrainTiles can clone the techniques from. ", + ""); + I_Method0(osgTerrain::TerrainTechnique *, getTerrainTechniquePrototype, + Properties::NON_VIRTUAL, + __TerrainTechnique_P1__getTerrainTechniquePrototype, + "Get the TerrainTechnique prototype. ", + ""); + I_Method0(const osgTerrain::TerrainTechnique *, getTerrainTechniquePrototype, + Properties::NON_VIRTUAL, + __C5_TerrainTechnique_P1__getTerrainTechniquePrototype, + "Get the const TerrainTechnique protype. ", + ""); + I_ProtectedMethod0(void, dirtyRegisteredTiles, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyRegisteredTiles, + "", + ""); + I_ProtectedMethod1(void, registerTerrainTile, IN, osgTerrain::TerrainTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__registerTerrainTile__TerrainTile_P1, + "", + ""); + I_ProtectedMethod1(void, unregisterTerrainTile, IN, osgTerrain::TerrainTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__unregisterTerrainTile__TerrainTile_P1, + "", + ""); + I_SimpleProperty(float, SampleRatio, + __float__getSampleRatio, + __void__setSampleRatio__float); + I_SimpleProperty(osgTerrain::TerrainTechnique *, TerrainTechniquePrototype, + __TerrainTechnique_P1__getTerrainTechniquePrototype, + __void__setTerrainTechniquePrototype__TerrainTechnique_P1); + I_SimpleProperty(float, VerticalScale, + __float__getVerticalScale, + __void__setVerticalScale__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/TerrainTechnique.cpp b/src/osgWrappers/introspection/osgTerrain/TerrainTechnique.cpp new file mode 100644 index 000000000..7bcbdf7a4 --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/TerrainTechnique.cpp @@ -0,0 +1,115 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTechnique) + I_DeclaringFile("osgTerrain/TerrainTechnique"); + I_BaseType(osg::Object); + I_Constructor0(____TerrainTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TerrainTechnique__C5_TerrainTechnique_R1__C5_osg_CopyOp_R1, + "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 &, 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(osgTerrain::TerrainTile *, getTerrainTile, + Properties::NON_VIRTUAL, + __TerrainTile_P1__getTerrainTile, + "", + ""); + I_Method0(const osgTerrain::TerrainTile *, getTerrainTile, + Properties::NON_VIRTUAL, + __C5_TerrainTile_P1__getTerrainTile, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terrain subgraph. ", + ""); + 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 objects for all graphics contexts. "); + I_ProtectedMethod1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setDirty__bool, + "", + ""); + I_SimpleProperty(osgTerrain::TerrainTile *, TerrainTile, + __TerrainTile_P1__getTerrainTile, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/TerrainTile.cpp b/src/osgWrappers/introspection/osgTerrain/TerrainTile.cpp new file mode 100644 index 000000000..148c1367b --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/TerrainTile.cpp @@ -0,0 +1,402 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::TerrainTile) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_BaseType(osg::Group); + I_Constructor0(____TerrainTile, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgTerrain::TerrainTile &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TerrainTile__C5_TerrainTile_R1__C5_osg_CopyOp_R1, + "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 &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "Call init on any attached TerrainTechnique. ", + ""); + I_Method1(void, setTerrain, IN, osgTerrain::Terrain *, ts, + Properties::NON_VIRTUAL, + __void__setTerrain__Terrain_P1, + "Set the Terrain that this Terrain tile is a member of. ", + ""); + I_Method0(osgTerrain::Terrain *, getTerrain, + Properties::NON_VIRTUAL, + __Terrain_P1__getTerrain, + "Get the Terrain that this Terrain tile is a member of. ", + ""); + I_Method0(const osgTerrain::Terrain *, getTerrain, + Properties::NON_VIRTUAL, + __C5_Terrain_P1__getTerrain, + "Get the const Terrain that this Terrain tile is a member of. ", + ""); + I_Method1(void, setTileID, IN, const osgTerrain::TileID &, tileID, + Properties::NON_VIRTUAL, + __void__setTileID__C5_TileID_R1, + "Set the TileID (layer, x,y) of the TerrainTile. ", + "The TileID is used so it can be located by its neighbours via the enclosing Terrain node that manages a map of TileID to TerraiTiles. "); + I_Method0(const osgTerrain::TileID &, getTileID, + Properties::NON_VIRTUAL, + __C5_TileID_R1__getTileID, + "Get the TileID (layer, x,y) of the TerrainTile. ", + ""); + I_Method1(void, setTerrainTechnique, IN, osgTerrain::TerrainTechnique *, terrainTechnique, + Properties::NON_VIRTUAL, + __void__setTerrainTechnique__TerrainTechnique_P1, + "Set the TerrainTechnique. ", + ""); + I_Method0(osgTerrain::TerrainTechnique *, getTerrainTechnique, + Properties::NON_VIRTUAL, + __TerrainTechnique_P1__getTerrainTechnique, + "Get the TerrainTechnique. ", + ""); + I_Method0(const osgTerrain::TerrainTechnique *, getTerrainTechnique, + Properties::NON_VIRTUAL, + __C5_TerrainTechnique_P1__getTerrainTechnique, + "Get the const TerrainTechnique. ", + ""); + I_Method1(void, setLocator, IN, osgTerrain::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "Set the coordinate frame locator of the terrain node. ", + "The locator takes non-dimensional s,t coordinates into the X,Y,Z world coords and back. "); + I_Method0(osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "Get the coordinate frame locator of the terrain node. ", + ""); + I_Method0(const osgTerrain::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "Get the const coordinate frame locator of the terrain node. ", + ""); + I_Method1(void, setElevationLayer, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setElevationLayer__Layer_P1, + "Set the layer to use to define the elevations of the terrain. ", + ""); + I_Method0(osgTerrain::Layer *, getElevationLayer, + Properties::NON_VIRTUAL, + __Layer_P1__getElevationLayer, + "Get the layer to use to define the elevations of the terrain. ", + ""); + I_Method0(const osgTerrain::Layer *, getElevationLayer, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getElevationLayer, + "Get the const layer to use to define the elevations of the terrain. ", + ""); + I_Method2(void, setColorLayer, IN, unsigned int, i, IN, osgTerrain::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setColorLayer__unsigned_int__Layer_P1, + "Set a color layer with specified layer number. ", + ""); + I_Method1(osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getColorLayer__unsigned_int, + "Get color layer with specified layer number. ", + ""); + I_Method1(const osgTerrain::Layer *, getColorLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getColorLayer__unsigned_int, + "Set const color layer with specified layer number. ", + ""); + I_Method0(unsigned int, getNumColorLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumColorLayers, + "Get the number of colour layers. ", + ""); + I_Method1(void, setRequiresNormals, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setRequiresNormals__bool, + "Set hint to whether the TerrainTechnique should create per vertex normals for lighting purposes. ", + ""); + I_Method0(bool, getRequiresNormals, + Properties::NON_VIRTUAL, + __bool__getRequiresNormals, + "Get whether the TerrainTechnique should create per vertex normals for lighting purposes. ", + ""); + I_Method1(void, setTreatBoundariesToValidDataAsDefaultValue, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTreatBoundariesToValidDataAsDefaultValue__bool, + "Set the hint to whether the TerrainTechnique should treat the invalid Layer entries that at are neigbours to valid entries with the default value. ", + ""); + I_Method0(bool, getTreatBoundariesToValidDataAsDefaultValue, + Properties::NON_VIRTUAL, + __bool__getTreatBoundariesToValidDataAsDefaultValue, + "Get whether the TeatBoundariesToValidDataAsDefaultValue hint. ", + ""); + I_Method1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + __void__setDirty__bool, + "Set the dirty flag on/off. ", + ""); + I_Method0(bool, getDirty, + Properties::NON_VIRTUAL, + __bool__getDirty, + "return true if the tile is dirty and needs to be updated, ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "Compute the bounding volume of the terrain by computing the union of the bounding volumes of all layers. ", + ""); + 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 objects for all graphics contexts. "); + I_StaticMethod1(void, setTileLoadedCallback, IN, osgTerrain::TerrainTile::TileLoadedCallback *, lc, + __void__setTileLoadedCallback__TileLoadedCallback_P1_S, + "", + ""); + I_StaticMethod0(osg::ref_ptr< osgTerrain::TerrainTile::TileLoadedCallback > &, getTileLoadedCallback, + __osg_ref_ptrT1_TileLoadedCallback__R1__getTileLoadedCallback_S, + "", + ""); + I_ArrayProperty(osgTerrain::Layer *, ColorLayer, + __Layer_P1__getColorLayer__unsigned_int, + __void__setColorLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumColorLayers, + 0, + 0, + 0); + I_SimpleProperty(bool, Dirty, + __bool__getDirty, + __void__setDirty__bool); + I_SimpleProperty(osgTerrain::Layer *, ElevationLayer, + __Layer_P1__getElevationLayer, + __void__setElevationLayer__Layer_P1); + I_SimpleProperty(osgTerrain::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(bool, RequiresNormals, + __bool__getRequiresNormals, + __void__setRequiresNormals__bool); + I_SimpleProperty(osgTerrain::Terrain *, Terrain, + __Terrain_P1__getTerrain, + __void__setTerrain__Terrain_P1); + I_SimpleProperty(osgTerrain::TerrainTechnique *, TerrainTechnique, + __TerrainTechnique_P1__getTerrainTechnique, + __void__setTerrainTechnique__TerrainTechnique_P1); + I_SimpleProperty(const osgTerrain::TileID &, TileID, + __C5_TileID_R1__getTileID, + __void__setTileID__C5_TileID_R1); + I_SimpleProperty(bool, TreatBoundariesToValidDataAsDefaultValue, + __bool__getTreatBoundariesToValidDataAsDefaultValue, + __void__setTreatBoundariesToValidDataAsDefaultValue__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::TerrainTile::TileLoadedCallback) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_BaseType(osg::Referenced); + I_Constructor0(____TileLoadedCallback, + "", + ""); + I_Method0(bool, deferExternalLayerLoading, + Properties::PURE_VIRTUAL, + __bool__deferExternalLayerLoading, + "", + ""); + I_Method2(void, loaded, IN, osgTerrain::TerrainTile *, tile, IN, const osgDB::ReaderWriter::Options *, options, + Properties::PURE_VIRTUAL, + __void__loaded__osgTerrain_TerrainTile_P1__C5_osgDB_ReaderWriter_Options_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::TileID) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_Constructor0(____TileID, + "", + ""); + I_Constructor3(IN, int, in_level, IN, int, in_x, IN, int, in_y, + ____TileID__int__int__int, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_PublicMemberProperty(int, level); + I_PublicMemberProperty(int, x); + I_PublicMemberProperty(int, y); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::WhiteListTileLoadedCallback) + I_DeclaringFile("osgTerrain/TerrainTile"); + I_BaseType(osgTerrain::TerrainTile::TileLoadedCallback); + I_Constructor0(____WhiteListTileLoadedCallback, + "", + ""); + I_Method1(void, allow, IN, const std::string &, setname, + Properties::NON_VIRTUAL, + __void__allow__C5_std_string_R1, + "", + ""); + I_Method1(void, setMinimumNumOfLayers, IN, unsigned int, numLayers, + Properties::NON_VIRTUAL, + __void__setMinimumNumOfLayers__unsigned_int, + "", + ""); + I_Method0(unsigned int, getMinimumNumOfLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getMinimumNumOfLayers, + "", + ""); + I_Method1(void, setReplaceSwitchLayer, IN, bool, replaceSwitchLayer, + Properties::NON_VIRTUAL, + __void__setReplaceSwitchLayer__bool, + "", + ""); + I_Method0(bool, getReplaceSwitchLayer, + Properties::NON_VIRTUAL, + __bool__getReplaceSwitchLayer, + "", + ""); + I_Method1(void, setAllowAll, IN, bool, allowAll, + Properties::NON_VIRTUAL, + __void__setAllowAll__bool, + "", + ""); + I_Method0(bool, getAllowAll, + Properties::NON_VIRTUAL, + __bool__getAllowAll, + "", + ""); + I_Method1(bool, layerAcceptable, IN, const std::string &, setname, + Properties::NON_VIRTUAL, + __bool__layerAcceptable__C5_std_string_R1, + "", + ""); + I_Method2(bool, readImageLayer, IN, osgTerrain::ImageLayer *, imageLayer, IN, const osgDB::ReaderWriter::Options *, options, + Properties::NON_VIRTUAL, + __bool__readImageLayer__osgTerrain_ImageLayer_P1__C5_osgDB_ReaderWriter_Options_P1, + "", + ""); + I_Method0(bool, deferExternalLayerLoading, + Properties::VIRTUAL, + __bool__deferExternalLayerLoading, + "", + ""); + I_Method2(void, loaded, IN, osgTerrain::TerrainTile *, tile, IN, const osgDB::ReaderWriter::Options *, options, + Properties::VIRTUAL, + __void__loaded__osgTerrain_TerrainTile_P1__C5_osgDB_ReaderWriter_Options_P1, + "", + ""); + I_SimpleProperty(bool, AllowAll, + __bool__getAllowAll, + __void__setAllowAll__bool); + I_SimpleProperty(unsigned int, MinimumNumOfLayers, + __unsigned_int__getMinimumNumOfLayers, + __void__setMinimumNumOfLayers__unsigned_int); + I_SimpleProperty(bool, ReplaceSwitchLayer, + __bool__getReplaceSwitchLayer, + __void__setReplaceSwitchLayer__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::TerrainTile::TileLoadedCallback >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgTerrain::TerrainTile::TileLoadedCallback *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgTerrain::TerrainTile::TileLoadedCallback > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgTerrain::TerrainTile::TileLoadedCallback *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgTerrain::TerrainTile::TileLoadedCallback *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgTerrain::TerrainTile::TileLoadedCallback > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgTerrain::TerrainTile::TileLoadedCallback *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgTerrain/ValidDataOperator.cpp b/src/osgWrappers/introspection/osgTerrain/ValidDataOperator.cpp new file mode 100644 index 000000000..3a4cabe60 --- /dev/null +++ b/src/osgWrappers/introspection/osgTerrain/ValidDataOperator.cpp @@ -0,0 +1,102 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgTerrain::NoDataValue) + I_DeclaringFile("osgTerrain/ValidDataOperator"); + I_BaseType(osgTerrain::ValidDataOperator); + I_Constructor1(IN, float, value, + Properties::NON_EXPLICIT, + ____NoDataValue__float, + "", + ""); + I_Method1(void, setNoDataValue, IN, float, value, + Properties::NON_VIRTUAL, + __void__setNoDataValue__float, + "", + ""); + I_Method0(float, getValue, + Properties::NON_VIRTUAL, + __float__getValue, + "", + ""); + I_SimpleProperty(float, NoDataValue, + 0, + __void__setNoDataValue__float); + I_SimpleProperty(float, Value, + __float__getValue, + 0); + I_PublicMemberProperty(float, _value); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ValidDataOperator) + I_DeclaringFile("osgTerrain/ValidDataOperator"); + I_BaseType(osg::Referenced); + I_Constructor0(____ValidDataOperator, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::ValidRange) + I_DeclaringFile("osgTerrain/ValidDataOperator"); + I_BaseType(osgTerrain::ValidDataOperator); + I_Constructor2(IN, float, minValue, IN, float, maxValue, + ____ValidRange__float__float, + "", + ""); + I_Method2(void, setRange, IN, float, minValue, IN, float, maxValue, + Properties::NON_VIRTUAL, + __void__setRange__float__float, + "", + ""); + I_Method1(void, setMinValue, IN, float, minValue, + Properties::NON_VIRTUAL, + __void__setMinValue__float, + "", + ""); + I_Method0(float, getMinValue, + Properties::NON_VIRTUAL, + __float__getMinValue, + "", + ""); + I_Method1(void, setMaxValue, IN, float, maxValue, + Properties::NON_VIRTUAL, + __void__setMaxValue__float, + "", + ""); + I_Method0(float, getMaxValue, + Properties::NON_VIRTUAL, + __float__getMaxValue, + "", + ""); + I_SimpleProperty(float, MaxValue, + __float__getMaxValue, + __void__setMaxValue__float); + I_SimpleProperty(float, MinValue, + __float__getMinValue, + __void__setMinValue__float); + I_PublicMemberProperty(float, _minValue); + I_PublicMemberProperty(float, _maxValue); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/Export.cpp b/src/osgWrappers/introspection/osgText/Export.cpp new file mode 100644 index 000000000..bbac5114c --- /dev/null +++ b/src/osgWrappers/introspection/osgText/Export.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osgText/FadeText.cpp b/src/osgWrappers/introspection/osgText/FadeText.cpp new file mode 100644 index 000000000..942bf89e0 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/FadeText.cpp @@ -0,0 +1,89 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgText::FadeText) + I_DeclaringFile("osgText/FadeText"); + I_BaseType(osgText::Text); + I_Constructor0(____FadeText, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FadeText__C5_Text_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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. ", + ""); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "", + ""); + + + I_SimpleProperty(float, FadeSpeed, + __float__getFadeSpeed, + __void__setFadeSpeed__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/Font.cpp b/src/osgWrappers/introspection/osgText/Font.cpp new file mode 100644 index 000000000..74c8a1925 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/Font.cpp @@ -0,0 +1,491 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(OpenThreads::Mutex, osgText::Font::FontMutex) + +BEGIN_OBJECT_REFLECTOR(osgText::Font) + I_DeclaringFile("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_Method4(osg::Vec2, getKerning, IN, const osgText::FontResolution &, fontSize, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::VIRTUAL, + __osg_Vec2__getKerning__C5_FontResolution_R1__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_Method2(osgText::Font::Glyph *, getGlyph, IN, const osgText::FontResolution &, fontSize, IN, unsigned int, charcode, + Properties::VIRTUAL, + __Glyph_P1__getGlyph__C5_FontResolution_R1__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 1 texels. "); + I_Method0(unsigned int, getGlyphImageMargin, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphImageMargin, + "", + ""); + I_Method1(void, setGlyphImageMarginRatio, IN, float, margin, + Properties::NON_VIRTUAL, + __void__setGlyphImageMarginRatio__float, + "Set the margin ratio around each glyph, relative to the glyph's size. ", + "to ensure that texture filtering doesn't bleed adjacent glyph's into each other. Default margin is 0.05. "); + I_Method0(float, getGlyphImageMarginRatio, + Properties::NON_VIRTUAL, + __float__getGlyphImageMarginRatio, + "", + ""); + 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. "); + I_ProtectedMethod3(void, addGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addGlyph__C5_FontResolution_R1__unsigned_int__Glyph_P1, + "", + ""); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_SimpleProperty(unsigned int, GlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + __void__setGlyphImageMargin__unsigned_int); + I_SimpleProperty(float, GlyphImageMarginRatio, + __float__getGlyphImageMarginRatio, + __void__setGlyphImageMarginRatio__float); + I_SimpleProperty(osgText::Font::FontImplementation *, Implementation, + __FontImplementation_P1__getImplementation, + __void__setImplementation__FontImplementation_P1); + I_SimpleProperty(osg::Texture::FilterMode, MagFilterHint, + __osg_Texture_FilterMode__getMagFilterHint, + __void__setMagFilterHint__osg_Texture_FilterMode); + I_SimpleProperty(osg::Texture::FilterMode, MinFilterHint, + __osg_Texture_FilterMode__getMinFilterHint, + __void__setMinFilterHint__osg_Texture_FilterMode); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); + I_SimpleProperty(osg::TexEnv *, TexEnv, + __osg_TexEnv_P1__getTexEnv, + __void__setTexEnv__osg_TexEnv_P1); + I_SimpleProperty(unsigned int, TextureHeightHint, + __unsigned_int__getTextureHeightHint, + 0); + I_SimpleProperty(unsigned int, TextureWidthHint, + __unsigned_int__getTextureWidthHint, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) + I_DeclaringFile("osgText/Font"); + I_BaseType(osg::Referenced); + I_Constructor0(____FontImplementation, + "", + ""); + I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method2(osgText::Font::Glyph *, getGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, + __Glyph_P1__getGlyph__C5_FontResolution_R1__unsigned_int, + "Get a Glyph for specified charcode, and the font size nearest to the current font size hint. ", + ""); + I_Method4(osg::Vec2, getKerning, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, osgText::KerningType, kerningType, + Properties::PURE_VIRTUAL, + __osg_Vec2__getKerning__C5_FontResolution_R1__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_Method3(void, addGlyph, IN, const osgText::FontResolution &, fontRes, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph, + Properties::NON_VIRTUAL, + __void__addGlyph__C5_FontResolution_R1__unsigned_int__Glyph_P1, + "", + ""); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_PublicMemberProperty(osgText::Font *, _facade); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) + I_DeclaringFile("osgText/Font"); + I_BaseType(osg::Image); + I_Constructor1(IN, unsigned int, glyphCode, + Properties::NON_EXPLICIT, + ____Glyph__unsigned_int, + "", + ""); + 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_SimpleProperty(unsigned int, GlyphCode, + __unsigned_int__getGlyphCode, + 0); + I_SimpleProperty(float, HorizontalAdvance, + __float__getHorizontalAdvance, + __void__setHorizontalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, HorizontalBearing, + __C5_osg_Vec2_R1__getHorizontalBearing, + __void__setHorizontalBearing__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, MaxTexCoord, + __C5_osg_Vec2_R1__getMaxTexCoord, + __void__setMaxTexCoord__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec2 &, MinTexCoord, + __C5_osg_Vec2_R1__getMinTexCoord, + __void__setMinTexCoord__C5_osg_Vec2_R1); + I_SimpleProperty(osgText::Font::GlyphTexture *, Texture, + __GlyphTexture_P1__getTexture, + __void__setTexture__GlyphTexture_P1); + I_SimpleProperty(int, TexturePositionX, + __int__getTexturePositionX, + 0); + I_SimpleProperty(int, TexturePositionY, + __int__getTexturePositionY, + 0); + I_SimpleProperty(float, VerticalAdvance, + __float__getVerticalAdvance, + __void__setVerticalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, VerticalBearing, + __C5_osg_Vec2_R1__getVerticalBearing, + __void__setVerticalBearing__C5_osg_Vec2_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) + I_DeclaringFile("osgText/Font"); + I_BaseType(osg::Texture2D); + I_Constructor0(____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_Method1(void, setGlyphImageMarginRatio, IN, float, margin, + Properties::NON_VIRTUAL, + __void__setGlyphImageMarginRatio__float, + "", + ""); + I_Method0(float, getGlyphImageMarginRatio, + Properties::NON_VIRTUAL, + __float__getGlyphImageMarginRatio, + "", + ""); + 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. ", + ""); + I_SimpleProperty(unsigned int, GlyphImageMargin, + __unsigned_int__getGlyphImageMargin, + __void__setGlyphImageMargin__unsigned_int); + I_SimpleProperty(float, GlyphImageMarginRatio, + __float__getGlyphImageMarginRatio, + __void__setGlyphImageMarginRatio__float); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/Font3D.cpp b/src/osgWrappers/introspection/osgText/Font3D.cpp new file mode 100644 index 000000000..65de3562e --- /dev/null +++ b/src/osgWrappers/introspection/osgText/Font3D.cpp @@ -0,0 +1,416 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(OpenThreads::Mutex, osgText::Font3D::Font3DMutex) + +BEGIN_OBJECT_REFLECTOR(osgText::Font3D) + I_DeclaringFile("osgText/Font3D"); + I_BaseType(osg::Object); + I_ConstructorWithDefaults1(IN, osgText::Font3D::Font3DImplementation *, implementation, 0, + Properties::NON_EXPLICIT, + ____Font3D__Font3DImplementation_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_Method0(unsigned int, getFontWidth, + Properties::NON_VIRTUAL, + __unsigned_int__getFontWidth, + "", + ""); + I_Method0(unsigned int, getFontHeight, + Properties::NON_VIRTUAL, + __unsigned_int__getFontHeight, + "", + ""); + I_Method0(unsigned int, getFontDepth, + Properties::NON_VIRTUAL, + __unsigned_int__getFontDepth, + "", + ""); + 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::Font3D::Glyph3D *, getGlyph, IN, unsigned int, charcode, + Properties::VIRTUAL, + __Glyph3D_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_Method0(float, getScale, + Properties::VIRTUAL, + __float__getScale, + "Return the scale to apply on the glyph to have a charactere size equal to 1. ", + ""); + I_Method1(void, setImplementation, IN, osgText::Font3D::Font3DImplementation *, implementation, + Properties::NON_VIRTUAL, + __void__setImplementation__Font3DImplementation_P1, + "", + ""); + I_Method0(osgText::Font3D::Font3DImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __Font3DImplementation_P1__getImplementation, + "", + ""); + I_Method0(const osgText::Font3D::Font3DImplementation *, getImplementation, + Properties::NON_VIRTUAL, + __C5_Font3DImplementation_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(). ", + ""); + I_ProtectedMethod2(void, addGlyph, IN, unsigned int, charcode, IN, osgText::Font3D::Glyph3D *, glyph, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addGlyph__unsigned_int__Glyph3D_P1, + "", + ""); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_SimpleProperty(unsigned int, FontDepth, + __unsigned_int__getFontDepth, + 0); + I_SimpleProperty(unsigned int, FontHeight, + __unsigned_int__getFontHeight, + 0); + I_SimpleProperty(unsigned int, FontWidth, + __unsigned_int__getFontWidth, + 0); + I_SimpleProperty(osgText::Font3D::Font3DImplementation *, Implementation, + __Font3DImplementation_P1__getImplementation, + __void__setImplementation__Font3DImplementation_P1); + I_SimpleProperty(float, Scale, + __float__getScale, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font3D::Font3DImplementation) + I_DeclaringFile("osgText/Font3D"); + I_BaseType(osg::Referenced); + I_Constructor0(____Font3DImplementation, + "", + ""); + I_Method0(std::string, getFileName, + Properties::PURE_VIRTUAL, + __std_string__getFileName, + "", + ""); + I_Method1(osgText::Font3D::Glyph3D *, getGlyph, IN, unsigned int, charcode, + Properties::PURE_VIRTUAL, + __Glyph3D_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_Method0(float, getScale, + Properties::PURE_VIRTUAL, + __float__getScale, + "", + ""); + 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_Method1(void, setFontDepth, IN, unsigned int, depth, + Properties::NON_VIRTUAL, + __void__setFontDepth__unsigned_int, + "", + ""); + I_SimpleProperty(std::string, FileName, + __std_string__getFileName, + 0); + I_SimpleProperty(unsigned int, FontDepth, + 0, + __void__setFontDepth__unsigned_int); + I_SimpleProperty(unsigned int, FontHeight, + 0, + __void__setFontHeight__unsigned_int); + I_SimpleProperty(unsigned int, FontWidth, + 0, + __void__setFontWidth__unsigned_int); + I_SimpleProperty(float, Scale, + __float__getScale, + 0); + I_PublicMemberProperty(osgText::Font3D *, _facade); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font3D::Glyph3D) + I_DeclaringFile("osgText/Font3D"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, glyphCode, + Properties::NON_EXPLICIT, + ____Glyph3D__unsigned_int, + "", + ""); + I_Method0(unsigned int, getGlyphCode, + Properties::NON_VIRTUAL, + __unsigned_int__getGlyphCode, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + 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, setBoundingBox, IN, osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __void__setBoundingBox__osg_BoundingBox_R1, + "", + ""); + I_Method0(const osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __C5_osg_BoundingBox_R1__getBoundingBox, + "", + ""); + 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::Geometry::PrimitiveSetList &, getFrontPrimitiveSetList, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList_R1__getFrontPrimitiveSetList, + "Get the PrimitiveSetList for the front face. ", + ""); + I_Method0(osg::Geometry::PrimitiveSetList &, getWallPrimitiveSetList, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList_R1__getWallPrimitiveSetList, + "Get the PrimitiveSetList for the wall face. ", + ""); + I_Method0(osg::Geometry::PrimitiveSetList &, getBackPrimitiveSetList, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList_R1__getBackPrimitiveSetList, + "Get et the PrimitiveSetList for the back face. ", + ""); + I_Method1(void, setVertexArray, IN, osg::Vec3Array *, va, + Properties::NON_VIRTUAL, + __void__setVertexArray__osg_Vec3Array_P1, + "Set the VertexArray of the glyph. ", + ""); + I_Method0(osg::Vec3Array *, getVertexArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getVertexArray, + "Get the VertexArray of the glyph. ", + ""); + I_Method1(void, setNormalArray, IN, osg::Vec3Array *, na, + Properties::NON_VIRTUAL, + __void__setNormalArray__osg_Vec3Array_P1, + "Set the VertexArray of the glyph. ", + ""); + I_Method0(osg::Vec3Array *, getNormalArray, + Properties::NON_VIRTUAL, + __osg_Vec3Array_P1__getNormalArray, + "Get the NormalArray for the wall face. ", + ""); + I_Method0(float, getHorizontalWidth, + Properties::NON_VIRTUAL, + __float__getHorizontalWidth, + "", + ""); + I_Method0(float, getHorizontalHeight, + Properties::NON_VIRTUAL, + __float__getHorizontalHeight, + "", + ""); + I_Method0(float, getVerticalWidth, + Properties::NON_VIRTUAL, + __float__getVerticalWidth, + "", + ""); + I_Method0(float, getVerticalHeight, + Properties::NON_VIRTUAL, + __float__getVerticalHeight, + "", + ""); + 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, setHeight, IN, float, height, + Properties::NON_VIRTUAL, + __void__setHeight__float, + "", + ""); + I_Method0(float, getHeight, + Properties::NON_VIRTUAL, + __float__getHeight, + "", + ""); + I_SimpleProperty(osg::Geometry::PrimitiveSetList &, BackPrimitiveSetList, + __osg_Geometry_PrimitiveSetList_R1__getBackPrimitiveSetList, + 0); + I_SimpleProperty(osg::BoundingBox &, BoundingBox, + 0, + __void__setBoundingBox__osg_BoundingBox_R1); + I_SimpleProperty(osg::Geometry::PrimitiveSetList &, FrontPrimitiveSetList, + __osg_Geometry_PrimitiveSetList_R1__getFrontPrimitiveSetList, + 0); + I_SimpleProperty(unsigned int, GlyphCode, + __unsigned_int__getGlyphCode, + 0); + I_SimpleProperty(float, Height, + __float__getHeight, + __void__setHeight__float); + I_SimpleProperty(float, HorizontalAdvance, + __float__getHorizontalAdvance, + __void__setHorizontalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, HorizontalBearing, + __C5_osg_Vec2_R1__getHorizontalBearing, + __void__setHorizontalBearing__C5_osg_Vec2_R1); + I_SimpleProperty(float, HorizontalHeight, + __float__getHorizontalHeight, + 0); + I_SimpleProperty(float, HorizontalWidth, + __float__getHorizontalWidth, + 0); + I_SimpleProperty(osg::Vec3Array *, NormalArray, + __osg_Vec3Array_P1__getNormalArray, + __void__setNormalArray__osg_Vec3Array_P1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::Vec3Array *, VertexArray, + __osg_Vec3Array_P1__getVertexArray, + __void__setVertexArray__osg_Vec3Array_P1); + I_SimpleProperty(float, VerticalAdvance, + __float__getVerticalAdvance, + __void__setVerticalAdvance__float); + I_SimpleProperty(const osg::Vec2 &, VerticalBearing, + __C5_osg_Vec2_R1__getVerticalBearing, + __void__setVerticalBearing__C5_osg_Vec2_R1); + I_SimpleProperty(float, VerticalHeight, + __float__getVerticalHeight, + 0); + I_SimpleProperty(float, VerticalWidth, + __float__getVerticalWidth, + 0); + I_SimpleProperty(osg::Geometry::PrimitiveSetList &, WallPrimitiveSetList, + __osg_Geometry_PrimitiveSetList_R1__getWallPrimitiveSetList, + 0); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/KerningType.cpp b/src/osgWrappers/introspection/osgText/KerningType.cpp new file mode 100644 index 000000000..343fb87f7 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/KerningType.cpp @@ -0,0 +1,33 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::KerningType) + I_DeclaringFile("osgText/KerningType"); + I_EnumLabel(osgText::KERNING_DEFAULT); + I_EnumLabel(osgText::KERNING_UNFITTED); + I_EnumLabel(osgText::KERNING_NONE); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgText::FontResolution) + +STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >) + diff --git a/src/osgWrappers/introspection/osgText/String.cpp b/src/osgWrappers/introspection/osgText/String.cpp new file mode 100644 index 000000000..3e9831bdb --- /dev/null +++ b/src/osgWrappers/introspection/osgText/String.cpp @@ -0,0 +1,107 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::String::Encoding) + I_DeclaringFile("osgText/String"); + I_EnumLabel(osgText::String::ENCODING_UNDEFINED); + I_EnumLabel(osgText::String::ENCODING_ASCII); + I_EnumLabel(osgText::String::ENCODING_UTF8); + I_EnumLabel(osgText::String::ENCODING_UTF16); + I_EnumLabel(osgText::String::ENCODING_UTF16_BE); + I_EnumLabel(osgText::String::ENCODING_UTF16_LE); + I_EnumLabel(osgText::String::ENCODING_UTF32); + I_EnumLabel(osgText::String::ENCODING_UTF32_BE); + I_EnumLabel(osgText::String::ENCODING_UTF32_LE); + I_EnumLabel(osgText::String::ENCODING_SIGNATURE); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgText::VectorUInt, osgText::String::vector_type) + +BEGIN_OBJECT_REFLECTOR(osgText::String) + I_DeclaringFile("osgText/String"); + I_BaseType(osgText::VectorUInt); + I_Constructor0(____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, + "", + ""); + I_Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding, + ____String__C5_std_string_R1__Encoding, + "", + ""); + 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 specifies which Unicode encoding 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. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) + I_DeclaringFile("osgText/String"); + I_BaseType(std::vector); + I_Constructor0(____VectorUInt, + "", + ""); + I_Constructor1(IN, const osgText::VectorUInt &, copy, + Properties::NON_EXPLICIT, + ____VectorUInt__C5_VectorUInt_R1, + "", + ""); + I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, + ____VectorUInt__unsigned_int_P1__unsigned_int_P1, + "", + ""); + I_Constructor1(IN, unsigned int, n, + Properties::EXPLICIT, + ____VectorUInt__unsigned_int, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/Text.cpp b/src/osgWrappers/introspection/osgText/Text.cpp new file mode 100644 index 000000000..397625b94 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/Text.cpp @@ -0,0 +1,606 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropType) + I_DeclaringFile("osgText/Text"); + I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_RIGHT); + I_EnumLabel(osgText::Text::DROP_SHADOW_CENTER_RIGHT); + I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_RIGHT); + I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_CENTER); + I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_CENTER); + I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_LEFT); + I_EnumLabel(osgText::Text::DROP_SHADOW_CENTER_LEFT); + I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_LEFT); + I_EnumLabel(osgText::Text::OUTLINE); + I_EnumLabel(osgText::Text::NONE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropImplementation) + I_DeclaringFile("osgText/Text"); + I_EnumLabel(osgText::Text::POLYGON_OFFSET); + I_EnumLabel(osgText::Text::NO_DEPTH_BUFFER); + I_EnumLabel(osgText::Text::DEPTH_RANGE); + I_EnumLabel(osgText::Text::STENCIL_BUFFER); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::ColorGradientMode) + I_DeclaringFile("osgText/Text"); + I_EnumLabel(osgText::Text::SOLID); + I_EnumLabel(osgText::Text::PER_CHARACTER); + I_EnumLabel(osgText::Text::OVERALL); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap) + +BEGIN_OBJECT_REFLECTOR(osgText::Text) + I_DeclaringFile("osgText/Text"); + I_BaseType(osgText::TextBase); + I_Constructor0(____Text, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Text__C5_Text_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_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, osg::ref_ptr< osgText::Font >, font, + Properties::NON_VIRTUAL, + __void__setFont__osg_ref_ptrT1_Font_, + "Set the Font to use to render the text. ", + ""); + 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_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, 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. See BackdropImplementation enum docs for details. "); + 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, 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 internal 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 internal primitives 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_ProtectedMethod0(osgText::Font *, getActiveFont, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __Font_P1__getActiveFont, + "", + ""); + I_ProtectedMethod0(const osgText::Font *, getActiveFont, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_Font_P1__getActiveFont, + "", + ""); + I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, + "", + ""); + I_ProtectedMethod0(void, computeGlyphRepresentation, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__computeGlyphRepresentation, + "", + ""); + I_ProtectedMethod2(bool, computeAverageGlyphWidthAndHeight, IN, float &, avg_width, IN, float &, avg_height, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__computeAverageGlyphWidthAndHeight__float_R1__float_R1, + "", + ""); + I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, + Properties::VIRTUAL, + Properties::CONST, + __void__computePositions__unsigned_int, + "", + ""); + I_ProtectedMethod1(void, computeBackdropPositions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeBackdropPositions__unsigned_int, + "", + ""); + I_ProtectedMethod0(void, computeBackdropBoundingBox, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeBackdropBoundingBox, + "", + ""); + I_ProtectedMethod0(void, computeBoundingBoxMargin, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeBoundingBoxMargin, + "", + ""); + I_ProtectedMethod0(void, computeColorGradients, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeColorGradients, + "", + ""); + I_ProtectedMethod0(void, computeColorGradientsOverall, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeColorGradientsOverall, + "", + ""); + I_ProtectedMethod0(void, computeColorGradientsPerCharacter, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__computeColorGradientsPerCharacter, + "", + ""); + I_ProtectedMethod2(void, drawImplementation, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__drawImplementation__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod3(void, drawForegroundText, IN, osg::State &, state, IN, const osgText::Text::GlyphQuads &, glyphquad, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__drawForegroundText__osg_State_R1__C5_GlyphQuads_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod2(void, renderOnlyForegroundText, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderOnlyForegroundText__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod2(void, renderWithPolygonOffset, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderWithPolygonOffset__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod2(void, renderWithNoDepthBuffer, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderWithNoDepthBuffer__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod2(void, renderWithDepthRange, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderWithDepthRange__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod2(void, renderWithStencilBuffer, IN, osg::State &, state, IN, const osg::Vec4 &, colorMultiplier, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderWithStencilBuffer__osg_State_R1__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod10(float, bilinearInterpolate, IN, float, x1, IN, float, x2, IN, float, y1, IN, float, y2, IN, float, x, IN, float, y, IN, float, q11, IN, float, q12, IN, float, q21, IN, float, q22, + Properties::NON_VIRTUAL, + Properties::CONST, + __float__bilinearInterpolate__float__float__float__float__float__float__float__float__float__float, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, BackdropColor, + __C5_osg_Vec4_R1__getBackdropColor, + __void__setBackdropColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, BackdropHorizontalOffset, + __float__getBackdropHorizontalOffset, + 0); + I_SimpleProperty(osgText::Text::BackdropImplementation, BackdropImplementation, + __BackdropImplementation__getBackdropImplementation, + __void__setBackdropImplementation__BackdropImplementation); + I_SimpleProperty(float, BackdropOffset, + 0, + __void__setBackdropOffset__float); + I_SimpleProperty(osgText::Text::BackdropType, BackdropType, + __BackdropType__getBackdropType, + __void__setBackdropType__BackdropType); + I_SimpleProperty(float, BackdropVerticalOffset, + __float__getBackdropVerticalOffset, + 0); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_osg_Vec4_R1__getColor, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomLeft, + __C5_osg_Vec4_R1__getColorGradientBottomLeft, + 0); + I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomRight, + __C5_osg_Vec4_R1__getColorGradientBottomRight, + 0); + I_SimpleProperty(osgText::Text::ColorGradientMode, ColorGradientMode, + __ColorGradientMode__getColorGradientMode, + __void__setColorGradientMode__ColorGradientMode); + I_SimpleProperty(const osg::Vec4 &, ColorGradientTopLeft, + __C5_osg_Vec4_R1__getColorGradientTopLeft, + 0); + I_SimpleProperty(const osg::Vec4 &, ColorGradientTopRight, + __C5_osg_Vec4_R1__getColorGradientTopRight, + 0); + I_SimpleProperty(osg::ref_ptr< osgText::Font >, Font, + 0, + __void__setFont__osg_ref_ptrT1_Font_); + I_SimpleProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap, + __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, + 0); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs) + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::Text::GlyphQuads::LineNumbers) + +TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::Coords2) + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgText::Text::GlyphQuads::Coords3) + +TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::TexCoords) + +TYPE_NAME_ALIAS(std::vector< osg::Vec4 >, osgText::Text::GlyphQuads::ColorCoords) + +BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) + I_DeclaringFile("osgText/Text"); + I_Constructor0(____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, + "", + ""); + I_SimpleProperty(osgText::Text::GlyphQuads::Coords2 &, Coords, + __Coords2_R1__getCoords, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs, + __Glyphs__getGlyphs, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers, + __LineNumbers_R1__getLineNumbers, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords, + __TexCoords_R1__getTexCoords, + 0); + I_PublicMemberProperty(osgText::Text::GlyphQuads::Glyphs, _glyphs); + I_PublicMemberProperty(osgText::Text::GlyphQuads::Coords2, _coords); + I_PublicMemberProperty(osg::buffered_object< osgText::Text::GlyphQuads::Coords3 >, _transformedCoords); + I_PublicMemberProperty(osgText::Text::GlyphQuads::TexCoords, _texcoords); + I_PublicMemberProperty(osgText::Text::GlyphQuads::LineNumbers, _lineNumbers); + I_PublicMemberProperty(osgText::Text::GlyphQuads::ColorCoords, _colorCoords); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgText::Font *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgText::Font > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgText::Font *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgText::Font *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgText::Font *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font::GlyphTexture >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgText::Font::GlyphTexture *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec2 >) + +STD_VECTOR_REFLECTOR(std::vector< osgText::Font::Glyph * >) + diff --git a/src/osgWrappers/introspection/osgText/Text3D.cpp b/src/osgWrappers/introspection/osgText/Text3D.cpp new file mode 100644 index 000000000..77869cd87 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/Text3D.cpp @@ -0,0 +1,245 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::Text3D::RenderMode) + I_DeclaringFile("osgText/Text3D"); + I_EnumLabel(osgText::Text3D::PER_FACE); + I_EnumLabel(osgText::Text3D::PER_GLYPH); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Text3D) + I_DeclaringFile("osgText/Text3D"); + I_BaseType(osgText::TextBase); + I_Constructor0(____Text3D, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::Text3D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Text3D__C5_Text3D_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(float, getCharacterDepth, + Properties::NON_VIRTUAL, + __float__getCharacterDepth, + "Get the Charactere Depth of text. ", + ""); + I_Method1(void, setCharacterDepth, IN, float, characterDepth, + Properties::NON_VIRTUAL, + __void__setCharacterDepth__float, + "Set the Charactere Depth of text. ", + ""); + I_Method0(osgText::Text3D::RenderMode, getRenderMode, + Properties::NON_VIRTUAL, + __RenderMode__getRenderMode, + "Get the render mode used to render the text. ", + ""); + I_Method1(void, setRenderMode, IN, osgText::Text3D::RenderMode, renderMode, + Properties::NON_VIRTUAL, + __void__setRenderMode__RenderMode, + "Set the render mode used to render the text. ", + ""); + I_MethodWithDefaults1(void, setFont, IN, osgText::Font3D *, font, 0, + Properties::NON_VIRTUAL, + __void__setFont__Font3D_P1, + "Get the wall StateSet. ", + "Get or create the wall StateSet Set the wall StateSet Get the back StateSet Get or create the back StateSet Set the back StateSet Set the Font to use to render the text. setFont(0) sets the use of the default font. "); + I_Method1(void, setFont, IN, osg::ref_ptr< osgText::Font3D >, font, + Properties::NON_VIRTUAL, + __void__setFont__osg_ref_ptrT1_Font3D_, + "Set the Font to use to render the text. ", + ""); + 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::Font3D *, getFont, + Properties::NON_VIRTUAL, + __C5_Font3D_P1__getFont, + "Get the font. ", + "Return 0 if default is being used. "); + 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_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_ProtectedMethod1(void, renderPerGlyph, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderPerGlyph__osg_State_R1, + "", + ""); + I_ProtectedMethod1(void, renderPerFace, IN, osg::State &, state, + Properties::NON_VIRTUAL, + Properties::CONST, + __void__renderPerFace__osg_State_R1, + "", + ""); + I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, + "", + ""); + I_ProtectedMethod0(void, computeGlyphRepresentation, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__computeGlyphRepresentation, + "", + ""); + I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, + Properties::VIRTUAL, + Properties::CONST, + __void__computePositions__unsigned_int, + "", + ""); + I_SimpleProperty(float, CharacterDepth, + __float__getCharacterDepth, + __void__setCharacterDepth__float); + I_SimpleProperty(osg::ref_ptr< osgText::Font3D >, Font, + 0, + __void__setFont__osg_ref_ptrT1_Font3D_); + I_SimpleProperty(osgText::Text3D::RenderMode, RenderMode, + __RenderMode__getRenderMode, + __void__setRenderMode__RenderMode); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font3D >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgText::Font3D *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgText::Font3D > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgText::Font3D *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgText::Font3D *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font3D > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgText::Font3D *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgText/TextBase.cpp b/src/osgWrappers/introspection/osgText/TextBase.cpp new file mode 100644 index 000000000..b81a40123 --- /dev/null +++ b/src/osgWrappers/introspection/osgText/TextBase.cpp @@ -0,0 +1,435 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgText::TextBase::CharacterSizeMode) + I_DeclaringFile("osgText/TextBase"); + I_EnumLabel(osgText::TextBase::OBJECT_COORDS); + I_EnumLabel(osgText::TextBase::SCREEN_COORDS); + I_EnumLabel(osgText::TextBase::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::TextBase::AlignmentType) + I_DeclaringFile("osgText/TextBase"); + I_EnumLabel(osgText::TextBase::LEFT_TOP); + I_EnumLabel(osgText::TextBase::LEFT_CENTER); + I_EnumLabel(osgText::TextBase::LEFT_BOTTOM); + I_EnumLabel(osgText::TextBase::CENTER_TOP); + I_EnumLabel(osgText::TextBase::CENTER_CENTER); + I_EnumLabel(osgText::TextBase::CENTER_BOTTOM); + I_EnumLabel(osgText::TextBase::RIGHT_TOP); + I_EnumLabel(osgText::TextBase::RIGHT_CENTER); + I_EnumLabel(osgText::TextBase::RIGHT_BOTTOM); + I_EnumLabel(osgText::TextBase::LEFT_BASE_LINE); + I_EnumLabel(osgText::TextBase::CENTER_BASE_LINE); + I_EnumLabel(osgText::TextBase::RIGHT_BASE_LINE); + I_EnumLabel(osgText::TextBase::LEFT_BOTTOM_BASE_LINE); + I_EnumLabel(osgText::TextBase::CENTER_BOTTOM_BASE_LINE); + I_EnumLabel(osgText::TextBase::RIGHT_BOTTOM_BASE_LINE); + I_EnumLabel(osgText::TextBase::BASE_LINE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::TextBase::AxisAlignment) + I_DeclaringFile("osgText/TextBase"); + I_EnumLabel(osgText::TextBase::XY_PLANE); + I_EnumLabel(osgText::TextBase::REVERSED_XY_PLANE); + I_EnumLabel(osgText::TextBase::XZ_PLANE); + I_EnumLabel(osgText::TextBase::REVERSED_XZ_PLANE); + I_EnumLabel(osgText::TextBase::YZ_PLANE); + I_EnumLabel(osgText::TextBase::REVERSED_YZ_PLANE); + I_EnumLabel(osgText::TextBase::SCREEN); + I_EnumLabel(osgText::TextBase::USER_DEFINED_ROTATION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::TextBase::Layout) + I_DeclaringFile("osgText/TextBase"); + I_EnumLabel(osgText::TextBase::LEFT_TO_RIGHT); + I_EnumLabel(osgText::TextBase::RIGHT_TO_LEFT); + I_EnumLabel(osgText::TextBase::VERTICAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::TextBase::DrawModeMask) + I_DeclaringFile("osgText/TextBase"); + I_EnumLabel(osgText::TextBase::TEXT); + I_EnumLabel(osgText::TextBase::BOUNDINGBOX); + I_EnumLabel(osgText::TextBase::FILLEDBOUNDINGBOX); + I_EnumLabel(osgText::TextBase::ALIGNMENT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::TextBase) + I_DeclaringFile("osgText/TextBase"); + I_BaseType(osg::Drawable); + I_Constructor0(____TextBase, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgText::TextBase &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TextBase__C5_TextBase_R1__C5_osg_CopyOp_R1, + "", + ""); + 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_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 respresentation 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::TextBase::CharacterSizeMode, mode, + Properties::NON_VIRTUAL, + __void__setCharacterSizeMode__CharacterSizeMode, + "Set how the CharacterSize value relates to the final rendered character. ", + ""); + I_Method0(osgText::TextBase::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::TextBase::AlignmentType, alignment, + Properties::NON_VIRTUAL, + __void__setAlignment__AlignmentType, + "", + ""); + I_Method0(osgText::TextBase::AlignmentType, getAlignment, + Properties::NON_VIRTUAL, + __AlignmentType__getAlignment, + "", + ""); + I_Method1(void, setAxisAlignment, IN, osgText::TextBase::AxisAlignment, axis, + Properties::NON_VIRTUAL, + __void__setAxisAlignment__AxisAlignment, + "", + ""); + I_Method0(osgText::TextBase::AxisAlignment, getAxisAlignment, + Properties::NON_VIRTUAL, + __AxisAlignment__getAxisAlignment, + "", + ""); + 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::TextBase::Layout, layout, + Properties::NON_VIRTUAL, + __void__setLayout__Layout, + "", + ""); + I_Method0(osgText::TextBase::Layout, getLayout, + Properties::NON_VIRTUAL, + __Layout__getLayout, + "", + ""); + 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, setBoundingBoxMargin, IN, float, margin, + Properties::NON_VIRTUAL, + __void__setBoundingBoxMargin__float, + "", + ""); + I_Method0(float, getBoundingBoxMargin, + Properties::NON_VIRTUAL, + __float__getBoundingBoxMargin, + "", + ""); + I_Method1(void, setBoundingBoxColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setBoundingBoxColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getBoundingBoxColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getBoundingBoxColor, + "", + ""); + 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, 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_Method0(osg::BoundingBox, computeBound, + Properties::VIRTUAL, + __osg_BoundingBox__computeBound, + "Compute the bounding box around Drawables's geometry. ", + ""); + I_ProtectedMethod3(void, positionCursor, IN, const osg::Vec2 &, endOfLine_coords, IN, osg::Vec2 &, cursor, IN, unsigned int, linelength, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__positionCursor__C5_osg_Vec2_R1__osg_Vec2_R1__unsigned_int, + "", + ""); + I_ProtectedMethod0(void, computePositions, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computePositions, + "", + ""); + I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, + "", + ""); + I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, + Properties::PURE_VIRTUAL, + Properties::CONST, + __void__computePositions__unsigned_int, + "", + ""); + I_ProtectedMethod0(void, computeGlyphRepresentation, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__computeGlyphRepresentation, + "", + ""); + I_SimpleProperty(osgText::TextBase::AlignmentType, Alignment, + __AlignmentType__getAlignment, + __void__setAlignment__AlignmentType); + I_SimpleProperty(bool, AutoRotateToScreen, + __bool__getAutoRotateToScreen, + __void__setAutoRotateToScreen__bool); + I_SimpleProperty(osgText::TextBase::AxisAlignment, AxisAlignment, + __AxisAlignment__getAxisAlignment, + __void__setAxisAlignment__AxisAlignment); + I_SimpleProperty(const osg::Vec4 &, BoundingBoxColor, + __C5_osg_Vec4_R1__getBoundingBoxColor, + __void__setBoundingBoxColor__C5_osg_Vec4_R1); + I_SimpleProperty(float, BoundingBoxMargin, + __float__getBoundingBoxMargin, + __void__setBoundingBoxMargin__float); + I_SimpleProperty(float, CharacterAspectRatio, + __float__getCharacterAspectRatio, + 0); + I_SimpleProperty(float, CharacterHeight, + __float__getCharacterHeight, + 0); + I_SimpleProperty(osgText::TextBase::CharacterSizeMode, CharacterSizeMode, + __CharacterSizeMode__getCharacterSizeMode, + __void__setCharacterSizeMode__CharacterSizeMode); + I_SimpleProperty(unsigned int, DrawMode, + __unsigned_int__getDrawMode, + __void__setDrawMode__unsigned_int); + I_SimpleProperty(unsigned int, FontHeight, + __unsigned_int__getFontHeight, + 0); + I_SimpleProperty(unsigned int, FontWidth, + __unsigned_int__getFontWidth, + 0); + I_SimpleProperty(osgText::KerningType, KerningType, + __KerningType__getKerningType, + __void__setKerningType__KerningType); + I_SimpleProperty(osgText::TextBase::Layout, Layout, + __Layout__getLayout, + __void__setLayout__Layout); + I_SimpleProperty(unsigned int, LineCount, + __unsigned_int__getLineCount, + 0); + I_SimpleProperty(float, LineSpacing, + __float__getLineSpacing, + __void__setLineSpacing__float); + I_SimpleProperty(float, MaximumHeight, + __float__getMaximumHeight, + __void__setMaximumHeight__float); + I_SimpleProperty(float, MaximumWidth, + __float__getMaximumWidth, + __void__setMaximumWidth__float); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Quat &, Rotation, + __C5_osg_Quat_R1__getRotation, + __void__setRotation__C5_osg_Quat_R1); + I_SimpleProperty(const osgText::String &, Text, + __C5_String_R1__getText, + __void__setText__C5_String_R1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/ConvertVec.cpp b/src/osgWrappers/introspection/osgUtil/ConvertVec.cpp new file mode 100644 index 000000000..b294ccf4a --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/ConvertVec.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osgUtil/CubeMapGenerator.cpp b/src/osgWrappers/introspection/osgUtil/CubeMapGenerator.cpp new file mode 100644 index 000000000..2bdf2b08f --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/CubeMapGenerator.cpp @@ -0,0 +1,66 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) + I_DeclaringFile("osgUtil/CubeMapGenerator"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::EXPLICIT, + ____CubeMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::CubeMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CubeMapGenerator__C5_CubeMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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. "); + I_ProtectedMethod4(void, set_pixel, IN, int, index, IN, int, c, IN, int, r, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__set_pixel__int__int__int__C5_osg_Vec4_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec4, compute_color, IN, const osg::Vec3 &, R, + Properties::PURE_VIRTUAL, + Properties::CONST, + __osg_Vec4__compute_color__C5_osg_Vec3_R1, + "Override this method to define how colors are computed. ", + "The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/CullVisitor.cpp b/src/osgWrappers/introspection/osgUtil/CullVisitor.cpp new file mode 100644 index 000000000..f1c9fda6c --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/CullVisitor.cpp @@ -0,0 +1,457 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Matrix::value_type, osgUtil::CullVisitor::value_type) + +BEGIN_OBJECT_REFLECTOR(osgUtil::CullVisitor) + I_DeclaringFile("osgUtil/CullVisitor"); + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::CullStack); + I_Constructor0(____CullVisitor, + "", + ""); + I_Constructor1(IN, const osgUtil::CullVisitor &, x, + Properties::NON_EXPLICIT, + ____CullVisitor__C5_CullVisitor_R1, + "Copy constructor that does a shallow copy. ", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + I_Method0(osgUtil::CullVisitor *, clone, + Properties::VIRTUAL, + __CullVisitor_P1__clone, + "Create a shallow copy of the CullVisitor, used by CullVisitor::create() to clone the prototype. ", + ""); + 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 &, x, IN, bool, x, + 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 &, x, IN, bool, x, + 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 &, x, IN, bool, x, + 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, apply, IN, osg::OcclusionQueryNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OcclusionQueryNode_R1, + "", + ""); + 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::RenderStage *, getCurrentRenderStage, + Properties::NON_VIRTUAL, + __RenderStage_P1__getCurrentRenderStage, + "", + ""); + I_Method0(osg::Camera *, getCurrentCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCurrentCamera, + "", + ""); + 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, computeNearPlane, + Properties::NON_VIRTUAL, + __void__computeNearPlane, + "compute near plane based on the polgon intersection of primtives in near plane candidate list of drawables. ", + "Note, you have to set ComputeNearFarMode to COMPUTE_NEAR_FAR_USING_PRIMITIVES to be able to near plane candidate drawables to be recorded by the cull traversal. "); + 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, + "", + ""); + I_StaticMethod0(osg::ref_ptr< osgUtil::CullVisitor > &, prototype, + __osg_ref_ptrT1_CullVisitor__R1__prototype_S, + "get the prototype singleton used by CullVisitor::create(). ", + ""); + I_StaticMethod0(osgUtil::CullVisitor *, create, + __CullVisitor_P1__create_S, + "create a CullVisitor by cloning CullVisitor::prototype(). ", + ""); + I_ProtectedMethod1(void, handle_cull_callbacks_and_traverse, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_cull_callbacks_and_traverse__osg_Node_R1, + "", + ""); + I_ProtectedMethod2(void, handle_cull_callbacks_and_accept, IN, osg::Node &, node, IN, osg::Node *, acceptNode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_cull_callbacks_and_accept__osg_Node_R1__osg_Node_P1, + "", + ""); + I_ProtectedMethodWithDefaults4(osgUtil::RenderLeaf *, createOrReuseRenderLeaf, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, matrix, , IN, float, depth, 0.0f, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __RenderLeaf_P1__createOrReuseRenderLeaf__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float, + "", + ""); + I_SimpleProperty(osgUtil::CullVisitor::value_type, CalculatedFarPlane, + __value_type__getCalculatedFarPlane, + 0); + I_SimpleProperty(osgUtil::CullVisitor::value_type, CalculatedNearPlane, + __value_type__getCalculatedNearPlane, + 0); + I_SimpleProperty(osg::Camera *, CurrentCamera, + __osg_Camera_P1__getCurrentCamera, + 0); + I_SimpleProperty(osgUtil::RenderBin *, CurrentRenderBin, + __RenderBin_P1__getCurrentRenderBin, + __void__setCurrentRenderBin__RenderBin_P1); + I_SimpleProperty(osgUtil::RenderStage *, CurrentRenderStage, + __RenderStage_P1__getCurrentRenderStage, + 0); + I_SimpleProperty(osgUtil::StateGraph *, CurrentStateGraph, + __StateGraph_P1__getCurrentStateGraph, + 0); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + 0); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStage, + __RenderStage_P1__getRenderStage, + __void__setRenderStage__RenderStage_P1); + I_SimpleProperty(osgUtil::StateGraph *, RootStateGraph, + __StateGraph_P1__getRootStateGraph, + 0); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraph, + 0, + __void__setStateGraph__StateGraph_P1); + I_SimpleProperty(osg::Vec3, ViewPoint, + __osg_Vec3__getViewPoint, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::CullVisitor >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::CullVisitor *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::CullVisitor > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::CullVisitor *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::CullVisitor *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::CullVisitor > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::CullVisitor *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/DelaunayTriangulator.cpp b/src/osgWrappers/introspection/osgUtil/DelaunayTriangulator.cpp new file mode 100644 index 000000000..0bc35261e --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/DelaunayTriangulator.cpp @@ -0,0 +1,222 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayConstraint) + I_DeclaringFile("osgUtil/DelaunayTriangulator"); + I_BaseType(osg::Geometry); + I_Constructor0(____DelaunayConstraint, + "", + ""); + I_Method3(void, addtriangle, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __void__addtriangle__int__int__int, + "Each primitiveset is a list of vertices which may be closed by joining up to its start to make a loop. ", + "Constraints should be simple lines, not crossing themselves. Constraints which cross other constraints can cause difficulties - see the example for methods of dealing with them. 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_R1, + "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_R1, + "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_R1, + "", + ""); + 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. ", + ""); + I_SimpleProperty(osg::DrawElementsUInt *, Triangles, + __osg_DrawElementsUInt_P1__getTriangles, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >, osgUtil::DelaunayTriangulator::linelist) + +BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) + I_DeclaringFile("osgUtil/DelaunayTriangulator"); + I_BaseType(osg::Referenced); + I_Constructor0(____DelaunayTriangulator, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Vec3Array *, points, , IN, osg::Vec3Array *, normals, 0, + ____DelaunayTriangulator__osg_Vec3Array_P1__osg_Vec3Array_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::DelaunayTriangulator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____DelaunayTriangulator__C5_DelaunayTriangulator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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). "); + I_ProtectedMethod2(int, getindex, IN, const osg::Vec3 &, pt, IN, const osg::Vec3Array *, points, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __int__getindex__C5_osg_Vec3_R1__C5_osg_Vec3Array_P1, + "", + ""); + I_SimpleProperty(osg::Vec3Array *, InputPointArray, + __osg_Vec3Array_P1__getInputPointArray, + __void__setInputPointArray__osg_Vec3Array_P1); + I_SimpleProperty(osg::Vec3Array *, OutputNormalArray, + __osg_Vec3Array_P1__getOutputNormalArray, + __void__setOutputNormalArray__osg_Vec3Array_P1); + I_SimpleProperty(osg::DrawElementsUInt *, Triangles, + __osg_DrawElementsUInt_P1__getTriangles, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::DelaunayConstraint >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::DelaunayConstraint *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::DelaunayConstraint > >) + diff --git a/src/osgWrappers/introspection/osgUtil/DisplayRequirementsVisitor.cpp b/src/osgWrappers/introspection/osgUtil/DisplayRequirementsVisitor.cpp new file mode 100644 index 000000000..e8e22759c --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/DisplayRequirementsVisitor.cpp @@ -0,0 +1,72 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::DisplayRequirementsVisitor) + I_DeclaringFile("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_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + 0, + __void__setDisplaySettings__osg_DisplaySettings_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/DrawElementTypeSimplifier.cpp b/src/osgWrappers/introspection/osgUtil/DrawElementTypeSimplifier.cpp new file mode 100644 index 000000000..03cfd8b56 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/DrawElementTypeSimplifier.cpp @@ -0,0 +1,59 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgUtil::DrawElementTypeSimplifier) + I_DeclaringFile("osgUtil/DrawElementTypeSimplifier"); + I_Constructor0(____DrawElementTypeSimplifier, + "", + ""); + I_Method1(void, simplify, IN, osg::Geometry &, geometry, + Properties::NON_VIRTUAL, + __void__simplify__osg_Geometry_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::DrawElementTypeSimplifierVisitor) + I_DeclaringFile("osgUtil/DrawElementTypeSimplifier"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____DrawElementTypeSimplifierVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/EdgeCollector.cpp b/src/osgWrappers/introspection/osgUtil/EdgeCollector.cpp new file mode 100644 index 000000000..bd89e0cfe --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/EdgeCollector.cpp @@ -0,0 +1,479 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgUtil::dereference_clear) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_Constructor0(____dereference_clear, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::dereference_less) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_Constructor0(____dereference_less, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::UIntArray > >, osgUtil::EdgeCollector::IndexArrayList) + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Edge > COMMA osgUtil::dereference_less >, osgUtil::EdgeCollector::EdgeSet) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::EdgeCollector::Edge > >, osgUtil::EdgeCollector::EdgeList) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgUtil::EdgeCollector::Edgeloop > >, osgUtil::EdgeCollector::EdgeloopList) + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Point > COMMA osgUtil::dereference_less >, osgUtil::EdgeCollector::PointSet) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::EdgeCollector::Point > >, osgUtil::EdgeCollector::PointList) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > >, osgUtil::EdgeCollector::TriangleList) + +TYPE_NAME_ALIAS(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > >, osgUtil::EdgeCollector::TriangleSet) + +TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > COMMA unsigned int COMMA osgUtil::dereference_less >, osgUtil::EdgeCollector::TriangleMap) + +BEGIN_VALUE_REFLECTOR(osgUtil::EdgeCollector) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_Constructor0(____EdgeCollector, + "", + ""); + I_Method1(void, setGeometry, IN, osg::Geometry *, geometry, + Properties::NON_VIRTUAL, + __void__setGeometry__osg_Geometry_P1, + "", + ""); + I_Method0(osg::Geometry *, getGeometry, + Properties::NON_VIRTUAL, + __osg_Geometry_P1__getGeometry, + "", + ""); + I_Method0(unsigned int, getNumOfTriangles, + Properties::NON_VIRTUAL, + __unsigned_int__getNumOfTriangles, + "", + ""); + I_Method3(osgUtil::EdgeCollector::Triangle *, addTriangle, IN, unsigned int, p1, IN, unsigned int, p2, IN, unsigned int, p3, + Properties::NON_VIRTUAL, + __Triangle_P1__addTriangle__unsigned_int__unsigned_int__unsigned_int, + "", + ""); + I_Method3(osgUtil::EdgeCollector::Triangle *, addTriangle, IN, osgUtil::EdgeCollector::Point *, p1, IN, osgUtil::EdgeCollector::Point *, p2, IN, osgUtil::EdgeCollector::Point *, p3, + Properties::NON_VIRTUAL, + __Triangle_P1__addTriangle__Point_P1__Point_P1__Point_P1, + "", + ""); + I_Method3(osgUtil::EdgeCollector::Edge *, addEdge, IN, osgUtil::EdgeCollector::Triangle *, triangle, IN, osgUtil::EdgeCollector::Point *, p1, IN, osgUtil::EdgeCollector::Point *, p2, + Properties::NON_VIRTUAL, + __Edge_P1__addEdge__Triangle_P1__Point_P1__Point_P1, + "", + ""); + I_Method2(osgUtil::EdgeCollector::Point *, addPoint, IN, osgUtil::EdgeCollector::Triangle *, triangle, IN, unsigned int, p1, + Properties::NON_VIRTUAL, + __Point_P1__addPoint__Triangle_P1__unsigned_int, + "", + ""); + I_Method2(osgUtil::EdgeCollector::Point *, addPoint, IN, osgUtil::EdgeCollector::Triangle *, triangle, IN, osgUtil::EdgeCollector::Point *, point, + Properties::NON_VIRTUAL, + __Point_P1__addPoint__Triangle_P1__Point_P1, + "", + ""); + I_Method1(void, getBoundaryEdgeList, IN, osgUtil::EdgeCollector::EdgeList &, el, + Properties::NON_VIRTUAL, + __void__getBoundaryEdgeList__EdgeList_R1, + "", + ""); + I_Method2(bool, extractBoundaryEdgeloop, IN, osgUtil::EdgeCollector::EdgeList &, el, IN, osgUtil::EdgeCollector::Edgeloop &, edgeloop, + Properties::NON_VIRTUAL, + __bool__extractBoundaryEdgeloop__EdgeList_R1__Edgeloop_R1, + "", + ""); + I_Method2(bool, extractBoundaryEdgeloopList, IN, osgUtil::EdgeCollector::EdgeList &, el, IN, osgUtil::EdgeCollector::EdgeloopList &, edgeloopList, + Properties::NON_VIRTUAL, + __bool__extractBoundaryEdgeloopList__EdgeList_R1__EdgeloopList_R1, + "", + ""); + I_Method1(void, getEdgeloopIndexList, IN, osgUtil::EdgeCollector::IndexArrayList &, ial, + Properties::NON_VIRTUAL, + __void__getEdgeloopIndexList__IndexArrayList_R1, + "", + ""); + I_SimpleProperty(osg::Geometry *, Geometry, + __osg_Geometry_P1__getGeometry, + __void__setGeometry__osg_Geometry_P1); + I_PublicMemberProperty(osg::Geometry *, _geometry); + I_PublicMemberProperty(osgUtil::EdgeCollector::EdgeSet, _edgeSet); + I_PublicMemberProperty(osgUtil::EdgeCollector::TriangleSet, _triangleSet); + I_PublicMemberProperty(osgUtil::EdgeCollector::PointSet, _pointSet); + I_PublicMemberProperty(osgUtil::EdgeCollector::PointList, _originalPointList); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::EdgeCollector::Edge) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_BaseType(osg::Referenced); + I_Constructor0(____Edge, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method2(void, setOrderedPoints, IN, osgUtil::EdgeCollector::Point *, p1, IN, osgUtil::EdgeCollector::Point *, p2, + Properties::NON_VIRTUAL, + __void__setOrderedPoints__Point_P1__Point_P1, + "", + ""); + I_Method1(void, addTriangle, IN, osgUtil::EdgeCollector::Triangle *, triangle, + Properties::NON_VIRTUAL, + __void__addTriangle__Triangle_P1, + "", + ""); + I_Method0(bool, isBoundaryEdge, + Properties::NON_VIRTUAL, + __bool__isBoundaryEdge, + "", + ""); + I_Method0(bool, isAdjacentToBoundary, + Properties::NON_VIRTUAL, + __bool__isAdjacentToBoundary, + "", + ""); + I_Method1(bool, endConnected, IN, const osgUtil::EdgeCollector::Edge &, rhs, + Properties::NON_VIRTUAL, + __bool__endConnected__C5_Edge_R1, + "", + ""); + I_Method1(bool, beginConnected, IN, const osgUtil::EdgeCollector::Edge &, rhs, + Properties::NON_VIRTUAL, + __bool__beginConnected__C5_Edge_R1, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _p1); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _p2); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _op1); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _op2); + I_PublicMemberProperty(osgUtil::EdgeCollector::TriangleSet, _triangles); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::EdgeCollector::Edge > >, osgUtil::EdgeCollector::Edgeloop::EdgeList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::EdgeCollector::Edgeloop) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_BaseType(osg::Referenced); + I_Constructor0(____Edgeloop, + "", + ""); + I_Method0(bool, isClosed, + Properties::NON_VIRTUAL, + __bool__isClosed, + "", + ""); + I_Method0(osg::UIntArray *, toIndexArray, + Properties::NON_VIRTUAL, + __osg_UIntArray_P1__toIndexArray, + "", + ""); + I_PublicMemberProperty(osgUtil::EdgeCollector::Edgeloop::EdgeList, _edgeList); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::EdgeCollector::Point) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_BaseType(osg::Referenced); + I_Constructor0(____Point, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method0(bool, isBoundaryPoint, + Properties::NON_VIRTUAL, + __bool__isBoundaryPoint, + "", + ""); + I_PublicMemberProperty(bool, _protected); + I_PublicMemberProperty(unsigned int, _index); + I_PublicMemberProperty(osg::Vec3d, _vertex); + I_PublicMemberProperty(osgUtil::EdgeCollector::TriangleSet, _triangles); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::EdgeCollector::Triangle) + I_DeclaringFile("osgUtil/EdgeCollector"); + I_BaseType(osg::Referenced); + I_Constructor0(____Triangle, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method3(void, setOrderedPoints, IN, osgUtil::EdgeCollector::Point *, p1, IN, osgUtil::EdgeCollector::Point *, p2, IN, osgUtil::EdgeCollector::Point *, p3, + Properties::NON_VIRTUAL, + __void__setOrderedPoints__Point_P1__Point_P1__Point_P1, + "", + ""); + I_Method1(float, distance, IN, const osg::Vec3 &, vertex, + Properties::NON_VIRTUAL, + __float__distance__C5_osg_Vec3_R1, + "", + ""); + I_Method0(bool, isBoundaryTriangle, + Properties::NON_VIRTUAL, + __bool__isBoundaryTriangle, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _p1); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _p2); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _p3); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _op1); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _op2); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Point >, _op3); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Edge >, _e1); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Edge >, _e2); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::EdgeCollector::Edge >, _e3); + I_PublicMemberProperty(osg::Plane, _plane); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::UIntArray >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::UIntArray *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::UIntArray > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::UIntArray *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::UIntArray *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::UIntArray > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::UIntArray *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::EdgeCollector::Edge >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::EdgeCollector::Edge *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::EdgeCollector::Edge > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Edge *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Edge *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::EdgeCollector::Edge > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::EdgeCollector::Edge *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::EdgeCollector::Edgeloop >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::EdgeCollector::Edgeloop *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::EdgeCollector::Edgeloop > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Edgeloop *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Edgeloop *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::EdgeCollector::Edgeloop > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::EdgeCollector::Edgeloop *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::EdgeCollector::Point >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::EdgeCollector::Point *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::EdgeCollector::Point > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Point *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Point *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::EdgeCollector::Point > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::EdgeCollector::Point *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::EdgeCollector::Triangle >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::EdgeCollector::Triangle *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::EdgeCollector::Triangle > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Triangle *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::EdgeCollector::Triangle *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::EdgeCollector::Triangle > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::EdgeCollector::Triangle *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::UIntArray > >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgUtil::EdgeCollector::Edgeloop > >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > >) + +STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > COMMA unsigned int COMMA osgUtil::dereference_less >) + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Edge > COMMA osgUtil::dereference_less >) + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Point > COMMA osgUtil::dereference_less >) + +STD_SET_REFLECTOR(std::set< osg::ref_ptr< osgUtil::EdgeCollector::Triangle > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::EdgeCollector::Edge > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::EdgeCollector::Point > >) + diff --git a/src/osgWrappers/introspection/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/introspection/osgUtil/GLObjectsVisitor.cpp new file mode 100644 index 000000000..7b8d6d0f3 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/GLObjectsVisitor.cpp @@ -0,0 +1,142 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsOperation) + I_DeclaringFile("osgUtil/GLObjectsVisitor"); + I_BaseType(osg::GraphicsOperation); + 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, + ____GLObjectsOperation__GLObjectsVisitor_Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, osg::Node *, subgraph, , IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES|osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES, + ____GLObjectsOperation__osg_Node_P1__GLObjectsVisitor_Mode, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) + I_DeclaringFile("osgUtil/GLObjectsVisitor"); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES); + I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_DISPLAY_LISTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_STATE_ATTRIBUTES); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS); + I_EnumLabel(osgUtil::GLObjectsVisitor::CHECK_BLACK_LISTED_MODES); +END_REFLECTOR + +TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode) + +BEGIN_OBJECT_REFLECTOR(osgUtil::GLObjectsVisitor) + I_DeclaringFile("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(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_SimpleProperty(osgUtil::GLObjectsVisitor::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/HalfWayMapGenerator.cpp b/src/osgWrappers/introspection/osgUtil/HalfWayMapGenerator.cpp new file mode 100644 index 000000000..66740fd2e --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/HalfWayMapGenerator.cpp @@ -0,0 +1,43 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) + I_DeclaringFile("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, + "", + ""); + I_Constructor2(IN, const osgUtil::HalfWayMapGenerator &, copy, IN, const osg::CopyOp &, copyop, + ____HalfWayMapGenerator__C5_HalfWayMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec4, compute_color, IN, const osg::Vec3 &, R, + Properties::VIRTUAL, + Properties::CONST, + __osg_Vec4__compute_color__C5_osg_Vec3_R1, + "Override this method to define how colors are computed. ", + "The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/HighlightMapGenerator.cpp b/src/osgWrappers/introspection/osgUtil/HighlightMapGenerator.cpp new file mode 100644 index 000000000..b7a07b78f --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/HighlightMapGenerator.cpp @@ -0,0 +1,44 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) + I_DeclaringFile("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, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::HighlightMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____HighlightMapGenerator__C5_HighlightMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec4, compute_color, IN, const osg::Vec3 &, R, + Properties::VIRTUAL, + Properties::CONST, + __osg_Vec4__compute_color__C5_osg_Vec3_R1, + "Override this method to define how colors are computed. ", + "The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/IncrementalCompileOperation.cpp b/src/osgWrappers/introspection/osgUtil/IncrementalCompileOperation.cpp new file mode 100644 index 000000000..2db8cfec4 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/IncrementalCompileOperation.cpp @@ -0,0 +1,380 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgUtil::IncrementalCompileOperation::Contexts) + +TYPE_NAME_ALIAS(std::set< osg::GraphicsContext * >, osgUtil::IncrementalCompileOperation::ContextSet) + +TYPE_NAME_ALIAS(std::map< osg::GraphicsContext * COMMA osgUtil::IncrementalCompileOperation::CompileData >, osgUtil::IncrementalCompileOperation::CompileMap) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileSet > >, osgUtil::IncrementalCompileOperation::CompileSets) + +BEGIN_OBJECT_REFLECTOR(osgUtil::IncrementalCompileOperation) + I_DeclaringFile("osgUtil/IncrementalCompileOperation"); + I_BaseType(osg::GraphicsOperation); + I_Constructor0(____IncrementalCompileOperation, + "", + ""); + I_Method1(void, setTargetFrameRate, IN, double, tfr, + Properties::NON_VIRTUAL, + __void__setTargetFrameRate__double, + "Set the target frame rate that the IncrementalCompileOperation 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 IncrementalCompileOperation, but are should be used as a guide for how long to set aside per frame for compiling and deleting OpenGL objects. The longer amount of time to set aside the 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 IncrementalCompileOperation 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, setFlushTimeRatio, IN, double, ratio, + Properties::NON_VIRTUAL, + __void__setFlushTimeRatio__double, + "FlushTimeRatio governs how much of the spare time in each frame is used for flushing deleted OpenGL objects. ", + "Default value is 0.5, valid range is 0.1 to 0.9. "); + I_Method0(double, getFlushTimeRatio, + Properties::NON_VIRTUAL, + __double__getFlushTimeRatio, + "", + ""); + I_Method1(void, setConservativeTimeRatio, IN, double, ratio, + Properties::NON_VIRTUAL, + __void__setConservativeTimeRatio__double, + "ConservativeTimeRatio governs how much of the measured spare time in each frame is used for flushing deleted and compile new OpenGL objects. ", + "Default value is 0.5, valid range is 0.1 to 1.0. A ratio near 1.0 will lead to paged databases being compiled and merged quicker but increase the chances of frame drop. A ratio near 0.1 will lead to paged databases being compiled and merged closer but reduse the chances of frame drop. "); + I_Method0(double, getConservativeTimeRatio, + Properties::NON_VIRTUAL, + __double__getConservativeTimeRatio, + "", + ""); + I_Method1(void, assignContexts, IN, osgUtil::IncrementalCompileOperation::Contexts &, contexts, + Properties::NON_VIRTUAL, + __void__assignContexts__Contexts_R1, + "", + ""); + I_Method1(void, removeContexts, IN, osgUtil::IncrementalCompileOperation::Contexts &, contexts, + Properties::NON_VIRTUAL, + __void__removeContexts__Contexts_R1, + "", + ""); + I_Method1(void, addGraphicsContext, IN, osg::GraphicsContext *, gc, + Properties::NON_VIRTUAL, + __void__addGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method1(void, removeGraphicsContext, IN, osg::GraphicsContext *, gc, + Properties::NON_VIRTUAL, + __void__removeGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(void, mergeCompiledSubgraphs, + Properties::NON_VIRTUAL, + __void__mergeCompiledSubgraphs, + "Merge subgraphs that have been compiled. ", + ""); + I_Method1(void, add, IN, osg::Node *, subgraphToCompile, + Properties::NON_VIRTUAL, + __void__add__osg_Node_P1, + "Add a subgraph to be compiled. ", + ""); + I_Method2(void, add, IN, osg::Group *, attachmentPoint, IN, osg::Node *, subgraphToCompile, + Properties::NON_VIRTUAL, + __void__add__osg_Group_P1__osg_Node_P1, + "Add a subgraph to be compiled and add automatically to attachPoint on call to mergeCompiledSubgraphs. ", + ""); + I_MethodWithDefaults2(void, add, IN, osgUtil::IncrementalCompileOperation::CompileSet *, compileSet, , IN, bool, callBuildCompileMap, true, + Properties::NON_VIRTUAL, + __void__add__CompileSet_P1__bool, + "Add a CompileSet to be compiled. ", + ""); + I_Method0(OpenThreads::Mutex *, getToCompiledMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getToCompiledMutex, + "", + ""); + I_Method0(osgUtil::IncrementalCompileOperation::CompileSets &, getToCompile, + Properties::NON_VIRTUAL, + __CompileSets_R1__getToCompile, + "", + ""); + I_Method0(OpenThreads::Mutex *, getCompiledMutex, + Properties::NON_VIRTUAL, + __OpenThreads_Mutex_P1__getCompiledMutex, + "", + ""); + I_Method0(osgUtil::IncrementalCompileOperation::CompileSets &, getCompiled, + Properties::NON_VIRTUAL, + __CompileSets_R1__getCompiled, + "", + ""); + I_SimpleProperty(osgUtil::IncrementalCompileOperation::CompileSets &, Compiled, + __CompileSets_R1__getCompiled, + 0); + I_SimpleProperty(OpenThreads::Mutex *, CompiledMutex, + __OpenThreads_Mutex_P1__getCompiledMutex, + 0); + I_SimpleProperty(double, ConservativeTimeRatio, + __double__getConservativeTimeRatio, + __void__setConservativeTimeRatio__double); + I_SimpleProperty(double, FlushTimeRatio, + __double__getFlushTimeRatio, + __void__setFlushTimeRatio__double); + I_SimpleProperty(unsigned int, MaximumNumOfObjectsToCompilePerFrame, + __unsigned_int__getMaximumNumOfObjectsToCompilePerFrame, + __void__setMaximumNumOfObjectsToCompilePerFrame__unsigned_int); + I_SimpleProperty(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame, + __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double); + I_SimpleProperty(double, TargetFrameRate, + __double__getTargetFrameRate, + __void__setTargetFrameRate__double); + I_SimpleProperty(osgUtil::IncrementalCompileOperation::CompileSets &, ToCompile, + __CompileSets_R1__getToCompile, + 0); + I_SimpleProperty(OpenThreads::Mutex *, ToCompiledMutex, + __OpenThreads_Mutex_P1__getToCompiledMutex, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IncrementalCompileOperation::CompileCompletedCallback) + I_DeclaringFile("osgUtil/IncrementalCompileOperation"); + I_BaseType(osg::Referenced); + I_Constructor0(____CompileCompletedCallback, + "", + ""); + I_Method1(bool, compileCompleted, IN, osgUtil::IncrementalCompileOperation::CompileSet *, compileSet, + Properties::PURE_VIRTUAL, + __bool__compileCompleted__CompileSet_P1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Drawable > >, osgUtil::IncrementalCompileOperation::CompileData::Drawables) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture > >, osgUtil::IncrementalCompileOperation::CompileData::Textures) + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Program > >, osgUtil::IncrementalCompileOperation::CompileData::Programs) + +BEGIN_OBJECT_REFLECTOR(osgUtil::IncrementalCompileOperation::CompileData) + I_DeclaringFile("osgUtil/IncrementalCompileOperation"); + I_BaseType(osg::Referenced); + I_Constructor0(____CompileData, + "", + ""); + I_Method0(bool, empty, + Properties::NON_VIRTUAL, + __bool__empty, + "", + ""); + I_PublicMemberProperty(osgUtil::IncrementalCompileOperation::CompileData::Drawables, _drawables); + I_PublicMemberProperty(osgUtil::IncrementalCompileOperation::CompileData::Textures, _textures); + I_PublicMemberProperty(osgUtil::IncrementalCompileOperation::CompileData::Programs, _programs); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::IncrementalCompileOperation::CompileSet) + I_DeclaringFile("osgUtil/IncrementalCompileOperation"); + I_BaseType(osg::Referenced); + I_Constructor0(____CompileSet, + "", + ""); + I_Constructor1(IN, osg::Node *, subgraphToCompile, + Properties::NON_EXPLICIT, + ____CompileSet__osg_Node_P1, + "", + ""); + I_Constructor2(IN, osg::Group *, attachmentPoint, IN, osg::Node *, subgraphToCompile, + ____CompileSet__osg_Group_P1__osg_Node_P1, + "", + ""); + I_MethodWithDefaults2(void, buildCompileMap, IN, osgUtil::IncrementalCompileOperation::ContextSet &, context, , IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES, + Properties::NON_VIRTUAL, + __void__buildCompileMap__ContextSet_R1__GLObjectsVisitor_Mode, + "", + ""); + I_Method0(bool, compileCompleted, + Properties::NON_VIRTUAL, + __bool__compileCompleted, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Group >, _attachmentPoint); + I_PublicMemberProperty(osg::ref_ptr< osg::Node >, _subgraphToCompile); + I_PublicMemberProperty(osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileCompletedCallback >, _compileCompletedCallback); + I_PublicMemberProperty(osgUtil::IncrementalCompileOperation::CompileMap, _compileMap); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Program >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Program *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Program > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Program *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Program *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Program > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Program *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Texture >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osg::Texture *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osg::Texture > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osg::Texture *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osg::Texture *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osg::Texture > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osg::Texture *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileSet >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgUtil::IncrementalCompileOperation::CompileSet *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileSet > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgUtil::IncrementalCompileOperation::CompileSet *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgUtil::IncrementalCompileOperation::CompileSet *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileSet > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgUtil::IncrementalCompileOperation::CompileSet *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Drawable > >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Program > >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osg::Texture > >) + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgUtil::IncrementalCompileOperation::CompileSet > >) + +STD_MAP_REFLECTOR(std::map< osg::GraphicsContext * COMMA osgUtil::IncrementalCompileOperation::CompileData >) + +STD_SET_REFLECTOR(std::set< osg::GraphicsContext * >) + diff --git a/src/osgWrappers/introspection/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/introspection/osgUtil/IntersectVisitor.cpp new file mode 100644 index 000000000..442a2fb9f --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/IntersectVisitor.cpp @@ -0,0 +1,375 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< int >, osgUtil::Hit::VecIndexList) + +BEGIN_VALUE_REFLECTOR(osgUtil::Hit) + I_DeclaringFile("osgUtil/IntersectVisitor"); + I_Constructor0(____Hit, + "Deprecated. ", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::Drawable *, Drawable, + __osg_Drawable_P1__getDrawable, + 0); + I_SimpleProperty(osg::Geode *, Geode, + __osg_Geode_P1__getGeode, + 0); + I_SimpleProperty(const osg::RefMatrix *, InverseMatrix, + __C5_osg_RefMatrix_P1__getInverseMatrix, + 0); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectPoint, + __C5_osg_Vec3_R1__getLocalIntersectPoint, + 0); + I_SimpleProperty(const osg::LineSegment *, LocalLineSegment, + __C5_osg_LineSegment_P1__getLocalLineSegment, + 0); + I_SimpleProperty(const osg::RefMatrix *, Matrix, + __C5_osg_RefMatrix_P1__getMatrix, + 0); + I_SimpleProperty(osg::NodePath &, NodePath, + __osg_NodePath_R1__getNodePath, + 0); + I_SimpleProperty(const osg::LineSegment *, OriginalLineSegment, + __C5_osg_LineSegment_P1__getOriginalLineSegment, + 0); + I_SimpleProperty(int, PrimitiveIndex, + __int__getPrimitiveIndex, + 0); + I_SimpleProperty(float, Ratio, + __float__getRatio, + 0); + I_SimpleProperty(const osgUtil::Hit::VecIndexList &, VecIndexList, + __C5_VecIndexList_R1__getVecIndexList, + 0); + I_SimpleProperty(const osg::Vec3, WorldIntersectNormal, + __C5_osg_Vec3__getWorldIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3, WorldIntersectPoint, + __C5_osg_Vec3__getWorldIntersectPoint, + 0); + I_PublicMemberProperty(float, _ratio); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _originalLineSegment); + I_PublicMemberProperty(osg::ref_ptr< osg::LineSegment >, _localLineSegment); + I_PublicMemberProperty(osg::NodePath, _nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::Geode >, _geode); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _matrix); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _inverse); + I_PublicMemberProperty(osgUtil::Hit::VecIndexList, _vecIndexList); + I_PublicMemberProperty(int, _primitiveIndex); + I_PublicMemberProperty(osg::Vec3, _intersectPoint); + I_PublicMemberProperty(osg::Vec3, _intersectNormal); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) + I_DeclaringFile("osgUtil/IntersectVisitor"); + I_EnumLabel(osgUtil::IntersectVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); + I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList) + +TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap) + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) + I_DeclaringFile("osgUtil/IntersectVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____IntersectVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_ProtectedMethod1(bool, intersect, IN, osg::Drawable &, gset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__intersect__osg_Drawable_R1, + "", + ""); + I_ProtectedMethod2(void, pushMatrix, IN, osg::RefMatrix *, matrix, IN, osg::Transform::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__pushMatrix__osg_RefMatrix_P1__osg_Transform_ReferenceFrame, + "", + ""); + I_ProtectedMethod0(void, popMatrix, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__popMatrix, + "", + ""); + I_ProtectedMethod1(bool, enterNode, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__enterNode__osg_Node_R1, + "", + ""); + I_ProtectedMethod0(void, leaveNode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__leaveNode, + "", + ""); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + __void__setEyePoint__C5_osg_Vec3_R1); + I_SimpleProperty(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode, + __LODSelectionMode__getLODSelectionMode, + __void__setLODSelectionMode__LODSelectionMode); + I_SimpleProperty(osgUtil::IntersectVisitor::LineSegmentHitListMap &, SegHitList, + __LineSegmentHitListMap_R1__getSegHitList, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) + I_DeclaringFile("osgUtil/IntersectVisitor"); + 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, + "", + ""); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >) + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::Hit >) + diff --git a/src/osgWrappers/introspection/osgUtil/IntersectionVisitor.cpp b/src/osgWrappers/introspection/osgUtil/IntersectionVisitor.cpp new file mode 100644 index 000000000..6bd9fd0ba --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/IntersectionVisitor.cpp @@ -0,0 +1,540 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgUtil::IntersectionVisitor::LODSelectionMode) + I_DeclaringFile("osgUtil/IntersectionVisitor"); + I_EnumLabel(osgUtil::IntersectionVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); + I_EnumLabel(osgUtil::IntersectionVisitor::USE_EYE_POINT_FOR_LOD_LEVEL_SELECTION); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor) + I_DeclaringFile("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(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, setUseKdTreeWhenAvailable, IN, bool, useKdTrees, + Properties::NON_VIRTUAL, + __void__setUseKdTreeWhenAvailable__bool, + "Set whether the intersectors should use KdTrees when they are found on the scene graph. ", + ""); + I_Method0(bool, getUseKdTreeWhenAvailable, + Properties::NON_VIRTUAL, + __bool__getUseKdTreeWhenAvailable, + "Set whether the intersectors should use KdTrees. ", + ""); + I_Method1(void, setDoDummyTraversal, IN, bool, dummy, + Properties::NON_VIRTUAL, + __void__setDoDummyTraversal__bool, + "", + ""); + I_Method0(bool, getDoDummyTraversal, + Properties::NON_VIRTUAL, + __bool__getDoDummyTraversal, + "", + ""); + 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_Method0(const osg::RefMatrix *, getWindowMatrix, + Properties::NON_VIRTUAL, + __C5_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_Method0(const osg::RefMatrix *, getProjectionMatrix, + Properties::NON_VIRTUAL, + __C5_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_Method0(const osg::RefMatrix *, getViewMatrix, + Properties::NON_VIRTUAL, + __C5_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_Method0(const osg::RefMatrix *, getModelMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getModelMatrix, + "", + ""); + I_Method1(void, setReferenceEyePoint, IN, const osg::Vec3 &, ep, + Properties::NON_VIRTUAL, + __void__setReferenceEyePoint__C5_osg_Vec3_R1, + "Set the reference eye point that is used for nodes that require an eye point to position themselves, such as billboards. ", + ""); + I_Method0(const osg::Vec3 &, getReferenceEyePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferenceEyePoint, + "Get the reference eye point. ", + ""); + I_Method1(void, setReferenceEyePointCoordinateFrame, IN, osgUtil::Intersector::CoordinateFrame, cf, + Properties::NON_VIRTUAL, + __void__setReferenceEyePointCoordinateFrame__Intersector_CoordinateFrame, + "Set the coordinate frame of the reference eye point. ", + ""); + I_Method0(osgUtil::Intersector::CoordinateFrame, getReferenceEyePointCoordinateFrame, + Properties::NON_VIRTUAL, + __Intersector_CoordinateFrame__getReferenceEyePointCoordinateFrame, + "Get the coordinate frame of the reference eye point. ", + ""); + I_Method0(osg::Vec3, getEyePoint, + Properties::VIRTUAL, + __osg_Vec3__getEyePoint, + "Get the eye point in the local coordinate frame a given traversal point. ", + ""); + I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectionVisitor::LODSelectionMode, mode, + Properties::NON_VIRTUAL, + __void__setLODSelectionMode__LODSelectionMode, + "Set the LOD selection scheme. ", + ""); + I_Method0(osgUtil::IntersectionVisitor::LODSelectionMode, getLODSelectionMode, + Properties::NON_VIRTUAL, + __LODSelectionMode__getLODSelectionMode, + "Get the LOD selection scheme. ", + ""); + 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 &, 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, + "", + ""); + I_ProtectedMethod1(bool, enter, IN, const osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__enter__C5_osg_Node_R1, + "", + ""); + I_ProtectedMethod0(void, leave, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__leave, + "", + ""); + I_ProtectedMethod1(void, intersect, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__intersect__osg_Drawable_P1, + "", + ""); + I_ProtectedMethod0(void, push_clone, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__push_clone, + "", + ""); + I_ProtectedMethod0(void, pop_clone, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__pop_clone, + "", + ""); + I_SimpleProperty(bool, DoDummyTraversal, + __bool__getDoDummyTraversal, + __void__setDoDummyTraversal__bool); + I_SimpleProperty(osg::Vec3, EyePoint, + __osg_Vec3__getEyePoint, + 0); + I_SimpleProperty(osgUtil::Intersector *, Intersector, + __Intersector_P1__getIntersector, + __void__setIntersector__Intersector_P1); + I_SimpleProperty(osgUtil::IntersectionVisitor::LODSelectionMode, LODSelectionMode, + __LODSelectionMode__getLODSelectionMode, + __void__setLODSelectionMode__LODSelectionMode); + I_SimpleProperty(osg::RefMatrix *, ModelMatrix, + __osg_RefMatrix_P1__getModelMatrix, + 0); + I_SimpleProperty(osg::RefMatrix *, ProjectionMatrix, + __osg_RefMatrix_P1__getProjectionMatrix, + 0); + I_SimpleProperty(osgUtil::IntersectionVisitor::ReadCallback *, ReadCallback, + __ReadCallback_P1__getReadCallback, + __void__setReadCallback__ReadCallback_P1); + I_SimpleProperty(const osg::Vec3 &, ReferenceEyePoint, + __C5_osg_Vec3_R1__getReferenceEyePoint, + __void__setReferenceEyePoint__C5_osg_Vec3_R1); + I_SimpleProperty(osgUtil::Intersector::CoordinateFrame, ReferenceEyePointCoordinateFrame, + __Intersector_CoordinateFrame__getReferenceEyePointCoordinateFrame, + __void__setReferenceEyePointCoordinateFrame__Intersector_CoordinateFrame); + I_SimpleProperty(bool, UseKdTreeWhenAvailable, + __bool__getUseKdTreeWhenAvailable, + __void__setUseKdTreeWhenAvailable__bool); + I_SimpleProperty(osg::RefMatrix *, ViewMatrix, + __osg_RefMatrix_P1__getViewMatrix, + 0); + I_SimpleProperty(osg::RefMatrix *, WindowMatrix, + __osg_RefMatrix_P1__getWindowMatrix, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::IntersectionVisitor::ReadCallback) + I_DeclaringFile("osgUtil/IntersectionVisitor"); + I_BaseType(osg::Referenced); + I_Constructor0(____ReadCallback, + "", + ""); + I_Method1(osg::Node *, readNodeFile, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __osg_Node_P1__readNodeFile__C5_std_string_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Intersector::CoordinateFrame) + I_DeclaringFile("osgUtil/IntersectionVisitor"); + I_EnumLabel(osgUtil::Intersector::WINDOW); + I_EnumLabel(osgUtil::Intersector::PROJECTION); + I_EnumLabel(osgUtil::Intersector::VIEW); + I_EnumLabel(osgUtil::Intersector::MODEL); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::Intersector) + I_DeclaringFile("osgUtil/IntersectionVisitor"); + 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, + "", + ""); + I_SimpleProperty(osgUtil::Intersector::CoordinateFrame, CoordinateFrame, + __CoordinateFrame__getCoordinateFrame, + __void__setCoordinateFrame__CoordinateFrame); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Intersector > >, osgUtil::IntersectorGroup::Intersectors) + +BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectorGroup) + I_DeclaringFile("osgUtil/IntersectionVisitor"); + 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, + "", + ""); + I_SimpleProperty(osgUtil::IntersectorGroup::Intersectors &, Intersectors, + __Intersectors_R1__getIntersectors, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Intersector >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::Intersector *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Intersector > >) + diff --git a/src/osgWrappers/introspection/osgUtil/LineSegmentIntersector.cpp b/src/osgWrappers/introspection/osgUtil/LineSegmentIntersector.cpp new file mode 100644 index 000000000..cc5558765 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/LineSegmentIntersector.cpp @@ -0,0 +1,189 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::multiset< osgUtil::LineSegmentIntersector::Intersection >, osgUtil::LineSegmentIntersector::Intersections) + +BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) + I_DeclaringFile("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, + "Construct a LineSegmentIntersector the runs between the specified start and end points in MODEL coordinates. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Vec3d &, start, IN, const osg::Vec3d &, end, + ____LineSegmentIntersector__CoordinateFrame__C5_osg_Vec3d_R1__C5_osg_Vec3d_R1, + "Construct a LineSegmentIntersector the runs between the specified start and end points in the specified coordinate frame. ", + ""); + I_Constructor3(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, x, IN, double, y, + ____LineSegmentIntersector__CoordinateFrame__double__double, + "Convenience constructor for supporting picking in WINDOW, or PROJECTION coordinates 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(void, setStart, IN, const osg::Vec3d &, start, + Properties::NON_VIRTUAL, + __void__setStart__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getStart, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getStart, + "", + ""); + I_Method1(void, setEnd, IN, const osg::Vec3d &, end, + Properties::NON_VIRTUAL, + __void__setEnd__C5_osg_Vec3d_R1, + "", + ""); + I_Method0(const osg::Vec3d &, getEnd, + Properties::NON_VIRTUAL, + __C5_osg_Vec3d_R1__getEnd, + "", + ""); + 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, + "", + ""); + I_ProtectedMethod1(bool, intersects, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__intersects__C5_osg_BoundingSphere_R1, + "", + ""); + I_ProtectedMethod3(bool, intersectAndClip, IN, osg::Vec3d &, s, IN, osg::Vec3d &, e, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__intersectAndClip__osg_Vec3d_R1__osg_Vec3d_R1__C5_osg_BoundingBox_R1, + "", + ""); + I_SimpleProperty(const osg::Vec3d &, End, + __C5_osg_Vec3d_R1__getEnd, + __void__setEnd__C5_osg_Vec3d_R1); + I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersection, FirstIntersection, + __Intersection__getFirstIntersection, + 0); + I_SimpleProperty(osgUtil::LineSegmentIntersector::Intersections &, Intersections, + __Intersections_R1__getIntersections, + 0); + I_SimpleProperty(const osg::Vec3d &, Start, + __C5_osg_Vec3d_R1__getStart, + __void__setStart__C5_osg_Vec3d_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::Intersection::IndexList) + +TYPE_NAME_ALIAS(std::vector< double >, osgUtil::LineSegmentIntersector::Intersection::RatioList) + +BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) + I_DeclaringFile("osgUtil/LineSegmentIntersector"); + I_Constructor0(____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, + "", + ""); + I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, + __C5_osg_Vec3_R1__getLocalIntersectNormal, + 0); + I_SimpleProperty(const osg::Vec3d &, LocalIntersectPoint, + __C5_osg_Vec3d_R1__getLocalIntersectPoint, + 0); + I_SimpleProperty(osg::Vec3, WorldIntersectNormal, + __osg_Vec3__getWorldIntersectNormal, + 0); + I_SimpleProperty(osg::Vec3d, WorldIntersectPoint, + __osg_Vec3d__getWorldIntersectPoint, + 0); + I_PublicMemberProperty(double, ratio); + I_PublicMemberProperty(osg::NodePath, nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); + I_PublicMemberProperty(osg::Vec3d, localIntersectionPoint); + I_PublicMemberProperty(osg::Vec3, localIntersectionNormal); + I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList); + I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::RatioList, ratioList); + I_PublicMemberProperty(unsigned int, primitiveIndex); +END_REFLECTOR + +STD_SET_REFLECTOR(std::multiset< osgUtil::LineSegmentIntersector::Intersection >) + diff --git a/src/osgWrappers/introspection/osgUtil/OperationArrayFunctor.cpp b/src/osgWrappers/introspection/osgUtil/OperationArrayFunctor.cpp new file mode 100644 index 000000000..b451ed94a --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/OperationArrayFunctor.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osgUtil/Optimizer.cpp b/src/osgWrappers/introspection/osgUtil/Optimizer.cpp new file mode 100644 index 000000000..da757bf27 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/Optimizer.cpp @@ -0,0 +1,979 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::BaseOptimizerVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) + I_DeclaringFile("osgUtil/Optimizer"); + I_EnumLabel(osgUtil::Optimizer::FLATTEN_STATIC_TRANSFORMS); + I_EnumLabel(osgUtil::Optimizer::REMOVE_REDUNDANT_NODES); + I_EnumLabel(osgUtil::Optimizer::REMOVE_LOADED_PROXY_NODES); + I_EnumLabel(osgUtil::Optimizer::COMBINE_ADJACENT_LODS); + I_EnumLabel(osgUtil::Optimizer::SHARE_DUPLICATE_STATE); + I_EnumLabel(osgUtil::Optimizer::MERGE_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::CHECK_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::MAKE_FAST_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::SPATIALIZE_GROUPS); + I_EnumLabel(osgUtil::Optimizer::COPY_SHARED_NODES); + I_EnumLabel(osgUtil::Optimizer::TRISTRIP_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::TESSELLATE_GEOMETRY); + I_EnumLabel(osgUtil::Optimizer::OPTIMIZE_TEXTURE_SETTINGS); + I_EnumLabel(osgUtil::Optimizer::MERGE_GEODES); + I_EnumLabel(osgUtil::Optimizer::FLATTEN_BILLBOARDS); + I_EnumLabel(osgUtil::Optimizer::TEXTURE_ATLAS_BUILDER); + I_EnumLabel(osgUtil::Optimizer::STATIC_OBJECT_DETECTION); + I_EnumLabel(osgUtil::Optimizer::FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS); + I_EnumLabel(osgUtil::Optimizer::DEFAULT_OPTIMIZATIONS); + I_EnumLabel(osgUtil::Optimizer::ALL_OPTIMIZATIONS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) + I_DeclaringFile("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, + "", + ""); + I_SimpleProperty(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, IsOperationPermissibleForObjectCallback, + __IsOperationPermissibleForObjectCallback_P1__getIsOperationPermissibleForObjectCallback, + __void__setIsOperationPermissibleForObjectCallback__IsOperationPermissibleForObjectCallback_P1); + I_IndexedProperty(unsigned int, PermissibleOptimizationsForObject, + __unsigned_int__getPermissibleOptimizationsForObject__C5_osg_Object_P1, + __void__setPermissibleOptimizationsForObject__C5_osg_Object_P1__unsigned_int, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::CombineLODsVisitor::GroupList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineLODsVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList, _sharedNodeList); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::NodePath >, osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList) + +TYPE_NAME_ALIAS(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList >, osgUtil::Optimizer::FlattenBillboardVisitor::BillboardNodePathMap) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenBillboardVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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::FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____FlattenStaticTransformsDuplicatingSharedSubgraphsVisitor__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::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(void, apply, IN, osg::LOD &, lod, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, billboard, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_ProtectedMethod1(void, transformGeode, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__transformGeode__osg_Geode_R1, + "", + ""); + I_ProtectedMethod1(void, transformDrawable, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__transformDrawable__osg_Drawable_R1, + "", + ""); + I_ProtectedMethod1(void, transformBillboard, IN, osg::Billboard &, billboard, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__transformBillboard__osg_Billboard_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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) + I_DeclaringFile("osgUtil/Optimizer"); + 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::MakeFastGeometryVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, + Properties::NON_EXPLICIT, + ____MakeFastGeometryVisitor__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, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeodesVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_ProtectedMethod2(bool, mergeGeode, IN, osg::Geode &, lhs, IN, osg::Geode &, rhs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__mergeGeode__osg_Geode_R1__osg_Geode_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_StaticMethod1(bool, geometryContainsSharedArrays, IN, osg::Geometry &, geom, + __bool__geometryContainsSharedArrays__osg_Geometry_R1_S, + "", + ""); + I_StaticMethod2(bool, mergeGeometry, IN, osg::Geometry &, lhs, IN, osg::Geometry &, rhs, + __bool__mergeGeometry__osg_Geometry_R1__osg_Geometry_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrays &, lhs, IN, osg::DrawArrays &, rhs, + __bool__mergePrimitive__osg_DrawArrays_R1__osg_DrawArrays_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawArrayLengths &, lhs, IN, osg::DrawArrayLengths &, rhs, + __bool__mergePrimitive__osg_DrawArrayLengths_R1__osg_DrawArrayLengths_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUByte &, lhs, IN, osg::DrawElementsUByte &, rhs, + __bool__mergePrimitive__osg_DrawElementsUByte_R1__osg_DrawElementsUByte_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUShort &, lhs, IN, osg::DrawElementsUShort &, rhs, + __bool__mergePrimitive__osg_DrawElementsUShort_R1__osg_DrawElementsUShort_R1_S, + "", + ""); + I_StaticMethod2(bool, mergePrimitive, IN, osg::DrawElementsUInt &, lhs, IN, osg::DrawElementsUInt &, rhs, + __bool__mergePrimitive__osg_DrawElementsUInt_R1__osg_DrawElementsUInt_R1_S, + "", + ""); + I_SimpleProperty(unsigned int, TargetMaximumNumberOfVertices, + __unsigned_int__getTargetMaximumNumberOfVertices, + __void__setTargetMaximumNumberOfVertices__unsigned_int); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveEmptyNodesVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList, _redundantNodeList); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList, _redundantNodeList); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList, _redundantNodeList); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList) + +TYPE_NAME_ALIAS(std::set< osg::Geode * >, osgUtil::Optimizer::SpatializeGroupsVisitor::GeodesToDivideList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_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_Method2(bool, divide, IN, osg::Geode *, geode, IN, unsigned int, maxNumTreesPerCell, + Properties::NON_VIRTUAL, + __bool__divide__osg_Geode_P1__unsigned_int, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList, _groupsToDivideList); + I_PublicMemberProperty(osgUtil::Optimizer::SpatializeGroupsVisitor::GeodesToDivideList, _geodesToDivideList); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StateVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + I_BaseType(osgUtil::BaseOptimizerVisitor); + I_ConstructorWithDefaults4(IN, bool, combineDynamicState, , IN, bool, combineStaticState, , IN, bool, combineUnspecifiedState, , IN, osgUtil::Optimizer *, optimizer, 0, + ____StateVisitor__bool__bool__bool__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, + "", + ""); + I_ProtectedMethod2(void, addStateSet, IN, osg::StateSet *, stateset, IN, osg::Object *, obj, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addStateSet__osg_StateSet_P1__osg_Object_P1, + "", + ""); + I_ProtectedMethod1(bool, optimize, IN, osg::Object::DataVariance, variance, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__optimize__osg_Object_DataVariance, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::StaticObjectDetectionVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_ProtectedMethod1(void, applyStateSet, IN, osg::StateSet &, stateset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__applyStateSet__osg_StateSet_R1, + "", + ""); + I_ProtectedMethod1(void, applyDrawable, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__applyDrawable__osg_Drawable_R1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::TessellateVisitor::GroupList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TessellateVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(osgUtil::Optimizer::TessellateVisitor::GroupList, _groupList); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureAtlasBuilder) + I_DeclaringFile("osgUtil/Optimizer"); + I_Constructor0(____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, + "", + ""); + + + I_SimpleProperty(unsigned int, Margin, + __unsigned_int__getMargin, + __void__setMargin__unsigned_int); + I_SimpleProperty(unsigned int, MaximumAtlasHeight, + __unsigned_int__getMaximumAtlasHeight, + 0); + I_SimpleProperty(unsigned int, MaximumAtlasWidth, + __unsigned_int__getMaximumAtlasWidth, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureAtlasVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_ProtectedMethod1(bool, pushStateSet, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__pushStateSet__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod0(void, popStateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__popStateSet, + "", + ""); + I_SimpleProperty(osgUtil::Optimizer::TextureAtlasBuilder &, TextureAtlasBuilder, + __TextureAtlasBuilder_R1__getTextureAtlasBuilder, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::TextureVisitor) + I_DeclaringFile("osgUtil/Optimizer"); + 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, + "", + ""); + I_PublicMemberProperty(bool, _changeAutoUnRef); + I_PublicMemberProperty(bool, _valueAutoUnRef); + I_PublicMemberProperty(bool, _changeClientImageStorage); + I_PublicMemberProperty(bool, _valueClientImageStorage); + I_PublicMemberProperty(bool, _changeAnisotropy); + I_PublicMemberProperty(float, _valueAnisotropy); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::Billboard * COMMA osgUtil::Optimizer::FlattenBillboardVisitor::NodePathList >) + +STD_SET_REFLECTOR(std::set< osg::Geode * >) + +STD_SET_REFLECTOR(std::set< osg::Group * >) + +STD_SET_REFLECTOR(std::set< osg::Node * >) + diff --git a/src/osgWrappers/introspection/osgUtil/PlaneIntersector.cpp b/src/osgWrappers/introspection/osgUtil/PlaneIntersector.cpp new file mode 100644 index 000000000..9372f15ad --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/PlaneIntersector.cpp @@ -0,0 +1,130 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osgUtil::PlaneIntersector::Intersection >, osgUtil::PlaneIntersector::Intersections) + +BEGIN_OBJECT_REFLECTOR(osgUtil::PlaneIntersector) + I_DeclaringFile("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, + "Construct a PolytopeIntersector using speified polytope in MODEL coordinates. ", + ""); + I_ConstructorWithDefaults3(IN, osgUtil::Intersector::CoordinateFrame, cf, , IN, const osg::Plane &, plane, , IN, const osg::Polytope &, boundingPolytope, osg::Polytope(), + ____PlaneIntersector__CoordinateFrame__C5_osg_Plane_R1__C5_osg_Polytope_R1, + "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, + "", + ""); + I_SimpleProperty(osg::EllipsoidModel *, EllipsoidModel, + 0, + __void__setEllipsoidModel__osg_EllipsoidModel_P1); + I_SimpleProperty(osgUtil::PlaneIntersector::Intersections &, Intersections, + __Intersections_R1__getIntersections, + 0); + I_SimpleProperty(bool, RecordHeightsAsAttributes, + __bool__getRecordHeightsAsAttributes, + __void__setRecordHeightsAsAttributes__bool); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3d >, osgUtil::PlaneIntersector::Intersection::Polyline) + +TYPE_NAME_ALIAS(std::vector< double >, osgUtil::PlaneIntersector::Intersection::Attributes) + +BEGIN_VALUE_REFLECTOR(osgUtil::PlaneIntersector::Intersection) + I_DeclaringFile("osgUtil/PlaneIntersector"); + I_Constructor0(____Intersection, + "", + ""); + I_PublicMemberProperty(osg::NodePath, nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osgUtil::PlaneIntersector::Intersection::Polyline, polyline); + I_PublicMemberProperty(osgUtil::PlaneIntersector::Intersection::Attributes, attributes); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::PlaneIntersector::Intersection >) + diff --git a/src/osgWrappers/introspection/osgUtil/PolytopeIntersector.cpp b/src/osgWrappers/introspection/osgUtil/PolytopeIntersector.cpp new file mode 100644 index 000000000..b29084314 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/PolytopeIntersector.cpp @@ -0,0 +1,141 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::set< osgUtil::PolytopeIntersector::Intersection >, osgUtil::PolytopeIntersector::Intersections) + +BEGIN_OBJECT_REFLECTOR(osgUtil::PolytopeIntersector) + I_DeclaringFile("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 specified polytope in MODEL coordinates. ", + ""); + I_Constructor2(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, const osg::Polytope &, polytope, + ____PolytopeIntersector__CoordinateFrame__C5_osg_Polytope_R1, + "Construct a PolytopeIntersector using specified polytope in specified coordinate frame. ", + ""); + I_Constructor5(IN, osgUtil::Intersector::CoordinateFrame, cf, IN, double, xMin, IN, double, yMin, IN, double, xMax, IN, double, yMax, + ____PolytopeIntersector__CoordinateFrame__double__double__double__double, + "Convenience constructor for supporting picking in WINDOW, or PROJECTION coordinates 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_Method0(unsigned int, getDimensionMask, + Properties::NON_VIRTUAL, + __unsigned_int__getDimensionMask, + "", + ""); + I_Method1(void, setDimensionMask, IN, unsigned int, dimensionMask, + Properties::NON_VIRTUAL, + __void__setDimensionMask__unsigned_int, + "set the dimension mask. ", + "As polytope-triangle and polytope-quad intersections are expensive to compute it is possible to turn them off by calling setDimensionMask( DimZero | DimOne ) "); + I_Method0(const osg::Plane &, getReferencePlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getReferencePlane, + "", + ""); + I_Method1(void, setReferencePlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setReferencePlane__C5_osg_Plane_R1, + "set the plane used to sort the intersections. ", + "The intersections are sorted by the distance of the localIntersectionPoint and the reference plane. The default for the reference plane is the last plane of the polytope. "); + 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, + "", + ""); + I_SimpleProperty(unsigned int, DimensionMask, + __unsigned_int__getDimensionMask, + __void__setDimensionMask__unsigned_int); + I_SimpleProperty(osgUtil::PolytopeIntersector::Intersection, FirstIntersection, + __Intersection__getFirstIntersection, + 0); + I_SimpleProperty(osgUtil::PolytopeIntersector::Intersections &, Intersections, + __Intersections_R1__getIntersections, + 0); + I_SimpleProperty(const osg::Plane &, ReferencePlane, + __C5_osg_Plane_R1__getReferencePlane, + __void__setReferencePlane__C5_osg_Plane_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::PolytopeIntersector::Intersection) + I_DeclaringFile("osgUtil/PolytopeIntersector"); + I_Constructor0(____Intersection, + "", + ""); + I_PublicMemberProperty(double, distance); + I_PublicMemberProperty(double, maxDistance); + I_PublicMemberProperty(osg::NodePath, nodePath); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); + I_PublicMemberProperty(osg::Vec3, localIntersectionPoint); + I_PublicMemberProperty(unsigned int, numIntersectionPoints); + I_PublicMemberProperty(unsigned int, primitiveIndex); +END_REFLECTOR + +STD_SET_REFLECTOR(std::set< osgUtil::PolytopeIntersector::Intersection >) + diff --git a/src/osgWrappers/introspection/osgUtil/PositionalStateContainer.cpp b/src/osgWrappers/introspection/osgUtil/PositionalStateContainer.cpp new file mode 100644 index 000000000..6e727de8d --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/PositionalStateContainer.cpp @@ -0,0 +1,151 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< const osg::StateAttribute > COMMA osg::ref_ptr< osg::RefMatrix > >, osgUtil::PositionalStateContainer::AttrMatrixPair) + +TYPE_NAME_ALIAS(std::vector< osgUtil::PositionalStateContainer::AttrMatrixPair >, osgUtil::PositionalStateContainer::AttrMatrixList) + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgUtil::PositionalStateContainer::AttrMatrixList >, osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap) + +BEGIN_OBJECT_REFLECTOR(osgUtil::PositionalStateContainer) + I_DeclaringFile("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, + "", + ""); + I_SimpleProperty(osgUtil::PositionalStateContainer::AttrMatrixList &, AttrMatrixList, + __AttrMatrixList_R1__getAttrMatrixList, + 0); + I_SimpleProperty(osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap &, TexUnitAttrMatrixListMap, + __TexUnitAttrMatrixListMap_R1__getTexUnitAttrMatrixListMap, + 0); + I_PublicMemberProperty(osgUtil::PositionalStateContainer::AttrMatrixList, _attrList); + I_PublicMemberProperty(osgUtil::PositionalStateContainer::TexUnitAttrMatrixListMap, _texAttrListMap); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::RefMatrix >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osg::RefMatrix *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgUtil::PositionalStateContainer::AttrMatrixList >) + +STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< const osg::StateAttribute > COMMA osg::ref_ptr< osg::RefMatrix > >) + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::PositionalStateContainer::AttrMatrixPair >) + diff --git a/src/osgWrappers/introspection/osgUtil/ReflectionMapGenerator.cpp b/src/osgWrappers/introspection/osgUtil/ReflectionMapGenerator.cpp new file mode 100644 index 000000000..aa657888d --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/ReflectionMapGenerator.cpp @@ -0,0 +1,43 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) + I_DeclaringFile("osgUtil/ReflectionMapGenerator"); + I_BaseType(osgUtil::CubeMapGenerator); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::NON_EXPLICIT, + ____ReflectionMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReflectionMapGenerator__C5_ReflectionMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod1(osg::Vec4, compute_color, IN, const osg::Vec3 &, R, + Properties::VIRTUAL, + Properties::CONST, + __osg_Vec4__compute_color__C5_osg_Vec3_R1, + "Override this method to define how colors are computed. ", + "The parameter R is the reflection vector, pointing from the center of the cube. The return value should be the RGBA color associated with that reflection ray. "); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/RenderBin.cpp b/src/osgWrappers/introspection/osgUtil/RenderBin.cpp new file mode 100644 index 000000000..df7ae587f --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/RenderBin.cpp @@ -0,0 +1,406 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgUtil::RegisterRenderBinProxy) + I_DeclaringFile("osgUtil/RenderBin"); + I_Constructor2(IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, + ____RegisterRenderBinProxy__C5_std_string_R1__RenderBin_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) + I_DeclaringFile("osgUtil/RenderBin"); + I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); + I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE_THEN_FRONT_TO_BACK); + I_EnumLabel(osgUtil::RenderBin::SORT_FRONT_TO_BACK); + I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); + I_EnumLabel(osgUtil::RenderBin::TRAVERSAL_ORDER); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList) + +TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList) + +TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) + I_DeclaringFile("osgUtil/RenderBin"); + I_BaseType(osg::Object); + I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, + __RenderBin_P1__createRenderBin__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, + __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, + "", + ""); + I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, + __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, + __void__removeRenderBinPrototype__RenderBin_P1_S, + "", + ""); + I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, + __void__setDefaultRenderBinSortMode__SortMode_S, + "", + ""); + I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, + __SortMode__getDefaultRenderBinSortMode_S, + "", + ""); + I_Constructor0(____RenderBin, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, + ____RenderBin__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, + "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 &, 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_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_Method0(void, sortTraversalOrder, + Properties::VIRTUAL, + __void__sortTraversalOrder, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(int, BinNum, + __int__getBinNum, + 0); + I_SimpleProperty(osgUtil::RenderBin::DrawCallback *, DrawCallback, + __DrawCallback_P1__getDrawCallback, + __void__setDrawCallback__DrawCallback_P1); + I_SimpleProperty(osgUtil::RenderBin *, Parent, + __RenderBin_P1__getParent, + 0); + I_SimpleProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList, + __RenderBinList_R1__getRenderBinList, + 0); + I_SimpleProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList, + __RenderLeafList_R1__getRenderLeafList, + 0); + I_SimpleProperty(osgUtil::RenderBin::SortCallback *, SortCallback, + __SortCallback_P1__getSortCallback, + __void__setSortCallback__SortCallback_P1); + I_SimpleProperty(osgUtil::RenderBin::SortMode, SortMode, + __SortMode__getSortMode, + __void__setSortMode__SortMode); + I_SimpleProperty(osgUtil::RenderStage *, Stage, + __RenderStage_P1__getStage, + 0); + I_SimpleProperty(osgUtil::RenderBin::StateGraphList &, StateGraphList, + __StateGraphList_R1__getStateGraphList, + 0); + I_SimpleProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet, + __void__setStateSet__osg_StateSet_P1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) + I_DeclaringFile("osgUtil/RenderBin"); + I_BaseType(osg::Referenced); + I_Constructor0(____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, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) + I_DeclaringFile("osgUtil/RenderBin"); + I_BaseType(osg::Referenced); + I_Constructor0(____SortCallback, + "", + ""); + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, + Properties::PURE_VIRTUAL, + __void__sortImplementation__RenderBin_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderBin >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::RenderBin *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >) + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::RenderLeaf * >) + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::StateGraph * >) + diff --git a/src/osgWrappers/introspection/osgUtil/RenderLeaf.cpp b/src/osgWrappers/introspection/osgUtil/RenderLeaf.cpp new file mode 100644 index 000000000..ef0ea1833 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/RenderLeaf.cpp @@ -0,0 +1,66 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderLeaf) + I_DeclaringFile("osgUtil/RenderLeaf"); + I_BaseType(osg::Referenced); + I_ConstructorWithDefaults5(IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, IN, unsigned int, traversalNumber, 0, + ____RenderLeaf__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float__unsigned_int, + "", + ""); + I_MethodWithDefaults5(void, set, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f, IN, unsigned int, traversalNumber, 0, + Properties::NON_VIRTUAL, + __void__set__osg_Drawable_P1__osg_RefMatrix_P1__osg_RefMatrix_P1__float__unsigned_int, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(const osg::Drawable *, Drawable, + __C5_osg_Drawable_P1__getDrawable, + 0); + I_PublicMemberProperty(osgUtil::StateGraph *, _parent); + I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, _drawable); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _projection); + I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _modelview); + I_PublicMemberProperty(float, _depth); + I_PublicMemberProperty(bool, _dynamic); + I_PublicMemberProperty(unsigned int, _traversalNumber); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/RenderStage.cpp b/src/osgWrappers/introspection/osgUtil/RenderStage.cpp new file mode 100644 index 000000000..eacddfa6a --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/RenderStage.cpp @@ -0,0 +1,523 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) + I_DeclaringFile("osgUtil/RenderStage"); + I_BaseType(osgUtil::RenderBin); + I_Constructor0(____RenderStage, + "", + ""); + I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + Properties::NON_EXPLICIT, + ____RenderStage__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderStage__C5_RenderStage_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_MethodWithDefaults2(void, setDrawBuffer, IN, GLenum, buffer, , IN, bool, applyMask, true, + Properties::NON_VIRTUAL, + __void__setDrawBuffer__GLenum__bool, + "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_Method0(bool, getDrawBufferApplyMask, + Properties::NON_VIRTUAL, + __bool__getDrawBufferApplyMask, + "Get the apply mask defining whether glDrawBuffer is called at each frame draw. ", + ""); + I_Method1(void, setDrawBufferApplyMask, IN, bool, applyMask, + Properties::NON_VIRTUAL, + __void__setDrawBufferApplyMask__bool, + "Set the apply mask defining whether glDrawBuffer is called at each frame draw. ", + ""); + I_MethodWithDefaults2(void, setReadBuffer, IN, GLenum, buffer, , IN, bool, applyMask, true, + Properties::NON_VIRTUAL, + __void__setReadBuffer__GLenum__bool, + "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_Method0(bool, getReadBufferApplyMask, + Properties::NON_VIRTUAL, + __bool__getReadBufferApplyMask, + "Get the apply mask defining whether glReadBuffer is called at each frame draw. ", + ""); + I_Method1(void, setReadBufferApplyMask, IN, bool, applyMask, + Properties::NON_VIRTUAL, + __void__setReadBufferApplyMask__bool, + "Set the apply mask defining whether glReadBuffer is called at each frame draw. ", + ""); + 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, + "Set a framebuffer object to render into. ", + "It is permissible for the framebuffer object to be multisampled, in which case you should also set a resolve framebuffer object - see setMultisampleResolveFramebufferObject(). "); + 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, setMultisampleResolveFramebufferObject, IN, osg::FrameBufferObject *, fbo, + Properties::NON_VIRTUAL, + __void__setMultisampleResolveFramebufferObject__osg_FrameBufferObject_P1, + "Sets the destination framebuffer object for glBlitFramebufferEXT to resolve a multisampled framebuffer object after the RenderStage is drawn. ", + "The resolve framebuffer object must not be multisampled. The resolve framebuffer object is only necessary if the primary framebuffer object is multisampled, if not then leave it set to null. "); + I_Method0(osg::FrameBufferObject *, getMultisampleResolveFramebufferObject, + Properties::NON_VIRTUAL, + __osg_FrameBufferObject_P1__getMultisampleResolveFramebufferObject, + "", + ""); + I_Method0(const osg::FrameBufferObject *, getMultisampleResolveFramebufferObject, + Properties::NON_VIRTUAL, + __C5_osg_FrameBufferObject_P1__getMultisampleResolveFramebufferObject, + "", + ""); + I_Method1(void, setDisableFboAfterRender, IN, bool, disable, + Properties::NON_VIRTUAL, + __void__setDisableFboAfterRender__bool, + "Set whether the framebuffer object should be unbound after rendering. ", + "By default this is set to true. Set it to false if the unbinding is not required. "); + I_Method0(bool, getDisableFboAfterRender, + Properties::NON_VIRTUAL, + __bool__getDisableFboAfterRender, + "", + ""); + 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, + "", + ""); + I_Method0(void, collateReferencesToDependentCameras, + Properties::NON_VIRTUAL, + __void__collateReferencesToDependentCameras, + "search through any pre and post RenderStage that reference a Camera, and take a reference to each of these cameras to prevent them being deleted while they are still be used by the drawing thread. ", + ""); + I_Method0(void, clearReferencesToDependentCameras, + Properties::NON_VIRTUAL, + __void__clearReferencesToDependentCameras, + "clear the references to any dependent cameras. ", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_P1); + I_SimpleProperty(bool, CameraRequiresSetUp, + __bool__getCameraRequiresSetUp, + __void__setCameraRequiresSetUp__bool); + I_SimpleProperty(const osg::Vec4 &, ClearAccum, + __C5_osg_Vec4_R1__getClearAccum, + __void__setClearAccum__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(double, ClearDepth, + __double__getClearDepth, + __void__setClearDepth__double); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(int, ClearStencil, + __int__getClearStencil, + __void__setClearStencil__int); + I_SimpleProperty(osg::ColorMask *, ColorMask, + __osg_ColorMask_P1__getColorMask, + __void__setColorMask__osg_ColorMask_P1); + I_SimpleProperty(bool, DisableFboAfterRender, + __bool__getDisableFboAfterRender, + __void__setDisableFboAfterRender__bool); + I_SimpleProperty(GLenum, DrawBuffer, + __GLenum__getDrawBuffer, + 0); + I_SimpleProperty(bool, DrawBufferApplyMask, + __bool__getDrawBufferApplyMask, + __void__setDrawBufferApplyMask__bool); + I_SimpleProperty(osg::FrameBufferObject *, FrameBufferObject, + __osg_FrameBufferObject_P1__getFrameBufferObject, + __void__setFrameBufferObject__osg_FrameBufferObject_P1); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __osg_GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__osg_GraphicsContext_P1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(GLenum, ImageReadPixelDataType, + __GLenum__getImageReadPixelDataType, + __void__setImageReadPixelDataType__GLenum); + I_SimpleProperty(GLenum, ImageReadPixelFormat, + __GLenum__getImageReadPixelFormat, + __void__setImageReadPixelFormat__GLenum); + I_SimpleProperty(osgUtil::PositionalStateContainer *, InheritedPositionalStateContainer, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(const osg::Matrix &, InheritedPositionalStateContainerMatrix, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1); + I_SimpleProperty(osg::FrameBufferObject *, MultisampleResolveFramebufferObject, + __osg_FrameBufferObject_P1__getMultisampleResolveFramebufferObject, + __void__setMultisampleResolveFramebufferObject__osg_FrameBufferObject_P1); + I_SimpleProperty(osgUtil::PositionalStateContainer *, PositionalStateContainer, + __PositionalStateContainer_P1__getPositionalStateContainer, + __void__setPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(GLenum, ReadBuffer, + __GLenum__getReadBuffer, + 0); + I_SimpleProperty(bool, ReadBufferApplyMask, + __bool__getReadBufferApplyMask, + __void__setReadBufferApplyMask__bool); + I_SimpleProperty(osg::Texture *, Texture, + __osg_Texture_P1__getTexture, + 0); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::RenderStage::Attachment) + I_DeclaringFile("osgUtil/RenderStage"); + I_Constructor0(____Attachment, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(GLenum, _imageReadPixelFormat); + I_PublicMemberProperty(GLenum, _imageReadPixelDataType); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/ReversePrimitiveFunctor.cpp b/src/osgWrappers/introspection/osgUtil/ReversePrimitiveFunctor.cpp new file mode 100644 index 000000000..19ab0743e --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/ReversePrimitiveFunctor.cpp @@ -0,0 +1,111 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::ReversePrimitiveFunctor) + I_DeclaringFile("osgUtil/ReversePrimitiveFunctor"); + I_BaseType(osg::PrimitiveIndexFunctor); + I_Constructor0(____ReversePrimitiveFunctor, + "", + ""); + I_Method0(osg::PrimitiveSet *, getReversedPrimitiveSet, + Properties::NON_VIRTUAL, + __osg_PrimitiveSet_P1__getReversedPrimitiveSet, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec4_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec2d *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec2d_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec3d *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec3d_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned, int, IN, const osg::Vec4d *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned__C5_osg_Vec4d_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, first, IN, GLsizei, count, + Properties::VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, indices, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, indices, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, indices, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::VIRTUAL, + __void__begin__GLenum, + "Mimics the OpenGL glBegin() function. ", + ""); + I_Method1(void, vertex, IN, unsigned, int, + Properties::VIRTUAL, + __void__vertex__unsigned, + "", + ""); + I_Method0(void, end, + Properties::VIRTUAL, + __void__end, + "", + ""); + I_SimpleProperty(osg::PrimitiveSet *, ReversedPrimitiveSet, + __osg_PrimitiveSet_P1__getReversedPrimitiveSet, + 0); + I_PublicMemberProperty(osg::ref_ptr< osg::PrimitiveSet >, _reversedPrimitiveSet); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/SceneGraphBuilder.cpp b/src/osgWrappers/introspection/osgUtil/SceneGraphBuilder.cpp new file mode 100644 index 000000000..ad28dfb71 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/SceneGraphBuilder.cpp @@ -0,0 +1,334 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgUtil::SceneGraphBuilder) + I_DeclaringFile("osgUtil/SceneGraphBuilder"); + I_Constructor0(____SceneGraphBuilder, + "", + ""); + I_Method0(void, PushMatrix, + Properties::NON_VIRTUAL, + __void__PushMatrix, + "", + ""); + I_Method0(void, PopMatrix, + Properties::NON_VIRTUAL, + __void__PopMatrix, + "", + ""); + I_Method0(void, LoadIdentity, + Properties::NON_VIRTUAL, + __void__LoadIdentity, + "", + ""); + I_Method1(void, LoadMatrixd, IN, const GLdouble *, m, + Properties::NON_VIRTUAL, + __void__LoadMatrixd__C5_GLdouble_P1, + "", + ""); + I_Method1(void, MultMatrixd, IN, const GLdouble *, m, + Properties::NON_VIRTUAL, + __void__MultMatrixd__C5_GLdouble_P1, + "", + ""); + I_Method3(void, Translated, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Translated__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method3(void, Scaled, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Scaled__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method4(void, Rotated, IN, GLdouble, angle, IN, GLdouble, x, IN, GLdouble, y, IN, GLdouble, z, + Properties::NON_VIRTUAL, + __void__Rotated__GLdouble__GLdouble__GLdouble__GLdouble, + "", + ""); + I_Method2(void, BlendFunc, IN, GLenum, srcFactor, IN, GLenum, dstFactor, + Properties::NON_VIRTUAL, + __void__BlendFunc__GLenum__GLenum, + "", + ""); + I_Method1(void, CullFace, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__CullFace__GLenum, + "", + ""); + I_Method1(void, DepthFunc, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__DepthFunc__GLenum, + "", + ""); + I_Method1(void, FrontFace, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__FrontFace__GLenum, + "", + ""); + I_Method2(void, LineStipple, IN, GLint, factor, IN, GLushort, pattern, + Properties::NON_VIRTUAL, + __void__LineStipple__GLint__GLushort, + "", + ""); + I_Method1(void, LineWidth, IN, GLfloat, lineWidth, + Properties::NON_VIRTUAL, + __void__LineWidth__GLfloat, + "", + ""); + I_Method1(void, PointSize, IN, GLfloat, pointSize, + Properties::NON_VIRTUAL, + __void__PointSize__GLfloat, + "", + ""); + I_Method2(void, PolygonMode, IN, GLenum, face, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__PolygonMode__GLenum__GLenum, + "", + ""); + I_Method2(void, PolygonOffset, IN, GLfloat, factor, IN, GLfloat, units, + Properties::NON_VIRTUAL, + __void__PolygonOffset__GLfloat__GLfloat, + "", + ""); + I_Method1(void, PolygonStipple, IN, const GLubyte *, mask, + Properties::NON_VIRTUAL, + __void__PolygonStipple__C5_GLubyte_P1, + "", + ""); + I_Method1(void, ShadeModel, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__ShadeModel__GLenum, + "", + ""); + I_Method1(void, Enable, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__Enable__GLenum, + "", + ""); + I_Method1(void, Disable, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__Disable__GLenum, + "", + ""); + I_Method4(void, Color4f, IN, GLfloat, red, IN, GLfloat, green, IN, GLfloat, blue, IN, GLfloat, alpha, + Properties::NON_VIRTUAL, + __void__Color4f__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Color4fv, IN, GLfloat *, c, + Properties::NON_VIRTUAL, + __void__Color4fv__GLfloat_P1, + "", + ""); + I_Method3(void, Vertex3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Vertex3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Vertex3fv, IN, GLfloat *, v, + Properties::NON_VIRTUAL, + __void__Vertex3fv__GLfloat_P1, + "", + ""); + I_Method3(void, Normal3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__Normal3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, Normal3fv, IN, GLfloat *, n, + Properties::NON_VIRTUAL, + __void__Normal3fv__GLfloat_P1, + "", + ""); + I_Method1(void, TexCoord1f, IN, GLfloat, x, + Properties::NON_VIRTUAL, + __void__TexCoord1f__GLfloat, + "", + ""); + I_Method1(void, TexCoord1fv, IN, GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord1fv__GLfloat_P1, + "", + ""); + I_Method2(void, TexCoord2f, IN, GLfloat, x, IN, GLfloat, y, + Properties::NON_VIRTUAL, + __void__TexCoord2f__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord2fv, IN, GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord2fv__GLfloat_P1, + "", + ""); + I_Method3(void, TexCoord3f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, + Properties::NON_VIRTUAL, + __void__TexCoord3f__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord3fv, IN, GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord3fv__GLfloat_P1, + "", + ""); + I_Method4(void, TexCoord4f, IN, GLfloat, x, IN, GLfloat, y, IN, GLfloat, z, IN, GLfloat, w, + Properties::NON_VIRTUAL, + __void__TexCoord4f__GLfloat__GLfloat__GLfloat__GLfloat, + "", + ""); + I_Method1(void, TexCoord4fv, IN, GLfloat *, tc, + Properties::NON_VIRTUAL, + __void__TexCoord4fv__GLfloat_P1, + "", + ""); + I_Method1(void, Begin, IN, GLenum, mode, + Properties::NON_VIRTUAL, + __void__Begin__GLenum, + "", + ""); + I_Method0(void, End, + Properties::NON_VIRTUAL, + __void__End, + "", + ""); + I_Method1(void, QuadricDrawStyle, IN, GLenum, aDrawStyle, + Properties::NON_VIRTUAL, + __void__QuadricDrawStyle__GLenum, + "", + ""); + I_Method1(void, QuadricNormals, IN, GLenum, aNormals, + Properties::NON_VIRTUAL, + __void__QuadricNormals__GLenum, + "", + ""); + I_Method1(void, QuadricOrientation, IN, GLenum, aOrientation, + Properties::NON_VIRTUAL, + __void__QuadricOrientation__GLenum, + "", + ""); + I_Method1(void, QuadricTexture, IN, GLboolean, aTexture, + Properties::NON_VIRTUAL, + __void__QuadricTexture__GLboolean, + "", + ""); + I_Method5(void, Cylinder, IN, GLfloat, base, IN, GLfloat, top, IN, GLfloat, height, IN, GLint, slices, IN, GLint, stacks, + Properties::NON_VIRTUAL, + __void__Cylinder__GLfloat__GLfloat__GLfloat__GLint__GLint, + "", + ""); + I_Method4(void, Disk, IN, GLfloat, inner, IN, GLfloat, outer, IN, GLint, slices, IN, GLint, loops, + Properties::NON_VIRTUAL, + __void__Disk__GLfloat__GLfloat__GLint__GLint, + "", + ""); + I_Method6(void, PartialDisk, IN, GLfloat, inner, IN, GLfloat, outer, IN, GLint, slices, IN, GLint, loops, IN, GLfloat, start, IN, GLfloat, sweep, + Properties::NON_VIRTUAL, + __void__PartialDisk__GLfloat__GLfloat__GLint__GLint__GLfloat__GLfloat, + "", + ""); + I_Method3(void, Sphere, IN, GLfloat, radius, IN, GLint, slices, IN, GLint, stacks, + Properties::NON_VIRTUAL, + __void__Sphere__GLfloat__GLint__GLint, + "", + ""); + I_Method0(osg::Node *, getScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__getScene, + "", + ""); + I_Method0(osg::Node *, takeScene, + Properties::NON_VIRTUAL, + __osg_Node_P1__takeScene, + "", + ""); + I_ProtectedMethod0(void, matrixChanged, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__matrixChanged, + "", + ""); + I_ProtectedMethod1(void, addAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addAttribute__osg_StateAttribute_P1, + "", + ""); + I_ProtectedMethod2(void, addMode, IN, GLenum, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addMode__GLenum__bool, + "", + ""); + I_ProtectedMethod2(void, addTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addTextureAttribute__unsigned_int__osg_StateAttribute_P1, + "", + ""); + I_ProtectedMethod3(void, addTextureMode, IN, unsigned int, unit, IN, GLenum, mode, IN, bool, enabled, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addTextureMode__unsigned_int__GLenum__bool, + "", + ""); + I_ProtectedMethod1(void, addShape, IN, osg::Shape *, shape, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addShape__osg_Shape_P1, + "", + ""); + I_ProtectedMethod1(void, addDrawable, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addDrawable__osg_Drawable_P1, + "", + ""); + I_ProtectedMethod0(void, newGeometry, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__newGeometry, + "", + ""); + I_ProtectedMethod0(void, allocateGeometry, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__allocateGeometry, + "", + ""); + I_ProtectedMethod0(void, completeGeometry, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__completeGeometry, + "", + ""); + I_ProtectedMethod0(void, allocateStateSet, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__allocateStateSet, + "", + ""); + I_SimpleProperty(osg::Node *, Scene, + __osg_Node_P1__getScene, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/SceneView.cpp b/src/osgWrappers/introspection/osgUtil/SceneView.cpp new file mode 100644 index 000000000..8b343269d --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/SceneView.cpp @@ -0,0 +1,945 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::Options) + I_DeclaringFile("osgUtil/SceneView"); + I_EnumLabel(osgUtil::SceneView::NO_SCENEVIEW_LIGHT); + I_EnumLabel(osgUtil::SceneView::HEADLIGHT); + I_EnumLabel(osgUtil::SceneView::SKY_LIGHT); + I_EnumLabel(osgUtil::SceneView::COMPILE_GLOBJECTS_AT_INIT); + I_EnumLabel(osgUtil::SceneView::STANDARD_SETTINGS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::ActiveUniforms) + I_DeclaringFile("osgUtil/SceneView"); + I_EnumLabel(osgUtil::SceneView::FRAME_NUMBER_UNIFORM); + I_EnumLabel(osgUtil::SceneView::FRAME_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DELTA_FRAME_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::SIMULATION_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DELTA_SIMULATION_TIME_UNIFORM); + I_EnumLabel(osgUtil::SceneView::VIEW_MATRIX_UNIFORM); + I_EnumLabel(osgUtil::SceneView::VIEW_MATRIX_INVERSE_UNIFORM); + I_EnumLabel(osgUtil::SceneView::DEFAULT_UNIFORMS); + I_EnumLabel(osgUtil::SceneView::ALL_UNIFORMS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) + I_DeclaringFile("osgUtil/SceneView"); + I_EnumLabel(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE); + I_EnumLabel(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgUtil::SceneView::Options, osgUtil::SceneView::LightingMode) + +BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) + I_DeclaringFile("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. ", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::SceneView &, sceneview, , IN, const osg::CopyOp &, copyop, osg::CopyOp(), + ____SceneView__C5_SceneView_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method1(void, setDefaults, IN, unsigned int, options, + Properties::VIRTUAL, + __void__setDefaults__unsigned_int, + "Set scene view to use default global state, light, camera and render visitor. ", + ""); + I_MethodWithDefaults2(void, setCamera, IN, osg::Camera *, camera, , IN, bool, assumeOwnershipOfCamera, true, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1__bool, + "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_Method0(void, collateReferencesToDependentCameras, + Properties::NON_VIRTUAL, + __void__collateReferencesToDependentCameras, + "search through any pre and post RenderStage that reference a Camera, and take a reference to each of these cameras to prevent them being deleted while they are still be used by the drawing thread. ", + ""); + I_Method0(void, clearReferencesToDependentCameras, + Properties::NON_VIRTUAL, + __void__clearReferencesToDependentCameras, + "clear the refence to any any dependent cameras. ", + ""); + 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_Method1(void, inheritCullSettings, IN, const osg::CullSettings &, settings, + Properties::VIRTUAL, + __void__inheritCullSettings__C5_osg_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::VIRTUAL, + __void__inheritCullSettings__C5_osg_CullSettings_R1__unsigned_int, + "Inherit the local cull settings variable from specified CullSettings object, according to the inheritance mask. ", + ""); + 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. ", + ""); + I_ProtectedMethod6(bool, cullStage, IN, const osg::Matrixd &, projection, IN, const osg::Matrixd &, modelview, IN, osgUtil::CullVisitor *, cullVisitor, IN, osgUtil::StateGraph *, rendergraph, IN, osgUtil::RenderStage *, renderStage, IN, osg::Viewport *, viewport, + Properties::VIRTUAL, + Properties::NON_CONST, + __bool__cullStage__C5_osg_Matrixd_R1__C5_osg_Matrixd_R1__osgUtil_CullVisitor_P1__osgUtil_StateGraph_P1__osgUtil_RenderStage_P1__osg_Viewport_P1, + "Do cull traversal of attached scene graph using Cull NodeVisitor. ", + "Return true if computeNearFar has been done during the cull traversal. "); + I_ProtectedMethod1(void, computeLeftEyeViewport, IN, const osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeLeftEyeViewport__C5_osg_Viewport_P1, + "", + ""); + I_ProtectedMethod1(void, computeRightEyeViewport, IN, const osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__computeRightEyeViewport__C5_osg_Viewport_P1, + "", + ""); + I_ProtectedMethod0(const osg::Matrix, computeMVPW, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Matrix__computeMVPW, + "", + ""); + I_ProtectedMethod5(void, clearArea, IN, int, x, IN, int, y, IN, int, width, IN, int, height, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__clearArea__int__int__int__int__C5_osg_Vec4_R1, + "", + ""); + I_SimpleProperty(int, ActiveUniforms, + __int__getActiveUniforms, + __void__setActiveUniforms__int); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(osg::CollectOccludersVisitor *, CollectOccludersVisitor, + __osg_CollectOccludersVisitor_P1__getCollectOccludersVisitor, + __void__setCollectOccludersVisitor__osg_CollectOccludersVisitor_P1); + I_SimpleProperty(osgUtil::SceneView::ComputeStereoMatricesCallback *, ComputeStereoMatricesCallback, + __ComputeStereoMatricesCallback_P1__getComputeStereoMatricesCallback, + __void__setComputeStereoMatricesCallback__ComputeStereoMatricesCallback_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitor, + __osgUtil_CullVisitor_P1__getCullVisitor, + __void__setCullVisitor__osgUtil_CullVisitor_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitorLeft, + __osgUtil_CullVisitor_P1__getCullVisitorLeft, + __void__setCullVisitorLeft__osgUtil_CullVisitor_P1); + I_SimpleProperty(osgUtil::CullVisitor *, CullVisitorRight, + __osgUtil_CullVisitor_P1__getCullVisitorRight, + __void__setCullVisitorRight__osgUtil_CullVisitor_P1); + I_SimpleProperty(unsigned int, Defaults, + 0, + __void__setDefaults__unsigned_int); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(GLenum, DrawBufferValue, + __GLenum__getDrawBufferValue, + __void__setDrawBufferValue__GLenum); + I_SimpleProperty(unsigned int, DynamicObjectCount, + __unsigned_int__getDynamicObjectCount, + 0); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + 0, + __void__setFrameStamp__osg_FrameStamp_P1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::StateSet *, GlobalStateSet, + __osg_StateSet_P1__getGlobalStateSet, + __void__setGlobalStateSet__osg_StateSet_P1); + I_SimpleProperty(osg::NodeVisitor *, InitVisitor, + __osg_NodeVisitor_P1__getInitVisitor, + __void__setInitVisitor__osg_NodeVisitor_P1); + I_SimpleProperty(osg::Light *, Light, + __osg_Light_P1__getLight, + __void__setLight__osg_Light_P1); + I_SimpleProperty(osgUtil::SceneView::LightingMode, LightingMode, + __LightingMode__getLightingMode, + __void__setLightingMode__LightingMode); + I_SimpleProperty(osg::StateSet *, LocalStateSet, + __osg_StateSet_P1__getLocalStateSet, + __void__setLocalStateSet__osg_StateSet_P1); + I_SimpleProperty(bool, PrioritizeTextures, + __bool__getPrioritizeTextures, + __void__setPrioritizeTextures__bool); + I_SimpleProperty(const osg::Matrixd &, ProjectionMatrix, + __C5_osg_Matrixd_R1__getProjectionMatrix, + __void__setProjectionMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(bool, RedrawInterlacedStereoStencilMask, + __bool__getRedrawInterlacedStereoStencilMask, + __void__setRedrawInterlacedStereoStencilMask__bool); + I_SimpleProperty(osg::RenderInfo &, RenderInfo, + __osg_RenderInfo_R1__getRenderInfo, + __void__setRenderInfo__osg_RenderInfo_R1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStage, + __osgUtil_RenderStage_P1__getRenderStage, + __void__setRenderStage__osgUtil_RenderStage_P1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStageLeft, + __osgUtil_RenderStage_P1__getRenderStageLeft, + __void__setRenderStageLeft__osgUtil_RenderStage_P1); + I_SimpleProperty(osgUtil::RenderStage *, RenderStageRight, + __osgUtil_RenderStage_P1__getRenderStageRight, + __void__setRenderStageRight__osgUtil_RenderStage_P1); + I_ArrayProperty(const osg::Node *, SceneData, + __C5_osg_Node_P1__getSceneData__unsigned_int, + 0, + __unsigned_int__getNumSceneData, + 0, + 0, + 0); + I_SimpleProperty(osg::State *, State, + __osg_State_P1__getState, + __void__setState__osg_State_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraph, + __osgUtil_StateGraph_P1__getStateGraph, + __void__setStateGraph__osgUtil_StateGraph_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraphLeft, + __osgUtil_StateGraph_P1__getStateGraphLeft, + __void__setStateGraphLeft__osgUtil_StateGraph_P1); + I_SimpleProperty(osgUtil::StateGraph *, StateGraphRight, + __osgUtil_StateGraph_P1__getStateGraphRight, + __void__setStateGraphRight__osgUtil_StateGraph_P1); + I_SimpleProperty(osg::NodeVisitor *, UpdateVisitor, + __osg_NodeVisitor_P1__getUpdateVisitor, + __void__setUpdateVisitor__osg_NodeVisitor_P1); + I_SimpleProperty(osg::View *, View, + __osg_View_P1__getView, + __void__setView__osg_View_P1); + I_SimpleProperty(const osg::Matrixd &, ViewMatrix, + __C5_osg_Matrixd_R1__getViewMatrix, + __void__setViewMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView::ComputeStereoMatricesCallback) + I_DeclaringFile("osgUtil/SceneView"); + I_BaseType(osg::Referenced); + I_Constructor0(____ComputeStereoMatricesCallback, + "", + ""); + 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, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/ShaderGen.cpp b/src/osgWrappers/introspection/osgUtil/ShaderGen.cpp new file mode 100644 index 000000000..c9b18bdac --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/ShaderGen.cpp @@ -0,0 +1,131 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgUtil::ShaderGenCache::StateMask) + I_DeclaringFile("osgUtil/ShaderGen"); + I_EnumLabel(osgUtil::ShaderGenCache::BLEND); + I_EnumLabel(osgUtil::ShaderGenCache::LIGHTING); + I_EnumLabel(osgUtil::ShaderGenCache::FOG); + I_EnumLabel(osgUtil::ShaderGenCache::DIFFUSE_MAP); + I_EnumLabel(osgUtil::ShaderGenCache::NORMAL_MAP); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osg::ref_ptr< osg::StateSet > >, osgUtil::ShaderGenCache::StateSetMap) + +BEGIN_OBJECT_REFLECTOR(osgUtil::ShaderGenCache) + I_DeclaringFile("osgUtil/ShaderGen"); + I_BaseType(osg::Referenced); + I_Constructor0(____ShaderGenCache, + "", + ""); + I_Method2(void, setStateSet, IN, unsigned int, stateMask, IN, osg::StateSet *, program, + Properties::NON_VIRTUAL, + __void__setStateSet__unsigned_int__osg_StateSet_P1, + "", + ""); + I_Method1(osg::StateSet *, getStateSet, IN, unsigned int, stateMask, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getStateSet__unsigned_int, + "", + ""); + I_Method1(osg::StateSet *, getOrCreateStateSet, IN, unsigned int, stateMask, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getOrCreateStateSet__unsigned_int, + "", + ""); + I_ProtectedMethod1(osg::StateSet *, createStateSet, IN, unsigned int, stateMask, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_StateSet_P1__createStateSet__unsigned_int, + "", + ""); + I_IndexedProperty(osg::StateSet *, StateSet, + __osg_StateSet_P1__getStateSet__unsigned_int, + __void__setStateSet__unsigned_int__osg_StateSet_P1, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::ShaderGenVisitor) + I_DeclaringFile("osgUtil/ShaderGen"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____ShaderGenVisitor, + "", + ""); + I_Constructor1(IN, osgUtil::ShaderGenCache *, stateCache, + Properties::NON_EXPLICIT, + ____ShaderGenVisitor__ShaderGenCache_P1, + "", + ""); + I_Method1(void, setStateCache, IN, osgUtil::ShaderGenCache *, stateCache, + Properties::NON_VIRTUAL, + __void__setStateCache__ShaderGenCache_P1, + "", + ""); + I_Method0(osgUtil::ShaderGenCache *, getStateCache, + Properties::NON_VIRTUAL, + __ShaderGenCache_P1__getStateCache, + "", + ""); + I_Method1(void, setRootStateSet, IN, osg::StateSet *, stateSet, + Properties::NON_VIRTUAL, + __void__setRootStateSet__osg_StateSet_P1, + "Top level state set applied as the first one. ", + ""); + I_Method0(osg::StateSet *, getRootStateSet, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getRootStateSet, + "", + ""); + 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, 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_ProtectedMethod1(void, update, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__update__osg_Drawable_P1, + "", + ""); + I_SimpleProperty(osg::StateSet *, RootStateSet, + __osg_StateSet_P1__getRootStateSet, + __void__setRootStateSet__osg_StateSet_P1); + I_SimpleProperty(osgUtil::ShaderGenCache *, StateCache, + __ShaderGenCache_P1__getStateCache, + __void__setStateCache__ShaderGenCache_P1); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osg::ref_ptr< osg::StateSet > >) + diff --git a/src/osgWrappers/introspection/osgUtil/Simplifier.cpp b/src/osgWrappers/introspection/osgUtil/Simplifier.cpp new file mode 100644 index 000000000..d0ea7f382 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/Simplifier.cpp @@ -0,0 +1,166 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) + I_DeclaringFile("osgUtil/Simplifier"); + I_BaseType(osg::NodeVisitor); + I_ConstructorWithDefaults3(IN, double, sampleRatio, 1.0, IN, double, maximumError, FLT_MAX, IN, double, maximumLength, 0.0, + ____Simplifier__double__double__double, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "a list of point indices ", + "simply the geometry, whilst protecting key points from being modified. "); + I_SimpleProperty(osgUtil::Simplifier::ContinueSimplificationCallback *, ContinueSimplificationCallback, + __ContinueSimplificationCallback_P1__getContinueSimplificationCallback, + __void__setContinueSimplificationCallback__ContinueSimplificationCallback_P1); + I_SimpleProperty(bool, DoTriStrip, + __bool__getDoTriStrip, + __void__setDoTriStrip__bool); + I_SimpleProperty(float, MaximumError, + __float__getMaximumError, + __void__setMaximumError__float); + I_SimpleProperty(float, MaximumLength, + __float__getMaximumLength, + __void__setMaximumLength__float); + I_SimpleProperty(float, SampleRatio, + __float__getSampleRatio, + __void__setSampleRatio__float); + I_SimpleProperty(bool, Smoothing, + __bool__getSmoothing, + __void__setSmoothing__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) + I_DeclaringFile("osgUtil/Simplifier"); + 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. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/SmoothingVisitor.cpp b/src/osgWrappers/introspection/osgUtil/SmoothingVisitor.cpp new file mode 100644 index 000000000..83826639e --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/SmoothingVisitor.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) + I_DeclaringFile("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. ", + ""); + I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset, + __void__smooth__osg_Geometry_R1_S, + "smooth geoset by creating per vertex normals. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/StateGraph.cpp b/src/osgWrappers/introspection/osgUtil/StateGraph.cpp new file mode 100644 index 000000000..c8588384b --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/StateGraph.cpp @@ -0,0 +1,240 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgUtil::LessDepthSortFunctor) + I_DeclaringFile("osgUtil/StateGraph"); + I_Constructor0(____LessDepthSortFunctor, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::StateGraph > >, osgUtil::StateGraph::ChildList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >, osgUtil::StateGraph::LeafList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::StateGraph) + I_DeclaringFile("osgUtil/StateGraph"); + I_BaseType(osg::Referenced); + I_Constructor0(____StateGraph, + "", + ""); + I_Constructor2(IN, osgUtil::StateGraph *, parent, IN, const osg::StateSet *, stateset, + ____StateGraph__StateGraph_P1__C5_osg_StateSet_P1, + "", + ""); + 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(const osg::StateSet *, getStateSet, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getStateSet, + "", + ""); + 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. ", + ""); + I_StaticMethod3(void, moveStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr, IN, osgUtil::StateGraph *, sg_new, + __void__moveStateGraph__osg_State_R1__StateGraph_P1__StateGraph_P1_S, + "", + ""); + I_StaticMethod2(void, moveToRootStateGraph, IN, osg::State &, state, IN, osgUtil::StateGraph *, sg_curr, + __void__moveToRootStateGraph__osg_State_R1__StateGraph_P1_S, + "", + ""); + I_StaticMethod1(int, numToPop, IN, osgUtil::StateGraph *, sg_curr, + __int__numToPop__StateGraph_P1_S, + "", + ""); + I_SimpleProperty(float, AverageDistance, + __float__getAverageDistance, + 0); + I_SimpleProperty(float, MinimumDistance, + __float__getMinimumDistance, + 0); + I_SimpleProperty(const osg::StateSet *, StateSet, + __C5_osg_StateSet_P1__getStateSet, + 0); + I_SimpleProperty(osg::Referenced *, UserData, + __osg_Referenced_P1__getUserData, + __void__setUserData__osg_Referenced_P1); + I_PublicMemberProperty(osgUtil::StateGraph *, _parent); + I_PublicMemberProperty(int, _depth); + I_PublicMemberProperty(osgUtil::StateGraph::ChildList, _children); + I_PublicMemberProperty(osgUtil::StateGraph::LeafList, _leaves); + I_PublicMemberProperty(float, _averageDistance); + I_PublicMemberProperty(float, _minimumDistance); + I_PublicMemberProperty(osg::ref_ptr< osg::Referenced >, _userData); + I_PublicMemberProperty(bool, _dynamic); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderLeaf >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::RenderLeaf *, , + __T_P1__get, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::StateGraph >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::StateGraph *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::StateGraph > >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >) + diff --git a/src/osgWrappers/introspection/osgUtil/Statistics.cpp b/src/osgWrappers/introspection/osgUtil/Statistics.cpp new file mode 100644 index 000000000..f07d20583 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/Statistics.cpp @@ -0,0 +1,359 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) + I_DeclaringFile("osgUtil/Statistics"); + I_EnumLabel(osgUtil::Statistics::STAT_NONE); + I_EnumLabel(osgUtil::Statistics::STAT_FRAMERATE); + I_EnumLabel(osgUtil::Statistics::STAT_GRAPHS); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMS); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERVIEW); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERBIN); + I_EnumLabel(osgUtil::Statistics::STAT_DC); + I_EnumLabel(osgUtil::Statistics::STAT_RESTART); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimitiveValueMap) + +TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimitiveCountMap) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) + I_DeclaringFile("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 *, vertices, + 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 *, vertices, + 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 *, vertices, + 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_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3d *, vertices, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec3d_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::Vec2d *, vertices, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec2d_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::Vec4d *, vertices, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec4d_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::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::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::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::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, y, IN, float, z, + Properties::VIRTUAL, + __void__vertex__float__float__float, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, vert, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec3_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, vert, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec2_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, vert, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec4_R1, + "Mimics the OpenGL glVertex() \"family of functions\". ", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, y, + Properties::VIRTUAL, + __void__vertex__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::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 &, getPrimitiveCountMap, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_R1__getPrimitiveCountMap, + "", + ""); + I_Method0(const osgUtil::Statistics::PrimitiveCountMap &, getPrimitiveCountMap, + Properties::NON_VIRTUAL, + __C5_PrimitiveCountMap_R1__getPrimitiveCountMap, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesBegin, + "deprecated ", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesEnd, + "deprecated ", + ""); + I_SimpleProperty(int, BinNo, + 0, + __void__setBinNo__int); + I_SimpleProperty(int, Bins, + __int__getBins, + 0); + I_SimpleProperty(int, Depth, + 0, + __void__setDepth__int); + I_SimpleProperty(osgUtil::Statistics::PrimitiveCountMap &, PrimitiveCountMap, + __PrimitiveCountMap_R1__getPrimitiveCountMap, + 0); + I_SimpleProperty(osgUtil::Statistics::StatsType, Type, + 0, + __void__setType__StatsType); + I_PublicMemberProperty(int, numDrawables); + I_PublicMemberProperty(int, nummat); + I_PublicMemberProperty(int, nbins); + I_PublicMemberProperty(int, nlights); + I_PublicMemberProperty(int, depth); + I_PublicMemberProperty(int, _binNo); + I_PublicMemberProperty(osgUtil::Statistics::StatsType, stattype); + I_PublicMemberProperty(int, nimpostor); + I_PublicMemberProperty(unsigned int, _vertexCount); + I_PublicMemberProperty(osgUtil::Statistics::PrimitiveValueMap, _primitiveCount); + I_PublicMemberProperty(GLenum, _currentPrimitiveFunctorMode); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::StatsVisitor::NodeSet) + +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) + I_DeclaringFile("osgUtil/Statistics"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____StatsVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_PublicMemberProperty(unsigned int, _numInstancedGroup); + I_PublicMemberProperty(unsigned int, _numInstancedSwitch); + I_PublicMemberProperty(unsigned int, _numInstancedLOD); + I_PublicMemberProperty(unsigned int, _numInstancedTransform); + I_PublicMemberProperty(unsigned int, _numInstancedGeode); + I_PublicMemberProperty(unsigned int, _numInstancedDrawable); + I_PublicMemberProperty(unsigned int, _numInstancedGeometry); + I_PublicMemberProperty(unsigned int, _numInstancedFastGeometry); + I_PublicMemberProperty(unsigned int, _numInstancedStateSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _groupSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _transformSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _lodSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _switchSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _geodeSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::DrawableSet, _drawableSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::DrawableSet, _geometrySet); + I_PublicMemberProperty(osgUtil::StatsVisitor::DrawableSet, _fastGeometrySet); + I_PublicMemberProperty(osgUtil::StatsVisitor::StateSetSet, _statesetSet); + I_PublicMemberProperty(osgUtil::Statistics, _uniqueStats); + I_PublicMemberProperty(osgUtil::Statistics, _instancedStats); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >) + +STD_MAP_REFLECTOR(std::map< GLenum COMMA unsigned int >) + +STD_SET_REFLECTOR(std::set< osg::Drawable * >) + +STD_SET_REFLECTOR(std::set< osg::StateSet * >) + diff --git a/src/osgWrappers/introspection/osgUtil/TangentSpaceGenerator.cpp b/src/osgWrappers/introspection/osgUtil/TangentSpaceGenerator.cpp new file mode 100644 index 000000000..daf2fd1f8 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/TangentSpaceGenerator.cpp @@ -0,0 +1,110 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) + I_DeclaringFile("osgUtil/TangentSpaceGenerator"); + I_BaseType(osg::Referenced); + I_Constructor0(____TangentSpaceGenerator, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::TangentSpaceGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TangentSpaceGenerator__C5_TangentSpaceGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + 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, + "", + ""); + I_ProtectedMethod7(void, compute, IN, osg::PrimitiveSet *, pset, IN, const osg::Array *, vx, IN, const osg::Array *, nx, IN, const osg::Array *, tx, IN, int, iA, IN, int, iB, IN, int, iC, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__compute__osg_PrimitiveSet_P1__C5_osg_Array_P1__C5_osg_Array_P1__C5_osg_Array_P1__int__int__int, + "", + ""); + I_SimpleProperty(osg::Vec4Array *, BinormalArray, + __osg_Vec4Array_P1__getBinormalArray, + __void__setBinormalArray__osg_Vec4Array_P1); + I_SimpleProperty(osg::IndexArray *, Indices, + __osg_IndexArray_P1__getIndices, + 0); + I_SimpleProperty(osg::Vec4Array *, NormalArray, + __osg_Vec4Array_P1__getNormalArray, + __void__setNormalArray__osg_Vec4Array_P1); + I_SimpleProperty(osg::Vec4Array *, TangentArray, + __osg_Vec4Array_P1__getTangentArray, + __void__setTangentArray__osg_Vec4Array_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/Tessellator.cpp b/src/osgWrappers/introspection/osgUtil/Tessellator.cpp new file mode 100644 index 000000000..b2c63d3fb --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/Tessellator.cpp @@ -0,0 +1,263 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::WindingType) + I_DeclaringFile("osgUtil/Tessellator"); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_ODD); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_NONZERO); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_POSITIVE); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_NEGATIVE); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_ABS_GEQ_TWO); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::TessellationType) + I_DeclaringFile("osgUtil/Tessellator"); + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_GEOMETRY); + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_DRAWABLE); + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_POLYGONS); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::VertexPointList) + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >, osgUtil::Tessellator::PrimList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) + I_DeclaringFile("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(bool, getBoundaryOnly, + Properties::NON_VIRTUAL, + __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(osgUtil::Tessellator::WindingType, getWindingType, + Properties::NON_VIRTUAL, + __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(osgUtil::Tessellator::TessellationType, getTessellationType, + Properties::NON_VIRTUAL, + __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, + "", + ""); + I_ProtectedMethod2(void, reduceArray, IN, osg::Array *, cold, IN, const unsigned int, nnu, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__reduceArray__osg_Array_P1__C5_unsigned_int, + "remove unused parts of the array, eg for wehn retessellating tessellation can introduce extra vertices for concave or crossing boundaries, these will leak memory if not removed when retessellating. ", + ""); + I_ProtectedMethod2(void, collectTessellation, IN, osg::Geometry &, cxgeom, IN, unsigned int, originalIndex, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__collectTessellation__osg_Geometry_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(void, addContour, IN, GLenum, mode, IN, unsigned int, first, IN, unsigned int, last, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addContour__GLenum__unsigned_int__unsigned_int__osg_Vec3Array_P1, + "", + ""); + I_ProtectedMethod2(void, addContour, IN, osg::PrimitiveSet *, primitive, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addContour__osg_PrimitiveSet_P1__osg_Vec3Array_P1, + "", + ""); + + I_ProtectedMethod1(void, begin, IN, GLenum, mode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__begin__GLenum, + "", + ""); + I_ProtectedMethod1(void, vertex, IN, osg::Vec3 *, vertex, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__vertex__osg_Vec3_P1, + "", + ""); + I_ProtectedMethod3(void, combine, IN, osg::Vec3 *, vertex, IN, void *, vertex_data, IN, GLfloat, weight, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__combine__osg_Vec3_P1__void_P1__GLfloat, + "", + ""); + I_ProtectedMethod0(void, end, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__end, + "", + ""); + I_ProtectedMethod1(void, error, IN, GLenum, errorCode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__error__GLenum, + "", + ""); + I_SimpleProperty(bool, BoundaryOnly, + __bool__getBoundaryOnly, + 0); + I_SimpleProperty(osg::Geometry::PrimitiveSetList, Contours, + __osg_Geometry_PrimitiveSetList__getContours, + 0); + I_SimpleProperty(osgUtil::Tessellator::PrimList &, PrimList, + __PrimList_R1__getPrimList, + 0); + I_SimpleProperty(const osg::Vec3, TessellationNormal, + 0, + __void__setTessellationNormal__C5_osg_Vec3); + I_SimpleProperty(osgUtil::Tessellator::TessellationType, TessellationType, + __TessellationType__getTessellationType, + 0); + I_SimpleProperty(osgUtil::Tessellator::WindingType, WindingType, + __WindingType__getWindingType, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::Prim::VecList) + +BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator::Prim) + I_DeclaringFile("osgUtil/Tessellator"); + I_BaseType(osg::Referenced); + I_Constructor1(IN, GLenum, mode, + Properties::NON_EXPLICIT, + ____Prim__GLenum, + "", + ""); + I_PublicMemberProperty(GLenum, _mode); + I_PublicMemberProperty(osgUtil::Tessellator::Prim::VecList, _vertices); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Tessellator::Prim >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgUtil::Tessellator::Prim *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >) + diff --git a/src/osgWrappers/introspection/osgUtil/TransformAttributeFunctor.cpp b/src/osgWrappers/introspection/osgUtil/TransformAttributeFunctor.cpp new file mode 100644 index 000000000..fb40df376 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/TransformAttributeFunctor.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) + I_DeclaringFile("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. ", + ""); + I_PublicMemberProperty(osg::Matrix, _m); + I_PublicMemberProperty(osg::Matrix, _im); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/TransformCallback.cpp b/src/osgWrappers/introspection/osgUtil/TransformCallback.cpp new file mode 100644 index 000000000..f1a115f6b --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/TransformCallback.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::TransformCallback) + I_DeclaringFile("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, + "", + ""); + I_SimpleProperty(bool, Pause, + 0, + __void__setPause__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/TriStripVisitor.cpp b/src/osgWrappers/introspection/osgUtil/TriStripVisitor.cpp new file mode 100644 index 000000000..a0e8a0cf9 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/TriStripVisitor.cpp @@ -0,0 +1,89 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::TriStripVisitor) + I_DeclaringFile("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_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_Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateFourPointPrimitivesQuads__bool, + "", + ""); + I_Method0(bool, getGenerateFourPointPrimitivesQuads, + Properties::NON_VIRTUAL, + __bool__getGenerateFourPointPrimitivesQuads, + "", + ""); + I_SimpleProperty(unsigned int, CacheSize, + __unsigned_int__getCacheSize, + __void__setCacheSize__unsigned_int); + I_SimpleProperty(bool, GenerateFourPointPrimitivesQuads, + __bool__getGenerateFourPointPrimitivesQuads, + __void__setGenerateFourPointPrimitivesQuads__bool); + I_SimpleProperty(unsigned int, MinStripSize, + __unsigned_int__getMinStripSize, + __void__setMinStripSize__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgUtil/UpdateVisitor.cpp b/src/osgWrappers/introspection/osgUtil/UpdateVisitor.cpp new file mode 100644 index 000000000..0d38fd220 --- /dev/null +++ b/src/osgWrappers/introspection/osgUtil/UpdateVisitor.cpp @@ -0,0 +1,123 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) + I_DeclaringFile("osgUtil/UpdateVisitor"); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____UpdateVisitor, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the library name/namespapce of the visitor's. ", + "Should be defined by derived classes. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the visitor's class type. ", + "Should be defined by derived classes. "); + 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, + "", + ""); + I_ProtectedMethod1(void, handle_callbacks, IN, osg::StateSet *, stateset, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_callbacks__osg_StateSet_P1, + "", + ""); + I_ProtectedMethod1(void, handle_callbacks_and_traverse, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_callbacks_and_traverse__osg_Node_R1, + "", + ""); + I_ProtectedMethod1(void, handle_geode_callbacks, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__handle_geode_callbacks__osg_Geode_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/CompositeViewer.cpp b/src/osgWrappers/introspection/osgViewer/CompositeViewer.cpp new file mode 100644 index 000000000..3561733d6 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/CompositeViewer.cpp @@ -0,0 +1,285 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::CompositeViewer) + I_DeclaringFile("osgViewer/CompositeViewer"); + I_BaseType(osgViewer::ViewerBase); + I_VirtualBaseType(osg::Object); + I_Constructor0(____CompositeViewer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgViewer::CompositeViewer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeViewer__C5_CompositeViewer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____CompositeViewer__osg_ArgumentParser_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(bool, readConfiguration, IN, const std::string &, filename, + Properties::VIRTUAL, + __bool__readConfiguration__C5_std_string_R1, + "read the viewer configuration from a configuration file. ", + ""); + I_Method1(void, setViewerStats, IN, osg::Stats *, stats, + Properties::VIRTUAL, + __void__setViewerStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getViewerStats, + Properties::VIRTUAL, + __osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method0(const osg::Stats *, getViewerStats, + Properties::VIRTUAL, + __C5_osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method1(void, addView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, + __void__addView__osgViewer_View_P1, + "", + ""); + I_Method1(void, removeView, IN, osgViewer::View *, view, + Properties::NON_VIRTUAL, + __void__removeView__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::VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + 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_Method0(double, elapsedTime, + Properties::VIRTUAL, + __double__elapsedTime, + "", + ""); + I_Method0(osg::FrameStamp *, getViewerFrameStamp, + Properties::VIRTUAL, + __osg_FrameStamp_P1__getViewerFrameStamp, + "", + ""); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivalent 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_Method0(bool, checkNeedToDoFrame, + Properties::VIRTUAL, + __bool__checkNeedToDoFrame, + "check to see if the new frame is required, called by run(. ", + ".) when FrameScheme is set to ON_DEMAND. "); + 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_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, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getOperationThreads__OperationThreads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getViews__Views_R1__bool, + "", + ""); + 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_ProtectedMethod0(void, constructorInit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__constructorInit, + "", + ""); + I_ProtectedMethod0(void, viewerInit, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__viewerInit, + "", + ""); + I_SimpleProperty(osg::Camera *, CameraWithFocus, + __osg_Camera_P1__getCameraWithFocus, + __void__setCameraWithFocus__osg_Camera_P1); + I_SimpleProperty(osg::FrameStamp *, FrameStamp, + __osg_FrameStamp_P1__getFrameStamp, + 0); + I_SimpleProperty(double, ReferenceTime, + 0, + __void__setReferenceTime__double); + I_SimpleProperty(osg::Timer_t, StartTick, + 0, + __void__setStartTick__osg_Timer_t); + I_ArrayProperty(osgViewer::View *, View, + __osgViewer_View_P1__getView__unsigned, + 0, + __unsigned_int__getNumViews, + __void__addView__osgViewer_View_P1, + 0, + 0); + I_SimpleProperty(osgViewer::View *, ViewWithFocus, + __osgViewer_View_P1__getViewWithFocus, + 0); + I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, + __osg_FrameStamp_P1__getViewerFrameStamp, + 0); + I_SimpleProperty(osg::Stats *, ViewerStats, + __osg_Stats_P1__getViewerStats, + __void__setViewerStats__osg_Stats_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/GraphicsWindow.cpp b/src/osgWrappers/introspection/osgViewer/GraphicsWindow.cpp new file mode 100644 index 000000000..02e3ee605 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/GraphicsWindow.cpp @@ -0,0 +1,329 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgViewer::GraphicsWindow::MouseCursor) + I_DeclaringFile("osgViewer/GraphicsWindow"); + I_EnumLabel(osgViewer::GraphicsWindow::InheritCursor); + I_EnumLabel(osgViewer::GraphicsWindow::NoCursor); + I_EnumLabel(osgViewer::GraphicsWindow::RightArrowCursor); + I_EnumLabel(osgViewer::GraphicsWindow::LeftArrowCursor); + I_EnumLabel(osgViewer::GraphicsWindow::InfoCursor); + I_EnumLabel(osgViewer::GraphicsWindow::DestroyCursor); + I_EnumLabel(osgViewer::GraphicsWindow::HelpCursor); + I_EnumLabel(osgViewer::GraphicsWindow::CycleCursor); + I_EnumLabel(osgViewer::GraphicsWindow::SprayCursor); + I_EnumLabel(osgViewer::GraphicsWindow::WaitCursor); + I_EnumLabel(osgViewer::GraphicsWindow::TextCursor); + I_EnumLabel(osgViewer::GraphicsWindow::CrosshairCursor); + I_EnumLabel(osgViewer::GraphicsWindow::HandCursor); + I_EnumLabel(osgViewer::GraphicsWindow::UpDownCursor); + I_EnumLabel(osgViewer::GraphicsWindow::LeftRightCursor); + I_EnumLabel(osgViewer::GraphicsWindow::TopSideCursor); + I_EnumLabel(osgViewer::GraphicsWindow::BottomSideCursor); + I_EnumLabel(osgViewer::GraphicsWindow::LeftSideCursor); + I_EnumLabel(osgViewer::GraphicsWindow::RightSideCursor); + I_EnumLabel(osgViewer::GraphicsWindow::TopLeftCorner); + I_EnumLabel(osgViewer::GraphicsWindow::TopRightCorner); + I_EnumLabel(osgViewer::GraphicsWindow::BottomRightCorner); + I_EnumLabel(osgViewer::GraphicsWindow::BottomLeftCorner); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindow) + I_DeclaringFile("osgViewer/GraphicsWindow"); + I_BaseType(osg::GraphicsContext); + I_BaseType(osgGA::GUIActionAdapter); + I_Constructor0(____GraphicsWindow, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, + Properties::NON_VIRTUAL, + __void__setEventQueue__osgGA_EventQueue_P1, + "", + ""); + 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_Method4(void, setWindowRectangle, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__setWindowRectangle__int__int__int__int, + "Set the window's position and size. ", + ""); + I_Method4(bool, setWindowRectangleImplementation, IN, int, x, IN, int, x, IN, int, x, IN, int, x, + Properties::VIRTUAL, + __bool__setWindowRectangleImplementation__int__int__int__int, + "implementation of setWindowRectangle, should be implemented by derived classes ", + ""); + I_Method4(void, getWindowRectangle, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + Properties::VIRTUAL, + __void__getWindowRectangle__int_R1__int_R1__int_R1__int_R1, + "Get the window's position and size. ", + ""); + I_Method1(void, setWindowDecoration, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setWindowDecoration__bool, + "Set Window decoration. ", + ""); + I_Method1(bool, setWindowDecorationImplementation, IN, bool, x, + Properties::VIRTUAL, + __bool__setWindowDecorationImplementation__bool, + "implementation of setWindowDecoration, should be implemented by derived classes ", + ""); + I_Method0(bool, getWindowDecoration, + Properties::VIRTUAL, + __bool__getWindowDecoration, + "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_Method0(void, raiseWindow, + Properties::VIRTUAL, + __void__raiseWindow, + "Raise the window to the top. ", + ""); + I_Method1(void, setWindowName, IN, const std::string &, x, + Properties::VIRTUAL, + __void__setWindowName__C5_std_string_R1, + "Set the name of the window. ", + ""); + I_Method0(std::string, getWindowName, + Properties::VIRTUAL, + __std_string__getWindowName, + "Return the name of the window. ", + ""); + I_Method1(void, useCursor, IN, bool, cursorOn, + Properties::VIRTUAL, + __void__useCursor__bool, + "Switch on/off the cursor. ", + ""); + I_Method1(void, setCursor, IN, osgViewer::GraphicsWindow::MouseCursor, x, + Properties::VIRTUAL, + __void__setCursor__MouseCursor, + "Set mouse cursor to a specific shape. ", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Create a new mouse cursor from the usual bitmap data. ", + "Return whether a valid and usable GraphicsContext has been created. "); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realized, and is ready to use, implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(void, closeImplementation, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrete 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 concrete 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 concrete implementations of GraphicsContext. "); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + 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_SimpleProperty(osgViewer::GraphicsWindow::MouseCursor, Cursor, + 0, + __void__setCursor__MouseCursor); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(bool, WindowDecoration, + __bool__getWindowDecoration, + __void__setWindowDecoration__bool); + I_SimpleProperty(bool, WindowDecorationImplementation, + 0, + __bool__setWindowDecorationImplementation__bool); + I_SimpleProperty(std::string, WindowName, + __std_string__getWindowName, + __void__setWindowName__C5_std_string_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::GraphicsWindowEmbedded) + I_DeclaringFile("osgViewer/GraphicsWindow"); + I_BaseType(osgViewer::GraphicsWindow); + I_ConstructorWithDefaults1(IN, osg::GraphicsContext::Traits *, traits, 0, + Properties::NON_EXPLICIT, + ____GraphicsWindowEmbedded__osg_GraphicsContext_Traits_P1, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____GraphicsWindowEmbedded__int__int__int__int, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "", + ""); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Create a new mouse cursor from the usual bitmap data. ", + "Return whether a valid and usable GraphicsContext has been created. "); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realize the GraphicsContext implementation, Pure virtual - must be implemented by concrete implementations of GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realized, and is ready to use, implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(void, closeImplementation, + Properties::VIRTUAL, + __void__closeImplementation, + "Close the graphics context implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(bool, makeCurrentImplementation, + Properties::VIRTUAL, + __bool__makeCurrentImplementation, + "Make this graphics context current implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + 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_Method0(void, raiseWindow, + Properties::VIRTUAL, + __void__raiseWindow, + "Raise the window to the top. ", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgViewer::GraphicsWindowFunctionProxy) + I_DeclaringFile("osgViewer/GraphicsWindow"); + I_Constructor1(IN, CGraphicsWindowFunction, function, + Properties::NON_EXPLICIT, + ____GraphicsWindowFunctionProxy__CGraphicsWindowFunction, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/Renderer.cpp b/src/osgWrappers/introspection/osgViewer/Renderer.cpp new file mode 100644 index 000000000..fee87d6f4 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/Renderer.cpp @@ -0,0 +1,228 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::pair< GLuint COMMA int >, osgViewer::OpenGLQuerySupport::QueryFrameNumberPair) + +TYPE_NAME_ALIAS(std::list< osgViewer::OpenGLQuerySupport::QueryFrameNumberPair >, osgViewer::OpenGLQuerySupport::QueryFrameNumberList) + +TYPE_NAME_ALIAS(std::vector< GLuint >, osgViewer::OpenGLQuerySupport::QueryList) + +BEGIN_VALUE_REFLECTOR(osgViewer::OpenGLQuerySupport) + I_DeclaringFile("osgViewer/Renderer"); + I_Constructor0(____OpenGLQuerySupport, + "", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, startTick, + Properties::NON_VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + I_Method1(void, checkQuery, IN, osg::Stats *, stats, + Properties::NON_VIRTUAL, + __void__checkQuery__osg_Stats_P1, + "", + ""); + I_Method0(GLuint, createQueryObject, + Properties::NON_VIRTUAL, + __GLuint__createQueryObject, + "", + ""); + I_Method1(void, beginQuery, IN, int, frameNumber, + Properties::NON_VIRTUAL, + __void__beginQuery__int, + "", + ""); + I_Method0(void, endQuery, + Properties::NON_VIRTUAL, + __void__endQuery, + "", + ""); + I_Method1(void, initialize, IN, osg::State *, state, + Properties::NON_VIRTUAL, + __void__initialize__osg_State_P1, + "", + ""); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::Renderer) + I_DeclaringFile("osgViewer/Renderer"); + I_BaseType(osg::GraphicsOperation); + I_BaseType(osgViewer::OpenGLQuerySupport); + I_Constructor1(IN, osg::Camera *, camera, + Properties::NON_EXPLICIT, + ____Renderer__osg_Camera_P1, + "", + ""); + I_Method1(osgUtil::SceneView *, getSceneView, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_P1__getSceneView__unsigned_int, + "", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "", + ""); + I_Method0(bool, getDone, + Properties::NON_VIRTUAL, + __bool__getDone, + "", + ""); + I_Method1(void, setGraphicsThreadDoesCull, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGraphicsThreadDoesCull__bool, + "", + ""); + I_Method0(bool, getGraphicsThreadDoesCull, + Properties::NON_VIRTUAL, + __bool__getGraphicsThreadDoesCull, + "", + ""); + I_Method0(void, cull, + Properties::VIRTUAL, + __void__cull, + "", + ""); + I_Method0(void, draw, + Properties::VIRTUAL, + __void__draw, + "", + ""); + I_Method0(void, cull_draw, + Properties::VIRTUAL, + __void__cull_draw, + "", + ""); + I_Method0(void, compile, + Properties::VIRTUAL, + __void__compile, + "", + ""); + I_Method1(void, setCompileOnNextDraw, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCompileOnNextDraw__bool, + "", + ""); + I_Method0(bool, getCompileOnNextDraw, + Properties::NON_VIRTUAL, + __bool__getCompileOnNextDraw, + "", + ""); + I_Method0(void, release, + Properties::VIRTUAL, + __void__release, + "if this operation is a barrier then release it. ", + ""); + 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).Note, the actual TargetFrameRate used is the minimum of this value and that set in the DatabasePager. "); + 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.Note, the actual TargetFrameRate used is the minimum of this value and that set in the DatabasePager. "); + 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, setFlushTimeRatio, IN, double, ratio, + Properties::NON_VIRTUAL, + __void__setFlushTimeRatio__double, + "FlushTimeRatio governs how much of the spare time in each frame is used for flushing deleted OpenGL objects. ", + "Default value is 0.5, valid range is 0.1 to 0.9. "); + I_Method0(double, getFlushTimeRatio, + Properties::NON_VIRTUAL, + __double__getFlushTimeRatio, + "", + ""); + I_Method1(void, setConservativeTimeRatio, IN, double, ratio, + Properties::NON_VIRTUAL, + __void__setConservativeTimeRatio__double, + "ConservativeTimeRatio governs how much of the measured spare time in each frame is used for flushing deleted and compile new OpenGL objects. ", + "Default value is 0.5, valid range is 0.1 to 1.0. A ratio near 1.0 will lead to paged databases being compiled and merged quicker but increase the chances of frame drop. A ratio near 0.1 will lead to paged databases being compiled and merged closer but reduse the chances of frame drop. "); + I_Method0(double, getConservativeTimeRatio, + Properties::NON_VIRTUAL, + __double__getConservativeTimeRatio, + "", + ""); + I_ProtectedMethod1(void, updateSceneView, IN, osgUtil::SceneView *, sceneView, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__updateSceneView__osgUtil_SceneView_P1, + "", + ""); + I_ProtectedMethod4(void, flushAndCompile, IN, double, currentElapsedFrameTime, IN, osgUtil::SceneView *, sceneView, IN, osgDB::DatabasePager *, databasePager, IN, osg::GraphicsThread *, compileThread, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__flushAndCompile__double__osgUtil_SceneView_P1__osgDB_DatabasePager_P1__osg_GraphicsThread_P1, + "", + ""); + I_SimpleProperty(bool, CompileOnNextDraw, + __bool__getCompileOnNextDraw, + __void__setCompileOnNextDraw__bool); + I_SimpleProperty(double, ConservativeTimeRatio, + __double__getConservativeTimeRatio, + __void__setConservativeTimeRatio__double); + I_SimpleProperty(bool, Done, + __bool__getDone, + __void__setDone__bool); + I_SimpleProperty(double, FlushTimeRatio, + __double__getFlushTimeRatio, + __void__setFlushTimeRatio__double); + I_SimpleProperty(bool, GraphicsThreadDoesCull, + __bool__getGraphicsThreadDoesCull, + __void__setGraphicsThreadDoesCull__bool); + I_SimpleProperty(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame, + __double__getMinimumTimeAvailableForGLCompileAndDeletePerFrame, + __void__setMinimumTimeAvailableForGLCompileAndDeletePerFrame__double); + I_SimpleProperty(double, TargetFrameRate, + __double__getTargetFrameRate, + __void__setTargetFrameRate__double); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osgViewer::OpenGLQuerySupport::QueryFrameNumberPair >) + +STD_PAIR_REFLECTOR(std::pair< GLuint COMMA int >) + diff --git a/src/osgWrappers/introspection/osgViewer/Scene.cpp b/src/osgWrappers/introspection/osgViewer/Scene.cpp new file mode 100644 index 000000000..4c69f32ca --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/Scene.cpp @@ -0,0 +1,97 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::Scene) + I_DeclaringFile("osgViewer/Scene"); + I_BaseType(osg::Referenced); + 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_Method1(void, setImagePager, IN, osgDB::ImagePager *, ip, + Properties::NON_VIRTUAL, + __void__setImagePager__osgDB_ImagePager_P1, + "", + ""); + I_Method0(osgDB::ImagePager *, getImagePager, + Properties::NON_VIRTUAL, + __osgDB_ImagePager_P1__getImagePager, + "", + ""); + I_Method0(const osgDB::ImagePager *, getImagePager, + Properties::NON_VIRTUAL, + __C5_osgDB_ImagePager_P1__getImagePager, + "", + ""); + I_Method1(void, updateSceneGraph, IN, osg::NodeVisitor &, updateVisitor, + Properties::NON_VIRTUAL, + __void__updateSceneGraph__osg_NodeVisitor_R1, + "", + ""); + I_StaticMethod1(osgViewer::Scene *, getScene, IN, osg::Node *, node, + __Scene_P1__getScene__osg_Node_P1_S, + "Get the Scene object that has the specified node assigned to it. ", + "return 0 if no Scene has yet been assigned the specified node. "); + I_ProtectedConstructor0(____Scene, + "", + ""); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__osgDB_DatabasePager_P1); + I_SimpleProperty(osgDB::ImagePager *, ImagePager, + __osgDB_ImagePager_P1__getImagePager, + __void__setImagePager__osgDB_ImagePager_P1); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/View.cpp b/src/osgWrappers/introspection/osgViewer/View.cpp new file mode 100644 index 000000000..802da076c --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/View.cpp @@ -0,0 +1,425 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers) + +BEGIN_OBJECT_REFLECTOR(osgViewer::View) + I_DeclaringFile("osgViewer/View"); + I_BaseType(osg::View); + I_BaseType(osgGA::GUIActionAdapter); + I_Constructor0(____View, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgViewer::View &, view, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____View__C5_osgViewer_View_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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(osg::View *, asView, + Properties::VIRTUAL, + __osg_View_P1__asView, + "Provide a mechanism for getting the osg::View associated from the GUIActionAdapter. ", + "One would use this to case view to osgViewer::View(er) if supported by the subclass. "); + I_Method0(osgViewer::ViewerBase *, getViewerBase, + Properties::NON_VIRTUAL, + __ViewerBase_P1__getViewerBase, + "Provide a mechanism for getting the viewer object from this osgViewer::View. ", + "In the case of a osgViewer::Viewer the ViewerBase will effectively point to this object as Viewer subclasses from View. In the case of a osgViewer::CompsoiteViewer the ViewerBase will point to the CompositeViewer that owns this View. "); + I_Method1(void, take, IN, osg::View &, rhs, + Properties::VIRTUAL, + __void__take__osg_View_R1, + "Take all the settings, Camera and Slaves from the passed in view, leaving it empty. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_Method0(osg::Timer_t, getStartTick, + Properties::NON_VIRTUAL, + __osg_Timer_t__getStartTick, + "", + ""); + 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, + "Set the scene graph that the View will use. ", + ""); + I_Method0(osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __osg_Node_P1__getSceneData, + "Get the View's scene graph. ", + ""); + I_Method0(const osg::Node *, getSceneData, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getSceneData, + "Get the const View's scene graph. ", + ""); + I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, dp, + Properties::NON_VIRTUAL, + __void__setDatabasePager__osgDB_DatabasePager_P1, + "Set the View's database pager. ", + ""); + I_Method0(osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __osgDB_DatabasePager_P1__getDatabasePager, + "Get the View's database pager. ", + ""); + I_Method0(const osgDB::DatabasePager *, getDatabasePager, + Properties::NON_VIRTUAL, + __C5_osgDB_DatabasePager_P1__getDatabasePager, + "Get the const View's database pager. ", + ""); + I_Method1(void, setImagePager, IN, osgDB::ImagePager *, ip, + Properties::NON_VIRTUAL, + __void__setImagePager__osgDB_ImagePager_P1, + "Set the View's image pager. ", + ""); + I_Method0(osgDB::ImagePager *, getImagePager, + Properties::NON_VIRTUAL, + __osgDB_ImagePager_P1__getImagePager, + "Get the View's image pager. ", + ""); + I_Method0(const osgDB::ImagePager *, getImagePager, + Properties::NON_VIRTUAL, + __C5_osgDB_ImagePager_P1__getImagePager, + "Get the const View's image pager. ", + ""); + 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, + "Set the CameraManipulator that moves the View's master Camera position in response to events. ", + ""); + I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + "Get the View's CameraManipulator. ", + ""); + I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, + Properties::NON_VIRTUAL, + __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, + "Get the const View's CameraManipulator. ", + ""); + I_Method0(void, home, + Properties::NON_VIRTUAL, + __void__home, + "Set the view to the CameraManipulator's home position, if non is attached home() is does nothing. ", + "Note, to set the home position use getCamaraManipulator()->setHomePosition(...). "); + I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__addEventHandler__osgGA_GUIEventHandler_P1, + "Add an EventHandler that adds handling of events to the View. ", + ""); + I_Method1(void, removeEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, + Properties::NON_VIRTUAL, + __void__removeEventHandler__osgGA_GUIEventHandler_P1, + "Remove an EventHandler from View. ", + ""); + I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __EventHandlers_R1__getEventHandlers, + "Get the View's list of EventHandlers. ", + ""); + I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, + Properties::NON_VIRTUAL, + __C5_EventHandlers_R1__getEventHandlers, + "Get the const View's list of EventHandlers. ", + ""); + I_Method1(void, setCoordinateSystemNodePath, IN, const osg::NodePath &, nodePath, + Properties::NON_VIRTUAL, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1, + "Set the NodePath to any active CoordinateSystemNode present in the Scene. ", + "The CoordinateSystemNode path is used to help applications and CamaraManipualtors handle geocentric coordinates systems, such as known which way is the local up at any position on the a whole earth. "); + I_Method0(osg::NodePath, getCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __osg_NodePath__getCoordinateSystemNodePath, + "Get the NodePath to any active CoordinateSystemNode present in the Scene. ", + ""); + I_Method0(void, computeActiveCoordinateSystemNodePath, + Properties::NON_VIRTUAL, + __void__computeActiveCoordinateSystemNodePath, + "Compute the NodePath to any active CoordinateSystemNode present in the Scene. ", + ""); + I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, + Properties::NON_VIRTUAL, + __void__setDisplaySettings__osg_DisplaySettings_P1, + "Set the DisplaySettings object associated with this view. ", + ""); + I_Method0(osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __osg_DisplaySettings_P1__getDisplaySettings, + "Set the DisplaySettings object associated with this view. ", + ""); + I_Method0(const osg::DisplaySettings *, getDisplaySettings, + Properties::NON_VIRTUAL, + __C5_osg_DisplaySettings_P1__getDisplaySettings, + "Set the DisplaySettings object associated with this view. ", + ""); + I_MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f, + Properties::NON_VIRTUAL, + __void__setFusionDistance__osgUtil_SceneView_FusionDistanceMode__float, + "Set the FusionDistanceMode and Value. ", + "Note, is used only when working in stereo. "); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::NON_VIRTUAL, + __osgUtil_SceneView_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_Method0(void, setUpViewAcrossAllScreens, + Properties::NON_VIRTUAL, + __void__setUpViewAcrossAllScreens, + "Convenience method for creating slave Cameras and associated GraphicsWindows across all screens. ", + ""); + I_MethodWithDefaults5(void, setUpViewInWindow, IN, int, x, , IN, int, y, , IN, int, width, , IN, int, height, , IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, + __void__setUpViewInWindow__int__int__int__int__unsigned_int, + "Convenience method for a single camera on a single window. ", + ""); + I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, + Properties::NON_VIRTUAL, + __void__setUpViewOnSingleScreen__unsigned_int, + "Convenience method for a single camera associated with a single full screen GraphicsWindow. ", + ""); + I_MethodWithDefaults5(void, setUpViewFor3DSphericalDisplay, IN, double, radius, 1.0, IN, double, collar, 0.45, IN, unsigned int, screenNum, 0, IN, osg::Image *, intensityMap, 0, IN, const osg::Matrixd &, projectorMatrix, osg::Matrixd(), + Properties::NON_VIRTUAL, + __void__setUpViewFor3DSphericalDisplay__double__double__unsigned_int__osg_Image_P1__C5_osg_Matrixd_R1, + "Convenience method for spherical display using 6 slave cameras rendering the 6 sides of a cube map, and 7th camera doing distortion correction to present on a spherical display. ", + ""); + I_MethodWithDefaults5(void, setUpViewForPanoramicSphericalDisplay, IN, double, radius, 1.0, IN, double, collar, 0.45, IN, unsigned int, screenNum, 0, IN, osg::Image *, intensityMap, 0, IN, const osg::Matrixd &, projectorMatrix, osg::Matrixd(), + Properties::NON_VIRTUAL, + __void__setUpViewForPanoramicSphericalDisplay__double__double__unsigned_int__osg_Image_P1__C5_osg_Matrixd_R1, + "Convenience method for spherical display by rendering main scene to as panoramic 2:1 texture and then doing distortion correction to present onto a spherical display. ", + ""); + I_Method8(void, setUpViewForWoWVxDisplay, IN, unsigned int, screenNum, IN, unsigned char, wow_content, IN, unsigned char, wow_factor, IN, unsigned char, wow_offset, IN, float, wow_disparity_Zd, IN, float, wow_disparity_vz, IN, float, wow_disparity_M, IN, float, wow_disparity_C, + Properties::NON_VIRTUAL, + __void__setUpViewForWoWVxDisplay__unsigned_int__unsigned_char__unsigned_char__unsigned_char__float__float__float__float, + "Convenience method for autostereoscopic Philips WoWvx display. ", + ""); + 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, const osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, + Properties::NON_VIRTUAL, + __bool__computeIntersections__float__float__C5_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, + "", + ""); + I_ProtectedMethod1(osg::GraphicsOperation *, createRenderer, IN, osg::Camera *, camera, + Properties::VIRTUAL, + Properties::NON_CONST, + __osg_GraphicsOperation_P1__createRenderer__osg_Camera_P1, + "", + ""); + I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, + __osgGA_MatrixManipulator_P1__getCameraManipulator, + __void__setCameraManipulator__osgGA_MatrixManipulator_P1); + I_SimpleProperty(osg::NodePath, CoordinateSystemNodePath, + __osg_NodePath__getCoordinateSystemNodePath, + __void__setCoordinateSystemNodePath__C5_osg_NodePath_R1); + I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, + __osgDB_DatabasePager_P1__getDatabasePager, + __void__setDatabasePager__osgDB_DatabasePager_P1); + I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, + __osg_DisplaySettings_P1__getDisplaySettings, + __void__setDisplaySettings__osg_DisplaySettings_P1); + I_SimpleProperty(osgViewer::View::EventHandlers &, EventHandlers, + __EventHandlers_R1__getEventHandlers, + 0); + I_SimpleProperty(osgGA::EventQueue *, EventQueue, + __osgGA_EventQueue_P1__getEventQueue, + __void__setEventQueue__osgGA_EventQueue_P1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osgDB::ImagePager *, ImagePager, + __osgDB_ImagePager_P1__getImagePager, + __void__setImagePager__osgDB_ImagePager_P1); + I_SimpleProperty(osgViewer::Scene *, Scene, + __Scene_P1__getScene, + 0); + I_SimpleProperty(osg::Node *, SceneData, + __osg_Node_P1__getSceneData, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(osg::Timer_t, StartTick, + __osg_Timer_t__getStartTick, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(unsigned int, UpViewOnSingleScreen, + 0, + __void__setUpViewOnSingleScreen__unsigned_int); + I_SimpleProperty(osgViewer::ViewerBase *, ViewerBase, + __ViewerBase_P1__getViewerBase, + 0); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + 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, + "", + ""); + I_SimpleProperty(osgGA::GUIEventHandler *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >) + diff --git a/src/osgWrappers/introspection/osgViewer/Viewer.cpp b/src/osgWrappers/introspection/osgViewer/Viewer.cpp new file mode 100644 index 000000000..0f0d314c8 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/Viewer.cpp @@ -0,0 +1,247 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::Viewer) + I_DeclaringFile("osgViewer/Viewer"); + I_BaseType(osgViewer::ViewerBase); + I_BaseType(osgViewer::View); + I_Constructor0(____Viewer, + "", + ""); + I_Constructor1(IN, osg::ArgumentParser &, arguments, + Properties::NON_EXPLICIT, + ____Viewer__osg_ArgumentParser_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgViewer::Viewer &, viewer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Viewer__C5_osgViewer_Viewer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, take, IN, osgViewer::View &, rhs, + Properties::VIRTUAL, + __void__take__View_R1, + "Take all the settings, Camera and Slaves from the passed in view(er), leaving it empty. ", + ""); + I_Method1(void, setViewerStats, IN, osg::Stats *, stats, + Properties::VIRTUAL, + __void__setViewerStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getViewerStats, + Properties::VIRTUAL, + __osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method0(const osg::Stats *, getViewerStats, + Properties::VIRTUAL, + __C5_osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method1(bool, readConfiguration, IN, const std::string &, filename, + Properties::VIRTUAL, + __bool__readConfiguration__C5_std_string_R1, + "read the viewer configuration from a configuration file. ", + ""); + I_Method0(bool, isRealized, + Properties::VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setStartTick, IN, osg::Timer_t, tick, + Properties::VIRTUAL, + __void__setStartTick__osg_Timer_t, + "", + ""); + I_MethodWithDefaults1(void, setReferenceTime, IN, double, time, 0.0, + Properties::NON_VIRTUAL, + __void__setReferenceTime__double, + "", + ""); + I_Method1(void, setSceneData, IN, osg::Node *, node, + Properties::VIRTUAL, + __void__setSceneData__osg_Node_P1, + "Set the sene graph data that viewer with view. ", + ""); + I_Method4(osgViewer::GraphicsWindowEmbedded *, setUpViewerAsEmbeddedInWindow, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::VIRTUAL, + __GraphicsWindowEmbedded_P1__setUpViewerAsEmbeddedInWindow__int__int__int__int, + "Convenience method for setting up the viewer so it can be used embedded in an external managed window. ", + "Returns the GraphicsWindowEmbedded that can be used by applications to pass in events to the viewer. "); + I_Method0(double, elapsedTime, + Properties::VIRTUAL, + __double__elapsedTime, + "", + ""); + I_Method0(osg::FrameStamp *, getViewerFrameStamp, + Properties::VIRTUAL, + __osg_FrameStamp_P1__getViewerFrameStamp, + "", + ""); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivalent 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_Method0(bool, checkNeedToDoFrame, + Properties::VIRTUAL, + __bool__checkNeedToDoFrame, + "check to see if the new frame is required, called by run(. ", + ".) when FrameScheme is set to ON_DEMAND. "); + 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_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, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, + Properties::VIRTUAL, + __void__getOperationThreads__OperationThreads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getViews__Views_R1__bool, + "", + ""); + 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_ProtectedMethod0(void, constructorInit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__constructorInit, + "", + ""); + I_ProtectedMethod0(void, viewerInit, + Properties::VIRTUAL, + Properties::NON_CONST, + __void__viewerInit, + "", + ""); + I_SimpleProperty(osg::Camera *, CameraWithFocus, + __osg_Camera_P1__getCameraWithFocus, + __void__setCameraWithFocus__osg_Camera_P1); + I_SimpleProperty(double, ReferenceTime, + 0, + __void__setReferenceTime__double); + I_SimpleProperty(osg::Node *, SceneData, + 0, + __void__setSceneData__osg_Node_P1); + I_SimpleProperty(osg::Timer_t, StartTick, + 0, + __void__setStartTick__osg_Timer_t); + I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, + __osg_FrameStamp_P1__getViewerFrameStamp, + 0); + I_SimpleProperty(osg::Stats *, ViewerStats, + __osg_Stats_P1__getViewerStats, + __void__setViewerStats__osg_Stats_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/ViewerBase.cpp b/src/osgWrappers/introspection/osgViewer/ViewerBase.cpp new file mode 100644 index 000000000..5d8b3b722 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/ViewerBase.cpp @@ -0,0 +1,462 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +#include + +BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::ThreadingModel) + I_DeclaringFile("osgViewer/ViewerBase"); + I_EnumLabel(osgViewer::ViewerBase::SingleThreaded); + I_EnumLabel(osgViewer::ViewerBase::CullDrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::ThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::DrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::CullThreadPerCameraDrawThreadPerContext); + I_EnumLabel(osgViewer::ViewerBase::ThreadPerCamera); + I_EnumLabel(osgViewer::ViewerBase::AutomaticSelection); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::BarrierPosition) + I_DeclaringFile("osgViewer/ViewerBase"); + I_EnumLabel(osgViewer::ViewerBase::BeforeSwapBuffers); + I_EnumLabel(osgViewer::ViewerBase::AfterSwapBuffers); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::ViewerBase::FrameScheme) + I_DeclaringFile("osgViewer/ViewerBase"); + I_EnumLabel(osgViewer::ViewerBase::ON_DEMAND); + I_EnumLabel(osgViewer::ViewerBase::CONTINUOUS); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Camera * >, osgViewer::ViewerBase::Cameras) + +TYPE_NAME_ALIAS(std::vector< osg::GraphicsContext * >, osgViewer::ViewerBase::Contexts) + +TYPE_NAME_ALIAS(std::vector< osgViewer::GraphicsWindow * >, osgViewer::ViewerBase::Windows) + +TYPE_NAME_ALIAS(std::vector< OpenThreads::Thread * >, osgViewer::ViewerBase::Threads) + +TYPE_NAME_ALIAS(std::vector< osg::OperationThread * >, osgViewer::ViewerBase::OperationThreads) + +TYPE_NAME_ALIAS(std::vector< osgViewer::Scene * >, osgViewer::ViewerBase::Scenes) + +TYPE_NAME_ALIAS(std::vector< osgViewer::View * >, osgViewer::ViewerBase::Views) + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ViewerBase) + I_DeclaringFile("osgViewer/ViewerBase"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____ViewerBase, + "", + ""); + I_Constructor1(IN, const osgViewer::ViewerBase &, vb, + Properties::NON_EXPLICIT, + ____ViewerBase__C5_ViewerBase_R1, + "", + ""); + I_Method1(void, setViewerStats, IN, osg::Stats *, stats, + Properties::PURE_VIRTUAL, + __void__setViewerStats__osg_Stats_P1, + "Set the Stats object used for collect various frame related timing and scene graph stats. ", + ""); + I_Method0(osg::Stats *, getViewerStats, + Properties::PURE_VIRTUAL, + __osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method0(const osg::Stats *, getViewerStats, + Properties::PURE_VIRTUAL, + __C5_osg_Stats_P1__getViewerStats, + "Get the Viewers Stats object. ", + ""); + I_Method1(bool, readConfiguration, IN, const std::string &, filename, + Properties::PURE_VIRTUAL, + __bool__readConfiguration__C5_std_string_R1, + "read the viewer configuration from a configuration file. ", + ""); + I_Method0(bool, isRealized, + Properties::PURE_VIRTUAL, + __bool__isRealized, + "Get whether at least of one of this viewers windows are realized. ", + ""); + I_Method0(void, realize, + Properties::PURE_VIRTUAL, + __void__realize, + "set up windows and associated threads. ", + ""); + I_Method1(void, setThreadingModel, IN, osgViewer::ViewerBase::ThreadingModel, threadingModel, + Properties::VIRTUAL, + __void__setThreadingModel__ThreadingModel, + "Set the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::ViewerBase::ThreadingModel, getThreadingModel, + Properties::NON_VIRTUAL, + __ThreadingModel__getThreadingModel, + "Get the threading model the rendering traversals will use. ", + ""); + I_Method0(osgViewer::ViewerBase::ThreadingModel, suggestBestThreadingModel, + Properties::VIRTUAL, + __ThreadingModel__suggestBestThreadingModel, + "Let the viewer suggest the best threading model for the viewers camera/window setup and the hardware available. ", + ""); + I_Method0(void, setUpThreading, + Properties::VIRTUAL, + __void__setUpThreading, + "Set up the threading and processor affinity as per the viewers threading model. ", + ""); + I_Method0(bool, areThreadsRunning, + Properties::NON_VIRTUAL, + __bool__areThreadsRunning, + "Return true if viewer threads are running. ", + ""); + I_Method0(void, stopThreading, + Properties::VIRTUAL, + __void__stopThreading, + "Stop any threads begin run by viewer. ", + ""); + I_Method0(void, startThreading, + Properties::VIRTUAL, + __void__startThreading, + "Start any threads required by the viewer. ", + ""); + I_Method1(void, setEndBarrierPosition, IN, osgViewer::ViewerBase::BarrierPosition, bp, + Properties::NON_VIRTUAL, + __void__setEndBarrierPosition__BarrierPosition, + "Set the position of the end barrier. ", + "AfterSwapBuffers may result in slightly higher framerates, but may lead to inconsistent 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::ViewerBase::BarrierPosition, getEndBarrierPosition, + Properties::NON_VIRTUAL, + __BarrierPosition__getEndBarrierPosition, + "Get the end barrier position. ", + ""); + I_Method1(void, setDone, IN, bool, done, + Properties::NON_VIRTUAL, + __void__setDone__bool, + "Set the done flag to signal the viewer's work is done and should exit the frame loop. ", + ""); + I_Method0(bool, done, + Properties::NON_VIRTUAL, + __bool__done, + "Return true if viewer's work is done and should exit the frame loop. ", + ""); + I_Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, eventVisitor, + Properties::NON_VIRTUAL, + __void__setEventVisitor__osgGA_EventVisitor_P1, + "Set the EventVisitor. ", + ""); + I_Method0(osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __osgGA_EventVisitor_P1__getEventVisitor, + "Get the EventVisitor. ", + ""); + I_Method0(const osgGA::EventVisitor *, getEventVisitor, + Properties::NON_VIRTUAL, + __C5_osgGA_EventVisitor_P1__getEventVisitor, + "Get the const EventVisitor. ", + ""); + 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_Method1(void, setReleaseContextAtEndOfFrameHint, IN, bool, hint, + Properties::NON_VIRTUAL, + __void__setReleaseContextAtEndOfFrameHint__bool, + "Hint to tell the renderingTraversals() method whether to call relaseContext() on the last context that was made current by the thread calling renderingTraverals(). ", + "Note, when running multi-threaded viewer no threads will be made current or release current. Setting this hint to false can enable the frame loop to be lazy about calling makeCurrent and releaseContext on each new frame, helping performance. However, if you frame loop is managing multiple graphics context all from the main frame thread then this hint must be left on, otherwise the wrong context could be left active, introducing errors in rendering. "); + I_Method0(bool, getReleaseContextAtEndOfFrameHint, + Properties::NON_VIRTUAL, + __bool__getReleaseContextAtEndOfFrameHint, + "Hint to tell the renderingTraversals() method whether to call relaseContext(). ", + ""); + I_Method1(void, setUpdateVisitor, IN, osgUtil::UpdateVisitor *, updateVisitor, + Properties::NON_VIRTUAL, + __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1, + "Set the UpdateVisitor. ", + ""); + I_Method0(osgUtil::UpdateVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __osgUtil_UpdateVisitor_P1__getUpdateVisitor, + "Get the UpdateVisitor. ", + ""); + I_Method0(const osgUtil::UpdateVisitor *, getUpdateVisitor, + Properties::NON_VIRTUAL, + __C5_osgUtil_UpdateVisitor_P1__getUpdateVisitor, + "Get the const UpdateVisitor. ", + ""); + I_Method1(void, setUpdateOperations, IN, osg::OperationQueue *, operations, + Properties::NON_VIRTUAL, + __void__setUpdateOperations__osg_OperationQueue_P1, + "Set the Update OperationQueue. ", + ""); + I_Method0(osg::OperationQueue *, getUpdateOperations, + Properties::NON_VIRTUAL, + __osg_OperationQueue_P1__getUpdateOperations, + "Get the Update OperationQueue. ", + ""); + I_Method0(const osg::OperationQueue *, getUpdateOperations, + Properties::NON_VIRTUAL, + __C5_osg_OperationQueue_P1__getUpdateOperations, + "Get the const Update OperationQueue. ", + ""); + I_Method1(void, addUpdateOperation, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__addUpdateOperation__osg_Operation_P1, + "Add an update operation. ", + ""); + I_Method1(void, removeUpdateOperation, IN, osg::Operation *, operation, + Properties::NON_VIRTUAL, + __void__removeUpdateOperation__osg_Operation_P1, + "Remove an update operation. ", + ""); + 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_Method1(void, setIncrementalCompileOperation, IN, osgUtil::IncrementalCompileOperation *, ico, + Properties::NON_VIRTUAL, + __void__setIncrementalCompileOperation__osgUtil_IncrementalCompileOperation_P1, + "Set the incremental compile operation. ", + "Used to manage the OpenGL object compilation and merging of subgraphs in a way that avoids overloading the rendering of frame with too many new objects in one frame. "); + I_Method0(osgUtil::IncrementalCompileOperation *, getIncrementalCompileOperation, + Properties::NON_VIRTUAL, + __osgUtil_IncrementalCompileOperation_P1__getIncrementalCompileOperation, + "Get the incremental compile operation. ", + ""); + I_Method0(void, checkWindowStatus, + Properties::NON_VIRTUAL, + __void__checkWindowStatus, + "Check to see if windows are still open, if not set viewer done to true. ", + ""); + I_Method1(void, setRunFrameScheme, IN, osgViewer::ViewerBase::FrameScheme, fs, + Properties::NON_VIRTUAL, + __void__setRunFrameScheme__FrameScheme, + "", + ""); + I_Method0(osgViewer::ViewerBase::FrameScheme, getRunFrameScheme, + Properties::NON_VIRTUAL, + __FrameScheme__getRunFrameScheme, + "", + ""); + I_Method1(void, setRunMaxFrameRate, IN, double, frameRate, + Properties::NON_VIRTUAL, + __void__setRunMaxFrameRate__double, + "", + ""); + I_Method0(double, getRunMaxFrameRate, + Properties::NON_VIRTUAL, + __double__getRunMaxFrameRate, + "", + ""); + I_Method0(int, run, + Properties::VIRTUAL, + __int__run, + "Execute a main frame loop. ", + "Equivalent 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_Method0(bool, checkNeedToDoFrame, + Properties::PURE_VIRTUAL, + __bool__checkNeedToDoFrame, + "check to see if the new frame is required, called by run(. ", + ".) when FrameScheme is set to ON_DEMAND. "); + 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::PURE_VIRTUAL, + __void__advance__double, + "", + ""); + I_Method0(void, eventTraversal, + Properties::PURE_VIRTUAL, + __void__eventTraversal, + "", + ""); + I_Method0(void, updateTraversal, + Properties::PURE_VIRTUAL, + __void__updateTraversal, + "", + ""); + I_Method0(void, renderingTraversals, + Properties::VIRTUAL, + __void__renderingTraversals, + "", + ""); + I_MethodWithDefaults2(void, getCameras, IN, osgViewer::ViewerBase::Cameras &, cameras, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getCameras__Cameras_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getContexts, IN, osgViewer::ViewerBase::Contexts &, contexts, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getContexts__Contexts_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getWindows, IN, osgViewer::ViewerBase::Windows &, windows, , IN, bool, onlyValid, true, + Properties::VIRTUAL, + __void__getWindows__Windows_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getAllThreads, IN, osgViewer::ViewerBase::Threads &, threads, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getAllThreads__Threads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getOperationThreads, IN, osgViewer::ViewerBase::OperationThreads &, threads, , IN, bool, onlyActive, true, + Properties::PURE_VIRTUAL, + __void__getOperationThreads__OperationThreads_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getScenes, IN, osgViewer::ViewerBase::Scenes &, scenes, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getScenes__Scenes_R1__bool, + "", + ""); + I_MethodWithDefaults2(void, getViews, IN, osgViewer::ViewerBase::Views &, views, , IN, bool, onlyValid, true, + Properties::PURE_VIRTUAL, + __void__getViews__Views_R1__bool, + "", + ""); + I_Method0(double, elapsedTime, + Properties::PURE_VIRTUAL, + __double__elapsedTime, + "", + ""); + I_Method0(osg::FrameStamp *, getViewerFrameStamp, + Properties::PURE_VIRTUAL, + __osg_FrameStamp_P1__getViewerFrameStamp, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::PURE_VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this viewer. ", + ""); + I_ProtectedMethod0(void, viewerBaseInit, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__viewerBaseInit, + "", + ""); + I_ProtectedMethod1(void, makeCurrent, IN, osg::GraphicsContext *, gc, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__makeCurrent__osg_GraphicsContext_P1, + "", + ""); + I_ProtectedMethod0(void, releaseContext, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__releaseContext, + "", + ""); + I_ProtectedMethod0(void, viewerInit, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void__viewerInit, + "", + ""); + I_SimpleProperty(bool, Done, + 0, + __void__setDone__bool); + I_SimpleProperty(osgViewer::ViewerBase::BarrierPosition, EndBarrierPosition, + __BarrierPosition__getEndBarrierPosition, + __void__setEndBarrierPosition__BarrierPosition); + I_SimpleProperty(osgGA::EventVisitor *, EventVisitor, + __osgGA_EventVisitor_P1__getEventVisitor, + __void__setEventVisitor__osgGA_EventVisitor_P1); + I_SimpleProperty(osgUtil::IncrementalCompileOperation *, IncrementalCompileOperation, + __osgUtil_IncrementalCompileOperation_P1__getIncrementalCompileOperation, + __void__setIncrementalCompileOperation__osgUtil_IncrementalCompileOperation_P1); + I_SimpleProperty(int, KeyEventSetsDone, + __int__getKeyEventSetsDone, + __void__setKeyEventSetsDone__int); + I_SimpleProperty(bool, QuitEventSetsDone, + __bool__getQuitEventSetsDone, + __void__setQuitEventSetsDone__bool); + I_SimpleProperty(osg::Operation *, RealizeOperation, + __osg_Operation_P1__getRealizeOperation, + __void__setRealizeOperation__osg_Operation_P1); + I_SimpleProperty(bool, ReleaseContextAtEndOfFrameHint, + __bool__getReleaseContextAtEndOfFrameHint, + __void__setReleaseContextAtEndOfFrameHint__bool); + I_SimpleProperty(osgViewer::ViewerBase::FrameScheme, RunFrameScheme, + __FrameScheme__getRunFrameScheme, + __void__setRunFrameScheme__FrameScheme); + I_SimpleProperty(double, RunMaxFrameRate, + __double__getRunMaxFrameRate, + __void__setRunMaxFrameRate__double); + I_SimpleProperty(osgViewer::ViewerBase::ThreadingModel, ThreadingModel, + __ThreadingModel__getThreadingModel, + __void__setThreadingModel__ThreadingModel); + I_SimpleProperty(osg::OperationQueue *, UpdateOperations, + __osg_OperationQueue_P1__getUpdateOperations, + __void__setUpdateOperations__osg_OperationQueue_P1); + I_SimpleProperty(osgUtil::UpdateVisitor *, UpdateVisitor, + __osgUtil_UpdateVisitor_P1__getUpdateVisitor, + __void__setUpdateVisitor__osgUtil_UpdateVisitor_P1); + I_SimpleProperty(osg::FrameStamp *, ViewerFrameStamp, + __osg_FrameStamp_P1__getViewerFrameStamp, + 0); + I_SimpleProperty(osg::Stats *, ViewerStats, + __osg_Stats_P1__getViewerStats, + __void__setViewerStats__osg_Stats_P1); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< OpenThreads::Thread * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::Camera * >) + +STD_VECTOR_REFLECTOR(std::vector< osg::OperationThread * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::GraphicsWindow * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::Scene * >) + +STD_VECTOR_REFLECTOR(std::vector< osgViewer::View * >) + diff --git a/src/osgWrappers/introspection/osgViewer/ViewerEventHandlers.cpp b/src/osgWrappers/introspection/osgViewer/ViewerEventHandlers.cpp new file mode 100644 index 000000000..5061b1bd8 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/ViewerEventHandlers.cpp @@ -0,0 +1,709 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::HelpHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + 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_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + 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_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpHUDCamera__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpScene__osgViewer_ViewerBase_P1, + "", + ""); + I_SimpleProperty(osg::ApplicationUsage *, ApplicationUsage, + __osg_ApplicationUsage_P1__getApplicationUsage, + __void__setApplicationUsage__osg_ApplicationUsage_P1); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(int, KeyEventTogglesOnScreenHelp, + __int__getKeyEventTogglesOnScreenHelp, + __void__setKeyEventTogglesOnScreenHelp__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::InteractiveImageHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osg::Drawable::CullCallback); + I_Constructor1(IN, osg::Image *, image, + Properties::NON_EXPLICIT, + ____InteractiveImageHandler__osg_Image_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 *, 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_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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + 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. ", + ""); + I_ProtectedConstructor0(____InteractiveImageHandler, + "", + ""); + I_ProtectedConstructorWithDefaults2(IN, const osgViewer::InteractiveImageHandler &, x, , IN, const osg::CopyOp &, x, osg::CopyOp::SHALLOW_COPY, + ____InteractiveImageHandler__C5_InteractiveImageHandler_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod5(bool, mousePosition, IN, osgViewer::View *, view, IN, osg::NodeVisitor *, nv, IN, const osgGA::GUIEventAdapter &, ea, IN, int &, x, IN, int &, y, + Properties::NON_VIRTUAL, + Properties::CONST, + __bool__mousePosition__osgViewer_View_P1__osg_NodeVisitor_P1__C5_osgGA_GUIEventAdapter_R1__int_R1__int_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::LODScaleHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____LODScaleHandler, + "", + ""); + I_Method1(void, setKeyEventIncreaseLODScale, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventIncreaseLODScale__int, + "", + ""); + I_Method0(int, getKeyEventIncreaseLODScale, + Properties::NON_VIRTUAL, + __int__getKeyEventIncreaseLODScale, + "", + ""); + I_Method1(void, setKeyEventDecreaseLODScale, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventDecreaseLODScale__int, + "", + ""); + I_Method0(int, getKeyEventDecreaseLODScale, + Properties::NON_VIRTUAL, + __int__getKeyEventDecreaseLODScale, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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_SimpleProperty(int, KeyEventDecreaseLODScale, + __int__getKeyEventDecreaseLODScale, + __void__setKeyEventDecreaseLODScale__int); + I_SimpleProperty(int, KeyEventIncreaseLODScale, + __int__getKeyEventIncreaseLODScale, + __void__setKeyEventIncreaseLODScale__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::RecordCameraPathHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults2(IN, const std::string &, filename, "saved_animation.path", IN, float, fps, 25.0f, + ____RecordCameraPathHandler__C5_std_string_R1__float, + "", + ""); + I_Method1(void, setKeyEventToggleRecord, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleRecord__int, + "", + ""); + I_Method0(int, getKeyEventToggleRecord, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleRecord, + "", + ""); + I_Method1(void, setKeyEventTogglePlayback, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTogglePlayback__int, + "", + ""); + I_Method0(int, getKeyEventTogglePlayback, + Properties::NON_VIRTUAL, + __int__getKeyEventTogglePlayback, + "", + ""); + I_MethodWithDefaults1(void, setAutoIncrementFilename, IN, bool, autoinc, true, + Properties::NON_VIRTUAL, + __void__setAutoIncrementFilename__bool, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, x, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(bool, AutoIncrementFilename, + 0, + __void__setAutoIncrementFilename__bool); + I_SimpleProperty(int, KeyEventTogglePlayback, + __int__getKeyEventTogglePlayback, + __void__setKeyEventTogglePlayback__int); + I_SimpleProperty(int, KeyEventToggleRecord, + __int__getKeyEventToggleRecord, + __void__setKeyEventToggleRecord__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults2(IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, defaultOperation, 0, IN, int, numFrames, 1, + ____ScreenCaptureHandler__CaptureOperation_P1__int, + "", + " param numFrames >0: capture that number of frames. <0: capture all frames, call stopCapture() to stop it. "); + I_Method1(void, setKeyEventTakeScreenShot, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventTakeScreenShot__int, + "", + ""); + I_Method0(int, getKeyEventTakeScreenShot, + Properties::NON_VIRTUAL, + __int__getKeyEventTakeScreenShot, + "", + ""); + I_Method1(void, setKeyEventToggleContinuousCapture, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleContinuousCapture__int, + "", + ""); + I_Method0(int, getKeyEventToggleContinuousCapture, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleContinuousCapture, + "", + ""); + I_Method1(void, setCaptureOperation, IN, osgViewer::ScreenCaptureHandler::CaptureOperation *, operation, + Properties::NON_VIRTUAL, + __void__setCaptureOperation__CaptureOperation_P1, + "", + ""); + I_Method0(osgViewer::ScreenCaptureHandler::CaptureOperation *, getCaptureOperation, + Properties::NON_VIRTUAL, + __CaptureOperation_P1__getCaptureOperation, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, captureNextFrame, IN, osgViewer::ViewerBase &, viewer, + Properties::VIRTUAL, + __void__captureNextFrame__osgViewer_ViewerBase_R1, + "Capture the given viewer's views on the next frame. ", + ""); + I_Method1(void, setFramesToCapture, IN, int, numFrames, + Properties::NON_VIRTUAL, + __void__setFramesToCapture__int, + "Set the number of frames to capture. ", + " param numFrames >0: capture that number of frames. <0: capture all frames, call stopCapture() to stop it. "); + I_Method0(int, getFramesToCapture, + Properties::NON_VIRTUAL, + __int__getFramesToCapture, + "Get the number of frames to capture. ", + ""); + I_Method0(void, startCapture, + Properties::NON_VIRTUAL, + __void__startCapture, + "Start capturing any viewer(s) the handler is attached to at the end of the next frame. ", + ""); + I_Method0(void, stopCapture, + Properties::NON_VIRTUAL, + __void__stopCapture, + "Stop capturing. ", + ""); + 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_ProtectedMethod1(void, addCallbackToViewer, IN, osgViewer::ViewerBase &, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__addCallbackToViewer__osgViewer_ViewerBase_R1, + "", + ""); + I_ProtectedMethod1(void, removeCallbackFromViewer, IN, osgViewer::ViewerBase &, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__removeCallbackFromViewer__osgViewer_ViewerBase_R1, + "", + ""); + I_ProtectedMethod1(osg::Camera *, findAppropriateCameraForCallback, IN, osgViewer::ViewerBase &, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Camera_P1__findAppropriateCameraForCallback__osgViewer_ViewerBase_R1, + "", + ""); + I_SimpleProperty(osgViewer::ScreenCaptureHandler::CaptureOperation *, CaptureOperation, + __CaptureOperation_P1__getCaptureOperation, + __void__setCaptureOperation__CaptureOperation_P1); + I_SimpleProperty(int, FramesToCapture, + __int__getFramesToCapture, + __void__setFramesToCapture__int); + I_SimpleProperty(int, KeyEventTakeScreenShot, + __int__getKeyEventTakeScreenShot, + __void__setKeyEventTakeScreenShot__int); + I_SimpleProperty(int, KeyEventToggleContinuousCapture, + __int__getKeyEventToggleContinuousCapture, + __void__setKeyEventToggleContinuousCapture__int); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::CaptureOperation) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osg::Referenced); + I_Constructor0(____CaptureOperation, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::OVERWRITE); + I_EnumLabel(osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ScreenCaptureHandler::WriteToFile) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgViewer::ScreenCaptureHandler::CaptureOperation); + I_ConstructorWithDefaults3(IN, const std::string &, filename, , IN, const std::string &, extension, , IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, osgViewer::ScreenCaptureHandler::WriteToFile::SEQUENTIAL_NUMBER, + ____WriteToFile__C5_std_string_R1__C5_std_string_R1__SavePolicy, + "", + ""); + I_Method1(void, setSavePolicy, IN, osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, savePolicy, + Properties::NON_VIRTUAL, + __void__setSavePolicy__SavePolicy, + "", + ""); + I_Method0(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, getSavePolicy, + Properties::NON_VIRTUAL, + __SavePolicy__getSavePolicy, + "", + ""); + I_SimpleProperty(osgViewer::ScreenCaptureHandler::WriteToFile::SavePolicy, SavePolicy, + __SavePolicy__getSavePolicy, + __void__setSavePolicy__SavePolicy); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgViewer::StatsHandler::StatsType) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_EnumLabel(osgViewer::StatsHandler::NO_STATS); + I_EnumLabel(osgViewer::StatsHandler::FRAME_RATE); + I_EnumLabel(osgViewer::StatsHandler::VIEWER_STATS); + I_EnumLabel(osgViewer::StatsHandler::CAMERA_SCENE_STATS); + I_EnumLabel(osgViewer::StatsHandler::VIEWER_SCENE_STATS); + I_EnumLabel(osgViewer::StatsHandler::LAST); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::StatsHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + 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_Method0(double, getBlockMultiplier, + Properties::NON_VIRTUAL, + __double__getBlockMultiplier, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + 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_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + 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_ProtectedMethod1(void, setUpHUDCamera, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpHUDCamera__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createBackgroundRectangle, IN, const osg::Vec3 &, pos, IN, const float, width, IN, const float, height, IN, osg::Vec4 &, color, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createBackgroundRectangle__C5_osg_Vec3_R1__C5_float__C5_float__osg_Vec4_R1, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createGeometry, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createGeometry__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createFrameMarkers, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numBlocks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createFrameMarkers__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod4(osg::Geometry *, createTick, IN, const osg::Vec3 &, pos, IN, float, height, IN, const osg::Vec4 &, colour, IN, unsigned int, numTicks, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geometry_P1__createTick__C5_osg_Vec3_R1__float__C5_osg_Vec4_R1__unsigned_int, + "", + ""); + I_ProtectedMethod7(osg::Node *, createCameraTimeStats, IN, const std::string &, font, IN, osg::Vec3 &, pos, IN, float, startBlocks, IN, bool, acquireGPUStats, IN, float, characterSize, IN, osg::Stats *, viewerStats, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Node_P1__createCameraTimeStats__C5_std_string_R1__osg_Vec3_R1__float__bool__float__osg_Stats_P1__osg_Camera_P1, + "", + ""); + I_ProtectedMethod1(void, setUpScene, IN, osgViewer::ViewerBase *, viewer, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setUpScene__osgViewer_ViewerBase_P1, + "", + ""); + I_ProtectedMethod0(void, updateThreadingModelText, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__updateThreadingModelText, + "", + ""); + I_SimpleProperty(double, BlockMultiplier, + __double__getBlockMultiplier, + 0); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + 0); + I_SimpleProperty(int, KeyEventPrintsOutStats, + __int__getKeyEventPrintsOutStats, + __void__setKeyEventPrintsOutStats__int); + I_SimpleProperty(int, KeyEventTogglesOnScreenStats, + __int__getKeyEventTogglesOnScreenStats, + __void__setKeyEventTogglesOnScreenStats__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::ThreadingHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____ThreadingHandler, + "", + ""); + 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, setKeyEventChangeThreadingModel, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventChangeThreadingModel__int, + "", + ""); + I_Method0(int, getKeyEventChangeThreadingModel, + Properties::NON_VIRTUAL, + __int__getKeyEventChangeThreadingModel, + "", + ""); + I_Method1(void, setChangeThreadingModel, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeThreadingModel__bool, + "", + ""); + I_Method0(bool, getChangeThreadingModel, + Properties::NON_VIRTUAL, + __bool__getChangeThreadingModel, + "", + ""); + I_Method1(void, setKeyEventChangeEndBarrierPosition, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventChangeEndBarrierPosition__int, + "", + ""); + I_Method0(int, getKeyEventChangeEndBarrierPosition, + Properties::NON_VIRTUAL, + __int__getKeyEventChangeEndBarrierPosition, + "", + ""); + I_Method1(void, setChangeEndBarrierPosition, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeEndBarrierPosition__bool, + "", + ""); + I_Method0(bool, getChangeEndBarrierPosition, + Properties::NON_VIRTUAL, + __bool__getChangeEndBarrierPosition, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(bool, ChangeEndBarrierPosition, + __bool__getChangeEndBarrierPosition, + __void__setChangeEndBarrierPosition__bool); + I_SimpleProperty(bool, ChangeThreadingModel, + __bool__getChangeThreadingModel, + __void__setChangeThreadingModel__bool); + I_SimpleProperty(int, KeyEventChangeEndBarrierPosition, + __int__getKeyEventChangeEndBarrierPosition, + __void__setKeyEventChangeEndBarrierPosition__int); + I_SimpleProperty(int, KeyEventChangeThreadingModel, + __int__getKeyEventChangeThreadingModel, + __void__setKeyEventChangeThreadingModel__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgViewer::WindowSizeHandler) + I_DeclaringFile("osgViewer/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor0(____WindowSizeHandler, + "", + ""); + 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, setKeyEventToggleFullscreen, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventToggleFullscreen__int, + "", + ""); + I_Method0(int, getKeyEventToggleFullscreen, + Properties::NON_VIRTUAL, + __int__getKeyEventToggleFullscreen, + "", + ""); + I_Method1(void, setToggleFullscreen, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setToggleFullscreen__bool, + "", + ""); + I_Method0(bool, getToggleFullscreen, + Properties::NON_VIRTUAL, + __bool__getToggleFullscreen, + "", + ""); + I_Method1(void, setKeyEventWindowedResolutionUp, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventWindowedResolutionUp__int, + "", + ""); + I_Method0(int, getKeyEventWindowedResolutionUp, + Properties::NON_VIRTUAL, + __int__getKeyEventWindowedResolutionUp, + "", + ""); + I_Method1(void, setKeyEventWindowedResolutionDown, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventWindowedResolutionDown__int, + "", + ""); + I_Method0(int, getKeyEventWindowedResolutionDown, + Properties::NON_VIRTUAL, + __int__getKeyEventWindowedResolutionDown, + "", + ""); + I_Method1(void, setChangeWindowedResolution, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setChangeWindowedResolution__bool, + "", + ""); + I_Method0(bool, getChangeWindowedResolution, + Properties::NON_VIRTUAL, + __bool__getChangeWindowedResolution, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Deprecated, Handle events, return true if handled, false otherwise. ", + ""); + I_ProtectedMethod1(void, toggleFullscreen, IN, osgViewer::GraphicsWindow *, window, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__toggleFullscreen__osgViewer_GraphicsWindow_P1, + "", + ""); + I_ProtectedMethod2(void, changeWindowedResolution, IN, osgViewer::GraphicsWindow *, window, IN, bool, increase, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__changeWindowedResolution__osgViewer_GraphicsWindow_P1__bool, + "", + ""); + I_ProtectedMethod4(unsigned int, getNearestResolution, IN, int, screenWidth, IN, int, screenHeight, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + Properties::CONST, + __unsigned_int__getNearestResolution__int__int__int__int, + "", + ""); + I_SimpleProperty(bool, ChangeWindowedResolution, + __bool__getChangeWindowedResolution, + __void__setChangeWindowedResolution__bool); + I_SimpleProperty(int, KeyEventToggleFullscreen, + __int__getKeyEventToggleFullscreen, + __void__setKeyEventToggleFullscreen__int); + I_SimpleProperty(int, KeyEventWindowedResolutionDown, + __int__getKeyEventWindowedResolutionDown, + __void__setKeyEventWindowedResolutionDown__int); + I_SimpleProperty(int, KeyEventWindowedResolutionUp, + __int__getKeyEventWindowedResolutionUp, + __void__setKeyEventWindowedResolutionUp__int); + I_SimpleProperty(bool, ToggleFullscreen, + __bool__getToggleFullscreen, + __void__setToggleFullscreen__bool); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/Carbon/GraphicsHandleCarbon.cpp b/src/osgWrappers/introspection/osgViewer/api/Carbon/GraphicsHandleCarbon.cpp new file mode 100644 index 000000000..76fa911e7 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/Carbon/GraphicsHandleCarbon.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgViewer::GraphicsHandleCarbon) + I_DeclaringFile("osgViewer/api/Carbon/GraphicsHandleCarbon"); + I_Constructor0(____GraphicsHandleCarbon, + "", + ""); + I_Method1(void, setAGLContext, IN, AGLContext, context, + Properties::NON_VIRTUAL, + __void__setAGLContext__AGLContext, + "Set native AGL graphics context. ", + ""); + I_Method0(AGLContext, getAGLContext, + Properties::NON_VIRTUAL, + __AGLContext__getAGLContext, + "Get native AGL graphics context. ", + ""); + I_SimpleProperty(AGLContext, AGLContext, + __AGLContext__getAGLContext, + __void__setAGLContext__AGLContext); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/Cocoa/GraphicsHandleCocoa.cpp b/src/osgWrappers/introspection/osgViewer/api/Cocoa/GraphicsHandleCocoa.cpp new file mode 100644 index 000000000..f85b876ef --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/Cocoa/GraphicsHandleCocoa.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgViewer::GraphicsHandleCocoa) + I_DeclaringFile("osgViewer/api/Cocoa/GraphicsHandleCocoa"); + I_Constructor0(____GraphicsHandleCocoa, + "", + ""); + I_Method1(void, setNSOpenGLContext, IN, NSOpenGLContext *, context, + Properties::NON_VIRTUAL, + __void__setNSOpenGLContext__NSOpenGLContext_P1, + "Set native AGL graphics context. ", + ""); + I_Method0(NSOpenGLContext *, getNSOpenGLContext, + Properties::NON_VIRTUAL, + __NSOpenGLContext_P1__getNSOpenGLContext, + "Get native AGL graphics context. ", + ""); + I_SimpleProperty(NSOpenGLContext *, NSOpenGLContext, + __NSOpenGLContext_P1__getNSOpenGLContext, + __void__setNSOpenGLContext__NSOpenGLContext_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/Win32/GraphicsHandleWin32.cpp b/src/osgWrappers/introspection/osgViewer/api/Win32/GraphicsHandleWin32.cpp new file mode 100644 index 000000000..3872b858c --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/Win32/GraphicsHandleWin32.cpp @@ -0,0 +1,68 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgViewer::GraphicsHandleWin32) + I_DeclaringFile("osgViewer/api/Win32/GraphicsHandleWin32"); + I_Constructor0(____GraphicsHandleWin32, + "", + ""); + I_Method1(void, setHWND, IN, HWND, hwnd, + Properties::NON_VIRTUAL, + __void__setHWND__HWND, + "Set native window. ", + ""); + I_Method0(HWND, getHWND, + Properties::NON_VIRTUAL, + __HWND__getHWND, + "Get native window. ", + ""); + I_Method1(void, setHDC, IN, HDC, hdc, + Properties::NON_VIRTUAL, + __void__setHDC__HDC, + "Set device context. ", + ""); + I_Method0(HDC, getHDC, + Properties::NON_VIRTUAL, + __HDC__getHDC, + "Get device context. ", + ""); + I_Method1(void, setWGLContext, IN, HGLRC, hglrc, + Properties::NON_VIRTUAL, + __void__setWGLContext__HGLRC, + "Set native OpenGL graphics context. ", + ""); + I_Method0(HGLRC, getWGLContext, + Properties::NON_VIRTUAL, + __HGLRC__getWGLContext, + "Get native OpenGL graphics context. ", + ""); + I_SimpleProperty(HDC, HDC, + __HDC__getHDC, + __void__setHDC__HDC); + I_SimpleProperty(HWND, HWND, + __HWND__getHWND, + __void__setHWND__HWND); + I_SimpleProperty(HGLRC, WGLContext, + __HGLRC__getWGLContext, + __void__setWGLContext__HGLRC); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/Win32/PixelBufferWin32.cpp b/src/osgWrappers/introspection/osgViewer/api/Win32/PixelBufferWin32.cpp new file mode 100644 index 000000000..3960cd64a --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/Win32/PixelBufferWin32.cpp @@ -0,0 +1,101 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::PixelBufferWin32) + I_DeclaringFile("osgViewer/api/Win32/PixelBufferWin32"); + I_BaseType(osg::GraphicsContext); + I_BaseType(osgViewer::GraphicsHandleWin32); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, + ____PixelBufferWin32__osg_GraphicsContext_Traits_P1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(bool, valid, + Properties::VIRTUAL, + __bool__valid, + "Return whether a valid and usable GraphicsContext has been created. ", + ""); + I_Method0(bool, realizeImplementation, + Properties::VIRTUAL, + __bool__realizeImplementation, + "Realize the GraphicsContext. ", + ""); + I_Method0(bool, isRealizedImplementation, + Properties::VIRTUAL, + __bool__isRealizedImplementation, + "Return true if the graphics context has been realized 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 *, x, + Properties::VIRTUAL, + __bool__makeContextCurrentImplementation__GraphicsContext_P1, + "", + ""); + I_Method0(bool, releaseContextImplementation, + Properties::VIRTUAL, + __bool__releaseContextImplementation, + "Release the graphics context. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers. ", + ""); + I_Method1(void, bindPBufferToTextureImplementation, IN, GLenum, buffer, + Properties::VIRTUAL, + __void__bindPBufferToTextureImplementation__GLenum, + "Pure virtual, Bind the graphics context to associated texture implementation. ", + "Pure virtual - must be implemented by concrete implementations of GraphicsContext. "); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/X11/GraphicsHandleX11.cpp b/src/osgWrappers/introspection/osgViewer/api/X11/GraphicsHandleX11.cpp new file mode 100644 index 000000000..66dd4d942 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/X11/GraphicsHandleX11.cpp @@ -0,0 +1,59 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(GLXContext, osgViewer::GraphicsHandleX11::Context) + +TYPE_NAME_ALIAS(GLXPbuffer, osgViewer::GraphicsHandleX11::Pbuffer) + +BEGIN_VALUE_REFLECTOR(osgViewer::GraphicsHandleX11) + I_DeclaringFile("osgViewer/api/X11/GraphicsHandleX11"); + I_Constructor0(____GraphicsHandleX11, + "", + ""); + I_Method1(void, setDisplay, IN, Display *, display, + Properties::NON_VIRTUAL, + __void__setDisplay__Display_P1, + "Set X11 display. ", + ""); + I_Method0(Display *, getDisplay, + Properties::NON_VIRTUAL, + __Display_P1__getDisplay, + "Get X11 display. ", + ""); + I_Method1(void, setContext, IN, osgViewer::GraphicsHandleX11::Context, context, + Properties::NON_VIRTUAL, + __void__setContext__Context, + "Set native OpenGL graphics context. ", + ""); + I_Method0(osgViewer::GraphicsHandleX11::Context, getContext, + Properties::NON_VIRTUAL, + __Context__getContext, + "Get native OpenGL graphics context. ", + ""); + I_SimpleProperty(osgViewer::GraphicsHandleX11::Context, Context, + __Context__getContext, + __void__setContext__Context); + I_SimpleProperty(Display *, Display, + __Display_P1__getDisplay, + __void__setDisplay__Display_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgViewer/api/X11/PixelBufferX11.cpp b/src/osgWrappers/introspection/osgViewer/api/X11/PixelBufferX11.cpp new file mode 100644 index 000000000..3cf5748f7 --- /dev/null +++ b/src/osgWrappers/introspection/osgViewer/api/X11/PixelBufferX11.cpp @@ -0,0 +1,116 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgViewer::PixelBufferX11) + I_DeclaringFile("osgViewer/api/X11/PixelBufferX11"); + I_BaseType(osg::GraphicsContext); + I_BaseType(osgViewer::GraphicsHandleX11); + I_Constructor1(IN, osg::GraphicsContext::Traits *, traits, + Properties::NON_EXPLICIT, + ____PixelBufferX11__osg_GraphicsContext_Traits_P1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, object, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_Method0(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. ", + ""); + 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 implementation. ", + ""); + 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 implementation. ", + ""); + I_Method0(void, swapBuffersImplementation, + Properties::VIRTUAL, + __void__swapBuffersImplementation, + "Swap the front and back buffers. ", + ""); + I_Method0(osgViewer::GraphicsHandleX11::Pbuffer &, getPbuffer, + Properties::NON_VIRTUAL, + __Pbuffer_R1__getPbuffer, + "", + ""); + I_ProtectedMethod0(bool, createVisualInfo, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool__createVisualInfo, + "", + ""); + I_ProtectedMethod0(void, init, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__init, + "", + ""); + I_SimpleProperty(osgViewer::GraphicsHandleX11::Pbuffer &, Pbuffer, + __Pbuffer_R1__getPbuffer, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/Export.cpp b/src/osgWrappers/introspection/osgVolume/Export.cpp new file mode 100644 index 000000000..8d6e72af6 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/Export.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + diff --git a/src/osgWrappers/introspection/osgVolume/FixedFunctionTechnique.cpp b/src/osgWrappers/introspection/osgVolume/FixedFunctionTechnique.cpp new file mode 100644 index 000000000..64725a996 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/FixedFunctionTechnique.cpp @@ -0,0 +1,102 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::FixedFunctionTechnique) + I_DeclaringFile("osgVolume/FixedFunctionTechnique"); + I_BaseType(osgVolume::VolumeTechnique); + I_Constructor0(____FixedFunctionTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::FixedFunctionTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____FixedFunctionTechnique__C5_FixedFunctionTechnique_R1__C5_osg_CopyOp_R1, + "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 &, 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, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method1(void, setNumSlices, IN, unsigned int, numSlices, + Properties::NON_VIRTUAL, + __void__setNumSlices__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumSlices, + Properties::NON_VIRTUAL, + __unsigned_int__getNumSlices, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terrain subgraph. ", + ""); + I_SimpleProperty(unsigned int, NumSlices, + 0, + __void__setNumSlices__unsigned_int); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/Layer.cpp b/src/osgWrappers/introspection/osgVolume/Layer.cpp new file mode 100644 index 000000000..11ac87d01 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/Layer.cpp @@ -0,0 +1,536 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::CompositeLayer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osgVolume::Layer); + I_Constructor0(____CompositeLayer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::CompositeLayer &, compositeLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeLayer__C5_CompositeLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method2(void, setFileName, IN, unsigned int, i, 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, i, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getFileName__unsigned_int, + "", + ""); + I_Method2(void, setLayer, IN, unsigned int, i, IN, osgVolume::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setLayer__unsigned_int__Layer_P1, + "", + ""); + I_Method1(osgVolume::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(const osgVolume::Layer *, getLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getLayer__unsigned_int, + "", + ""); + I_Method1(void, addLayer, IN, osgVolume::Layer *, layer, + Properties::NON_VIRTUAL, + __void__addLayer__Layer_P1, + "", + ""); + I_Method1(void, removeLayer, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeLayer__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumLayers, + Properties::NON_VIRTUAL, + __unsigned_int__getNumLayers, + "", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::VIRTUAL, + __bool__requiresUpdateTraversal, + "Specify whether ImageLayer requires update traversal. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "Call update on the Layer. ", + ""); + I_IndexedProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName__unsigned_int, + __void__setFileName__unsigned_int__C5_std_string_R1, + 0); + I_ArrayProperty(osgVolume::Layer *, Layer, + __Layer_P1__getLayer__unsigned_int, + __void__setLayer__unsigned_int__Layer_P1, + __unsigned_int__getNumLayers, + __void__addLayer__Layer_P1, + 0, + __void__removeLayer__unsigned_int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::ImageDetails) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osg::Object); + I_Constructor0(____ImageDetails, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::ImageDetails &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageDetails__C5_ImageDetails_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setTexelOffset, IN, const osg::Vec4 &, offset, + Properties::NON_VIRTUAL, + __void__setTexelOffset__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getTexelOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getTexelOffset, + "", + ""); + I_Method1(void, setTexelScale, IN, const osg::Vec4 &, scale, + Properties::NON_VIRTUAL, + __void__setTexelScale__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getTexelScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getTexelScale, + "", + ""); + I_Method1(void, setMatrix, IN, osg::RefMatrix *, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__osg_RefMatrix_P1, + "", + ""); + I_Method0(osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, + __osg_RefMatrix_P1__getMatrix, + "", + ""); + I_Method0(const osg::RefMatrix *, getMatrix, + Properties::NON_VIRTUAL, + __C5_osg_RefMatrix_P1__getMatrix, + "", + ""); + I_SimpleProperty(osg::RefMatrix *, Matrix, + __osg_RefMatrix_P1__getMatrix, + __void__setMatrix__osg_RefMatrix_P1); + I_SimpleProperty(const osg::Vec4 &, TexelOffset, + __C5_osg_Vec4_R1__getTexelOffset, + __void__setTexelOffset__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, TexelScale, + __C5_osg_Vec4_R1__getTexelScale, + __void__setTexelScale__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::ImageLayer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osgVolume::Layer); + I_ConstructorWithDefaults1(IN, osg::Image *, image, 0, + Properties::NON_EXPLICIT, + ____ImageLayer__osg_Image_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::ImageLayer &, imageLayer, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ImageLayer__C5_ImageLayer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer. ", + ""); + I_Method1(void, setTexelOffset, IN, const osg::Vec4 &, offset, + Properties::NON_VIRTUAL, + __void__setTexelOffset__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getTexelOffset, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getTexelOffset, + "", + ""); + I_Method1(void, setTexelScale, IN, const osg::Vec4 &, scale, + Properties::NON_VIRTUAL, + __void__setTexelScale__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getTexelScale, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getTexelScale, + "", + ""); + I_Method2(bool, computeMinMax, IN, osg::Vec4 &, min, IN, osg::Vec4 &, max, + Properties::NON_VIRTUAL, + __bool__computeMinMax__osg_Vec4_R1__osg_Vec4_R1, + "Compute the min and max pixel colors. ", + ""); + I_Method2(void, offsetAndScaleImage, IN, const osg::Vec4 &, offset, IN, const osg::Vec4 &, scale, + Properties::NON_VIRTUAL, + __void__offsetAndScaleImage__C5_osg_Vec4_R1__C5_osg_Vec4_R1, + "Apply color transformation to pixels using c' = offset + c * scale . ", + ""); + I_Method0(void, rescaleToZeroToOneRange, + Properties::NON_VIRTUAL, + __void__rescaleToZeroToOneRange, + "Compute the min max range of the image, and then remap this to a 0 to 1 range. ", + ""); + I_Method0(void, translateMinToZero, + Properties::NON_VIRTUAL, + __void__translateMinToZero, + "Compute the min color component of the image and then translate and pixels by this offset to make the new min component 0. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::VIRTUAL, + __bool__requiresUpdateTraversal, + "Specify whether ImageLayer requires update traversal. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "Call update on the Layer. ", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned int, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned_int, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(const osg::Vec4 &, TexelOffset, + __C5_osg_Vec4_R1__getTexelOffset, + __void__setTexelOffset__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, TexelScale, + __C5_osg_Vec4_R1__getTexelScale, + __void__setTexelScale__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::Layer) + I_DeclaringFile("osgVolume/Layer"); + I_BaseType(osg::Object); + I_Constructor0(____Layer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Layer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Layer__C5_Layer_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setFileName, IN, const std::string &, filename, + Properties::VIRTUAL, + __void__setFileName__C5_std_string_R1, + "Set the file name of the data associated with this layer. ", + ""); + I_Method0(const std::string &, getFileName, + Properties::VIRTUAL, + __C5_std_string_R1__getFileName, + "Get the file name of the layer. ", + ""); + I_Method1(void, setLocator, IN, osgVolume::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "", + ""); + I_Method0(osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "", + ""); + I_Method0(const osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "", + ""); + I_Method1(void, setDefaultValue, IN, const osg::Vec4 &, value, + Properties::NON_VIRTUAL, + __void__setDefaultValue__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getDefaultValue, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getDefaultValue, + "", + ""); + I_Method1(void, setMinFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMinFilter__osg_Texture_FilterMode, + "Set the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMinFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMinFilter, + "Get the minification texture filter to use when do texture associated with this layer. ", + ""); + I_Method1(void, setMagFilter, IN, osg::Texture::FilterMode, filter, + Properties::NON_VIRTUAL, + __void__setMagFilter__osg_Texture_FilterMode, + "Set the magniification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Texture::FilterMode, getMagFilter, + Properties::NON_VIRTUAL, + __osg_Texture_FilterMode__getMagFilter, + "Get the magnification texture filter to use when do texture associated with this layer. ", + ""); + I_Method0(osg::Image *, getImage, + Properties::VIRTUAL, + __osg_Image_P1__getImage, + "Return image associated with layer if supported. ", + ""); + I_Method0(const osg::Image *, getImage, + Properties::VIRTUAL, + __C5_osg_Image_P1__getImage, + "Return const image associated with layer if supported. ", + ""); + I_Method1(void, setProperty, IN, osgVolume::Property *, property, + Properties::NON_VIRTUAL, + __void__setProperty__Property_P1, + "Set the Property (or Properties via the CompositeProperty) that informs the VolumeTechnique how this layer should be rendered. ", + ""); + I_Method0(osgVolume::Property *, getProperty, + Properties::NON_VIRTUAL, + __Property_P1__getProperty, + "Get the Property that informs the VolumeTechnique how this layer should be rendered. ", + ""); + I_Method0(const osgVolume::Property *, getProperty, + Properties::NON_VIRTUAL, + __C5_Property_P1__getProperty, + "Get the const Property that informs the VolumeTechnique how this layer should be rendered. ", + ""); + I_Method1(void, addProperty, IN, osgVolume::Property *, property, + Properties::NON_VIRTUAL, + __void__addProperty__Property_P1, + "Add a property, automatically creating a CompositePorperty if one isn't already assigned. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::VIRTUAL, + __bool__requiresUpdateTraversal, + "Specify whether ImageLayer requires update traversal. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, x, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "Call update on the Layer. ", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "increment the modified count. ", + "\" "); + I_Method1(void, setModifiedCount, IN, unsigned, int, + Properties::VIRTUAL, + __void__setModifiedCount__unsigned, + "Set the modified count value. ", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::VIRTUAL, + __unsigned_int__getModifiedCount, + "Get modified count value. ", + ""); + I_Method0(osg::BoundingSphere, computeBound, + Properties::VIRTUAL, + __osg_BoundingSphere__computeBound, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, DefaultValue, + __C5_osg_Vec4_R1__getDefaultValue, + __void__setDefaultValue__C5_osg_Vec4_R1); + I_SimpleProperty(const std::string &, FileName, + __C5_std_string_R1__getFileName, + __void__setFileName__C5_std_string_R1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + 0); + I_SimpleProperty(osgVolume::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(osg::Texture::FilterMode, MagFilter, + __osg_Texture_FilterMode__getMagFilter, + __void__setMagFilter__osg_Texture_FilterMode); + I_SimpleProperty(osg::Texture::FilterMode, MinFilter, + __osg_Texture_FilterMode__getMinFilter, + __void__setMinFilter__osg_Texture_FilterMode); + I_SimpleProperty(unsigned, ModifiedCount, + 0, + __void__setModifiedCount__unsigned); + I_SimpleProperty(osgVolume::Property *, Property, + __Property_P1__getProperty, + __void__setProperty__Property_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/Locator.cpp b/src/osgWrappers/introspection/osgVolume/Locator.cpp new file mode 100644 index 000000000..4dce12bce --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/Locator.cpp @@ -0,0 +1,225 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgVolume::Locator::LocatorCallback > >, osgVolume::Locator::LocatorCallbacks) + +BEGIN_OBJECT_REFLECTOR(osgVolume::Locator) + I_DeclaringFile("osgVolume/Locator"); + I_BaseType(osg::Object); + I_Constructor0(____Locator, + "", + ""); + I_Constructor1(IN, const osg::Matrixd &, transform, + Properties::NON_EXPLICIT, + ____Locator__C5_osg_Matrixd_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Locator &, locator, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Locator__C5_Locator_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, setTransform, IN, const osg::Matrixd &, transform, + Properties::NON_VIRTUAL, + __void__setTransform__C5_osg_Matrixd_R1, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method0(const osg::Matrixd &, getTransform, + Properties::NON_VIRTUAL, + __C5_osg_Matrixd_R1__getTransform, + "Set the transformation from local coordinates to model coordinates. ", + ""); + I_Method6(void, setTransformAsExtents, IN, double, minX, IN, double, minY, IN, double, maxX, IN, double, maxY, IN, double, minZ, IN, double, maxZ, + Properties::NON_VIRTUAL, + __void__setTransformAsExtents__double__double__double__double__double__double, + "Set the extents of the local coords. ", + ""); + I_Method2(bool, convertLocalToModel, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertLocalToModel__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, convertModelToLocal, IN, const osg::Vec3d &, x, IN, osg::Vec3d &, x, + Properties::VIRTUAL, + __bool__convertModelToLocal__C5_osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method2(bool, computeLocalBounds, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method3(bool, computeLocalBounds, IN, osgVolume::Locator &, source, IN, osg::Vec3d &, bottomLeft, IN, osg::Vec3d &, topRight, + Properties::NON_VIRTUAL, + __bool__computeLocalBounds__Locator_R1__osg_Vec3d_R1__osg_Vec3d_R1, + "", + ""); + I_Method1(void, addCallback, IN, osgVolume::Locator::LocatorCallback *, callback, + Properties::NON_VIRTUAL, + __void__addCallback__LocatorCallback_P1, + "", + ""); + I_Method1(void, removeCallback, IN, osgVolume::Locator::LocatorCallback *, callback, + Properties::NON_VIRTUAL, + __void__removeCallback__LocatorCallback_P1, + "", + ""); + I_Method0(osgVolume::Locator::LocatorCallbacks &, getLocatorCallbacks, + Properties::NON_VIRTUAL, + __LocatorCallbacks_R1__getLocatorCallbacks, + "", + ""); + I_Method0(const osgVolume::Locator::LocatorCallbacks &, getLocatorCallbacks, + Properties::NON_VIRTUAL, + __C5_LocatorCallbacks_R1__getLocatorCallbacks, + "", + ""); + I_StaticMethod4(bool, convertLocalCoordBetween, IN, const osgVolume::Locator &, source, IN, const osg::Vec3d &, sourceNDC, IN, const osgVolume::Locator &, destination, IN, osg::Vec3d &, destinationNDC, + __bool__convertLocalCoordBetween__C5_Locator_R1__C5_osg_Vec3d_R1__C5_Locator_R1__osg_Vec3d_R1_S, + "", + ""); + I_ProtectedMethod0(void, locatorModified, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__locatorModified, + "", + ""); + I_SimpleProperty(osgVolume::Locator::LocatorCallbacks &, LocatorCallbacks, + __LocatorCallbacks_R1__getLocatorCallbacks, + 0); + I_SimpleProperty(const osg::Matrixd &, Transform, + __C5_osg_Matrixd_R1__getTransform, + __void__setTransform__C5_osg_Matrixd_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::Locator::LocatorCallback) + I_DeclaringFile("osgVolume/Locator"); + I_VirtualBaseType(osg::Object); + I_Constructor0(____LocatorCallback, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Locator::LocatorCallback &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LocatorCallback__C5_LocatorCallback_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, locatorModified, IN, osgVolume::Locator *, locator, + Properties::VIRTUAL, + __void__locatorModified__Locator_P1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgVolume::Locator::LocatorCallback >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgVolume::Locator::LocatorCallback *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgVolume::Locator::LocatorCallback > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgVolume::Locator::LocatorCallback *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgVolume::Locator::LocatorCallback *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgVolume::Locator::LocatorCallback > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgVolume::Locator::LocatorCallback *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgVolume::Locator::LocatorCallback > >) + diff --git a/src/osgWrappers/introspection/osgVolume/Property.cpp b/src/osgWrappers/introspection/osgVolume/Property.cpp new file mode 100644 index 000000000..75791cab7 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/Property.cpp @@ -0,0 +1,919 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::AlphaFuncProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::ScalarProperty); + I_ConstructorWithDefaults1(IN, float, value, 1.0, + Properties::NON_EXPLICIT, + ____AlphaFuncProperty__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::AlphaFuncProperty &, isp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____AlphaFuncProperty__C5_AlphaFuncProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); + I_Method1(void, setValue, IN, float, v, + Properties::VIRTUAL, + __void__setValue__float, + "Set the value. ", + ""); + I_Method0(osg::AlphaFunc *, getAlphaFunc, + Properties::NON_VIRTUAL, + __osg_AlphaFunc_P1__getAlphaFunc, + "", + ""); + I_Method0(const osg::AlphaFunc *, getAlphaFunc, + Properties::NON_VIRTUAL, + __C5_osg_AlphaFunc_P1__getAlphaFunc, + "", + ""); + I_SimpleProperty(osg::AlphaFunc *, AlphaFunc, + __osg_AlphaFunc_P1__getAlphaFunc, + 0); + I_SimpleProperty(float, Value, + 0, + __void__setValue__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::CollectPropertiesVisitor) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::PropertyVisitor); + I_ConstructorWithDefaults1(IN, bool, traverseOnlyActiveChildren, true, + Properties::NON_EXPLICIT, + ____CollectPropertiesVisitor__bool, + "", + ""); + I_Method1(void, apply, IN, osgVolume::Property &, x, + Properties::VIRTUAL, + __void__apply__Property_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::TransferFunctionProperty &, x, + Properties::VIRTUAL, + __void__apply__TransferFunctionProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::ScalarProperty &, x, + Properties::VIRTUAL, + __void__apply__ScalarProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::IsoSurfaceProperty &, iso, + Properties::VIRTUAL, + __void__apply__IsoSurfaceProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::AlphaFuncProperty &, af, + Properties::VIRTUAL, + __void__apply__AlphaFuncProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::MaximumIntensityProjectionProperty &, mip, + Properties::VIRTUAL, + __void__apply__MaximumIntensityProjectionProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::LightingProperty &, lp, + Properties::VIRTUAL, + __void__apply__LightingProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::SampleDensityProperty &, sdp, + Properties::VIRTUAL, + __void__apply__SampleDensityProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::TransparencyProperty &, tp, + Properties::VIRTUAL, + __void__apply__TransparencyProperty_R1, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::TransferFunctionProperty >, _tfProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::IsoSurfaceProperty >, _isoProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::AlphaFuncProperty >, _afProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::MaximumIntensityProjectionProperty >, _mipProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::LightingProperty >, _lightingProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::SampleDensityProperty >, _sampleDensityProperty); + I_PublicMemberProperty(osg::ref_ptr< osgVolume::TransparencyProperty >, _transparencyProperty); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgVolume::Property > >, osgVolume::CompositeProperty::Properties) + +BEGIN_OBJECT_REFLECTOR(osgVolume::CompositeProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::Property); + I_Constructor0(____CompositeProperty, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::CompositeProperty &, compositeProperty, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____CompositeProperty__C5_CompositeProperty_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "", + ""); + I_Method2(void, setProperty, IN, unsigned int, i, IN, osgVolume::Property *, property, + Properties::NON_VIRTUAL, + __void__setProperty__unsigned_int__Property_P1, + "", + ""); + I_Method1(osgVolume::Property *, getProperty, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Property_P1__getProperty__unsigned_int, + "", + ""); + I_Method1(const osgVolume::Property *, getProperty, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Property_P1__getProperty__unsigned_int, + "", + ""); + I_Method1(void, addProperty, IN, osgVolume::Property *, property, + Properties::NON_VIRTUAL, + __void__addProperty__Property_P1, + "", + ""); + I_Method1(void, removeProperty, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __void__removeProperty__unsigned_int, + "", + ""); + I_Method0(unsigned int, getNumProperties, + Properties::NON_VIRTUAL, + __unsigned_int__getNumProperties, + "", + ""); + I_IndexedProperty(osgVolume::Property *, Property, + __Property_P1__getProperty__unsigned_int, + __void__setProperty__unsigned_int__Property_P1, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::IsoSurfaceProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::ScalarProperty); + I_ConstructorWithDefaults1(IN, float, value, 1.0, + Properties::NON_EXPLICIT, + ____IsoSurfaceProperty__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::IsoSurfaceProperty &, isp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____IsoSurfaceProperty__C5_IsoSurfaceProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::LightingProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::Property); + I_Constructor0(____LightingProperty, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::LightingProperty &, mipp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____LightingProperty__C5_LightingProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::MaximumIntensityProjectionProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::Property); + I_Constructor0(____MaximumIntensityProjectionProperty, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::MaximumIntensityProjectionProperty &, mipp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____MaximumIntensityProjectionProperty__C5_MaximumIntensityProjectionProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::Property) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osg::Object); + I_Constructor0(____Property, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Property &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Property__C5_Property_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::PropertyAdjustmentCallback) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osg::StateSet::Callback); + I_Constructor0(____PropertyAdjustmentCallback, + "", + ""); + I_Constructor2(IN, const osgVolume::PropertyAdjustmentCallback &, x, IN, const osg::CopyOp &, x, + ____PropertyAdjustmentCallback__C5_PropertyAdjustmentCallback_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, setKeyEventCycleForward, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventCycleForward__int, + "", + ""); + I_Method0(int, getKeyEventCyclesForward, + Properties::NON_VIRTUAL, + __int__getKeyEventCyclesForward, + "", + ""); + I_Method1(void, setKeyEventCycleBackward, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventCycleBackward__int, + "", + ""); + I_Method0(int, getKeyEventCyclesBackward, + Properties::NON_VIRTUAL, + __int__getKeyEventCyclesBackward, + "", + ""); + I_Method1(void, setKeyEventActivatesTransparencyAdjustment, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventActivatesTransparencyAdjustment__int, + "", + ""); + I_Method0(int, getKeyEventActivatesTransparencyAdjustment, + Properties::NON_VIRTUAL, + __int__getKeyEventActivatesTransparencyAdjustment, + "", + ""); + I_Method1(void, setKeyEventActivatesSampleDensityAdjustment, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventActivatesSampleDensityAdjustment__int, + "", + ""); + I_Method0(int, getKeyEventActivatesSampleAdjustment, + Properties::NON_VIRTUAL, + __int__getKeyEventActivatesSampleAdjustment, + "", + ""); + I_Method1(void, setKeyEventActivatesAlphaFuncAdjustment, IN, int, key, + Properties::NON_VIRTUAL, + __void__setKeyEventActivatesAlphaFuncAdjustment__int, + "", + ""); + I_Method0(int, getKeyEventActivatesAlphaFuncAdjustment, + Properties::NON_VIRTUAL, + __int__getKeyEventActivatesAlphaFuncAdjustment, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_SimpleProperty(int, KeyEventActivatesAlphaFuncAdjustment, + __int__getKeyEventActivatesAlphaFuncAdjustment, + __void__setKeyEventActivatesAlphaFuncAdjustment__int); + I_SimpleProperty(int, KeyEventActivatesSampleAdjustment, + __int__getKeyEventActivatesSampleAdjustment, + 0); + I_SimpleProperty(int, KeyEventActivatesSampleDensityAdjustment, + 0, + __void__setKeyEventActivatesSampleDensityAdjustment__int); + I_SimpleProperty(int, KeyEventActivatesTransparencyAdjustment, + __int__getKeyEventActivatesTransparencyAdjustment, + __void__setKeyEventActivatesTransparencyAdjustment__int); + I_SimpleProperty(int, KeyEventCycleBackward, + 0, + __void__setKeyEventCycleBackward__int); + I_SimpleProperty(int, KeyEventCycleForward, + 0, + __void__setKeyEventCycleForward__int); + I_SimpleProperty(int, KeyEventCyclesBackward, + __int__getKeyEventCyclesBackward, + 0); + I_SimpleProperty(int, KeyEventCyclesForward, + __int__getKeyEventCyclesForward, + 0); + I_PublicMemberProperty(int, _cyleForwardKey); + I_PublicMemberProperty(int, _cyleBackwardKey); + I_PublicMemberProperty(int, _transparencyKey); + I_PublicMemberProperty(int, _alphaFuncKey); + I_PublicMemberProperty(int, _sampleDensityKey); + I_PublicMemberProperty(bool, _updateTransparency); + I_PublicMemberProperty(bool, _updateAlphaCutOff); + I_PublicMemberProperty(bool, _updateSampleDensity); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgVolume::PropertyVisitor) + I_DeclaringFile("osgVolume/Property"); + I_ConstructorWithDefaults1(IN, bool, traverseOnlyActiveChildren, true, + Properties::NON_EXPLICIT, + ____PropertyVisitor__bool, + "", + ""); + I_Method1(void, apply, IN, osgVolume::Property &, x, + Properties::VIRTUAL, + __void__apply__Property_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::CompositeProperty &, x, + Properties::VIRTUAL, + __void__apply__CompositeProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::SwitchProperty &, x, + Properties::VIRTUAL, + __void__apply__SwitchProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::TransferFunctionProperty &, x, + Properties::VIRTUAL, + __void__apply__TransferFunctionProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::ScalarProperty &, x, + Properties::VIRTUAL, + __void__apply__ScalarProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::IsoSurfaceProperty &, x, + Properties::VIRTUAL, + __void__apply__IsoSurfaceProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::AlphaFuncProperty &, x, + Properties::VIRTUAL, + __void__apply__AlphaFuncProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::MaximumIntensityProjectionProperty &, x, + Properties::VIRTUAL, + __void__apply__MaximumIntensityProjectionProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::LightingProperty &, x, + Properties::VIRTUAL, + __void__apply__LightingProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::SampleDensityProperty &, x, + Properties::VIRTUAL, + __void__apply__SampleDensityProperty_R1, + "", + ""); + I_Method1(void, apply, IN, osgVolume::TransparencyProperty &, x, + Properties::VIRTUAL, + __void__apply__TransparencyProperty_R1, + "", + ""); + I_PublicMemberProperty(bool, _traverseOnlyActiveChildren); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::SampleDensityProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::ScalarProperty); + I_ConstructorWithDefaults1(IN, float, value, 1.0, + Properties::NON_EXPLICIT, + ____SampleDensityProperty__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::SampleDensityProperty &, isp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SampleDensityProperty__C5_SampleDensityProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::ScalarProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::Property); + I_Constructor2(IN, const std::string &, scaleName, IN, float, value, + ____ScalarProperty__C5_std_string_R1__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::ScalarProperty &, scalarProperty, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ScalarProperty__C5_ScalarProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); + I_Method1(void, setValue, IN, float, v, + Properties::VIRTUAL, + __void__setValue__float, + "Set the value. ", + ""); + I_Method0(float, getValue, + Properties::NON_VIRTUAL, + __float__getValue, + "Get the value. ", + ""); + I_Method0(osg::Uniform *, getUniform, + Properties::NON_VIRTUAL, + __osg_Uniform_P1__getUniform, + "Get the underlying uniform. ", + ""); + I_Method0(const osg::Uniform *, getUniform, + Properties::NON_VIRTUAL, + __C5_osg_Uniform_P1__getUniform, + "Get the underlying uniform. ", + ""); + I_ProtectedConstructor0(____ScalarProperty, + "", + ""); + I_SimpleProperty(osg::Uniform *, Uniform, + __osg_Uniform_P1__getUniform, + 0); + I_SimpleProperty(float, Value, + __float__getValue, + __void__setValue__float); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::SwitchProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::CompositeProperty); + I_Constructor0(____SwitchProperty, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::SwitchProperty &, switchProperty, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SwitchProperty__C5_SwitchProperty_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); + I_Method1(void, setActiveProperty, IN, int, i, + Properties::NON_VIRTUAL, + __void__setActiveProperty__int, + "Set which child property is active. ", + "-1 disables all children. "); + I_Method0(int, getActiveProperty, + Properties::NON_VIRTUAL, + __int__getActiveProperty, + "Get the active property. ", + ""); + I_SimpleProperty(int, ActiveProperty, + __int__getActiveProperty, + __void__setActiveProperty__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::TransferFunctionProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::Property); + I_ConstructorWithDefaults1(IN, osg::TransferFunction *, tf, 0, + Properties::NON_EXPLICIT, + ____TransferFunctionProperty__osg_TransferFunction_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::TransferFunctionProperty &, tfp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TransferFunctionProperty__C5_TransferFunctionProperty_R1__C5_osg_CopyOp_R1, + "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 &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); + I_Method1(void, setTransferFunction, IN, osg::TransferFunction *, tf, + Properties::NON_VIRTUAL, + __void__setTransferFunction__osg_TransferFunction_P1, + "Set the transfer function. ", + ""); + I_Method0(osg::TransferFunction *, getTransferFunction, + Properties::NON_VIRTUAL, + __osg_TransferFunction_P1__getTransferFunction, + "Get the transfer function. ", + ""); + I_Method0(const osg::TransferFunction *, getTransferFunction, + Properties::NON_VIRTUAL, + __C5_osg_TransferFunction_P1__getTransferFunction, + "Get the const transfer function. ", + ""); + I_SimpleProperty(osg::TransferFunction *, TransferFunction, + __osg_TransferFunction_P1__getTransferFunction, + __void__setTransferFunction__osg_TransferFunction_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::TransparencyProperty) + I_DeclaringFile("osgVolume/Property"); + I_BaseType(osgVolume::ScalarProperty); + I_ConstructorWithDefaults1(IN, float, value, 1.0, + Properties::NON_EXPLICIT, + ____TransparencyProperty__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::TransparencyProperty &, isp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TransparencyProperty__C5_TransparencyProperty_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, accept, IN, osgVolume::PropertyVisitor &, pv, + Properties::VIRTUAL, + __void__accept__PropertyVisitor_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgVolume::Property >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgVolume::Property *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgVolume::Property > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgVolume::Property *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgVolume::Property *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgVolume::Property > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgVolume::Property *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgVolume::Property > >) + diff --git a/src/osgWrappers/introspection/osgVolume/RayTracedTechnique.cpp b/src/osgWrappers/introspection/osgVolume/RayTracedTechnique.cpp new file mode 100644 index 000000000..70b4c54cb --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/RayTracedTechnique.cpp @@ -0,0 +1,89 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::RayTracedTechnique) + I_DeclaringFile("osgVolume/RayTracedTechnique"); + I_BaseType(osgVolume::VolumeTechnique); + I_Constructor0(____RayTracedTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::RayTracedTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RayTracedTechnique__C5_RayTracedTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terrain subgraph. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/Volume.cpp b/src/osgWrappers/introspection/osgVolume/Volume.cpp new file mode 100644 index 000000000..8cc6af978 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/Volume.cpp @@ -0,0 +1,120 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::Volume) + I_DeclaringFile("osgVolume/Volume"); + I_BaseType(osg::Group); + I_Constructor0(____Volume, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::Volume &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Volume__C5_Volume_R1__C5_osg_CopyOp_R1, + "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 &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method1(osgVolume::VolumeTile *, getVolumeTile, IN, const osgVolume::TileID &, tileID, + Properties::NON_VIRTUAL, + __VolumeTile_P1__getVolumeTile__C5_TileID_R1, + "Get the VolumeTile for a given VolumeTileID. ", + ""); + I_Method1(const osgVolume::VolumeTile *, getVolumeTile, IN, const osgVolume::TileID &, tileID, + Properties::NON_VIRTUAL, + __C5_VolumeTile_P1__getVolumeTile__C5_TileID_R1, + "Get the const VolumeTile for a given VolumeTileID. ", + ""); + I_Method1(void, setVolumeTechniquePrototype, IN, osgVolume::VolumeTechnique *, volumeTechnique, + Properties::NON_VIRTUAL, + __void__setVolumeTechniquePrototype__VolumeTechnique_P1, + "Set the VolumeTechnique prototype that nested VolumeTile should clone if they haven't already been assigned a volume rendering technique. ", + ""); + I_Method0(osgVolume::VolumeTechnique *, getVolumeTechniquePrototype, + Properties::NON_VIRTUAL, + __VolumeTechnique_P1__getVolumeTechniquePrototype, + "Get the VolumeTechnique prototype. ", + ""); + I_Method0(const osgVolume::VolumeTechnique *, getVolumeTechniquePrototype, + Properties::NON_VIRTUAL, + __C5_VolumeTechnique_P1__getVolumeTechniquePrototype, + "Get the const VolumeTechnique prototype. ", + ""); + I_ProtectedMethod0(void, dirtyRegisteredVolumeTiles, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__dirtyRegisteredVolumeTiles, + "", + ""); + I_ProtectedMethod1(void, registerVolumeTile, IN, osgVolume::VolumeTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__registerVolumeTile__VolumeTile_P1, + "", + ""); + I_ProtectedMethod1(void, unregisterVolumeTile, IN, osgVolume::VolumeTile *, tile, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__unregisterVolumeTile__VolumeTile_P1, + "", + ""); + I_SimpleProperty(osgVolume::VolumeTechnique *, VolumeTechniquePrototype, + __VolumeTechnique_P1__getVolumeTechniquePrototype, + __void__setVolumeTechniquePrototype__VolumeTechnique_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/VolumeTechnique.cpp b/src/osgWrappers/introspection/osgVolume/VolumeTechnique.cpp new file mode 100644 index 000000000..e2bcd4a9c --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/VolumeTechnique.cpp @@ -0,0 +1,109 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgVolume::VolumeTechnique) + I_DeclaringFile("osgVolume/VolumeTechnique"); + I_BaseType(osg::Object); + I_Constructor0(____VolumeTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::VolumeTechnique &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VolumeTechnique__C5_VolumeTechnique_R1__C5_osg_CopyOp_R1, + "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 &, 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(osgVolume::VolumeTile *, getVolumeTile, + Properties::NON_VIRTUAL, + __VolumeTile_P1__getVolumeTile, + "", + ""); + I_Method0(const osgVolume::VolumeTile *, getVolumeTile, + Properties::NON_VIRTUAL, + __C5_VolumeTile_P1__getVolumeTile, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "", + ""); + I_Method1(void, update, IN, osgUtil::UpdateVisitor *, nv, + Properties::VIRTUAL, + __void__update__osgUtil_UpdateVisitor_P1, + "", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor *, nv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_P1, + "", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any terrain technique specific nodes. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse the terrain subgraph. ", + ""); + I_ProtectedMethod1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void__setDirty__bool, + "", + ""); + I_SimpleProperty(osgVolume::VolumeTile *, VolumeTile, + __VolumeTile_P1__getVolumeTile, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgVolume/VolumeTile.cpp b/src/osgWrappers/introspection/osgVolume/VolumeTile.cpp new file mode 100644 index 000000000..63a7c5c25 --- /dev/null +++ b/src/osgWrappers/introspection/osgVolume/VolumeTile.cpp @@ -0,0 +1,205 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgVolume::TileID) + I_DeclaringFile("osgVolume/VolumeTile"); + I_Constructor0(____TileID, + "", + ""); + I_Constructor4(IN, int, in_level, IN, int, in_x, IN, int, in_y, IN, int, in_z, + ____TileID__int__int__int__int, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_PublicMemberProperty(int, level); + I_PublicMemberProperty(int, x); + I_PublicMemberProperty(int, y); + I_PublicMemberProperty(int, z); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgVolume::VolumeTile) + I_DeclaringFile("osgVolume/VolumeTile"); + I_BaseType(osg::Group); + I_Constructor0(____VolumeTile, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgVolume::VolumeTile &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VolumeTile__C5_VolumeTile_R1__C5_osg_CopyOp_R1, + "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 &, x, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "Traverse downwards : calls children's accept method with NodeVisitor. ", + ""); + I_Method0(void, init, + Properties::NON_VIRTUAL, + __void__init, + "Call init on any attached TerrainTechnique. ", + ""); + I_Method1(void, setVolume, IN, osgVolume::Volume *, ts, + Properties::NON_VIRTUAL, + __void__setVolume__Volume_P1, + "Set the Volume that this Volume tile is a member of. ", + ""); + I_Method0(osgVolume::Volume *, getVolume, + Properties::NON_VIRTUAL, + __Volume_P1__getVolume, + "Get the Volume that this Volume tile is a member of. ", + ""); + I_Method0(const osgVolume::Volume *, getVolume, + Properties::NON_VIRTUAL, + __C5_Volume_P1__getVolume, + "Get the const Volume that this Volume tile is a member of. ", + ""); + I_Method1(void, setTileID, IN, const osgVolume::TileID &, tileID, + Properties::NON_VIRTUAL, + __void__setTileID__C5_TileID_R1, + "Set the TileID (layer, x,y,z) of the VolumeTile. ", + "The TileID is used so it can be located by its neighbours via the enclosing Volume node that manages a map of TileID to VolumeTiles. "); + I_Method0(const osgVolume::TileID &, getTileID, + Properties::NON_VIRTUAL, + __C5_TileID_R1__getTileID, + "Get the TileID (layer, x,y,z) of the VolumeTile. ", + ""); + I_Method1(void, setLocator, IN, osgVolume::Locator *, locator, + Properties::NON_VIRTUAL, + __void__setLocator__Locator_P1, + "", + ""); + I_Method0(osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __Locator_P1__getLocator, + "", + ""); + I_Method0(const osgVolume::Locator *, getLocator, + Properties::NON_VIRTUAL, + __C5_Locator_P1__getLocator, + "", + ""); + I_Method1(void, setLayer, IN, osgVolume::Layer *, layer, + Properties::NON_VIRTUAL, + __void__setLayer__Layer_P1, + "", + ""); + I_Method0(osgVolume::Layer *, getLayer, + Properties::NON_VIRTUAL, + __Layer_P1__getLayer, + "", + ""); + I_Method0(const osgVolume::Layer *, getLayer, + Properties::NON_VIRTUAL, + __C5_Layer_P1__getLayer, + "", + ""); + I_Method1(void, setVolumeTechnique, IN, osgVolume::VolumeTechnique *, VolumeTechnique, + Properties::NON_VIRTUAL, + __void__setVolumeTechnique__VolumeTechnique_P1, + "Set the VolumeTechnique that will be used to render this tile. ", + ""); + I_Method0(osgVolume::VolumeTechnique *, getVolumeTechnique, + Properties::NON_VIRTUAL, + __VolumeTechnique_P1__getVolumeTechnique, + "Get the VolumeTechnique that will be used to render this tile. ", + ""); + I_Method0(const osgVolume::VolumeTechnique *, getVolumeTechnique, + Properties::NON_VIRTUAL, + __C5_VolumeTechnique_P1__getVolumeTechnique, + "Get the const VolumeTechnique that will be used to render this tile. ", + ""); + I_Method1(void, setDirty, IN, bool, dirty, + Properties::NON_VIRTUAL, + __void__setDirty__bool, + "Set the dirty flag on/off. ", + ""); + I_Method0(bool, getDirty, + Properties::NON_VIRTUAL, + __bool__getDirty, + "return true if the tile is dirty and needs to be updated, ", + ""); + 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(). "); + I_SimpleProperty(bool, Dirty, + __bool__getDirty, + __void__setDirty__bool); + I_SimpleProperty(osgVolume::Layer *, Layer, + __Layer_P1__getLayer, + __void__setLayer__Layer_P1); + I_SimpleProperty(osgVolume::Locator *, Locator, + __Locator_P1__getLocator, + __void__setLocator__Locator_P1); + I_SimpleProperty(const osgVolume::TileID &, TileID, + __C5_TileID_R1__getTileID, + __void__setTileID__C5_TileID_R1); + I_SimpleProperty(osgVolume::Volume *, Volume, + __Volume_P1__getVolume, + __void__setVolume__Volume_P1); + I_SimpleProperty(osgVolume::VolumeTechnique *, VolumeTechnique, + __VolumeTechnique_P1__getVolumeTechnique, + __void__setVolumeTechnique__VolumeTechnique_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Box.cpp b/src/osgWrappers/introspection/osgWidget/Box.cpp new file mode 100644 index 000000000..d98925467 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Box.cpp @@ -0,0 +1,86 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::Box::BoxType) + I_DeclaringFile("osgWidget/Box"); + I_EnumLabel(osgWidget::Box::VERTICAL); + I_EnumLabel(osgWidget::Box::HORIZONTAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Box) + I_DeclaringFile("osgWidget/Box"); + I_BaseType(osgWidget::Window); + 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 *, 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_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::Box::BoxType, x, osgWidget::Box::HORIZONTAL, IN, bool, x, false, + ____Box__C5_std_string_R1__BoxType__bool, + "The main constructor; takes the string name, the BoxType orientation, and a boolean indicating whether or not all of the Box regions should be uniformly sized. ", + ""); + I_Constructor2(IN, const osgWidget::Box &, x, IN, const osg::CopyOp &, x, + ____Box__C5_Box_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___resizeImplementation__point_type__point_type, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getWidthImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getWidthImplementation, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getHeightImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getHeightImplementation, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Browser.cpp b/src/osgWrappers/introspection/osgWidget/Browser.cpp new file mode 100644 index 000000000..0acb9f4b1 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Browser.cpp @@ -0,0 +1,172 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Browser) + I_DeclaringFile("osgWidget/Browser"); + I_BaseType(osg::Geode); + I_Constructor0(____Browser, + "", + ""); + I_ConstructorWithDefaults2(IN, const std::string &, url, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + ____Browser__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, assign, IN, osgWidget::BrowserImage *, browserImage, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__assign__BrowserImage_P1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, open, IN, const std::string &, url, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__open__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_Method1(void, navigateTo, IN, const std::string &, url, + Properties::NON_VIRTUAL, + __void__navigateTo__C5_std_string_R1, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::BrowserImage) + I_DeclaringFile("osgWidget/Browser"); + I_BaseType(osg::Image); + I_Constructor0(____BrowserImage, + "", + ""); + I_Method1(void, navigateTo, IN, const std::string &, url, + Properties::PURE_VIRTUAL, + __void__navigateTo__C5_std_string_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::BrowserManager) + I_DeclaringFile("osgWidget/Browser"); + I_BaseType(osg::Object); + I_StaticMethod0(osg::ref_ptr< osgWidget::BrowserManager > &, instance, + __osg_ref_ptrT1_BrowserManager__R1__instance_S, + "", + ""); + I_Method1(void, init, IN, const std::string &, application, + Properties::VIRTUAL, + __void__init__C5_std_string_R1, + "", + ""); + I_Method1(void, setApplication, IN, const std::string &, application, + Properties::NON_VIRTUAL, + __void__setApplication__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getApplication, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getApplication, + "", + ""); + I_Method3(osgWidget::BrowserImage *, createBrowserImage, IN, const std::string &, url, IN, int, width, IN, int, height, + Properties::VIRTUAL, + __BrowserImage_P1__createBrowserImage__C5_std_string_R1__int__int, + "", + ""); + I_ProtectedConstructor0(____BrowserManager, + "", + ""); + I_ProtectedConstructorWithDefaults2(IN, const osgWidget::BrowserManager &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____BrowserManager__C5_BrowserManager_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ProtectedMethod0(osg::Object *, cloneType, + Properties::VIRTUAL, + Properties::CONST, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_ProtectedMethod1(osg::Object *, clone, IN, const osg::CopyOp &, x, + Properties::VIRTUAL, + Properties::CONST, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "Clone an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_ProtectedMethod1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + Properties::CONST, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_ProtectedMethod0(const char *, libraryName, + Properties::VIRTUAL, + Properties::CONST, + __C5_char_P1__libraryName, + "return the name of the object's library. ", + "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + I_ProtectedMethod0(const char *, className, + Properties::VIRTUAL, + Properties::CONST, + __C5_char_P1__className, + "return the name of the object's class type. ", + "Must be defined by derived classes. "); + I_SimpleProperty(const std::string &, Application, + __C5_std_string_R1__getApplication, + __void__setApplication__C5_std_string_R1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgWidget::BrowserManager >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::BrowserManager *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgWidget::BrowserManager > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgWidget::BrowserManager *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgWidget::BrowserManager *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgWidget::BrowserManager > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgWidget::BrowserManager *, , + __T_P1__get, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Canvas.cpp b/src/osgWrappers/introspection/osgWidget/Canvas.cpp new file mode 100644 index 000000000..027bc17db --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Canvas.cpp @@ -0,0 +1,76 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Canvas) + I_DeclaringFile("osgWidget/Canvas"); + I_BaseType(osgWidget::Window); + 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 *, 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_ConstructorWithDefaults1(IN, const std::string &, x, "", + Properties::NON_EXPLICIT, + ____Canvas__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Canvas &, x, IN, const osg::CopyOp &, x, + ____Canvas__C5_Canvas_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method3(bool, addWidget, IN, osgWidget::Widget *, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::VIRTUAL, + __bool__addWidget__Widget_P1__point_type__point_type, + "Adds a Widget at the given XY coordinate. ", + ""); + I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___resizeImplementation__point_type__point_type, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/EventInterface.cpp b/src/osgWrappers/introspection/osgWidget/EventInterface.cpp new file mode 100644 index 000000000..aa0154074 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/EventInterface.cpp @@ -0,0 +1,342 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Callback) + I_DeclaringFile("osgWidget/EventInterface"); + I_BaseType(osg::Referenced); + I_Constructor0(____Callback, + "", + ""); + I_Constructor1(IN, const osgWidget::Callback &, rhs, + Properties::NON_EXPLICIT, + ____Callback__C5_Callback_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, osgWidget::EventType, type, , IN, void *, data, 0, + ____Callback__EventType__void_P1, + "", + ""); + I_Method0(osgWidget::EventType, getType, + Properties::NON_VIRTUAL, + __EventType__getType, + "", + ""); + I_Method0(void *, getData, + Properties::NON_VIRTUAL, + __void_P1__getData, + "", + ""); + I_Method0(const void *, getData, + Properties::NON_VIRTUAL, + __C5_void_P1__getData, + "", + ""); + I_SimpleProperty(void *, Data, + __void_P1__getData, + 0); + I_SimpleProperty(osgWidget::EventType, Type, + __EventType__getType, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::CallbackInterface) + I_DeclaringFile("osgWidget/EventInterface"); + I_BaseType(osg::Referenced); + I_Constructor0(____CallbackInterface, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgWidget::Event) + I_DeclaringFile("osgWidget/EventInterface"); + I_ConstructorWithDefaults2(IN, osgWidget::WindowManager *, wm, , IN, osgWidget::EventType, _type, osgWidget::EVENT_NONE, + ____Event__WindowManager_P1__EventType, + "", + ""); + I_Method1(osgWidget::Event &, makeType, IN, osgWidget::EventType, _type, + Properties::NON_VIRTUAL, + __Event_R1__makeType__EventType, + "", + ""); + I_MethodWithDefaults3(osgWidget::Event &, makeMouse, IN, double, _x, , IN, double, _y, , IN, osgWidget::EventType, _type, osgWidget::EVENT_NONE, + Properties::NON_VIRTUAL, + __Event_R1__makeMouse__double__double__EventType, + "", + ""); + I_MethodWithDefaults3(osgWidget::Event &, makeKey, IN, int, _key, , IN, int, _keyMask, , IN, osgWidget::EventType, _type, osgWidget::EVENT_NONE, + Properties::NON_VIRTUAL, + __Event_R1__makeKey__int__int__EventType, + "", + ""); + I_Method0(osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(const osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __C5_WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __Window_P1__getWindow, + "", + ""); + I_Method0(const osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __C5_Window_P1__getWindow, + "", + ""); + I_Method0(osgWidget::Widget *, getWidget, + Properties::NON_VIRTUAL, + __Widget_P1__getWidget, + "", + ""); + I_Method0(const osgWidget::Widget *, getWidget, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getWidget, + "", + ""); + I_Method0(void *, getData, + Properties::NON_VIRTUAL, + __void_P1__getData, + "", + ""); + I_Method0(const void *, getData, + Properties::NON_VIRTUAL, + __C5_void_P1__getData, + "", + ""); + I_Method1(void, setData, IN, void *, data, + Properties::NON_VIRTUAL, + __void__setData__void_P1, + "", + ""); + I_SimpleProperty(void *, Data, + __void_P1__getData, + __void__setData__void_P1); + I_SimpleProperty(osgWidget::Widget *, Widget, + __Widget_P1__getWidget, + 0); + I_SimpleProperty(osgWidget::Window *, Window, + __Window_P1__getWindow, + 0); + I_SimpleProperty(osgWidget::WindowManager *, WindowManager, + __WindowManager_P1__getWindowManager, + 0); + I_PublicMemberProperty(osgWidget::EventType, type); + I_PublicMemberProperty(double, x); + I_PublicMemberProperty(double, y); + I_PublicMemberProperty(int, key); + I_PublicMemberProperty(int, keyMask); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgWidget::EventInterface) + I_DeclaringFile("osgWidget/EventInterface"); + I_Constructor0(____EventInterface, + "", + ""); + I_Constructor1(IN, const osgWidget::EventInterface &, ei, + Properties::NON_EXPLICIT, + ____EventInterface__C5_EventInterface_R1, + "", + ""); + I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__focus__C5_WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__unfocus__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseEnter__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseOver__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseLeave__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mousePush__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseRelease__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseScroll__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyDown, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__keyDown__int__int__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyUp, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__keyUp__int__int__C5_WindowManager_P1, + "", + ""); + I_Method1(void, setEventMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__setEventMask__unsigned_int, + "", + ""); + I_Method1(void, addEventMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__addEventMask__unsigned_int, + "", + ""); + I_Method1(void, removeEventMask, IN, unsigned int, mask, + Properties::NON_VIRTUAL, + __void__removeEventMask__unsigned_int, + "", + ""); + I_Method0(unsigned int, getEventMask, + Properties::NON_VIRTUAL, + __unsigned_int__getEventMask, + "", + ""); + I_Method1(void, addCallback, IN, osgWidget::Callback *, cb, + Properties::NON_VIRTUAL, + __void__addCallback__Callback_P1, + "", + ""); + I_Method1(bool, callCallbacks, IN, osgWidget::Event &, ev, + Properties::NON_VIRTUAL, + __bool__callCallbacks__Event_R1, + "", + ""); + I_Method1(bool, callMethodAndCallbacks, IN, osgWidget::Event &, ev, + Properties::NON_VIRTUAL, + __bool__callMethodAndCallbacks__Event_R1, + "", + ""); + I_Method0(bool, canFocus, + Properties::NON_VIRTUAL, + __bool__canFocus, + "", + ""); + I_Method0(bool, canUnfocus, + Properties::NON_VIRTUAL, + __bool__canUnfocus, + "", + ""); + I_Method0(bool, canMouseEnter, + Properties::NON_VIRTUAL, + __bool__canMouseEnter, + "", + ""); + I_Method0(bool, canMouseOver, + Properties::NON_VIRTUAL, + __bool__canMouseOver, + "", + ""); + I_Method0(bool, canMouseLeave, + Properties::NON_VIRTUAL, + __bool__canMouseLeave, + "", + ""); + I_Method0(bool, canMouseDrag, + Properties::NON_VIRTUAL, + __bool__canMouseDrag, + "", + ""); + I_Method0(bool, canMousePush, + Properties::NON_VIRTUAL, + __bool__canMousePush, + "", + ""); + I_Method0(bool, canMouseRelease, + Properties::NON_VIRTUAL, + __bool__canMouseRelease, + "", + ""); + I_Method0(bool, canMouseScroll, + Properties::NON_VIRTUAL, + __bool__canMouseScroll, + "", + ""); + I_Method0(bool, canKeyDown, + Properties::NON_VIRTUAL, + __bool__canKeyDown, + "", + ""); + I_Method0(bool, canKeyUp, + Properties::NON_VIRTUAL, + __bool__canKeyUp, + "", + ""); + I_SimpleProperty(unsigned int, EventMask, + __unsigned_int__getEventMask, + __void__setEventMask__unsigned_int); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::EventType) + I_DeclaringFile("osgWidget/EventInterface"); + I_EnumLabel(osgWidget::EVENT_NONE); + I_EnumLabel(osgWidget::EVENT_FOCUS); + I_EnumLabel(osgWidget::EVENT_UNFOCUS); + I_EnumLabel(osgWidget::EVENT_MOUSE_ENTER); + I_EnumLabel(osgWidget::EVENT_MOUSE_OVER); + I_EnumLabel(osgWidget::EVENT_MOUSE_LEAVE); + I_EnumLabel(osgWidget::EVENT_MOUSE_DRAG); + I_EnumLabel(osgWidget::EVENT_MOUSE_PUSH); + I_EnumLabel(osgWidget::EVENT_MOUSE_RELEASE); + I_EnumLabel(osgWidget::EVENT_MOUSE_SCROLL); + I_EnumLabel(osgWidget::EVENT_KEY_DOWN); + I_EnumLabel(osgWidget::EVENT_KEY_UP); + I_EnumLabel(osgWidget::EVENT_ALL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::EventMask) + I_DeclaringFile("osgWidget/EventInterface"); + I_EnumLabel(osgWidget::EVENT_MASK_FOCUS); + I_EnumLabel(osgWidget::EVENT_MASK_MOUSE_MOVE); + I_EnumLabel(osgWidget::EVENT_MASK_MOUSE_CLICK); + I_EnumLabel(osgWidget::EVENT_MASK_MOUSE_DRAG); + I_EnumLabel(osgWidget::EVENT_MASK_KEY); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Frame.cpp b/src/osgWrappers/introspection/osgWidget/Frame.cpp new file mode 100644 index 000000000..517ff46d2 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Frame.cpp @@ -0,0 +1,349 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::Frame::CornerType) + I_DeclaringFile("osgWidget/Frame"); + I_EnumLabel(osgWidget::Frame::CORNER_LOWER_LEFT); + I_EnumLabel(osgWidget::Frame::CORNER_LOWER_RIGHT); + I_EnumLabel(osgWidget::Frame::CORNER_UPPER_LEFT); + I_EnumLabel(osgWidget::Frame::CORNER_UPPER_RIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Frame::BorderType) + I_DeclaringFile("osgWidget/Frame"); + I_EnumLabel(osgWidget::Frame::BORDER_LEFT); + I_EnumLabel(osgWidget::Frame::BORDER_RIGHT); + I_EnumLabel(osgWidget::Frame::BORDER_TOP); + I_EnumLabel(osgWidget::Frame::BORDER_BOTTOM); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Frame::FrameOptions) + I_DeclaringFile("osgWidget/Frame"); + I_EnumLabel(osgWidget::Frame::FRAME_RESIZE); + I_EnumLabel(osgWidget::Frame::FRAME_MOVE); + I_EnumLabel(osgWidget::Frame::FRAME_TEXTURE); + I_EnumLabel(osgWidget::Frame::FRAME_ALL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Table); + I_StaticMethod1(std::string, cornerTypeToString, IN, osgWidget::Frame::CornerType, x, + __std_string__cornerTypeToString__CornerType_S, + "", + ""); + I_StaticMethod1(std::string, borderTypeToString, IN, osgWidget::Frame::BorderType, x, + __std_string__borderTypeToString__BorderType_S, + "", + ""); + I_StaticMethodWithDefaults7(osgWidget::Frame *, createSimpleFrame, IN, const std::string &, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, + __Frame_P1__createSimpleFrame__C5_std_string_R1__point_type__point_type__point_type__point_type__unsigned__Frame_P1_S, + "", + ""); + I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrameWithSingleTexture, IN, const std::string &, x, , IN, osg::Image *, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, + __Frame_P1__createSimpleFrameWithSingleTexture__C5_std_string_R1__osg_Image_P1__point_type__point_type__unsigned__Frame_P1_S, + "", + ""); + I_StaticMethodWithDefaults6(osgWidget::Frame *, createSimpleFrameFromTheme, IN, const std::string &, x, , IN, osg::Image *, x, , IN, osgWidget::point_type, x, , IN, osgWidget::point_type, x, , IN, unsigned, int, 0, IN, osgWidget::Frame *, x, 0, + __Frame_P1__createSimpleFrameFromTheme__C5_std_string_R1__osg_Image_P1__point_type__point_type__unsigned__Frame_P1_S, + "", + ""); + 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 *, 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_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, unsigned, int, 0, + ____Frame__C5_std_string_R1__unsigned, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame &, x, IN, const osg::CopyOp &, x, + ____Frame__C5_Frame_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method4(void, createSimpleFrame, IN, osgWidget::point_type, cw, IN, osgWidget::point_type, ch, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__createSimpleFrame__point_type__point_type__point_type__point_type, + "", + ""); + I_Method3(void, createSimpleFrameWithSingleTexture, IN, osg::Image *, image, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__createSimpleFrameWithSingleTexture__osg_Image_P1__point_type__point_type, + "", + ""); + I_Method1(bool, setWindow, IN, osgWidget::Window *, x, + Properties::NON_VIRTUAL, + __bool__setWindow__Window_P1, + "", + ""); + I_Method0(osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, + Properties::NON_VIRTUAL, + __EmbeddedWindow_P1__getEmbeddedWindow, + "", + ""); + I_Method0(const osgWidget::Window::EmbeddedWindow *, getEmbeddedWindow, + Properties::NON_VIRTUAL, + __C5_EmbeddedWindow_P1__getEmbeddedWindow, + "", + ""); + I_Method1(osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CornerType, c, + Properties::NON_VIRTUAL, + __Corner_P1__getCorner__CornerType, + "", + ""); + I_Method1(const osgWidget::Frame::Corner *, getCorner, IN, osgWidget::Frame::CornerType, c, + Properties::NON_VIRTUAL, + __C5_Corner_P1__getCorner__CornerType, + "", + ""); + I_Method1(osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BorderType, b, + Properties::NON_VIRTUAL, + __Border_P1__getBorder__BorderType, + "", + ""); + I_Method1(const osgWidget::Frame::Border *, getBorder, IN, osgWidget::Frame::BorderType, b, + Properties::NON_VIRTUAL, + __C5_Border_P1__getBorder__BorderType, + "", + ""); + I_Method2(bool, resizeFrame, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __bool__resizeFrame__point_type__point_type, + "", + ""); + I_Method0(unsigned int, getFlags, + Properties::NON_VIRTUAL, + __unsigned_int__getFlags, + "", + ""); + I_Method1(void, setFlags, IN, unsigned int, flags, + Properties::NON_VIRTUAL, + __void__setFlags__unsigned_int, + "", + ""); + I_Method0(bool, canResize, + Properties::NON_VIRTUAL, + __bool__canResize, + "", + ""); + I_Method0(bool, canMove, + Properties::NON_VIRTUAL, + __bool__canMove, + "", + ""); + I_Method0(bool, canTexture, + Properties::NON_VIRTUAL, + __bool__canTexture, + "", + ""); + I_ProtectedMethod1(osgWidget::Widget *, _getCorner, IN, osgWidget::Frame::CornerType, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getCorner__CornerType, + "", + ""); + I_ProtectedMethod1(osgWidget::Widget *, _getBorder, IN, osgWidget::Frame::BorderType, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getBorder__BorderType, + "", + ""); + I_SimpleProperty(osgWidget::Window::EmbeddedWindow *, EmbeddedWindow, + __EmbeddedWindow_P1__getEmbeddedWindow, + 0); + I_SimpleProperty(unsigned int, Flags, + __unsigned_int__getFlags, + __void__setFlags__unsigned_int); + I_SimpleProperty(osgWidget::Window *, Window, + 0, + __bool__setWindow__Window_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Border) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults3(IN, osgWidget::Frame::BorderType, x, osgWidget::Frame::BORDER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Border__BorderType__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame::Border &, x, IN, const osg::CopyOp &, x, + ____Border__C5_Border_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method0(osgWidget::Frame::BorderType, getBorderType, + Properties::NON_VIRTUAL, + __BorderType__getBorderType, + "", + ""); + I_Method1(void, setBorderType, IN, osgWidget::Frame::BorderType, border, + Properties::NON_VIRTUAL, + __void__setBorderType__BorderType, + "", + ""); + I_Method1(void, setBorderTypeAndName, IN, osgWidget::Frame::BorderType, border, + Properties::NON_VIRTUAL, + __void__setBorderTypeAndName__BorderType, + "", + ""); + I_SimpleProperty(osgWidget::Frame::BorderType, BorderType, + __BorderType__getBorderType, + __void__setBorderType__BorderType); + I_SimpleProperty(osgWidget::Frame::BorderType, BorderTypeAndName, + 0, + __void__setBorderTypeAndName__BorderType); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Frame::Corner) + I_DeclaringFile("osgWidget/Frame"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults3(IN, osgWidget::Frame::CornerType, x, osgWidget::Frame::CORNER_LOWER_LEFT, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Corner__CornerType__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Frame::Corner &, x, IN, const osg::CopyOp &, x, + ____Corner__C5_Corner_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method0(osgWidget::Frame::CornerType, getCornerType, + Properties::NON_VIRTUAL, + __CornerType__getCornerType, + "", + ""); + I_Method1(void, setCornerType, IN, osgWidget::Frame::CornerType, corner, + Properties::NON_VIRTUAL, + __void__setCornerType__CornerType, + "", + ""); + I_Method1(void, setCornerTypeAndName, IN, osgWidget::Frame::CornerType, corner, + Properties::NON_VIRTUAL, + __void__setCornerTypeAndName__CornerType, + "", + ""); + I_SimpleProperty(osgWidget::Frame::CornerType, CornerType, + __CornerType__getCornerType, + __void__setCornerType__CornerType); + I_SimpleProperty(osgWidget::Frame::CornerType, CornerTypeAndName, + 0, + __void__setCornerTypeAndName__CornerType); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Input.cpp b/src/osgWrappers/introspection/osgWidget/Input.cpp new file mode 100644 index 000000000..c384b7bd3 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Input.cpp @@ -0,0 +1,140 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Input) + I_DeclaringFile("osgWidget/Input"); + I_BaseType(osgWidget::Label); + I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, const std::string &, x, "", IN, unsigned, int, 20, + ____Input__C5_std_string_R1__C5_std_string_R1__unsigned, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method1(bool, focus, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__focus__WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__unfocus__WindowManager_P1, + "", + ""); + I_Method3(bool, keyUp, IN, int, x, IN, int, x, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__keyUp__int__int__WindowManager_P1, + "", + ""); + I_Method3(bool, keyDown, IN, int, x, IN, int, x, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__keyDown__int__int__WindowManager_P1, + "", + ""); + I_Method1(void, setCursor, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + __void__setCursor__Widget_P1, + "", + ""); + I_MethodWithDefaults1(unsigned int, calculateBestYOffset, IN, const std::string &, x, "qgl", + Properties::NON_VIRTUAL, + __unsigned_int__calculateBestYOffset__C5_std_string_R1, + "", + ""); + I_Method1(void, setXOffset, IN, osgWidget::point_type, xo, + Properties::NON_VIRTUAL, + __void__setXOffset__point_type, + "", + ""); + I_Method1(void, setYOffset, IN, osgWidget::point_type, yo, + Properties::NON_VIRTUAL, + __void__setYOffset__point_type, + "", + ""); + I_Method2(void, setXYOffset, IN, osgWidget::point_type, xo, IN, osgWidget::point_type, yo, + Properties::NON_VIRTUAL, + __void__setXYOffset__point_type__point_type, + "", + ""); + I_Method0(osg::Drawable *, getCursor, + Properties::NON_VIRTUAL, + __osg_Drawable_P1__getCursor, + "", + ""); + I_Method0(const osg::Drawable *, getCursor, + Properties::NON_VIRTUAL, + __C5_osg_Drawable_P1__getCursor, + "", + ""); + I_Method0(osgWidget::point_type, getXOffset, + Properties::NON_VIRTUAL, + __point_type__getXOffset, + "", + ""); + I_Method0(osgWidget::point_type, getYOffset, + Properties::NON_VIRTUAL, + __point_type__getYOffset, + "", + ""); + I_Method0(osgWidget::XYCoord, getXYOffset, + Properties::NON_VIRTUAL, + __XYCoord__getXYOffset, + "", + ""); + I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___calculateSize__C5_XYCoord_R1, + "", + ""); + I_ProtectedMethod0(void, _calculateCursorOffsets, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___calculateCursorOffsets, + "", + ""); + I_SimpleProperty(osg::Drawable *, Cursor, + __osg_Drawable_P1__getCursor, + 0); + I_SimpleProperty(osgWidget::point_type, XOffset, + __point_type__getXOffset, + __void__setXOffset__point_type); + I_SimpleProperty(osgWidget::XYCoord, XYOffset, + __XYCoord__getXYOffset, + 0); + I_SimpleProperty(osgWidget::point_type, YOffset, + __point_type__getYOffset, + __void__setYOffset__point_type); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Label.cpp b/src/osgWrappers/introspection/osgWidget/Label.cpp new file mode 100644 index 000000000..7ab8d22cd --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Label.cpp @@ -0,0 +1,163 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Label) + I_DeclaringFile("osgWidget/Label"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", + ____Label__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Label &, x, IN, const osg::CopyOp &, x, + ____Label__C5_Label_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method1(void, setLabel, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __void__setLabel__C5_std_string_R1, + "", + ""); + I_Method1(void, setLabel, IN, const osgText::String &, x, + Properties::NON_VIRTUAL, + __void__setLabel__C5_osgText_String_R1, + "", + ""); + I_Method1(void, setFont, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __void__setFont__C5_std_string_R1, + "", + ""); + I_Method1(void, setFontSize, IN, unsigned, int, + Properties::NON_VIRTUAL, + __void__setFontSize__unsigned, + "", + ""); + I_Method1(void, setFontColor, IN, const osgWidget::Color &, x, + Properties::NON_VIRTUAL, + __void__setFontColor__C5_Color_R1, + "", + ""); + I_Method1(void, setShadow, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setShadow__point_type, + "", + ""); + I_Method0(osgWidget::XYCoord, getTextSize, + Properties::NON_VIRTUAL, + __XYCoord__getTextSize, + "", + ""); + I_Method0(std::string, getLabel, + Properties::NON_VIRTUAL, + __std_string__getLabel, + "", + ""); + I_Method4(void, setFontColor, IN, osgWidget::point_type, r, IN, osgWidget::point_type, g, IN, osgWidget::point_type, b, IN, osgWidget::point_type, a, + Properties::NON_VIRTUAL, + __void__setFontColor__point_type__point_type__point_type__point_type, + "", + ""); + I_Method0(osgText::Text *, getText, + Properties::NON_VIRTUAL, + __osgText_Text_P1__getText, + "", + ""); + I_Method0(const osgText::Text *, getText, + Properties::NON_VIRTUAL, + __C5_osgText_Text_P1__getText, + "", + ""); + I_ProtectedMethod1(void, _calculateSize, IN, const osgWidget::XYCoord &, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___calculateSize__C5_XYCoord_R1, + "", + ""); + I_SimpleProperty(const std::string &, Font, + 0, + __void__setFont__C5_std_string_R1); + I_SimpleProperty(const osgWidget::Color &, FontColor, + 0, + __void__setFontColor__C5_Color_R1); + I_SimpleProperty(unsigned, FontSize, + 0, + __void__setFontSize__unsigned); + I_SimpleProperty(std::string, Label, + __std_string__getLabel, + __void__setLabel__C5_std_string_R1); + I_SimpleProperty(osgWidget::point_type, Shadow, + 0, + __void__setShadow__point_type); + I_SimpleProperty(osgText::Text *, Text, + __osgText_Text_P1__getText, + 0); + I_SimpleProperty(osgWidget::XYCoord, TextSize, + __XYCoord__getTextSize, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Lua.cpp b/src/osgWrappers/introspection/osgWidget/Lua.cpp new file mode 100644 index 000000000..7b1e8f55f --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Lua.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::LuaEngine) + I_DeclaringFile("osgWidget/Lua"); + I_BaseType(osgWidget::ScriptEngine); + I_ConstructorWithDefaults1(IN, osgWidget::WindowManager *, x, 0, + Properties::NON_EXPLICIT, + ____LuaEngine__WindowManager_P1, + "", + ""); + I_Method0(bool, initialize, + Properties::VIRTUAL, + __bool__initialize, + "", + ""); + I_Method0(bool, close, + Properties::VIRTUAL, + __bool__close, + "", + ""); + I_Method1(bool, eval, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__eval__C5_std_string_R1, + "", + ""); + I_Method1(bool, runFile, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__runFile__C5_std_string_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/PdfReader.cpp b/src/osgWrappers/introspection/osgWidget/PdfReader.cpp new file mode 100644 index 000000000..47c137436 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/PdfReader.cpp @@ -0,0 +1,161 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::GeometryHints::AspectRatioPolicy) + I_DeclaringFile("osgWidget/PdfReader"); + I_EnumLabel(osgWidget::GeometryHints::RESIZE_HEIGHT_TO_MAINTAINCE_ASPECT_RATIO); + I_EnumLabel(osgWidget::GeometryHints::RESIZE_WIDTH_TO_MAINTAINCE_ASPECT_RATIO); + I_EnumLabel(osgWidget::GeometryHints::IGNORE_DOCUMENT_ASPECT_RATIO); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgWidget::GeometryHints) + I_DeclaringFile("osgWidget/PdfReader"); + I_Constructor0(____GeometryHints, + "", + ""); + I_ConstructorWithDefaults7(IN, const osg::Vec3 &, pos, , IN, const osg::Vec3 &, wVec, , IN, const osg::Vec3 &, hVec, , IN, const osg::Vec4 &, bColor, , IN, osgWidget::GeometryHints::AspectRatioPolicy, asp, osgWidget::GeometryHints::RESIZE_HEIGHT_TO_MAINTAINCE_ASPECT_RATIO, IN, unsigned int, wRes, 1024, IN, unsigned int, hRes, 1024, + ____GeometryHints__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec3_R1__C5_osg_Vec4_R1__AspectRatioPolicy__unsigned_int__unsigned_int, + "", + ""); + I_PublicMemberProperty(osg::Vec3, position); + I_PublicMemberProperty(osg::Vec3, widthVec); + I_PublicMemberProperty(osg::Vec3, heightVec); + I_PublicMemberProperty(osg::Vec4, backgroundColor); + I_PublicMemberProperty(osgWidget::GeometryHints::AspectRatioPolicy, aspectRatioPolicy); + I_PublicMemberProperty(unsigned int, widthResolution); + I_PublicMemberProperty(unsigned int, heightResolution); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::PdfImage) + I_DeclaringFile("osgWidget/PdfReader"); + I_BaseType(osg::Image); + I_Constructor0(____PdfImage, + "", + ""); + I_Method1(void, setBackgroundColor, IN, const osg::Vec4 &, backgroundColor, + Properties::NON_VIRTUAL, + __void__setBackgroundColor__C5_osg_Vec4_R1, + "", + ""); + I_Method0(const osg::Vec4 &, getBackgroundColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getBackgroundColor, + "", + ""); + I_Method0(int, getPageNum, + Properties::NON_VIRTUAL, + __int__getPageNum, + "", + ""); + I_Method0(int, getNumOfPages, + Properties::PURE_VIRTUAL, + __int__getNumOfPages, + "", + ""); + I_Method1(bool, page, IN, int, pageNum, + Properties::PURE_VIRTUAL, + __bool__page__int, + "", + ""); + I_Method0(bool, previous, + Properties::NON_VIRTUAL, + __bool__previous, + "", + ""); + I_Method0(bool, next, + Properties::NON_VIRTUAL, + __bool__next, + "", + ""); + I_Method1(void, setNextPageKeyEvent, IN, int, key, + Properties::NON_VIRTUAL, + __void__setNextPageKeyEvent__int, + "", + ""); + I_Method0(int, getNextPageKeyEvent, + Properties::NON_VIRTUAL, + __int__getNextPageKeyEvent, + "", + ""); + I_Method1(void, setPreviousPageKeyEvent, IN, int, key, + Properties::NON_VIRTUAL, + __void__setPreviousPageKeyEvent__int, + "", + ""); + I_Method0(int, getPreviousPageKeyEvent, + Properties::NON_VIRTUAL, + __int__getPreviousPageKeyEvent, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, BackgroundColor, + __C5_osg_Vec4_R1__getBackgroundColor, + __void__setBackgroundColor__C5_osg_Vec4_R1); + I_SimpleProperty(int, NextPageKeyEvent, + __int__getNextPageKeyEvent, + __void__setNextPageKeyEvent__int); + I_SimpleProperty(int, PageNum, + __int__getPageNum, + 0); + I_SimpleProperty(int, PreviousPageKeyEvent, + __int__getPreviousPageKeyEvent, + __void__setPreviousPageKeyEvent__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::PdfReader) + I_DeclaringFile("osgWidget/PdfReader"); + I_BaseType(osg::Geode); + I_Constructor0(____PdfReader, + "", + ""); + I_ConstructorWithDefaults2(IN, const std::string &, filename, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + ____PdfReader__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, assign, IN, osgWidget::PdfImage *, pdfImage, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__assign__PdfImage_P1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, open, IN, const std::string &, filename, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__open__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_Method1(bool, page, IN, int, pageNum, + Properties::NON_VIRTUAL, + __bool__page__int, + "", + ""); + I_Method0(bool, previous, + Properties::NON_VIRTUAL, + __bool__previous, + "", + ""); + I_Method0(bool, next, + Properties::NON_VIRTUAL, + __bool__next, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Python.cpp b/src/osgWrappers/introspection/osgWidget/Python.cpp new file mode 100644 index 000000000..5fa4ac97d --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Python.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::PythonEngine) + I_DeclaringFile("osgWidget/Python"); + I_BaseType(osgWidget::ScriptEngine); + I_ConstructorWithDefaults1(IN, osgWidget::WindowManager *, x, 0, + Properties::NON_EXPLICIT, + ____PythonEngine__WindowManager_P1, + "", + ""); + I_Method0(bool, initialize, + Properties::VIRTUAL, + __bool__initialize, + "", + ""); + I_Method0(bool, close, + Properties::VIRTUAL, + __bool__close, + "", + ""); + I_Method1(bool, eval, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__eval__C5_std_string_R1, + "", + ""); + I_Method1(bool, runFile, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__runFile__C5_std_string_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/ScriptEngine.cpp b/src/osgWrappers/introspection/osgWidget/ScriptEngine.cpp new file mode 100644 index 000000000..45e2cdf48 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/ScriptEngine.cpp @@ -0,0 +1,58 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::ScriptEngine) + I_DeclaringFile("osgWidget/ScriptEngine"); + I_BaseType(osg::Referenced); + I_Constructor0(____ScriptEngine, + "", + ""); + I_Method0(bool, initialize, + Properties::VIRTUAL, + __bool__initialize, + "", + ""); + I_Method0(bool, close, + Properties::VIRTUAL, + __bool__close, + "", + ""); + I_Method1(bool, eval, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__eval__C5_std_string_R1, + "", + ""); + I_Method1(bool, runFile, IN, const std::string &, x, + Properties::VIRTUAL, + __bool__runFile__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getLastErrorText, + Properties::VIRTUAL, + __C5_std_string_R1__getLastErrorText, + "", + ""); + I_SimpleProperty(const std::string &, LastErrorText, + __C5_std_string_R1__getLastErrorText, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/StyleInterface.cpp b/src/osgWrappers/introspection/osgWidget/StyleInterface.cpp new file mode 100644 index 000000000..bdefb7a6a --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/StyleInterface.cpp @@ -0,0 +1,52 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_VALUE_REFLECTOR(osgWidget::StyleInterface) + I_DeclaringFile("osgWidget/StyleInterface"); + I_Constructor0(____StyleInterface, + "", + ""); + I_Constructor1(IN, const osgWidget::StyleInterface &, si, + Properties::NON_EXPLICIT, + ____StyleInterface__C5_StyleInterface_R1, + "", + ""); + I_Method1(void, setStyle, IN, const std::string &, style, + Properties::NON_VIRTUAL, + __void__setStyle__C5_std_string_R1, + "", + ""); + I_Method0(std::string &, getStyle, + Properties::NON_VIRTUAL, + __std_string_R1__getStyle, + "", + ""); + I_Method0(const std::string &, getStyle, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getStyle, + "", + ""); + I_SimpleProperty(const std::string &, Style, + __C5_std_string_R1__getStyle, + __void__setStyle__C5_std_string_R1); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/StyleManager.cpp b/src/osgWrappers/introspection/osgWidget/StyleManager.cpp new file mode 100644 index 000000000..ed32a1ea7 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/StyleManager.cpp @@ -0,0 +1,260 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::Style) + I_DeclaringFile("osgWidget/StyleManager"); + I_BaseType(osg::Object); + 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_ConstructorWithDefaults2(IN, const std::string &, x, "", IN, const std::string &, x, "", + ____Style__C5_std_string_R1__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Style &, x, IN, const osg::CopyOp &, x, + ____Style__C5_Style_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Widget *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Widget_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Label *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Label_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Input *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Input_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Window *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Window_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Window::EmbeddedWindow *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Window_EmbeddedWindow_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Box *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Box_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Frame::Corner *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Frame_Corner_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Frame::Border *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Frame_Border_P1__Reader, + "", + ""); + I_Method2(bool, applyStyle, IN, osgWidget::Canvas *, x, IN, osgWidget::Reader, x, + Properties::VIRTUAL, + __bool__applyStyle__Canvas_P1__Reader, + "", + ""); + I_Method1(void, setStyle, IN, const std::string &, style, + Properties::NON_VIRTUAL, + __void__setStyle__C5_std_string_R1, + "", + ""); + I_Method0(std::string &, getStyle, + Properties::NON_VIRTUAL, + __std_string_R1__getStyle, + "", + ""); + I_Method0(const std::string &, getStyle, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getStyle, + "", + ""); + I_StaticMethod1(osgWidget::Widget::Layer, strToLayer, IN, const std::string &, x, + __Widget_Layer__strToLayer__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::VerticalAlignment, strToVAlign, IN, const std::string &, x, + __Widget_VerticalAlignment__strToVAlign__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::HorizontalAlignment, strToHAlign, IN, const std::string &, x, + __Widget_HorizontalAlignment__strToHAlign__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(osgWidget::Widget::CoordinateMode, strToCoordMode, IN, const std::string &, x, + __Widget_CoordinateMode__strToCoordMode__C5_std_string_R1_S, + "", + ""); + I_StaticMethod1(bool, strToFill, IN, const std::string &, x, + __bool__strToFill__C5_std_string_R1_S, + "", + ""); + I_ProtectedMethod2(bool, _match, IN, const char *, seq, IN, osgWidget::Reader, r, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___match__C5_char_P1__Reader, + "", + ""); + I_SimpleProperty(const std::string &, Style, + __C5_std_string_R1__getStyle, + __void__setStyle__C5_std_string_R1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >, osgWidget::StyleManager::Styles) + +TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::iterator, osgWidget::StyleManager::Iterator) + +TYPE_NAME_ALIAS(osgWidget::StyleManager::Styles::const_iterator, osgWidget::StyleManager::ConstIterator) + +BEGIN_OBJECT_REFLECTOR(osgWidget::StyleManager) + I_DeclaringFile("osgWidget/StyleManager"); + I_BaseType(osg::Object); + 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_Constructor0(____StyleManager, + "", + ""); + I_Constructor2(IN, const osgWidget::StyleManager &, x, IN, const osg::CopyOp &, x, + ____StyleManager__C5_StyleManager_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, addStyle, IN, osgWidget::Style *, x, + Properties::NON_VIRTUAL, + __bool__addStyle__Style_P1, + "", + ""); + I_Method1(bool, applyStyles, IN, osgWidget::Widget *, widget, + Properties::NON_VIRTUAL, + __bool__applyStyles__Widget_P1, + "", + ""); + I_Method1(bool, applyStyles, IN, osgWidget::Window *, window, + Properties::NON_VIRTUAL, + __bool__applyStyles__Window_P1, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgDB::FieldReaderIterator &, osgWidget::Reader) + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgWidget::Style >) + I_DeclaringFile("osg/ref_ptr"); + I_Constructor0(____ref_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Style *, ptr, + Properties::NON_EXPLICIT, + ____ref_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::ref_ptr< osgWidget::Style > &, rp, + Properties::NON_EXPLICIT, + ____ref_ptr__C5_ref_ptr_R1, + "", + ""); + I_Method0(osgWidget::Style *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(osgWidget::Style *, release, + Properties::NON_VIRTUAL, + __T_P1__release, + "", + ""); + I_Method1(void, swap, IN, osg::ref_ptr< osgWidget::Style > &, rp, + Properties::NON_VIRTUAL, + __void__swap__ref_ptr_R1, + "", + ""); + I_SimpleProperty(osgWidget::Style *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< osgWidget::Style > >) + diff --git a/src/osgWrappers/introspection/osgWidget/Table.cpp b/src/osgWrappers/introspection/osgWidget/Table.cpp new file mode 100644 index 000000000..f362bf473 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Table.cpp @@ -0,0 +1,164 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(std::vector< osgWidget::point_type >, osgWidget::Table::CellSizes) + +BEGIN_OBJECT_REFLECTOR(osgWidget::Table) + I_DeclaringFile("osgWidget/Table"); + I_BaseType(osgWidget::Window); + 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 *, 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_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, unsigned, int, 0, IN, unsigned, int, 0, + ____Table__C5_std_string_R1__unsigned__unsigned, + "", + ""); + I_Constructor2(IN, const osgWidget::Table &, x, IN, const osg::CopyOp &, x, + ____Table__C5_Table_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, addWidget, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__addWidget__Widget_P1, + "", + ""); + I_Method3(bool, addWidget, IN, osgWidget::Widget *, x, IN, unsigned, int, IN, unsigned, int, + Properties::VIRTUAL, + __bool__addWidget__Widget_P1__unsigned__unsigned, + "", + ""); + I_Method1(void, getRowHeights, IN, osgWidget::Table::CellSizes &, x, + Properties::NON_VIRTUAL, + __void__getRowHeights__CellSizes_R1, + "", + ""); + I_Method1(void, getRowMinHeights, IN, osgWidget::Table::CellSizes &, x, + Properties::NON_VIRTUAL, + __void__getRowMinHeights__CellSizes_R1, + "", + ""); + I_Method1(void, getColumnWidths, IN, osgWidget::Table::CellSizes &, x, + Properties::NON_VIRTUAL, + __void__getColumnWidths__CellSizes_R1, + "", + ""); + I_Method1(void, getColumnMinWidths, IN, osgWidget::Table::CellSizes &, x, + Properties::NON_VIRTUAL, + __void__getColumnMinWidths__CellSizes_R1, + "", + ""); + I_Method2(void, addHeightToRow, IN, unsigned, int, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addHeightToRow__unsigned__point_type, + "", + ""); + I_Method2(void, addWidthToColumn, IN, unsigned, int, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addWidthToColumn__unsigned__point_type, + "", + ""); + I_Method1(bool, isRowVerticallyFillable, IN, unsigned, int, + Properties::NON_VIRTUAL, + __bool__isRowVerticallyFillable__unsigned, + "", + ""); + I_Method1(bool, isColumnHorizontallyFillable, IN, unsigned, int, + Properties::NON_VIRTUAL, + __bool__isColumnHorizontallyFillable__unsigned, + "", + ""); + I_Method2(osgWidget::Widget *, getByRowCol, IN, unsigned int, row, IN, unsigned int, col, + Properties::NON_VIRTUAL, + __Widget_P1__getByRowCol__unsigned_int__unsigned_int, + "", + ""); + I_Method2(const osgWidget::Widget *, getByRowCol, IN, unsigned int, row, IN, unsigned int, col, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getByRowCol__unsigned_int__unsigned_int, + "", + ""); + I_ProtectedMethod2(unsigned int, _calculateIndex, IN, unsigned, int, IN, unsigned, int, + Properties::NON_VIRTUAL, + Properties::CONST, + __unsigned_int___calculateIndex__unsigned__unsigned, + "", + ""); + I_ProtectedMethod2(void, _getRows, IN, osgWidget::Table::CellSizes &, x, IN, osgWidget::Window::Getter, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __void___getRows__CellSizes_R1__Getter, + "", + ""); + I_ProtectedMethod2(void, _getColumns, IN, osgWidget::Table::CellSizes &, x, IN, osgWidget::Window::Getter, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __void___getColumns__CellSizes_R1__Getter, + "", + ""); + I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::VIRTUAL, + Properties::NON_CONST, + __void___resizeImplementation__point_type__point_type, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getWidthImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getWidthImplementation, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getHeightImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getHeightImplementation, + "", + ""); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgWidget::point_type >) + diff --git a/src/osgWrappers/introspection/osgWidget/Types.cpp b/src/osgWrappers/introspection/osgWidget/Types.cpp new file mode 100644 index 000000000..6b198a0e9 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Types.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +TYPE_NAME_ALIAS(osg::Vec2Array, osgWidget::TexCoordArray) + +TYPE_NAME_ALIAS(osg::Vec3Array, osgWidget::PointArray) + +TYPE_NAME_ALIAS(osg::Vec4Array, osgWidget::ColorArray) + +TYPE_NAME_ALIAS(osgWidget::TexCoordArray::value_type, osgWidget::TexCoord) + +TYPE_NAME_ALIAS(osgWidget::PointArray::value_type, osgWidget::Point) + +TYPE_NAME_ALIAS(osgWidget::ColorArray::value_type, osgWidget::Color) + +TYPE_NAME_ALIAS(osgWidget::TexCoord::value_type, osgWidget::texcoord_type) + +TYPE_NAME_ALIAS(osgWidget::Point::value_type, osgWidget::point_type) + +TYPE_NAME_ALIAS(osgWidget::Color::value_type, osgWidget::color_type) + +TYPE_NAME_ALIAS(osg::Vec2, osgWidget::XYCoord) + +TYPE_NAME_ALIAS(osg::Vec4, osgWidget::Quad) + +TYPE_NAME_ALIAS(osg::Matrix::value_type, osgWidget::matrix_type) + diff --git a/src/osgWrappers/introspection/osgWidget/ViewerEventHandlers.cpp b/src/osgWrappers/introspection/osgWidget/ViewerEventHandlers.cpp new file mode 100644 index 000000000..b8a026b2b --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/ViewerEventHandlers.cpp @@ -0,0 +1,136 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::CameraSwitchHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor2(IN, osgWidget::WindowManager *, x, IN, osg::Camera *, x, + ____CameraSwitchHandler__WindowManager_P1__osg_Camera_P1, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::KeyboardHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor1(IN, osgWidget::WindowManager *, x, + Properties::NON_EXPLICIT, + ____KeyboardHandler__WindowManager_P1, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); +END_REFLECTOR + + + +BEGIN_OBJECT_REFLECTOR(osgWidget::MouseHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor1(IN, osgWidget::WindowManager *, x, + Properties::NON_EXPLICIT, + ____MouseHandler__WindowManager_P1, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); + I_ProtectedMethod3(bool, _handleMousePush, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMousePush__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseRelease, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseRelease__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseDoubleClick, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseDoubleClick__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseDrag, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseDrag__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseMove, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseMove__float__float__int, + "", + ""); + I_ProtectedMethod3(bool, _handleMouseScroll, IN, float, x, IN, float, x, IN, int, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___handleMouseScroll__float__float__int, + "", + ""); + I_ProtectedMethod1(osgWidget::MouseHandler::MouseAction, _isMouseEvent, IN, osgGA::GUIEventAdapter::EventType, x, + Properties::NON_VIRTUAL, + Properties::CONST, + __MouseAction___isMouseEvent__osgGA_GUIEventAdapter_EventType, + "", + ""); + I_ProtectedMethod3(bool, _doMouseEvent, IN, float, x, IN, float, x, IN, osgWidget::MouseHandler::MouseEvent, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___doMouseEvent__float__float__MouseEvent, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::ResizeHandler) + I_DeclaringFile("osgWidget/ViewerEventHandlers"); + I_BaseType(osgGA::GUIEventHandler); + I_ConstructorWithDefaults2(IN, osgWidget::WindowManager *, x, , IN, osg::Camera *, x, 0, + ____ResizeHandler__WindowManager_P1__osg_Camera_P1, + "", + ""); + 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_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1__osg_Object_P1__osg_NodeVisitor_P1, + "Handle events, return true if handled, false otherwise. ", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/VncClient.cpp b/src/osgWrappers/introspection/osgWidget/VncClient.cpp new file mode 100644 index 000000000..416c7c911 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/VncClient.cpp @@ -0,0 +1,68 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::VncClient) + I_DeclaringFile("osgWidget/VncClient"); + I_BaseType(osg::Geode); + I_Constructor0(____VncClient, + "", + ""); + I_ConstructorWithDefaults2(IN, const std::string &, hostname, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + ____VncClient__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, assign, IN, osgWidget::VncImage *, vncImage, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__assign__VncImage_P1__C5_GeometryHints_R1, + "", + ""); + I_MethodWithDefaults2(bool, connect, IN, const std::string &, hostname, , IN, const osgWidget::GeometryHints &, hints, osgWidget::GeometryHints(), + Properties::NON_VIRTUAL, + __bool__connect__C5_std_string_R1__C5_GeometryHints_R1, + "", + ""); + I_Method0(void, close, + Properties::NON_VIRTUAL, + __void__close, + "", + ""); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::VncImage) + I_DeclaringFile("osgWidget/VncClient"); + I_BaseType(osg::Image); + I_Constructor0(____VncImage, + "", + ""); + I_Method1(bool, connect, IN, const std::string &, hostname, + Properties::PURE_VIRTUAL, + __bool__connect__C5_std_string_R1, + "", + ""); + I_Method0(void, close, + Properties::PURE_VIRTUAL, + __void__close, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/introspection/osgWidget/Widget.cpp b/src/osgWrappers/introspection/osgWidget/Widget.cpp new file mode 100644 index 000000000..13d866080 --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Widget.cpp @@ -0,0 +1,989 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osgWidget::NotifyWidget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, + ____NotifyWidget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::NotifyWidget &, widget, IN, const osg::CopyOp &, co, + ____NotifyWidget__C5_NotifyWidget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__focus__C5_WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__unfocus__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseEnter__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseOver__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseLeave__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mousePush__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseRelease__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseScroll__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyPress__int__int__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyRelease__int__int__C5_WindowManager_P1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::NullWidget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults3(IN, const std::string &, n, "", IN, osgWidget::point_type, w, 0.0f, IN, osgWidget::point_type, h, 0.0f, + ____NullWidget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::NullWidget &, widget, IN, const osg::CopyOp &, co, + ____NullWidget__C5_NullWidget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, focus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__focus__C5_WindowManager_P1, + "", + ""); + I_Method1(bool, unfocus, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__unfocus__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseEnter, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseEnter__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseOver, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseOver__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseLeave, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseLeave__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseDrag, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseDrag__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mousePush, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mousePush__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseRelease, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseRelease__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, mouseScroll, IN, double, x, IN, double, x, IN, const osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __bool__mouseScroll__double__double__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyPress, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyPress__int__int__C5_WindowManager_P1, + "", + ""); + I_Method3(bool, keyRelease, IN, int, x, IN, int, x, IN, const osgWidget::WindowManager *, x, + Properties::NON_VIRTUAL, + __bool__keyRelease__int__int__C5_WindowManager_P1, + "", + ""); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Corner) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::LOWER_LEFT); + I_EnumLabel(osgWidget::Widget::LOWER_RIGHT); + I_EnumLabel(osgWidget::Widget::UPPER_RIGHT); + I_EnumLabel(osgWidget::Widget::UPPER_LEFT); + I_EnumLabel(osgWidget::Widget::LL); + I_EnumLabel(osgWidget::Widget::LR); + I_EnumLabel(osgWidget::Widget::UR); + I_EnumLabel(osgWidget::Widget::UL); + I_EnumLabel(osgWidget::Widget::ALL_CORNERS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::Layer) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::LAYER_TOP); + I_EnumLabel(osgWidget::Widget::LAYER_HIGH); + I_EnumLabel(osgWidget::Widget::LAYER_MIDDLE); + I_EnumLabel(osgWidget::Widget::LAYER_LOW); + I_EnumLabel(osgWidget::Widget::LAYER_BG); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::VerticalAlignment) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::VA_CENTER); + I_EnumLabel(osgWidget::Widget::VA_TOP); + I_EnumLabel(osgWidget::Widget::VA_BOTTOM); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::HorizontalAlignment) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::HA_CENTER); + I_EnumLabel(osgWidget::Widget::HA_LEFT); + I_EnumLabel(osgWidget::Widget::HA_RIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Widget::CoordinateMode) + I_DeclaringFile("osgWidget/Widget"); + I_EnumLabel(osgWidget::Widget::CM_ABSOLUTE); + I_EnumLabel(osgWidget::Widget::CM_RELATIVE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Widget) + I_DeclaringFile("osgWidget/Widget"); + I_BaseType(osg::Geometry); + I_BaseType(osgWidget::EventInterface); + I_BaseType(osgWidget::StyleInterface); + I_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____Widget__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Widget &, x, IN, const osg::CopyOp &, x, + ____Widget__C5_Widget_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "Clone the type of an object, with Object* return type. ", + "Must be defined by derived classes. "); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, 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_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_MethodWithDefaults5(void, setDimensions, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, IN, osgWidget::point_type, x, -1.0f, + Properties::NON_VIRTUAL, + __void__setDimensions__point_type__point_type__point_type__point_type__point_type, + "", + ""); + I_Method1(void, setPadding, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setPadding__point_type, + "", + ""); + I_MethodWithDefaults5(void, setColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setColor__color_type__color_type__color_type__color_type__Corner, + "", + ""); + I_MethodWithDefaults5(void, addColor, IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::color_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__addColor__color_type__color_type__color_type__color_type__Corner, + "", + ""); + I_MethodWithDefaults3(void, setTexCoord, IN, osgWidget::texcoord_type, x, , IN, osgWidget::texcoord_type, x, , IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setTexCoord__texcoord_type__texcoord_type__Corner, + "", + ""); + I_MethodWithDefaults2(void, setLayer, IN, osgWidget::Widget::Layer, l, , IN, unsigned int, offset, 0, + Properties::NON_VIRTUAL, + __void__setLayer__Layer__unsigned_int, + "", + ""); + I_Method4(void, setTexCoordRegion, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__point_type__point_type__point_type__point_type, + "", + ""); + I_Method0(void, setTexCoordWrapHorizontal, + Properties::NON_VIRTUAL, + __void__setTexCoordWrapHorizontal, + "", + ""); + I_Method0(void, setTexCoordWrapVertical, + Properties::NON_VIRTUAL, + __void__setTexCoordWrapVertical, + "", + ""); + I_MethodWithDefaults3(bool, setImage, IN, osg::Image *, x, , IN, bool, x, false, IN, bool, x, false, + Properties::NON_VIRTUAL, + __bool__setImage__osg_Image_P1__bool__bool, + "", + ""); + I_MethodWithDefaults3(bool, setImage, IN, const std::string &, x, , IN, bool, x, false, IN, bool, x, false, + Properties::NON_VIRTUAL, + __bool__setImage__C5_std_string_R1__bool__bool, + "", + ""); + I_MethodWithDefaults3(bool, setTexture, IN, osg::Texture *, x, , IN, bool, x, false, IN, bool, x, false, + Properties::NON_VIRTUAL, + __bool__setTexture__osg_Texture_P1__bool__bool, + "", + ""); + I_Method1(void, addX, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addX__point_type, + "", + ""); + I_Method1(void, addY, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addY__point_type, + "", + ""); + I_Method1(void, addWidth, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addWidth__point_type, + "", + ""); + I_Method1(void, addHeight, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addHeight__point_type, + "", + ""); + I_Method2(void, addOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addOrigin__point_type__point_type, + "", + ""); + I_Method2(void, addSize, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__addSize__point_type__point_type, + "", + ""); + I_Method0(osgWidget::point_type, getWidth, + Properties::NON_VIRTUAL, + __point_type__getWidth, + "", + ""); + I_Method0(osgWidget::point_type, getHeight, + Properties::NON_VIRTUAL, + __point_type__getHeight, + "", + ""); + I_Method0(osgWidget::point_type, getX, + Properties::NON_VIRTUAL, + __point_type__getX, + "", + ""); + I_Method0(osgWidget::point_type, getY, + Properties::NON_VIRTUAL, + __point_type__getY, + "", + ""); + I_Method0(osgWidget::point_type, getZ, + Properties::NON_VIRTUAL, + __point_type__getZ, + "", + ""); + I_Method0(osgWidget::point_type, getPadHorizontal, + Properties::NON_VIRTUAL, + __point_type__getPadHorizontal, + "", + ""); + I_Method0(osgWidget::point_type, getPadVertical, + Properties::NON_VIRTUAL, + __point_type__getPadVertical, + "", + ""); + I_MethodWithDefaults1(const osgWidget::Point &, getPoint, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_Point_R1__getPoint__Corner, + "", + ""); + I_MethodWithDefaults1(const osgWidget::Color &, getColor, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_Color_R1__getColor__Corner, + "", + ""); + I_MethodWithDefaults1(const osgWidget::TexCoord &, getTexCoord, IN, osgWidget::Widget::Corner, x, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __C5_TexCoord_R1__getTexCoord__Corner, + "", + ""); + I_Method2(osgWidget::Color, getImageColorAtXY, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __Color__getImageColorAtXY__point_type__point_type, + "", + ""); + I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__localXY__double__double, + "", + ""); + I_Method0(bool, isPaddingUniform, + Properties::NON_VIRTUAL, + __bool__isPaddingUniform, + "", + ""); + I_Method0(bool, isManaged, + Properties::NON_VIRTUAL, + __bool__isManaged, + "", + ""); + I_Method0(bool, isStyled, + Properties::NON_VIRTUAL, + __bool__isStyled, + "", + ""); + I_MethodWithDefaults2(void, setDimensions, IN, const osgWidget::Quad &, q, , IN, osgWidget::point_type, z, -1.0f, + Properties::NON_VIRTUAL, + __void__setDimensions__C5_Quad_R1__point_type, + "", + ""); + I_Method1(void, setX, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + __void__setX__point_type, + "", + ""); + I_Method1(void, setY, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __void__setY__point_type, + "", + ""); + I_Method1(void, setZ, IN, osgWidget::point_type, z, + Properties::NON_VIRTUAL, + __void__setZ__point_type, + "", + ""); + I_Method1(void, setWidth, IN, osgWidget::point_type, w, + Properties::NON_VIRTUAL, + __void__setWidth__point_type, + "", + ""); + I_Method1(void, setHeight, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setHeight__point_type, + "", + ""); + I_Method2(void, setOrigin, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, + Properties::NON_VIRTUAL, + __void__setOrigin__point_type__point_type, + "", + ""); + I_Method1(void, setOrigin, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_XYCoord_R1, + "", + ""); + I_Method2(void, setSize, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setSize__point_type__point_type, + "", + ""); + I_Method1(void, setSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setSize__C5_XYCoord_R1, + "", + ""); + I_MethodWithDefaults2(void, setColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setColor__C5_Color_R1__Corner, + "", + ""); + I_MethodWithDefaults2(void, setTexCoord, IN, const osgWidget::XYCoord &, xy, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__setTexCoord__C5_XYCoord_R1__Corner, + "", + ""); + I_Method3(void, setTexCoordRegion, IN, const osgWidget::XYCoord &, xy, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__C5_XYCoord_R1__point_type__point_type, + "", + ""); + I_Method3(void, setTexCoordRegion, IN, osgWidget::point_type, x, IN, osgWidget::point_type, y, IN, const osgWidget::XYCoord &, wh, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__point_type__point_type__C5_XYCoord_R1, + "", + ""); + I_Method2(void, setTexCoordRegion, IN, const osgWidget::XYCoord &, xy, IN, const osgWidget::XYCoord &, wh, + Properties::NON_VIRTUAL, + __void__setTexCoordRegion__C5_XYCoord_R1__C5_XYCoord_R1, + "", + ""); + I_MethodWithDefaults2(void, addColor, IN, const osgWidget::Color &, col, , IN, osgWidget::Widget::Corner, p, osgWidget::Widget::ALL_CORNERS, + Properties::NON_VIRTUAL, + __void__addColor__C5_Color_R1__Corner, + "", + ""); + I_Method1(void, addOrigin, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__addOrigin__C5_XYCoord_R1, + "", + ""); + I_Method1(void, addSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__addSize__C5_XYCoord_R1, + "", + ""); + I_Method2(void, setMinimumSize, IN, osgWidget::point_type, width, IN, osgWidget::point_type, height, + Properties::NON_VIRTUAL, + __void__setMinimumSize__point_type__point_type, + "", + ""); + I_Method1(void, setMinimumSize, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setMinimumSize__C5_XYCoord_R1, + "", + ""); + I_Method1(void, setPadLeft, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadLeft__point_type, + "", + ""); + I_Method1(void, setPadRight, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadRight__point_type, + "", + ""); + I_Method1(void, setPadTop, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadTop__point_type, + "", + ""); + I_Method1(void, setPadBottom, IN, osgWidget::point_type, p, + Properties::NON_VIRTUAL, + __void__setPadBottom__point_type, + "", + ""); + I_Method1(void, setAlignHorizontal, IN, osgWidget::Widget::HorizontalAlignment, h, + Properties::NON_VIRTUAL, + __void__setAlignHorizontal__HorizontalAlignment, + "", + ""); + I_Method1(void, setAlignVertical, IN, osgWidget::Widget::VerticalAlignment, v, + Properties::NON_VIRTUAL, + __void__setAlignVertical__VerticalAlignment, + "", + ""); + I_Method1(void, setCoordinateMode, IN, osgWidget::Widget::CoordinateMode, cm, + Properties::NON_VIRTUAL, + __void__setCoordinateMode__CoordinateMode, + "", + ""); + I_Method1(void, setCanFill, IN, bool, f, + Properties::NON_VIRTUAL, + __void__setCanFill__bool, + "", + ""); + I_Method1(void, setCanClone, IN, bool, c, + Properties::NON_VIRTUAL, + __void__setCanClone__bool, + "", + ""); + I_Method0(osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(const osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __C5_WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __Window_P1__getParent, + "", + ""); + I_Method0(const osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getParent, + "", + ""); + I_Method0(unsigned int, getIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getIndex, + "", + ""); + I_Method0(osgWidget::XYCoord, getOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getOrigin, + "", + ""); + I_Method1(osgWidget::Color, getImageColorAtXY, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __Color__getImageColorAtXY__C5_XYCoord_R1, + "", + ""); + I_Method2(osgWidget::Color, getImageColorAtPointerXY, IN, double, x, IN, double, y, + Properties::NON_VIRTUAL, + __Color__getImageColorAtPointerXY__double__double, + "", + ""); + I_Method0(osgWidget::Point, getPosition, + Properties::NON_VIRTUAL, + __Point__getPosition, + "", + ""); + I_Method0(osgWidget::XYCoord, getSize, + Properties::NON_VIRTUAL, + __XYCoord__getSize, + "", + ""); + I_Method0(osgWidget::Quad, getDimensions, + Properties::NON_VIRTUAL, + __Quad__getDimensions, + "", + ""); + I_Method0(osgWidget::point_type, getPadLeft, + Properties::NON_VIRTUAL, + __point_type__getPadLeft, + "", + ""); + I_Method0(osgWidget::point_type, getPadRight, + Properties::NON_VIRTUAL, + __point_type__getPadRight, + "", + ""); + I_Method0(osgWidget::point_type, getPadTop, + Properties::NON_VIRTUAL, + __point_type__getPadTop, + "", + ""); + I_Method0(osgWidget::point_type, getPadBottom, + Properties::NON_VIRTUAL, + __point_type__getPadBottom, + "", + ""); + I_Method0(osgWidget::Widget::HorizontalAlignment, getAlignHorizontal, + Properties::NON_VIRTUAL, + __HorizontalAlignment__getAlignHorizontal, + "", + ""); + I_Method0(osgWidget::Widget::VerticalAlignment, getAlignVertical, + Properties::NON_VIRTUAL, + __VerticalAlignment__getAlignVertical, + "", + ""); + I_Method0(osgWidget::Widget::CoordinateMode, getCoordinateMode, + Properties::NON_VIRTUAL, + __CoordinateMode__getCoordinateMode, + "", + ""); + I_Method0(bool, canFill, + Properties::NON_VIRTUAL, + __bool__canFill, + "", + ""); + I_Method0(bool, canClone, + Properties::NON_VIRTUAL, + __bool__canClone, + "", + ""); + I_Method0(osgWidget::point_type, getFillAsNumeric, + Properties::NON_VIRTUAL, + __point_type__getFillAsNumeric, + "", + ""); + I_Method0(osgWidget::point_type, getWidthTotal, + Properties::NON_VIRTUAL, + __point_type__getWidthTotal, + "", + ""); + I_Method0(osgWidget::point_type, getHeightTotal, + Properties::NON_VIRTUAL, + __point_type__getHeightTotal, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidth, + Properties::NON_VIRTUAL, + __point_type__getMinWidth, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeight, + Properties::NON_VIRTUAL, + __point_type__getMinHeight, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidthTotal, + Properties::NON_VIRTUAL, + __point_type__getMinWidthTotal, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeightTotal, + Properties::NON_VIRTUAL, + __point_type__getMinHeightTotal, + "", + ""); + I_Method0(unsigned int, getLayer, + Properties::NON_VIRTUAL, + __unsigned_int__getLayer, + "", + ""); + I_ProtectedMethod1(osgWidget::point_type, _calculateZ, IN, unsigned, int, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___calculateZ__unsigned, + "", + ""); + I_ProtectedMethod0(osgWidget::PointArray *, _verts, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __PointArray_P1___verts, + "", + ""); + I_ProtectedMethod0(const osgWidget::PointArray *, _verts, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_PointArray_P1___verts, + "", + ""); + I_ProtectedMethod0(osgWidget::ColorArray *, _cols, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __ColorArray_P1___cols, + "", + ""); + I_ProtectedMethod0(const osgWidget::ColorArray *, _cols, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_ColorArray_P1___cols, + "", + ""); + I_ProtectedMethod0(osgWidget::TexCoordArray *, _texs, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __TexCoordArray_P1___texs, + "", + ""); + I_ProtectedMethod0(const osgWidget::TexCoordArray *, _texs, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_TexCoordArray_P1___texs, + "", + ""); + I_ProtectedMethod0(osg::Texture *, _texture, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Texture_P1___texture, + "", + ""); + I_ProtectedMethod0(const osg::Texture *, _texture, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Texture_P1___texture, + "", + ""); + I_ProtectedMethod0(osg::Image *, _image, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Image_P1___image, + "", + ""); + I_ProtectedMethod0(const osg::Image *, _image, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Image_P1___image, + "", + ""); + I_ProtectedMethod0(osgWidget::WindowManager *, _getWindowManager, + Properties::NON_VIRTUAL, + Properties::CONST, + __WindowManager_P1___getWindowManager, + "", + ""); + I_ProtectedMethod0(osg::Image *, _getImage, + Properties::NON_VIRTUAL, + Properties::CONST, + __osg_Image_P1___getImage, + "", + ""); + I_SimpleProperty(osgWidget::Widget::HorizontalAlignment, AlignHorizontal, + __HorizontalAlignment__getAlignHorizontal, + __void__setAlignHorizontal__HorizontalAlignment); + I_SimpleProperty(osgWidget::Widget::VerticalAlignment, AlignVertical, + __VerticalAlignment__getAlignVertical, + __void__setAlignVertical__VerticalAlignment); + I_SimpleProperty(bool, CanClone, + 0, + __void__setCanClone__bool); + I_SimpleProperty(bool, CanFill, + 0, + __void__setCanFill__bool); + I_SimpleProperty(osgWidget::Widget::CoordinateMode, CoordinateMode, + __CoordinateMode__getCoordinateMode, + __void__setCoordinateMode__CoordinateMode); + I_SimpleProperty(osgWidget::Quad, Dimensions, + __Quad__getDimensions, + 0); + I_SimpleProperty(osgWidget::point_type, FillAsNumeric, + __point_type__getFillAsNumeric, + 0); + I_SimpleProperty(osgWidget::point_type, Height, + __point_type__getHeight, + __void__setHeight__point_type); + I_SimpleProperty(osgWidget::point_type, HeightTotal, + __point_type__getHeightTotal, + 0); + I_SimpleProperty(unsigned int, Index, + __unsigned_int__getIndex, + 0); + I_SimpleProperty(unsigned int, Layer, + __unsigned_int__getLayer, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeight, + __point_type__getMinHeight, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeightTotal, + __point_type__getMinHeightTotal, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidth, + __point_type__getMinWidth, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidthTotal, + __point_type__getMinWidthTotal, + 0); + I_SimpleProperty(const osgWidget::XYCoord &, MinimumSize, + 0, + __void__setMinimumSize__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::XYCoord, Origin, + __XYCoord__getOrigin, + __void__setOrigin__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::point_type, PadBottom, + __point_type__getPadBottom, + __void__setPadBottom__point_type); + I_SimpleProperty(osgWidget::point_type, PadHorizontal, + __point_type__getPadHorizontal, + 0); + I_SimpleProperty(osgWidget::point_type, PadLeft, + __point_type__getPadLeft, + __void__setPadLeft__point_type); + I_SimpleProperty(osgWidget::point_type, PadRight, + __point_type__getPadRight, + __void__setPadRight__point_type); + I_SimpleProperty(osgWidget::point_type, PadTop, + __point_type__getPadTop, + __void__setPadTop__point_type); + I_SimpleProperty(osgWidget::point_type, PadVertical, + __point_type__getPadVertical, + 0); + I_SimpleProperty(osgWidget::point_type, Padding, + 0, + __void__setPadding__point_type); + I_SimpleProperty(osgWidget::Window *, Parent, + __Window_P1__getParent, + 0); + I_SimpleProperty(osgWidget::Point, Position, + __Point__getPosition, + 0); + I_SimpleProperty(osgWidget::XYCoord, Size, + __XYCoord__getSize, + __void__setSize__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::point_type, Width, + __point_type__getWidth, + __void__setWidth__point_type); + I_SimpleProperty(osgWidget::point_type, WidthTotal, + __point_type__getWidthTotal, + 0); + I_SimpleProperty(osgWidget::WindowManager *, WindowManager, + __WindowManager_P1__getWindowManager, + 0); + I_SimpleProperty(osgWidget::point_type, X, + __point_type__getX, + __void__setX__point_type); + I_SimpleProperty(osgWidget::point_type, Y, + __point_type__getY, + __void__setY__point_type); + I_SimpleProperty(osgWidget::point_type, Z, + __point_type__getZ, + __void__setZ__point_type); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Widget > >, osgWidget::WidgetList) + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Widget >) + I_DeclaringFile("osg/observer_ptr"); + I_BaseType(osg::Observer); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Widget *, t, + Properties::NON_EXPLICIT, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osgWidget::Widget > &, 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(osgWidget::Widget *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osgWidget::Widget *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Widget > >) + diff --git a/src/osgWrappers/introspection/osgWidget/Window.cpp b/src/osgWrappers/introspection/osgWidget/Window.cpp new file mode 100644 index 000000000..3fc8206fb --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/Window.cpp @@ -0,0 +1,991 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::Strata) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::STRATA_NONE); + I_EnumLabel(osgWidget::Window::STRATA_BACKGROUND); + I_EnumLabel(osgWidget::Window::STRATA_FOREGROUND); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::VisibilityMode) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::VM_FULL); + I_EnumLabel(osgWidget::Window::VM_PARTIAL); + I_EnumLabel(osgWidget::Window::VM_ENTIRE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::VerticalAnchor) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::VA_NONE); + I_EnumLabel(osgWidget::Window::VA_CENTER); + I_EnumLabel(osgWidget::Window::VA_TOP); + I_EnumLabel(osgWidget::Window::VA_BOTTOM); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::Window::HorizontalAnchor) + I_DeclaringFile("osgWidget/Window"); + I_EnumLabel(osgWidget::Window::HA_NONE); + I_EnumLabel(osgWidget::Window::HA_CENTER); + I_EnumLabel(osgWidget::Window::HA_LEFT); + I_EnumLabel(osgWidget::Window::HA_RIGHT); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::list< osg::observer_ptr< osgWidget::Window > >, osgWidget::Window::WindowList) + + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgWidget::Window) + I_DeclaringFile("osgWidget/Window"); + I_BaseType(osg::MatrixTransform); + I_BaseType(osgWidget::EventInterface); + I_BaseType(osgWidget::StyleInterface); + I_ConstructorWithDefaults1(IN, const std::string &, x, "", + Properties::NON_EXPLICIT, + ____Window__C5_std_string_R1, + "", + ""); + I_Constructor2(IN, const osgWidget::Window &, x, IN, const osg::CopyOp &, x, + ____Window__C5_Window_R1__C5_osg_CopyOp_R1, + "", + ""); + I_MethodWithDefaults2(bool, resize, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resize__point_type__point_type, + "", + ""); + I_MethodWithDefaults2(bool, resizeAdd, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resizeAdd__point_type__point_type, + "", + ""); + I_MethodWithDefaults2(bool, resizePercent, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + Properties::NON_VIRTUAL, + __bool__resizePercent__point_type__point_type, + "", + ""); + I_Method0(void, update, + Properties::VIRTUAL, + __void__update, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method1(bool, addWidget, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__addWidget__Widget_P1, + "", + ""); + I_Method2(bool, insertWidget, IN, osgWidget::Widget *, x, IN, unsigned, int, + Properties::VIRTUAL, + __bool__insertWidget__Widget_P1__unsigned, + "", + ""); + I_Method1(bool, removeWidget, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__removeWidget__Widget_P1, + "", + ""); + I_Method2(bool, replaceWidget, IN, osgWidget::Widget *, x, IN, osgWidget::Widget *, x, + Properties::VIRTUAL, + __bool__replaceWidget__Widget_P1__Widget_P1, + "", + ""); + I_Method1(unsigned int, addDrawableAndGetIndex, IN, osg::Drawable *, x, + Properties::NON_VIRTUAL, + __unsigned_int__addDrawableAndGetIndex__osg_Drawable_P1, + "", + ""); + I_Method1(unsigned int, addChildAndGetIndex, IN, osg::Node *, x, + Properties::NON_VIRTUAL, + __unsigned_int__addChildAndGetIndex__osg_Node_P1, + "", + ""); + I_Method0(bool, isVisible, + Properties::NON_VIRTUAL, + __bool__isVisible, + "", + ""); + I_Method2(bool, isXYWithinVisible, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __bool__isXYWithinVisible__float__float, + "", + ""); + I_MethodWithDefaults4(void, setVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, + Properties::NON_VIRTUAL, + __void__setVisibleArea__int__int__int__int, + "", + ""); + I_MethodWithDefaults4(void, addVisibleArea, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, IN, int, x, 0, + Properties::NON_VIRTUAL, + __void__addVisibleArea__int__int__int__int, + "", + ""); + I_Method1(bool, setFocused, IN, const osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + __bool__setFocused__C5_Widget_P1, + "", + ""); + I_Method1(bool, setFocused, IN, const std::string &, x, + Properties::NON_VIRTUAL, + __bool__setFocused__C5_std_string_R1, + "", + ""); + I_Method0(bool, grabFocus, + Properties::NON_VIRTUAL, + __bool__grabFocus, + "", + ""); + I_Method0(bool, setFirstFocusable, + Properties::NON_VIRTUAL, + __bool__setFirstFocusable, + "", + ""); + I_Method0(bool, setNextFocusable, + Properties::NON_VIRTUAL, + __bool__setNextFocusable, + "", + ""); + I_Method1(bool, getFocusList, IN, osgWidget::WidgetList &, x, + Properties::NON_VIRTUAL, + __bool__getFocusList__WidgetList_R1, + "", + ""); + I_Method1(bool, getEmbeddedList, IN, osgWidget::Window::WindowList &, x, + Properties::NON_VIRTUAL, + __bool__getEmbeddedList__WindowList_R1, + "", + ""); + I_Method1(void, getParentList, IN, osgWidget::Window::WindowList &, x, + Properties::NON_VIRTUAL, + __void__getParentList__WindowList_R1, + "", + ""); + I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__localXY__double__double, + "", + ""); + I_Method0(osgWidget::XYCoord, getAbsoluteOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getAbsoluteOrigin, + "", + ""); + I_MethodWithDefaults3(osgWidget::Window::EmbeddedWindow *, embed, IN, const std::string &, x, "", IN, osgWidget::Widget::Layer, x, osgWidget::Widget::LAYER_MIDDLE, IN, unsigned, int, 0, + Properties::NON_VIRTUAL, + __EmbeddedWindow_P1__embed__C5_std_string_R1__Widget_Layer__unsigned, + "", + ""); + I_Method0(osgWidget::Widget *, getFocused, + Properties::NON_VIRTUAL, + __Widget_P1__getFocused, + "", + ""); + I_Method0(const osgWidget::Widget *, getFocused, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getFocused, + "", + ""); + I_Method0(bool, show, + Properties::NON_VIRTUAL, + __bool__show, + "", + ""); + I_Method0(bool, hide, + Properties::NON_VIRTUAL, + __bool__hide, + "", + ""); + I_Method2(bool, isPointerXYWithinVisible, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__isPointerXYWithinVisible__float__float, + "", + ""); + 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(osgWidget::Widget *, getBackground, + Properties::NON_VIRTUAL, + __Widget_P1__getBackground, + "", + ""); + I_Method0(const osgWidget::Widget *, getBackground, + Properties::NON_VIRTUAL, + __C5_Widget_P1__getBackground, + "", + ""); + I_Method0(osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(const osgWidget::WindowManager *, getWindowManager, + Properties::NON_VIRTUAL, + __C5_WindowManager_P1__getWindowManager, + "", + ""); + I_Method0(osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __Window_P1__getParent, + "", + ""); + I_Method0(const osgWidget::Window *, getParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getParent, + "", + ""); + I_Method0(osgWidget::Window *, getTopmostParent, + Properties::NON_VIRTUAL, + __Window_P1__getTopmostParent, + "", + ""); + I_Method0(const osgWidget::Window *, getTopmostParent, + Properties::NON_VIRTUAL, + __C5_Window_P1__getTopmostParent, + "", + ""); + I_Method0(unsigned int, getIndex, + Properties::NON_VIRTUAL, + __unsigned_int__getIndex, + "", + ""); + I_Method0(osgWidget::matrix_type, getX, + Properties::NON_VIRTUAL, + __matrix_type__getX, + "", + ""); + I_Method0(osgWidget::matrix_type, getY, + Properties::NON_VIRTUAL, + __matrix_type__getY, + "", + ""); + I_Method0(osgWidget::matrix_type, getZ, + Properties::NON_VIRTUAL, + __matrix_type__getZ, + "", + ""); + I_Method0(osgWidget::point_type, getWidth, + Properties::NON_VIRTUAL, + __point_type__getWidth, + "", + ""); + I_Method0(osgWidget::point_type, getHeight, + Properties::NON_VIRTUAL, + __point_type__getHeight, + "", + ""); + I_Method0(osgWidget::point_type, getMinWidth, + Properties::NON_VIRTUAL, + __point_type__getMinWidth, + "", + ""); + I_Method0(osgWidget::point_type, getMinHeight, + Properties::NON_VIRTUAL, + __point_type__getMinHeight, + "", + ""); + I_Method0(osgWidget::Window::VerticalAnchor, getAnchorVertical, + Properties::NON_VIRTUAL, + __VerticalAnchor__getAnchorVertical, + "", + ""); + I_Method0(osgWidget::Window::HorizontalAnchor, getAnchorHorizontal, + Properties::NON_VIRTUAL, + __HorizontalAnchor__getAnchorHorizontal, + "", + ""); + I_Method0(osgWidget::XYCoord, getOrigin, + Properties::NON_VIRTUAL, + __XYCoord__getOrigin, + "", + ""); + I_Method0(osgWidget::XYCoord, getSize, + Properties::NON_VIRTUAL, + __XYCoord__getSize, + "", + ""); + I_Method0(osgWidget::XYCoord, getMinSize, + Properties::NON_VIRTUAL, + __XYCoord__getMinSize, + "", + ""); + I_Method0(osgWidget::matrix_type, getZRange, + Properties::NON_VIRTUAL, + __matrix_type__getZRange, + "", + ""); + I_Method0(osgWidget::Window::Strata, getStrata, + Properties::NON_VIRTUAL, + __Strata__getStrata, + "", + ""); + I_Method0(const osgWidget::Quad &, getVisibleArea, + Properties::NON_VIRTUAL, + __C5_Quad_R1__getVisibleArea, + "", + ""); + I_Method0(osgWidget::Window::VisibilityMode, getVisibilityMode, + Properties::NON_VIRTUAL, + __VisibilityMode__getVisibilityMode, + "", + ""); + I_Method0(osgWidget::Point, getPosition, + Properties::NON_VIRTUAL, + __Point__getPosition, + "", + ""); + I_Method0(osgWidget::matrix_type, getRotate, + Properties::NON_VIRTUAL, + __matrix_type__getRotate, + "", + ""); + I_Method0(osgWidget::matrix_type, getScale, + Properties::NON_VIRTUAL, + __matrix_type__getScale, + "", + ""); + I_Method0(osgWidget::matrix_type, getScaleDenominator, + Properties::NON_VIRTUAL, + __matrix_type__getScaleDenominator, + "", + ""); + I_Method1(void, setX, IN, osgWidget::matrix_type, x, + Properties::NON_VIRTUAL, + __void__setX__matrix_type, + "", + ""); + I_Method1(void, setY, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__setY__matrix_type, + "", + ""); + I_Method1(void, setZ, IN, osgWidget::matrix_type, z, + Properties::NON_VIRTUAL, + __void__setZ__matrix_type, + "", + ""); + I_Method1(void, setZRange, IN, osgWidget::matrix_type, zRange, + Properties::NON_VIRTUAL, + __void__setZRange__matrix_type, + "", + ""); + I_Method3(void, setPosition, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, IN, osgWidget::matrix_type, z, + Properties::NON_VIRTUAL, + __void__setPosition__matrix_type__matrix_type__matrix_type, + "", + ""); + I_Method1(void, setPosition, IN, const osgWidget::Point &, p, + Properties::NON_VIRTUAL, + __void__setPosition__C5_Point_R1, + "", + ""); + I_Method2(void, setOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__setOrigin__matrix_type__matrix_type, + "", + ""); + I_Method1(void, setOrigin, IN, const osgWidget::XYCoord &, xy, + Properties::NON_VIRTUAL, + __void__setOrigin__C5_XYCoord_R1, + "", + ""); + I_Method1(void, setRotate, IN, osgWidget::matrix_type, r, + Properties::NON_VIRTUAL, + __void__setRotate__matrix_type, + "", + ""); + I_Method1(void, setScale, IN, osgWidget::matrix_type, s, + Properties::NON_VIRTUAL, + __void__setScale__matrix_type, + "", + ""); + I_Method1(void, setScaleDenominator, IN, osgWidget::matrix_type, sd, + Properties::NON_VIRTUAL, + __void__setScaleDenominator__matrix_type, + "", + ""); + I_Method1(void, setAnchorVertical, IN, osgWidget::Window::VerticalAnchor, va, + Properties::NON_VIRTUAL, + __void__setAnchorVertical__VerticalAnchor, + "", + ""); + I_Method1(void, setAnchorHorizontal, IN, osgWidget::Window::HorizontalAnchor, ha, + Properties::NON_VIRTUAL, + __void__setAnchorHorizontal__HorizontalAnchor, + "", + ""); + I_Method1(void, setStrata, IN, osgWidget::Window::Strata, s, + Properties::NON_VIRTUAL, + __void__setStrata__Strata, + "", + ""); + I_Method1(void, setVisibilityMode, IN, osgWidget::Window::VisibilityMode, v, + Properties::NON_VIRTUAL, + __void__setVisibilityMode__VisibilityMode, + "", + ""); + I_Method1(void, addX, IN, osgWidget::matrix_type, x, + Properties::NON_VIRTUAL, + __void__addX__matrix_type, + "", + ""); + I_Method1(void, addY, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__addY__matrix_type, + "", + ""); + I_Method1(void, addZ, IN, osgWidget::matrix_type, z, + Properties::NON_VIRTUAL, + __void__addZ__matrix_type, + "", + ""); + I_Method1(void, addRotate, IN, osgWidget::matrix_type, r, + Properties::NON_VIRTUAL, + __void__addRotate__matrix_type, + "", + ""); + I_Method1(void, addScale, IN, osgWidget::matrix_type, s, + Properties::NON_VIRTUAL, + __void__addScale__matrix_type, + "", + ""); + I_Method2(void, addOrigin, IN, osgWidget::matrix_type, x, IN, osgWidget::matrix_type, y, + Properties::NON_VIRTUAL, + __void__addOrigin__matrix_type__matrix_type, + "", + ""); + I_Method0(void, attachMoveCallback, + Properties::NON_VIRTUAL, + __void__attachMoveCallback, + "", + ""); + I_Method0(void, attachRotateCallback, + Properties::NON_VIRTUAL, + __void__attachRotateCallback, + "", + ""); + I_Method0(void, attachScaleCallback, + Properties::NON_VIRTUAL, + __void__attachScaleCallback, + "", + ""); + I_Method0(void, attachTabFocusCallback, + Properties::NON_VIRTUAL, + __void__attachTabFocusCallback, + "", + ""); + I_ProtectedMethod2(void, _setWidthAndHeightUnknownSizeError, IN, const std::string &, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeightUnknownSizeError__C5_std_string_R1__point_type, + "", + ""); + I_ProtectedMethod2(void, _setWidthAndHeightNotPAError, IN, const std::string &, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeightNotPAError__C5_std_string_R1__point_type, + "", + ""); + I_ProtectedMethod0(void, _setWidthAndHeight, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setWidthAndHeight, + "", + ""); + I_ProtectedMethod1(void, _removeFromGeode, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___removeFromGeode__Widget_P1, + "", + ""); + I_ProtectedMethod0(osgWidget::Widget *, _getBackground, + Properties::NON_VIRTUAL, + Properties::CONST, + __Widget_P1___getBackground, + "", + ""); + I_ProtectedMethod0(osgWidget::Window *, _getTopmostParent, + Properties::NON_VIRTUAL, + Properties::CONST, + __Window_P1___getTopmostParent, + "", + ""); + I_ProtectedMethod0(osg::Geode *, _geode, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Geode_P1___geode, + "", + ""); + I_ProtectedMethod0(const osg::Geode *, _geode, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_osg_Geode_P1___geode, + "", + ""); + I_ProtectedMethod0(osgWidget::Widget *, _bg, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __Widget_P1___bg, + "", + ""); + I_ProtectedMethod0(const osgWidget::Widget *, _bg, + Properties::NON_VIRTUAL, + Properties::CONST, + __C5_Widget_P1___bg, + "", + ""); + I_ProtectedMethod0(osg::Scissor *, _scissor, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __osg_Scissor_P1___scissor, + "", + ""); + I_ProtectedMethodWithDefaults2(bool, _setWidget, IN, osgWidget::Widget *, x, , IN, int, x, -1, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___setWidget__Widget_P1__int, + "", + ""); + I_ProtectedMethod1(bool, _setVisible, IN, bool, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __bool___setVisible__bool, + "", + ""); + I_ProtectedMethod1(void, _setFocused, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setFocused__Widget_P1, + "", + ""); + I_ProtectedMethod1(void, _setStyled, IN, osgWidget::Widget *, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setStyled__Widget_P1, + "", + ""); + I_ProtectedMethodWithDefaults2(void, _setParented, IN, osgWidget::Widget *, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setParented__Widget_P1__bool, + "", + ""); + I_ProtectedMethodWithDefaults2(void, _setManaged, IN, osgWidget::Widget *, x, , IN, bool, x, false, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___setManaged__Widget_P1__bool, + "", + ""); + I_ProtectedMethod3(void, _positionWidget, IN, osgWidget::Widget *, x, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::NON_VIRTUAL, + Properties::NON_CONST, + __void___positionWidget__Widget_P1__point_type__point_type, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidth, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinWidth__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeight, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinHeight__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetMinHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinWidthTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinWidthTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetMinHeightTotal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetMinHeightTotal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetPadHorizontal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMinWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMinWidgetPadVertical__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadHorizontal, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetPadHorizontal__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getMaxWidgetPadVertical, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getMaxWidgetPadVertical__int__int__int, + "", + ""); + I_ProtectedMethodWithDefaults3(osgWidget::point_type, _getNumFill, IN, int, x, 0, IN, int, x, 0, IN, int, x, 1, + Properties::NON_VIRTUAL, + Properties::CONST, + __point_type___getNumFill__int__int__int, + "", + ""); + I_ProtectedMethod2(void, _resizeImplementation, IN, osgWidget::point_type, x, IN, osgWidget::point_type, x, + Properties::PURE_VIRTUAL, + Properties::NON_CONST, + __void___resizeImplementation__point_type__point_type, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getWidthImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getWidthImplementation, + "", + ""); + I_ProtectedMethod0(osgWidget::Window::Sizes, _getHeightImplementation, + Properties::VIRTUAL, + Properties::CONST, + __Sizes___getHeightImplementation, + "", + ""); + I_SimpleProperty(osgWidget::XYCoord, AbsoluteOrigin, + __XYCoord__getAbsoluteOrigin, + 0); + I_SimpleProperty(osgWidget::Window::HorizontalAnchor, AnchorHorizontal, + __HorizontalAnchor__getAnchorHorizontal, + __void__setAnchorHorizontal__HorizontalAnchor); + I_SimpleProperty(osgWidget::Window::VerticalAnchor, AnchorVertical, + __VerticalAnchor__getAnchorVertical, + __void__setAnchorVertical__VerticalAnchor); + I_SimpleProperty(osgWidget::Widget *, Background, + __Widget_P1__getBackground, + 0); + I_SimpleProperty(const osgWidget::Widget *, Focused, + __C5_Widget_P1__getFocused, + __bool__setFocused__C5_Widget_P1); + I_SimpleProperty(osg::Geode *, Geode, + __osg_Geode_P1__getGeode, + 0); + I_SimpleProperty(osgWidget::point_type, Height, + __point_type__getHeight, + 0); + I_SimpleProperty(unsigned int, Index, + __unsigned_int__getIndex, + 0); + I_SimpleProperty(osgWidget::point_type, MinHeight, + __point_type__getMinHeight, + 0); + I_SimpleProperty(osgWidget::XYCoord, MinSize, + __XYCoord__getMinSize, + 0); + I_SimpleProperty(osgWidget::point_type, MinWidth, + __point_type__getMinWidth, + 0); + I_SimpleProperty(osgWidget::XYCoord, Origin, + __XYCoord__getOrigin, + __void__setOrigin__C5_XYCoord_R1); + I_SimpleProperty(osgWidget::Window *, Parent, + __Window_P1__getParent, + 0); + I_SimpleProperty(osgWidget::Point, Position, + __Point__getPosition, + __void__setPosition__C5_Point_R1); + I_SimpleProperty(osgWidget::matrix_type, Rotate, + __matrix_type__getRotate, + __void__setRotate__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Scale, + __matrix_type__getScale, + __void__setScale__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, ScaleDenominator, + __matrix_type__getScaleDenominator, + __void__setScaleDenominator__matrix_type); + I_SimpleProperty(osgWidget::XYCoord, Size, + __XYCoord__getSize, + 0); + I_SimpleProperty(osgWidget::Window::Strata, Strata, + __Strata__getStrata, + __void__setStrata__Strata); + I_SimpleProperty(osgWidget::Window *, TopmostParent, + __Window_P1__getTopmostParent, + 0); + I_SimpleProperty(osgWidget::Window::VisibilityMode, VisibilityMode, + __VisibilityMode__getVisibilityMode, + __void__setVisibilityMode__VisibilityMode); + I_SimpleProperty(const osgWidget::Quad &, VisibleArea, + __C5_Quad_R1__getVisibleArea, + 0); + I_SimpleProperty(osgWidget::point_type, Width, + __point_type__getWidth, + 0); + I_SimpleProperty(osgWidget::WindowManager *, WindowManager, + __WindowManager_P1__getWindowManager, + 0); + I_SimpleProperty(osgWidget::matrix_type, X, + __matrix_type__getX, + __void__setX__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Y, + __matrix_type__getY, + __void__setY__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, Z, + __matrix_type__getZ, + __void__setZ__matrix_type); + I_SimpleProperty(osgWidget::matrix_type, ZRange, + __matrix_type__getZRange, + __void__setZRange__matrix_type); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::Window::EmbeddedWindow) + I_DeclaringFile("osgWidget/Window"); + I_BaseType(osgWidget::Widget); + 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_ConstructorWithDefaults3(IN, const std::string &, x, "", IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, + ____EmbeddedWindow__C5_std_string_R1__point_type__point_type, + "", + ""); + I_Constructor2(IN, const osgWidget::Window::EmbeddedWindow &, x, IN, const osg::CopyOp &, x, + ____EmbeddedWindow__C5_EmbeddedWindow_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(void, parented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__parented__Window_P1, + "", + ""); + I_Method1(void, unparented, IN, osgWidget::Window *, x, + Properties::VIRTUAL, + __void__unparented__Window_P1, + "", + ""); + I_Method1(void, managed, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__managed__WindowManager_P1, + "", + ""); + I_Method1(void, unmanaged, IN, osgWidget::WindowManager *, x, + Properties::VIRTUAL, + __void__unmanaged__WindowManager_P1, + "", + ""); + I_Method0(void, positioned, + Properties::VIRTUAL, + __void__positioned, + "", + ""); + I_Method1(bool, setWindow, IN, osgWidget::Window *, x, + Properties::NON_VIRTUAL, + __bool__setWindow__Window_P1, + "", + ""); + I_Method0(void, updateSizeFromWindow, + Properties::NON_VIRTUAL, + __void__updateSizeFromWindow, + "", + ""); + I_Method0(osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __Window_P1__getWindow, + "", + ""); + I_Method0(const osgWidget::Window *, getWindow, + Properties::NON_VIRTUAL, + __C5_Window_P1__getWindow, + "", + ""); + I_SimpleProperty(osgWidget::Window *, Window, + __Window_P1__getWindow, + __bool__setWindow__Window_P1); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgWidget::Window::Sizes) + I_DeclaringFile("osgWidget/Window"); + I_ConstructorWithDefaults2(IN, osgWidget::point_type, c, -1.0f, IN, osgWidget::point_type, m, -1.0f, + ____Sizes__point_type__point_type, + "", + ""); + I_PublicMemberProperty(osgWidget::point_type, current); + I_PublicMemberProperty(osgWidget::point_type, minimum); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgWidget::Window::WindowList, osgWidget::WindowList) + +BEGIN_OBJECT_REFLECTOR(osg::observer_ptr< osgWidget::Window >) + I_DeclaringFile("osg/observer_ptr"); + I_BaseType(osg::Observer); + I_Constructor0(____observer_ptr, + "", + ""); + I_Constructor1(IN, osgWidget::Window *, t, + Properties::NON_EXPLICIT, + ____observer_ptr__T_P1, + "", + ""); + I_Constructor1(IN, const osg::observer_ptr< osgWidget::Window > &, 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(osgWidget::Window *, get, + Properties::NON_VIRTUAL, + __T_P1__get, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_SimpleProperty(osgWidget::Window *, , + __T_P1__get, + 0); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::observer_ptr< osgWidget::Window > >) + diff --git a/src/osgWrappers/introspection/osgWidget/WindowManager.cpp b/src/osgWrappers/introspection/osgWidget/WindowManager.cpp new file mode 100644 index 000000000..1fa97e3fb --- /dev/null +++ b/src/osgWrappers/introspection/osgWidget/WindowManager.cpp @@ -0,0 +1,426 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_ENUM_REFLECTOR(osgWidget::WindowManager::WmFlags) + I_DeclaringFile("osgWidget/WindowManager"); + I_EnumLabel(osgWidget::WindowManager::WM_USE_LUA); + I_EnumLabel(osgWidget::WindowManager::WM_USE_PYTHON); + I_EnumLabel(osgWidget::WindowManager::WM_USE_RENDERBINS); + I_EnumLabel(osgWidget::WindowManager::WM_PICK_DEBUG); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::WindowManager::PointerDirection) + I_DeclaringFile("osgWidget/WindowManager"); + I_EnumLabel(osgWidget::WindowManager::PD_NONE); + I_EnumLabel(osgWidget::WindowManager::PD_LEFT); + I_EnumLabel(osgWidget::WindowManager::PD_RIGHT); + I_EnumLabel(osgWidget::WindowManager::PD_UP); + I_EnumLabel(osgWidget::WindowManager::PD_DOWN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgWidget::WindowManager::PointerFocusMode) + I_DeclaringFile("osgWidget/WindowManager"); + I_EnumLabel(osgWidget::WindowManager::PFM_FOCUS); + I_EnumLabel(osgWidget::WindowManager::PFM_UNFOCUS); + I_EnumLabel(osgWidget::WindowManager::PFM_SLOPPY); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgWidget::WindowManager) + I_DeclaringFile("osgWidget/WindowManager"); + I_BaseType(osg::Switch); + 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 *, 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_ConstructorWithDefaults5(IN, osgViewer::View *, x, 0, IN, osgWidget::point_type, x, 0.0f, IN, osgWidget::point_type, x, 0.0f, IN, unsigned, int, 0, IN, unsigned, int, 0, + ____WindowManager__osgViewer_View_P1__point_type__point_type__unsigned__unsigned, + "", + ""); + I_Constructor2(IN, const osgWidget::WindowManager &, x, IN, const osg::CopyOp &, x, + ____WindowManager__C5_WindowManager_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method3(bool, pickAtXY, IN, float, x, IN, float, x, IN, osgWidget::WidgetList &, x, + Properties::NON_VIRTUAL, + __bool__pickAtXY__float__float__WidgetList_R1, + "", + ""); + I_Method1(bool, setFocused, IN, osgWidget::Window *, x, + Properties::NON_VIRTUAL, + __bool__setFocused__Window_P1, + "", + ""); + I_Method2(void, setPointerXY, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __void__setPointerXY__float__float, + "", + ""); + I_Method1(void, setStyleManager, IN, osgWidget::StyleManager *, x, + Properties::NON_VIRTUAL, + __void__setStyleManager__StyleManager_P1, + "", + ""); + I_MethodWithDefaults1(void, resizeAllWindows, IN, bool, x, true, + Properties::NON_VIRTUAL, + __void__resizeAllWindows__bool, + "", + ""); + I_Method2(osgWidget::XYCoord, windowXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__windowXY__double__double, + "", + ""); + I_Method2(osgWidget::XYCoord, localXY, IN, double, x, IN, double, x, + Properties::NON_VIRTUAL, + __XYCoord__localXY__double__double, + "", + ""); + I_Method2(bool, pointerMove, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __bool__pointerMove__float__float, + "", + ""); + I_Method2(bool, pointerDrag, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __bool__pointerDrag__float__float, + "", + ""); + I_Method2(bool, mouseScroll, IN, float, x, IN, float, x, + Properties::NON_VIRTUAL, + __bool__mouseScroll__float__float, + "", + ""); + I_Method0(osg::Camera *, createParentOrthoCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__createParentOrthoCamera, + "", + ""); + I_Method0(unsigned int, getNodeMask, + Properties::NON_VIRTUAL, + __unsigned_int__getNodeMask, + "Get the node Mask. ", + ""); + I_Method0(osgWidget::point_type, getWidth, + Properties::NON_VIRTUAL, + __point_type__getWidth, + "", + ""); + I_Method0(osgWidget::point_type, getHeight, + Properties::NON_VIRTUAL, + __point_type__getHeight, + "", + ""); + I_Method0(bool, isUsingLua, + Properties::NON_VIRTUAL, + __bool__isUsingLua, + "", + ""); + I_Method0(bool, isUsingPython, + Properties::NON_VIRTUAL, + __bool__isUsingPython, + "", + ""); + I_Method0(bool, isUsingRenderBins, + Properties::NON_VIRTUAL, + __bool__isUsingRenderBins, + "", + ""); + I_Method0(int, getMouseKeysDown, + Properties::NON_VIRTUAL, + __int__getMouseKeysDown, + "", + ""); + I_Method0(osgWidget::ScriptEngine *, getLuaEngine, + Properties::NON_VIRTUAL, + __ScriptEngine_P1__getLuaEngine, + "", + ""); + I_Method0(const osgWidget::ScriptEngine *, getLuaEngine, + Properties::NON_VIRTUAL, + __C5_ScriptEngine_P1__getLuaEngine, + "", + ""); + I_Method0(osgWidget::ScriptEngine *, getPythonEngine, + Properties::NON_VIRTUAL, + __ScriptEngine_P1__getPythonEngine, + "", + ""); + I_Method0(const osgWidget::ScriptEngine *, getPythonEngine, + Properties::NON_VIRTUAL, + __C5_ScriptEngine_P1__getPythonEngine, + "", + ""); + I_Method0(osgWidget::StyleManager *, getStyleManager, + Properties::NON_VIRTUAL, + __StyleManager_P1__getStyleManager, + "", + ""); + I_Method0(const osgWidget::StyleManager *, getStyleManager, + Properties::NON_VIRTUAL, + __C5_StyleManager_P1__getStyleManager, + "", + ""); + I_Method0(osgWidget::WindowManager::PointerDirection, getPointerVerticalDirection, + Properties::NON_VIRTUAL, + __PointerDirection__getPointerVerticalDirection, + "", + ""); + I_Method0(osgWidget::WindowManager::PointerDirection, getPointerHorizontalDirection, + Properties::NON_VIRTUAL, + __PointerDirection__getPointerHorizontalDirection, + "", + ""); + I_Method0(osgWidget::WindowManager::PointerFocusMode, getPointerFocusMode, + Properties::NON_VIRTUAL, + __PointerFocusMode__getPointerFocusMode, + "", + ""); + I_Method0(int, getPointerDirectionVector, + Properties::NON_VIRTUAL, + __int__getPointerDirectionVector, + "", + ""); + I_Method0(bool, isPointerMovingUp, + Properties::NON_VIRTUAL, + __bool__isPointerMovingUp, + "", + ""); + I_Method0(bool, isPointerMovingDown, + Properties::NON_VIRTUAL, + __bool__isPointerMovingDown, + "", + ""); + I_Method0(bool, isPointerMovingLeft, + Properties::NON_VIRTUAL, + __bool__isPointerMovingLeft, + "", + ""); + I_Method0(bool, isPointerMovingRight, + Properties::NON_VIRTUAL, + __bool__isPointerMovingRight, + "", + ""); + I_Method0(bool, isPointerMovingVertically, + Properties::NON_VIRTUAL, + __bool__isPointerMovingVertically, + "", + ""); + I_Method0(bool, isPointerMovingHorizontally, + Properties::NON_VIRTUAL, + __bool__isPointerMovingHorizontally, + "", + ""); + I_Method0(bool, isLeftMouseButtonDown, + Properties::NON_VIRTUAL, + __bool__isLeftMouseButtonDown, + "", + ""); + I_Method0(bool, isMiddleMouseButtonDown, + Properties::NON_VIRTUAL, + __bool__isMiddleMouseButtonDown, + "", + ""); + I_Method0(bool, isRightMouseButtonDown, + Properties::NON_VIRTUAL, + __bool__isRightMouseButtonDown, + "", + ""); + I_Method0(bool, isMouseScrollingUp, + Properties::NON_VIRTUAL, + __bool__isMouseScrollingUp, + "", + ""); + I_Method0(bool, isMouseScrollingDown, + Properties::NON_VIRTUAL, + __bool__isMouseScrollingDown, + "", + ""); + I_Method1(bool, setFocusedByName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __bool__setFocusedByName__C5_std_string_R1, + "", + ""); + I_Method1(void, setScrollingMotion, IN, osgGA::GUIEventAdapter::ScrollingMotion, sm, + Properties::NON_VIRTUAL, + __void__setScrollingMotion__osgGA_GUIEventAdapter_ScrollingMotion, + "", + ""); + I_Method1(void, setPointerFocusMode, IN, osgWidget::WindowManager::PointerFocusMode, pfm, + Properties::NON_VIRTUAL, + __void__setPointerFocusMode__PointerFocusMode, + "", + ""); + I_Method1(void, setWidth, IN, osgWidget::point_type, w, + Properties::NON_VIRTUAL, + __void__setWidth__point_type, + "", + ""); + I_Method1(void, setHeight, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setHeight__point_type, + "", + ""); + I_Method2(void, setSize, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setSize__point_type__point_type, + "", + ""); + I_Method2(void, setWindowSize, IN, osgWidget::point_type, w, IN, osgWidget::point_type, h, + Properties::NON_VIRTUAL, + __void__setWindowSize__point_type__point_type, + "", + ""); + I_Method2(bool, mousePushedLeft, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mousePushedLeft__float__float, + "", + ""); + I_Method2(bool, mousePushedMiddle, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mousePushedMiddle__float__float, + "", + ""); + I_Method2(bool, mousePushedRight, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mousePushedRight__float__float, + "", + ""); + I_Method2(bool, mouseReleasedLeft, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mouseReleasedLeft__float__float, + "", + ""); + I_Method2(bool, mouseReleasedMiddle, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mouseReleasedMiddle__float__float, + "", + ""); + I_Method2(bool, mouseReleasedRight, IN, float, x, IN, float, y, + Properties::NON_VIRTUAL, + __bool__mouseReleasedRight__float__float, + "", + ""); + I_Method2(bool, keyDown, IN, int, x, IN, int, x, + Properties::NON_VIRTUAL, + __bool__keyDown__int__int, + "", + ""); + I_Method2(bool, keyUp, IN, int, x, IN, int, x, + Properties::NON_VIRTUAL, + __bool__keyUp__int__int, + "", + ""); + I_Method0(osgViewer::View *, getView, + Properties::NON_VIRTUAL, + __osgViewer_View_P1__getView, + "", + ""); + I_Method0(const osgViewer::View *, getView, + Properties::NON_VIRTUAL, + __C5_osgViewer_View_P1__getView, + "", + ""); + I_StaticMethod2(void, setEventFromInterface, IN, osgWidget::Event &, x, IN, osgWidget::EventInterface *, x, + __void__setEventFromInterface__Event_R1__EventInterface_P1_S, + "", + ""); + I_SimpleProperty(osgWidget::Window *, Focused, + 0, + __bool__setFocused__Window_P1); + I_SimpleProperty(const std::string &, FocusedByName, + 0, + __bool__setFocusedByName__C5_std_string_R1); + I_SimpleProperty(osgWidget::point_type, Height, + __point_type__getHeight, + __void__setHeight__point_type); + I_SimpleProperty(osgWidget::ScriptEngine *, LuaEngine, + __ScriptEngine_P1__getLuaEngine, + 0); + I_SimpleProperty(int, MouseKeysDown, + __int__getMouseKeysDown, + 0); + I_SimpleProperty(unsigned int, NodeMask, + __unsigned_int__getNodeMask, + 0); + I_SimpleProperty(int, PointerDirectionVector, + __int__getPointerDirectionVector, + 0); + I_SimpleProperty(osgWidget::WindowManager::PointerFocusMode, PointerFocusMode, + __PointerFocusMode__getPointerFocusMode, + __void__setPointerFocusMode__PointerFocusMode); + I_SimpleProperty(osgWidget::WindowManager::PointerDirection, PointerHorizontalDirection, + __PointerDirection__getPointerHorizontalDirection, + 0); + I_SimpleProperty(osgWidget::WindowManager::PointerDirection, PointerVerticalDirection, + __PointerDirection__getPointerVerticalDirection, + 0); + I_SimpleProperty(osgWidget::ScriptEngine *, PythonEngine, + __ScriptEngine_P1__getPythonEngine, + 0); + I_SimpleProperty(osgGA::GUIEventAdapter::ScrollingMotion, ScrollingMotion, + 0, + __void__setScrollingMotion__osgGA_GUIEventAdapter_ScrollingMotion); + I_SimpleProperty(osgWidget::StyleManager *, StyleManager, + __StyleManager_P1__getStyleManager, + __void__setStyleManager__StyleManager_P1); + I_SimpleProperty(osgViewer::View *, View, + __osgViewer_View_P1__getView, + 0); + I_SimpleProperty(osgWidget::point_type, Width, + __point_type__getWidth, + __void__setWidth__point_type); +END_REFLECTOR + +TYPE_NAME_ALIAS(osgUtil::LineSegmentIntersector::Intersections, osgWidget::Intersections) +