From 5e235366834e8eb706402e7a279572fb77402677 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 9 May 2005 10:17:56 +0000 Subject: [PATCH] Added osgUtil, osgDB, osgFX, osgParticle, osgSim, osgTerrain, osgGA and osgProducer to osgWrappers directory. Enabled the build of osgWrappers/osg, osgWrappers/osgPartile and osgWrappers/osgSim, but not osgUtil, osgDB, osgFX, osgTerrain, osgGA and osgProducer due to compile errors. I am assuming that these compilers are fixable so I'm checked all the source code so that members of the community can help fix them. --- Make/makedirdefs | 10 + src/osgWrappers/osgDB/Archive.cpp | 41 ++ src/osgWrappers/osgDB/DatabasePager.cpp | 131 +++++ src/osgWrappers/osgDB/DotOsgWrapper.cpp | 42 ++ src/osgWrappers/osgDB/DynamicLibrary.cpp | 28 + src/osgWrappers/osgDB/Field.cpp | 68 +++ src/osgWrappers/osgDB/FieldReader.cpp | 26 + src/osgWrappers/osgDB/FieldReaderIterator.cpp | 62 +++ src/osgWrappers/osgDB/FileUtils.cpp | 15 + src/osgWrappers/osgDB/GNUmakefile | 30 ++ src/osgWrappers/osgDB/ImageOptions.cpp | 56 ++ src/osgWrappers/osgDB/Input.cpp | 42 ++ src/osgWrappers/osgDB/Output.cpp | 50 ++ src/osgWrappers/osgDB/ParameterOutput.cpp | 22 + src/osgWrappers/osgDB/ReaderWriter.cpp | 151 ++++++ src/osgWrappers/osgDB/ReentrantMutex.cpp | 20 + src/osgWrappers/osgDB/Registry.cpp | 156 ++++++ src/osgWrappers/osgDB/SharedStateManager.cpp | 34 ++ src/osgWrappers/osgFX/AnisotropicLighting.cpp | 39 ++ src/osgWrappers/osgFX/BumpMapping.cpp | 55 ++ src/osgWrappers/osgFX/Cartoon.cpp | 41 ++ src/osgWrappers/osgFX/Effect.cpp | 46 ++ src/osgWrappers/osgFX/GNUmakefile | 24 + src/osgWrappers/osgFX/MultiTextureControl.cpp | 32 ++ src/osgWrappers/osgFX/Registry.cpp | 41 ++ src/osgWrappers/osgFX/Scribe.cpp | 38 ++ src/osgWrappers/osgFX/SpecularHighlights.cpp | 44 ++ src/osgWrappers/osgFX/Technique.cpp | 32 ++ src/osgWrappers/osgFX/Validator.cpp | 36 ++ .../osgGA/AnimationPathManipulator.cpp | 46 ++ src/osgWrappers/osgGA/DriveManipulator.cpp | 41 ++ src/osgWrappers/osgGA/EventVisitor.cpp | 67 +++ src/osgWrappers/osgGA/FlightManipulator.cpp | 47 ++ src/osgWrappers/osgGA/GNUmakefile | 30 ++ src/osgWrappers/osgGA/GUIActionAdapter.cpp | 20 + src/osgWrappers/osgGA/GUIEventAdapter.cpp | 217 ++++++++ src/osgWrappers/osgGA/GUIEventHandler.cpp | 78 +++ .../osgGA/GUIEventHandlerVisitor.cpp | 29 ++ .../osgGA/KeySwitchMatrixManipulator.cpp | 88 ++++ src/osgWrappers/osgGA/MatrixManipulator.cpp | 73 +++ .../osgGA/NodeTrackerManipulator.cpp | 74 +++ src/osgWrappers/osgGA/SetSceneViewVisitor.cpp | 25 + src/osgWrappers/osgGA/StateSetManipulator.cpp | 31 ++ src/osgWrappers/osgGA/TerrainManipulator.cpp | 53 ++ .../osgGA/TrackballManipulator.cpp | 52 ++ src/osgWrappers/osgGA/UFOManipulator.cpp | 48 ++ src/osgWrappers/osgParticle/AccelOperator.cpp | 36 ++ .../osgParticle/AngularAccelOperator.cpp | 34 ++ .../osgParticle/CenteredPlacer.cpp | 29 ++ src/osgWrappers/osgParticle/Counter.cpp | 25 + src/osgWrappers/osgParticle/Emitter.cpp | 33 ++ .../osgParticle/ExplosionDebriEffect.cpp | 39 ++ .../osgParticle/ExplosionEffect.cpp | 39 ++ src/osgWrappers/osgParticle/FireEffect.cpp | 39 ++ .../osgParticle/FluidFrictionOperator.cpp | 45 ++ src/osgWrappers/osgParticle/FluidProgram.cpp | 45 ++ src/osgWrappers/osgParticle/ForceOperator.cpp | 34 ++ src/osgWrappers/osgParticle/GNUmakefile | 48 ++ src/osgWrappers/osgParticle/Interpolator.cpp | 31 ++ .../osgParticle/LinearInterpolator.cpp | 27 + .../osgParticle/ModularEmitter.cpp | 43 ++ .../osgParticle/ModularProgram.cpp | 34 ++ .../osgParticle/MultiSegmentPlacer.cpp | 37 ++ src/osgWrappers/osgParticle/Operator.cpp | 32 ++ src/osgWrappers/osgParticle/Particle.cpp | 92 ++++ .../osgParticle/ParticleEffect.cpp | 68 +++ .../osgParticle/ParticleProcessor.cpp | 69 +++ .../osgParticle/ParticleSystem.cpp | 76 +++ .../osgParticle/ParticleSystemUpdater.cpp | 41 ++ src/osgWrappers/osgParticle/Placer.cpp | 26 + src/osgWrappers/osgParticle/PointPlacer.cpp | 28 + src/osgWrappers/osgParticle/Program.cpp | 26 + src/osgWrappers/osgParticle/RadialShooter.cpp | 46 ++ .../osgParticle/RandomRateCounter.cpp | 27 + src/osgWrappers/osgParticle/SectorPlacer.cpp | 37 ++ src/osgWrappers/osgParticle/SegmentPlacer.cpp | 38 ++ src/osgWrappers/osgParticle/Shooter.cpp | 26 + src/osgWrappers/osgParticle/SmokeEffect.cpp | 39 ++ .../osgParticle/VariableRateCounter.cpp | 29 ++ src/osgWrappers/osgParticle/range.cpp | 64 +++ src/osgWrappers/osgProducer/EventAdapter.cpp | 51 ++ src/osgWrappers/osgProducer/GNUmakefile | 21 + .../osgProducer/KeyboardMouseCallback.cpp | 64 +++ .../osgProducer/OsgCameraGroup.cpp | 100 ++++ .../osgProducer/OsgSceneHandler.cpp | 52 ++ src/osgWrappers/osgProducer/Viewer.cpp | 143 ++++++ .../osgProducer/ViewerEventHandler.cpp | 49 ++ src/osgWrappers/osgSim/BlinkSequence.cpp | 53 ++ src/osgWrappers/osgSim/ColorRange.cpp | 23 + src/osgWrappers/osgSim/DOFTransform.cpp | 97 ++++ src/osgWrappers/osgSim/GNUmakefile | 31 ++ src/osgWrappers/osgSim/GeographicLocation.cpp | 28 + src/osgWrappers/osgSim/Impostor.cpp | 56 ++ src/osgWrappers/osgSim/ImpostorSprite.cpp | 80 +++ .../osgSim/InsertImpostorsVisitor.cpp | 32 ++ src/osgWrappers/osgSim/LightPoint.cpp | 29 ++ src/osgWrappers/osgSim/LightPointNode.cpp | 57 ++ src/osgWrappers/osgSim/LightPointSystem.cpp | 38 ++ src/osgWrappers/osgSim/MultiSwitch.cpp | 62 +++ src/osgWrappers/osgSim/ScalarBar.cpp | 77 +++ src/osgWrappers/osgSim/ScalarsToColors.cpp | 24 + src/osgWrappers/osgSim/Sector.cpp | 132 +++++ src/osgWrappers/osgSim/SphereSegment.cpp | 70 +++ src/osgWrappers/osgSim/VisibilityGroup.cpp | 40 ++ src/osgWrappers/osgTerrain/DataSet.cpp | 486 ++++++++++++++++++ src/osgWrappers/osgTerrain/GNUmakefile | 18 + .../osgTerrain/HeightFieldNode.cpp | 58 +++ .../osgTerrain/HeightFieldRenderer.cpp | 30 ++ src/osgWrappers/osgText/Export.cpp | 13 + src/osgWrappers/osgText/Font.cpp | 131 +++++ src/osgWrappers/osgText/GNUmakefile | 18 + src/osgWrappers/osgText/String.cpp | 42 ++ src/osgWrappers/osgText/Text.cpp | 182 +++++++ src/osgWrappers/osgUtil/CubeMapGenerator.cpp | 25 + src/osgWrappers/osgUtil/CullVisitor.cpp | 104 ++++ .../osgUtil/DelaunayTriangulator.cpp | 35 ++ .../osgUtil/DisplayRequirementsVisitor.cpp | 28 + src/osgWrappers/osgUtil/GLObjectsVisitor.cpp | 46 ++ src/osgWrappers/osgUtil/GNUmakefile | 41 ++ .../osgUtil/HalfWayMapGenerator.cpp | 21 + .../osgUtil/HighlightMapGenerator.cpp | 22 + src/osgWrappers/osgUtil/IntersectVisitor.cpp | 101 ++++ src/osgWrappers/osgUtil/Optimizer.cpp | 205 ++++++++ .../osgUtil/ReflectionMapGenerator.cpp | 20 + src/osgWrappers/osgUtil/RenderBin.cpp | 118 +++++ src/osgWrappers/osgUtil/RenderGraph.cpp | 75 +++ src/osgWrappers/osgUtil/RenderLeaf.cpp | 24 + src/osgWrappers/osgUtil/RenderStage.cpp | 69 +++ .../osgUtil/RenderStageLighting.cpp | 69 +++ .../osgUtil/RenderToTextureStage.cpp | 43 ++ src/osgWrappers/osgUtil/SceneView.cpp | 214 ++++++++ src/osgWrappers/osgUtil/Simplifier.cpp | 43 ++ src/osgWrappers/osgUtil/SmoothingVisitor.cpp | 20 + src/osgWrappers/osgUtil/Statistics.cpp | 76 +++ .../osgUtil/TangentSpaceGenerator.cpp | 37 ++ src/osgWrappers/osgUtil/Tesselator.cpp | 81 +++ .../osgUtil/TransformAttributeFunctor.cpp | 22 + src/osgWrappers/osgUtil/TransformCallback.cpp | 23 + src/osgWrappers/osgUtil/TriStripVisitor.cpp | 35 ++ src/osgWrappers/osgUtil/UpdateVisitor.cpp | 39 ++ 140 files changed, 7836 insertions(+) create mode 100644 src/osgWrappers/osgDB/Archive.cpp create mode 100644 src/osgWrappers/osgDB/DatabasePager.cpp create mode 100644 src/osgWrappers/osgDB/DotOsgWrapper.cpp create mode 100644 src/osgWrappers/osgDB/DynamicLibrary.cpp create mode 100644 src/osgWrappers/osgDB/Field.cpp create mode 100644 src/osgWrappers/osgDB/FieldReader.cpp create mode 100644 src/osgWrappers/osgDB/FieldReaderIterator.cpp create mode 100644 src/osgWrappers/osgDB/FileUtils.cpp create mode 100644 src/osgWrappers/osgDB/GNUmakefile create mode 100644 src/osgWrappers/osgDB/ImageOptions.cpp create mode 100644 src/osgWrappers/osgDB/Input.cpp create mode 100644 src/osgWrappers/osgDB/Output.cpp create mode 100644 src/osgWrappers/osgDB/ParameterOutput.cpp create mode 100644 src/osgWrappers/osgDB/ReaderWriter.cpp create mode 100644 src/osgWrappers/osgDB/ReentrantMutex.cpp create mode 100644 src/osgWrappers/osgDB/Registry.cpp create mode 100644 src/osgWrappers/osgDB/SharedStateManager.cpp create mode 100644 src/osgWrappers/osgFX/AnisotropicLighting.cpp create mode 100644 src/osgWrappers/osgFX/BumpMapping.cpp create mode 100644 src/osgWrappers/osgFX/Cartoon.cpp create mode 100644 src/osgWrappers/osgFX/Effect.cpp create mode 100644 src/osgWrappers/osgFX/GNUmakefile create mode 100644 src/osgWrappers/osgFX/MultiTextureControl.cpp create mode 100644 src/osgWrappers/osgFX/Registry.cpp create mode 100644 src/osgWrappers/osgFX/Scribe.cpp create mode 100644 src/osgWrappers/osgFX/SpecularHighlights.cpp create mode 100644 src/osgWrappers/osgFX/Technique.cpp create mode 100644 src/osgWrappers/osgFX/Validator.cpp create mode 100644 src/osgWrappers/osgGA/AnimationPathManipulator.cpp create mode 100644 src/osgWrappers/osgGA/DriveManipulator.cpp create mode 100644 src/osgWrappers/osgGA/EventVisitor.cpp create mode 100644 src/osgWrappers/osgGA/FlightManipulator.cpp create mode 100644 src/osgWrappers/osgGA/GNUmakefile create mode 100644 src/osgWrappers/osgGA/GUIActionAdapter.cpp create mode 100644 src/osgWrappers/osgGA/GUIEventAdapter.cpp create mode 100644 src/osgWrappers/osgGA/GUIEventHandler.cpp create mode 100644 src/osgWrappers/osgGA/GUIEventHandlerVisitor.cpp create mode 100644 src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp create mode 100644 src/osgWrappers/osgGA/MatrixManipulator.cpp create mode 100644 src/osgWrappers/osgGA/NodeTrackerManipulator.cpp create mode 100644 src/osgWrappers/osgGA/SetSceneViewVisitor.cpp create mode 100644 src/osgWrappers/osgGA/StateSetManipulator.cpp create mode 100644 src/osgWrappers/osgGA/TerrainManipulator.cpp create mode 100644 src/osgWrappers/osgGA/TrackballManipulator.cpp create mode 100644 src/osgWrappers/osgGA/UFOManipulator.cpp create mode 100644 src/osgWrappers/osgParticle/AccelOperator.cpp create mode 100644 src/osgWrappers/osgParticle/AngularAccelOperator.cpp create mode 100644 src/osgWrappers/osgParticle/CenteredPlacer.cpp create mode 100644 src/osgWrappers/osgParticle/Counter.cpp create mode 100644 src/osgWrappers/osgParticle/Emitter.cpp create mode 100644 src/osgWrappers/osgParticle/ExplosionDebriEffect.cpp create mode 100644 src/osgWrappers/osgParticle/ExplosionEffect.cpp create mode 100644 src/osgWrappers/osgParticle/FireEffect.cpp create mode 100644 src/osgWrappers/osgParticle/FluidFrictionOperator.cpp create mode 100644 src/osgWrappers/osgParticle/FluidProgram.cpp create mode 100644 src/osgWrappers/osgParticle/ForceOperator.cpp create mode 100644 src/osgWrappers/osgParticle/GNUmakefile create mode 100644 src/osgWrappers/osgParticle/Interpolator.cpp create mode 100644 src/osgWrappers/osgParticle/LinearInterpolator.cpp create mode 100644 src/osgWrappers/osgParticle/ModularEmitter.cpp create mode 100644 src/osgWrappers/osgParticle/ModularProgram.cpp create mode 100644 src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp create mode 100644 src/osgWrappers/osgParticle/Operator.cpp create mode 100644 src/osgWrappers/osgParticle/Particle.cpp create mode 100644 src/osgWrappers/osgParticle/ParticleEffect.cpp create mode 100644 src/osgWrappers/osgParticle/ParticleProcessor.cpp create mode 100644 src/osgWrappers/osgParticle/ParticleSystem.cpp create mode 100644 src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp create mode 100644 src/osgWrappers/osgParticle/Placer.cpp create mode 100644 src/osgWrappers/osgParticle/PointPlacer.cpp create mode 100644 src/osgWrappers/osgParticle/Program.cpp create mode 100644 src/osgWrappers/osgParticle/RadialShooter.cpp create mode 100644 src/osgWrappers/osgParticle/RandomRateCounter.cpp create mode 100644 src/osgWrappers/osgParticle/SectorPlacer.cpp create mode 100644 src/osgWrappers/osgParticle/SegmentPlacer.cpp create mode 100644 src/osgWrappers/osgParticle/Shooter.cpp create mode 100644 src/osgWrappers/osgParticle/SmokeEffect.cpp create mode 100644 src/osgWrappers/osgParticle/VariableRateCounter.cpp create mode 100644 src/osgWrappers/osgParticle/range.cpp create mode 100644 src/osgWrappers/osgProducer/EventAdapter.cpp create mode 100644 src/osgWrappers/osgProducer/GNUmakefile create mode 100644 src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp create mode 100644 src/osgWrappers/osgProducer/OsgCameraGroup.cpp create mode 100644 src/osgWrappers/osgProducer/OsgSceneHandler.cpp create mode 100644 src/osgWrappers/osgProducer/Viewer.cpp create mode 100644 src/osgWrappers/osgProducer/ViewerEventHandler.cpp create mode 100644 src/osgWrappers/osgSim/BlinkSequence.cpp create mode 100644 src/osgWrappers/osgSim/ColorRange.cpp create mode 100644 src/osgWrappers/osgSim/DOFTransform.cpp create mode 100644 src/osgWrappers/osgSim/GNUmakefile create mode 100644 src/osgWrappers/osgSim/GeographicLocation.cpp create mode 100644 src/osgWrappers/osgSim/Impostor.cpp create mode 100644 src/osgWrappers/osgSim/ImpostorSprite.cpp create mode 100644 src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp create mode 100644 src/osgWrappers/osgSim/LightPoint.cpp create mode 100644 src/osgWrappers/osgSim/LightPointNode.cpp create mode 100644 src/osgWrappers/osgSim/LightPointSystem.cpp create mode 100644 src/osgWrappers/osgSim/MultiSwitch.cpp create mode 100644 src/osgWrappers/osgSim/ScalarBar.cpp create mode 100644 src/osgWrappers/osgSim/ScalarsToColors.cpp create mode 100644 src/osgWrappers/osgSim/Sector.cpp create mode 100644 src/osgWrappers/osgSim/SphereSegment.cpp create mode 100644 src/osgWrappers/osgSim/VisibilityGroup.cpp create mode 100644 src/osgWrappers/osgTerrain/DataSet.cpp create mode 100644 src/osgWrappers/osgTerrain/GNUmakefile create mode 100644 src/osgWrappers/osgTerrain/HeightFieldNode.cpp create mode 100644 src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp create mode 100644 src/osgWrappers/osgText/Export.cpp create mode 100644 src/osgWrappers/osgText/Font.cpp create mode 100644 src/osgWrappers/osgText/GNUmakefile create mode 100644 src/osgWrappers/osgText/String.cpp create mode 100644 src/osgWrappers/osgText/Text.cpp create mode 100644 src/osgWrappers/osgUtil/CubeMapGenerator.cpp create mode 100644 src/osgWrappers/osgUtil/CullVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/DelaunayTriangulator.cpp create mode 100644 src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/GLObjectsVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/GNUmakefile create mode 100644 src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp create mode 100644 src/osgWrappers/osgUtil/HighlightMapGenerator.cpp create mode 100644 src/osgWrappers/osgUtil/IntersectVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/Optimizer.cpp create mode 100644 src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp create mode 100644 src/osgWrappers/osgUtil/RenderBin.cpp create mode 100644 src/osgWrappers/osgUtil/RenderGraph.cpp create mode 100644 src/osgWrappers/osgUtil/RenderLeaf.cpp create mode 100644 src/osgWrappers/osgUtil/RenderStage.cpp create mode 100644 src/osgWrappers/osgUtil/RenderStageLighting.cpp create mode 100644 src/osgWrappers/osgUtil/RenderToTextureStage.cpp create mode 100644 src/osgWrappers/osgUtil/SceneView.cpp create mode 100644 src/osgWrappers/osgUtil/Simplifier.cpp create mode 100644 src/osgWrappers/osgUtil/SmoothingVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/Statistics.cpp create mode 100644 src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp create mode 100644 src/osgWrappers/osgUtil/Tesselator.cpp create mode 100644 src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp create mode 100644 src/osgWrappers/osgUtil/TransformCallback.cpp create mode 100644 src/osgWrappers/osgUtil/TriStripVisitor.cpp create mode 100644 src/osgWrappers/osgUtil/UpdateVisitor.cpp diff --git a/Make/makedirdefs b/Make/makedirdefs index 3a8e6e6db..ac0033445 100644 --- a/Make/makedirdefs +++ b/Make/makedirdefs @@ -39,6 +39,16 @@ SRC_DIRS += \ WRAPPER_DIRS = \ osg\ + osgParticle\ + osgSim\ + +# osgUtil\ +# osgDB\ +# osgFX\ +# osgText\ +# osgTerrain\ +# osgGA\ +# osgProducer\ diff --git a/src/osgWrappers/osgDB/Archive.cpp b/src/osgWrappers/osgDB/Archive.cpp new file mode 100644 index 000000000..3db199185 --- /dev/null +++ b/src/osgWrappers/osgDB/Archive.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::Archive::FileNameList); + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Archive) + BaseType(osgDB::ReaderWriter); + Constructor0(); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, acceptsExtension, IN, const std::string &, x); + Method0(void, close); + Method1(bool, fileExists, IN, const std::string &, filename); + Method0(std::string, getMasterFileName); + Method1(bool, getFileNames, IN, osgDB::Archive::FileNameList &, fileNameList); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + ReadOnlyProperty(std::string, MasterFileName); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/DatabasePager.cpp b/src/osgWrappers/osgDB/DatabasePager.cpp new file mode 100644 index 000000000..dbec10306 --- /dev/null +++ b/src/osgWrappers/osgDB/DatabasePager.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 + +BEGIN_OBJECT_REFLECTOR(osgDB::Block) + BaseType(osg::Referenced); + Constructor0(); + Method0(void, block); + Method0(void, release); + Method0(void, reset); + Method1(void, set, IN, bool, doRelease); + WriteOnlyProperty(bool, ); +END_REFLECTOR + +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); + +BEGIN_OBJECT_REFLECTOR(osgDB::DatabasePager) + BaseType(osg::NodeVisitor::DatabaseRequestHandler); + Constructor0(); + Method4(void, requestNodeFile, IN, const std::string &, fileName, IN, osg::Group *, group, IN, float, priority, IN, const osg::FrameStamp *, framestamp); + Method0(void, run); + Method0(int, cancel); + Method0(void, clear); + Method1(void, setDatabasePagerThreadPause, IN, bool, pause); + Method0(bool, getDatabasePagerThreadPause); + Method1(void, setAcceptNewDatabaseRequests, IN, bool, acceptNewRequests); + Method0(bool, getAcceptNewDatabaseRequests); + Method1(void, setUseFrameBlock, IN, bool, useFrameBlock); + Method0(bool, getUseFrameBlock); + Method0(osgDB::Block *, getFrameBlock); + Method1(void, setThreadPriorityDuringFrame, IN, ThreadPriority, duringFrame); + Method0(ThreadPriority, getThreadPriorityDuringFrame); + Method1(void, setThreadPriorityOutwithFrame, IN, ThreadPriority, outwithFrame); + Method0(ThreadPriority, getThreadPriorityOutwithFrame); + Method0(int, getNumFramesActive); + Method1(void, signalBeginFrame, IN, const osg::FrameStamp *, framestamp); + Method0(void, signalEndFrame); + Method1(void, registerPagedLODs, IN, osg::Node *, subgraph); + Method1(void, setTargetFrameRate, IN, double, tfr); + Method0(double, getTargetFrameRate); + Method1(void, setMinimumTimeAvailableForGLCompileAndDeletePerFrame, IN, double, ta); + Method0(double, getMinimumTimeAvailableForGLCompileAndDeletePerFrame); + Method1(void, setMaximumNumOfObjectsToCompilePerFrame, IN, unsigned int, num); + Method0(unsigned int, getMaximumNumOfObjectsToCompilePerFrame); + Method1(void, setExpiryDelay, IN, double, expiryDelay); + Method0(double, getExpiryDelay); + Method1(void, setDeleteRemovedSubgraphsInDatabaseThread, IN, bool, flag); + Method0(bool, getDeleteRemovedSubgraphsInDatabaseThread); + Method2(void, setUnrefImageDataAfterApplyPolicy, IN, bool, changeAutoUnRef, IN, bool, valueAutoUnRef); + Method2(void, getUnrefImageDataAfterApplyPolicy, IN, bool &, changeAutoUnRef, IN, bool &, valueAutoUnRef); + Method2(void, setMaxAnisotropyPolicy, IN, bool, changeAnisotropy, IN, float, valueAnisotropy); + Method2(void, getMaxAnisotropyPolicy, IN, bool &, changeAnisotropy, IN, float &, valueAnisotropy); + Method0(bool, requiresUpdateSceneGraph); + Method1(void, updateSceneGraph, IN, double, currentFrameTime); + Method2(void, setCompileGLObjectsForContextID, IN, unsigned int, contextID, IN, bool, on); + Method1(bool, getCompileGLObjectsForContextID, IN, unsigned int, contextID); + Method0(bool, requiresCompileGLObjects); + Method2(void, compileGLObjects, IN, osg::State &, state, IN, double &, availableTime); + Property(bool, AcceptNewDatabaseRequests); + IndexedProperty1(bool, CompileGLObjectsForContextID, unsigned int, contextID); + Property(bool, DatabasePagerThreadPause); + Property(bool, DeleteRemovedSubgraphsInDatabaseThread); + Property(double, ExpiryDelay); + ReadOnlyProperty(osgDB::Block *, FrameBlock); + Property(unsigned int, MaximumNumOfObjectsToCompilePerFrame); + Property(double, MinimumTimeAvailableForGLCompileAndDeletePerFrame); + Property(double, TargetFrameRate); + Property(ThreadPriority, ThreadPriorityDuringFrame); + Property(ThreadPriority, ThreadPriorityOutwithFrame); + Property(bool, UseFrameBlock); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::PagedLOD >) + Constructor0(); + Constructor1(IN, osg::PagedLOD *, t); + Constructor1(IN, const osg::ref_ptr< osg::PagedLOD > &, rp); + Method0(bool, valid); + Method0(osg::PagedLOD *, get); + Method0(const osg::PagedLOD *, get); + Method0(osg::PagedLOD *, take); + Method0(osg::PagedLOD *, release); + ReadOnlyProperty(osg::PagedLOD *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::StateSet >) + Constructor0(); + Constructor1(IN, osg::StateSet *, t); + Constructor1(IN, const osg::ref_ptr< osg::StateSet > &, rp); + Method0(bool, valid); + Method0(osg::StateSet *, get); + Method0(const osg::StateSet *, get); + Method0(osg::StateSet *, take); + Method0(osg::StateSet *, release); + ReadOnlyProperty(osg::StateSet *, ); +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 >); + diff --git a/src/osgWrappers/osgDB/DotOsgWrapper.cpp b/src/osgWrappers/osgDB/DotOsgWrapper.cpp new file mode 100644 index 000000000..57e1925fd --- /dev/null +++ b/src/osgWrappers/osgDB/DotOsgWrapper.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DotOsgWrapper::Associates); + +TYPE_NAME_ALIAS(bool(*, osgDB::DotOsgWrapper::ReadFunc); + +TYPE_NAME_ALIAS(bool(*, osgDB::DotOsgWrapper::WriteFunc); + +BEGIN_ENUM_REFLECTOR(osgDB::DotOsgWrapper::ReadWriteMode) + EnumLabel(osgDB::DotOsgWrapper::READ_AND_WRITE); + EnumLabel(osgDB::DotOsgWrapper::READ_ONLY); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::DotOsgWrapper) + BaseType(osg::Referenced); + 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); + Method0(const osg::Object *, getPrototype); + Method0(const std::string &, getName); + Method0(const osgDB::DotOsgWrapper::Associates &, getAssociates); + Method0(osgDB::DotOsgWrapper::ReadFunc, getReadFunc); + Method0(osgDB::DotOsgWrapper::WriteFunc, getWriteFunc); + Method0(osgDB::DotOsgWrapper::ReadWriteMode, getReadWriteMode); + ReadOnlyProperty(const osgDB::DotOsgWrapper::Associates &, Associates); + ReadOnlyProperty(const std::string &, Name); + ReadOnlyProperty(const osg::Object *, Prototype); + ReadOnlyProperty(osgDB::DotOsgWrapper::ReadFunc, ReadFunc); + ReadOnlyProperty(osgDB::DotOsgWrapper::ReadWriteMode, ReadWriteMode); + ReadOnlyProperty(osgDB::DotOsgWrapper::WriteFunc, WriteFunc); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/DynamicLibrary.cpp b/src/osgWrappers/osgDB/DynamicLibrary.cpp new file mode 100644 index 000000000..da47f6b65 --- /dev/null +++ b/src/osgWrappers/osgDB/DynamicLibrary.cpp @@ -0,0 +1,28 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::HANDLE); + +TYPE_NAME_ALIAS(void *, osgDB::DynamicLibrary::PROC_ADDRESS); + +BEGIN_OBJECT_REFLECTOR(osgDB::DynamicLibrary) + BaseType(osg::Referenced); + Method0(const std::string &, getName); + Method0(const std::string &, getFullName); + Method0(osgDB::DynamicLibrary::HANDLE, getHandle); + Method1(osgDB::DynamicLibrary::PROC_ADDRESS, getProcAddress, IN, const std::string &, procName); + ReadOnlyProperty(const std::string &, FullName); + ReadOnlyProperty(osgDB::DynamicLibrary::HANDLE, Handle); + ReadOnlyProperty(const std::string &, Name); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/Field.cpp b/src/osgWrappers/osgDB/Field.cpp new file mode 100644 index 000000000..ba8289132 --- /dev/null +++ b/src/osgWrappers/osgDB/Field.cpp @@ -0,0 +1,68 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_ENUM_REFLECTOR(osgDB::Field::@2) + EnumLabel(osgDB::Field::MIN_CACHE_SIZE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::Field::FieldType) + EnumLabel(osgDB::Field::OPEN_BRACKET); + EnumLabel(osgDB::Field::CLOSE_BRACKET); + EnumLabel(osgDB::Field::STRING); + EnumLabel(osgDB::Field::WORD); + EnumLabel(osgDB::Field::REAL); + EnumLabel(osgDB::Field::INTEGER); + EnumLabel(osgDB::Field::BLANK); + EnumLabel(osgDB::Field::UNINITIALISED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::Field) + Constructor0(); + Constructor1(IN, const osgDB::Field &, field); + Method0(void, reset); + Method1(void, addChar, IN, char, c); + Method0(int, getNoCharacters); + MethodWithDefaults1(void, setWithinQuotes, IN, bool, withinQuotes, true); + Method0(bool, getWithinQuotes); + Method1(void, setNoNestedBrackets, IN, int, no); + Method0(int, getNoNestedBrackets); + Method0(osgDB::Field::FieldType, getFieldType); + Method0(bool, isValid); + Method0(bool, isOpenBracket); + Method0(bool, isCloseBracket); + Method0(bool, isWord); + Method1(bool, matchWord, IN, const char *, str); + Method2(bool, matchWord, IN, const char *, str, IN, int, noCharacters); + Method0(bool, isString); + Method1(bool, matchString, IN, const char *, str); + Method2(bool, matchString, IN, const char *, str, IN, int, noCharacters); + Method0(bool, isQuotedString); + Method0(const char *, getStr); + Method0(char *, takeStr); + Method0(bool, isInt); + Method1(bool, matchInt, IN, int, i); + Method1(bool, getInt, IN, int &, i); + Method0(bool, isUInt); + Method1(bool, matchUInt, IN, unsigned int, i); + Method1(bool, getUInt, IN, unsigned int &, i); + Method0(bool, isFloat); + Method1(bool, matchFloat, IN, float, f); + Method1(bool, getFloat, IN, float &, f); + Method1(bool, getFloat, IN, double &, f); + ReadOnlyProperty(osgDB::Field::FieldType, FieldType); + ReadOnlyProperty(int, NoCharacters); + Property(int, NoNestedBrackets); + ReadOnlyProperty(const char *, Str); + Property(bool, WithinQuotes); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/FieldReader.cpp b/src/osgWrappers/osgDB/FieldReader.cpp new file mode 100644 index 000000000..89a68256a --- /dev/null +++ b/src/osgWrappers/osgDB/FieldReader.cpp @@ -0,0 +1,26 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgDB::FieldReader) + Constructor0(); + Constructor1(IN, const osgDB::FieldReader &, ic); + Method1(void, attach, IN, std::istream *, input); + Method0(void, detach); + Method0(bool, eof); + Method1(bool, readField, IN, osgDB::Field &, fieldPtr); + Method0(void, ignoreField); + Method0(int, getNoNestedBrackets); + ReadOnlyProperty(int, NoNestedBrackets); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/FieldReaderIterator.cpp b/src/osgWrappers/osgDB/FieldReaderIterator.cpp new file mode 100644 index 000000000..1419b0ee4 --- /dev/null +++ b/src/osgWrappers/osgDB/FieldReaderIterator.cpp @@ -0,0 +1,62 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgDB::FieldReaderIterator::@3) + EnumLabel(osgDB::FieldReaderIterator::MINIMUM_FIELD_READER_QUEUE_SIZE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::FieldReaderIterator) + Constructor0(); + Constructor1(IN, const osgDB::FieldReaderIterator &, ic); + Method1(void, attach, IN, std::istream *, input); + Method0(void, detach); + Method0(bool, eof); + Method0(osgDB::FieldReader &, getFieldReader); + Method2(void, insert, IN, int, pos, IN, osgDB::Field *, field); + Method2(void, insert, IN, int, pos, IN, const char *, str); + Method1(osgDB::Field &, field, IN, int, pos); + Method0(void, advanceOverCurrentFieldOrBlock); + Method0(void, advanceToEndOfCurrentBlock); + Method1(void, advanceToEndOfBlock, IN, int, noNestBrackets); + Method1(bool, matchSequence, IN, const char *, str); + Method2(bool, readSequence, IN, const char *, keyword, IN, std::string &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, unsigned int &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, int &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, float &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2f &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3f &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4f &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec2d &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec3d &, value); + Method2(bool, readSequence, IN, const char *, keyword, IN, osg::Vec4d &, value); + Method1(bool, readSequence, IN, std::string &, value); + Method1(bool, readSequence, IN, unsigned int &, value); + Method1(bool, readSequence, IN, int &, value); + Method1(bool, readSequence, IN, float &, value); + Method1(bool, readSequence, IN, osg::Vec2f &, value); + Method1(bool, readSequence, IN, osg::Vec3f &, value); + Method1(bool, readSequence, IN, osg::Vec4f &, value); + Method1(bool, readSequence, IN, osg::Vec2d &, value); + Method1(bool, readSequence, IN, osg::Vec3d &, value); + Method1(bool, readSequence, IN, osg::Vec4d &, value); + ReadOnlyProperty(osgDB::FieldReader &, FieldReader); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/FileUtils.cpp b/src/osgWrappers/osgDB/FileUtils.cpp new file mode 100644 index 000000000..17f5570ea --- /dev/null +++ b/src/osgWrappers/osgDB/FileUtils.cpp @@ -0,0 +1,15 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +TYPE_NAME_ALIAS(std::vector< std::string >, osgDB::DirectoryContents); + diff --git a/src/osgWrappers/osgDB/GNUmakefile b/src/osgWrappers/osgDB/GNUmakefile new file mode 100644 index 000000000..5f7337f14 --- /dev/null +++ b/src/osgWrappers/osgDB/GNUmakefile @@ -0,0 +1,30 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + Archive.cpp\ + DatabasePager.cpp\ + DotOsgWrapper.cpp\ + DynamicLibrary.cpp\ + Field.cpp\ + FieldReader.cpp\ + FieldReaderIterator.cpp\ + FileUtils.cpp\ + ImageOptions.cpp\ + Input.cpp\ + Output.cpp\ + ParameterOutput.cpp\ + ReaderWriter.cpp\ + ReentrantMutex.cpp\ + Registry.cpp\ + SharedStateManager.cpp\ + +LIBS += -losgDB -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgDB +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgDB/ImageOptions.cpp b/src/osgWrappers/osgDB/ImageOptions.cpp new file mode 100644 index 000000000..0ebd775eb --- /dev/null +++ b/src/osgWrappers/osgDB/ImageOptions.cpp @@ -0,0 +1,56 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgDB::ImageOptions::ImageWindowMode) + EnumLabel(osgDB::ImageOptions::ALL_IMAGE); + EnumLabel(osgDB::ImageOptions::RATIO_WINDOW); + EnumLabel(osgDB::ImageOptions::PIXEL_WINDOW); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ImageOptions::ImageSamplingMode) + EnumLabel(osgDB::ImageOptions::NEAREST); + EnumLabel(osgDB::ImageOptions::LINEAR); + EnumLabel(osgDB::ImageOptions::CUBIC); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions) + BaseType(osgDB::ReaderWriter::Options); + Constructor0(); + Constructor1(IN, const std::string &, str); + ConstructorWithDefaults2(IN, const osgDB::ImageOptions &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(void, init); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::PixelWindow) + Constructor0(); + Method4(void, set, IN, unsigned int, x, IN, unsigned int, y, IN, unsigned int, w, IN, unsigned int, h); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::RatioWindow) + Constructor0(); + Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ImageOptions::TexCoordRange) + BaseType(osg::Referenced); + Constructor0(); + Method4(void, set, IN, double, x, IN, double, y, IN, double, w, IN, double, h); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/Input.cpp b/src/osgWrappers/osgDB/Input.cpp new file mode 100644 index 000000000..2ca404e5c --- /dev/null +++ b/src/osgWrappers/osgDB/Input.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgDB::Input) + BaseType(osgDB::FieldReaderIterator); + Constructor0(); + Method1(void, setOptions, IN, const osgDB::ReaderWriter::Options *, options); + Method0(const osgDB::ReaderWriter::Options *, getOptions); + Method1(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj); + Method1(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw); + Method0(osg::Object *, readObject); + Method0(osg::Image *, readImage); + Method0(osg::Drawable *, readDrawable); + Method0(osg::StateAttribute *, readStateAttribute); + Method0(osg::Uniform *, readUniform); + Method0(osg::Node *, readNode); + Method1(osg::Object *, readObject, IN, const std::string &, fileName); + Method1(osg::Image *, readImage, IN, const std::string &, fileName); + Method1(osg::Node *, readNode, IN, const std::string &, fileName); + Method1(osg::Object *, getObjectForUniqueID, IN, const std::string &, uniqueID); + Method2(void, regisiterUniqueIDForObject, IN, const std::string &, uniqueID, IN, osg::Object *, obj); + Property(const osgDB::ReaderWriter::Options *, Options); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/Output.cpp b/src/osgWrappers/osgDB/Output.cpp new file mode 100644 index 000000000..58aec5fb9 --- /dev/null +++ b/src/osgWrappers/osgDB/Output.cpp @@ -0,0 +1,50 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_ENUM_REFLECTOR(osgDB::Output::PathNameHint) + EnumLabel(osgDB::Output::AS_IS); + EnumLabel(osgDB::Output::FULL_PATH); + EnumLabel(osgDB::Output::RELATIVE_PATH); + EnumLabel(osgDB::Output::FILENAME_ONLY); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::Output) + Constructor0(); + Constructor1(IN, const char *, name); + Method1(void, open, IN, const char *, name); + Method0(osgDB::Output &, indent); + Method1(std::string, wrapString, IN, const std::string &, str); + Method1(void, setIndentStep, IN, int, step); + Method0(int, getIndentStep); + Method1(void, setIndent, IN, int, indent); + Method0(int, getIndent); + Method1(void, setNumIndicesPerLine, IN, int, num); + Method0(int, getNumIndicesPerLine); + Method0(void, moveIn); + Method0(void, moveOut); + Method1(bool, writeObject, IN, const osg::Object &, obj); + Method2(bool, getUniqueIDForObject, IN, const osg::Object *, obj, IN, std::string &, uniqueID); + Method2(bool, createUniqueIDForObject, IN, const osg::Object *, obj, IN, std::string &, uniqueID); + Method2(bool, registerUniqueIDForObject, IN, const osg::Object *, obj, IN, std::string &, uniqueID); + Method1(void, setPathNameHint, IN, const osgDB::Output::PathNameHint, pnh); + Method0(osgDB::Output::PathNameHint, getPathNameHint); + Method1(std::string, getFileNameForOutput, IN, const std::string &, filename); + Method0(const std::string &, getFileName); + ReadOnlyProperty(const std::string &, FileName); + Property(int, Indent); + Property(int, IndentStep); + WriteOnlyProperty(int, NumIndicesPerLine); + ReadOnlyProperty(osgDB::Output::PathNameHint, PathNameHint); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/ParameterOutput.cpp b/src/osgWrappers/osgDB/ParameterOutput.cpp new file mode 100644 index 000000000..1af7e0b4a --- /dev/null +++ b/src/osgWrappers/osgDB/ParameterOutput.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgDB::ParameterOutput) + Constructor1(IN, osgDB::Output &, fw); + Constructor2(IN, osgDB::Output &, fw, IN, int, numItemsPerLine); + Method0(void, begin); + Method0(void, newLine); + Method0(void, end); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/ReaderWriter.cpp b/src/osgWrappers/osgDB/ReaderWriter.cpp new file mode 100644 index 000000000..78ba473cc --- /dev/null +++ b/src/osgWrappers/osgDB/ReaderWriter.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 + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ArchiveStatus) + EnumLabel(osgDB::ReaderWriter::READ); + EnumLabel(osgDB::ReaderWriter::WRITE); + EnumLabel(osgDB::ReaderWriter::CREATE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgDB::ReaderWriter &, rw, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, acceptsExtension, IN, const std::string &, x); + 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); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, openArchive, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, const std::string &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readObject, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readImage, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults2(osgDB::ReaderWriter::ReadResult, readNode, IN, std::istream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); + MethodWithDefaults3(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, x, , IN, std::ostream &, x, , IN, const osgDB::ReaderWriter::Options *, x, NULL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::Options::CacheHintOptions) + EnumLabel(osgDB::ReaderWriter::Options::CACHE_NONE); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_NODES); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_IMAGES); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_HEIGHTFIELDS); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_ARCHIVES); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_OBJECTS); + EnumLabel(osgDB::ReaderWriter::Options::CACHE_ALL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::ReaderWriter::Options) + BaseType(osg::Object); + Constructor0(); + Constructor1(IN, const std::string &, str); + ConstructorWithDefaults2(IN, const osgDB::ReaderWriter::Options &, options, , IN, const osg::CopyOp, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setOptionString, IN, const std::string &, str); + Method0(const std::string &, getOptionString); + Method1(void, setDatabasePath, IN, const std::string &, str); + Method0(osgDB::FilePathList &, getDatabasePathList); + Method0(const osgDB::FilePathList &, getDatabasePathList); + Method1(void, setObjectCacheHint, IN, osgDB::ReaderWriter::Options::CacheHintOptions, useObjectCache); + Method0(osgDB::ReaderWriter::Options::CacheHintOptions, getObjectCacheHint); + WriteOnlyProperty(const std::string &, DatabasePath); + ReadOnlyProperty(osgDB::FilePathList &, DatabasePathList); + Property(osgDB::ReaderWriter::Options::CacheHintOptions, ObjectCacheHint); + Property(const std::string &, OptionString); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::ReadResult::ReadStatus) + EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED); + EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_NOT_FOUND); + EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_LOADED); + EnumLabel(osgDB::ReaderWriter::ReadResult::FILE_LOADED_FROM_CACHE); + EnumLabel(osgDB::ReaderWriter::ReadResult::ERROR_IN_READING_FILE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::ReadResult) + ConstructorWithDefaults1(IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_NOT_HANDLED); + Constructor1(IN, const std::string &, m); + ConstructorWithDefaults2(IN, osg::Object *, obj, , IN, osgDB::ReaderWriter::ReadResult::ReadStatus, status, osgDB::ReaderWriter::ReadResult::FILE_LOADED); + Constructor1(IN, const osgDB::ReaderWriter::ReadResult &, rr); + Method0(osg::Object *, getObject); + Method0(osg::Image *, getImage); + Method0(osg::HeightField *, getHeightField); + Method0(osg::Node *, getNode); + Method0(osgDB::Archive *, getArchive); + Method0(bool, validObject); + Method0(bool, validImage); + Method0(bool, validHeightField); + Method0(bool, validNode); + Method0(bool, validArchive); + Method0(osg::Object *, takeObject); + Method0(osg::Image *, takeImage); + Method0(osg::HeightField *, takeHeightField); + Method0(osg::Node *, takeNode); + Method0(osgDB::Archive *, takeArchive); + Method0(const std::string &, message); + Method0(osgDB::ReaderWriter::ReadResult::ReadStatus, status); + Method0(bool, success); + Method0(bool, loadedFromCache); + Method0(bool, error); + Method0(bool, notHandled); + Method0(bool, notFound); + ReadOnlyProperty(osgDB::Archive *, Archive); + ReadOnlyProperty(osg::HeightField *, HeightField); + ReadOnlyProperty(osg::Image *, Image); + ReadOnlyProperty(osg::Node *, Node); + ReadOnlyProperty(osg::Object *, Object); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgDB::ReaderWriter::WriteResult::WriteStatus) + EnumLabel(osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED); + EnumLabel(osgDB::ReaderWriter::WriteResult::FILE_SAVED); + EnumLabel(osgDB::ReaderWriter::WriteResult::ERROR_IN_WRITING_FILE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ReaderWriter::WriteResult) + ConstructorWithDefaults1(IN, osgDB::ReaderWriter::WriteResult::WriteStatus, status, osgDB::ReaderWriter::WriteResult::FILE_NOT_HANDLED); + Constructor1(IN, const std::string &, m); + Constructor1(IN, const osgDB::ReaderWriter::WriteResult &, rr); + Method0(const std::string &, message); + Method0(osgDB::ReaderWriter::WriteResult::WriteStatus, status); + Method0(bool, success); + Method0(bool, error); + Method0(bool, notHandled); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::deque< std::string >, osgDB::FilePathList); + +STD_VECTOR_REFLECTOR(std::deque< std::string >); + diff --git a/src/osgWrappers/osgDB/ReentrantMutex.cpp b/src/osgWrappers/osgDB/ReentrantMutex.cpp new file mode 100644 index 000000000..b5460f6fa --- /dev/null +++ b/src/osgWrappers/osgDB/ReentrantMutex.cpp @@ -0,0 +1,20 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_VALUE_REFLECTOR(osgDB::ReentrantMutex) + Constructor0(); + Method0(int, lock); + Method0(int, unlock); + Method0(int, trylock); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp new file mode 100644 index 000000000..674f4a21b --- /dev/null +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -0,0 +1,156 @@ +// *************************************************************************** +// +// 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 + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::basic_type_wrapper) + Constructor0(); + Method1(bool, matches, IN, const osg::Object *, proto); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::RegisterDotOsgWrapperProxy) + 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); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry) + BaseType(osg::Referenced); + Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine); + Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt); + Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper); + Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper); + Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw); + Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw); + Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName); + Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext); + Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name); + Method1(bool, loadLibrary, IN, const std::string &, fileName); + Method1(bool, closeLibrary, IN, const std::string &, fileName); + Method0(void, closeAllLibraries); + Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext); + Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr); + Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr); + Method1(osg::Object *, readObject, IN, osgDB::Input &, fr); + Method1(osg::Image *, readImage, IN, osgDB::Input &, fr); + Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr); + Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr); + Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr); + Method1(osg::Node *, readNode, IN, osgDB::Input &, fr); + Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw); + Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb); + Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback); + Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback); + Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options); + Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options); + Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb); + Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback); + Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback); + Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName); + Method1(void, setCreateNodeFromImage, IN, bool, flag); + Method0(bool, getCreateNodeFromImage); + Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt); + Method0(osgDB::ReaderWriter::Options *, getOptions); + Method0(const osgDB::ReaderWriter::Options *, getOptions); + Method0(void, initFilePathLists); + Method0(void, initDataFilePathList); + Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath); + Method1(void, setDataFilePathList, IN, const std::string &, paths); + Method0(osgDB::FilePathList &, getDataFilePathList); + Method0(const osgDB::FilePathList &, getDataFilePathList); + Method0(void, initLibraryFilePathList); + Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath); + Method1(void, setLibraryFilePathList, IN, const std::string &, paths); + Method0(osgDB::FilePathList &, getLibraryFilePathList); + Method0(const osgDB::FilePathList &, getLibraryFilePathList); + Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime); + Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime); + Method0(void, clearObjectCache); + MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0); + Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName); + Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive); + Method1(void, removeFromArchiveCache, IN, const std::string &, fileName); + Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName); + Method0(void, clearArchiveCache); + MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); + Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName); + Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager); + Method0(osgDB::DatabasePager *, getOrCreateDatabasePager); + Method0(osgDB::DatabasePager *, getDatabasePager); + Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager); + Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager); + Method0(osgDB::SharedStateManager *, getSharedStateManager); + Property(bool, CreateNodeFromImage); + Property(const osgDB::FilePathList &, DataFilePathList); + Property(osgDB::DatabasePager *, DatabasePager); + Property(const osgDB::FilePathList &, LibraryFilePathList); + Property(osgDB::ReaderWriter::Options *, Options); + Property(osgDB::Registry::ReadFileCallback *, ReadFileCallback); + Property(osgDB::SharedStateManager *, SharedStateManager); + Property(osgDB::Registry::WriteFileCallback *, WriteFileCallback); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) + BaseType(osg::Referenced); + Constructor0(); + Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, filename, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, useObjectCache); + Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); + Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) + Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options); + Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw); + Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult); + Method1(bool, isValid, IN, osg::Object *, object); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) + BaseType(osg::Referenced); + Constructor0(); + Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName); + Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, obj, IN, const std::string &, fileName); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/SharedStateManager.cpp b/src/osgWrappers/osgDB/SharedStateManager.cpp new file mode 100644 index 000000000..f1e85370b --- /dev/null +++ b/src/osgWrappers/osgDB/SharedStateManager.cpp @@ -0,0 +1,34 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgDB::SharedStateManager::ShareMode) + EnumLabel(osgDB::SharedStateManager::SHARE_NONE); + EnumLabel(osgDB::SharedStateManager::SHARE_TEXTURES); + EnumLabel(osgDB::SharedStateManager::SHARE_STATESETS); + EnumLabel(osgDB::SharedStateManager::SHARE_ALL); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::SharedStateManager) + BaseType(osg::NodeVisitor); + Constructor0(); + Method1(void, setShareMode, IN, unsigned int, mode); + Method0(unsigned int, getShareMode); + Method0(void, prune); + MethodWithDefaults2(void, share, IN, osg::Node *, node, , IN, OpenThreads::Mutex *, mt, 0); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, geode); + Property(unsigned int, ShareMode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/AnisotropicLighting.cpp b/src/osgWrappers/osgFX/AnisotropicLighting.cpp new file mode 100644 index 000000000..436acb4db --- /dev/null +++ b/src/osgWrappers/osgFX/AnisotropicLighting.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::AnisotropicLighting) + BaseType(osgFX::Effect); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::AnisotropicLighting &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(osg::Image *, getLightingMap); + Method0(const osg::Image *, getLightingMap); + Method1(void, setLightingMap, IN, osg::Image *, image); + Method0(int, getLightNumber); + Method1(void, setLightNumber, IN, int, n); + Property(int, LightNumber); + Property(osg::Image *, LightingMap); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/BumpMapping.cpp b/src/osgWrappers/osgFX/BumpMapping.cpp new file mode 100644 index 000000000..a59b5cea4 --- /dev/null +++ b/src/osgWrappers/osgFX/BumpMapping.cpp @@ -0,0 +1,55 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::BumpMapping) + BaseType(osgFX::Effect); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::BumpMapping &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(int, getLightNumber); + Method1(void, setLightNumber, IN, int, n); + Method0(int, getDiffuseTextureUnit); + Method1(void, setDiffuseTextureUnit, IN, int, n); + Method0(int, getNormalMapTextureUnit); + Method1(void, setNormalMapTextureUnit, IN, int, n); + Method0(osg::Texture2D *, getOverrideDiffuseTexture); + Method0(const osg::Texture2D *, getOverrideDiffuseTexture); + Method1(void, setOverrideDiffuseTexture, IN, osg::Texture2D *, texture); + Method0(osg::Texture2D *, getOverrideNormalMapTexture); + Method0(const osg::Texture2D *, getOverrideNormalMapTexture); + Method1(void, setOverrideNormalMapTexture, IN, osg::Texture2D *, texture); + Method1(void, prepareGeometry, IN, osg::Geometry *, geo); + Method1(void, prepareNode, IN, osg::Node *, node); + Method0(void, prepareChildren); + Method0(void, setUpDemo); + Property(int, DiffuseTextureUnit); + Property(int, LightNumber); + Property(int, NormalMapTextureUnit); + Property(osg::Texture2D *, OverrideDiffuseTexture); + Property(osg::Texture2D *, OverrideNormalMapTexture); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/Cartoon.cpp b/src/osgWrappers/osgFX/Cartoon.cpp new file mode 100644 index 000000000..65b2c5fac --- /dev/null +++ b/src/osgWrappers/osgFX/Cartoon.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::Cartoon) + BaseType(osgFX::Effect); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::Cartoon &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(const osg::Vec4 &, getOutlineColor); + Method1(void, setOutlineColor, IN, const osg::Vec4 &, color); + Method0(float, getOutlineLineWidth); + Method1(void, setOutlineLineWidth, IN, float, w); + Method0(int, getLightNumber); + Method1(void, setLightNumber, IN, int, n); + Property(int, LightNumber); + Property(const osg::Vec4 &, OutlineColor); + Property(float, OutlineLineWidth); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/Effect.cpp b/src/osgWrappers/osgFX/Effect.cpp new file mode 100644 index 000000000..d00c44b88 --- /dev/null +++ b/src/osgWrappers/osgFX/Effect.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgFX::Effect::TechniqueSelection) + EnumLabel(osgFX::Effect::AUTO_DETECT); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Effect) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::Effect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(bool, getEnabled); + Method1(void, setEnabled, IN, bool, v); + Method0(void, setUpDemo); + Method0(int, getNumTechniques); + Method1(osgFX::Technique *, getTechnique, IN, int, i); + Method1(const osgFX::Technique *, getTechnique, IN, int, i); + Method0(int, getSelectedTechnique); + MethodWithDefaults1(void, selectTechnique, IN, int, i, osgFX::Effect::AUTO_DETECT); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, inherited_traverse, IN, osg::NodeVisitor &, nv); + Property(bool, Enabled); + ReadOnlyProperty(int, SelectedTechnique); + ArrayProperty_G(osgFX::Technique *, Technique, Techniques, int, void); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/GNUmakefile b/src/osgWrappers/osgFX/GNUmakefile new file mode 100644 index 000000000..7b9bba345 --- /dev/null +++ b/src/osgWrappers/osgFX/GNUmakefile @@ -0,0 +1,24 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + AnisotropicLighting.cpp\ + BumpMapping.cpp\ + Cartoon.cpp\ + Effect.cpp\ + MultiTextureControl.cpp\ + Registry.cpp\ + Scribe.cpp\ + SpecularHighlights.cpp\ + Technique.cpp\ + Validator.cpp\ + +LIBS += -losgFX -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgFX +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgFX/MultiTextureControl.cpp b/src/osgWrappers/osgFX/MultiTextureControl.cpp new file mode 100644 index 000000000..c4fe578d7 --- /dev/null +++ b/src/osgWrappers/osgFX/MultiTextureControl.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::MultiTextureControl) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::MultiTextureControl &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method2(void, setTextureWeight, IN, unsigned int, unit, IN, float, weight); + Method1(float, getTextureWeight, IN, unsigned int, unit); + Method0(unsigned int, getNumTextureWeights); + ArrayProperty_G(float, TextureWeight, TextureWeights, unsigned int, void); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/Registry.cpp b/src/osgWrappers/osgFX/Registry.cpp new file mode 100644 index 000000000..db7c3c0e5 --- /dev/null +++ b/src/osgWrappers/osgFX/Registry.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >, osgFX::Registry::EffectMap); + +BEGIN_OBJECT_REFLECTOR(osgFX::Registry) + BaseType(osg::Referenced); + Method1(void, registerEffect, IN, const osgFX::Effect *, effect); + Method0(const osgFX::Registry::EffectMap &, getEffectMap); + ReadOnlyProperty(const osgFX::Registry::EffectMap &, EffectMap); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgFX::Registry::Proxy) + Constructor1(IN, const osgFX::Effect *, effect); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< const osgFX::Effect >) + Constructor0(); + Constructor1(IN, const osgFX::Effect *, t); + Constructor1(IN, const osg::ref_ptr< const osgFX::Effect > &, rp); + Method0(bool, valid); + Method0(const osgFX::Effect *, get); + Method0(const const osgFX::Effect *, get); + Method0(const osgFX::Effect *, take); + Method0(const osgFX::Effect *, release); + ReadOnlyProperty(const osgFX::Effect *, ); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< std::string COMMA osg::ref_ptr< const osgFX::Effect > >); + diff --git a/src/osgWrappers/osgFX/Scribe.cpp b/src/osgWrappers/osgFX/Scribe.cpp new file mode 100644 index 000000000..848a43d05 --- /dev/null +++ b/src/osgWrappers/osgFX/Scribe.cpp @@ -0,0 +1,38 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::Scribe) + BaseType(osgFX::Effect); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::Scribe &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(const osg::Vec4 &, getWireframeColor); + Method1(void, setWireframeColor, IN, const osg::Vec4 &, color); + Method0(float, getWireframeLineWidth); + Method1(void, setWireframeLineWidth, IN, float, w); + Property(const osg::Vec4 &, WireframeColor); + Property(float, WireframeLineWidth); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/SpecularHighlights.cpp b/src/osgWrappers/osgFX/SpecularHighlights.cpp new file mode 100644 index 000000000..da23a4b72 --- /dev/null +++ b/src/osgWrappers/osgFX/SpecularHighlights.cpp @@ -0,0 +1,44 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::SpecularHighlights) + BaseType(osgFX::Effect); + Constructor0(); + ConstructorWithDefaults2(IN, const osgFX::SpecularHighlights &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const char *, effectName); + Method0(const char *, effectDescription); + Method0(const char *, effectAuthor); + Method0(int, getLightNumber); + Method1(void, setLightNumber, IN, int, n); + Method0(int, getTextureUnit); + Method1(void, setTextureUnit, IN, int, n); + Method0(const osg::Vec4 &, getSpecularColor); + Method1(void, setSpecularColor, IN, const osg::Vec4 &, color); + Method0(float, getSpecularExponent); + Method1(void, setSpecularExponent, IN, float, e); + Property(int, LightNumber); + Property(const osg::Vec4 &, SpecularColor); + Property(float, SpecularExponent); + Property(int, TextureUnit); +END_REFLECTOR + diff --git a/src/osgWrappers/osgFX/Technique.cpp b/src/osgWrappers/osgFX/Technique.cpp new file mode 100644 index 000000000..fbabfd81e --- /dev/null +++ b/src/osgWrappers/osgFX/Technique.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) + BaseType(osg::Referenced); + Constructor0(); + Method0(const char *, techniqueName); + Method0(const char *, techniqueDescription); + Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x); + Method1(bool, validate, IN, osg::State &, x); + Method0(int, getNumPasses); + Method1(osg::StateSet *, getPassStateSet, IN, int, i); + Method1(const osg::StateSet *, getPassStateSet, IN, int, i); + Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< std::string > &); + diff --git a/src/osgWrappers/osgFX/Validator.cpp b/src/osgWrappers/osgFX/Validator.cpp new file mode 100644 index 000000000..0cfb9a89c --- /dev/null +++ b/src/osgWrappers/osgFX/Validator.cpp @@ -0,0 +1,36 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgFX::Validator) + BaseType(osg::StateAttribute); + Constructor0(); + Constructor1(IN, osgFX::Effect *, effect); + ConstructorWithDefaults2(IN, const osgFX::Validator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(osg::StateAttribute::Type, getType); + Method1(void, apply, IN, osg::State &, state); + Method1(void, compileGLObjects, IN, osg::State &, state); + Method1(int, compare, IN, const osg::StateAttribute &, sa); + Method0(void, disable); + ReadOnlyProperty(osg::StateAttribute::Type, Type); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/AnimationPathManipulator.cpp b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp new file mode 100644 index 000000000..fcfa10786 --- /dev/null +++ b/src/osgWrappers/osgGA/AnimationPathManipulator.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgGA::AnimationPathManipulator) + BaseType(osgGA::MatrixManipulator); + ConstructorWithDefaults1(IN, osg::AnimationPath *, animationPath, 0); + Constructor1(IN, const std::string &, filename); + Method0(const char *, className); + Method1(void, setPrintOutTimingInfo, IN, bool, printOutTiminInfo); + Method0(bool, getPrintOutTimingInfo); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method1(void, setAnimationPath, IN, osg::AnimationPath *, animationPath); + Method0(osg::AnimationPath *, getAnimationPath); + Method0(const osg::AnimationPath *, getAnimationPath); + Method0(bool, valid); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, home, IN, double, currentTime); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Property(osg::AnimationPath *, AnimationPath); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(bool, PrintOutTimingInfo); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/DriveManipulator.cpp b/src/osgWrappers/osgGA/DriveManipulator.cpp new file mode 100644 index 000000000..c31f9f68a --- /dev/null +++ b/src/osgWrappers/osgGA/DriveManipulator.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgGA::DriveManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method0(void, computeHomePosition); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(osg::Node *, Node); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/EventVisitor.cpp b/src/osgWrappers/osgGA/EventVisitor.cpp new file mode 100644 index 000000000..e5dfde386 --- /dev/null +++ b/src/osgWrappers/osgGA/EventVisitor.cpp @@ -0,0 +1,67 @@ +// *************************************************************************** +// +// 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 + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >, osgGA::EventVisitor::EventList); + +BEGIN_VALUE_REFLECTOR(osgGA::EventVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method1(void, setActionAdapter, IN, osgGA::GUIActionAdapter *, actionAdapter); + Method0(osgGA::GUIActionAdapter *, getActionAdapter); + Method0(const osgGA::GUIActionAdapter *, getActionAdapter); + Method1(void, setEventList, IN, const osgGA::EventVisitor::EventList &, events); + Method0(osgGA::EventVisitor::EventList &, getEventList); + Method0(const osgGA::EventVisitor::EventList &, getEventList); + Method1(void, addEvent, IN, osgGA::GUIEventAdapter *, event); + Method1(void, removeEvent, IN, osgGA::GUIEventAdapter *, event); + Method0(void, reset); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Billboard &, node); + Method1(void, apply, IN, osg::LightSource &, node); + Method1(void, apply, IN, osg::Group &, node); + Method1(void, apply, IN, osg::Transform &, node); + Method1(void, apply, IN, osg::Projection &, node); + Method1(void, apply, IN, osg::Switch &, node); + Method1(void, apply, IN, osg::LOD &, node); + Method1(void, apply, IN, osg::OccluderNode &, node); + Property(osgGA::GUIActionAdapter *, ActionAdapter); + Property(const osgGA::EventVisitor::EventList &, EventList); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventAdapter >) + Constructor0(); + Constructor1(IN, osgGA::GUIEventAdapter *, t); + Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventAdapter > &, rp); + Method0(bool, valid); + Method0(osgGA::GUIEventAdapter *, get); + Method0(const osgGA::GUIEventAdapter *, get); + Method0(osgGA::GUIEventAdapter *, take); + Method0(osgGA::GUIEventAdapter *, release); + ReadOnlyProperty(osgGA::GUIEventAdapter *, ); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventAdapter > >); + diff --git a/src/osgWrappers/osgGA/FlightManipulator.cpp b/src/osgWrappers/osgGA/FlightManipulator.cpp new file mode 100644 index 000000000..53bfb9e4e --- /dev/null +++ b/src/osgWrappers/osgGA/FlightManipulator.cpp @@ -0,0 +1,47 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgGA::FlightManipulator::YawControlMode) + EnumLabel(osgGA::FlightManipulator::YAW_AUTOMATICALLY_WHEN_BANKED); + EnumLabel(osgGA::FlightManipulator::NO_AUTOMATIC_YAW); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::FlightManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method1(void, setYawControlMode, IN, osgGA::FlightManipulator::YawControlMode, ycm); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(osg::Node *, Node); + WriteOnlyProperty(osgGA::FlightManipulator::YawControlMode, YawControlMode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/GNUmakefile b/src/osgWrappers/osgGA/GNUmakefile new file mode 100644 index 000000000..802ad342e --- /dev/null +++ b/src/osgWrappers/osgGA/GNUmakefile @@ -0,0 +1,30 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ +AnimationPathManipulator.cpp\ + DriveManipulator.cpp\ + EventVisitor.cpp\ + FlightManipulator.cpp\ + GUIActionAdapter.cpp\ + GUIEventAdapter.cpp\ + GUIEventHandler.cpp\ + GUIEventHandlerVisitor.cpp\ + KeySwitchMatrixManipulator.cpp\ + MatrixManipulator.cpp\ + NodeTrackerManipulator.cpp\ + SetSceneViewVisitor.cpp\ + StateSetManipulator.cpp\ + TerrainManipulator.cpp\ + TrackballManipulator.cpp\ + UFOManipulator.cpp\ + +LIBS += -losgGA -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgGA +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgGA/GUIActionAdapter.cpp b/src/osgWrappers/osgGA/GUIActionAdapter.cpp new file mode 100644 index 000000000..f7707affc --- /dev/null +++ b/src/osgWrappers/osgGA/GUIActionAdapter.cpp @@ -0,0 +1,20 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIActionAdapter) + Constructor0(); + Method0(void, requestRedraw); + MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true); + Method2(void, requestWarpPointer, IN, float, x, IN, float, y); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/GUIEventAdapter.cpp b/src/osgWrappers/osgGA/GUIEventAdapter.cpp new file mode 100644 index 000000000..c5a2fa6f6 --- /dev/null +++ b/src/osgWrappers/osgGA/GUIEventAdapter.cpp @@ -0,0 +1,217 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseButtonMask) + EnumLabel(osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON); + EnumLabel(osgGA::GUIEventAdapter::MIDDLE_MOUSE_BUTTON); + EnumLabel(osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::EventType) + EnumLabel(osgGA::GUIEventAdapter::NONE); + EnumLabel(osgGA::GUIEventAdapter::PUSH); + EnumLabel(osgGA::GUIEventAdapter::RELEASE); + EnumLabel(osgGA::GUIEventAdapter::DOUBLECLICK); + EnumLabel(osgGA::GUIEventAdapter::DRAG); + EnumLabel(osgGA::GUIEventAdapter::MOVE); + EnumLabel(osgGA::GUIEventAdapter::KEYDOWN); + EnumLabel(osgGA::GUIEventAdapter::KEYUP); + EnumLabel(osgGA::GUIEventAdapter::FRAME); + EnumLabel(osgGA::GUIEventAdapter::RESIZE); + EnumLabel(osgGA::GUIEventAdapter::SCROLLUP); + EnumLabel(osgGA::GUIEventAdapter::SCROLLDOWN); + EnumLabel(osgGA::GUIEventAdapter::SCROLLLEFT); + EnumLabel(osgGA::GUIEventAdapter::SCROLLRIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::KeySymbol) + EnumLabel(osgGA::GUIEventAdapter::KEY_Space); + EnumLabel(osgGA::GUIEventAdapter::KEY_BackSpace); + EnumLabel(osgGA::GUIEventAdapter::KEY_Tab); + EnumLabel(osgGA::GUIEventAdapter::KEY_Linefeed); + EnumLabel(osgGA::GUIEventAdapter::KEY_Clear); + EnumLabel(osgGA::GUIEventAdapter::KEY_Return); + EnumLabel(osgGA::GUIEventAdapter::KEY_Pause); + EnumLabel(osgGA::GUIEventAdapter::KEY_Scroll_Lock); + EnumLabel(osgGA::GUIEventAdapter::KEY_Sys_Req); + EnumLabel(osgGA::GUIEventAdapter::KEY_Escape); + EnumLabel(osgGA::GUIEventAdapter::KEY_Delete); + EnumLabel(osgGA::GUIEventAdapter::KEY_Home); + EnumLabel(osgGA::GUIEventAdapter::KEY_Left); + EnumLabel(osgGA::GUIEventAdapter::KEY_Up); + EnumLabel(osgGA::GUIEventAdapter::KEY_Right); + EnumLabel(osgGA::GUIEventAdapter::KEY_Down); + EnumLabel(osgGA::GUIEventAdapter::KEY_Prior); + EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Up); + EnumLabel(osgGA::GUIEventAdapter::KEY_Next); + EnumLabel(osgGA::GUIEventAdapter::KEY_Page_Down); + EnumLabel(osgGA::GUIEventAdapter::KEY_End); + EnumLabel(osgGA::GUIEventAdapter::KEY_Begin); + EnumLabel(osgGA::GUIEventAdapter::KEY_Select); + EnumLabel(osgGA::GUIEventAdapter::KEY_Print); + EnumLabel(osgGA::GUIEventAdapter::KEY_Execute); + EnumLabel(osgGA::GUIEventAdapter::KEY_Insert); + EnumLabel(osgGA::GUIEventAdapter::KEY_Undo); + EnumLabel(osgGA::GUIEventAdapter::KEY_Redo); + EnumLabel(osgGA::GUIEventAdapter::KEY_Menu); + EnumLabel(osgGA::GUIEventAdapter::KEY_Find); + EnumLabel(osgGA::GUIEventAdapter::KEY_Cancel); + EnumLabel(osgGA::GUIEventAdapter::KEY_Help); + EnumLabel(osgGA::GUIEventAdapter::KEY_Break); + EnumLabel(osgGA::GUIEventAdapter::KEY_Mode_switch); + EnumLabel(osgGA::GUIEventAdapter::KEY_Script_switch); + EnumLabel(osgGA::GUIEventAdapter::KEY_Num_Lock); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Space); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Tab); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Enter); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F1); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F2); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F3); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_F4); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Home); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Left); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Up); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Right); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Down); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Prior); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Up); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Next); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Page_Down); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_End); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Begin); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Insert); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Delete); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Equal); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Multiply); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Add); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Separator); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Subtract); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Decimal); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_Divide); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_0); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_1); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_2); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_3); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_4); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_5); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_6); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_7); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_8); + EnumLabel(osgGA::GUIEventAdapter::KEY_KP_9); + EnumLabel(osgGA::GUIEventAdapter::KEY_F1); + EnumLabel(osgGA::GUIEventAdapter::KEY_F2); + EnumLabel(osgGA::GUIEventAdapter::KEY_F3); + EnumLabel(osgGA::GUIEventAdapter::KEY_F4); + EnumLabel(osgGA::GUIEventAdapter::KEY_F5); + EnumLabel(osgGA::GUIEventAdapter::KEY_F6); + EnumLabel(osgGA::GUIEventAdapter::KEY_F7); + EnumLabel(osgGA::GUIEventAdapter::KEY_F8); + EnumLabel(osgGA::GUIEventAdapter::KEY_F9); + EnumLabel(osgGA::GUIEventAdapter::KEY_F10); + EnumLabel(osgGA::GUIEventAdapter::KEY_F11); + EnumLabel(osgGA::GUIEventAdapter::KEY_F12); + EnumLabel(osgGA::GUIEventAdapter::KEY_F13); + EnumLabel(osgGA::GUIEventAdapter::KEY_F14); + EnumLabel(osgGA::GUIEventAdapter::KEY_F15); + EnumLabel(osgGA::GUIEventAdapter::KEY_F16); + EnumLabel(osgGA::GUIEventAdapter::KEY_F17); + EnumLabel(osgGA::GUIEventAdapter::KEY_F18); + EnumLabel(osgGA::GUIEventAdapter::KEY_F19); + EnumLabel(osgGA::GUIEventAdapter::KEY_F20); + EnumLabel(osgGA::GUIEventAdapter::KEY_F21); + EnumLabel(osgGA::GUIEventAdapter::KEY_F22); + EnumLabel(osgGA::GUIEventAdapter::KEY_F23); + EnumLabel(osgGA::GUIEventAdapter::KEY_F24); + EnumLabel(osgGA::GUIEventAdapter::KEY_F25); + EnumLabel(osgGA::GUIEventAdapter::KEY_F26); + EnumLabel(osgGA::GUIEventAdapter::KEY_F27); + EnumLabel(osgGA::GUIEventAdapter::KEY_F28); + EnumLabel(osgGA::GUIEventAdapter::KEY_F29); + EnumLabel(osgGA::GUIEventAdapter::KEY_F30); + EnumLabel(osgGA::GUIEventAdapter::KEY_F31); + EnumLabel(osgGA::GUIEventAdapter::KEY_F32); + EnumLabel(osgGA::GUIEventAdapter::KEY_F33); + EnumLabel(osgGA::GUIEventAdapter::KEY_F34); + EnumLabel(osgGA::GUIEventAdapter::KEY_F35); + EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_R); + EnumLabel(osgGA::GUIEventAdapter::KEY_Control_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Control_R); + EnumLabel(osgGA::GUIEventAdapter::KEY_Caps_Lock); + EnumLabel(osgGA::GUIEventAdapter::KEY_Shift_Lock); + EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Meta_R); + EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Alt_R); + EnumLabel(osgGA::GUIEventAdapter::KEY_Super_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Super_R); + EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_L); + EnumLabel(osgGA::GUIEventAdapter::KEY_Hyper_R); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::ModKeyMask) + EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_SHIFT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_SHIFT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_CTRL); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_CTRL); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_ALT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_ALT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_LEFT_META); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_RIGHT_META); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_NUM_LOCK); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_CAPS_LOCK); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_CTRL); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_SHIFT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_ALT); + EnumLabel(osgGA::GUIEventAdapter::MODKEY_META); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::GUIEventAdapter::MouseYOrientation) + EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_UPWARDS); + EnumLabel(osgGA::GUIEventAdapter::Y_INCREASING_DOWNWARDS); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::GUIEventAdapter) + BaseType(osg::Referenced); + Method0(osgGA::GUIEventAdapter::EventType, getEventType); + Method0(int, getKey); + Method0(int, getButton); + Method1(void, setMouseYOrientation, IN, osgGA::GUIEventAdapter::MouseYOrientation, myo); + Method0(osgGA::GUIEventAdapter::MouseYOrientation, getMouseYOrientation); + Method0(float, getXmin); + Method0(float, getXmax); + Method0(float, getYmin); + Method0(float, getYmax); + Method0(float, getX); + Method0(float, getY); + Method0(unsigned int, getButtonMask); + Method0(unsigned int, getModKeyMask); + Method0(double, time); + Method0(float, getXnormalized); + Method0(float, getYnormalized); + ReadOnlyProperty(int, Button); + ReadOnlyProperty(unsigned int, ButtonMask); + ReadOnlyProperty(osgGA::GUIEventAdapter::EventType, EventType); + ReadOnlyProperty(int, Key); + ReadOnlyProperty(unsigned int, ModKeyMask); + Property(osgGA::GUIEventAdapter::MouseYOrientation, MouseYOrientation); + ReadOnlyProperty(float, X); + ReadOnlyProperty(float, Xmax); + ReadOnlyProperty(float, Xmin); + ReadOnlyProperty(float, Xnormalized); + ReadOnlyProperty(float, Y); + ReadOnlyProperty(float, Ymax); + ReadOnlyProperty(float, Ymin); + ReadOnlyProperty(float, Ynormalized); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/GUIEventHandler.cpp b/src/osgWrappers/osgGA/GUIEventHandler.cpp new file mode 100644 index 000000000..a0b7c1b38 --- /dev/null +++ b/src/osgWrappers/osgGA/GUIEventHandler.cpp @@ -0,0 +1,78 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgGA::GUIEventHandler > >, osgGA::CompositeGUIEventHandler::ChildList); + +BEGIN_VALUE_REFLECTOR(osgGA::CompositeGUIEventHandler) + BaseType(osgGA::GUIEventHandler); + Constructor0(); + Method0(const char *, className); + Method0(const osgGA::CompositeGUIEventHandler *, getComposite); + Method0(osgGA::CompositeGUIEventHandler *, getComposite); + Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, object, IN, osg::NodeVisitor *, nv); + Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, v); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method1(bool, addChild, IN, osgGA::GUIEventHandler *, geh); + Method1(bool, removeChild, IN, osgGA::GUIEventHandler *, geh); + Method0(unsigned int, getNumChildren); + Method1(osgGA::GUIEventHandler *, getChild, IN, unsigned int, i); + Method1(const osgGA::GUIEventHandler *, getChild, IN, unsigned int, i); + Method1(bool, containsNode, IN, const osgGA::GUIEventHandler *, node); + Method1(ChildList::iterator, findChild, IN, const osgGA::GUIEventHandler *, node); + ArrayProperty_GA(osgGA::GUIEventHandler *, Child, Children, unsigned int, bool); + ReadOnlyProperty(osgGA::CompositeGUIEventHandler *, Composite); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgGA::GUIEventHandler) + BaseType(osg::NodeCallback); + BaseType(osg::Drawable::EventCallback); + Constructor0(); + Constructor2(IN, const osgGA::GUIEventHandler &, x, IN, const osg::CopyOp &, x); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method2(void, event, IN, osg::NodeVisitor *, nv, IN, osg::Drawable *, drawable); + Method0(const osgGA::CompositeGUIEventHandler *, getComposite); + Method0(osgGA::CompositeGUIEventHandler *, getComposite); + Method4(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, IN, osg::Object *, x, IN, osg::NodeVisitor *, x); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); + Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, x); + Method1(void, getUsage, IN, osg::ApplicationUsage &, x); + ReadOnlyProperty(osgGA::CompositeGUIEventHandler *, Composite); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::GUIEventHandler >) + Constructor0(); + Constructor1(IN, osgGA::GUIEventHandler *, t); + Constructor1(IN, const osg::ref_ptr< osgGA::GUIEventHandler > &, rp); + Method0(bool, valid); + Method0(osgGA::GUIEventHandler *, get); + Method0(const osgGA::GUIEventHandler *, get); + Method0(osgGA::GUIEventHandler *, take); + Method0(osgGA::GUIEventHandler *, release); + ReadOnlyProperty(osgGA::GUIEventHandler *, ); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgGA::GUIEventHandler > >); + diff --git a/src/osgWrappers/osgGA/GUIEventHandlerVisitor.cpp b/src/osgWrappers/osgGA/GUIEventHandlerVisitor.cpp new file mode 100644 index 000000000..0ef99625a --- /dev/null +++ b/src/osgWrappers/osgGA/GUIEventHandlerVisitor.cpp @@ -0,0 +1,29 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgGA::GUIEventHandlerVisitor) + Method1(void, visit, IN, osgGA::GUIEventHandler &, x); + Method1(void, visit, IN, osgGA::CompositeGUIEventHandler &, x); + Method1(void, visit, IN, osgGA::MatrixManipulator &, x); + Method1(void, visit, IN, osgGA::StateSetManipulator &, x); + Method0(const osgGA::GUIEventAdapter *, getGUIEventAdapter); + Method0(osgGA::GUIActionAdapter *, getGUIActionAdapter); + ReadOnlyProperty(osgGA::GUIActionAdapter *, GUIActionAdapter); + ReadOnlyProperty(const osgGA::GUIEventAdapter *, GUIEventAdapter); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp new file mode 100644 index 000000000..619fdebaf --- /dev/null +++ b/src/osgWrappers/osgGA/KeySwitchMatrixManipulator.cpp @@ -0,0 +1,88 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +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_VALUE_REFLECTOR(osgGA::KeySwitchMatrixManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method3(void, addMatrixManipulator, IN, int, key, IN, std::string, name, IN, osgGA::MatrixManipulator *, cm); + Method1(void, addNumberedMatrixManipulator, IN, osgGA::MatrixManipulator *, cm); + Method0(unsigned int, getNumMatrixManipulators); + Method1(void, selectMatrixManipulator, IN, unsigned int, num); + Method0(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap); + Method0(const osgGA::KeySwitchMatrixManipulator::KeyManipMap &, getKeyManipMap); + Method0(osgGA::MatrixManipulator *, getCurrentMatrixManipulator); + Method0(const osgGA::MatrixManipulator *, getCurrentMatrixManipulator); + Method1(osgGA::MatrixManipulator *, getMatrixManipulator, IN, unsigned int, key); + Method1(const osgGA::MatrixManipulator *, getMatrixManipulator, IN, unsigned int, key); + Method1(void, setMinimumDistance, IN, float, minimumDistance); + Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setNode, IN, osg::Node *, n); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false); + Method1(void, setAutoComputeHomePosition, IN, bool, flag); + Method0(void, computeHomePosition); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ee, IN, osgGA::GUIActionAdapter &, aa); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + WriteOnlyProperty(bool, AutoComputeHomePosition); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + WriteOnlyProperty(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback); + ReadOnlyProperty(osgGA::MatrixManipulator *, CurrentMatrixManipulator); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osgGA::KeySwitchMatrixManipulator::KeyManipMap &, KeyManipMap); + ReadOnlyProperty(osg::Matrixd, Matrix); + ArrayProperty_G(osgGA::MatrixManipulator *, MatrixManipulator, MatrixManipulators, unsigned int, void); + WriteOnlyProperty(float, MinimumDistance); + Property(osg::Node *, Node); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgGA::MatrixManipulator >) + Constructor0(); + Constructor1(IN, osgGA::MatrixManipulator *, t); + Constructor1(IN, const osg::ref_ptr< osgGA::MatrixManipulator > &, rp); + Method0(bool, valid); + Method0(osgGA::MatrixManipulator *, get); + Method0(const osgGA::MatrixManipulator *, get); + Method0(osgGA::MatrixManipulator *, take); + Method0(osgGA::MatrixManipulator *, release); + ReadOnlyProperty(osgGA::MatrixManipulator *, ); +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/osgGA/MatrixManipulator.cpp b/src/osgWrappers/osgGA/MatrixManipulator.cpp new file mode 100644 index 000000000..c6881eccc --- /dev/null +++ b/src/osgWrappers/osgGA/MatrixManipulator.cpp @@ -0,0 +1,73 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator) + BaseType(osgGA::GUIEventHandler); + Method0(const char *, className); + Method1(void, setMinimumDistance, IN, float, minimumDistance); + Method0(float, getMinimumDistance); + Method1(void, setCoordinateFrameCallback, IN, osgGA::MatrixManipulator::CoordinateFrameCallback *, cb); + Method0(osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback); + Method0(const osgGA::MatrixManipulator::CoordinateFrameCallback *, getCoordinateFrameCallback); + Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position); + Method1(osg::Vec3d, getSideVector, IN, const osg::CoordinateFrame &, cf); + Method1(osg::Vec3d, getFrontVector, IN, const osg::CoordinateFrame &, cf); + Method1(osg::Vec3d, getUpVector, IN, const osg::CoordinateFrame &, cf); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setIntersectTraversalMask, IN, unsigned int, mask); + Method0(unsigned int, getIntersectTraversalMask); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + MethodWithDefaults4(void, setHomePosition, IN, const osg::Vec3d &, eye, , IN, const osg::Vec3d &, center, , IN, const osg::Vec3d &, up, , IN, bool, autoComputeHomePosition, false); + Method3(void, getHomePosition, IN, osg::Vec3d &, eye, IN, osg::Vec3d &, center, IN, osg::Vec3d &, up); + Method1(void, setAutoComputeHomePosition, IN, bool, flag); + Method0(bool, getAutoComputeHomePosition); + Method0(void, computeHomePosition); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); + Method1(void, home, IN, double, x); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, v); + Property(bool, AutoComputeHomePosition); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + Property(osgGA::MatrixManipulator::CoordinateFrameCallback *, CoordinateFrameCallback); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + Property(unsigned int, IntersectTraversalMask); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(float, MinimumDistance); + Property(osg::Node *, Node); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgGA::MatrixManipulator::CoordinateFrameCallback) + BaseType(osg::Referenced); + Constructor0(); + Method1(osg::CoordinateFrame, getCoordinateFrame, IN, const osg::Vec3d &, position); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp b/src/osgWrappers/osgGA/NodeTrackerManipulator.cpp new file mode 100644 index 000000000..242b3598e --- /dev/null +++ b/src/osgWrappers/osgGA/NodeTrackerManipulator.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 +#include + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::TrackerMode) + EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER); + EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_AZIM); + EnumLabel(osgGA::NodeTrackerManipulator::NODE_CENTER_AND_ROTATION); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::NodeTrackerManipulator::RotationMode) + EnumLabel(osgGA::NodeTrackerManipulator::TRACKBALL); + EnumLabel(osgGA::NodeTrackerManipulator::ELEVATION_AZIM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::NodeTrackerManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setTrackNodePath, IN, const osg::RefNodePath &, nodePath); + Method1(void, setTrackNodePath, IN, const osg::NodePath &, nodePath); + Method0(osg::RefNodePath &, getTrackNodePath); + Method0(const osg::RefNodePath &, getTrackNodePath); + Method1(void, setTrackNode, IN, osg::Node *, node); + Method0(osg::Node *, getTrackNode); + Method0(const osg::Node *, getTrackNode); + Method1(void, setTrackerMode, IN, osgGA::NodeTrackerManipulator::TrackerMode, mode); + Method0(osgGA::NodeTrackerManipulator::TrackerMode, getTrackerNode); + Method1(void, setRotationMode, IN, osgGA::NodeTrackerManipulator::RotationMode, mode); + Method0(osgGA::NodeTrackerManipulator::RotationMode, getRotationMode); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method0(void, computeHomePosition); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(osg::Node *, Node); + Property(osgGA::NodeTrackerManipulator::RotationMode, RotationMode); + Property(osg::Node *, TrackNode); + Property(const osg::RefNodePath &, TrackNodePath); + WriteOnlyProperty(osgGA::NodeTrackerManipulator::TrackerMode, TrackerMode); + ReadOnlyProperty(osgGA::NodeTrackerManipulator::TrackerMode, TrackerNode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/SetSceneViewVisitor.cpp b/src/osgWrappers/osgGA/SetSceneViewVisitor.cpp new file mode 100644 index 000000000..0277cfd0d --- /dev/null +++ b/src/osgWrappers/osgGA/SetSceneViewVisitor.cpp @@ -0,0 +1,25 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgGA::SetSceneViewVisitor) + BaseType(osgGA::GUIEventHandlerVisitor); + Constructor3(IN, osgGA::GUIEventAdapter *, in, IN, osgGA::GUIActionAdapter *, out, IN, osgUtil::SceneView *, sv); + Method1(void, visit, IN, osgGA::MatrixManipulator &, cm); + Method1(void, visit, IN, osgGA::StateSetManipulator &, cm); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/StateSetManipulator.cpp b/src/osgWrappers/osgGA/StateSetManipulator.cpp new file mode 100644 index 000000000..5dafdc3de --- /dev/null +++ b/src/osgWrappers/osgGA/StateSetManipulator.cpp @@ -0,0 +1,31 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgGA::StateSetManipulator) + BaseType(osgGA::GUIEventHandler); + Constructor0(); + Method0(const char *, className); + Method1(void, setStateSet, IN, osg::StateSet *, x); + Method0(osg::StateSet *, getStateSet); + Method0(const osg::StateSet *, getStateSet); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, x); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Property(osg::StateSet *, StateSet); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/TerrainManipulator.cpp b/src/osgWrappers/osgGA/TerrainManipulator.cpp new file mode 100644 index 000000000..4c688b2c9 --- /dev/null +++ b/src/osgWrappers/osgGA/TerrainManipulator.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgGA::TerrainManipulator::RotationMode) + EnumLabel(osgGA::TerrainManipulator::ELEVATION_AZIM_ROLL); + EnumLabel(osgGA::TerrainManipulator::ELEVATION_AZIM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode); + Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(osg::Node *, Node); + Property(osgGA::TerrainManipulator::RotationMode, RotationMode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/TrackballManipulator.cpp b/src/osgWrappers/osgGA/TrackballManipulator.cpp new file mode 100644 index 000000000..4e1f8d10e --- /dev/null +++ b/src/osgWrappers/osgGA/TrackballManipulator.cpp @@ -0,0 +1,52 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgGA::TrackballManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setMinimumZoomScale, IN, float, minimumZoomScale); + Method0(float, getMinimumZoomScale); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, home, IN, double, x); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method1(void, setTrackballSize, IN, float, size); + Method0(float, getTrackballSize); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(float, MinimumZoomScale); + Property(osg::Node *, Node); + Property(float, TrackballSize); +END_REFLECTOR + diff --git a/src/osgWrappers/osgGA/UFOManipulator.cpp b/src/osgWrappers/osgGA/UFOManipulator.cpp new file mode 100644 index 000000000..f7a76e15f --- /dev/null +++ b/src/osgWrappers/osgGA/UFOManipulator.cpp @@ -0,0 +1,48 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgGA::UFOManipulator) + BaseType(osgGA::MatrixManipulator); + Constructor0(); + Method0(const char *, className); + Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix); + Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, invmat); + Method0(osg::Matrixd, getMatrix); + Method0(osg::Matrixd, getInverseMatrix); + Method1(void, setNode, IN, osg::Node *, x); + Method0(const osg::Node *, getNode); + Method0(osg::Node *, getNode); + Method0(void, computeHomePosition); + Method2(void, home, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); + Method1(void, home, IN, double, x); + Method2(void, init, IN, const osgGA::GUIEventAdapter &, x, IN, osgGA::GUIActionAdapter &, x); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method3(void, getCurrentPositionAsLookAt, IN, osg::Vec3 &, eye, IN, osg::Vec3 &, center, IN, osg::Vec3 &, up); + WriteOnlyProperty(const osg::Matrixd &, ByInverseMatrix); + WriteOnlyProperty(const osg::Matrixd &, ByMatrix); + ReadOnlyProperty(osg::Matrixd, InverseMatrix); + ReadOnlyProperty(osg::Matrixd, Matrix); + Property(osg::Node *, Node); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(UFOManipulator) + Constructor0(); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/AccelOperator.cpp b/src/osgWrappers/osgParticle/AccelOperator.cpp new file mode 100644 index 000000000..6536ba9fe --- /dev/null +++ b/src/osgWrappers/osgParticle/AccelOperator.cpp @@ -0,0 +1,36 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator) + BaseType(osgParticle::Operator); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::AccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const osg::Vec3 &, getAcceleration); + Method1(void, setAcceleration, IN, const osg::Vec3 &, v); + MethodWithDefaults1(void, setToGravity, IN, float, scale, 1); + Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); + Method1(void, beginOperate, IN, osgParticle::Program *, prg); + Property(const osg::Vec3 &, Acceleration); + WriteOnlyProperty(float, ToGravity); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/AngularAccelOperator.cpp b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp new file mode 100644 index 000000000..6a75bac3a --- /dev/null +++ b/src/osgWrappers/osgParticle/AngularAccelOperator.cpp @@ -0,0 +1,34 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator) + BaseType(osgParticle::Operator); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::AngularAccelOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const osg::Vec3 &, getAngularAcceleration); + Method1(void, setAngularAcceleration, IN, const osg::Vec3 &, v); + Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); + Method1(void, beginOperate, IN, osgParticle::Program *, prg); + Property(const osg::Vec3 &, AngularAcceleration); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/osgParticle/CenteredPlacer.cpp new file mode 100644 index 000000000..81949b741 --- /dev/null +++ b/src/osgWrappers/osgParticle/CenteredPlacer.cpp @@ -0,0 +1,29 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) + BaseType(osgParticle::Placer); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::CenteredPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const osg::Vec3 &, getCenter); + Method1(void, setCenter, IN, const osg::Vec3 &, v); + Method3(void, setCenter, IN, float, x, IN, float, y, IN, float, z); + Property(const osg::Vec3 &, Center); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Counter.cpp b/src/osgWrappers/osgParticle/Counter.cpp new file mode 100644 index 000000000..72d3d957b --- /dev/null +++ b/src/osgWrappers/osgParticle/Counter.cpp @@ -0,0 +1,25 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Counter) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Counter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(int, numParticlesToCreate, IN, double, dt); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Emitter.cpp b/src/osgWrappers/osgParticle/Emitter.cpp new file mode 100644 index 000000000..658df24d6 --- /dev/null +++ b/src/osgWrappers/osgParticle/Emitter.cpp @@ -0,0 +1,33 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter) + BaseType(osgParticle::ParticleProcessor); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Emitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(const osgParticle::Particle &, getParticleTemplate); + Method1(void, setParticleTemplate, IN, const osgParticle::Particle &, p); + Method0(bool, getUseDefaultTemplate); + Method1(void, setUseDefaultTemplate, IN, bool, v); + Property(const osgParticle::Particle &, ParticleTemplate); + Property(bool, UseDefaultTemplate); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ExplosionDebriEffect.cpp b/src/osgWrappers/osgParticle/ExplosionDebriEffect.cpp new file mode 100644 index 000000000..8307eb357 --- /dev/null +++ b/src/osgWrappers/osgParticle/ExplosionDebriEffect.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgParticle::ExplosionDebriEffect) + BaseType(osgParticle::ParticleEffect); + ConstructorWithDefaults3(IN, const osg::Vec3 &, position, osg::Vec3(0.0f, 0.0f, 0.0f), IN, float, scale, 1.0f, IN, float, intensity, 1.0f); + ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebriEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(void, setDefaults); + Method0(void, setUpEmitterAndProgram); + Method0(osgParticle::Emitter *, getEmitter); + Method0(const osgParticle::Emitter *, getEmitter); + Method0(osgParticle::Program *, getProgram); + Method0(const osgParticle::Program *, getProgram); + ReadOnlyProperty(osgParticle::Emitter *, Emitter); + ReadOnlyProperty(osgParticle::Program *, Program); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ExplosionEffect.cpp b/src/osgWrappers/osgParticle/ExplosionEffect.cpp new file mode 100644 index 000000000..103741d6a --- /dev/null +++ b/src/osgWrappers/osgParticle/ExplosionEffect.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgParticle::ExplosionEffect) + BaseType(osgParticle::ParticleEffect); + ConstructorWithDefaults3(IN, const osg::Vec3 &, position, osg::Vec3(0.0f, 0.0f, 0.0f), IN, float, scale, 1.0f, IN, float, intensity, 1.0f); + ConstructorWithDefaults2(IN, const osgParticle::ExplosionEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(void, setDefaults); + Method0(void, setUpEmitterAndProgram); + Method0(osgParticle::Emitter *, getEmitter); + Method0(const osgParticle::Emitter *, getEmitter); + Method0(osgParticle::Program *, getProgram); + Method0(const osgParticle::Program *, getProgram); + ReadOnlyProperty(osgParticle::Emitter *, Emitter); + ReadOnlyProperty(osgParticle::Program *, Program); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/FireEffect.cpp b/src/osgWrappers/osgParticle/FireEffect.cpp new file mode 100644 index 000000000..e64296d4e --- /dev/null +++ b/src/osgWrappers/osgParticle/FireEffect.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgParticle::FireEffect) + BaseType(osgParticle::ParticleEffect); + ConstructorWithDefaults3(IN, const osg::Vec3 &, position, osg::Vec3(0.0f, 0.0f, 0.0f), IN, float, scale, 1.0f, IN, float, intensity, 1.0f); + ConstructorWithDefaults2(IN, const osgParticle::FireEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(void, setDefaults); + Method0(void, setUpEmitterAndProgram); + Method0(osgParticle::Emitter *, getEmitter); + Method0(const osgParticle::Emitter *, getEmitter); + Method0(osgParticle::Program *, getProgram); + Method0(const osgParticle::Program *, getProgram); + ReadOnlyProperty(osgParticle::Emitter *, Emitter); + ReadOnlyProperty(osgParticle::Program *, Program); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp new file mode 100644 index 000000000..eeddac3aa --- /dev/null +++ b/src/osgWrappers/osgParticle/FluidFrictionOperator.cpp @@ -0,0 +1,45 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator) + BaseType(osgParticle::Operator); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::FluidFrictionOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setFluidDensity, IN, float, d); + Method0(float, getFluidDensity); + Method1(void, setFluidViscosity, IN, float, v); + Method0(float, getFluidViscosity); + Method1(void, setWind, IN, const osg::Vec3 &, wind); + Method0(const osg::Vec3 &, getWind); + Method1(void, setOverrideRadius, IN, float, r); + Method0(float, getOverrideRadius); + Method0(void, setFluidToAir); + Method0(void, setFluidToWater); + Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); + Method1(void, beginOperate, IN, osgParticle::Program *, prg); + Property(float, FluidDensity); + Property(float, FluidViscosity); + Property(float, OverrideRadius); + Property(const osg::Vec3 &, Wind); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/FluidProgram.cpp b/src/osgWrappers/osgParticle/FluidProgram.cpp new file mode 100644 index 000000000..79f89a61d --- /dev/null +++ b/src/osgWrappers/osgParticle/FluidProgram.cpp @@ -0,0 +1,45 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram) + BaseType(osgParticle::Program); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::FluidProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, setFluidViscosity, IN, float, v); + Method0(float, getFluidViscosity); + Method1(void, setFluidDensity, IN, float, d); + Method0(float, getFluidDensity); + Method1(void, setWind, IN, const osg::Vec3 &, wind); + Method0(const osg::Vec3 &, getWind); + Method1(void, setAcceleration, IN, const osg::Vec3 &, v); + Method0(const osg::Vec3 &, getAcceleration); + MethodWithDefaults1(void, setToGravity, IN, float, scale, 1.0f); + Method0(void, setFluidToAir); + Method0(void, setFluidToWater); + Property(const osg::Vec3 &, Acceleration); + Property(float, FluidDensity); + Property(float, FluidViscosity); + WriteOnlyProperty(float, ToGravity); + Property(const osg::Vec3 &, Wind); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ForceOperator.cpp b/src/osgWrappers/osgParticle/ForceOperator.cpp new file mode 100644 index 000000000..2206208da --- /dev/null +++ b/src/osgWrappers/osgParticle/ForceOperator.cpp @@ -0,0 +1,34 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator) + BaseType(osgParticle::Operator); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ForceOperator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const osg::Vec3 &, getForce); + Method1(void, setForce, IN, const osg::Vec3 &, f); + Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); + Method1(void, beginOperate, IN, osgParticle::Program *, prg); + Property(const osg::Vec3 &, Force); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/GNUmakefile b/src/osgWrappers/osgParticle/GNUmakefile new file mode 100644 index 000000000..512fe197f --- /dev/null +++ b/src/osgWrappers/osgParticle/GNUmakefile @@ -0,0 +1,48 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + AccelOperator.cpp\ + AngularAccelOperator.cpp\ + CenteredPlacer.cpp\ + Counter.cpp\ + Emitter.cpp\ + ExplosionDebriEffect.cpp\ + ExplosionEffect.cpp\ + FireEffect.cpp\ + FluidFrictionOperator.cpp\ + FluidProgram.cpp\ + ForceOperator.cpp\ + Interpolator.cpp\ + LinearInterpolator.cpp\ + ModularEmitter.cpp\ + ModularProgram.cpp\ + MultiSegmentPlacer.cpp\ + Operator.cpp\ + Particle.cpp\ + ParticleEffect.cpp\ + ParticleProcessor.cpp\ + ParticleSystem.cpp\ + ParticleSystemUpdater.cpp\ + Placer.cpp\ + PointPlacer.cpp\ + Program.cpp\ + RadialShooter.cpp\ + RandomRateCounter.cpp\ + range.cpp\ + SectorPlacer.cpp\ + SegmentPlacer.cpp\ + Shooter.cpp\ + SmokeEffect.cpp\ + VariableRateCounter.cpp\ + + +LIBS += -losgParticle -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgParticle +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgParticle/Interpolator.cpp b/src/osgWrappers/osgParticle/Interpolator.cpp new file mode 100644 index 000000000..d7b3c893f --- /dev/null +++ b/src/osgWrappers/osgParticle/Interpolator.cpp @@ -0,0 +1,31 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Interpolator) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Interpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2); + Method3(osg::Vec2, interpolate, IN, float, t, IN, const osg::Vec2 &, y1, IN, const osg::Vec2 &, y2); + Method3(osg::Vec3, interpolate, IN, float, t, IN, const osg::Vec3 &, y1, IN, const osg::Vec3 &, y2); + Method3(osg::Vec4, interpolate, IN, float, t, IN, const osg::Vec4 &, y1, IN, const osg::Vec4 &, y2); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/LinearInterpolator.cpp b/src/osgWrappers/osgParticle/LinearInterpolator.cpp new file mode 100644 index 000000000..4862b1fc9 --- /dev/null +++ b/src/osgWrappers/osgParticle/LinearInterpolator.cpp @@ -0,0 +1,27 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator) + BaseType(osgParticle::Interpolator); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::LinearInterpolator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method3(float, interpolate, IN, float, t, IN, float, y1, IN, float, y2); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ModularEmitter.cpp b/src/osgWrappers/osgParticle/ModularEmitter.cpp new file mode 100644 index 000000000..8da528e53 --- /dev/null +++ b/src/osgWrappers/osgParticle/ModularEmitter.cpp @@ -0,0 +1,43 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter) + BaseType(osgParticle::Emitter); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ModularEmitter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(osgParticle::Counter *, getCounter); + Method0(const osgParticle::Counter *, getCounter); + Method1(void, setCounter, IN, osgParticle::Counter *, c); + Method0(osgParticle::Placer *, getPlacer); + Method0(const osgParticle::Placer *, getPlacer); + Method1(void, setPlacer, IN, osgParticle::Placer *, p); + Method0(osgParticle::Shooter *, getShooter); + Method0(const osgParticle::Shooter *, getShooter); + Method1(void, setShooter, IN, osgParticle::Shooter *, s); + Property(osgParticle::Counter *, Counter); + Property(osgParticle::Placer *, Placer); + Property(osgParticle::Shooter *, Shooter); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ModularProgram.cpp b/src/osgWrappers/osgParticle/ModularProgram.cpp new file mode 100644 index 000000000..cedb7a495 --- /dev/null +++ b/src/osgWrappers/osgParticle/ModularProgram.cpp @@ -0,0 +1,34 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram) + BaseType(osgParticle::Program); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ModularProgram &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(int, numOperators); + Method1(void, addOperator, IN, osgParticle::Operator *, o); + Method1(osgParticle::Operator *, getOperator, IN, int, i); + Method1(const osgParticle::Operator *, getOperator, IN, int, i); + Method1(void, removeOperator, IN, int, i); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp new file mode 100644 index 000000000..fcd6e4148 --- /dev/null +++ b/src/osgWrappers/osgParticle/MultiSegmentPlacer.cpp @@ -0,0 +1,37 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer) + BaseType(osgParticle::Placer); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::MultiSegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(int, numVertices); + Method1(const osg::Vec3 &, getVertex, IN, int, i); + Method2(void, setVertex, IN, int, i, IN, const osg::Vec3 &, v); + Method4(void, setVertex, IN, int, i, IN, float, x, IN, float, y, IN, float, z); + Method1(void, addVertex, IN, const osg::Vec3 &, v); + Method3(void, addVertex, IN, float, x, IN, float, y, IN, float, z); + Method1(void, removeVertex, IN, int, i); + Method1(void, place, IN, osgParticle::Particle *, P); + IndexedProperty1(const osg::Vec3 &, Vertex, int, i); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Operator.cpp b/src/osgWrappers/osgParticle/Operator.cpp new file mode 100644 index 000000000..22462df63 --- /dev/null +++ b/src/osgWrappers/osgParticle/Operator.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Operator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(bool, isEnabled); + Method1(void, setEnabled, IN, bool, v); + Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt); + Method1(void, beginOperate, IN, osgParticle::Program *, x); + Method0(void, endOperate); + WriteOnlyProperty(bool, Enabled); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Particle.cpp b/src/osgWrappers/osgParticle/Particle.cpp new file mode 100644 index 000000000..ea834fb78 --- /dev/null +++ b/src/osgWrappers/osgParticle/Particle.cpp @@ -0,0 +1,92 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgParticle::Particle::Shape) + EnumLabel(osgParticle::Particle::POINT); + EnumLabel(osgParticle::Particle::QUAD); + EnumLabel(osgParticle::Particle::QUAD_TRIANGLESTRIP); + EnumLabel(osgParticle::Particle::HEXAGON); + EnumLabel(osgParticle::Particle::LINE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::Particle) + Constructor0(); + Method0(osgParticle::Particle::Shape, getShape); + Method1(void, setShape, IN, osgParticle::Particle::Shape, s); + Method0(bool, isAlive); + Method0(double, getLifeTime); + Method0(double, getAge); + Method0(const osgParticle::rangef &, getSizeRange); + Method0(const osgParticle::rangef &, getAlphaRange); + Method0(const osgParticle::rangev4 &, getColorRange); + Method0(const osgParticle::Interpolator *, getSizeInterpolator); + Method0(const osgParticle::Interpolator *, getAlphaInterpolator); + Method0(const osgParticle::Interpolator *, getColorInterpolator); + Method0(float, getRadius); + Method0(float, getMass); + Method0(float, getMassInv); + Method0(const osg::Vec3 &, getPosition); + Method0(const osg::Vec3 &, getVelocity); + Method0(const osg::Vec3 &, getPreviousPosition); + Method0(const osg::Vec3 &, getAngle); + Method0(const osg::Vec3 &, getAngularVelocity); + Method0(const osg::Vec3 &, getPreviousAngle); + Method0(void, kill); + Method1(void, setLifeTime, IN, double, t); + Method1(void, setSizeRange, IN, const osgParticle::rangef &, r); + Method1(void, setAlphaRange, IN, const osgParticle::rangef &, r); + Method1(void, setColorRange, IN, const osgParticle::rangev4 &, r); + Method1(void, setSizeInterpolator, IN, osgParticle::Interpolator *, ri); + Method1(void, setAlphaInterpolator, IN, osgParticle::Interpolator *, ai); + Method1(void, setColorInterpolator, IN, osgParticle::Interpolator *, ci); + Method1(void, setRadius, IN, float, r); + Method1(void, setMass, IN, float, m); + Method1(void, setPosition, IN, const osg::Vec3 &, p); + Method1(void, setVelocity, IN, const osg::Vec3 &, v); + Method1(void, addVelocity, IN, const osg::Vec3 &, dv); + Method1(void, transformPositionVelocity, IN, const osg::Matrix &, xform); + Method1(void, setAngle, IN, const osg::Vec3 &, a); + Method1(void, setAngularVelocity, IN, const osg::Vec3 &, v); + Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv); + Method1(void, transformAngleVelocity, IN, const osg::Matrix &, xform); + Method1(bool, update, IN, double, dt); + Method0(void, beginRender); + MethodWithDefaults4(void, render, IN, const osg::Vec3 &, xpos, , IN, const osg::Vec3 &, px, , IN, const osg::Vec3 &, py, , IN, float, scale, 1.0f); + Method0(void, endRender); + Method0(float, getCurrentSize); + MethodWithDefaults3(void, setTextureTile, IN, int, sTile, , IN, int, tTile, , IN, int, numTiles, 0); + ReadOnlyProperty(double, Age); + WriteOnlyProperty(osgParticle::Interpolator *, AlphaInterpolator); + Property(const osgParticle::rangef &, AlphaRange); + Property(const osg::Vec3 &, Angle); + Property(const osg::Vec3 &, AngularVelocity); + WriteOnlyProperty(osgParticle::Interpolator *, ColorInterpolator); + Property(const osgParticle::rangev4 &, ColorRange); + ReadOnlyProperty(float, CurrentSize); + Property(double, LifeTime); + Property(float, Mass); + ReadOnlyProperty(float, MassInv); + Property(const osg::Vec3 &, Position); + ReadOnlyProperty(const osg::Vec3 &, PreviousAngle); + ReadOnlyProperty(const osg::Vec3 &, PreviousPosition); + Property(float, Radius); + Property(osgParticle::Particle::Shape, Shape); + WriteOnlyProperty(osgParticle::Interpolator *, SizeInterpolator); + Property(const osgParticle::rangef &, SizeRange); + Property(const osg::Vec3 &, Velocity); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ParticleEffect.cpp b/src/osgWrappers/osgParticle/ParticleEffect.cpp new file mode 100644 index 000000000..4ab2ed407 --- /dev/null +++ b/src/osgWrappers/osgParticle/ParticleEffect.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 +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, setUseLocalParticleSystem, IN, bool, local); + Method0(bool, getUseLocalParticleSystem); + Method1(void, setPosition, IN, const osg::Vec3 &, position); + Method0(const osg::Vec3 &, getPosition); + Method1(void, setScale, IN, float, scale); + Method0(float, getScale); + Method1(void, setIntensity, IN, float, intensity); + Method0(float, getIntensity); + Method1(void, setStartTime, IN, double, startTime); + Method0(double, getStartTime); + Method1(void, setEmitterDuration, IN, double, duration); + Method0(double, getEmitterDuration); + Method1(void, setParticleDuration, IN, double, duration); + Method0(double, getParticleDuration); + Method1(void, setWind, IN, const osg::Vec3 &, wind); + Method0(const osg::Vec3 &, getWind); + Method0(bool, areAllParticlesDead); + Method0(osgParticle::Emitter *, getEmitter); + Method0(const osgParticle::Emitter *, getEmitter); + Method0(osgParticle::Program *, getProgram); + Method0(const osgParticle::Program *, getProgram); + Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps); + Method0(osgParticle::ParticleSystem *, getParticleSystem); + Method0(const osgParticle::ParticleSystem *, getParticleSystem); + Method0(void, setDefaults); + Method0(void, setUpEmitterAndProgram); + Method0(void, buildEffect); + ReadOnlyProperty(osgParticle::Emitter *, Emitter); + Property(double, EmitterDuration); + Property(float, Intensity); + Property(double, ParticleDuration); + Property(osgParticle::ParticleSystem *, ParticleSystem); + Property(const osg::Vec3 &, Position); + ReadOnlyProperty(osgParticle::Program *, Program); + Property(float, Scale); + Property(double, StartTime); + Property(bool, UseLocalParticleSystem); + Property(const osg::Vec3 &, Wind); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ParticleProcessor.cpp b/src/osgWrappers/osgParticle/ParticleProcessor.cpp new file mode 100644 index 000000000..7257b264a --- /dev/null +++ b/src/osgWrappers/osgParticle/ParticleProcessor.cpp @@ -0,0 +1,69 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleProcessor::ReferenceFrame) + EnumLabel(osgParticle::ParticleProcessor::RELATIVE_RF); + EnumLabel(osgParticle::ParticleProcessor::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor) + BaseType(osg::Node); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ParticleProcessor &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(osgParticle::ParticleProcessor::ReferenceFrame, getReferenceFrame); + Method1(void, setReferenceFrame, IN, osgParticle::ParticleProcessor::ReferenceFrame, rf); + Method0(bool, isEnabled); + Method1(void, setEnabled, IN, bool, v); + Method0(osgParticle::ParticleSystem *, getParticleSystem); + Method0(const osgParticle::ParticleSystem *, getParticleSystem); + Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps); + Method1(void, setEndless, IN, bool, type); + Method0(bool, isEndless); + Method1(void, setLifeTime, IN, double, t); + Method0(double, getLifeTime); + Method1(void, setStartTime, IN, double, t); + Method0(double, getStartTime); + Method1(void, setCurrentTime, IN, double, t); + Method0(double, getCurrentTime); + Method1(void, setResetTime, IN, double, t); + Method0(double, getResetTime); + Method0(bool, isAlive); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method0(const osg::Matrix &, getLocalToWorldMatrix); + Method0(const osg::Matrix &, getWorldToLocalMatrix); + Method1(osg::Vec3, transformLocalToWorld, IN, const osg::Vec3 &, P); + Method1(osg::Vec3, rotateLocalToWorld, IN, const osg::Vec3 &, P); + Method1(osg::Vec3, transformWorldToLocal, IN, const osg::Vec3 &, P); + Method1(osg::Vec3, rotateWorldToLocal, IN, const osg::Vec3 &, P); + Property(double, CurrentTime); + WriteOnlyProperty(bool, Enabled); + WriteOnlyProperty(bool, Endless); + Property(double, LifeTime); + ReadOnlyProperty(const osg::Matrix &, LocalToWorldMatrix); + Property(osgParticle::ParticleSystem *, ParticleSystem); + Property(osgParticle::ParticleProcessor::ReferenceFrame, ReferenceFrame); + Property(double, ResetTime); + Property(double, StartTime); + ReadOnlyProperty(const osg::Matrix &, WorldToLocalMatrix); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp new file mode 100644 index 000000000..8b2a1d721 --- /dev/null +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -0,0 +1,76 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment) + EnumLabel(osgParticle::ParticleSystem::BILLBOARD); + EnumLabel(osgParticle::ParticleSystem::FIXED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem) + BaseType(osg::Drawable); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ParticleSystem &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(osgParticle::ParticleSystem::Alignment, getParticleAlignment); + Method1(void, setParticleAlignment, IN, osgParticle::ParticleSystem::Alignment, a); + Method0(const osg::Vec3 &, getAlignVectorX); + Method1(void, setAlignVectorX, IN, const osg::Vec3 &, v); + Method0(const osg::Vec3 &, getAlignVectorY); + Method1(void, setAlignVectorY, IN, const osg::Vec3 &, v); + Method2(void, setAlignVectors, IN, const osg::Vec3 &, X, IN, const osg::Vec3 &, Y); + Method0(const osg::BoundingBox &, getDefaultBoundingBox); + Method1(void, setDefaultBoundingBox, IN, const osg::BoundingBox &, bbox); + Method0(bool, getDoublePassRendering); + Method1(void, setDoublePassRendering, IN, bool, v); + Method0(bool, isFrozen); + Method1(void, setFrozen, IN, bool, v); + Method0(int, numParticles); + Method0(int, numDeadParticles); + Method0(bool, areAllParticlesDead); + Method1(osgParticle::Particle *, getParticle, IN, int, i); + Method1(const osgParticle::Particle *, getParticle, IN, int, i); + Method1(osgParticle::Particle *, createParticle, IN, const osgParticle::Particle *, ptemplate); + Method1(void, destroyParticle, IN, int, i); + Method0(int, getLastFrameNumber); + Method0(osgParticle::Particle &, getDefaultParticleTemplate); + Method0(const osgParticle::Particle &, getDefaultParticleTemplate); + Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p); + Method0(bool, getFreezeOnCull); + Method1(void, setFreezeOnCull, IN, bool, v); + MethodWithDefaults4(void, setDefaultAttributes, IN, const std::string &, texturefile, "", IN, bool, emissive_particles, true, IN, bool, lighting, false, IN, int, texture_unit, 0); + Method0(int, getLevelOfDetail); + Method1(void, setLevelOfDetail, IN, int, v); + Method1(void, update, IN, double, dt); + Method1(void, drawImplementation, IN, osg::State &, state); + Property(const osg::Vec3 &, AlignVectorX); + Property(const osg::Vec3 &, AlignVectorY); + Property(const osg::BoundingBox &, DefaultBoundingBox); + Property(const osgParticle::Particle &, DefaultParticleTemplate); + Property(bool, DoublePassRendering); + Property(bool, FreezeOnCull); + WriteOnlyProperty(bool, Frozen); + ReadOnlyProperty(int, LastFrameNumber); + Property(int, LevelOfDetail); + Property(osgParticle::ParticleSystem::Alignment, ParticleAlignment); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp new file mode 100644 index 000000000..b4d369476 --- /dev/null +++ b/src/osgWrappers/osgParticle/ParticleSystemUpdater.cpp @@ -0,0 +1,41 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater) + BaseType(osg::Node); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::ParticleSystemUpdater &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(bool, addParticleSystem, IN, osgParticle::ParticleSystem *, ps); + Method1(bool, removeParticleSystem, IN, osgParticle::ParticleSystem *, ps); + MethodWithDefaults2(bool, removeParticleSystem, IN, unsigned int, i, , IN, unsigned int, numParticleSystemsToRemove, 1); + Method2(bool, replaceParticleSystem, IN, osgParticle::ParticleSystem *, origPS, IN, osgParticle::ParticleSystem *, newPS); + Method2(bool, setParticleSystem, IN, unsigned int, i, IN, osgParticle::ParticleSystem *, ps); + Method0(unsigned int, getNumParticleSystems); + Method1(osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i); + Method1(const osgParticle::ParticleSystem *, getParticleSystem, IN, unsigned int, i); + Method1(bool, containsParticleSystem, IN, const osgParticle::ParticleSystem *, ps); + Method1(unsigned int, getParticleSystemIndex, IN, const osgParticle::ParticleSystem *, ps); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + ArrayProperty_GSA(osgParticle::ParticleSystem *, ParticleSystem, ParticleSystems, unsigned int, bool); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Placer.cpp b/src/osgWrappers/osgParticle/Placer.cpp new file mode 100644 index 000000000..e18d769c9 --- /dev/null +++ b/src/osgWrappers/osgParticle/Placer.cpp @@ -0,0 +1,26 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, place, IN, osgParticle::Particle *, P); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/PointPlacer.cpp b/src/osgWrappers/osgParticle/PointPlacer.cpp new file mode 100644 index 000000000..676f1629c --- /dev/null +++ b/src/osgWrappers/osgParticle/PointPlacer.cpp @@ -0,0 +1,28 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer) + BaseType(osgParticle::CenteredPlacer); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::PointPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, place, IN, osgParticle::Particle *, P); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Program.cpp b/src/osgWrappers/osgParticle/Program.cpp new file mode 100644 index 000000000..eefe97e98 --- /dev/null +++ b/src/osgWrappers/osgParticle/Program.cpp @@ -0,0 +1,26 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Program) + BaseType(osgParticle::ParticleProcessor); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Program &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, accept, IN, osg::NodeVisitor &, nv); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/RadialShooter.cpp b/src/osgWrappers/osgParticle/RadialShooter.cpp new file mode 100644 index 000000000..8563f98d2 --- /dev/null +++ b/src/osgWrappers/osgParticle/RadialShooter.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter) + BaseType(osgParticle::Shooter); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::RadialShooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const osgParticle::rangef &, getThetaRange); + Method1(void, setThetaRange, IN, const osgParticle::rangef &, r); + Method2(void, setThetaRange, IN, float, r1, IN, float, r2); + Method0(const osgParticle::rangef &, getPhiRange); + Method1(void, setPhiRange, IN, const osgParticle::rangef &, r); + Method2(void, setPhiRange, IN, float, r1, IN, float, r2); + Method0(const osgParticle::rangef &, getInitialSpeedRange); + Method1(void, setInitialSpeedRange, IN, const osgParticle::rangef &, r); + Method2(void, setInitialSpeedRange, IN, float, r1, IN, float, r2); + Method0(const osgParticle::rangev3 &, getInitialRotationalSpeedRange); + Method1(void, setInitialRotationalSpeedRange, IN, const osgParticle::rangev3 &, r); + Method2(void, setInitialRotationalSpeedRange, IN, const osg::Vec3 &, r1, IN, const osg::Vec3 &, r2); + Method1(void, shoot, IN, osgParticle::Particle *, P); + Property(const osgParticle::rangev3 &, InitialRotationalSpeedRange); + Property(const osgParticle::rangef &, InitialSpeedRange); + Property(const osgParticle::rangef &, PhiRange); + Property(const osgParticle::rangef &, ThetaRange); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/RandomRateCounter.cpp b/src/osgWrappers/osgParticle/RandomRateCounter.cpp new file mode 100644 index 000000000..939362aac --- /dev/null +++ b/src/osgWrappers/osgParticle/RandomRateCounter.cpp @@ -0,0 +1,27 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter) + BaseType(osgParticle::VariableRateCounter); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::RandomRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(int, numParticlesToCreate, IN, double, dt); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/SectorPlacer.cpp b/src/osgWrappers/osgParticle/SectorPlacer.cpp new file mode 100644 index 000000000..2123d8f4a --- /dev/null +++ b/src/osgWrappers/osgParticle/SectorPlacer.cpp @@ -0,0 +1,37 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) + BaseType(osgParticle::CenteredPlacer); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const osgParticle::rangef &, getRadiusRange); + Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r); + Method2(void, setRadiusRange, IN, float, r1, IN, float, r2); + Method0(const osgParticle::rangef &, getPhiRange); + Method1(void, setPhiRange, IN, const osgParticle::rangef &, r); + Method2(void, setPhiRange, IN, float, r1, IN, float, r2); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, place, IN, osgParticle::Particle *, P); + Property(const osgParticle::rangef &, PhiRange); + Property(const osgParticle::rangef &, RadiusRange); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/SegmentPlacer.cpp b/src/osgWrappers/osgParticle/SegmentPlacer.cpp new file mode 100644 index 000000000..cefae1628 --- /dev/null +++ b/src/osgWrappers/osgParticle/SegmentPlacer.cpp @@ -0,0 +1,38 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer) + BaseType(osgParticle::Placer); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::SegmentPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(const osg::Vec3 &, getVertexA); + Method1(void, setVertexA, IN, const osg::Vec3 &, v); + Method3(void, setVertexA, IN, float, x, IN, float, y, IN, float, z); + Method0(const osg::Vec3 &, getVertexB); + Method1(void, setVertexB, IN, const osg::Vec3 &, v); + Method3(void, setVertexB, IN, float, x, IN, float, y, IN, float, z); + Method2(void, setSegment, IN, const osg::Vec3 &, A, IN, const osg::Vec3 &, B); + Method1(void, place, IN, osgParticle::Particle *, P); + Property(const osg::Vec3 &, VertexA); + Property(const osg::Vec3 &, VertexB); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/Shooter.cpp b/src/osgWrappers/osgParticle/Shooter.cpp new file mode 100644 index 000000000..8db011104 --- /dev/null +++ b/src/osgWrappers/osgParticle/Shooter.cpp @@ -0,0 +1,26 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method1(void, shoot, IN, osgParticle::Particle *, P); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/SmokeEffect.cpp b/src/osgWrappers/osgParticle/SmokeEffect.cpp new file mode 100644 index 000000000..2c61b2833 --- /dev/null +++ b/src/osgWrappers/osgParticle/SmokeEffect.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgParticle::SmokeEffect) + BaseType(osgParticle::ParticleEffect); + ConstructorWithDefaults3(IN, const osg::Vec3 &, position, osg::Vec3(0.0f, 0.0f, 0.0f), IN, float, scale, 1.0f, IN, float, intensity, 1.0f); + ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method0(void, setDefaults); + Method0(void, setUpEmitterAndProgram); + Method0(osgParticle::Emitter *, getEmitter); + Method0(const osgParticle::Emitter *, getEmitter); + Method0(osgParticle::Program *, getProgram); + Method0(const osgParticle::Program *, getProgram); + ReadOnlyProperty(osgParticle::Emitter *, Emitter); + ReadOnlyProperty(osgParticle::Program *, Program); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/VariableRateCounter.cpp b/src/osgWrappers/osgParticle/VariableRateCounter.cpp new file mode 100644 index 000000000..e007bf6c9 --- /dev/null +++ b/src/osgWrappers/osgParticle/VariableRateCounter.cpp @@ -0,0 +1,29 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::VariableRateCounter) + BaseType(osgParticle::Counter); + Constructor0(); + ConstructorWithDefaults2(IN, const osgParticle::VariableRateCounter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const osgParticle::rangef &, getRateRange); + Method1(void, setRateRange, IN, const osgParticle::rangef &, r); + Method2(void, setRateRange, IN, float, minrange, IN, float, maxrange); + Property(const osgParticle::rangef &, RateRange); +END_REFLECTOR + diff --git a/src/osgWrappers/osgParticle/range.cpp b/src/osgWrappers/osgParticle/range.cpp new file mode 100644 index 000000000..b8f95d890 --- /dev/null +++ b/src/osgWrappers/osgParticle/range.cpp @@ -0,0 +1,64 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +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 >) + Constructor0(); + Constructor2(IN, const float &, mn, IN, const float &, mx); + Method2(void, set, IN, const float &, mn, IN, const float &, mx); + Method0(float, get_random); + Method0(float, get_random_sqrtf); + ReadOnlyProperty(float, _random); + ReadOnlyProperty(float, _random_sqrtf); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec2 >) + Constructor0(); + Constructor2(IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx); + Method2(void, set, IN, const osg::Vec2 &, mn, IN, const osg::Vec2 &, mx); + Method0(osg::Vec2, get_random); + Method0(osg::Vec2, get_random_sqrtf); + ReadOnlyProperty(osg::Vec2, _random); + ReadOnlyProperty(osg::Vec2, _random_sqrtf); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec3 >) + Constructor0(); + Constructor2(IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx); + Method2(void, set, IN, const osg::Vec3 &, mn, IN, const osg::Vec3 &, mx); + Method0(osg::Vec3, get_random); + Method0(osg::Vec3, get_random_sqrtf); + ReadOnlyProperty(osg::Vec3, _random); + ReadOnlyProperty(osg::Vec3, _random_sqrtf); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgParticle::range< osg::Vec4 >) + Constructor0(); + Constructor2(IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx); + Method2(void, set, IN, const osg::Vec4 &, mn, IN, const osg::Vec4 &, mx); + Method0(osg::Vec4, get_random); + Method0(osg::Vec4, get_random_sqrtf); + ReadOnlyProperty(osg::Vec4, _random); + ReadOnlyProperty(osg::Vec4, _random_sqrtf); +END_REFLECTOR + diff --git a/src/osgWrappers/osgProducer/EventAdapter.cpp b/src/osgWrappers/osgProducer/EventAdapter.cpp new file mode 100644 index 000000000..c6233588b --- /dev/null +++ b/src/osgWrappers/osgProducer/EventAdapter.cpp @@ -0,0 +1,51 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgProducer::EventAdapter) + BaseType(osgGA::GUIEventAdapter); + Constructor0(); + Method0(osgGA::GUIEventAdapter::EventType, getEventType); + Method0(int, getKey); + Method0(int, getButton); + Method0(float, getXmin); + Method0(float, getXmax); + Method0(float, getYmin); + Method0(float, getYmax); + Method0(float, getX); + Method0(float, getY); + Method0(unsigned int, getButtonMask); + Method0(double, time); + Method0(unsigned int, getModKeyMask); + Method5(void, adaptResize, IN, double, t, IN, float, Xmin, IN, float, Ymin, IN, float, Xmax, IN, float, Ymax); + Method2(void, adaptMouseScroll, IN, double, t, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm); + Method3(void, adaptMouseMotion, IN, double, t, IN, float, x, IN, float, y); + Method4(void, adaptButtonPress, IN, double, t, IN, float, x, IN, float, y, IN, unsigned int, button); + Method4(void, adaptButtonRelease, IN, double, t, IN, float, x, IN, float, y, IN, unsigned int, button); + Method2(void, adaptKeyPress, IN, double, t, IN, Producer::KeySymbol, key); + Method2(void, adaptKeyRelease, IN, double, t, IN, Producer::KeySymbol, key); + Method1(void, adaptFrame, IN, double, t); + Method0(void, copyStaticVariables); + ReadOnlyProperty(int, Button); + ReadOnlyProperty(unsigned int, ButtonMask); + ReadOnlyProperty(osgGA::GUIEventAdapter::EventType, EventType); + ReadOnlyProperty(int, Key); + ReadOnlyProperty(unsigned int, ModKeyMask); + ReadOnlyProperty(float, X); + ReadOnlyProperty(float, Xmax); + ReadOnlyProperty(float, Xmin); + ReadOnlyProperty(float, Y); + ReadOnlyProperty(float, Ymax); + ReadOnlyProperty(float, Ymin); +END_REFLECTOR + diff --git a/src/osgWrappers/osgProducer/GNUmakefile b/src/osgWrappers/osgProducer/GNUmakefile new file mode 100644 index 000000000..044d0b90c --- /dev/null +++ b/src/osgWrappers/osgProducer/GNUmakefile @@ -0,0 +1,21 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + EventAdapter.cpp\ + KeyboardMouseCallback.cpp\ + OsgCameraGroup.cpp\ + OsgSceneHandler.cpp\ + Viewer.cpp\ + ViewerEventHandler.cpp\ + + +LIBS += -losgProducer -losgGA -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgProducer +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp new file mode 100644 index 000000000..65f94092b --- /dev/null +++ b/src/osgWrappers/osgProducer/KeyboardMouseCallback.cpp @@ -0,0 +1,64 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgProducer::EventAdapter > >, osgProducer::KeyboardMouseCallback::EventQueue); + +BEGIN_VALUE_REFLECTOR(osgProducer::KeyboardMouseCallback) + ConstructorWithDefaults3(IN, Producer::KeyboardMouse *, keyboardMouse, , IN, bool &, done, , IN, bool, escapeKeySetsDone, true); + Method1(void, mouseScroll, IN, Producer::KeyboardMouseCallback::ScrollingMotion, sm); + Method2(void, mouseMotion, IN, float, mx, IN, float, my); + Method2(void, passiveMouseMotion, IN, float, mx, IN, float, my); + Method2(void, mouseWarp, IN, float, mx, IN, float, my); + Method3(void, buttonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); + Method3(void, doubleButtonPress, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); + Method3(void, buttonRelease, IN, float, mx, IN, float, my, IN, unsigned int, mbutton); + Method1(void, keyPress, IN, Producer::KeyCharacter, key); + Method1(void, keyRelease, IN, Producer::KeyCharacter, key); + Method1(void, specialKeyPress, IN, Producer::KeyCharacter, key); + Method1(void, specialKeyRelease, IN, Producer::KeyCharacter, key); + Method4(void, windowConfig, IN, int, x, IN, int, y, IN, unsigned int, width, IN, unsigned int, height); + Method0(void, shutdown); + Method1(void, setEscapeSetDone, IN, bool, esc); + Method0(bool, getEscapeSetDone); + Method1(double, getEventQueue, IN, osgProducer::KeyboardMouseCallback::EventQueue &, queue); + Method0(bool, done); + Method0(float, mx); + Method0(float, my); + Method0(unsigned int, mbutton); + Method1(void, setStartTick, IN, osg::Timer_t, tick); + Method0(double, getTime); + Method0(Producer::KeyboardMouse *, getKeyboardMouse); + Method0(const Producer::KeyboardMouse *, getKeyboardMouse); + Method0(osgProducer::EventAdapter *, createEventAdapter); + Property(bool, EscapeSetDone); + ReadOnlyProperty(Producer::KeyboardMouse *, KeyboardMouse); + WriteOnlyProperty(osg::Timer_t, StartTick); + ReadOnlyProperty(double, Time); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgProducer::EventAdapter >) + Constructor0(); + Constructor1(IN, osgProducer::EventAdapter *, t); + Constructor1(IN, const osg::ref_ptr< osgProducer::EventAdapter > &, rp); + Method0(bool, valid); + Method0(osgProducer::EventAdapter *, get); + Method0(const osgProducer::EventAdapter *, get); + Method0(osgProducer::EventAdapter *, take); + Method0(osgProducer::EventAdapter *, release); + ReadOnlyProperty(osgProducer::EventAdapter *, ); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgProducer::EventAdapter > >); + diff --git a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp new file mode 100644 index 000000000..6f3719fdd --- /dev/null +++ b/src/osgWrappers/osgProducer/OsgCameraGroup.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 +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >, osgProducer::OsgCameraGroup::SceneHandlerList); + +BEGIN_VALUE_REFLECTOR(osgProducer::OsgCameraGroup) + Constructor0(); + Constructor1(IN, Producer::CameraConfig *, cfg); + Constructor1(IN, const std::string &, configFile); + Constructor1(IN, osg::ArgumentParser &, arguments); + Method1(void, setApplicationUsage, IN, osg::ApplicationUsage *, au); + Method0(osg::ApplicationUsage *, getApplicationUsage); + Method0(const osg::ApplicationUsage *, getApplicationUsage); + Method0(osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList); + Method0(const osgProducer::OsgCameraGroup::SceneHandlerList &, getSceneHandlerList); + Method1(void, setSceneData, IN, osg::Node *, scene); + Method0(osg::Node *, getSceneData); + Method0(const osg::Node *, getSceneData); + Method1(void, setSceneDecorator, IN, osg::Group *, decorator); + Method0(osg::Group *, getSceneDecorator); + Method0(const osg::Group *, getSceneDecorator); + Method0(osg::Node *, getTopMostSceneData); + Method0(const osg::Node *, getTopMostSceneData); + Method0(void, updatedSceneData); + Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds); + Method0(osg::DisplaySettings *, getDisplaySettings); + Method0(const osg::DisplaySettings *, getDisplaySettings); + Method1(void, setCullSettings, IN, const osg::CullSettings &, cs); + Method0(osg::CullSettings &, getCullSettings); + Method0(const osg::CullSettings &, getCullSettings); + Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); + Method0(osg::FrameStamp *, getFrameStamp); + Method0(const osg::FrameStamp *, getFrameStamp); + Method1(void, setGlobalStateSet, IN, osg::StateSet *, sset); + Method0(osg::StateSet *, getGlobalStateSet); + Method0(const osg::StateSet *, getGlobalStateSet); + Method1(void, setClearColor, IN, const osg::Vec4 &, clearColor); + Method0(const osg::Vec4 &, getClearColor); + Method1(void, setLODScale, IN, float, scale); + Method0(float, getLODScale); + MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f); + Method1(void, setRealizeSceneViewOptions, IN, unsigned int, options); + Method0(unsigned int, getRealizeSceneViewOptions); + Method1(void, setRealizeCallback, IN, osgProducer::OsgCameraGroup::RealizeCallback *, cb); + Method0(osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback); + Method0(const osgProducer::OsgCameraGroup::RealizeCallback *, getRealizeCallback); + Method0(void, advance); + Method1(bool, realize, IN, ThreadingModel, thread_model); + Method0(bool, realize); + Method1(void, setView, IN, const osg::Matrixd &, matrix); + Method0(osg::Matrixd, getViewMatrix); + Method0(void, sync); + Method0(void, frame); + Method0(void, cleanup_frame); + Property(osg::ApplicationUsage *, ApplicationUsage); + Property(const osg::Vec4 &, ClearColor); + Property(const osg::CullSettings &, CullSettings); + Property(osg::DisplaySettings *, DisplaySettings); + Property(osg::FrameStamp *, FrameStamp); + Property(osg::StateSet *, GlobalStateSet); + Property(float, LODScale); + Property(osgProducer::OsgCameraGroup::RealizeCallback *, RealizeCallback); + Property(unsigned int, RealizeSceneViewOptions); + Property(osg::Node *, SceneData); + Property(osg::Group *, SceneDecorator); + ReadOnlyProperty(osgProducer::OsgCameraGroup::SceneHandlerList &, SceneHandlerList); + ReadOnlyProperty(osg::Node *, TopMostSceneData); + WriteOnlyProperty(const osg::Matrixd &, View); + ReadOnlyProperty(osg::Matrixd, ViewMatrix); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgCameraGroup::RealizeCallback) + BaseType(osg::Referenced); + Constructor0(); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< Producer::ref_ptr< osgProducer::OsgSceneHandler > >); + diff --git a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp new file mode 100644 index 000000000..fbe1faf3e --- /dev/null +++ b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp @@ -0,0 +1,52 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) + ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL); + Method1(void, setSceneView, IN, osgUtil::SceneView *, sceneView); + Method0(osgUtil::SceneView *, getSceneView); + Method0(const osgUtil::SceneView *, getSceneView); + Method0(void, init); + Method1(void, clear, IN, Producer::Camera &, camera); + Method1(void, clearImplementation, IN, Producer::Camera &, camera); + Method1(void, setClearCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); + Method0(osgProducer::OsgSceneHandler::Callback *, getClearCallback); + Method0(const osgProducer::OsgSceneHandler::Callback *, getClearCallback); + Method1(void, cull, IN, Producer::Camera &, camera); + Method1(void, cullImplementation, IN, Producer::Camera &, camera); + Method1(void, setCullCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); + Method0(osgProducer::OsgSceneHandler::Callback *, getCullCallback); + Method0(const osgProducer::OsgSceneHandler::Callback *, getCullCallback); + Method1(void, draw, IN, Producer::Camera &, camera); + Method1(void, drawImplementation, IN, Producer::Camera &, camera); + Method1(void, setDrawCallback, IN, osgProducer::OsgSceneHandler::Callback *, callback); + Method0(osgProducer::OsgSceneHandler::Callback *, getDrawCallback); + Method0(const osgProducer::OsgSceneHandler::Callback *, getDrawCallback); + Method1(void, setContextID, IN, int, id); + Method1(void, setFlushOfAllDeletedGLObjectsOnNextFrame, IN, bool, flag); + Method0(bool, getFlushOfAllDeletedGLObjectsOnNextFrame); + Property(osgProducer::OsgSceneHandler::Callback *, ClearCallback); + WriteOnlyProperty(int, ContextID); + Property(osgProducer::OsgSceneHandler::Callback *, CullCallback); + Property(osgProducer::OsgSceneHandler::Callback *, DrawCallback); + Property(bool, FlushOfAllDeletedGLObjectsOnNextFrame); + Property(osgUtil::SceneView *, SceneView); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) + BaseType(osg::Referenced); + Constructor0(); +END_REFLECTOR + diff --git a/src/osgWrappers/osgProducer/Viewer.cpp b/src/osgWrappers/osgProducer/Viewer.cpp new file mode 100644 index 000000000..56d0f0859 --- /dev/null +++ b/src/osgWrappers/osgProducer/Viewer.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 +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgProducer::Viewer::EventHandlerList); + +BEGIN_ENUM_REFLECTOR(osgProducer::Viewer::ViewerOptions) + EnumLabel(osgProducer::Viewer::NO_EVENT_HANDLERS); + EnumLabel(osgProducer::Viewer::TRACKBALL_MANIPULATOR); + EnumLabel(osgProducer::Viewer::DRIVE_MANIPULATOR); + EnumLabel(osgProducer::Viewer::FLIGHT_MANIPULATOR); + EnumLabel(osgProducer::Viewer::TERRAIN_MANIPULATOR); + EnumLabel(osgProducer::Viewer::UFO_MANIPULATOR); + EnumLabel(osgProducer::Viewer::STATE_MANIPULATOR); + EnumLabel(osgProducer::Viewer::HEAD_LIGHT_SOURCE); + EnumLabel(osgProducer::Viewer::SKY_LIGHT_SOURCE); + EnumLabel(osgProducer::Viewer::STATS_MANIPULATOR); + EnumLabel(osgProducer::Viewer::VIEWER_MANIPULATOR); + EnumLabel(osgProducer::Viewer::ESCAPE_SETS_DONE); + EnumLabel(osgProducer::Viewer::STANDARD_SETTINGS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgProducer::Viewer) + BaseType(osgProducer::OsgCameraGroup); + BaseType(osgGA::GUIActionAdapter); + Constructor0(); + Constructor1(IN, Producer::CameraConfig *, cfg); + Constructor1(IN, const std::string &, configFile); + Constructor1(IN, osg::ArgumentParser &, arguments); + MethodWithDefaults1(void, setUpViewer, IN, unsigned int, options, osgProducer::Viewer::STANDARD_SETTINGS); + Method1(void, setDoneAtElapsedTime, IN, double, elapsedTime); + Method0(double, getDoneAtElapsedTime); + Method1(void, setDoneAtElapsedTimeEnabled, IN, bool, enabled); + Method0(bool, getDoneAtElapsedTimeEnabled); + Method1(void, setDoneAtFrameNumber, IN, unsigned int, frameNumber); + Method0(unsigned int, getDoneAtFrameNumber); + Method1(void, setDoneAtFrameNumberEnabled, IN, bool, enabled); + Method0(bool, getDoneAtFrameNumberEnabled); + Method1(void, setDone, IN, bool, done); + Method0(bool, getDone); + Method0(bool, done); + Method1(void, setWriteImageWhenDone, IN, bool, enabled); + Method0(bool, getWriteImageWhenDone); + Method1(void, setWriteImageFileName, IN, const std::string &, filename); + Method0(const std::string &, getWriteImageFileName); + Method1(void, setViewByMatrix, IN, const Producer::Matrix &, pm); + Method1(bool, realize, IN, ThreadingModel, thread_model); + Method0(bool, realize); + Method0(void, update); + Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, nv); + Method0(osg::NodeVisitor *, getUpdateVisitor); + Method0(const osg::NodeVisitor *, getUpdateVisitor); + Method1(void, setEventVisitor, IN, osgGA::EventVisitor *, nv); + Method0(osgGA::EventVisitor *, getEventVisitor); + Method0(const osgGA::EventVisitor *, getEventVisitor); + Method0(void, computeActiveCoordindateSystemNodePath); + Method1(void, setCoordindateSystemNodePath, IN, const osg::RefNodePath &, nodePath); + Method1(void, setCoordindateSystemNodePath, IN, const osg::NodePath &, nodePath); + Method0(const osg::RefNodePath &, getCoordindateSystemNodePath); + Method0(void, frame); + Method0(void, requestRedraw); + Method1(void, requestContinuousUpdate, IN, bool, x); + Method2(void, requestWarpPointer, IN, float, x, IN, float, y); + Method5(bool, computePixelCoords, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, float &, pixel_x, IN, float &, pixel_y); + Method5(bool, computeNearFarPoints, IN, float, x, IN, float, y, IN, unsigned int, cameraNum, IN, osg::Vec3 &, near, IN, osg::Vec3 &, far); + MethodWithDefaults6(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); + MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, unsigned int, cameraNum, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); + MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::Node *, node, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); + MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::IntersectVisitor::HitList &, hits, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff); + Method1(void, setKeyboardMouse, IN, Producer::KeyboardMouse *, kbm); + Method0(Producer::KeyboardMouse *, getKeyboardMouse); + Method0(const Producer::KeyboardMouse *, getKeyboardMouse); + Method1(void, setKeyboardMouseCallback, IN, osgProducer::KeyboardMouseCallback *, kbmcb); + Method0(osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback); + Method0(const osgProducer::KeyboardMouseCallback *, getKeyboardMouseCallback); + Method0(osgProducer::Viewer::EventHandlerList &, getEventHandlerList); + Method0(const osgProducer::Viewer::EventHandlerList &, getEventHandlerList); + Method0(osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator); + Method0(const osgGA::KeySwitchMatrixManipulator *, getKeySwitchMatrixManipulator); + Method1(unsigned int, addCameraManipulator, IN, osgGA::MatrixManipulator *, cm); + Method1(void, selectCameraManipulator, IN, unsigned int, no); + Method1(void, getCameraManipulatorNameList, IN, std::list< std::string > &, nameList); + Method1(bool, selectCameraManipulatorByName, IN, const std::string &, name); + Method1(osgGA::MatrixManipulator *, getCameraManipulatorByName, IN, const std::string &, name); + Method1(void, setRecordingAnimationPath, IN, bool, on); + Method0(bool, getRecordingAnimationPath); + Method1(void, setAnimationPath, IN, osg::AnimationPath *, path); + Method0(osg::AnimationPath *, getAnimationPath); + Method0(const osg::AnimationPath *, getAnimationPath); + Method0(const double *, getPosition); + Method0(double, getSpeed); + Method0(osg::Quat, getOrientation); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method0(void, updatedSceneData); + Property(osg::AnimationPath *, AnimationPath); + Property(const osg::RefNodePath &, CoordindateSystemNodePath); + Property(bool, Done); + Property(double, DoneAtElapsedTime); + Property(bool, DoneAtElapsedTimeEnabled); + Property(unsigned int, DoneAtFrameNumber); + Property(bool, DoneAtFrameNumberEnabled); + ReadOnlyProperty(osgProducer::Viewer::EventHandlerList &, EventHandlerList); + Property(osgGA::EventVisitor *, EventVisitor); + ReadOnlyProperty(osgGA::KeySwitchMatrixManipulator *, KeySwitchMatrixManipulator); + Property(Producer::KeyboardMouse *, KeyboardMouse); + Property(osgProducer::KeyboardMouseCallback *, KeyboardMouseCallback); + ReadOnlyProperty(osg::Quat, Orientation); + ReadOnlyProperty(const double *, Position); + Property(bool, RecordingAnimationPath); + ReadOnlyProperty(double, Speed); + WriteOnlyProperty(unsigned int, UpViewer); + Property(osg::NodeVisitor *, UpdateVisitor); + WriteOnlyProperty(const Producer::Matrix &, ViewByMatrix); + Property(const std::string &, WriteImageFileName); + Property(bool, WriteImageWhenDone); +END_REFLECTOR + +STD_LIST_REFLECTOR(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >); + +STD_LIST_REFLECTOR(std::list< std::string > &); + diff --git a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp new file mode 100644 index 000000000..04bfe460c --- /dev/null +++ b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp @@ -0,0 +1,49 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgProducer::ViewerEventHandler::FrameStatsMode) + EnumLabel(osgProducer::ViewerEventHandler::NO_STATS); + EnumLabel(osgProducer::ViewerEventHandler::FRAME_RATE); + EnumLabel(osgProducer::ViewerEventHandler::CAMERA_STATS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgProducer::ViewerEventHandler) + BaseType(osgGA::GUIEventHandler); + Constructor1(IN, osgProducer::OsgCameraGroup *, cg); + Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa); + Method1(void, accept, IN, osgGA::GUIEventHandlerVisitor &, gehv); + Method1(void, getUsage, IN, osg::ApplicationUsage &, usage); + Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup); + Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup); + Method1(void, setWriteNodeFileName, IN, const std::string &, filename); + Method0(const std::string &, getWriteNodeFileName); + Method1(void, setDisplayHelp, IN, bool, displayHelp); + Method0(bool, getDisplayHelp); + Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode); + Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode); + Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame); + Method1(void, setWriteImageFileName, IN, const std::string &, filename); + Method0(const std::string &, getWriteImageFileName); + Property(bool, DisplayHelp); + Property(osgProducer::ViewerEventHandler::FrameStatsMode, FrameStatsMode); + ReadOnlyProperty(osgProducer::OsgCameraGroup *, OsgCameraGroup); + Property(const std::string &, WriteImageFileName); + WriteOnlyProperty(bool, WriteImageOnNextFrame); + Property(const std::string &, WriteNodeFileName); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp new file mode 100644 index 000000000..8c63e6803 --- /dev/null +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -0,0 +1,53 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgSim::BlinkSequence) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::BlinkSequence &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method2(void, addPulse, IN, double, length, IN, const osg::Vec4 &, color); + Method0(int, getNumPulses); + Method3(void, getPulse, IN, unsigned int, i, IN, double &, length, IN, osg::Vec4 &, color); + Method0(double, getPulsePeriod); + Method1(void, setSequenceGroup, IN, osgSim::SequenceGroup *, sg); + Method0(osgSim::SequenceGroup *, getSequenceGroup); + Method0(const osgSim::SequenceGroup *, getSequenceGroup); + Method1(void, setPhaseShift, IN, double, ps); + Method0(double, getPhaseShift); + Method1(double, localTime, IN, double, time); + Method2(osg::Vec4, color, IN, double, time, IN, double, length); + Property(double, PhaseShift); + ReadOnlyProperty(double, PulsePeriod); + Property(osgSim::SequenceGroup *, SequenceGroup); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::SequenceGroup) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Constructor1(IN, double, baseTime); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/ColorRange.cpp b/src/osgWrappers/osgSim/ColorRange.cpp new file mode 100644 index 000000000..bbe9f61a3 --- /dev/null +++ b/src/osgWrappers/osgSim/ColorRange.cpp @@ -0,0 +1,23 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgSim::ColorRange) + BaseType(osgSim::ScalarsToColors); + Constructor2(IN, float, min, IN, float, max); + Constructor3(IN, float, min, IN, float, max, IN, const std::vector< osg::Vec4 > &, colors); + Method1(void, setColors, IN, const std::vector< osg::Vec4 > &, colors); + Method1(osg::Vec4, getColor, IN, float, scalar); + WriteOnlyProperty(const std::vector< osg::Vec4 > &, Colors); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/DOFTransform.cpp b/src/osgWrappers/osgSim/DOFTransform.cpp new file mode 100644 index 000000000..c6e039a1d --- /dev/null +++ b/src/osgWrappers/osgSim/DOFTransform.cpp @@ -0,0 +1,97 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgSim::DOFTransform::MultOrder) + EnumLabel(osgSim::DOFTransform::PRH); + EnumLabel(osgSim::DOFTransform::PHR); + EnumLabel(osgSim::DOFTransform::HPR); + EnumLabel(osgSim::DOFTransform::HRP); + EnumLabel(osgSim::DOFTransform::RPH); + EnumLabel(osgSim::DOFTransform::RHP); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DOFTransform) + BaseType(osg::Transform); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::DOFTransform &, dof, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, setMinHPR, IN, const osg::Vec3 &, hpr); + Method0(const osg::Vec3 &, getMinHPR); + Method1(void, setMaxHPR, IN, const osg::Vec3 &, hpr); + Method0(const osg::Vec3 &, getMaxHPR); + Method1(void, setIncrementHPR, IN, const osg::Vec3 &, hpr); + Method0(const osg::Vec3 &, getIncrementHPR); + Method1(void, setCurrentHPR, IN, const osg::Vec3 &, hpr); + Method0(const osg::Vec3 &, getCurrentHPR); + Method1(void, updateCurrentHPR, IN, const osg::Vec3 &, hpr); + Method1(void, setMinTranslate, IN, const osg::Vec3 &, translate); + Method0(const osg::Vec3 &, getMinTranslate); + Method1(void, setMaxTranslate, IN, const osg::Vec3 &, translate); + Method0(const osg::Vec3 &, getMaxTranslate); + Method1(void, setIncrementTranslate, IN, const osg::Vec3 &, translate); + Method0(const osg::Vec3 &, getIncrementTranslate); + Method1(void, setCurrentTranslate, IN, const osg::Vec3 &, translate); + Method0(const osg::Vec3 &, getCurrentTranslate); + Method1(void, updateCurrentTranslate, IN, const osg::Vec3 &, translate); + Method1(void, setMinScale, IN, const osg::Vec3 &, scale); + Method0(const osg::Vec3 &, getMinScale); + Method1(void, setMaxScale, IN, const osg::Vec3 &, scale); + Method0(const osg::Vec3 &, getMaxScale); + Method1(void, setIncrementScale, IN, const osg::Vec3 &, scale); + Method0(const osg::Vec3 &, getIncrementScale); + Method1(void, setCurrentScale, IN, const osg::Vec3 &, scale); + Method0(const osg::Vec3 &, getCurrentScale); + Method1(void, updateCurrentScale, IN, const osg::Vec3 &, scale); + Method1(void, setPutMatrix, IN, const osg::Matrix &, put); + Method0(const osg::Matrix &, getPutMatrix); + Method1(void, setInversePutMatrix, IN, const osg::Matrix &, inversePut); + Method0(const osg::Matrix &, getInversePutMatrix); + Method1(void, setLimitationFlags, IN, unsigned long, flags); + Method0(unsigned long, getLimitationFlags); + Method1(void, setHPRMultOrder, IN, const osgSim::DOFTransform::MultOrder, order); + Method0(const osgSim::DOFTransform::MultOrder, getHPRMultOrder); + Method1(void, setAnimationOn, IN, bool, do_animate); + Method0(bool, getAnimationOn); + Method1(void, animate, IN, float, deltaTime); + Method2(bool, computeLocalToWorldMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); + Method2(bool, computeWorldToLocalMatrix, IN, osg::Matrix &, matrix, IN, osg::NodeVisitor *, nv); + Property(bool, AnimationOn); + Property(const osg::Vec3 &, CurrentHPR); + Property(const osg::Vec3 &, CurrentScale); + Property(const osg::Vec3 &, CurrentTranslate); + Property(const osgSim::DOFTransform::MultOrder, HPRMultOrder); + Property(const osg::Vec3 &, IncrementHPR); + Property(const osg::Vec3 &, IncrementScale); + Property(const osg::Vec3 &, IncrementTranslate); + Property(const osg::Matrix &, InversePutMatrix); + Property(unsigned long, LimitationFlags); + Property(const osg::Vec3 &, MaxHPR); + Property(const osg::Vec3 &, MaxScale); + Property(const osg::Vec3 &, MaxTranslate); + Property(const osg::Vec3 &, MinHPR); + Property(const osg::Vec3 &, MinScale); + Property(const osg::Vec3 &, MinTranslate); + Property(const osg::Matrix &, PutMatrix); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/GNUmakefile b/src/osgWrappers/osgSim/GNUmakefile new file mode 100644 index 000000000..d55adc8a5 --- /dev/null +++ b/src/osgWrappers/osgSim/GNUmakefile @@ -0,0 +1,31 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ +BlinkSequence.cpp\ + ColorRange.cpp\ + DOFTransform.cpp\ + GeographicLocation.cpp\ + Impostor.cpp\ + ImpostorSprite.cpp\ + InsertImpostorsVisitor.cpp\ + LightPoint.cpp\ + LightPointNode.cpp\ + LightPointSystem.cpp\ + MultiSwitch.cpp\ + ScalarBar.cpp\ + ScalarsToColors.cpp\ + Sector.cpp\ + SphereSegment.cpp\ + VisibilityGroup.cpp\ + + +LIBS += -losgSim -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgSim +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgSim/GeographicLocation.cpp b/src/osgWrappers/osgSim/GeographicLocation.cpp new file mode 100644 index 000000000..a942133f2 --- /dev/null +++ b/src/osgWrappers/osgSim/GeographicLocation.cpp @@ -0,0 +1,28 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_VALUE_REFLECTOR(osgSim::GeographicLocation) + BaseType(osg::Referenced); + Constructor0(); + Constructor2(IN, double, lat, IN, double, lon); + Method0(double *, ptr); + Method0(const double *, ptr); + Method2(void, set, IN, double, lat, IN, double, lon); + Method0(double &, latitude); + Method0(double &, longitude); + Method0(double, latitude); + Method0(double, longitude); + Method0(bool, valid); + Method0(bool, isNaN); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/Impostor.cpp b/src/osgWrappers/osgSim/Impostor.cpp new file mode 100644 index 000000000..acec1cd99 --- /dev/null +++ b/src/osgWrappers/osgSim/Impostor.cpp @@ -0,0 +1,56 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >, osgSim::Impostor::ImpostorSpriteList); + +BEGIN_OBJECT_REFLECTOR(osgSim::Impostor) + BaseType(osg::LOD); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::Impostor &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, setImpostorThreshold, IN, float, distance); + Method0(float, getImpostorThreshold); + MethodWithDefaults1(void, setImpostorThresholdToBound, IN, float, ratio, 1.0f); + Method2(osgSim::ImpostorSprite *, findBestImpostorSprite, IN, unsigned int, contextID, IN, const osg::Vec3 &, currLocalEyePoint); + Method2(void, addImpostorSprite, IN, unsigned int, contextID, IN, osgSim::ImpostorSprite *, is); + Method1(osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID); + Method1(const osgSim::Impostor::ImpostorSpriteList &, getImpostorSpriteList, IN, unsigned int, contexID); + Property(float, ImpostorThreshold); + WriteOnlyProperty(float, ImpostorThresholdToBound); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgSim::ImpostorSprite >) + Constructor0(); + Constructor1(IN, osgSim::ImpostorSprite *, t); + Constructor1(IN, const osg::ref_ptr< osgSim::ImpostorSprite > &, rp); + Method0(bool, valid); + Method0(osgSim::ImpostorSprite *, get); + Method0(const osgSim::ImpostorSprite *, get); + Method0(osgSim::ImpostorSprite *, take); + Method0(osgSim::ImpostorSprite *, release); + ReadOnlyProperty(osgSim::ImpostorSprite *, ); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgSim::ImpostorSprite > >); + diff --git a/src/osgWrappers/osgSim/ImpostorSprite.cpp b/src/osgWrappers/osgSim/ImpostorSprite.cpp new file mode 100644 index 000000000..779caca8e --- /dev/null +++ b/src/osgWrappers/osgSim/ImpostorSprite.cpp @@ -0,0 +1,80 @@ +// *************************************************************************** +// +// 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 + +BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSprite) + BaseType(osg::Drawable); + Constructor0(); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setParent, IN, osgSim::Impostor *, parent); + Method0(osgSim::Impostor *, getParent); + Method0(const osgSim::Impostor *, getParent); + Method1(void, setStoredLocalEyePoint, IN, const osg::Vec3 &, v); + Method0(const osg::Vec3 &, getStoredLocalEyePoint); + Method1(void, setLastFrameUsed, IN, int, frameNumber); + Method0(int, getLastFrameUsed); + Method0(osg::Vec3 *, getCoords); + Method0(const osg::Vec3 *, getCoords); + Method0(osg::Vec2 *, getTexCoords); + Method0(const osg::Vec2 *, getTexCoords); + Method0(osg::Vec3 *, getControlCoords); + Method0(const osg::Vec3 *, getControlCoords); + Method1(float, calcPixelError, IN, const osg::Matrix &, MVPW); + Method3(void, setTexture, IN, osg::Texture2D *, tex, IN, int, s, IN, int, t); + Method0(osg::Texture2D *, getTexture); + Method0(const osg::Texture2D *, getTexture); + Method0(int, s); + Method0(int, t); + Method1(void, drawImplementation, IN, osg::State &, state); + Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); + Method1(void, accept, IN, osg::Drawable::AttributeFunctor &, af); + Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); + Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); + Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); + Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); + ReadOnlyProperty(osg::Vec3 *, ControlCoords); + ReadOnlyProperty(osg::Vec3 *, Coords); + Property(int, LastFrameUsed); + Property(osgSim::Impostor *, Parent); + Property(const osg::Vec3 &, StoredLocalEyePoint); + ReadOnlyProperty(osg::Vec2 *, TexCoords); + ReadOnlyProperty(osg::Texture2D *, Texture); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ImpostorSpriteManager) + BaseType(osg::Referenced); + Constructor0(); + Method0(bool, empty); + Method0(osgSim::ImpostorSprite *, first); + Method0(osgSim::ImpostorSprite *, last); + Method1(void, push_back, IN, osgSim::ImpostorSprite *, is); + Method1(void, remove, IN, osgSim::ImpostorSprite *, is); + Method3(osgSim::ImpostorSprite *, createOrReuseImpostorSprite, IN, int, s, IN, int, t, IN, int, frameNumber); + Method0(osg::StateSet *, createOrReuseStateSet); + Method0(void, reset); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp new file mode 100644 index 000000000..ebffeca16 --- /dev/null +++ b/src/osgWrappers/osgSim/InsertImpostorsVisitor.cpp @@ -0,0 +1,32 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgSim::InsertImpostorsVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method1(void, setImpostorThresholdRatio, IN, float, ratio); + Method0(float, getImpostorThresholdRatio); + Method1(void, setMaximumNumberOfNestedImpostors, IN, unsigned int, num); + Method0(unsigned int, getMaximumNumberOfNestedImpostors); + Method0(void, reset); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Group &, node); + Method1(void, apply, IN, osg::LOD &, node); + Method0(void, insertImpostors); + Property(float, ImpostorThresholdRatio); + Property(unsigned int, MaximumNumberOfNestedImpostors); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/LightPoint.cpp b/src/osgWrappers/osgSim/LightPoint.cpp new file mode 100644 index 000000000..7818fd541 --- /dev/null +++ b/src/osgWrappers/osgSim/LightPoint.cpp @@ -0,0 +1,29 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgSim::LightPoint::BlendingMode) + EnumLabel(osgSim::LightPoint::ADDITIVE); + EnumLabel(osgSim::LightPoint::BLENDED); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::LightPoint) + Constructor0(); + Constructor2(IN, const osg::Vec3 &, position, IN, const osg::Vec4 &, color); + 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); + Constructor1(IN, const osgSim::LightPoint &, lp); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/LightPointNode.cpp b/src/osgWrappers/osgSim/LightPointNode.cpp new file mode 100644 index 000000000..2ea18730c --- /dev/null +++ b/src/osgWrappers/osgSim/LightPointNode.cpp @@ -0,0 +1,57 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< osgSim::LightPoint >, osgSim::LightPointNode::LightPointList); + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointNode) + BaseType(osg::Node); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::LightPointNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method0(unsigned int, getNumLightPoints); + Method1(unsigned int, addLightPoint, IN, const osgSim::LightPoint &, lp); + Method1(void, removeLightPoint, IN, unsigned int, pos); + Method1(osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos); + Method1(const osgSim::LightPoint &, getLightPoint, IN, unsigned int, pos); + Method1(void, setLightPointList, IN, const osgSim::LightPointNode::LightPointList &, lpl); + Method0(osgSim::LightPointNode::LightPointList &, getLightPointList); + Method0(const osgSim::LightPointNode::LightPointList &, getLightPointList); + Method1(void, setMinPixelSize, IN, float, minPixelSize); + Method0(float, getMinPixelSize); + Method1(void, setMaxPixelSize, IN, float, maxPixelSize); + Method0(float, getMaxPixelSize); + Method1(void, setMaxVisibleDistance2, IN, float, maxVisibleDistance2); + Method0(float, getMaxVisibleDistance2); + Method1(void, setLightPointSystem, IN, osgSim::LightPointSystem *, lps); + Method0(osgSim::LightPointSystem *, getLightPointSystem); + ArrayProperty_GA(const osgSim::LightPoint &, LightPoint, LightPoints, unsigned int, unsigned int); + Property(const osgSim::LightPointNode::LightPointList &, LightPointList); + Property(osgSim::LightPointSystem *, LightPointSystem); + Property(float, MaxPixelSize); + Property(float, MaxVisibleDistance2); + Property(float, MinPixelSize); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgSim::LightPoint >); + diff --git a/src/osgWrappers/osgSim/LightPointSystem.cpp b/src/osgWrappers/osgSim/LightPointSystem.cpp new file mode 100644 index 000000000..11616cda8 --- /dev/null +++ b/src/osgWrappers/osgSim/LightPointSystem.cpp @@ -0,0 +1,38 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgSim::LightPointSystem::AnimationState) + EnumLabel(osgSim::LightPointSystem::ANIMATION_ON); + EnumLabel(osgSim::LightPointSystem::ANIMATION_OFF); + EnumLabel(osgSim::LightPointSystem::ANIMATION_RANDOM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::LightPointSystem) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::LightPointSystem &, lps, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setIntensity, IN, float, intensity); + Method0(float, getIntensity); + Method1(void, setAnimationState, IN, osgSim::LightPointSystem::AnimationState, state); + Method0(osgSim::LightPointSystem::AnimationState, getAnimationState); + Property(osgSim::LightPointSystem::AnimationState, AnimationState); + Property(float, Intensity); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/MultiSwitch.cpp b/src/osgWrappers/osgSim/MultiSwitch.cpp new file mode 100644 index 000000000..fd7e24664 --- /dev/null +++ b/src/osgWrappers/osgSim/MultiSwitch.cpp @@ -0,0 +1,62 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +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) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::MultiSwitch &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, setNewChildDefaultValue, IN, bool, value); + Method0(bool, getNewChildDefaultValue); + Method1(bool, addChild, IN, osg::Node *, child); + Method2(bool, insertChild, IN, unsigned int, index, IN, osg::Node *, child); + Method1(bool, removeChild, IN, osg::Node *, child); + Method3(void, setValue, IN, unsigned int, switchSet, IN, unsigned int, pos, IN, bool, value); + Method2(bool, getValue, IN, unsigned int, switchSet, IN, unsigned int, pos); + Method3(void, setChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet, IN, bool, value); + Method2(bool, getChildValue, IN, const osg::Node *, child, IN, unsigned int, switchSet); + Method1(bool, setAllChildrenOff, IN, unsigned int, switchSet); + Method1(bool, setAllChildrenOn, IN, unsigned int, switchSet); + Method2(bool, setSingleChildOn, IN, unsigned int, switchSet, IN, unsigned int, pos); + Method1(void, setActiveSwitchSet, IN, unsigned int, switchSet); + Method0(unsigned int, getActiveSwitchSet); + Method1(void, setSwitchSetList, IN, const osgSim::MultiSwitch::SwitchSetList &, switchSetList); + Method0(const osgSim::MultiSwitch::SwitchSetList &, getSwitchSetList); + Method2(void, setValueList, IN, unsigned int, switchSet, IN, const osgSim::MultiSwitch::ValueList &, values); + Method1(const osgSim::MultiSwitch::ValueList &, getValueList, IN, unsigned int, switchSet); + Property(unsigned int, ActiveSwitchSet); + WriteOnlyPropertyWithReturnType(unsigned int, AllChildrenOff, bool); + WriteOnlyPropertyWithReturnType(unsigned int, AllChildrenOn, bool); + IndexedProperty2(bool, ChildValue, const osg::Node *, child, unsigned int, switchSet); + Property(bool, NewChildDefaultValue); + Property(const osgSim::MultiSwitch::SwitchSetList &, SwitchSetList); + IndexedProperty2(bool, Value, unsigned int, switchSet, unsigned int, pos); + IndexedProperty1(const osgSim::MultiSwitch::ValueList &, ValueList, unsigned int, switchSet); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osgSim::MultiSwitch::ValueList >); + diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp new file mode 100644 index 000000000..c4fc6e686 --- /dev/null +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -0,0 +1,77 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) + EnumLabel(osgSim::ScalarBar::HORIZONTAL); + EnumLabel(osgSim::ScalarBar::VERTICAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) + BaseType(osg::Geode); + Constructor0(); + 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); + Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, setNumColors, IN, int, numColors); + Method0(int, getNumColors); + Method1(void, setNumLabels, IN, int, numLabels); + Method0(int, getNumLabels); + Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc); + Method0(const osgSim::ScalarsToColors *, getScalarsToColors); + Method1(void, setTitle, IN, const std::string &, title); + Method0(std::string, getTitle); + Method1(void, setPosition, IN, const osg::Vec3 &, pos); + Method0(const osg::Vec3 &, getPosition); + Method1(void, setWidth, IN, float, width); + Method0(float, getWidth); + Method1(void, setAspectRatio, IN, float, aspectRatio); + Method0(float, getAspectRatio); + Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation); + Method0(osgSim::ScalarBar::Orientation, getOrientation); + Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp); + Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter); + Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp); + Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties); + Method0(void, update); + Property(float, AspectRatio); + WriteOnlyProperty(int, NumColors); + WriteOnlyProperty(int, NumLabels); + Property(osgSim::ScalarBar::Orientation, Orientation); + Property(const osg::Vec3 &, Position); + WriteOnlyProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter); + WriteOnlyProperty(osgSim::ScalarsToColors *, ScalarsToColors); + Property(const osgSim::ScalarBar::TextProperties &, TextProperties); + ReadOnlyProperty(std::string, Title); + Property(float, Width); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) + BaseType(osg::Referenced); + Constructor0(); + Method1(std::string, printScalar, IN, float, scalar); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ScalarBar::TextProperties) + Constructor0(); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/ScalarsToColors.cpp b/src/osgWrappers/osgSim/ScalarsToColors.cpp new file mode 100644 index 000000000..3784d58e9 --- /dev/null +++ b/src/osgWrappers/osgSim/ScalarsToColors.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgSim::ScalarsToColors) + BaseType(osg::Referenced); + Constructor2(IN, float, scalarMin, IN, float, scalarMax); + Method1(osg::Vec4, getColor, IN, float, scalar); + Method0(float, getMin); + Method0(float, getMax); + ReadOnlyProperty(float, Max); + ReadOnlyProperty(float, Min); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp new file mode 100644 index 000000000..fb0c063b8 --- /dev/null +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -0,0 +1,132 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgSim::AzimElevationSector) + BaseType(osgSim::Sector); + BaseType(osgSim::AzimRange); + BaseType(osgSim::ElevationRange); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::AzimElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + ConstructorWithDefaults5(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::AzimRange) + Constructor0(); + MethodWithDefaults3(void, setAzimuthRange, IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f); + Method3(void, getAzimuthRange, IN, float &, minAzimuth, IN, float &, maxAzimuth, IN, float &, fadeAngle); + Method1(float, azimSector, IN, const osg::Vec3 &, eyeLocal); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::AzimSector) + BaseType(osgSim::Sector); + BaseType(osgSim::AzimRange); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::AzimSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + ConstructorWithDefaults3(IN, float, minAzimuth, , IN, float, maxAzimuth, , IN, float, fadeAngle, 0.0f); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ConeSector) + BaseType(osgSim::Sector); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::ConeSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + ConstructorWithDefaults3(IN, const osg::Vec3 &, axis, , IN, float, angle, , IN, float, fadeangle, 0.0f); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setAxis, IN, const osg::Vec3 &, axis); + Method0(const osg::Vec3 &, getAxis); + MethodWithDefaults2(void, setAngle, IN, float, angle, , IN, float, fadeangle, 0.0f); + Method0(float, getAngle); + Method0(float, getFadeAngle); + ReadOnlyProperty(float, Angle); + Property(const osg::Vec3 &, Axis); + ReadOnlyProperty(float, FadeAngle); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::DirectionalSector) + BaseType(osgSim::Sector); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::DirectionalSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + ConstructorWithDefaults5(IN, const osg::Vec3 &, direction, , IN, float, horizLobeAngle, , IN, float, vertLobeAngle, , IN, float, lobeRollAngle, , IN, float, fadeAngle, 0.0f); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(void, setDirection, IN, const osg::Vec3 &, direction); + Method0(const osg::Vec3 &, getDirection); + Method1(void, setHorizLobeAngle, IN, float, angle); + Method0(float, getHorizLobeAngle); + Method1(void, setLobeRollAngle, IN, float, angle); + Method0(float, getLobeRollAngle); + Method1(void, setVertLobeAngle, IN, float, angle); + Method0(float, getVertLobeAngle); + Method1(void, setFadeAngle, IN, float, angle); + Method0(float, getFadeAngle); + Method0(void, computeMatrix); + Property(const osg::Vec3 &, Direction); + Property(float, FadeAngle); + Property(float, HorizLobeAngle); + Property(float, LobeRollAngle); + Property(float, VertLobeAngle); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::ElevationRange) + Constructor0(); + MethodWithDefaults3(void, setElevationRange, IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); + Method0(float, getMinElevation); + Method0(float, getMaxElevation); + Method0(float, getFadeAngle); + Method1(float, elevationSector, IN, const osg::Vec3 &, eyeLocal); + ReadOnlyProperty(float, FadeAngle); + ReadOnlyProperty(float, MaxElevation); + ReadOnlyProperty(float, MinElevation); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) + BaseType(osgSim::Sector); + BaseType(osgSim::ElevationRange); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::ElevationSector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + ConstructorWithDefaults3(IN, float, minElevation, , IN, float, maxElevation, , IN, float, fadeAngle, 0.0f); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const char *, libraryName); + Method0(const char *, className); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/SphereSegment.cpp b/src/osgWrappers/osgSim/SphereSegment.cpp new file mode 100644 index 000000000..1b19a2e6f --- /dev/null +++ b/src/osgWrappers/osgSim/SphereSegment.cpp @@ -0,0 +1,70 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgSim::SphereSegment::DrawMask) + EnumLabel(osgSim::SphereSegment::SURFACE); + EnumLabel(osgSim::SphereSegment::SPOKES); + EnumLabel(osgSim::SphereSegment::EDGELINE); + EnumLabel(osgSim::SphereSegment::SIDES); + EnumLabel(osgSim::SphereSegment::ALL); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgSim::SphereSegment) + BaseType(osg::Geode); + Constructor0(); + Constructor7(IN, const osg::Vec3 &, centre, IN, float, radius, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax, IN, int, density); + Constructor6(IN, const osg::Vec3 &, centre, IN, float, radius, IN, const osg::Vec3 &, vec, IN, float, azRange, IN, float, elevRange, IN, int, density); + Constructor2(IN, const osgSim::SphereSegment &, rhs, IN, const osg::CopyOp &, co); + Method1(void, setCentre, IN, const osg::Vec3 &, c); + Method0(const osg::Vec3 &, getCentre); + Method1(void, setRadius, IN, float, r); + Method0(float, getRadius); + Method3(void, setArea, IN, const osg::Vec3 &, v, IN, float, azRange, IN, float, elevRange); + Method3(void, getArea, IN, osg::Vec3 &, v, IN, float &, azRange, IN, float &, elevRange); + Method4(void, setArea, IN, float, azMin, IN, float, azMax, IN, float, elevMin, IN, float, elevMax); + Method4(void, getArea, IN, float &, azMin, IN, float &, azMax, IN, float &, elevMin, IN, float &, elevMax); + Method1(void, setDensity, IN, int, d); + Method0(int, getDensity); + Method1(void, setDrawMask, IN, osgSim::SphereSegment::DrawMask, dm); + Method0(osgSim::SphereSegment::DrawMask, getDrawMask); + Method1(void, setSurfaceColor, IN, const osg::Vec4 &, c); + Method0(osg::Vec4, getSurfaceColor); + Method1(void, setSpokeColor, IN, const osg::Vec4 &, c); + Method0(osg::Vec4, getSpokeColor); + Method1(void, setEdgeLineColor, IN, const osg::Vec4 &, c); + Method0(osg::Vec4, getEdgeLineColor); + Method1(void, setSideColor, IN, const osg::Vec4 &, c); + Method0(osg::Vec4, getSideColor); + Method1(void, setAllColors, IN, const osg::Vec4 &, c); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + WriteOnlyProperty(const osg::Vec4 &, AllColors); + Property(const osg::Vec3 &, Centre); + Property(int, Density); + Property(osgSim::SphereSegment::DrawMask, DrawMask); + ReadOnlyProperty(osg::Vec4, EdgeLineColor); + Property(float, Radius); + ReadOnlyProperty(osg::Vec4, SideColor); + ReadOnlyProperty(osg::Vec4, SpokeColor); + ReadOnlyProperty(osg::Vec4, SurfaceColor); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/VisibilityGroup.cpp b/src/osgWrappers/osgSim/VisibilityGroup.cpp new file mode 100644 index 000000000..3c1b5aa97 --- /dev/null +++ b/src/osgWrappers/osgSim/VisibilityGroup.cpp @@ -0,0 +1,40 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, setVisibilityVolume, IN, osg::Node *, node); + Method0(osg::Node *, getVisibilityVolume); + Method0(const osg::Node *, getVisibilityVolume); + Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask); + Method0(osg::Node::NodeMask, getVolumeIntersectionMask); + Method1(void, setSegmentLength, IN, float, length); + Method0(float, getSegmentLength); + Property(float, SegmentLength); + Property(osg::Node *, VisibilityVolume); + Property(osg::Node::NodeMask, VolumeIntersectionMask); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/DataSet.cpp b/src/osgWrappers/osgTerrain/DataSet.cpp new file mode 100644 index 000000000..c4bd619d7 --- /dev/null +++ b/src/osgWrappers/osgTerrain/DataSet.cpp @@ -0,0 +1,486 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgTerrain::DataSet::CompositeDestination * >, osgTerrain::DataSet::Row); + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgTerrain::DataSet::Row >, osgTerrain::DataSet::Level); + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgTerrain::DataSet::Level >, osgTerrain::DataSet::QuadMap); + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeType) + EnumLabel(osgTerrain::DataSet::GROUP); + EnumLabel(osgTerrain::DataSet::LOD); + EnumLabel(osgTerrain::DataSet::PAGED_LOD); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::DatabaseType) + EnumLabel(osgTerrain::DataSet::LOD_DATABASE); + EnumLabel(osgTerrain::DataSet::PagedLOD_DATABASE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::GeometryType) + EnumLabel(osgTerrain::DataSet::HEIGHT_FIELD); + EnumLabel(osgTerrain::DataSet::POLYGONAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::TextureType) + EnumLabel(osgTerrain::DataSet::RGB_24); + EnumLabel(osgTerrain::DataSet::RGBA); + EnumLabel(osgTerrain::DataSet::RGB_16); + EnumLabel(osgTerrain::DataSet::RGBA_16); + EnumLabel(osgTerrain::DataSet::COMPRESSED_TEXTURE); + EnumLabel(osgTerrain::DataSet::COMPRESSED_RGBA_TEXTURE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::MipMappingMode) + EnumLabel(osgTerrain::DataSet::NO_MIP_MAPPING); + EnumLabel(osgTerrain::DataSet::MIP_MAPPING_HARDWARE); + EnumLabel(osgTerrain::DataSet::MIP_MAPPING_IMAGERY); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgTerrain::DataSet) + BaseType(osg::Referenced); + Method1(void, insertTileToQuadMap, IN, osgTerrain::DataSet::CompositeDestination *, tile); + Method3(osgTerrain::DataSet::DestinationTile *, getTile, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y); + Method3(osgTerrain::DataSet::CompositeDestination *, getComposite, IN, unsigned int, level, IN, unsigned int, X, IN, unsigned int, Y); + Method2(osgTerrain::DataSet::Row &, getRow, IN, unsigned int, level, IN, unsigned int, Y); + Constructor0(); + Method1(void, addSource, IN, osgTerrain::DataSet::Source *, source); + Method1(void, addSource, IN, osgTerrain::DataSet::CompositeSource *, composite); + Method0(void, loadSources); + Method1(void, setMaximumTileImageSize, IN, unsigned int, size); + Method0(unsigned int, getMaximumTileImageSize); + Method1(void, setMaximumTileTerrainSize, IN, unsigned int, size); + Method0(unsigned int, getMaximumTileTerrainSize); + Method1(void, setMaximumVisibleDistanceOfTopLevel, IN, float, d); + Method0(float, getMaximumVisibleDistanceOfTopLevel); + Method1(void, setRadiusToMaxVisibleDistanceRatio, IN, float, ratio); + Method0(float, getRadiusToMaxVisibleDistanceRatio); + Method1(void, setVerticalScale, IN, float, verticalScale); + Method0(float, getVerticalScale); + Method1(void, setSkirtRatio, IN, float, skirtRatio); + Method0(float, getSkirtRatio); + Method1(void, setDefaultColor, IN, const osg::Vec4 &, defaultColor); + Method0(const osg::Vec4 &, getDefaultColor); + Method1(void, setDestinationCoordinateSystem, IN, const std::string &, wellKnownText); + Method1(void, setDestinationCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); + Method0(osg::CoordinateSystemNode *, getDestinationCoordinateSystem); + Method1(void, setIntermediateCoordinateSystem, IN, const std::string &, wellKnownText); + Method1(void, setIntermediateCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); + Method0(osg::CoordinateSystemNode *, getIntermediateCoordinateSystem); + Method1(void, setConvertFromGeographicToGeocentric, IN, bool, flag); + Method0(bool, getConvertFromGeographicToGeocentric); + Method1(void, setEllipsoidModel, IN, osg::EllipsoidModel *, et); + Method0(osg::EllipsoidModel *, getEllipsoidModel); + Method0(const osg::EllipsoidModel *, getEllipsoidModel); + Method0(bool, mapLatLongsToXYZ); + Method1(void, setDestinationExtents, IN, const osg::BoundingBox &, extents); + Method1(void, setDestinationGeoTransform, IN, const osg::Matrixd &, geoTransform); + Method1(void, setArchiveName, IN, const std::string &, filename); + Method0(const std::string &, getArchiveName); + Method1(void, setArchive, IN, osgDB::Archive *, archive); + Method0(osgDB::Archive *, getArchive); + Method1(void, setDestinationName, IN, const std::string &, filename); + Method1(void, setDestinationTileBaseName, IN, const std::string &, basename); + Method0(const std::string &, getDestinationTileBaseName); + Method1(void, setDestinationTileExtension, IN, const std::string &, extension); + Method0(const std::string &, getDestinationTileExtension); + Method1(void, setDatabaseType, IN, osgTerrain::DataSet::DatabaseType, type); + Method0(osgTerrain::DataSet::DatabaseType, getDatabaseType); + Method1(void, setGeometryType, IN, osgTerrain::DataSet::GeometryType, type); + Method0(osgTerrain::DataSet::GeometryType, getGeometryType); + Method1(void, setTextureType, IN, osgTerrain::DataSet::TextureType, type); + Method0(osgTerrain::DataSet::TextureType, getTextureType); + Method1(void, setMaxAnisotropy, IN, float, d); + Method0(float, getMaxAnisotropy); + Method1(void, setMipMappingMode, IN, osgTerrain::DataSet::MipMappingMode, mipMappingMode); + Method0(osgTerrain::DataSet::MipMappingMode, getMipMappingMode); + Method1(void, setUseLocalTileTransform, IN, bool, flag); + Method0(bool, getUseLocalTileTransform); + Method1(void, setDecorateGeneratedSceneGraphWithCoordinateSystemNode, IN, bool, flag); + Method0(bool, getDecorateGeneratedSceneGraphWithCoordinateSystemNode); + Method1(void, setDecorateGeneratedSceneGraphWithMultiTextureControl, IN, bool, flag); + Method0(bool, getDecorateGeneratedSceneGraphWithMultiTextureControl); + Method0(unsigned int, getNumOfTextureLevels); + Method1(void, setCommentString, IN, const std::string &, comment); + Method0(const std::string &, getCommentString); + Method1(void, setWriteNodeBeforeSimplification, IN, bool, flag); + Method0(bool, getWriteNodeBeforeSimplification); + Method9(osgTerrain::DataSet::CompositeDestination *, createDestinationGraph, IN, osgTerrain::DataSet::CompositeDestination *, parent, IN, osg::CoordinateSystemNode *, cs, IN, const osg::BoundingBox &, extents, IN, unsigned int, maxImageSize, IN, unsigned int, maxTerrainSize, IN, unsigned int, currentLevel, IN, unsigned int, currentX, IN, unsigned int, currentY, IN, unsigned int, maxNumLevels); + Method1(void, computeDestinationGraphFromSources, IN, unsigned int, numLevels); + Method0(void, updateSourcesForDestinationGraphNeeds); + Method0(void, populateDestinationGraphFromSources); + Method1(void, createDestination, IN, unsigned int, numLevels); + Method0(void, buildDestination); + Method0(void, writeDestination); + Method0(osg::Node *, getDestinationRootNode); + Method2(void, _writeNodeFile, IN, const osg::Node &, node, IN, const std::string &, filename); + Method2(void, _writeImageFile, IN, const osg::Image &, image, IN, const std::string &, filename); + Property(osgDB::Archive *, Archive); + Property(const std::string &, ArchiveName); + Property(const std::string &, CommentString); + Property(bool, ConvertFromGeographicToGeocentric); + Property(osgTerrain::DataSet::DatabaseType, DatabaseType); + Property(bool, DecorateGeneratedSceneGraphWithCoordinateSystemNode); + Property(bool, DecorateGeneratedSceneGraphWithMultiTextureControl); + Property(const osg::Vec4 &, DefaultColor); + Property(osg::CoordinateSystemNode *, DestinationCoordinateSystem); + WriteOnlyProperty(const osg::BoundingBox &, DestinationExtents); + WriteOnlyProperty(const osg::Matrixd &, DestinationGeoTransform); + WriteOnlyProperty(const std::string &, DestinationName); + ReadOnlyProperty(osg::Node *, DestinationRootNode); + Property(const std::string &, DestinationTileBaseName); + Property(const std::string &, DestinationTileExtension); + Property(osg::EllipsoidModel *, EllipsoidModel); + Property(osgTerrain::DataSet::GeometryType, GeometryType); + Property(osg::CoordinateSystemNode *, IntermediateCoordinateSystem); + Property(float, MaxAnisotropy); + Property(unsigned int, MaximumTileImageSize); + Property(unsigned int, MaximumTileTerrainSize); + Property(float, MaximumVisibleDistanceOfTopLevel); + Property(osgTerrain::DataSet::MipMappingMode, MipMappingMode); + Property(float, RadiusToMaxVisibleDistanceRatio); + Property(float, SkirtRatio); + Property(osgTerrain::DataSet::TextureType, TextureType); + Property(bool, UseLocalTileTransform); + Property(float, VerticalScale); + Property(bool, WriteNodeBeforeSimplification); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile > >, osgTerrain::DataSet::CompositeDestination::TileList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > >, osgTerrain::DataSet::CompositeDestination::ChildList); + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeDestination) + BaseType(osg::Referenced); + BaseType(osgTerrain::DataSet::SpatialProperties); + Constructor0(); + Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osg::BoundingBox &, extents); + Method0(void, computeNeighboursFromQuadMap); + Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); + Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); + Method0(void, equalizeBoundaries); + Method0(osg::Node *, createScene); + Method0(bool, areSubTilesComplete); + Method0(std::string, getSubTileName); + Method0(osg::Node *, createPagedLODScene); + Method0(osg::Node *, createSubTileScene); + Method0(void, unrefSubTileData); + Method0(void, unrefLocalData); + Method1(void, setSubTilesGenerated, IN, bool, generated); + Method0(bool, getSubTilesGenerated); + ReadOnlyProperty(std::string, SubTileName); + Property(bool, SubTilesGenerated); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::Source > >, osgTerrain::DataSet::CompositeSource::SourceList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeSource > >, osgTerrain::DataSet::CompositeSource::ChildList); + +TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer >, osgTerrain::DataSet::CompositeSource::source_iterator); + +TYPE_NAME_ALIAS(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer >, osgTerrain::DataSet::CompositeSource::source_lod_iterator); + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource) + BaseType(osg::Referenced); + BaseType(osgTerrain::DataSet::SpatialProperties); + ConstructorWithDefaults1(IN, osgTerrain::DataSet::CompositeType, type, osgTerrain::DataSet::GROUP); + Method1(void, setType, IN, osgTerrain::DataSet::CompositeType, type); + Method0(osgTerrain::DataSet::CompositeType, getType); + Method0(void, setSortValueFromSourceDataResolution); + Method0(void, sort); + Property(osgTerrain::DataSet::CompositeType, Type); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer) + Constructor0(); + Method2(bool, isActive, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int, index); + Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator::IteratorMode) + EnumLabel(osgTerrain::DataSet::CompositeSource::iterator::ACTIVE); + EnumLabel(osgTerrain::DataSet::CompositeSource::iterator::ALL); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::iterator) + ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::iterator::IteratorMode, mode, osgTerrain::DataSet::CompositeSource::iterator::ALL); + Constructor1(IN, const osgTerrain::DataSet::CompositeSource::iterator &, rhs); + Method0(bool, valid); + Method0(bool, advance); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::LODSourceAdvancer) + ConstructorWithDefaults1(IN, float, targetResolution, 0.0f); + Method2(bool, advanceToNextSource, IN, const osgTerrain::DataSet::CompositeSource &, composite, IN, int &, index); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Image > >, osgTerrain::DataSet::DestinationData::ImageList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osg::Node > >, osgTerrain::DataSet::DestinationData::ModelList); + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationData) + BaseType(osg::Referenced); + Constructor1(IN, osgTerrain::DataSet *, dataSet); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::DestinationTile::Position) + EnumLabel(osgTerrain::DataSet::DestinationTile::LEFT); + EnumLabel(osgTerrain::DataSet::DestinationTile::LEFT_BELOW); + EnumLabel(osgTerrain::DataSet::DestinationTile::BELOW); + EnumLabel(osgTerrain::DataSet::DestinationTile::BELOW_RIGHT); + EnumLabel(osgTerrain::DataSet::DestinationTile::RIGHT); + EnumLabel(osgTerrain::DataSet::DestinationTile::RIGHT_ABOVE); + EnumLabel(osgTerrain::DataSet::DestinationTile::ABOVE); + EnumLabel(osgTerrain::DataSet::DestinationTile::ABOVE_LEFT); + EnumLabel(osgTerrain::DataSet::DestinationTile::NUMBER_OF_POSITIONS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationTile) + BaseType(osg::Referenced); + BaseType(osgTerrain::DataSet::SpatialProperties); + Constructor0(); + Method0(void, computeNeighboursFromQuadMap); + Method8(void, setNeighbours, IN, osgTerrain::DataSet::DestinationTile *, left, IN, osgTerrain::DataSet::DestinationTile *, left_below, IN, osgTerrain::DataSet::DestinationTile *, below, IN, osgTerrain::DataSet::DestinationTile *, below_right, IN, osgTerrain::DataSet::DestinationTile *, right, IN, osgTerrain::DataSet::DestinationTile *, right_above, IN, osgTerrain::DataSet::DestinationTile *, above, IN, osgTerrain::DataSet::DestinationTile *, above_left); + Method0(void, checkNeighbouringTiles); + Method2(void, setMaximumImagerySize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows); + Method2(void, setMaximumTerrainSize, IN, unsigned int, maxNumColumns, IN, unsigned int, maxNumRows); + Method1(void, computeMaximumSourceResolution, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); + Method5(bool, computeImageResolution, IN, unsigned int, layer, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY); + Method4(bool, computeTerrainResolution, IN, unsigned int &, numColumns, IN, unsigned int &, numRows, IN, double &, resX, IN, double &, resY); + Method0(void, allocate); + Method1(void, addRequiredResolutions, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); + Method1(void, readFrom, IN, osgTerrain::DataSet::CompositeSource *, sourceGraph); + Method1(void, equalizeCorner, IN, osgTerrain::DataSet::DestinationTile::Position, position); + Method1(void, equalizeEdge, IN, osgTerrain::DataSet::DestinationTile::Position, position); + Method0(void, equalizeBoundaries); + Method1(void, setTileComplete, IN, bool, complete); + Method0(bool, getTileComplete); + Method0(void, optimizeResolution); + Method0(osg::Node *, createScene); + Method0(osg::StateSet *, createStateSet); + Method0(osg::Node *, createHeightField); + Method0(osg::Node *, createPolygonal); + Method0(void, unrefData); + Method1(osgTerrain::DataSet::DestinationTile::ImageData &, getImageData, IN, unsigned int, layer); + Property(bool, TileComplete); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::DestinationTile::ImageData) + Constructor0(); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgTerrain::DataSet::Source::ResolutionPair >, osgTerrain::DataSet::Source::ResolutionList); + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::Source::Type) + EnumLabel(osgTerrain::DataSet::Source::IMAGE); + EnumLabel(osgTerrain::DataSet::Source::HEIGHT_FIELD); + EnumLabel(osgTerrain::DataSet::Source::MODEL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgTerrain::DataSet::Source::ParameterPolicy) + EnumLabel(osgTerrain::DataSet::Source::PREFER_CONFIG_SETTINGS); + EnumLabel(osgTerrain::DataSet::Source::PREFER_CONFIG_SETTINGS_BUT_SCALE_BY_FILE_RESOLUTION); + EnumLabel(osgTerrain::DataSet::Source::PREFER_FILE_SETTINGS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::Source) + BaseType(osg::Referenced); + BaseType(osgTerrain::DataSet::SpatialProperties); + Constructor0(); + Constructor2(IN, osgTerrain::DataSet::Source::Type, type, IN, const std::string &, filename); + Method1(void, setSortValue, IN, double, s); + Method0(double, getSortValue); + Method0(void, setSortValueFromSourceDataResolution); + Method1(void, setType, IN, osgTerrain::DataSet::Source::Type, type); + Method0(osgTerrain::DataSet::Source::Type, getType); + Method1(void, setFileName, IN, const std::string &, filename); + Method0(const std::string &, getFileName); + Method1(void, setTemporaryFile, IN, bool, temporaryFile); + Method0(bool, getTemporaryFile); + Method1(void, setCoordinateSystemPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy); + Method0(osgTerrain::DataSet::Source::ParameterPolicy, getCoordinateSystemPolicy); + Method1(void, setCoordinateSystem, IN, const std::string &, wellKnownText); + Method1(void, setCoordinateSystem, IN, osg::CoordinateSystemNode *, cs); + Method0(osg::CoordinateSystemNode *, getCoordinateSystem); + Method1(void, setGeoTransformPolicy, IN, osgTerrain::DataSet::Source::ParameterPolicy, policy); + Method0(osgTerrain::DataSet::Source::ParameterPolicy, getGeoTransformPolicy); + Method1(void, setGeoTransform, IN, osg::Matrixd &, transform); + Method0(osg::Matrixd &, getGeoTransform); + Method4(void, setGeoTransformFromRange, IN, double, xMin, IN, double, xMax, IN, double, yMin, IN, double, yMax); + Method0(void, assignCoordinateSystemAndGeoTransformAccordingToParameterPolicy); + Method1(void, setMinLevel, IN, unsigned int, minLevel); + Method1(void, setMaxLevel, IN, unsigned int, maxLevel); + Method2(void, setMinMaxLevel, IN, unsigned int, minLevel, IN, unsigned int, maxLevel); + Method0(unsigned int, getMinLevel); + Method0(unsigned int, getMaxLevel); + Method1(void, setLayer, IN, unsigned int, layer); + Method0(unsigned int, getLayer); + Method1(void, setSourceData, IN, osgTerrain::DataSet::SourceData *, data); + Method0(osgTerrain::DataSet::SourceData *, getSourceData); + Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp); + Method0(void, loadSourceData); + Method1(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs); + Method3(bool, needReproject, IN, const osg::CoordinateSystemNode *, cs, IN, double, minResolution, IN, double, maxResolution); + MethodWithDefaults3(osgTerrain::DataSet::Source *, doReproject, IN, const std::string &, filename, , IN, osg::CoordinateSystemNode *, cs, , IN, double, targetResolution, 0.0); + Method0(void, buildOverviews); + Method2(void, addRequiredResolution, IN, double, resX, IN, double, resY); + Method1(void, setRequiredResolutions, IN, osgTerrain::DataSet::Source::ResolutionList &, resolutions); + Method0(osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions); + Method0(const osgTerrain::DataSet::Source::ResolutionList &, getRequiredResolutions); + Method0(void, consolodateRequiredResolutions); + Property(osg::CoordinateSystemNode *, CoordinateSystem); + Property(osgTerrain::DataSet::Source::ParameterPolicy, CoordinateSystemPolicy); + Property(const std::string &, FileName); + Property(osg::Matrixd &, GeoTransform); + Property(osgTerrain::DataSet::Source::ParameterPolicy, GeoTransformPolicy); + Property(unsigned int, Layer); + Property(unsigned int, MaxLevel); + Property(unsigned int, MinLevel); + Property(osgTerrain::DataSet::Source::ResolutionList &, RequiredResolutions); + Property(double, SortValue); + Property(osgTerrain::DataSet::SourceData *, SourceData); + Property(bool, TemporaryFile); + Property(osgTerrain::DataSet::Source::Type, Type); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::Source::ResolutionPair) + Constructor0(); + Constructor2(IN, double, x, IN, double, y); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >, osgTerrain::DataSet::SourceData::SpatialPropertiesMap); + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SourceData) + BaseType(osg::Referenced); + BaseType(osgTerrain::DataSet::SpatialProperties); + ConstructorWithDefaults1(IN, osgTerrain::DataSet::Source *, source, 0); + Method1(osg::BoundingBox, getExtents, IN, const osg::CoordinateSystemNode *, cs); + Method1(const osgTerrain::DataSet::SpatialProperties &, computeSpatialProperties, IN, const osg::CoordinateSystemNode *, cs); + Method1(bool, intersects, IN, const osgTerrain::DataSet::SpatialProperties &, sp); + Method1(void, read, IN, osgTerrain::DataSet::DestinationData &, destination); + Method1(void, readImage, IN, osgTerrain::DataSet::DestinationData &, destination); + Method1(void, readHeightField, IN, osgTerrain::DataSet::DestinationData &, destination); + Method1(void, readModels, IN, osgTerrain::DataSet::DestinationData &, destination); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::SpatialProperties) + Constructor0(); + Constructor1(IN, const osgTerrain::DataSet::SpatialProperties &, sp); + Constructor2(IN, osg::CoordinateSystemNode *, cs, IN, const osg::BoundingBox &, extents); + Method1(osgTerrain::DataSet::SpatialProperties &, assignSpatialProperties, IN, const osgTerrain::DataSet::SpatialProperties &, sp); + Method0(void, computeExtents); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::Image >) + Constructor0(); + Constructor1(IN, osg::Image *, t); + Constructor1(IN, const osg::ref_ptr< osg::Image > &, rp); + Method0(bool, valid); + Method0(osg::Image *, get); + Method0(const osg::Image *, get); + Method0(osg::Image *, take); + Method0(osg::Image *, release); + ReadOnlyProperty(osg::Image *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeDestination >) + Constructor0(); + Constructor1(IN, osgTerrain::DataSet::CompositeDestination *, t); + Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > &, rp); + Method0(bool, valid); + Method0(osgTerrain::DataSet::CompositeDestination *, get); + Method0(const osgTerrain::DataSet::CompositeDestination *, get); + Method0(osgTerrain::DataSet::CompositeDestination *, take); + Method0(osgTerrain::DataSet::CompositeDestination *, release); + ReadOnlyProperty(osgTerrain::DataSet::CompositeDestination *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::CompositeSource >) + Constructor0(); + Constructor1(IN, osgTerrain::DataSet::CompositeSource *, t); + Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::CompositeSource > &, rp); + Method0(bool, valid); + Method0(osgTerrain::DataSet::CompositeSource *, get); + Method0(const osgTerrain::DataSet::CompositeSource *, get); + Method0(osgTerrain::DataSet::CompositeSource *, take); + Method0(osgTerrain::DataSet::CompositeSource *, release); + ReadOnlyProperty(osgTerrain::DataSet::CompositeSource *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::DestinationTile >) + Constructor0(); + Constructor1(IN, osgTerrain::DataSet::DestinationTile *, t); + Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::DestinationTile > &, rp); + Method0(bool, valid); + Method0(osgTerrain::DataSet::DestinationTile *, get); + Method0(const osgTerrain::DataSet::DestinationTile *, get); + Method0(osgTerrain::DataSet::DestinationTile *, take); + Method0(osgTerrain::DataSet::DestinationTile *, release); + ReadOnlyProperty(osgTerrain::DataSet::DestinationTile *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgTerrain::DataSet::Source >) + Constructor0(); + Constructor1(IN, osgTerrain::DataSet::Source *, t); + Constructor1(IN, const osg::ref_ptr< osgTerrain::DataSet::Source > &, rp); + Method0(bool, valid); + Method0(osgTerrain::DataSet::Source *, get); + Method0(const osgTerrain::DataSet::Source *, get); + Method0(osgTerrain::DataSet::Source *, take); + Method0(osgTerrain::DataSet::Source *, release); + ReadOnlyProperty(osgTerrain::DataSet::Source *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer >) + ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer()); + Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::DefaultSourceAdvancer > &, rhs); + Method0(bool, valid); + Method0(bool, advance); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer >) + ConstructorWithDefaults2(IN, osgTerrain::DataSet::CompositeSource *, composite, 0, IN, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer, advancer, osgTerrain::DataSet::CompositeSource::LODSourceAdvancer()); + Constructor1(IN, const osgTerrain::DataSet::CompositeSource::base_source_iterator< osgTerrain::DataSet::CompositeSource::LODSourceAdvancer > &, rhs); + Method0(bool, valid); + Method0(bool, advance); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< const osg::CoordinateSystemNode * COMMA osgTerrain::DataSet::SpatialProperties >); + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::CompositeDestination * >); + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::Level >); + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgTerrain::DataSet::Row >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osg::Image > >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeDestination > >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::CompositeSource > >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::DestinationTile > >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgTerrain::DataSet::Source > >); + +STD_VECTOR_REFLECTOR(std::vector< osgTerrain::DataSet::Source::ResolutionPair >); + diff --git a/src/osgWrappers/osgTerrain/GNUmakefile b/src/osgWrappers/osgTerrain/GNUmakefile new file mode 100644 index 000000000..fac291bf1 --- /dev/null +++ b/src/osgWrappers/osgTerrain/GNUmakefile @@ -0,0 +1,18 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + DataSet.cpp\ + HeightFieldNode.cpp\ + HeightFieldRenderer.cpp\ + + +LIBS += -losgTerrain -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgTerrain +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgTerrain/HeightFieldNode.cpp b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp new file mode 100644 index 000000000..893316c5a --- /dev/null +++ b/src/osgWrappers/osgTerrain/HeightFieldNode.cpp @@ -0,0 +1,58 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgTerrain::HeightFieldNode) + BaseType(osg::Group); + Constructor0(); + ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldNode &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method1(void, accept, IN, osg::NodeVisitor &, nv); + Method1(void, traverse, IN, osg::NodeVisitor &, nv); + Method1(void, setHeightField, IN, osg::HeightField *, heightField); + Method0(osg::HeightField *, getHeightField); + Method0(const osg::HeightField *, getHeightField); + Method0(void, heightFieldHasBeenModified); + Method1(void, setRenderer, IN, osgTerrain::HeightFieldRenderer *, renderer); + Method0(osgTerrain::HeightFieldRenderer *, getRenderer); + Method0(const osgTerrain::HeightFieldRenderer *, getRenderer); + Method1(void, setBaseTextureImage, IN, osg::Image *, image); + Method0(osg::Image *, getBaseTextureImage); + Method0(const osg::Image *, getBaseTextureImage); + Method1(void, setDetailTextureImage, IN, osg::Image *, image); + Method0(osg::Image *, getDetailTextureImage); + Method0(const osg::Image *, getDetailTextureImage); + Method1(void, setCloudShadowTextureImage, IN, osg::Image *, image); + Method0(osg::Image *, getCloudShadowTextureImage); + Method0(const osg::Image *, getCloudShadowTextureImage); + Method1(void, setNormalMapImage, IN, osg::Image *, image); + Method0(osg::Image *, getNormalMapImage); + Method0(const osg::Image *, getNormalMapImage); + Method0(void, computeNormalMap); + Property(osg::Image *, BaseTextureImage); + Property(osg::Image *, CloudShadowTextureImage); + Property(osg::Image *, DetailTextureImage); + Property(osg::HeightField *, HeightField); + Property(osg::Image *, NormalMapImage); + Property(osgTerrain::HeightFieldRenderer *, Renderer); +END_REFLECTOR + diff --git a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp new file mode 100644 index 000000000..459fbb0cb --- /dev/null +++ b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp @@ -0,0 +1,30 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgTerrain::HeightFieldRenderer) + BaseType(osg::Object); + Constructor0(); + ConstructorWithDefaults2(IN, const osgTerrain::HeightFieldRenderer &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osgTerrain::HeightFieldNode *, getHeightFieldNode); + Method0(const osgTerrain::HeightFieldNode *, getHeightFieldNode); + Method0(void, initialize); + Method0(void, heightFieldHasBeenModified); + Method1(void, update, IN, osgUtil::UpdateVisitor *, nv); + Method1(void, cull, IN, osgUtil::CullVisitor *, nv); + ReadOnlyProperty(osgTerrain::HeightFieldNode *, HeightFieldNode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgText/Export.cpp b/src/osgWrappers/osgText/Export.cpp new file mode 100644 index 000000000..ffce0be5e --- /dev/null +++ b/src/osgWrappers/osgText/Export.cpp @@ -0,0 +1,13 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + diff --git a/src/osgWrappers/osgText/Font.cpp b/src/osgWrappers/osgText/Font.cpp new file mode 100644 index 000000000..3fb5f1c33 --- /dev/null +++ b/src/osgWrappers/osgText/Font.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 +#include + +BEGIN_OBJECT_REFLECTOR(osgText::Font) + BaseType(osg::Object); + ConstructorWithDefaults1(IN, osgText::Font::FontImplementation *, implementation, 0); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + Method0(std::string, getFileName); + Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); + Method0(unsigned int, getFontWidth); + Method0(unsigned int, getFontHeight); + Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, KerningType, kerningType); + Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode); + Method0(bool, hasVertical); + Method1(void, setGlyphImageMargin, IN, unsigned int, margin); + Method0(unsigned int, getGlyphImageMargin); + Method2(void, setTextureSizeHint, IN, unsigned int, width, IN, unsigned int, height); + Method0(unsigned int, getTextureWidthHint); + Method0(unsigned int, getTextureHeightHint); + Method1(void, setMinFilterHint, IN, osg::Texture::FilterMode, mode); + Method0(osg::Texture::FilterMode, getMinFilterHint); + Method1(void, setMagFilterHint, IN, osg::Texture::FilterMode, mode); + Method0(osg::Texture::FilterMode, getMagFilterHint); + Method1(void, setImplementation, IN, osgText::Font::FontImplementation *, implementation); + Method0(osgText::Font::FontImplementation *, getImplementation); + Method0(const osgText::Font::FontImplementation *, getImplementation); + MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); + ReadOnlyProperty(std::string, FileName); + ReadOnlyProperty(unsigned int, FontHeight); + ReadOnlyProperty(unsigned int, FontWidth); + Property(unsigned int, GlyphImageMargin); + Property(osgText::Font::FontImplementation *, Implementation); + Property(osg::Texture::FilterMode, MagFilterHint); + Property(osg::Texture::FilterMode, MinFilterHint); + ReadOnlyProperty(unsigned int, TextureHeightHint); + ReadOnlyProperty(unsigned int, TextureWidthHint); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::FontImplementation) + BaseType(osg::Referenced); + Constructor0(); + Method0(std::string, getFileName); + Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); + Method1(osgText::Font::Glyph *, getGlyph, IN, unsigned int, charcode); + Method3(osg::Vec2, getKerning, IN, unsigned int, leftcharcode, IN, unsigned int, rightcharcode, IN, KerningType, kerningType); + Method0(bool, hasVertical); + Method1(void, setFontWidth, IN, unsigned int, width); + Method1(void, setFontHeight, IN, unsigned int, height); + Method4(void, addGlyph, IN, unsigned int, width, IN, unsigned int, height, IN, unsigned int, charcode, IN, osgText::Font::Glyph *, glyph); + ReadOnlyProperty(std::string, FileName); + WriteOnlyProperty(unsigned int, FontHeight); + WriteOnlyProperty(unsigned int, FontWidth); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Font::Glyph) + BaseType(osg::Image); + Constructor0(); + Method0(unsigned int, getGlyphCode); + Method1(void, setHorizontalBearing, IN, const osg::Vec2 &, bearing); + Method0(const osg::Vec2 &, getHorizontalBearing); + Method1(void, setHorizontalAdvance, IN, float, advance); + Method0(float, getHorizontalAdvance); + Method1(void, setVerticalBearing, IN, const osg::Vec2 &, bearing); + Method0(const osg::Vec2 &, getVerticalBearing); + Method1(void, setVerticalAdvance, IN, float, advance); + Method0(float, getVerticalAdvance); + Method1(void, setTexture, IN, osgText::Font::GlyphTexture *, texture); + Method0(osgText::Font::GlyphTexture *, getTexture); + Method0(const osgText::Font::GlyphTexture *, getTexture); + Method0(osg::StateSet *, getStateSet); + Method0(const osg::StateSet *, getStateSet); + Method2(void, setTexturePosition, IN, int, posX, IN, int, posY); + Method0(int, getTexturePositionX); + Method0(int, getTexturePositionY); + Method1(void, setMinTexCoord, IN, const osg::Vec2 &, coord); + Method0(const osg::Vec2 &, getMinTexCoord); + Method1(void, setMaxTexCoord, IN, const osg::Vec2 &, coord); + Method0(const osg::Vec2 &, getMaxTexCoord); + Method0(void, subload); + Method1(void, draw, IN, osg::State &, state); + ReadOnlyProperty(unsigned int, GlyphCode); + Property(float, HorizontalAdvance); + Property(const osg::Vec2 &, HorizontalBearing); + Property(const osg::Vec2 &, MaxTexCoord); + Property(const osg::Vec2 &, MinTexCoord); + ReadOnlyProperty(osg::StateSet *, StateSet); + Property(osgText::Font::GlyphTexture *, Texture); + ReadOnlyProperty(int, TexturePositionX); + ReadOnlyProperty(int, TexturePositionY); + Property(float, VerticalAdvance); + Property(const osg::Vec2 &, VerticalBearing); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgText::Font::GlyphTexture) + BaseType(osg::Texture2D); + Constructor0(); + Method0(const char *, className); + Method1(int, compare, IN, const osg::StateAttribute &, rhs); + Method1(void, setStateSet, IN, osg::StateSet *, stateset); + Method0(osg::StateSet *, getStateSet); + Method0(const osg::StateSet *, getStateSet); + Method1(void, setGlyphImageMargin, IN, unsigned int, margin); + Method0(unsigned int, getGlyphImageMargin); + Method3(bool, getSpaceForGlyph, IN, osgText::Font::Glyph *, glyph, IN, int &, posX, IN, int &, posY); + Method3(void, addGlyph, IN, osgText::Font::Glyph *, glyph, IN, int, posX, IN, int, posY); + Method1(void, apply, IN, osg::State &, state); + Property(unsigned int, GlyphImageMargin); + Property(osg::StateSet *, StateSet); +END_REFLECTOR + diff --git a/src/osgWrappers/osgText/GNUmakefile b/src/osgWrappers/osgText/GNUmakefile new file mode 100644 index 000000000..4450bcf68 --- /dev/null +++ b/src/osgWrappers/osgText/GNUmakefile @@ -0,0 +1,18 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + Export.cpp\ + Font.cpp\ + String.cpp\ + Text.cpp\ + +LIBS += -losgText -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgText +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp new file mode 100644 index 000000000..8a6430a6d --- /dev/null +++ b/src/osgWrappers/osgText/String.cpp @@ -0,0 +1,42 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include + +BEGIN_ENUM_REFLECTOR(osgText::String::Encoding) + EnumLabel(osgText::String::ENCODING_UNDEFINED); + EnumLabel(osgText::String::ENCODING_ASCII); + EnumLabel(osgText::String::ENCODING_UTF8); + EnumLabel(osgText::String::ENCODING_UTF16); + EnumLabel(osgText::String::ENCODING_UTF16_BE); + EnumLabel(osgText::String::ENCODING_UTF16_LE); + EnumLabel(osgText::String::ENCODING_UTF32); + EnumLabel(osgText::String::ENCODING_UTF32_BE); + EnumLabel(osgText::String::ENCODING_UTF32_LE); + EnumLabel(osgText::String::ENCODING_SIGNATURE); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgText::String) + BaseType(osg::Referenced); + Constructor0(); + Constructor1(IN, const osgText::String &, str); + Constructor1(IN, const std::string &, str); + Constructor1(IN, const wchar_t *, text); + Constructor2(IN, const std::string &, text, IN, osgText::String::Encoding, encoding); + Method1(void, set, IN, const std::string &, str); + Method1(void, set, IN, const wchar_t *, text); + Method2(void, set, IN, const std::string &, text, IN, osgText::String::Encoding, encoding); + Method0(std::string, createUTF8EncodedString); + WriteOnlyProperty(const wchar_t *, ); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::VectorUInt); + diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp new file mode 100644 index 000000000..3c837e02e --- /dev/null +++ b/src/osgWrappers/osgText/Text.cpp @@ -0,0 +1,182 @@ +// *************************************************************************** +// +// 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 + +TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osg::StateSet > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap); + +BEGIN_ENUM_REFLECTOR(osgText::Text::CharacterSizeMode) + EnumLabel(osgText::Text::OBJECT_COORDS); + EnumLabel(osgText::Text::SCREEN_COORDS); + EnumLabel(osgText::Text::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::AlignmentType) + EnumLabel(osgText::Text::LEFT_TOP); + EnumLabel(osgText::Text::LEFT_CENTER); + EnumLabel(osgText::Text::LEFT_BOTTOM); + EnumLabel(osgText::Text::CENTER_TOP); + EnumLabel(osgText::Text::CENTER_CENTER); + EnumLabel(osgText::Text::CENTER_BOTTOM); + EnumLabel(osgText::Text::RIGHT_TOP); + EnumLabel(osgText::Text::RIGHT_CENTER); + EnumLabel(osgText::Text::RIGHT_BOTTOM); + EnumLabel(osgText::Text::LEFT_BASE_LINE); + EnumLabel(osgText::Text::CENTER_BASE_LINE); + EnumLabel(osgText::Text::RIGHT_BASE_LINE); + EnumLabel(osgText::Text::BASE_LINE); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::AxisAlignment) + EnumLabel(osgText::Text::XY_PLANE); + EnumLabel(osgText::Text::REVERSED_XY_PLANE); + EnumLabel(osgText::Text::XZ_PLANE); + EnumLabel(osgText::Text::REVERSED_XZ_PLANE); + EnumLabel(osgText::Text::YZ_PLANE); + EnumLabel(osgText::Text::REVERSED_YZ_PLANE); + EnumLabel(osgText::Text::SCREEN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::Layout) + EnumLabel(osgText::Text::LEFT_TO_RIGHT); + EnumLabel(osgText::Text::RIGHT_TO_LEFT); + EnumLabel(osgText::Text::VERTICAL); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgText::Text::DrawModeMask) + EnumLabel(osgText::Text::TEXT); + EnumLabel(osgText::Text::BOUNDINGBOX); + EnumLabel(osgText::Text::ALIGNMENT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgText::Text) + BaseType(osg::Drawable); + Constructor0(); + ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(const char *, libraryName); + MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0); + Method1(void, setFont, IN, const std::string &, fontfile); + Method0(const osgText::Font *, getFont); + Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height); + Method0(unsigned int, getFontWidth); + Method0(unsigned int, getFontHeight); + Method1(void, setText, IN, const osgText::String &, text); + Method1(void, setText, IN, const std::string &, text); + Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding); + Method1(void, setText, IN, const wchar_t *, text); + Method0(osgText::String &, getText); + Method0(const osgText::String &, getText); + Method0(void, update); + MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f); + Method0(float, getCharacterHeight); + Method0(float, getCharacterAspectRatio); + Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode); + Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode); + Method1(void, setMaximumWidth, IN, float, maximumWidth); + Method0(float, getMaximumWidth); + Method1(void, setMaximumHeight, IN, float, maximumHeight); + Method0(float, getMaximumHeight); + Method1(void, setPosition, IN, const osg::Vec3 &, pos); + Method0(const osg::Vec3 &, getPosition); + Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment); + Method0(osgText::Text::AlignmentType, getAlignment); + Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis); + Method1(void, setRotation, IN, const osg::Quat &, quat); + Method0(const osg::Quat &, getRotation); + Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen); + Method0(bool, getAutoRotateToScreen); + Method1(void, setLayout, IN, osgText::Text::Layout, layout); + Method0(osgText::Text::Layout, getLayout); + Method1(void, setColor, IN, const osg::Vec4 &, color); + Method0(const osg::Vec4 &, getColor); + Method1(void, setDrawMode, IN, unsigned int, mode); + Method0(unsigned int, getDrawMode); + Method1(void, setKerningType, IN, KerningType, kerningType); + Method0(KerningType, getKerningType); + Method1(void, drawImplementation, IN, osg::State &, state); + Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x); + Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x); + Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af); + Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x); + Method1(void, accept, IN, osg::PrimitiveFunctor &, pf); + MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0); + Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osg::StateSet *, stateSet); + Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap); + Property(osgText::Text::AlignmentType, Alignment); + Property(bool, AutoRotateToScreen); + WriteOnlyProperty(osgText::Text::AxisAlignment, AxisAlignment); + ReadOnlyProperty(float, CharacterAspectRatio); + ReadOnlyProperty(float, CharacterHeight); + Property(osgText::Text::CharacterSizeMode, CharacterSizeMode); + Property(const osg::Vec4 &, Color); + Property(unsigned int, DrawMode); + WriteOnlyProperty(osgText::Font *, Font); + ReadOnlyProperty(unsigned int, FontHeight); + ReadOnlyProperty(unsigned int, FontWidth); + Property(KerningType, KerningType); + Property(osgText::Text::Layout, Layout); + Property(float, MaximumHeight); + Property(float, MaximumWidth); + Property(const osg::Vec3 &, Position); + Property(const osg::Quat &, Rotation); + Property(const osgText::String &, Text); + ReadOnlyProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap); +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); + +BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) + Constructor0(); + Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs); + Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs); + Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords); + Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords); + Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID); + Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID); + Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords); + Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords); + Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers); + Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers); + ReadOnlyProperty(osgText::Text::GlyphQuads::Coords2 &, Coords); + ReadOnlyProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs); + ReadOnlyProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers); + ReadOnlyProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osg::StateSet > COMMA osgText::Text::GlyphQuads >); + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec2 >); + +STD_VECTOR_REFLECTOR(std::vector< osgText::Font::Glyph * >); + diff --git a/src/osgWrappers/osgUtil/CubeMapGenerator.cpp b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp new file mode 100644 index 000000000..bd5e9142a --- /dev/null +++ b/src/osgWrappers/osgUtil/CubeMapGenerator.cpp @@ -0,0 +1,25 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::CubeMapGenerator) + BaseType(osg::Referenced); + ConstructorWithDefaults1(IN, int, texture_size, 64); + ConstructorWithDefaults2(IN, const osgUtil::CubeMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method1(osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face); + Method1(const osg::Image *, getImage, IN, osg::TextureCubeMap::Face, face); + MethodWithDefaults1(void, generateMap, IN, bool, use_osg_system, true); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp new file mode 100644 index 000000000..38ce6a557 --- /dev/null +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -0,0 +1,104 @@ +// *************************************************************************** +// +// 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 + +TYPE_NAME_ALIAS(osg::Matrix::value_type, osgUtil::CullVisitor::value_type); + +BEGIN_VALUE_REFLECTOR(osgUtil::CullVisitor) + BaseType(osg::NodeVisitor); + BaseType(osg::CullStack); + Constructor0(); + Method0(osgUtil::CullVisitor *, cloneType); + Method0(void, reset); + Method0(osg::Vec3, getEyePoint); + Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); + Method2(float, getDistanceFromEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); + Method1(void, apply, IN, osg::Node &, x); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Billboard &, node); + Method1(void, apply, IN, osg::LightSource &, node); + Method1(void, apply, IN, osg::ClipNode &, node); + Method1(void, apply, IN, osg::TexGenNode &, node); + Method1(void, apply, IN, osg::Group &, node); + Method1(void, apply, IN, osg::Transform &, node); + Method1(void, apply, IN, osg::Projection &, node); + Method1(void, apply, IN, osg::Switch &, node); + Method1(void, apply, IN, osg::LOD &, node); + Method1(void, apply, IN, osg::ClearNode &, node); + Method1(void, apply, IN, osg::OccluderNode &, node); + Method1(void, setClearNode, IN, const osg::ClearNode *, earthSky); + Method0(const osg::ClearNode *, getClearNode); + Method1(void, pushStateSet, IN, const osg::StateSet *, ss); + Method0(void, popStateSet); + Method1(void, setRenderGraph, IN, osgUtil::RenderGraph *, rg); + Method0(osgUtil::RenderGraph *, getRootRenderGraph); + Method0(osgUtil::RenderGraph *, getCurrentRenderGraph); + Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rg); + Method0(osgUtil::RenderStage *, getRenderStage); + Method0(osgUtil::RenderBin *, getCurrentRenderBin); + Method1(void, setCurrentRenderBin, IN, osgUtil::RenderBin *, rb); + Method0(osgUtil::CullVisitor::value_type, getCalculatedNearPlane); + Method0(osgUtil::CullVisitor::value_type, getCalculatedFarPlane); + Method3(osgUtil::CullVisitor::value_type, computeNearestPointInFrustum, IN, const osg::Matrix &, matrix, IN, const osg::Polytope::PlaneList &, planes, IN, const osg::Drawable &, drawable); + Method2(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, IN, const osg::BoundingBox &, bb); + MethodWithDefaults3(bool, updateCalculatedNearFar, IN, const osg::Matrix &, matrix, , IN, const osg::Drawable &, drawable, , IN, bool, isBillboard, false); + Method1(void, updateCalculatedNearFar, IN, const osg::Vec3 &, pos); + Method2(void, addDrawable, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix); + Method3(void, addDrawableAndDepth, IN, osg::Drawable *, drawable, IN, osg::RefMatrix *, matrix, IN, float, depth); + Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method0(void, popProjectionMatrix); + Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixf &, projection, IN, double &, znear, IN, double &, zfar); + Method3(bool, clampProjectionMatrixImplementation, IN, osg::Matrixd &, projection, IN, double &, znear, IN, double &, zfar); + Method3(bool, clampProjectionMatrix, IN, osg::Matrixf &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar); + Method3(bool, clampProjectionMatrix, IN, osg::Matrixd &, projection, IN, osgUtil::CullVisitor::value_type &, znear, IN, osgUtil::CullVisitor::value_type &, zfar); + Method1(void, setState, IN, osg::State *, state); + Method0(osg::State *, getState); + Method0(const osg::State *, getState); + ReadOnlyProperty(osgUtil::CullVisitor::value_type, CalculatedFarPlane); + ReadOnlyProperty(osgUtil::CullVisitor::value_type, CalculatedNearPlane); + Property(const osg::ClearNode *, ClearNode); + Property(osgUtil::RenderBin *, CurrentRenderBin); + ReadOnlyProperty(osgUtil::RenderGraph *, CurrentRenderGraph); + ReadOnlyProperty(osg::Vec3, EyePoint); + WriteOnlyProperty(osgUtil::RenderGraph *, RenderGraph); + Property(osgUtil::RenderStage *, RenderStage); + ReadOnlyProperty(osgUtil::RenderGraph *, RootRenderGraph); + Property(osg::State *, State); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp new file mode 100644 index 000000000..7f1785a4d --- /dev/null +++ b/src/osgWrappers/osgUtil/DelaunayTriangulator.cpp @@ -0,0 +1,35 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::DelaunayTriangulator) + BaseType(osg::Referenced); + Constructor0(); + ConstructorWithDefaults2(IN, osg::Vec3Array *, points, , IN, osg::Vec3Array *, normals, 0); + ConstructorWithDefaults2(IN, const osgUtil::DelaunayTriangulator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(const osg::Vec3Array *, getInputPointArray); + Method0(osg::Vec3Array *, getInputPointArray); + Method1(void, setInputPointArray, IN, osg::Vec3Array *, points); + Method0(const osg::Vec3Array *, getOutputNormalArray); + Method0(osg::Vec3Array *, getOutputNormalArray); + Method1(void, setOutputNormalArray, IN, osg::Vec3Array *, normals); + Method0(bool, triangulate); + Method0(const osg::DrawElementsUInt *, getTriangles); + Method0(osg::DrawElementsUInt *, getTriangles); + Property(osg::Vec3Array *, InputPointArray); + Property(osg::Vec3Array *, OutputNormalArray); + ReadOnlyProperty(osg::DrawElementsUInt *, Triangles); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp new file mode 100644 index 000000000..0da0f9eb7 --- /dev/null +++ b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp @@ -0,0 +1,28 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::DisplayRequirementsVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds); + Method0(const osg::DisplaySettings *, getDisplaySettings); + Method1(void, applyStateSet, IN, osg::StateSet &, stateset); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, geode); + WriteOnlyProperty(osg::DisplaySettings *, DisplaySettings); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp new file mode 100644 index 000000000..1143e91dd --- /dev/null +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -0,0 +1,46 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(unsigned int, osgUtil::GLObjectsVisitor::Mode); + +BEGIN_ENUM_REFLECTOR(osgUtil::GLObjectsVisitor::ModeValues) + EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_DISPLAY_LISTS); + EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_DISPLAY_LISTS); + EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS); + EnumLabel(osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES); + EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_DISPLAY_LISTS); + EnumLabel(osgUtil::GLObjectsVisitor::RELEASE_STATE_ATTRIBUTES); + EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_ON_VERTEX_BUFFER_OBJECTS); + EnumLabel(osgUtil::GLObjectsVisitor::SWITCH_OFF_VERTEX_BUFFER_OBJECTS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::GLObjectsVisitor) + BaseType(osg::NodeVisitor); + ConstructorWithDefaults1(IN, osgUtil::GLObjectsVisitor::Mode, mode, osgUtil::GLObjectsVisitor::COMPILE_DISPLAY_LISTS|osgUtil::GLObjectsVisitor::COMPILE_STATE_ATTRIBUTES); + Method1(void, setMode, IN, osgUtil::GLObjectsVisitor::Mode, mode); + Method0(osgUtil::GLObjectsVisitor::Mode, getMode); + Method1(void, setState, IN, osg::State *, state); + Method0(osg::State *, getState); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Drawable &, drawable); + Method1(void, apply, IN, osg::StateSet &, stateset); + Property(osgUtil::GLObjectsVisitor::Mode, Mode); + Property(osg::State *, State); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/GNUmakefile b/src/osgWrappers/osgUtil/GNUmakefile new file mode 100644 index 000000000..41ccf8cbd --- /dev/null +++ b/src/osgWrappers/osgUtil/GNUmakefile @@ -0,0 +1,41 @@ +TOPDIR = ../../.. +include $(TOPDIR)/Make/makedefs + +CXXFILES =\ + CubeMapGenerator.cpp\ + CullVisitor.cpp\ + DelaunayTriangulator.cpp\ + DisplayRequirementsVisitor.cpp\ + GLObjectsVisitor.cpp\ + HalfWayMapGenerator.cpp\ + HighlightMapGenerator.cpp\ + IntersectVisitor.cpp\ + Optimizer.cpp\ + ReflectionMapGenerator.cpp\ + RenderBin.cpp\ + RenderGraph.cpp\ + RenderLeaf.cpp\ + RenderStage.cpp\ + RenderStageLighting.cpp\ + RenderToTextureStage.cpp\ + SceneView.cpp\ + Simplifier.cpp\ + SmoothingVisitor.cpp\ + Statistics.cpp\ + TangentSpaceGenerator.cpp\ + Tesselator.cpp\ + TransformAttributeFunctor.cpp\ + TransformCallback.cpp\ + TriStripVisitor.cpp\ + UpdateVisitor.cpp\ + + +LIBS += -losgUtil -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) + +OPTF = -O + +TARGET_BASENAME = osgUtil +include $(TOPDIR)/Make/cygwin_wrapper_def +WRAPPER = $(WRAPPER_PREFIX)$(TARGET_BASENAME).$(PLUGIN_EXT) + +include $(TOPDIR)/Make/makerules diff --git a/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp new file mode 100644 index 000000000..aad0fdce2 --- /dev/null +++ b/src/osgWrappers/osgUtil/HalfWayMapGenerator.cpp @@ -0,0 +1,21 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::HalfWayMapGenerator) + BaseType(osgUtil::CubeMapGenerator); + ConstructorWithDefaults2(IN, const osg::Vec3 &, light_direction, , IN, int, texture_size, 64); + Constructor2(IN, const osgUtil::HalfWayMapGenerator &, copy, IN, const osg::CopyOp &, copyop); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp new file mode 100644 index 000000000..b5de52471 --- /dev/null +++ b/src/osgWrappers/osgUtil/HighlightMapGenerator.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::HighlightMapGenerator) + BaseType(osgUtil::CubeMapGenerator); + ConstructorWithDefaults4(IN, const osg::Vec3 &, light_direction, , IN, const osg::Vec4 &, light_color, , IN, float, specular_exponent, , IN, int, texture_size, 64); + ConstructorWithDefaults2(IN, const osgUtil::HighlightMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp new file mode 100644 index 000000000..8efded4ab --- /dev/null +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -0,0 +1,101 @@ +// *************************************************************************** +// +// 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 + +TYPE_NAME_ALIAS(std::vector< int >, osgUtil::Hit::VecIndexList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Hit) + Constructor0(); + Constructor1(IN, const osgUtil::Hit &, hit); + Method0(const osg::Vec3 &, getLocalIntersectPoint); + Method0(const osg::Vec3 &, getLocalIntersectNormal); + Method0(const osg::Vec3, getWorldIntersectPoint); + Method0(const osg::Vec3, getWorldIntersectNormal); + Method0(float, getRatio); + Method0(const osg::LineSegment *, getOriginalLineSegment); + Method0(const osg::LineSegment *, getLocalLineSegment); + Method0(osg::NodePath &, getNodePath); + Method0(const osg::NodePath &, getNodePath); + Method0(osg::Geode *, getGeode); + Method0(const osg::Geode *, getGeode); + Method0(osg::Drawable *, getDrawable); + Method0(const osg::Drawable *, getDrawable); + Method0(const osg::RefMatrix *, getMatrix); + Method0(const osg::RefMatrix *, getInverseMatrix); + Method0(const osgUtil::Hit::VecIndexList &, getVecIndexList); + Method0(int, getPrimitiveIndex); + ReadOnlyProperty(osg::Drawable *, Drawable); + ReadOnlyProperty(osg::Geode *, Geode); + ReadOnlyProperty(const osg::RefMatrix *, InverseMatrix); + ReadOnlyProperty(const osg::Vec3 &, LocalIntersectNormal); + ReadOnlyProperty(const osg::Vec3 &, LocalIntersectPoint); + ReadOnlyProperty(const osg::LineSegment *, LocalLineSegment); + ReadOnlyProperty(const osg::RefMatrix *, Matrix); + ReadOnlyProperty(osg::NodePath &, NodePath); + ReadOnlyProperty(const osg::LineSegment *, OriginalLineSegment); + ReadOnlyProperty(int, PrimitiveIndex); + ReadOnlyProperty(float, Ratio); + ReadOnlyProperty(const osgUtil::Hit::VecIndexList &, VecIndexList); + ReadOnlyProperty(const osg::Vec3, WorldIntersectNormal); + ReadOnlyProperty(const osg::Vec3, WorldIntersectPoint); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList); + +TYPE_NAME_ALIAS(std::map< osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap); + +BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) + EnumLabel(osgUtil::IntersectVisitor::USE_HEIGHEST_LEVEL_OF_DETAIL); + EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::IntersectVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method0(void, reset); + Method1(void, addLineSegment, IN, osg::LineSegment *, seg); + Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, osg::LineSegment *, seg); + Method1(int, getNumHits, IN, osg::LineSegment *, seg); + Method0(bool, hits); + Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode); + Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode); + Method1(void, setEyePoint, IN, const osg::Vec3 &, eye); + Method0(osg::Vec3, getEyePoint); + Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale); + Method1(void, apply, IN, osg::Node &, x); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Billboard &, node); + Method1(void, apply, IN, osg::Group &, node); + Method1(void, apply, IN, osg::Transform &, node); + Method1(void, apply, IN, osg::Switch &, node); + Method1(void, apply, IN, osg::LOD &, node); + ReadOnlyProperty(osg::Vec3, EyePoint); + Property(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >); + +STD_VECTOR_REFLECTOR(std::vector< int >); + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::Hit >); + diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp new file mode 100644 index 000000000..58d9a753b --- /dev/null +++ b/src/osgWrappers/osgUtil/Optimizer.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 +#include +#include +#include +#include + +BEGIN_ENUM_REFLECTOR(osgUtil::Optimizer::OptimizationOptions) + EnumLabel(osgUtil::Optimizer::FLATTEN_STATIC_TRANSFORMS); + EnumLabel(osgUtil::Optimizer::REMOVE_REDUNDANT_NODES); + EnumLabel(osgUtil::Optimizer::REMOVE_LOADED_PROXY_NODES); + EnumLabel(osgUtil::Optimizer::COMBINE_ADJACENT_LODS); + EnumLabel(osgUtil::Optimizer::SHARE_DUPLICATE_STATE); + EnumLabel(osgUtil::Optimizer::MERGE_GEOMETRY); + EnumLabel(osgUtil::Optimizer::CHECK_GEOMETRY); + EnumLabel(osgUtil::Optimizer::SPATIALIZE_GROUPS); + EnumLabel(osgUtil::Optimizer::COPY_SHARED_NODES); + EnumLabel(osgUtil::Optimizer::TRISTRIP_GEOMETRY); + EnumLabel(osgUtil::Optimizer::TESSELATE_GEOMETRY); + EnumLabel(osgUtil::Optimizer::OPTIMIZE_TEXTURE_SETTINGS); + EnumLabel(osgUtil::Optimizer::DEFAULT_OPTIMIZATIONS); + EnumLabel(osgUtil::Optimizer::ALL_OPTIMIZATIONS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) + Constructor0(); + Method0(void, reset); + Method1(void, optimize, IN, osg::Node *, node); + Method2(void, optimize, IN, osg::Node *, node, IN, unsigned int, options); + Method1(void, setIsOperationPermissibleForObjectCallback, IN, osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, callback); + Method0(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback); + Method0(const osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, getIsOperationPermissibleForObjectCallback); + Method2(void, setPermissibleOptimizationsForObject, IN, const osg::Object *, object, IN, unsigned int, options); + Method1(unsigned int, getPermissibleOptimizationsForObject, IN, const osg::Object *, object); + Method2(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObject, IN, const osg::Node *, object, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateSet *, stateset, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Drawable *, drawable, IN, unsigned int, option); + Method2(bool, isOperationPermissibleForObjectImplementation, IN, const osg::Node *, node, IN, unsigned int, option); + Property(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback *, IsOperationPermissibleForObjectCallback); + IndexedProperty1(unsigned int, PermissibleOptimizationsForObject, const osg::Object *, object); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::BaseOptimizerVisitor) + BaseType(osg::NodeVisitor); + Constructor2(IN, osgUtil::Optimizer *, optimizer, IN, unsigned int, operation); + Method1(bool, isOperationPermissibleForObject, IN, const osg::StateSet *, object); + Method1(bool, isOperationPermissibleForObject, IN, const osg::StateAttribute *, object); + Method1(bool, isOperationPermissibleForObject, IN, const osg::Drawable *, object); + Method1(bool, isOperationPermissibleForObject, IN, const osg::Node *, object); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::CheckGeometryVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, checkGeode, IN, osg::Geode &, geode); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::CombineLODsVisitor::GroupList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::CombineLODsVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::LOD &, lod); + Method0(void, combineLODs); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::MatrixTransform &, transform); + Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::CopySharedSubgraphsVisitor::SharedNodeList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::CopySharedSubgraphsVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Node &, node); + Method0(void, copySharedNodes); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Node &, geode); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, apply, IN, osg::Billboard &, geode); + Method1(void, apply, IN, osg::Transform &, transform); + Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) + BaseType(osg::Referenced); + Constructor0(); + Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option); + Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option); + Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option); + Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::MergeGeometryVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, setTargetMaximumNumberOfVertices, IN, unsigned int, num); + Method0(unsigned int, getTargetMaximumNumberOfVertices); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, apply, IN, osg::Billboard &, x); + Method1(bool, mergeGeode, IN, osg::Geode &, geode); + Property(unsigned int, TargetMaximumNumberOfVertices); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveEmptyNodesVisitor::NodeList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::RemoveEmptyNodesVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, apply, IN, osg::Group &, group); + Method0(void, removeEmptyNodes); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor::NodeList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::RemoveLoadedProxyNodesVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::ProxyNode &, group); + Method0(void, removeRedundantNodes); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::Optimizer::RemoveRedundantNodesVisitor::NodeList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::RemoveRedundantNodesVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Group &, group); + Method1(void, apply, IN, osg::Transform &, transform); + Method0(void, removeRedundantNodes); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::SpatializeGroupsVisitor::GroupsToDivideList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::SpatializeGroupsVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Group &, group); + MethodWithDefaults1(bool, divide, IN, unsigned int, maxNumTreesPerCell, 8); + Method2(bool, divide, IN, osg::Group *, group, IN, unsigned int, maxNumTreesPerCell); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::StateVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method0(void, reset); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, geode); + Method0(void, optimize); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::set< osg::Group * >, osgUtil::Optimizer::TesselateVisitor::GroupList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TesselateVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Geode &, geode); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer::TextureVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults7(IN, bool, changeAutoUnRef, , IN, bool, valueAutoUnRef, , IN, bool, changeClientImageStorage, , IN, bool, valueClientImageStorage, , IN, bool, changeAnisotropy, , IN, float, valueAnisotropy, , IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::StateSet &, stateset); + Method1(void, apply, IN, osg::Texture &, texture); +END_REFLECTOR + +STD_SET_REFLECTOR(std::set< osg::Group * >); + +STD_SET_REFLECTOR(std::set< osg::Node * >); + diff --git a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp new file mode 100644 index 000000000..b7c568ed4 --- /dev/null +++ b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp @@ -0,0 +1,20 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) + BaseType(osgUtil::CubeMapGenerator); + ConstructorWithDefaults1(IN, int, texture_size, 64); + ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp new file mode 100644 index 000000000..8dfe4394a --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderBin.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 +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::RegisterRenderBinProxy) + Constructor2(IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList); + +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderGraph * >, osgUtil::RenderBin::RenderGraphList); + +TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList); + +BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) + EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); + EnumLabel(osgUtil::RenderBin::SORT_FRONT_TO_BACK); + EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) + BaseType(osg::Object); + ConstructorWithDefaults1(IN, osgUtil::RenderBin::SortMode, mode, osgUtil::RenderBin::SORT_BY_STATE); + ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(void, reset); + Method0(osgUtil::RenderBin *, getParent); + Method0(const osgUtil::RenderBin *, getParent); + Method0(osgUtil::RenderStage *, getStage); + Method0(const osgUtil::RenderStage *, getStage); + Method0(int, getBinNum); + Method0(osgUtil::RenderBin::RenderGraphList &, getRenderGraphList); + Method0(const osgUtil::RenderBin::RenderGraphList &, getRenderGraphList); + Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList); + Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList); + Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList); + Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList); + Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName); + Method1(void, addRenderGraph, IN, osgUtil::RenderGraph *, rg); + Method0(void, sort); + Method0(void, sortImplementation); + Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode); + Method0(osgUtil::RenderBin::SortMode, getSortMode); + Method0(void, sortByState); + Method0(void, sortFrontToBack); + Method0(void, sortBackToFront); + Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback); + Method0(osgUtil::RenderBin::SortCallback *, getSortCallback); + Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback); + Method2(void, draw, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Method2(void, drawImplementation, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback); + Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback); + Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback); + Method1(bool, getStats, IN, osgUtil::Statistics *, primStats); + Method1(void, getPrims, IN, osgUtil::Statistics *, primStats); + Method2(bool, getPrims, IN, osgUtil::Statistics *, primStats, IN, int, nbin); + ReadOnlyProperty(int, BinNum); + Property(osgUtil::RenderBin::DrawCallback *, DrawCallback); + ReadOnlyProperty(osgUtil::RenderBin *, Parent); + ReadOnlyProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList); + ReadOnlyProperty(osgUtil::RenderBin::RenderGraphList &, RenderGraphList); + ReadOnlyProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList); + Property(osgUtil::RenderBin::SortCallback *, SortCallback); + Property(osgUtil::RenderBin::SortMode, SortMode); + ReadOnlyProperty(osgUtil::RenderStage *, Stage); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) + BaseType(osg::Referenced); + Constructor0(); + Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) + BaseType(osg::Referenced); + Constructor0(); + Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderBin >) + Constructor0(); + Constructor1(IN, osgUtil::RenderBin *, t); + Constructor1(IN, const osg::ref_ptr< osgUtil::RenderBin > &, rp); + Method0(bool, valid); + Method0(osgUtil::RenderBin *, get); + Method0(const osgUtil::RenderBin *, get); + Method0(osgUtil::RenderBin *, take); + Method0(osgUtil::RenderBin *, release); + ReadOnlyProperty(osgUtil::RenderBin *, ); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >); + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::RenderGraph * >); + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::RenderLeaf * >); + diff --git a/src/osgWrappers/osgUtil/RenderGraph.cpp b/src/osgWrappers/osgUtil/RenderGraph.cpp new file mode 100644 index 000000000..48f3e68db --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderGraph.cpp @@ -0,0 +1,75 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::LeafDepthSortFunctor) + Constructor0(); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::RenderGraph > >, osgUtil::RenderGraph::ChildList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >, osgUtil::RenderGraph::LeafList); + +BEGIN_VALUE_REFLECTOR(osgUtil::RenderGraph) + BaseType(osg::Referenced); + Constructor0(); + Constructor2(IN, osgUtil::RenderGraph *, parent, IN, const osg::StateSet *, stateset); + Method0(osgUtil::RenderGraph *, cloneType); + Method1(void, setUserData, IN, osg::Referenced *, obj); + Method0(osg::Referenced *, getUserData); + Method0(const osg::Referenced *, getUserData); + Method0(bool, empty); + Method0(bool, leaves_empty); + Method0(float, getAverageDistance); + Method0(float, getMinimumDistance); + Method0(void, sortFrontToBack); + Method0(void, reset); + Method0(void, clean); + Method0(void, prune); + Method1(osgUtil::RenderGraph *, find_or_insert, IN, const osg::StateSet *, stateset); + Method1(void, addLeaf, IN, osgUtil::RenderLeaf *, leaf); + ReadOnlyProperty(float, AverageDistance); + ReadOnlyProperty(float, MinimumDistance); + Property(osg::Referenced *, UserData); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderGraph >) + Constructor0(); + Constructor1(IN, osgUtil::RenderGraph *, t); + Constructor1(IN, const osg::ref_ptr< osgUtil::RenderGraph > &, rp); + Method0(bool, valid); + Method0(osgUtil::RenderGraph *, get); + Method0(const osgUtil::RenderGraph *, get); + Method0(osgUtil::RenderGraph *, take); + Method0(osgUtil::RenderGraph *, release); + ReadOnlyProperty(osgUtil::RenderGraph *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::RenderLeaf >) + Constructor0(); + Constructor1(IN, osgUtil::RenderLeaf *, t); + Constructor1(IN, const osg::ref_ptr< osgUtil::RenderLeaf > &, rp); + Method0(bool, valid); + Method0(osgUtil::RenderLeaf *, get); + Method0(const osgUtil::RenderLeaf *, get); + Method0(osgUtil::RenderLeaf *, take); + Method0(osgUtil::RenderLeaf *, release); + ReadOnlyProperty(osgUtil::RenderLeaf *, ); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< const osg::StateSet * COMMA osg::ref_ptr< osgUtil::RenderGraph > >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::RenderLeaf > >); + diff --git a/src/osgWrappers/osgUtil/RenderLeaf.cpp b/src/osgWrappers/osgUtil/RenderLeaf.cpp new file mode 100644 index 000000000..275a65224 --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderLeaf.cpp @@ -0,0 +1,24 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::RenderLeaf) + BaseType(osg::Referenced); + ConstructorWithDefaults4(IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f); + MethodWithDefaults4(void, set, IN, osg::Drawable *, drawable, , IN, osg::RefMatrix *, projection, , IN, osg::RefMatrix *, modelview, , IN, float, depth, 0.0f); + Method0(void, reset); + Method2(void, render, IN, osg::State &, state, IN, osgUtil::RenderLeaf *, previous); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/RenderStage.cpp b/src/osgWrappers/osgUtil/RenderStage.cpp new file mode 100644 index 000000000..0515dcfad --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderStage.cpp @@ -0,0 +1,69 @@ +// *************************************************************************** +// +// 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 + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) + BaseType(osgUtil::RenderBin); + ConstructorWithDefaults1(IN, osgUtil::RenderBin::SortMode, mode, osgUtil::RenderBin::SORT_BY_STATE); + ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, className); + Method0(void, reset); + Method1(void, setViewport, IN, osg::Viewport *, viewport); + Method0(const osg::Viewport *, getViewport); + Method0(osg::Viewport *, getViewport); + Method1(void, setClearMask, IN, GLbitfield, mask); + Method0(GLbitfield, getClearMask); + Method1(void, setColorMask, IN, osg::ColorMask *, cm); + Method0(osg::ColorMask *, getColorMask); + Method0(const osg::ColorMask *, getColorMask); + Method1(void, setClearColor, IN, const osg::Vec4 &, color); + Method0(const osg::Vec4 &, getClearColor); + Method1(void, setClearAccum, IN, const osg::Vec4 &, color); + Method0(const osg::Vec4 &, getClearAccum); + Method1(void, setClearDepth, IN, double, depth); + Method0(double, getClearDepth); + Method1(void, setClearStencil, IN, int, stencil); + Method0(int, getClearStencil); + Method1(void, setRenderStageLighting, IN, osgUtil::RenderStageLighting *, rsl); + Method0(osgUtil::RenderStageLighting *, getRenderStageLighting); + Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method2(void, drawPreRenderStages, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Method2(void, draw, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Method2(void, drawImplementation, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs); + Method1(bool, getStats, IN, osgUtil::Statistics *, primStats); + Property(const osg::Vec4 &, ClearAccum); + Property(const osg::Vec4 &, ClearColor); + Property(double, ClearDepth); + Property(GLbitfield, ClearMask); + Property(int, ClearStencil); + Property(osg::ColorMask *, ColorMask); + Property(osgUtil::RenderStageLighting *, RenderStageLighting); + Property(osg::Viewport *, Viewport); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/RenderStageLighting.cpp b/src/osgWrappers/osgUtil/RenderStageLighting.cpp new file mode 100644 index 000000000..cdc74c041 --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderStageLighting.cpp @@ -0,0 +1,69 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< const osg::StateAttribute > COMMA osg::ref_ptr< osg::RefMatrix > >, osgUtil::RenderStageLighting::AttrMatrixPair); + +TYPE_NAME_ALIAS(std::vector< osgUtil::RenderStageLighting::AttrMatrixPair >, osgUtil::RenderStageLighting::AttrMatrixList); + +TYPE_NAME_ALIAS(std::map< unsigned int COMMA osgUtil::RenderStageLighting::AttrMatrixList >, osgUtil::RenderStageLighting::TexUnitAttrMatrixListMap); + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStageLighting) + BaseType(osg::Object); + Constructor0(); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(void, reset); + Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr); + Method2(void, draw, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< const osg::StateAttribute >) + Constructor0(); + Constructor1(IN, const osg::StateAttribute *, t); + Constructor1(IN, const osg::ref_ptr< const osg::StateAttribute > &, rp); + Method0(bool, valid); + Method0(const osg::StateAttribute *, get); + Method0(const const osg::StateAttribute *, get); + Method0(const osg::StateAttribute *, take); + Method0(const osg::StateAttribute *, release); + ReadOnlyProperty(const osg::StateAttribute *, ); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osg::RefMatrix >) + Constructor0(); + Constructor1(IN, osg::RefMatrix *, t); + Constructor1(IN, const osg::ref_ptr< osg::RefMatrix > &, rp); + Method0(bool, valid); + Method0(osg::RefMatrix *, get); + Method0(const osg::RefMatrix *, get); + Method0(osg::RefMatrix *, take); + Method0(osg::RefMatrix *, release); + ReadOnlyProperty(osg::RefMatrix *, ); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< unsigned int COMMA osgUtil::RenderStageLighting::AttrMatrixList >); + +STD_PAIR_REFLECTOR(std::pair< osg::ref_ptr< const osg::StateAttribute > COMMA osg::ref_ptr< osg::RefMatrix > >); + +STD_VECTOR_REFLECTOR(std::vector< osgUtil::RenderStageLighting::AttrMatrixPair >); + diff --git a/src/osgWrappers/osgUtil/RenderToTextureStage.cpp b/src/osgWrappers/osgUtil/RenderToTextureStage.cpp new file mode 100644 index 000000000..9f9e9a444 --- /dev/null +++ b/src/osgWrappers/osgUtil/RenderToTextureStage.cpp @@ -0,0 +1,43 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderToTextureStage) + BaseType(osgUtil::RenderStage); + Constructor0(); + Method0(osg::Object *, cloneType); + Method1(osg::Object *, clone, IN, const osg::CopyOp &, x); + Method1(bool, isSameKindAs, IN, const osg::Object *, obj); + Method0(const char *, libraryName); + Method0(const char *, className); + Method0(void, reset); + Method1(void, setTexture, IN, osg::Texture2D *, texture); + Method0(osg::Texture2D *, getTexture); + Method1(void, setImage, IN, osg::Image *, image); + Method0(osg::Image *, getImage); + Method1(void, setImageReadPixelFormat, IN, GLenum, format); + Method0(GLenum, getImageReadPixelFormat); + Method1(void, setImageReadPixelDataType, IN, GLenum, type); + Method0(GLenum, getImageReadPixelDataType); + Method2(void, draw, IN, osg::State &, state, IN, osgUtil::RenderLeaf *&, previous); + Property(osg::Image *, Image); + Property(GLenum, ImageReadPixelDataType); + Property(GLenum, ImageReadPixelFormat); + Property(osg::Texture2D *, Texture); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp new file mode 100644 index 000000000..b4e53d809 --- /dev/null +++ b/src/osgWrappers/osgUtil/SceneView.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 +#include +#include +#include +#include +#include +#include + +TYPE_NAME_ALIAS(osgUtil::SceneView::Options, osgUtil::SceneView::LightingMode); + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::Options) + EnumLabel(osgUtil::SceneView::NO_SCENEVIEW_LIGHT); + EnumLabel(osgUtil::SceneView::HEADLIGHT); + EnumLabel(osgUtil::SceneView::SKY_LIGHT); + EnumLabel(osgUtil::SceneView::COMPILE_GLOBJECTS_AT_INIT); + EnumLabel(osgUtil::SceneView::STANDARD_SETTINGS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::ActiveUniforms) + EnumLabel(osgUtil::SceneView::FRAME_NUMBER_UNIFORM); + EnumLabel(osgUtil::SceneView::FRAME_TIME_UNIFORM); + EnumLabel(osgUtil::SceneView::DELTA_FRAME_TIME_UNIFORM); + EnumLabel(osgUtil::SceneView::VIEW_MATRIX_UNIFORM); + EnumLabel(osgUtil::SceneView::INVERSE_VIEW_MATRIX_UNIFORM); + EnumLabel(osgUtil::SceneView::DEFAULT_UNIFORMS); + EnumLabel(osgUtil::SceneView::ALL_UNIFORMS); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::SceneView::FusionDistanceMode) + EnumLabel(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE); + EnumLabel(osgUtil::SceneView::PROPORTIONAL_TO_SCREEN_DISTANCE); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::SceneView) + BaseType(osg::Referenced); + BaseType(osg::CullSettings); + ConstructorWithDefaults1(IN, osg::DisplaySettings *, ds, NULL); + MethodWithDefaults1(void, setDefaults, IN, unsigned int, options, osgUtil::SceneView::STANDARD_SETTINGS); + Method1(void, setSceneData, IN, osg::Node *, node); + Method0(osg::Node *, getSceneData); + Method0(const osg::Node *, getSceneData); + Method1(void, setViewport, IN, osg::Viewport *, viewport); + Method4(void, setViewport, IN, int, x, IN, int, y, IN, int, width, IN, int, height); + Method0(const osg::Viewport *, getViewport); + Method0(osg::Viewport *, getViewport); + Method4(void, getViewport, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height); + Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, vs); + Method0(const osg::DisplaySettings *, getDisplaySettings); + Method0(osg::DisplaySettings *, getDisplaySettings); + Method1(void, setClearColor, IN, const osg::Vec4 &, color); + Method0(const osg::Vec4 &, getClearColor); + Method1(void, setGlobalStateSet, IN, osg::StateSet *, state); + Method0(osg::StateSet *, getGlobalStateSet); + Method0(const osg::StateSet *, getGlobalStateSet); + Method1(void, setLocalStateSet, IN, osg::StateSet *, state); + Method0(osg::StateSet *, getLocalStateSet); + Method0(const osg::StateSet *, getLocalStateSet); + Method1(void, setActiveUniforms, IN, int, activeUniforms); + Method1(int, getActiveUniforms, IN, int, activeUniforms); + Method0(void, updateUniforms); + Method1(void, setLightingMode, IN, osgUtil::SceneView::LightingMode, mode); + Method0(osgUtil::SceneView::LightingMode, getLightingMode); + Method1(void, setLight, IN, osg::Light *, light); + Method0(osg::Light *, getLight); + Method0(const osg::Light *, getLight); + Method1(void, setState, IN, osg::State *, state); + Method0(osg::State *, getState); + Method0(const osg::State *, getState); + Method1(void, setProjectionMatrix, IN, const osg::Matrixf &, matrix); + Method1(void, setProjectionMatrix, IN, const osg::Matrixd &, matrix); + Method6(void, setProjectionMatrixAsOrtho, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); + Method4(void, setProjectionMatrixAsOrtho2D, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top); + Method6(void, setProjectionMatrixAsFrustum, IN, double, left, IN, double, right, IN, double, bottom, IN, double, top, IN, double, zNear, IN, double, zFar); + Method4(void, setProjectionMatrixAsPerspective, IN, double, fovy, IN, double, aspectRatio, IN, double, zNear, IN, double, zFar); + Method0(osg::Matrixd &, getProjectionMatrix); + Method0(const osg::Matrixd &, getProjectionMatrix); + Method6(bool, getProjectionMatrixAsOrtho, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); + Method6(bool, getProjectionMatrixAsFrustum, IN, double &, left, IN, double &, right, IN, double &, bottom, IN, double &, top, IN, double &, zNear, IN, double &, zFar); + Method4(bool, getProjectionMatrixAsPerspective, IN, double &, fovy, IN, double &, aspectRatio, IN, double &, zNear, IN, double &, zFar); + Method1(void, setViewMatrix, IN, const osg::Matrixf &, matrix); + Method1(void, setViewMatrix, IN, const osg::Matrixd &, matrix); + Method3(void, setViewMatrixAsLookAt, IN, const osg::Vec3 &, eye, IN, const osg::Vec3 &, center, IN, const osg::Vec3 &, up); + Method0(osg::Matrixd &, getViewMatrix); + Method0(const osg::Matrixd &, getViewMatrix); + MethodWithDefaults4(void, getViewMatrixAsLookAt, IN, osg::Vec3 &, eye, , IN, osg::Vec3 &, center, , IN, osg::Vec3 &, up, , IN, float, lookDistance, 1.0f); + Method1(void, setInitVisitor, IN, osg::NodeVisitor *, av); + Method0(osg::NodeVisitor *, getInitVisitor); + Method0(const osg::NodeVisitor *, getInitVisitor); + Method1(void, setUpdateVisitor, IN, osg::NodeVisitor *, av); + Method0(osg::NodeVisitor *, getUpdateVisitor); + Method0(const osg::NodeVisitor *, getUpdateVisitor); + Method1(void, setCullVisitor, IN, osgUtil::CullVisitor *, cv); + Method0(osgUtil::CullVisitor *, getCullVisitor); + Method0(const osgUtil::CullVisitor *, getCullVisitor); + Method1(void, setCullVisitorLeft, IN, osgUtil::CullVisitor *, cv); + Method0(osgUtil::CullVisitor *, getCullVisitorLeft); + Method0(const osgUtil::CullVisitor *, getCullVisitorLeft); + Method1(void, setCullVisitorRight, IN, osgUtil::CullVisitor *, cv); + Method0(osgUtil::CullVisitor *, getCullVisitorRight); + Method0(const osgUtil::CullVisitor *, getCullVisitorRight); + Method1(void, setCollectOccludersVisitor, IN, osg::CollectOccludersVisitor *, cov); + Method0(osg::CollectOccludersVisitor *, getCollectOccludersVisitor); + Method0(const osg::CollectOccludersVisitor *, getCollectOccludersVisitor); + Method1(void, setRenderGraph, IN, osgUtil::RenderGraph *, rg); + Method0(osgUtil::RenderGraph *, getRenderGraph); + Method0(const osgUtil::RenderGraph *, getRenderGraph); + Method1(void, setRenderGraphLeft, IN, osgUtil::RenderGraph *, rg); + Method0(osgUtil::RenderGraph *, getRenderGraphLeft); + Method0(const osgUtil::RenderGraph *, getRenderGraphLeft); + Method1(void, setRenderGraphRight, IN, osgUtil::RenderGraph *, rg); + Method0(osgUtil::RenderGraph *, getRenderGraphRight); + Method0(const osgUtil::RenderGraph *, getRenderGraphRight); + Method1(void, setRenderStage, IN, osgUtil::RenderStage *, rs); + Method0(osgUtil::RenderStage *, getRenderStage); + Method0(const osgUtil::RenderStage *, getRenderStage); + Method1(void, setRenderStageLeft, IN, osgUtil::RenderStage *, rs); + Method0(osgUtil::RenderStage *, getRenderStageLeft); + Method0(const osgUtil::RenderStage *, getRenderStageLeft); + Method1(void, setRenderStageRight, IN, osgUtil::RenderStage *, rs); + Method0(osgUtil::RenderStage *, getRenderStageRight); + Method0(const osgUtil::RenderStage *, getRenderStageRight); + Method1(void, setDrawBufferValue, IN, GLenum, drawBufferValue); + Method0(GLenum, getDrawBufferValue); + MethodWithDefaults2(void, setFusionDistance, IN, osgUtil::SceneView::FusionDistanceMode, mode, , IN, float, value, 1.0f); + Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode); + Method0(float, getFusionDistanceValue); + Method1(void, setPrioritizeTextures, IN, bool, pt); + Method0(bool, getPrioritizeTextures); + Method1(void, setComputeStereoMatricesCallback, IN, osgUtil::SceneView::ComputeStereoMatricesCallback *, callback); + Method0(osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback); + Method0(const osgUtil::SceneView::ComputeStereoMatricesCallback *, getComputeStereoMatricesCallback); + Method2(bool, projectWindowIntoObject, IN, const osg::Vec3 &, window, IN, osg::Vec3 &, object); + Method4(bool, projectWindowXYIntoObject, IN, int, x, IN, int, y, IN, osg::Vec3 &, near_point, IN, osg::Vec3 &, far_point); + Method2(bool, projectObjectIntoWindow, IN, const osg::Vec3 &, object, IN, osg::Vec3 &, window); + Method1(void, setFrameStamp, IN, osg::FrameStamp *, fs); + Method0(const osg::FrameStamp *, getFrameStamp); + Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view); + Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view); + Method1(osg::Matrixd, computeLeftEyeProjectionImplementation, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeLeftEyeViewImplementation, IN, const osg::Matrixd &, view); + Method1(osg::Matrixd, computeRightEyeProjectionImplementation, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeRightEyeViewImplementation, IN, const osg::Matrixd &, view); + Method0(void, init); + Method0(void, update); + Method0(void, cull); + Method0(void, draw); + Method0(void, releaseAllGLObjects); + Method0(void, flushAllDeletedGLObjects); + Method1(void, flushDeletedGLObjects, IN, double &, availableTime); + WriteOnlyProperty(int, ActiveUniforms); + Property(const osg::Vec4 &, ClearColor); + Property(osg::CollectOccludersVisitor *, CollectOccludersVisitor); + Property(osgUtil::SceneView::ComputeStereoMatricesCallback *, ComputeStereoMatricesCallback); + Property(osgUtil::CullVisitor *, CullVisitor); + Property(osgUtil::CullVisitor *, CullVisitorLeft); + Property(osgUtil::CullVisitor *, CullVisitorRight); + WriteOnlyProperty(unsigned int, Defaults); + Property(osg::DisplaySettings *, DisplaySettings); + Property(GLenum, DrawBufferValue); + WriteOnlyProperty(osg::FrameStamp *, FrameStamp); + ReadOnlyProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode); + ReadOnlyProperty(float, FusionDistanceValue); + Property(osg::StateSet *, GlobalStateSet); + Property(osg::NodeVisitor *, InitVisitor); + Property(osg::Light *, Light); + Property(osgUtil::SceneView::LightingMode, LightingMode); + Property(osg::StateSet *, LocalStateSet); + Property(bool, PrioritizeTextures); + Property(const osg::Matrixd &, ProjectionMatrix); + Property(osgUtil::RenderGraph *, RenderGraph); + Property(osgUtil::RenderGraph *, RenderGraphLeft); + Property(osgUtil::RenderGraph *, RenderGraphRight); + Property(osgUtil::RenderStage *, RenderStage); + Property(osgUtil::RenderStage *, RenderStageLeft); + Property(osgUtil::RenderStage *, RenderStageRight); + Property(osg::Node *, SceneData); + Property(osg::State *, State); + Property(osg::NodeVisitor *, UpdateVisitor); + Property(const osg::Matrixd &, ViewMatrix); + Property(osg::Viewport *, Viewport); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::SceneView::ComputeStereoMatricesCallback) + BaseType(osg::Referenced); + Constructor0(); + Method1(osg::Matrixd, computeLeftEyeProjection, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeLeftEyeView, IN, const osg::Matrixd &, view); + Method1(osg::Matrixd, computeRightEyeProjection, IN, const osg::Matrixd &, projection); + Method1(osg::Matrixd, computeRightEyeView, IN, const osg::Matrixd &, view); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/Simplifier.cpp b/src/osgWrappers/osgUtil/Simplifier.cpp new file mode 100644 index 000000000..7a50f7246 --- /dev/null +++ b/src/osgWrappers/osgUtil/Simplifier.cpp @@ -0,0 +1,43 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::Simplifier::IndexList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Simplifier) + BaseType(osg::NodeVisitor); + ConstructorWithDefaults2(IN, float, sampleRatio, 1.0f, IN, float, maximumError, 0.0f); + Method1(void, setSampleRatio, IN, float, sampleRatio); + Method0(float, getSampleRatio); + Method1(void, setMaximumError, IN, float, error); + Method0(float, getMaximumError); + Method1(void, setContinueSimplificationCallback, IN, osgUtil::Simplifier::ContinueSimplificationCallback *, cb); + Method0(osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback); + Method0(const osgUtil::Simplifier::ContinueSimplificationCallback *, getContinueSimplificationCallback); + Method3(bool, continueSimplification, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); + Method3(bool, continueSimplificationImplementation, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, simplify, IN, osg::Geometry &, geometry); + Method2(void, simplify, IN, osg::Geometry &, geometry, IN, const osgUtil::Simplifier::IndexList &, protectedPoints); + Property(osgUtil::Simplifier::ContinueSimplificationCallback *, ContinueSimplificationCallback); + Property(float, MaximumError); + Property(float, SampleRatio); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) + BaseType(osg::Referenced); + Constructor0(); + Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp new file mode 100644 index 000000000..d10f3802b --- /dev/null +++ b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp @@ -0,0 +1,20 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::SmoothingVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method1(void, apply, IN, osg::Geode &, geode); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/Statistics.cpp b/src/osgWrappers/osgUtil/Statistics.cpp new file mode 100644 index 000000000..9036d436a --- /dev/null +++ b/src/osgWrappers/osgUtil/Statistics.cpp @@ -0,0 +1,76 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +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::PrimtiveValueMap); + +TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimtiveCountMap); + +BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::statsType) + EnumLabel(osgUtil::Statistics::STAT_NONE); + EnumLabel(osgUtil::Statistics::STAT_FRAMERATE); + EnumLabel(osgUtil::Statistics::STAT_GRAPHS); + EnumLabel(osgUtil::Statistics::STAT_PRIMS); + EnumLabel(osgUtil::Statistics::STAT_PRIMSPERVIEW); + EnumLabel(osgUtil::Statistics::STAT_PRIMSPERBIN); + EnumLabel(osgUtil::Statistics::STAT_DC); + EnumLabel(osgUtil::Statistics::STAT_RESTART); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Statistics) + BaseType(osg::PrimitiveFunctor); + Constructor0(); + Method0(void, reset); + Method1(void, setType, IN, osgUtil::Statistics::statsType, t); + Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x); + Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x); + Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x); + Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count); + Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x); + Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x); + Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x); + Method1(void, begin, IN, GLenum, mode); + Method0(void, vertex); + Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x); + Method1(void, vertex, IN, const osg::Vec3 &, x); + Method1(void, vertex, IN, const osg::Vec2 &, x); + Method1(void, vertex, IN, const osg::Vec4 &, x); + Method2(void, vertex, IN, float, x, IN, float, x); + Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x); + Method0(void, end); + Method0(void, addDrawable); + Method0(void, addMatrix); + Method1(void, addLight, IN, int, np); + Method1(void, addImpostor, IN, int, np); + Method0(int, getBins); + Method1(void, setDepth, IN, int, d); + Method1(void, addBins, IN, int, np); + Method1(void, setBinNo, IN, int, n); + Method0(PrimtiveCountMap::iterator, GetPrimitivesBegin); + Method0(PrimtiveCountMap::iterator, GetPrimitivesEnd); + WriteOnlyProperty(int, BinNo); + ReadOnlyProperty(int, Bins); + WriteOnlyProperty(int, Depth); + WriteOnlyProperty(osgUtil::Statistics::statsType, Type); +END_REFLECTOR + +STD_MAP_REFLECTOR(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >); + +STD_MAP_REFLECTOR(std::map< GLenum COMMA unsigned int >); + +STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >); + diff --git a/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp new file mode 100644 index 000000000..329ac641a --- /dev/null +++ b/src/osgWrappers/osgUtil/TangentSpaceGenerator.cpp @@ -0,0 +1,37 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_OBJECT_REFLECTOR(osgUtil::TangentSpaceGenerator) + BaseType(osg::Referenced); + Constructor0(); + ConstructorWithDefaults2(IN, const osgUtil::TangentSpaceGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY); + MethodWithDefaults2(void, generate, IN, osg::Geometry *, geo, , IN, int, normal_map_tex_unit, 0); + Method0(osg::Vec4Array *, getTangentArray); + Method0(const osg::Vec4Array *, getTangentArray); + Method1(void, setTangentArray, IN, osg::Vec4Array *, array); + Method0(osg::Vec4Array *, getNormalArray); + Method0(const osg::Vec4Array *, getNormalArray); + Method1(void, setNormalArray, IN, osg::Vec4Array *, array); + Method0(osg::Vec4Array *, getBinormalArray); + Method0(const osg::Vec4Array *, getBinormalArray); + Method1(void, setBinormalArray, IN, osg::Vec4Array *, array); + Method0(osg::IndexArray *, getIndices); + Property(osg::Vec4Array *, BinormalArray); + ReadOnlyProperty(osg::IndexArray *, Indices); + Property(osg::Vec4Array *, NormalArray); + Property(osg::Vec4Array *, TangentArray); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/Tesselator.cpp b/src/osgWrappers/osgUtil/Tesselator.cpp new file mode 100644 index 000000000..79fe2cb5d --- /dev/null +++ b/src/osgWrappers/osgUtil/Tesselator.cpp @@ -0,0 +1,81 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tesselator::VertexPointList); + +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Tesselator::Prim > >, osgUtil::Tesselator::PrimList); + +BEGIN_ENUM_REFLECTOR(osgUtil::Tesselator::WindingType) + EnumLabel(osgUtil::Tesselator::TESS_WINDING_ODD); + EnumLabel(osgUtil::Tesselator::TESS_WINDING_NONZERO); + EnumLabel(osgUtil::Tesselator::TESS_WINDING_POSITIVE); + EnumLabel(osgUtil::Tesselator::TESS_WINDING_NEGATIVE); + EnumLabel(osgUtil::Tesselator::TESS_WINDING_ABS_GEQ_TWO); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Tesselator::TesselationType) + EnumLabel(osgUtil::Tesselator::TESS_TYPE_GEOMETRY); + EnumLabel(osgUtil::Tesselator::TESS_TYPE_DRAWABLE); + EnumLabel(osgUtil::Tesselator::TESS_TYPE_POLYGONS); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::Tesselator) + BaseType(osg::Referenced); + Constructor0(); + Method1(void, setBoundaryOnly, IN, const bool, tt); + Method0(const bool, getBoundaryOnly); + Method1(void, setWindingType, IN, const osgUtil::Tesselator::WindingType, wt); + Method0(const osgUtil::Tesselator::WindingType, getWindingType); + Method1(void, setTesselationType, IN, const osgUtil::Tesselator::TesselationType, tt); + Method0(const osgUtil::Tesselator::TesselationType, getTesselationType); + Method1(void, retesselatePolygons, IN, osg::Geometry &, cxgeom); + Method0(osg::Geometry::PrimitiveSetList, getContours); + Method0(void, beginTesselation); + Method0(void, beginContour); + Method1(void, addVertex, IN, osg::Vec3 *, vertex); + Method0(void, endContour); + Method0(void, endTesselation); + Method0(osgUtil::Tesselator::PrimList &, getPrimList); + Method0(void, reset); + Property(const bool, BoundaryOnly); + ReadOnlyProperty(osg::Geometry::PrimitiveSetList, Contours); + ReadOnlyProperty(osgUtil::Tesselator::PrimList &, PrimList); + Property(const osgUtil::Tesselator::TesselationType, TesselationType); + Property(const osgUtil::Tesselator::WindingType, WindingType); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tesselator::Prim::VecList); + +BEGIN_VALUE_REFLECTOR(osgUtil::Tesselator::Prim) + BaseType(osg::Referenced); + Constructor1(IN, GLenum, mode); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Tesselator::Prim >) + Constructor0(); + Constructor1(IN, osgUtil::Tesselator::Prim *, t); + Constructor1(IN, const osg::ref_ptr< osgUtil::Tesselator::Prim > &, rp); + Method0(bool, valid); + Method0(osgUtil::Tesselator::Prim *, get); + Method0(const osgUtil::Tesselator::Prim *, get); + Method0(osgUtil::Tesselator::Prim *, take); + Method0(osgUtil::Tesselator::Prim *, release); + ReadOnlyProperty(osgUtil::Tesselator::Prim *, ); +END_REFLECTOR + +STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 * >); + +STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Tesselator::Prim > >); + diff --git a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp new file mode 100644 index 000000000..e9b82fb3c --- /dev/null +++ b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp @@ -0,0 +1,22 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::TransformAttributeFunctor) + BaseType(osg::Drawable::AttributeFunctor); + Constructor1(IN, const osg::Matrix &, m); + Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/TransformCallback.cpp b/src/osgWrappers/osgUtil/TransformCallback.cpp new file mode 100644 index 000000000..e1ee45425 --- /dev/null +++ b/src/osgWrappers/osgUtil/TransformCallback.cpp @@ -0,0 +1,23 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::TransformCallback) + BaseType(osg::NodeCallback); + Constructor3(IN, const osg::Vec3 &, pivot, IN, const osg::Vec3 &, axis, IN, float, angularVelocity); + Method1(void, setPause, IN, bool, pause); + WriteOnlyProperty(bool, Pause); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/TriStripVisitor.cpp b/src/osgWrappers/osgUtil/TriStripVisitor.cpp new file mode 100644 index 000000000..1023d0bf8 --- /dev/null +++ b/src/osgWrappers/osgUtil/TriStripVisitor.cpp @@ -0,0 +1,35 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::TriStripVisitor) + BaseType(osgUtil::Optimizer::BaseOptimizerVisitor); + ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0); + Method1(void, stripify, IN, osg::Geometry &, drawable); + Method0(void, stripify); + Method1(void, apply, IN, osg::Geode &, geode); + Method1(void, setCacheSize, IN, unsigned int, size); + Method0(unsigned int, getCacheSize); + Method0(const unsigned int, getCacheSize); + Method1(void, setMinStripSize, IN, unsigned int, size); + Method0(unsigned int, getMinStripSize); + Method0(const unsigned int, getMinStripSize); + Method1(void, setGenerateFourPointPrimitivesQuads, IN, bool, flag); + Method0(bool, getGenerateFourPointPrimitivesQuads); + Property(unsigned int, CacheSize); + Property(bool, GenerateFourPointPrimitivesQuads); + Property(unsigned int, MinStripSize); +END_REFLECTOR + diff --git a/src/osgWrappers/osgUtil/UpdateVisitor.cpp b/src/osgWrappers/osgUtil/UpdateVisitor.cpp new file mode 100644 index 000000000..c8e70ca6d --- /dev/null +++ b/src/osgWrappers/osgUtil/UpdateVisitor.cpp @@ -0,0 +1,39 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +BEGIN_VALUE_REFLECTOR(osgUtil::UpdateVisitor) + BaseType(osg::NodeVisitor); + Constructor0(); + Method0(void, reset); + Method1(void, apply, IN, osg::Node &, node); + Method1(void, apply, IN, osg::Geode &, node); + Method1(void, apply, IN, osg::Billboard &, node); + Method1(void, apply, IN, osg::LightSource &, node); + Method1(void, apply, IN, osg::Group &, node); + Method1(void, apply, IN, osg::Transform &, node); + Method1(void, apply, IN, osg::Projection &, node); + Method1(void, apply, IN, osg::Switch &, node); + Method1(void, apply, IN, osg::LOD &, node); + Method1(void, apply, IN, osg::OccluderNode &, node); +END_REFLECTOR +