diff --git a/VisualStudio/osgWrappers/osg/wrapper_osg.dsp b/VisualStudio/osgWrappers/osg/wrapper_osg.dsp index 50942f891..60067f4a1 100644 --- a/VisualStudio/osgWrappers/osg/wrapper_osg.dsp +++ b/VisualStudio/osgWrappers/osg/wrapper_osg.dsp @@ -123,6 +123,10 @@ SOURCE=..\..\..\src\osgWrappers\osg\BufferObject.cpp SOURCE=..\..\..\src\osgWrappers\osg\Camera.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osg\ComputeBoundsVisitor.cpp +# End Source File + # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\DrawPixels.cpp # End Source File @@ -164,7 +168,7 @@ SOURCE=..\..\..\src\osgWrappers\osg\Notify.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\PagedLOD.cpp +SOURCE=..\..\..\src\osgWrappers\osg\Plane.cpp # End Source File # Begin Source File @@ -220,17 +224,13 @@ SOURCE=..\..\..\src\osgWrappers\osg\Referenced.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Sequence.cpp +SOURCE=..\..\..\src\osgWrappers\osg\Scissor.cpp # End Source File # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\ShadeModel.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Shader.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\ShadowVolumeOccluder.cpp # End Source File @@ -256,29 +256,25 @@ SOURCE=..\..\..\src\osgWrappers\osg\Stats.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\StencilTwoSided.cpp +SOURCE=..\..\..\src\osgWrappers\osg\TexEnv.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Switch.cpp +SOURCE=..\..\..\src\osgWrappers\osg\TexGen.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexEnvCombine.cpp +SOURCE=..\..\..\src\osgWrappers\osg\TexGenNode.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TexEnvFilter.cpp +SOURCE=..\..\..\src\osgWrappers\osg\TexMat.cpp # End Source File # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Texture.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Texture1D.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Texture2D.cpp # End Source File @@ -291,10 +287,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\Texture3D.cpp SOURCE=..\..\..\src\osgWrappers\osg\TextureCubeMap.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\TextureRectangle.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Transform.cpp # End Source File @@ -304,7 +296,11 @@ SOURCE=..\..\..\src\osgWrappers\osg\Uniform.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\Vec2d.cpp +SOURCE=..\..\..\src\osgWrappers\osg\Vec2f.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osg\Vec2s.cpp # End Source File # Begin Source File @@ -315,6 +311,10 @@ SOURCE=..\..\..\src\osgWrappers\osg\Vec3d.cpp SOURCE=..\..\..\src\osgWrappers\osg\Vec4b.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osg\Vec4d.cpp +# End Source File + # Begin Source File SOURCE=..\..\..\src\osgWrappers\osg\Vec4s.cpp # End Source File @@ -323,10 +323,6 @@ SOURCE=..\..\..\src\osgWrappers\osg\Vec4s.cpp SOURCE=..\..\..\src\osgWrappers\osg\VertexProgram.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osg\View.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp b/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp index fc94ab4c4..0ccfa7283 100644 --- a/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp +++ b/VisualStudio/osgWrappers/osgFX/wrapper_osgFX.dsp @@ -120,11 +120,11 @@ SOURCE=..\..\..\src\osgWrappers\osgFX\Registry.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgFX\Scribe.cpp +SOURCE=..\..\..\src\osgWrappers\osgFX\SpecularHighlights.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgFX\SpecularHighlights.cpp +SOURCE=..\..\..\src\osgWrappers\osgFX\Technique.cpp # End Source File # End Group diff --git a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp index 0f013cc6e..1f0eb771d 100644 --- a/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp +++ b/VisualStudio/osgWrappers/osgGA/wrapper_osgGA.dsp @@ -144,7 +144,7 @@ SOURCE=..\..\..\src\osgWrappers\osgGA\StateSetManipulator.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgGA\UFOManipulator.cpp +SOURCE=..\..\..\src\osgWrappers\osgGA\TerrainManipulator.cpp # End Source File # End Group diff --git a/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp b/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp index f102ad3ab..21871aa20 100644 --- a/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp +++ b/VisualStudio/osgWrappers/osgManipulator/wrapper_osgManipulator.dsp @@ -120,33 +120,21 @@ SOURCE=..\..\..\src\osgWrappers\osgManipulator\Projector.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\ScaleAxisDragger.cpp +SOURCE=..\..\..\src\osgWrappers\osgManipulator\RotateSphereDragger.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\Selection.cpp +SOURCE=..\..\..\src\osgWrappers\osgManipulator\ScaleAxisDragger.cpp # End Source File # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabBoxDragger.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\TabPlaneDragger.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\TrackballDragger.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgManipulator\Translate1DDragger.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgManipulator\Translate2DDragger.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgManipulator\TranslateAxisDragger.cpp # End Source File diff --git a/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp b/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp index 1b21979f1..3e9c2183e 100644 --- a/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp +++ b/VisualStudio/osgWrappers/osgParticle/wrapper_osgParticle.dsp @@ -180,7 +180,7 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\Particle.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleProcessor.cpp +SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleEffect.cpp # End Source File # Begin Source File @@ -188,11 +188,7 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleSystem.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\ParticleSystemUpdater.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\PointPlacer.cpp +SOURCE=..\..\..\src\osgWrappers\osgParticle\Placer.cpp # End Source File # Begin Source File @@ -208,13 +204,21 @@ SOURCE=..\..\..\src\osgWrappers\osgParticle\RadialShooter.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgParticle\RandomRateCounter.cpp +SOURCE=..\..\..\src\osgWrappers\osgParticle\SectorPlacer.cpp # End Source File # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgParticle\SegmentPlacer.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgParticle\Shooter.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgParticle\SmokeEffect.cpp +# End Source File + # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp b/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp index b1e2dba97..73edc9da6 100644 --- a/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp +++ b/VisualStudio/osgWrappers/osgProducer/wrapper_osgProducer.dsp @@ -112,7 +112,7 @@ SOURCE=..\..\..\src\osgWrappers\osgProducer\OsgSceneHandler.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgProducer\Viewer.cpp +SOURCE=..\..\..\src\osgWrappers\osgProducer\ViewerEventHandler.cpp # End Source File # End Group diff --git a/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp b/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp index 916ee29f8..5f644830a 100644 --- a/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp +++ b/VisualStudio/osgWrappers/osgShadow/wrapper_osgShadow.dsp @@ -107,6 +107,10 @@ SOURCE=..\..\..\src\osgWrappers\osgShadow\ParallelSplitShadowMap.cpp SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowMap.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowTechnique.cpp +# End Source File + # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowTexture.cpp # End Source File @@ -115,10 +119,6 @@ SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowTexture.cpp SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowVolume.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgShadow\ShadowedScene.cpp -# End Source File - # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp b/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp index 1d8ac95e3..b38f91f87 100644 --- a/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp +++ b/VisualStudio/osgWrappers/osgSim/wrapper_osgSim.dsp @@ -172,7 +172,7 @@ SOURCE=..\..\..\src\osgWrappers\osgSim\Sector.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgSim\SphereSegment.cpp +SOURCE=..\..\..\src\osgWrappers\osgSim\VisibilityGroup.cpp # End Source File # End Group diff --git a/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp b/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp index c56867c73..d2890b997 100644 --- a/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp +++ b/VisualStudio/osgWrappers/osgText/wrapper_osgText.dsp @@ -107,6 +107,10 @@ SOURCE=..\..\..\src\osgWrappers\osgText\Font.cpp SOURCE=..\..\..\src\osgWrappers\osgText\String.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgText\Text.cpp +# End Source File + # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp b/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp index ca0cd3d68..c7a7924ef 100644 --- a/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp +++ b/VisualStudio/osgWrappers/osgUtil/wrapper_osgUtil.dsp @@ -139,12 +139,16 @@ SOURCE=..\..\..\src\osgWrappers\osgUtil\LineSegmentIntersector.cpp SOURCE=..\..\..\src\osgWrappers\osgUtil\Optimizer.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\ReflectionMapGenerator.cpp +# End Source File + # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderBin.cpp # End Source File # Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderLeaf.cpp +SOURCE=..\..\..\src\osgWrappers\osgUtil\RenderStage.cpp # End Source File # Begin Source File @@ -155,10 +159,30 @@ SOURCE=..\..\..\src\osgWrappers\osgUtil\SceneView.cpp SOURCE=..\..\..\src\osgWrappers\osgUtil\Simplifier.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\SmoothingVisitor.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\Statistics.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\Tessellator.cpp +# End Source File + +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\TransformAttributeFunctor.cpp +# End Source File + # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgUtil\TriStripVisitor.cpp # End Source File +# Begin Source File +SOURCE=..\..\..\src\osgWrappers\osgUtil\UpdateVisitor.cpp +# End Source File + # End Group # Begin Group "Header Files" diff --git a/VisualStudio/osgWrappers/osgViewer/wrapper_osgViewer.dsp b/VisualStudio/osgWrappers/osgViewer/wrapper_osgViewer.dsp index 9b8df95a3..00b31829c 100644 --- a/VisualStudio/osgWrappers/osgViewer/wrapper_osgViewer.dsp +++ b/VisualStudio/osgWrappers/osgViewer/wrapper_osgViewer.dsp @@ -111,14 +111,6 @@ SOURCE=..\..\..\src\osgWrappers\osgViewer\HelpHandler.cpp SOURCE=..\..\..\src\osgWrappers\osgViewer\Scene.cpp # End Source File -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgViewer\SimpleViewer.cpp -# End Source File - -# Begin Source File -SOURCE=..\..\..\src\osgWrappers\osgViewer\StatsHandler.cpp -# End Source File - # Begin Source File SOURCE=..\..\..\src\osgWrappers\osgViewer\View.cpp # End Source File diff --git a/src/osgShadow/ShadowTexture.cpp b/src/osgShadow/ShadowTexture.cpp index 647352220..b4d331aeb 100644 --- a/src/osgShadow/ShadowTexture.cpp +++ b/src/osgShadow/ShadowTexture.cpp @@ -14,6 +14,7 @@ #include #include #include +#include using namespace osgShadow; @@ -126,6 +127,7 @@ void ShadowTexture::cull(osgUtil::CullVisitor& cv) // record the traversal mask on entry so we can reapply it later. unsigned int traversalMask = cv.getTraversalMask(); + osgUtil::RenderStage* orig_rs = cv.getRenderStage(); // do traversal of shadow casting scene which does not need to be decorated by the shadow texture { @@ -147,11 +149,38 @@ void ShadowTexture::cull(osgUtil::CullVisitor& cv) cv.popStateSet(); } + + // need to compute view frustum for RTT camera. + // 1) get the light position + // 2) get the center and extents of the view frustum + const osg::Light* selectLight = 0; + osg::Vec4 lightpos; - // do RTT camera traversal - _camera->accept(cv); + osgUtil::PositionalStateContainer::AttrMatrixList& aml = orig_rs->getPositionalStateContainer()->getAttrMatrixList(); + for(osgUtil::PositionalStateContainer::AttrMatrixList::iterator itr = aml.begin(); + itr != aml.end(); + ++itr) + { + const osg::Light* light = dynamic_cast(itr->first.get()); + if (light) + { + osg::RefMatrix* matrix = itr->second.get(); + if (matrix) lightpos = light->getPosition() * (*matrix); + else lightpos = light->getPosition(); + selectLight = light; + } + } + + if (selectLight) + { + osg::notify(osg::NOTICE)<<"Selected light "<accept(cv); + + } // reapply the original traversal mask cv.setTraversalMask( traversalMask ); diff --git a/src/osgShadow/ShadowVolume.cpp b/src/osgShadow/ShadowVolume.cpp index d960a2f04..0e7251551 100644 --- a/src/osgShadow/ShadowVolume.cpp +++ b/src/osgShadow/ShadowVolume.cpp @@ -23,117 +23,12 @@ #include #include #include +#include #include using namespace osgShadow; -/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -// -// ComputeBoundingBoxVisitor -// -class ComputeBoundingBoxVisitor : public osg::NodeVisitor -{ -public: - ComputeBoundingBoxVisitor(): - osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN) - { - } - - virtual void reset() - { - _matrixStack.clear(); - _bb.init(); - } - - osg::BoundingBox& getBoundingBox() { return _bb; } - - void getPolytope(osg::Polytope& polytope, float margin=0.1) const - { - float delta = _bb.radius()*margin; - polytope.add( osg::Plane(0.0, 0.0, 1.0, -(_bb.zMin()-delta)) ); - polytope.add( osg::Plane(0.0, 0.0, -1.0, (_bb.zMax()+delta)) ); - - polytope.add( osg::Plane(1.0, 0.0, 0.0, -(_bb.xMin()-delta)) ); - polytope.add( osg::Plane(-1.0, 0.0, 0.0, (_bb.xMax()+delta)) ); - - polytope.add( osg::Plane(0.0, 1.0, 0.0, -(_bb.yMin()-delta)) ); - polytope.add( osg::Plane(0.0, -1.0, 0.0, (_bb.yMax()+delta)) ); - } - - void getBase(osg::Polytope& polytope, float margin=0.1) const - { - float delta = _bb.radius()*margin; - polytope.add( osg::Plane(0.0, 0.0, 1.0, -(_bb.zMin()-delta)) ); - } - - void apply(osg::Node& node) - { - traverse(node); - } - - void apply(osg::Transform& transform) - { - osg::Matrix matrix; - if (!_matrixStack.empty()) matrix = _matrixStack.back(); - - transform.computeLocalToWorldMatrix(matrix,this); - - pushMatrix(matrix); - - traverse(transform); - - popMatrix(); - } - - void apply(osg::Geode& geode) - { - for(unsigned int i=0; igetBound()); - else - { - osg::Matrix& matrix = _matrixStack.back(); - const osg::BoundingBox& dbb = drawable->getBound(); - if (dbb.valid()) - { - _bb.expandBy(dbb.corner(0) * matrix); - _bb.expandBy(dbb.corner(1) * matrix); - _bb.expandBy(dbb.corner(2) * matrix); - _bb.expandBy(dbb.corner(3) * matrix); - _bb.expandBy(dbb.corner(4) * matrix); - _bb.expandBy(dbb.corner(5) * matrix); - _bb.expandBy(dbb.corner(6) * matrix); - _bb.expandBy(dbb.corner(7) * matrix); - } - } - } - -protected: - - typedef std::vector MatrixStack; - - MatrixStack _matrixStack; - osg::BoundingBox _bb; -}; - - /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // // ShadowVolume @@ -176,7 +71,7 @@ void ShadowVolume::init() if (!_shadowedScene) return; // get the bounds of the model. - ComputeBoundingBoxVisitor cbbv; + osg::ComputeBoundsVisitor cbbv; _shadowedScene->osg::Group::traverse(cbbv); diff --git a/src/osgWrappers/osg/Array.cpp b/src/osgWrappers/osg/Array.cpp index b40a0ebcc..7476d2edb 100644 --- a/src/osgWrappers/osg/Array.cpp +++ b/src/osgWrappers/osg/Array.cpp @@ -13,17 +13,7 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -595,364 +585,6 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::IndexArray) ""); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) - I_Constructor0(____ValueVisitor, - "", - ""); - I_Method1(void, apply, IN, GLbyte &, x, - Properties::VIRTUAL, - __void__apply__GLbyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLshort &, x, - Properties::VIRTUAL, - __void__apply__GLshort_R1, - "", - ""); - I_Method1(void, apply, IN, GLint &, x, - Properties::VIRTUAL, - __void__apply__GLint_R1, - "", - ""); - I_Method1(void, apply, IN, GLushort &, x, - Properties::VIRTUAL, - __void__apply__GLushort_R1, - "", - ""); - I_Method1(void, apply, IN, GLubyte &, x, - Properties::VIRTUAL, - __void__apply__GLubyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLuint &, x, - Properties::VIRTUAL, - __void__apply__GLuint_R1, - "", - ""); - I_Method1(void, apply, IN, GLfloat &, x, - Properties::VIRTUAL, - __void__apply__GLfloat_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2 &, x, - Properties::VIRTUAL, - __void__apply__Vec2_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3 &, x, - Properties::VIRTUAL, - __void__apply__Vec3_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4 &, x, - Properties::VIRTUAL, - __void__apply__Vec4_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4ub &, x, - Properties::VIRTUAL, - __void__apply__Vec4ub_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2b &, x, - Properties::VIRTUAL, - __void__apply__Vec2b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3b &, x, - Properties::VIRTUAL, - __void__apply__Vec3b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4b &, x, - Properties::VIRTUAL, - __void__apply__Vec4b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2s &, x, - Properties::VIRTUAL, - __void__apply__Vec2s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3s &, x, - Properties::VIRTUAL, - __void__apply__Vec3s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4s &, x, - Properties::VIRTUAL, - __void__apply__Vec4s_R1, - "", - ""); - I_Constructor0(____ValueVisitor, - "", - ""); - I_Method1(void, apply, IN, GLbyte &, x, - Properties::VIRTUAL, - __void__apply__GLbyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLshort &, x, - Properties::VIRTUAL, - __void__apply__GLshort_R1, - "", - ""); - I_Method1(void, apply, IN, GLint &, x, - Properties::VIRTUAL, - __void__apply__GLint_R1, - "", - ""); - I_Method1(void, apply, IN, GLushort &, x, - Properties::VIRTUAL, - __void__apply__GLushort_R1, - "", - ""); - I_Method1(void, apply, IN, GLubyte &, x, - Properties::VIRTUAL, - __void__apply__GLubyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLuint &, x, - Properties::VIRTUAL, - __void__apply__GLuint_R1, - "", - ""); - I_Method1(void, apply, IN, GLfloat &, x, - Properties::VIRTUAL, - __void__apply__GLfloat_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2 &, x, - Properties::VIRTUAL, - __void__apply__Vec2_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3 &, x, - Properties::VIRTUAL, - __void__apply__Vec3_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4 &, x, - Properties::VIRTUAL, - __void__apply__Vec4_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4ub &, x, - Properties::VIRTUAL, - __void__apply__Vec4ub_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2b &, x, - Properties::VIRTUAL, - __void__apply__Vec2b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3b &, x, - Properties::VIRTUAL, - __void__apply__Vec3b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4b &, x, - Properties::VIRTUAL, - __void__apply__Vec4b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2s &, x, - Properties::VIRTUAL, - __void__apply__Vec2s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3s &, x, - Properties::VIRTUAL, - __void__apply__Vec3s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4s &, x, - Properties::VIRTUAL, - __void__apply__Vec4s_R1, - "", - ""); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::ValueVisitor) - I_Constructor0(____ValueVisitor, - "", - ""); - I_Method1(void, apply, IN, GLbyte &, x, - Properties::VIRTUAL, - __void__apply__GLbyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLshort &, x, - Properties::VIRTUAL, - __void__apply__GLshort_R1, - "", - ""); - I_Method1(void, apply, IN, GLint &, x, - Properties::VIRTUAL, - __void__apply__GLint_R1, - "", - ""); - I_Method1(void, apply, IN, GLushort &, x, - Properties::VIRTUAL, - __void__apply__GLushort_R1, - "", - ""); - I_Method1(void, apply, IN, GLubyte &, x, - Properties::VIRTUAL, - __void__apply__GLubyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLuint &, x, - Properties::VIRTUAL, - __void__apply__GLuint_R1, - "", - ""); - I_Method1(void, apply, IN, GLfloat &, x, - Properties::VIRTUAL, - __void__apply__GLfloat_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2 &, x, - Properties::VIRTUAL, - __void__apply__Vec2_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3 &, x, - Properties::VIRTUAL, - __void__apply__Vec3_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4 &, x, - Properties::VIRTUAL, - __void__apply__Vec4_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4ub &, x, - Properties::VIRTUAL, - __void__apply__Vec4ub_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2b &, x, - Properties::VIRTUAL, - __void__apply__Vec2b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3b &, x, - Properties::VIRTUAL, - __void__apply__Vec3b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4b &, x, - Properties::VIRTUAL, - __void__apply__Vec4b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2s &, x, - Properties::VIRTUAL, - __void__apply__Vec2s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3s &, x, - Properties::VIRTUAL, - __void__apply__Vec3s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4s &, x, - Properties::VIRTUAL, - __void__apply__Vec4s_R1, - "", - ""); - I_Constructor0(____ValueVisitor, - "", - ""); - I_Method1(void, apply, IN, GLbyte &, x, - Properties::VIRTUAL, - __void__apply__GLbyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLshort &, x, - Properties::VIRTUAL, - __void__apply__GLshort_R1, - "", - ""); - I_Method1(void, apply, IN, GLint &, x, - Properties::VIRTUAL, - __void__apply__GLint_R1, - "", - ""); - I_Method1(void, apply, IN, GLushort &, x, - Properties::VIRTUAL, - __void__apply__GLushort_R1, - "", - ""); - I_Method1(void, apply, IN, GLubyte &, x, - Properties::VIRTUAL, - __void__apply__GLubyte_R1, - "", - ""); - I_Method1(void, apply, IN, GLuint &, x, - Properties::VIRTUAL, - __void__apply__GLuint_R1, - "", - ""); - I_Method1(void, apply, IN, GLfloat &, x, - Properties::VIRTUAL, - __void__apply__GLfloat_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2 &, x, - Properties::VIRTUAL, - __void__apply__Vec2_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3 &, x, - Properties::VIRTUAL, - __void__apply__Vec3_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4 &, x, - Properties::VIRTUAL, - __void__apply__Vec4_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4ub &, x, - Properties::VIRTUAL, - __void__apply__Vec4ub_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2b &, x, - Properties::VIRTUAL, - __void__apply__Vec2b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3b &, x, - Properties::VIRTUAL, - __void__apply__Vec3b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4b &, x, - Properties::VIRTUAL, - __void__apply__Vec4b_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec2s &, x, - Properties::VIRTUAL, - __void__apply__Vec2s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec3s &, x, - Properties::VIRTUAL, - __void__apply__Vec3s_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Vec4s &, x, - Properties::VIRTUAL, - __void__apply__Vec4s_R1, - "", - ""); -END_REFLECTOR - STD_VECTOR_REFLECTOR(std::vector); STD_VECTOR_REFLECTOR(std::vector); diff --git a/src/osgWrappers/osg/Camera.cpp b/src/osgWrappers/osg/Camera.cpp index 12f4a10c5..59a99c5ff 100644 --- a/src/osgWrappers/osg/Camera.cpp +++ b/src/osgWrappers/osg/Camera.cpp @@ -21,14 +21,14 @@ #include #include #include +#include #include #include +#include #include #include #include #include -#include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osg/ComputeBoundsVisitor.cpp b/src/osgWrappers/osg/ComputeBoundsVisitor.cpp new file mode 100644 index 000000000..b19cbf538 --- /dev/null +++ b/src/osgWrappers/osg/ComputeBoundsVisitor.cpp @@ -0,0 +1,91 @@ +// *************************************************************************** +// +// Generated automatically by genwrapper. +// Please DO NOT EDIT this file! +// +// *************************************************************************** + +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include + +// Must undefine IN and OUT macros defined in Windows headers +#ifdef IN +#undef IN +#endif +#ifdef OUT +#undef OUT +#endif + +BEGIN_OBJECT_REFLECTOR(osg::ComputeBoundsVisitor) + I_BaseType(osg::NodeVisitor); + I_ConstructorWithDefaults1(IN, TraversalMode, traversalMode, TRAVERSE_ALL_CHILDREN, + Properties::NON_EXPLICIT, + ____ComputeBoundsVisitor__TraversalMode, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method0(osg::BoundingBox &, getBoundingBox, + Properties::NON_VIRTUAL, + __osg_BoundingBox_R1__getBoundingBox, + "", + ""); + I_MethodWithDefaults2(void, getPolytope, IN, osg::Polytope &, polytope, , IN, float, margin, 0.1, + Properties::NON_VIRTUAL, + __void__getPolytope__osg_Polytope_R1__float, + "", + ""); + I_MethodWithDefaults2(void, getBase, IN, osg::Polytope &, polytope, , IN, float, margin, 0.1, + Properties::NON_VIRTUAL, + __void__getBase__osg_Polytope_R1__float, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::NON_VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::NON_VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, pushMatrix, IN, osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__pushMatrix__osg_Matrix_R1, + "", + ""); + I_Method0(void, popMatrix, + Properties::NON_VIRTUAL, + __void__popMatrix, + "", + ""); + I_Method1(void, applyDrawable, IN, osg::Drawable *, drawable, + Properties::NON_VIRTUAL, + __void__applyDrawable__osg_Drawable_P1, + "", + ""); + I_SimpleProperty(osg::BoundingBox &, BoundingBox, + __osg_BoundingBox_R1__getBoundingBox, + 0); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/FrameBufferObject.cpp b/src/osgWrappers/osg/FrameBufferObject.cpp index 52871c3ee..635308294 100644 --- a/src/osgWrappers/osg/FrameBufferObject.cpp +++ b/src/osgWrappers/osg/FrameBufferObject.cpp @@ -15,13 +15,13 @@ #include #include #include +#include +#include #include +#include #include #include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -737,3 +737,387 @@ BEGIN_OBJECT_REFLECTOR(osg::FrameBufferObject) 0); END_REFLECTOR +BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____RenderBuffer, + "", + ""); + I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat, + ____RenderBuffer__int__int__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, getWidth, + Properties::NON_VIRTUAL, + __int__getWidth, + "", + ""); + I_Method0(int, getHeight, + Properties::NON_VIRTUAL, + __int__getHeight, + "", + ""); + I_Method1(void, setWidth, IN, int, w, + Properties::NON_VIRTUAL, + __void__setWidth__int, + "", + ""); + I_Method1(void, setHeight, IN, int, h, + Properties::NON_VIRTUAL, + __void__setHeight__int, + "", + ""); + I_Method2(void, setSize, IN, int, w, IN, int, h, + Properties::NON_VIRTUAL, + __void__setSize__int__int, + "", + ""); + I_Method0(GLenum, getInternalFormat, + Properties::NON_VIRTUAL, + __GLenum__getInternalFormat, + "", + ""); + I_Method1(void, setInternalFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLenum, + "", + ""); + I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + Properties::NON_VIRTUAL, + __int__compare__C5_RenderBuffer_R1, + "", + ""); + I_Constructor0(____RenderBuffer, + "", + ""); + I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat, + ____RenderBuffer__int__int__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, getWidth, + Properties::NON_VIRTUAL, + __int__getWidth, + "", + ""); + I_Method0(int, getHeight, + Properties::NON_VIRTUAL, + __int__getHeight, + "", + ""); + I_Method1(void, setWidth, IN, int, w, + Properties::NON_VIRTUAL, + __void__setWidth__int, + "", + ""); + I_Method1(void, setHeight, IN, int, h, + Properties::NON_VIRTUAL, + __void__setHeight__int, + "", + ""); + I_Method2(void, setSize, IN, int, w, IN, int, h, + Properties::NON_VIRTUAL, + __void__setSize__int__int, + "", + ""); + I_Method0(GLenum, getInternalFormat, + Properties::NON_VIRTUAL, + __GLenum__getInternalFormat, + "", + ""); + I_Method1(void, setInternalFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLenum, + "", + ""); + I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + Properties::NON_VIRTUAL, + __int__compare__C5_RenderBuffer_R1, + "", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_SimpleProperty(int, Height, + __int__getHeight, + __void__setHeight__int); + I_SimpleProperty(GLenum, InternalFormat, + __GLenum__getInternalFormat, + __void__setInternalFormat__GLenum); + I_SimpleProperty(int, Width, + __int__getWidth, + __void__setWidth__int); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::RenderBuffer) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____RenderBuffer, + "", + ""); + I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat, + ____RenderBuffer__int__int__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, getWidth, + Properties::NON_VIRTUAL, + __int__getWidth, + "", + ""); + I_Method0(int, getHeight, + Properties::NON_VIRTUAL, + __int__getHeight, + "", + ""); + I_Method1(void, setWidth, IN, int, w, + Properties::NON_VIRTUAL, + __void__setWidth__int, + "", + ""); + I_Method1(void, setHeight, IN, int, h, + Properties::NON_VIRTUAL, + __void__setHeight__int, + "", + ""); + I_Method2(void, setSize, IN, int, w, IN, int, h, + Properties::NON_VIRTUAL, + __void__setSize__int__int, + "", + ""); + I_Method0(GLenum, getInternalFormat, + Properties::NON_VIRTUAL, + __GLenum__getInternalFormat, + "", + ""); + I_Method1(void, setInternalFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLenum, + "", + ""); + I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + Properties::NON_VIRTUAL, + __int__compare__C5_RenderBuffer_R1, + "", + ""); + I_Constructor0(____RenderBuffer, + "", + ""); + I_Constructor3(IN, int, width, IN, int, height, IN, GLenum, internalFormat, + ____RenderBuffer__int__int__GLenum, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::RenderBuffer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderBuffer__C5_RenderBuffer_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(int, getWidth, + Properties::NON_VIRTUAL, + __int__getWidth, + "", + ""); + I_Method0(int, getHeight, + Properties::NON_VIRTUAL, + __int__getHeight, + "", + ""); + I_Method1(void, setWidth, IN, int, w, + Properties::NON_VIRTUAL, + __void__setWidth__int, + "", + ""); + I_Method1(void, setHeight, IN, int, h, + Properties::NON_VIRTUAL, + __void__setHeight__int, + "", + ""); + I_Method2(void, setSize, IN, int, w, IN, int, h, + Properties::NON_VIRTUAL, + __void__setSize__int__int, + "", + ""); + I_Method0(GLenum, getInternalFormat, + Properties::NON_VIRTUAL, + __GLenum__getInternalFormat, + "", + ""); + I_Method1(void, setInternalFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setInternalFormat__GLenum, + "", + ""); + I_Method2(GLuint, getObjectID, IN, unsigned int, contextID, IN, const osg::FBOExtensions *, ext, + Properties::NON_VIRTUAL, + __GLuint__getObjectID__unsigned_int__C5_FBOExtensions_P1, + "", + ""); + I_Method1(int, compare, IN, const osg::RenderBuffer &, rb, + Properties::NON_VIRTUAL, + __int__compare__C5_RenderBuffer_R1, + "", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_StaticMethod2(void, deleteRenderBuffer, IN, unsigned int, contextID, IN, GLuint, rb, + __void__deleteRenderBuffer__unsigned_int__GLuint_S, + "Mark internal RenderBuffer for deletion. ", + "Deletion requests are queued until they can be executed in the proper GL context. "); + I_StaticMethod3(void, flushDeletedRenderBuffers, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, + __void__flushDeletedRenderBuffers__unsigned_int__double__double_R1_S, + "flush all the cached RenderBuffers which need to be deleted in the OpenGL context related to contextID. ", + ""); + I_SimpleProperty(int, Height, + __int__getHeight, + __void__setHeight__int); + I_SimpleProperty(GLenum, InternalFormat, + __GLenum__getInternalFormat, + __void__setInternalFormat__GLenum); + I_SimpleProperty(int, Width, + __int__getWidth, + __void__setWidth__int); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/GNUmakefile b/src/osgWrappers/osg/GNUmakefile index d229e230a..612c5cf74 100644 --- a/src/osgWrappers/osg/GNUmakefile +++ b/src/osgWrappers/osg/GNUmakefile @@ -9,6 +9,7 @@ CXXFILES =\ Array.cpp\ BufferObject.cpp\ Camera.cpp\ + ComputeBoundsVisitor.cpp\ DrawPixels.cpp\ Drawable.cpp\ Endian.cpp\ @@ -19,7 +20,7 @@ CXXFILES =\ FrontFace.cpp\ Geode.cpp\ Notify.cpp\ - PagedLOD.cpp\ + Plane.cpp\ Point.cpp\ PointSprite.cpp\ PolygonMode.cpp\ @@ -33,33 +34,31 @@ CXXFILES =\ ProxyNode.cpp\ Quat.cpp\ Referenced.cpp\ - Sequence.cpp\ + Scissor.cpp\ ShadeModel.cpp\ - Shader.cpp\ ShadowVolumeOccluder.cpp\ Shape.cpp\ ShapeDrawable.cpp\ State.cpp\ StateSet.cpp\ Stats.cpp\ - StencilTwoSided.cpp\ - Switch.cpp\ - TexEnvCombine.cpp\ - TexEnvFilter.cpp\ + TexEnv.cpp\ + TexGen.cpp\ + TexGenNode.cpp\ + TexMat.cpp\ Texture.cpp\ - Texture1D.cpp\ Texture2D.cpp\ Texture3D.cpp\ TextureCubeMap.cpp\ - TextureRectangle.cpp\ Transform.cpp\ Uniform.cpp\ - Vec2d.cpp\ + Vec2f.cpp\ + Vec2s.cpp\ Vec3d.cpp\ Vec4b.cpp\ + Vec4d.cpp\ Vec4s.cpp\ VertexProgram.cpp\ - View.cpp\ LIBS += -losg -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osg/Plane.cpp b/src/osgWrappers/osg/Plane.cpp index 3e4dcec8a..49e3bc843 100644 --- a/src/osgWrappers/osg/Plane.cpp +++ b/src/osgWrappers/osg/Plane.cpp @@ -10,15 +10,16 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -198,6 +199,497 @@ BEGIN_VALUE_REFLECTOR(osg::Plane) __void__transformProvidingInverse__C5_osg_Matrix_R1, "Transform the plane by providing a pre inverted matrix. ", "see transform for details. "); + I_Constructor0(____Plane, + "", + ""); + I_Constructor1(IN, const osg::Plane &, pl, + Properties::NON_EXPLICIT, + ____Plane__C5_Plane_R1, + "", + ""); + I_Constructor4(IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + ____Plane__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, osg::Plane::value_type, d, + ____Plane__C5_Vec3_type_R1__value_type, + "", + ""); + I_Constructor3(IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, + __void__set__C5_Plane_R1, + "", + ""); + I_Method4(void, set, IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4d_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, double, d, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__double, + "", + ""); + I_Method3(void, set, IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method0(void, flip, + Properties::NON_VIRTUAL, + __void__flip, + "flip/reverse the orientation of the plane. ", + ""); + I_Method0(void, makeUnitLength, + Properties::NON_VIRTUAL, + __void__makeUnitLength, + "", + ""); + I_Method0(void, calculateUpperLowerBBCorners, + Properties::NON_VIRTUAL, + __void__calculateUpperLowerBBCorners, + "calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations. ", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method0(osg::Plane::Vec4_type, asVec4, + Properties::NON_VIRTUAL, + __Vec4_type__asVec4, + "", + ""); + I_Method0(osg::Plane::Vec3_type, getNormal, + Properties::NON_VIRTUAL, + __Vec3_type__getNormal, + "", + ""); + I_Method1(float, distance, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__distance__C5_osg_Vec3f_R1, + "calculate the distance between a point and the plane. ", + ""); + I_Method1(double, distance, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__distance__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(float, dotProductNormal, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__dotProductNormal__C5_osg_Vec3f_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(double, dotProductNormal, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__dotProductNormal__C5_osg_Vec3d_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __int__intersect__C5_std_vectorT1_Vec3__R1, + "intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. ", + ""); + I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingSphere_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(int, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingBox_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(void, transform, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transform__C5_osg_Matrix_R1, + "Transform the plane by matrix. ", + "Note, this operation carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the plane by providing a pre inverted matrix. ", + "see transform for details. "); + I_SimpleProperty(osg::Plane::Vec3_type, Normal, + __Vec3_type__getNormal, + 0); +END_REFLECTOR + +TYPE_NAME_ALIAS(double, osg::Plane::value_type); + +TYPE_NAME_ALIAS(osg::Vec3d, osg::Plane::Vec3_type); + +TYPE_NAME_ALIAS(osg::Vec4d, osg::Plane::Vec4_type); + +BEGIN_VALUE_REFLECTOR(osg::Plane) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_Constructor0(____Plane, + "", + ""); + I_Constructor1(IN, const osg::Plane &, pl, + Properties::NON_EXPLICIT, + ____Plane__C5_Plane_R1, + "", + ""); + I_Constructor4(IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + ____Plane__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, osg::Plane::value_type, d, + ____Plane__C5_Vec3_type_R1__value_type, + "", + ""); + I_Constructor3(IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, + __void__set__C5_Plane_R1, + "", + ""); + I_Method4(void, set, IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4d_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, double, d, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__double, + "", + ""); + I_Method3(void, set, IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method0(void, flip, + Properties::NON_VIRTUAL, + __void__flip, + "flip/reverse the orientation of the plane. ", + ""); + I_Method0(void, makeUnitLength, + Properties::NON_VIRTUAL, + __void__makeUnitLength, + "", + ""); + I_Method0(void, calculateUpperLowerBBCorners, + Properties::NON_VIRTUAL, + __void__calculateUpperLowerBBCorners, + "calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations. ", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method0(osg::Plane::Vec4_type, asVec4, + Properties::NON_VIRTUAL, + __Vec4_type__asVec4, + "", + ""); + I_Method0(osg::Plane::Vec3_type, getNormal, + Properties::NON_VIRTUAL, + __Vec3_type__getNormal, + "", + ""); + I_Method1(float, distance, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__distance__C5_osg_Vec3f_R1, + "calculate the distance between a point and the plane. ", + ""); + I_Method1(double, distance, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__distance__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(float, dotProductNormal, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__dotProductNormal__C5_osg_Vec3f_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(double, dotProductNormal, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__dotProductNormal__C5_osg_Vec3d_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __int__intersect__C5_std_vectorT1_Vec3__R1, + "intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. ", + ""); + I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingSphere_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(int, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingBox_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(void, transform, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transform__C5_osg_Matrix_R1, + "Transform the plane by matrix. ", + "Note, this operation carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the plane by providing a pre inverted matrix. ", + "see transform for details. "); + I_Constructor0(____Plane, + "", + ""); + I_Constructor1(IN, const osg::Plane &, pl, + Properties::NON_EXPLICIT, + ____Plane__C5_Plane_R1, + "", + ""); + I_Constructor4(IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + ____Plane__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4f_R1, + "", + ""); + I_Constructor1(IN, const osg::Vec4d &, vec, + Properties::NON_EXPLICIT, + ____Plane__C5_Vec4d_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, osg::Plane::value_type, d, + ____Plane__C5_Vec3_type_R1__value_type, + "", + ""); + I_Constructor3(IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Constructor2(IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + ____Plane__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Plane &, pl, + Properties::NON_VIRTUAL, + __void__set__C5_Plane_R1, + "", + ""); + I_Method4(void, set, IN, osg::Plane::value_type, a, IN, osg::Plane::value_type, b, IN, osg::Plane::value_type, c, IN, osg::Plane::value_type, d, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4f &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4f_R1, + "", + ""); + I_Method1(void, set, IN, const osg::Vec4d &, vec, + Properties::NON_VIRTUAL, + __void__set__C5_Vec4d_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, double, d, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__double, + "", + ""); + I_Method3(void, set, IN, const osg::Plane::Vec3_type &, v1, IN, const osg::Plane::Vec3_type &, v2, IN, const osg::Plane::Vec3_type &, v3, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method2(void, set, IN, const osg::Plane::Vec3_type &, norm, IN, const osg::Plane::Vec3_type &, point, + Properties::NON_VIRTUAL, + __void__set__C5_Vec3_type_R1__C5_Vec3_type_R1, + "", + ""); + I_Method0(void, flip, + Properties::NON_VIRTUAL, + __void__flip, + "flip/reverse the orientation of the plane. ", + ""); + I_Method0(void, makeUnitLength, + Properties::NON_VIRTUAL, + __void__makeUnitLength, + "", + ""); + I_Method0(void, calculateUpperLowerBBCorners, + Properties::NON_VIRTUAL, + __void__calculateUpperLowerBBCorners, + "calculate the upper and lower bounding box corners to be used in the intersect(BoundingBox&) method for speeding calculations. ", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Plane::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method0(osg::Plane::Vec4_type, asVec4, + Properties::NON_VIRTUAL, + __Vec4_type__asVec4, + "", + ""); + I_Method0(osg::Plane::Vec3_type, getNormal, + Properties::NON_VIRTUAL, + __Vec3_type__getNormal, + "", + ""); + I_Method1(float, distance, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__distance__C5_osg_Vec3f_R1, + "calculate the distance between a point and the plane. ", + ""); + I_Method1(double, distance, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__distance__C5_osg_Vec3d_R1, + "", + ""); + I_Method1(float, dotProductNormal, IN, const osg::Vec3f &, v, + Properties::NON_VIRTUAL, + __float__dotProductNormal__C5_osg_Vec3f_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(double, dotProductNormal, IN, const osg::Vec3d &, v, + Properties::NON_VIRTUAL, + __double__dotProductNormal__C5_osg_Vec3d_R1, + "calculate the dot product of the plane normal and a point. ", + ""); + I_Method1(int, intersect, IN, const std::vector< osg::Vec3 > &, vertices, + Properties::NON_VIRTUAL, + __int__intersect__C5_std_vectorT1_Vec3__R1, + "intersection test between plane and vertex list return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. ", + ""); + I_Method1(int, intersect, IN, const osg::BoundingSphere &, bs, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingSphere_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(int, intersect, IN, const osg::BoundingBox &, bb, + Properties::NON_VIRTUAL, + __int__intersect__C5_BoundingBox_R1, + "intersection test between plane and bounding sphere. ", + "return 1 if the bs is completely above plane, return 0 if the bs intersects the plane, return -1 if the bs is completely below the plane. "); + I_Method1(void, transform, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transform__C5_osg_Matrix_R1, + "Transform the plane by matrix. ", + "Note, this operation carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This make this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf "); + I_Method1(void, transformProvidingInverse, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__transformProvidingInverse__C5_osg_Matrix_R1, + "Transform the plane by providing a pre inverted matrix. ", + "see transform for details. "); I_SimpleProperty(osg::Plane::Vec3_type, Normal, __Vec3_type__getNormal, 0); diff --git a/src/osgWrappers/osg/Point.cpp b/src/osgWrappers/osg/Point.cpp index e3807fd80..33fbf3a4d 100644 --- a/src/osgWrappers/osg/Point.cpp +++ b/src/osgWrappers/osg/Point.cpp @@ -10,7 +10,12 @@ #include #include +#include +#include +#include +#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -20,6 +25,492 @@ #undef OUT #endif +BEGIN_OBJECT_REFLECTOR(osg::Point) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Point, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setSize, IN, float, size, + Properties::NON_VIRTUAL, + __void__setSize__float, + "", + ""); + I_Method0(float, getSize, + Properties::NON_VIRTUAL, + __float__getSize, + "", + ""); + I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + Properties::NON_VIRTUAL, + __void__setFadeThresholdSize__float, + "", + ""); + I_Method0(float, getFadeThresholdSize, + Properties::NON_VIRTUAL, + __float__getFadeThresholdSize, + "", + ""); + I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + Properties::NON_VIRTUAL, + __void__setDistanceAttenuation__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDistanceAttenuation, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getDistanceAttenuation, + "", + ""); + I_Method1(void, setMinSize, IN, float, minSize, + Properties::NON_VIRTUAL, + __void__setMinSize__float, + "", + ""); + I_Method0(float, getMinSize, + Properties::NON_VIRTUAL, + __float__getMinSize, + "", + ""); + I_Method1(void, setMaxSize, IN, float, maxSize, + Properties::NON_VIRTUAL, + __void__setMaxSize__float, + "", + ""); + I_Method0(float, getMaxSize, + Properties::NON_VIRTUAL, + __float__getMaxSize, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Constructor0(____Point, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setSize, IN, float, size, + Properties::NON_VIRTUAL, + __void__setSize__float, + "", + ""); + I_Method0(float, getSize, + Properties::NON_VIRTUAL, + __float__getSize, + "", + ""); + I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + Properties::NON_VIRTUAL, + __void__setFadeThresholdSize__float, + "", + ""); + I_Method0(float, getFadeThresholdSize, + Properties::NON_VIRTUAL, + __float__getFadeThresholdSize, + "", + ""); + I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + Properties::NON_VIRTUAL, + __void__setDistanceAttenuation__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDistanceAttenuation, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getDistanceAttenuation, + "", + ""); + I_Method1(void, setMinSize, IN, float, minSize, + Properties::NON_VIRTUAL, + __void__setMinSize__float, + "", + ""); + I_Method0(float, getMinSize, + Properties::NON_VIRTUAL, + __float__getMinSize, + "", + ""); + I_Method1(void, setMaxSize, IN, float, maxSize, + Properties::NON_VIRTUAL, + __void__setMaxSize__float, + "", + ""); + I_Method0(float, getMaxSize, + Properties::NON_VIRTUAL, + __float__getMaxSize, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec3 &, DistanceAttenuation, + __C5_Vec3_R1__getDistanceAttenuation, + __void__setDistanceAttenuation__C5_Vec3_R1); + I_SimpleProperty(float, FadeThresholdSize, + __float__getFadeThresholdSize, + __void__setFadeThresholdSize__float); + I_SimpleProperty(float, MaxSize, + __float__getMaxSize, + __void__setMaxSize__float); + I_SimpleProperty(float, MinSize, + __float__getMinSize, + __void__setMinSize__float); + I_SimpleProperty(float, Size, + __float__getSize, + __void__setSize__float); + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Point) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Point, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setSize, IN, float, size, + Properties::NON_VIRTUAL, + __void__setSize__float, + "", + ""); + I_Method0(float, getSize, + Properties::NON_VIRTUAL, + __float__getSize, + "", + ""); + I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + Properties::NON_VIRTUAL, + __void__setFadeThresholdSize__float, + "", + ""); + I_Method0(float, getFadeThresholdSize, + Properties::NON_VIRTUAL, + __float__getFadeThresholdSize, + "", + ""); + I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + Properties::NON_VIRTUAL, + __void__setDistanceAttenuation__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDistanceAttenuation, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getDistanceAttenuation, + "", + ""); + I_Method1(void, setMinSize, IN, float, minSize, + Properties::NON_VIRTUAL, + __void__setMinSize__float, + "", + ""); + I_Method0(float, getMinSize, + Properties::NON_VIRTUAL, + __float__getMinSize, + "", + ""); + I_Method1(void, setMaxSize, IN, float, maxSize, + Properties::NON_VIRTUAL, + __void__setMaxSize__float, + "", + ""); + I_Method0(float, getMaxSize, + Properties::NON_VIRTUAL, + __float__getMaxSize, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Constructor0(____Point, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Point &, point, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Point__C5_Point_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, setSize, IN, float, size, + Properties::NON_VIRTUAL, + __void__setSize__float, + "", + ""); + I_Method0(float, getSize, + Properties::NON_VIRTUAL, + __float__getSize, + "", + ""); + I_Method1(void, setFadeThresholdSize, IN, float, fadeThresholdSize, + Properties::NON_VIRTUAL, + __void__setFadeThresholdSize__float, + "", + ""); + I_Method0(float, getFadeThresholdSize, + Properties::NON_VIRTUAL, + __float__getFadeThresholdSize, + "", + ""); + I_Method1(void, setDistanceAttenuation, IN, const osg::Vec3 &, distanceAttenuation, + Properties::NON_VIRTUAL, + __void__setDistanceAttenuation__C5_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getDistanceAttenuation, + Properties::NON_VIRTUAL, + __C5_Vec3_R1__getDistanceAttenuation, + "", + ""); + I_Method1(void, setMinSize, IN, float, minSize, + Properties::NON_VIRTUAL, + __void__setMinSize__float, + "", + ""); + I_Method0(float, getMinSize, + Properties::NON_VIRTUAL, + __float__getMinSize, + "", + ""); + I_Method1(void, setMaxSize, IN, float, maxSize, + Properties::NON_VIRTUAL, + __void__setMaxSize__float, + "", + ""); + I_Method0(float, getMaxSize, + Properties::NON_VIRTUAL, + __float__getMaxSize, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_StaticMethod2(osg::Point::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, + __Extensions_P1__getExtensions__unsigned_int__bool_S, + "Returns the Extensions object for the given context. ", + "If createIfNotInitalized is true and the Exentsions object doesn't exist, getExtensions() creates it on the given context. Returns NULL if createIfNotInitalized is false and the Extensions object doesn't exist. "); + I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Point::Extensions *, extensions, + __void__setExtensions__unsigned_int__Extensions_P1_S, + "setExtensions() allows users to override the extensions across graphics contexts. ", + "Typically used when you have different extensions supported across graphics pipes, but need to ensure that they all use the same low common denominator extensions. "); + I_SimpleProperty(const osg::Vec3 &, DistanceAttenuation, + __C5_Vec3_R1__getDistanceAttenuation, + __void__setDistanceAttenuation__C5_Vec3_R1); + I_SimpleProperty(float, FadeThresholdSize, + __float__getFadeThresholdSize, + __void__setFadeThresholdSize__float); + I_SimpleProperty(float, MaxSize, + __float__getMaxSize, + __void__setMaxSize__float); + I_SimpleProperty(float, MinSize, + __float__getMinSize, + __void__setMinSize__float); + I_SimpleProperty(float, Size, + __float__getSize, + __void__setSize__float); + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + BEGIN_OBJECT_REFLECTOR(osg::Point::Extensions) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osg/Polytope.cpp b/src/osgWrappers/osg/Polytope.cpp index 517550f55..7fddf30cb 100644 --- a/src/osgWrappers/osg/Polytope.cpp +++ b/src/osgWrappers/osg/Polytope.cpp @@ -13,9 +13,9 @@ #include #include #include -#include #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers diff --git a/src/osgWrappers/osg/Program.cpp b/src/osgWrappers/osg/Program.cpp index 4e1c8f4cc..69f3bb523 100644 --- a/src/osgWrappers/osg/Program.cpp +++ b/src/osgWrappers/osg/Program.cpp @@ -13,11 +13,11 @@ #include #include #include +#include #include -#include #include -#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osg/Quat.cpp b/src/osgWrappers/osg/Quat.cpp index 31c5532d3..2cba3f9b2 100644 --- a/src/osgWrappers/osg/Quat.cpp +++ b/src/osgWrappers/osg/Quat.cpp @@ -14,10 +14,10 @@ #include #include #include -#include #include #include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osg/Scissor.cpp b/src/osgWrappers/osg/Scissor.cpp index 914d98d6a..1d2a33abd 100644 --- a/src/osgWrappers/osg/Scissor.cpp +++ b/src/osgWrappers/osg/Scissor.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::Scissor) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____Scissor, "", @@ -40,32 +41,32 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -130,9 +131,335 @@ BEGIN_OBJECT_REFLECTOR(osg::Scissor) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __void__apply__State_R1, - "apply the OpenGL state attributes. ", - "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); - I_SimpleProperty(osg::StateAttribute::Type, Type, + "", + ""); + I_Constructor0(____Scissor, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Scissor__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scissor__C5_Scissor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__setScissor__int__int__int__int, + "", + ""); + I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + Properties::NON_VIRTUAL, + __void__getScissor__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method0(int &, x, + Properties::NON_VIRTUAL, + __int_R1__x, + "", + ""); + I_Method0(int, x, + Properties::NON_VIRTUAL, + __int__x, + "", + ""); + I_Method0(int &, y, + Properties::NON_VIRTUAL, + __int_R1__y, + "", + ""); + I_Method0(int, y, + Properties::NON_VIRTUAL, + __int__y, + "", + ""); + I_Method0(int &, width, + Properties::NON_VIRTUAL, + __int_R1__width, + "", + ""); + I_Method0(int, width, + Properties::NON_VIRTUAL, + __int__width, + "", + ""); + I_Method0(int &, height, + Properties::NON_VIRTUAL, + __int_R1__height, + "", + ""); + I_Method0(int, height, + Properties::NON_VIRTUAL, + __int__height, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Scissor) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____Scissor, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Scissor__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scissor__C5_Scissor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__setScissor__int__int__int__int, + "", + ""); + I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + Properties::NON_VIRTUAL, + __void__getScissor__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method0(int &, x, + Properties::NON_VIRTUAL, + __int_R1__x, + "", + ""); + I_Method0(int, x, + Properties::NON_VIRTUAL, + __int__x, + "", + ""); + I_Method0(int &, y, + Properties::NON_VIRTUAL, + __int_R1__y, + "", + ""); + I_Method0(int, y, + Properties::NON_VIRTUAL, + __int__y, + "", + ""); + I_Method0(int &, width, + Properties::NON_VIRTUAL, + __int_R1__width, + "", + ""); + I_Method0(int, width, + Properties::NON_VIRTUAL, + __int__width, + "", + ""); + I_Method0(int &, height, + Properties::NON_VIRTUAL, + __int_R1__height, + "", + ""); + I_Method0(int, height, + Properties::NON_VIRTUAL, + __int__height, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Constructor0(____Scissor, + "", + ""); + I_Constructor4(IN, int, x, IN, int, y, IN, int, width, IN, int, height, + ____Scissor__int__int__int__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Scissor &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Scissor__C5_Scissor_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method4(void, setScissor, IN, int, x, IN, int, y, IN, int, width, IN, int, height, + Properties::NON_VIRTUAL, + __void__setScissor__int__int__int__int, + "", + ""); + I_Method4(void, getScissor, IN, int &, x, IN, int &, y, IN, int &, width, IN, int &, height, + Properties::NON_VIRTUAL, + __void__getScissor__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method0(int &, x, + Properties::NON_VIRTUAL, + __int_R1__x, + "", + ""); + I_Method0(int, x, + Properties::NON_VIRTUAL, + __int__x, + "", + ""); + I_Method0(int &, y, + Properties::NON_VIRTUAL, + __int_R1__y, + "", + ""); + I_Method0(int, y, + Properties::NON_VIRTUAL, + __int__y, + "", + ""); + I_Method0(int &, width, + Properties::NON_VIRTUAL, + __int_R1__width, + "", + ""); + I_Method0(int, width, + Properties::NON_VIRTUAL, + __int__width, + "", + ""); + I_Method0(int &, height, + Properties::NON_VIRTUAL, + __int_R1__height, + "", + ""); + I_Method0(int, height, + Properties::NON_VIRTUAL, + __int__height, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Shape.cpp b/src/osgWrappers/osg/Shape.cpp index 1734eb5fb..5b5a47f54 100644 --- a/src/osgWrappers/osg/Shape.cpp +++ b/src/osgWrappers/osg/Shape.cpp @@ -10,12 +10,14 @@ #include #include +#include #include #include #include #include #include #include +#include #include #include @@ -4077,3 +4079,313 @@ BEGIN_OBJECT_REFLECTOR(osg::Sphere) __void__setRadius__float); END_REFLECTOR +BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__Vec3Array_P1, + "", + ""); + I_Method0(osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __Vec3Array_P1__getVertices, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__setIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __IndexArray_P1__getIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __C5_IndexArray_P1__getIndices, + "", + ""); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__Vec3Array_P1, + "", + ""); + I_Method0(osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __Vec3Array_P1__getVertices, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__setIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __IndexArray_P1__getIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __C5_IndexArray_P1__getIndices, + "", + ""); + I_SimpleProperty(osg::IndexArray *, Indices, + __IndexArray_P1__getIndices, + __void__setIndices__IndexArray_P1); + I_SimpleProperty(osg::Vec3Array *, Vertices, + __Vec3Array_P1__getVertices, + __void__setVertices__Vec3Array_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TriangleMesh) + I_BaseType(osg::Shape); + I_BaseType(osg::Shape); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__Vec3Array_P1, + "", + ""); + I_Method0(osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __Vec3Array_P1__getVertices, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__setIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __IndexArray_P1__getIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __C5_IndexArray_P1__getIndices, + "", + ""); + I_Constructor0(____TriangleMesh, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TriangleMesh &, mesh, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TriangleMesh__C5_TriangleMesh_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, accept, IN, osg::ShapeVisitor &, sv, + Properties::VIRTUAL, + __void__accept__osg_ShapeVisitor_R1, + "", + ""); + I_Method1(void, accept, IN, osg::ConstShapeVisitor &, csv, + Properties::VIRTUAL, + __void__accept__osg_ConstShapeVisitor_R1, + "", + ""); + I_Method1(void, setVertices, IN, osg::Vec3Array *, vertices, + Properties::NON_VIRTUAL, + __void__setVertices__Vec3Array_P1, + "", + ""); + I_Method0(osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __Vec3Array_P1__getVertices, + "", + ""); + I_Method0(const osg::Vec3Array *, getVertices, + Properties::NON_VIRTUAL, + __C5_Vec3Array_P1__getVertices, + "", + ""); + I_Method1(void, setIndices, IN, osg::IndexArray *, indices, + Properties::NON_VIRTUAL, + __void__setIndices__IndexArray_P1, + "", + ""); + I_Method0(osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __IndexArray_P1__getIndices, + "", + ""); + I_Method0(const osg::IndexArray *, getIndices, + Properties::NON_VIRTUAL, + __C5_IndexArray_P1__getIndices, + "", + ""); + I_SimpleProperty(osg::IndexArray *, Indices, + __IndexArray_P1__getIndices, + __void__setIndices__IndexArray_P1); + I_SimpleProperty(osg::Vec3Array *, Vertices, + __Vec3Array_P1__getVertices, + __void__setVertices__Vec3Array_P1); +END_REFLECTOR + diff --git a/src/osgWrappers/osg/ShapeDrawable.cpp b/src/osgWrappers/osg/ShapeDrawable.cpp index cdb09bd7e..3432bea97 100644 --- a/src/osgWrappers/osg/ShapeDrawable.cpp +++ b/src/osgWrappers/osg/ShapeDrawable.cpp @@ -10,16 +10,10 @@ #include #include -#include #include #include #include -#include -#include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -29,412 +23,6 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) - I_BaseType(osg::Drawable); - I_BaseType(osg::Drawable); - I_Constructor0(____ShapeDrawable, - "", - ""); - I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, - ____ShapeDrawable__Shape_P1__TessellationHints_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(void, setColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setColor__C5_Vec4_R1, - "Set the color of the shape. ", - ""); - I_Method0(const osg::Vec4 &, getColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getColor, - "Get the color of the shape. ", - ""); - I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, - Properties::NON_VIRTUAL, - __void__setTessellationHints__TessellationHints_P1, - "", - ""); - I_Method0(osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method0(const osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __C5_TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::State &, state, - Properties::VIRTUAL, - __void__drawImplementation__State_R1, - "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", - "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_AttributeFunctor_R1, - "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_ConstAttributeFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, - Properties::VIRTUAL, - __void__accept__ConstAttributeFunctor_R1, - "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, - Properties::VIRTUAL, - __void__accept__PrimitiveFunctor_R1, - "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", - ""); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __BoundingBox__computeBound, - "", - ""); - I_Constructor0(____ShapeDrawable, - "", - ""); - I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, - ____ShapeDrawable__Shape_P1__TessellationHints_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(void, setColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setColor__C5_Vec4_R1, - "Set the color of the shape. ", - ""); - I_Method0(const osg::Vec4 &, getColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getColor, - "Get the color of the shape. ", - ""); - I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, - Properties::NON_VIRTUAL, - __void__setTessellationHints__TessellationHints_P1, - "", - ""); - I_Method0(osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method0(const osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __C5_TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::State &, state, - Properties::VIRTUAL, - __void__drawImplementation__State_R1, - "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", - "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_AttributeFunctor_R1, - "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_ConstAttributeFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, - Properties::VIRTUAL, - __void__accept__ConstAttributeFunctor_R1, - "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, - Properties::VIRTUAL, - __void__accept__PrimitiveFunctor_R1, - "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", - ""); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __BoundingBox__computeBound, - "", - ""); - I_SimpleProperty(const osg::Vec4 &, Color, - __C5_Vec4_R1__getColor, - __void__setColor__C5_Vec4_R1); - I_SimpleProperty(osg::TessellationHints *, TessellationHints, - __TessellationHints_P1__getTessellationHints, - __void__setTessellationHints__TessellationHints_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::ShapeDrawable) - I_BaseType(osg::Drawable); - I_BaseType(osg::Drawable); - I_Constructor0(____ShapeDrawable, - "", - ""); - I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, - ____ShapeDrawable__Shape_P1__TessellationHints_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(void, setColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setColor__C5_Vec4_R1, - "Set the color of the shape. ", - ""); - I_Method0(const osg::Vec4 &, getColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getColor, - "Get the color of the shape. ", - ""); - I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, - Properties::NON_VIRTUAL, - __void__setTessellationHints__TessellationHints_P1, - "", - ""); - I_Method0(osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method0(const osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __C5_TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::State &, state, - Properties::VIRTUAL, - __void__drawImplementation__State_R1, - "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", - "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_AttributeFunctor_R1, - "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_ConstAttributeFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, - Properties::VIRTUAL, - __void__accept__ConstAttributeFunctor_R1, - "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, - Properties::VIRTUAL, - __void__accept__PrimitiveFunctor_R1, - "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", - ""); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __BoundingBox__computeBound, - "", - ""); - I_Constructor0(____ShapeDrawable, - "", - ""); - I_ConstructorWithDefaults2(IN, osg::Shape *, shape, , IN, osg::TessellationHints *, hints, 0, - ____ShapeDrawable__Shape_P1__TessellationHints_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::ShapeDrawable &, pg, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____ShapeDrawable__C5_ShapeDrawable_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(void, setColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setColor__C5_Vec4_R1, - "Set the color of the shape. ", - ""); - I_Method0(const osg::Vec4 &, getColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getColor, - "Get the color of the shape. ", - ""); - I_Method1(void, setTessellationHints, IN, osg::TessellationHints *, hints, - Properties::NON_VIRTUAL, - __void__setTessellationHints__TessellationHints_P1, - "", - ""); - I_Method0(osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method0(const osg::TessellationHints *, getTessellationHints, - Properties::NON_VIRTUAL, - __C5_TessellationHints_P1__getTessellationHints, - "", - ""); - I_Method1(void, drawImplementation, IN, osg::State &, state, - Properties::VIRTUAL, - __void__drawImplementation__State_R1, - "Draw ShapeDrawable directly ignoring an OpenGL display list which could be attached. ", - "This is the internal draw method which does the drawing itself, and is the method to override when deriving from ShapeDrawable for user-drawn objects."); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_AttributeFunctor_R1, - "Return false, osg::ShapeDrawable does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_ConstAttributeFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, - Properties::VIRTUAL, - __void__accept__ConstAttributeFunctor_R1, - "Accept a ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_PrimitiveFunctor_R1, - "Return true, osg::ShapeDrawable does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, - Properties::VIRTUAL, - __void__accept__PrimitiveFunctor_R1, - "Accept a PrimitiveFunctor and call its methods to tell it about the internal primitives that this Drawable has. ", - ""); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __BoundingBox__computeBound, - "", - ""); - I_SimpleProperty(const osg::Vec4 &, Color, - __C5_Vec4_R1__getColor, - __void__setColor__C5_Vec4_R1); - I_SimpleProperty(osg::TessellationHints *, TessellationHints, - __TessellationHints_P1__getTessellationHints, - __void__setTessellationHints__TessellationHints_P1); -END_REFLECTOR - BEGIN_ENUM_REFLECTOR(osg::TessellationHints::TessellationMode) I_EnumLabel(osg::TessellationHints::USE_SHAPE_DEFAULTS); I_EnumLabel(osg::TessellationHints::USE_TARGET_NUM_FACES); diff --git a/src/osgWrappers/osg/State.cpp b/src/osgWrappers/osg/State.cpp index eb51eacab..6ef056b7f 100644 --- a/src/osgWrappers/osg/State.cpp +++ b/src/osgWrappers/osg/State.cpp @@ -15,12 +15,12 @@ #include #include #include -#include #include #include #include #include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -2398,39 +2398,3 @@ BEGIN_OBJECT_REFLECTOR(osg::State) 0); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____DynamicObjectRenderingCompletedCallback, - "", - ""); - I_Method1(void, completed, IN, osg::State *, x, - Properties::PURE_VIRTUAL, - __void__completed__osg_State_P1, - "", - ""); - I_Method1(void, completed, IN, osg::State *, x, - Properties::PURE_VIRTUAL, - __void__completed__osg_State_P1, - "", - ""); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::State::DynamicObjectRenderingCompletedCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____DynamicObjectRenderingCompletedCallback, - "", - ""); - I_Method1(void, completed, IN, osg::State *, x, - Properties::PURE_VIRTUAL, - __void__completed__osg_State_P1, - "", - ""); - I_Method1(void, completed, IN, osg::State *, x, - Properties::PURE_VIRTUAL, - __void__completed__osg_State_P1, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osg/StateSet.cpp b/src/osgWrappers/osg/StateSet.cpp index 852a58817..c8ec6d7fc 100644 --- a/src/osgWrappers/osg/StateSet.cpp +++ b/src/osgWrappers/osg/StateSet.cpp @@ -13,8 +13,12 @@ #include #include #include +#include #include +#include +#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -24,141 +28,1939 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) - I_VirtualBaseType(osg::Object); - I_VirtualBaseType(osg::Object); - I_Constructor0(____Callback, - "", - ""); - I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, - ____Callback__C5_Callback_R1__C5_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Constructor0(____Callback, - "", - ""); - I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, - ____Callback__C5_Callback_R1__C5_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); +TYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList); + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList); + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair); + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >, osg::StateSet::AttributeList); + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::ModeList >, osg::StateSet::TextureModeList); + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::AttributeList >, osg::StateSet::TextureAttributeList); + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefUniformPair); + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList); + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) + I_EnumLabel(osg::StateSet::DEFAULT_BIN); + I_EnumLabel(osg::StateSet::OPAQUE_BIN); + I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::StateSet::Callback) - I_VirtualBaseType(osg::Object); - I_VirtualBaseType(osg::Object); - I_Constructor0(____Callback, - "", - ""); - I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, - ____Callback__C5_Callback_R1__C5_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Constructor0(____Callback, - "", - ""); - I_Constructor2(IN, const osg::StateSet::Callback &, x, IN, const osg::CopyOp &, x, - ____Callback__C5_Callback_R1__C5_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) + I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StateSet) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + Properties::NON_VIRTUAL, + __int__compare__C5_StateSet_R1__bool, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateSet::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateSet. ", + ""); + I_Method0(osg::StateSet::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Object_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Object_P1__getParent__unsigned_int, + "Get a single const parent of this StateSet. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this StateSet. ", + "the number of parents of this StateSet. "); + I_Method0(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assestment of callback etc. ", + ""); + I_Method0(void, setGlobalDefaults, + Properties::NON_VIRTUAL, + __void__setGlobalDefaults, + "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the StateSet of all modes and attributes. ", + ""); + I_Method1(void, merge, IN, const osg::StateSet &, rhs, + Properties::NON_VIRTUAL, + __void__merge__C5_StateSet_R1, + "Merge this StateSet with the StateSet passed as parameter. ", + "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); + I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain the specified GLMode with a given value. ", + "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeMode__StateAttribute_GLMode, + "Remove mode from this StateSet. ", + "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, + "Get the value for a given GLMode. ", + " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); + I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + Properties::NON_VIRTUAL, + __void__setModeList__ModeList_R1, + "Set the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __ModeList_R1__getModeList, + "Return the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __C5_ModeList_R1__getModeList, + "Return the const list of all GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_Type__unsigned_int, + "remove attribute of specified type from StateSet. ", + ""); + I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_P1, + "remove attribute from StateSet. ", + ""); + I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, + "Get specified RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + Properties::NON_VIRTUAL, + __void__setAttributeList__AttributeList_R1, + "set the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __AttributeList_R1__getAttributeList, + "return the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __C5_AttributeList_R1__getAttributeList, + "return the const list of all StateAttributes contained in this const StateSet. ", + ""); + I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain specified GLMode with a given value. ", + " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); + I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, + "Remove texture mode from StateSet. ", + ""); + I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + "Get specified GLModeValue for specified GLMode. ", + "returns INHERIT if no GLModeValue is contained within StateSet. "); + I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + Properties::NON_VIRTUAL, + __void__setTextureModeList__TextureModeList_R1, + "set the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __TextureModeList_R1__getTextureModeList, + "return the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __C5_TextureModeList_R1__getTextureModeList, + "return the const list of all Texture related GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, + "remove texture attribute of specified type from StateSet. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, + "remove texture attribute from StateSet. ", + ""); + I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, + "Get specified Texture related RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + Properties::NON_VIRTUAL, + __void__setTextureAttributeList__TextureAttributeList_R1, + "Set the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __TextureAttributeList_R1__getTextureAttributeList, + "Return the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __C5_TextureAttributeList_R1__getTextureAttributeList, + "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", + ""); + I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified uniform and override flag. ", + ""); + I_Method1(void, removeUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeUniform__C5_std_string_R1, + "remove uniform of specified name from StateSet. ", + ""); + I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + Properties::NON_VIRTUAL, + __void__removeUniform__Uniform_P1, + "remove Uniform from StateSet. ", + ""); + I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __Uniform_P1__getUniform__C5_std_string_R1, + "Get Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + Properties::NON_VIRTUAL, + __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, + "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", + ""); + I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_Uniform_P1__getUniform__C5_std_string_R1, + "Get const Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, + "Get specified RefUniformPair for specified Uniform name. ", + "Returns NULL if no Uniform is contained within StateSet. "); + I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + Properties::NON_VIRTUAL, + __void__setUniformList__UniformList_R1, + "set the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __UniformList_R1__getUniformList, + "return the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __C5_UniformList_R1__getUniformList, + "return the const list of all Uniforms contained in this const StateSet. ", + ""); + I_Method1(void, setRenderingHint, IN, int, hint, + Properties::NON_VIRTUAL, + __void__setRenderingHint__int, + "Set the RenderingHint of this StateSet. ", + "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); + I_Method0(int, getRenderingHint, + Properties::NON_VIRTUAL, + __int__getRenderingHint, + "Get the RenderingHint of this StateSet. ", + ""); + I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + Properties::NON_VIRTUAL, + __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, + "Set the render bin details. ", + ""); + I_Method0(void, setRenderBinToInherit, + Properties::NON_VIRTUAL, + __void__setRenderBinToInherit, + "Set the render bin details to inherit. ", + ""); + I_Method0(bool, useRenderBinDetails, + Properties::NON_VIRTUAL, + __bool__useRenderBinDetails, + "Get whether the render bin details are set and should be used. ", + ""); + I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + Properties::NON_VIRTUAL, + __void__setRenderBinMode__RenderBinMode, + "Set the render bin mode. ", + ""); + I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + Properties::NON_VIRTUAL, + __RenderBinMode__getRenderBinMode, + "Get the render bin mode. ", + ""); + I_Method1(void, setBinNumber, IN, int, num, + Properties::NON_VIRTUAL, + __void__setBinNumber__int, + "Set the render bin number. ", + ""); + I_Method0(int, getBinNumber, + Properties::NON_VIRTUAL, + __int__getBinNumber, + "Get the render bin number. ", + ""); + I_Method1(void, setBinName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setBinName__C5_std_string_R1, + "Set the render bin name. ", + ""); + I_Method0(const std::string &, getBinName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getBinName, + "Get the render bin name. ", + ""); + I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const Update Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const Update Callback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, + __bool__requiresUpdateTraversal, + "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runUpdateCallbacks__osg_NodeVisitor_P1, + "Run the update callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const Event Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const Event Callback. ", + ""); + I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, + __bool__requiresEventTraversal, + "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", + ""); + I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runEventCallbacks__osg_NodeVisitor_P1, + "Run the event callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __bool__checkValidityOfAssociatedModes__State_R1, + "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__compileGLObjects__State_R1, + "call compile on all StateAttributes contained within this StateSet. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "call release on all StateAttributes contained within this StateSet. ", + ""); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + Properties::NON_VIRTUAL, + __int__compare__C5_StateSet_R1__bool, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateSet::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateSet. ", + ""); + I_Method0(osg::StateSet::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Object_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Object_P1__getParent__unsigned_int, + "Get a single const parent of this StateSet. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this StateSet. ", + "the number of parents of this StateSet. "); + I_Method0(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assestment of callback etc. ", + ""); + I_Method0(void, setGlobalDefaults, + Properties::NON_VIRTUAL, + __void__setGlobalDefaults, + "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the StateSet of all modes and attributes. ", + ""); + I_Method1(void, merge, IN, const osg::StateSet &, rhs, + Properties::NON_VIRTUAL, + __void__merge__C5_StateSet_R1, + "Merge this StateSet with the StateSet passed as parameter. ", + "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); + I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain the specified GLMode with a given value. ", + "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeMode__StateAttribute_GLMode, + "Remove mode from this StateSet. ", + "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, + "Get the value for a given GLMode. ", + " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); + I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + Properties::NON_VIRTUAL, + __void__setModeList__ModeList_R1, + "Set the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __ModeList_R1__getModeList, + "Return the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __C5_ModeList_R1__getModeList, + "Return the const list of all GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_Type__unsigned_int, + "remove attribute of specified type from StateSet. ", + ""); + I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_P1, + "remove attribute from StateSet. ", + ""); + I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, + "Get specified RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + Properties::NON_VIRTUAL, + __void__setAttributeList__AttributeList_R1, + "set the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __AttributeList_R1__getAttributeList, + "return the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __C5_AttributeList_R1__getAttributeList, + "return the const list of all StateAttributes contained in this const StateSet. ", + ""); + I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain specified GLMode with a given value. ", + " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); + I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, + "Remove texture mode from StateSet. ", + ""); + I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + "Get specified GLModeValue for specified GLMode. ", + "returns INHERIT if no GLModeValue is contained within StateSet. "); + I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + Properties::NON_VIRTUAL, + __void__setTextureModeList__TextureModeList_R1, + "set the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __TextureModeList_R1__getTextureModeList, + "return the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __C5_TextureModeList_R1__getTextureModeList, + "return the const list of all Texture related GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, + "remove texture attribute of specified type from StateSet. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, + "remove texture attribute from StateSet. ", + ""); + I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, + "Get specified Texture related RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + Properties::NON_VIRTUAL, + __void__setTextureAttributeList__TextureAttributeList_R1, + "Set the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __TextureAttributeList_R1__getTextureAttributeList, + "Return the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __C5_TextureAttributeList_R1__getTextureAttributeList, + "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", + ""); + I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified uniform and override flag. ", + ""); + I_Method1(void, removeUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeUniform__C5_std_string_R1, + "remove uniform of specified name from StateSet. ", + ""); + I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + Properties::NON_VIRTUAL, + __void__removeUniform__Uniform_P1, + "remove Uniform from StateSet. ", + ""); + I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __Uniform_P1__getUniform__C5_std_string_R1, + "Get Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + Properties::NON_VIRTUAL, + __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, + "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", + ""); + I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_Uniform_P1__getUniform__C5_std_string_R1, + "Get const Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, + "Get specified RefUniformPair for specified Uniform name. ", + "Returns NULL if no Uniform is contained within StateSet. "); + I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + Properties::NON_VIRTUAL, + __void__setUniformList__UniformList_R1, + "set the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __UniformList_R1__getUniformList, + "return the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __C5_UniformList_R1__getUniformList, + "return the const list of all Uniforms contained in this const StateSet. ", + ""); + I_Method1(void, setRenderingHint, IN, int, hint, + Properties::NON_VIRTUAL, + __void__setRenderingHint__int, + "Set the RenderingHint of this StateSet. ", + "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); + I_Method0(int, getRenderingHint, + Properties::NON_VIRTUAL, + __int__getRenderingHint, + "Get the RenderingHint of this StateSet. ", + ""); + I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + Properties::NON_VIRTUAL, + __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, + "Set the render bin details. ", + ""); + I_Method0(void, setRenderBinToInherit, + Properties::NON_VIRTUAL, + __void__setRenderBinToInherit, + "Set the render bin details to inherit. ", + ""); + I_Method0(bool, useRenderBinDetails, + Properties::NON_VIRTUAL, + __bool__useRenderBinDetails, + "Get whether the render bin details are set and should be used. ", + ""); + I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + Properties::NON_VIRTUAL, + __void__setRenderBinMode__RenderBinMode, + "Set the render bin mode. ", + ""); + I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + Properties::NON_VIRTUAL, + __RenderBinMode__getRenderBinMode, + "Get the render bin mode. ", + ""); + I_Method1(void, setBinNumber, IN, int, num, + Properties::NON_VIRTUAL, + __void__setBinNumber__int, + "Set the render bin number. ", + ""); + I_Method0(int, getBinNumber, + Properties::NON_VIRTUAL, + __int__getBinNumber, + "Get the render bin number. ", + ""); + I_Method1(void, setBinName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setBinName__C5_std_string_R1, + "Set the render bin name. ", + ""); + I_Method0(const std::string &, getBinName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getBinName, + "Get the render bin name. ", + ""); + I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const Update Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const Update Callback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, + __bool__requiresUpdateTraversal, + "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runUpdateCallbacks__osg_NodeVisitor_P1, + "Run the update callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const Event Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const Event Callback. ", + ""); + I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, + __bool__requiresEventTraversal, + "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", + ""); + I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runEventCallbacks__osg_NodeVisitor_P1, + "Run the event callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __bool__checkValidityOfAssociatedModes__State_R1, + "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__compileGLObjects__State_R1, + "call compile on all StateAttributes contained within this StateSet. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "call release on all StateAttributes contained within this StateSet. ", + ""); + I_SimpleProperty(osg::StateSet::AttributeList &, AttributeList, + __AttributeList_R1__getAttributeList, + __void__setAttributeList__AttributeList_R1); + I_SimpleProperty(const std::string &, BinName, + __C5_std_string_R1__getBinName, + __void__setBinName__C5_std_string_R1); + I_SimpleProperty(int, BinNumber, + __int__getBinNumber, + __void__setBinNumber__int); + I_SimpleProperty(osg::StateSet::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + + I_SimpleProperty(osg::StateSet::ModeList &, ModeList, + __ModeList_R1__getModeList, + __void__setModeList__ModeList_R1); + I_ArrayProperty(osg::Object *, Parent, + __Object_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::StateSet::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet::RenderBinMode, RenderBinMode, + __RenderBinMode__getRenderBinMode, + __void__setRenderBinMode__RenderBinMode); + I_SimpleProperty(int, RenderingHint, + __int__getRenderingHint, + __void__setRenderingHint__int); + I_SimpleProperty(osg::StateSet::TextureAttributeList &, TextureAttributeList, + __TextureAttributeList_R1__getTextureAttributeList, + __void__setTextureAttributeList__TextureAttributeList_R1); + I_IndexedProperty(osg::StateAttribute::GLModeValue, TextureMode, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + 0); + I_SimpleProperty(osg::StateSet::TextureModeList &, TextureModeList, + __TextureModeList_R1__getTextureModeList, + __void__setTextureModeList__TextureModeList_R1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::StateSet::UniformList &, UniformList, + __UniformList_R1__getUniformList, + __void__setUniformList__UniformList_R1); + I_SimpleProperty(osg::StateSet::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::Object * >, osg::StateSet::ParentList); + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::GLMode COMMA osg::StateAttribute::GLModeValue >, osg::StateSet::ModeList); + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::StateAttribute > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefAttributePair); + +TYPE_NAME_ALIAS(std::map< osg::StateAttribute::TypeMemberPair COMMA osg::StateSet::RefAttributePair >, osg::StateSet::AttributeList); + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::ModeList >, osg::StateSet::TextureModeList); + +TYPE_NAME_ALIAS(std::vector< osg::StateSet::AttributeList >, osg::StateSet::TextureAttributeList); + +TYPE_NAME_ALIAS(std::pair< osg::ref_ptr< osg::Uniform > COMMA osg::StateAttribute::OverrideValue >, osg::StateSet::RefUniformPair); + +TYPE_NAME_ALIAS(std::map< std::string COMMA osg::StateSet::RefUniformPair >, osg::StateSet::UniformList); + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderingHint) + I_EnumLabel(osg::StateSet::DEFAULT_BIN); + I_EnumLabel(osg::StateSet::OPAQUE_BIN); + I_EnumLabel(osg::StateSet::TRANSPARENT_BIN); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::StateSet::RenderBinMode) + I_EnumLabel(osg::StateSet::INHERIT_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::USE_RENDERBIN_DETAILS); + I_EnumLabel(osg::StateSet::OVERRIDE_RENDERBIN_DETAILS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::StateSet) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + Properties::NON_VIRTUAL, + __int__compare__C5_StateSet_R1__bool, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateSet::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateSet. ", + ""); + I_Method0(osg::StateSet::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Object_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Object_P1__getParent__unsigned_int, + "Get a single const parent of this StateSet. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this StateSet. ", + "the number of parents of this StateSet. "); + I_Method0(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assestment of callback etc. ", + ""); + I_Method0(void, setGlobalDefaults, + Properties::NON_VIRTUAL, + __void__setGlobalDefaults, + "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the StateSet of all modes and attributes. ", + ""); + I_Method1(void, merge, IN, const osg::StateSet &, rhs, + Properties::NON_VIRTUAL, + __void__merge__C5_StateSet_R1, + "Merge this StateSet with the StateSet passed as parameter. ", + "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); + I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain the specified GLMode with a given value. ", + "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeMode__StateAttribute_GLMode, + "Remove mode from this StateSet. ", + "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, + "Get the value for a given GLMode. ", + " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); + I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + Properties::NON_VIRTUAL, + __void__setModeList__ModeList_R1, + "Set the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __ModeList_R1__getModeList, + "Return the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __C5_ModeList_R1__getModeList, + "Return the const list of all GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_Type__unsigned_int, + "remove attribute of specified type from StateSet. ", + ""); + I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_P1, + "remove attribute from StateSet. ", + ""); + I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, + "Get specified RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + Properties::NON_VIRTUAL, + __void__setAttributeList__AttributeList_R1, + "set the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __AttributeList_R1__getAttributeList, + "return the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __C5_AttributeList_R1__getAttributeList, + "return the const list of all StateAttributes contained in this const StateSet. ", + ""); + I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain specified GLMode with a given value. ", + " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); + I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, + "Remove texture mode from StateSet. ", + ""); + I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + "Get specified GLModeValue for specified GLMode. ", + "returns INHERIT if no GLModeValue is contained within StateSet. "); + I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + Properties::NON_VIRTUAL, + __void__setTextureModeList__TextureModeList_R1, + "set the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __TextureModeList_R1__getTextureModeList, + "return the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __C5_TextureModeList_R1__getTextureModeList, + "return the const list of all Texture related GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, + "remove texture attribute of specified type from StateSet. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, + "remove texture attribute from StateSet. ", + ""); + I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, + "Get specified Texture related RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + Properties::NON_VIRTUAL, + __void__setTextureAttributeList__TextureAttributeList_R1, + "Set the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __TextureAttributeList_R1__getTextureAttributeList, + "Return the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __C5_TextureAttributeList_R1__getTextureAttributeList, + "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", + ""); + I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified uniform and override flag. ", + ""); + I_Method1(void, removeUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeUniform__C5_std_string_R1, + "remove uniform of specified name from StateSet. ", + ""); + I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + Properties::NON_VIRTUAL, + __void__removeUniform__Uniform_P1, + "remove Uniform from StateSet. ", + ""); + I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __Uniform_P1__getUniform__C5_std_string_R1, + "Get Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + Properties::NON_VIRTUAL, + __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, + "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", + ""); + I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_Uniform_P1__getUniform__C5_std_string_R1, + "Get const Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, + "Get specified RefUniformPair for specified Uniform name. ", + "Returns NULL if no Uniform is contained within StateSet. "); + I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + Properties::NON_VIRTUAL, + __void__setUniformList__UniformList_R1, + "set the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __UniformList_R1__getUniformList, + "return the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __C5_UniformList_R1__getUniformList, + "return the const list of all Uniforms contained in this const StateSet. ", + ""); + I_Method1(void, setRenderingHint, IN, int, hint, + Properties::NON_VIRTUAL, + __void__setRenderingHint__int, + "Set the RenderingHint of this StateSet. ", + "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); + I_Method0(int, getRenderingHint, + Properties::NON_VIRTUAL, + __int__getRenderingHint, + "Get the RenderingHint of this StateSet. ", + ""); + I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + Properties::NON_VIRTUAL, + __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, + "Set the render bin details. ", + ""); + I_Method0(void, setRenderBinToInherit, + Properties::NON_VIRTUAL, + __void__setRenderBinToInherit, + "Set the render bin details to inherit. ", + ""); + I_Method0(bool, useRenderBinDetails, + Properties::NON_VIRTUAL, + __bool__useRenderBinDetails, + "Get whether the render bin details are set and should be used. ", + ""); + I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + Properties::NON_VIRTUAL, + __void__setRenderBinMode__RenderBinMode, + "Set the render bin mode. ", + ""); + I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + Properties::NON_VIRTUAL, + __RenderBinMode__getRenderBinMode, + "Get the render bin mode. ", + ""); + I_Method1(void, setBinNumber, IN, int, num, + Properties::NON_VIRTUAL, + __void__setBinNumber__int, + "Set the render bin number. ", + ""); + I_Method0(int, getBinNumber, + Properties::NON_VIRTUAL, + __int__getBinNumber, + "Get the render bin number. ", + ""); + I_Method1(void, setBinName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setBinName__C5_std_string_R1, + "Set the render bin name. ", + ""); + I_Method0(const std::string &, getBinName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getBinName, + "Get the render bin name. ", + ""); + I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const Update Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const Update Callback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, + __bool__requiresUpdateTraversal, + "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runUpdateCallbacks__osg_NodeVisitor_P1, + "Run the update callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const Event Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const Event Callback. ", + ""); + I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, + __bool__requiresEventTraversal, + "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", + ""); + I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runEventCallbacks__osg_NodeVisitor_P1, + "Run the event callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __bool__checkValidityOfAssociatedModes__State_R1, + "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__compileGLObjects__State_R1, + "call compile on all StateAttributes contained within this StateSet. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "call release on all StateAttributes contained within this StateSet. ", + ""); + I_Constructor0(____StateSet, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::StateSet &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____StateSet__C5_StateSet_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __Object_P1__clone__C5_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_MethodWithDefaults2(int, compare, IN, const osg::StateSet &, rhs, , IN, bool, compareAttributeContents, false, + Properties::NON_VIRTUAL, + __int__compare__C5_StateSet_R1__bool, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method0(const osg::StateSet::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this StateSet. ", + ""); + I_Method0(osg::StateSet::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __Object_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::Object *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_Object_P1__getParent__unsigned_int, + "Get a single const parent of this StateSet. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this StateSet. ", + "the number of parents of this StateSet. "); + I_Method0(void, computeDataVariance, + Properties::VIRTUAL, + __void__computeDataVariance, + "Compute the DataVariance based on an assestment of callback etc. ", + ""); + I_Method0(void, setGlobalDefaults, + Properties::NON_VIRTUAL, + __void__setGlobalDefaults, + "Set all the modes to on or off so that it defines a complete state, typically used for a default global state. ", + ""); + I_Method0(void, clear, + Properties::NON_VIRTUAL, + __void__clear, + "Clear the StateSet of all modes and attributes. ", + ""); + I_Method1(void, merge, IN, const osg::StateSet &, rhs, + Properties::NON_VIRTUAL, + __void__merge__C5_StateSet_R1, + "Merge this StateSet with the StateSet passed as parameter. ", + "Every mode and attribute in this StateSet that is marked with StateAttribute::OVERRIDE is replaced with the equivalent mode or attribute from rhs."); + I_Method2(void, setMode, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setMode__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain the specified GLMode with a given value. ", + "Don't use this method to set modes related to textures. For this purpose, use setTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(void, removeMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeMode__StateAttribute_GLMode, + "Remove mode from this StateSet. ", + "Don't use this method to remove modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call. "); + I_Method1(osg::StateAttribute::GLModeValue, getMode, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getMode__StateAttribute_GLMode, + "Get the value for a given GLMode. ", + " param mode The GLMode whose value is desired. return If mode is contained within this StateSet, returns the value associated with it. Otherwise, returns StateAttribute::INHERIT. note Don't use this method to get the value of modes related to textures. For this purpose, use removeTextureMode(), that accepts an extra parameter specifying which texture unit shall be affected by the call."); + I_Method1(void, setModeList, IN, osg::StateSet::ModeList &, ml, + Properties::NON_VIRTUAL, + __void__setModeList__ModeList_R1, + "Set the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __ModeList_R1__getModeList, + "Return the list of all GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::ModeList &, getModeList, + Properties::NON_VIRTUAL, + __C5_ModeList_R1__getModeList, + "Return the const list of all GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults2(void, setAttribute, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setAttribute__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults2(void, setAttributeAndModes, IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setAttributeAndModes__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_MethodWithDefaults2(void, removeAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_Type__unsigned_int, + "remove attribute of specified type from StateSet. ", + ""); + I_Method1(void, removeAttribute, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeAttribute__StateAttribute_P1, + "remove attribute from StateSet. ", + ""); + I_MethodWithDefaults2(osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_MethodWithDefaults2(const osg::StateAttribute *, getAttribute, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getAttribute__StateAttribute_Type__unsigned_int, + "Get specified const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_MethodWithDefaults2(const osg::StateSet::RefAttributePair *, getAttributePair, IN, osg::StateAttribute::Type, type, , IN, unsigned int, member, 0, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getAttributePair__StateAttribute_Type__unsigned_int, + "Get specified RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setAttributeList, IN, osg::StateSet::AttributeList &, al, + Properties::NON_VIRTUAL, + __void__setAttributeList__AttributeList_R1, + "set the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __AttributeList_R1__getAttributeList, + "return the list of all StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::AttributeList &, getAttributeList, + Properties::NON_VIRTUAL, + __C5_AttributeList_R1__getAttributeList, + "return the const list of all StateAttributes contained in this const StateSet. ", + ""); + I_Method3(void, setTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + "Set this StateSet to contain specified GLMode with a given value. ", + " param unit The texture unit to be affected (used with multi-texturing). mode The OpenGL mode to be added to the StateSet. value The value to be assigned to mode. "); + I_Method2(void, removeTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __void__removeTextureMode__unsigned_int__StateAttribute_GLMode, + "Remove texture mode from StateSet. ", + ""); + I_Method2(osg::StateAttribute::GLModeValue, getTextureMode, IN, unsigned int, unit, IN, osg::StateAttribute::GLMode, mode, + Properties::NON_VIRTUAL, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + "Get specified GLModeValue for specified GLMode. ", + "returns INHERIT if no GLModeValue is contained within StateSet. "); + I_Method1(void, setTextureModeList, IN, osg::StateSet::TextureModeList &, tml, + Properties::NON_VIRTUAL, + __void__setTextureModeList__TextureModeList_R1, + "set the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __TextureModeList_R1__getTextureModeList, + "return the list of all Texture related GLModes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureModeList &, getTextureModeList, + Properties::NON_VIRTUAL, + __C5_TextureModeList_R1__getTextureModeList, + "return the const list of all Texture related GLModes contained in this const StateSet. ", + ""); + I_MethodWithDefaults3(void, setTextureAttribute, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::OFF, + Properties::NON_VIRTUAL, + __void__setTextureAttribute__unsigned_int__StateAttribute_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified attribute and override flag. ", + ""); + I_MethodWithDefaults3(void, setTextureAttributeAndModes, IN, unsigned int, unit, , IN, osg::StateAttribute *, attribute, , IN, osg::StateAttribute::GLModeValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__setTextureAttributeAndModes__unsigned_int__StateAttribute_P1__StateAttribute_GLModeValue, + "Set this StateSet to contain specified attribute and set the associated GLMode's to specified value. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_Type, + "remove texture attribute of specified type from StateSet. ", + ""); + I_Method2(void, removeTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute *, attribute, + Properties::NON_VIRTUAL, + __void__removeTextureAttribute__unsigned_int__StateAttribute_P1, + "remove texture attribute from StateSet. ", + ""); + I_Method2(osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related StateAttribute for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method2(const osg::StateAttribute *, getTextureAttribute, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_StateAttribute_P1__getTextureAttribute__unsigned_int__StateAttribute_Type, + "Get specified Texture related const StateAttribute for specified type. ", + "Returns NULL if no type is contained within const StateSet. "); + I_Method2(const osg::StateSet::RefAttributePair *, getTextureAttributePair, IN, unsigned int, unit, IN, osg::StateAttribute::Type, type, + Properties::NON_VIRTUAL, + __C5_RefAttributePair_P1__getTextureAttributePair__unsigned_int__StateAttribute_Type, + "Get specified Texture related RefAttributePair for specified type. ", + "Returns NULL if no type is contained within StateSet. "); + I_Method1(void, setTextureAttributeList, IN, osg::StateSet::TextureAttributeList &, tal, + Properties::NON_VIRTUAL, + __void__setTextureAttributeList__TextureAttributeList_R1, + "Set the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __TextureAttributeList_R1__getTextureAttributeList, + "Return the list of all Texture related StateAttributes contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::TextureAttributeList &, getTextureAttributeList, + Properties::NON_VIRTUAL, + __C5_TextureAttributeList_R1__getTextureAttributeList, + "Return the const list of all Texture related StateAttributes contained in this const StateSet. ", + ""); + I_Method2(void, setAssociatedModes, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedModes__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_Method3(void, setAssociatedTextureModes, IN, unsigned int, unit, IN, const osg::StateAttribute *, attribute, IN, osg::StateAttribute::GLModeValue, value, + Properties::NON_VIRTUAL, + __void__setAssociatedTextureModes__unsigned_int__C5_StateAttribute_P1__StateAttribute_GLModeValue, + "", + ""); + I_MethodWithDefaults2(void, addUniform, IN, osg::Uniform *, uniform, , IN, osg::StateAttribute::OverrideValue, value, osg::StateAttribute::ON, + Properties::NON_VIRTUAL, + __void__addUniform__Uniform_P1__StateAttribute_OverrideValue, + "Set this StateSet to contain specified uniform and override flag. ", + ""); + I_Method1(void, removeUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__removeUniform__C5_std_string_R1, + "remove uniform of specified name from StateSet. ", + ""); + I_Method1(void, removeUniform, IN, osg::Uniform *, uniform, + Properties::NON_VIRTUAL, + __void__removeUniform__Uniform_P1, + "remove Uniform from StateSet. ", + ""); + I_Method1(osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __Uniform_P1__getUniform__C5_std_string_R1, + "Get Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_MethodWithDefaults3(osg::Uniform *, getOrCreateUniform, IN, const std::string &, name, , IN, osg::Uniform::Type, type, , IN, unsigned int, numElements, 1, + Properties::NON_VIRTUAL, + __Uniform_P1__getOrCreateUniform__C5_std_string_R1__Uniform_Type__unsigned_int, + "Get Uniform for specified name, if one is not available create it, add it to this StateSet and return a pointer to it. ", + ""); + I_Method1(const osg::Uniform *, getUniform, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_Uniform_P1__getUniform__C5_std_string_R1, + "Get const Uniform for specified name. ", + "Returns NULL if no matching Uniform is contained within StateSet. "); + I_Method1(const osg::StateSet::RefUniformPair *, getUniformPair, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __C5_RefUniformPair_P1__getUniformPair__C5_std_string_R1, + "Get specified RefUniformPair for specified Uniform name. ", + "Returns NULL if no Uniform is contained within StateSet. "); + I_Method1(void, setUniformList, IN, osg::StateSet::UniformList &, al, + Properties::NON_VIRTUAL, + __void__setUniformList__UniformList_R1, + "set the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __UniformList_R1__getUniformList, + "return the list of all Uniforms contained in this StateSet. ", + ""); + I_Method0(const osg::StateSet::UniformList &, getUniformList, + Properties::NON_VIRTUAL, + __C5_UniformList_R1__getUniformList, + "return the const list of all Uniforms contained in this const StateSet. ", + ""); + I_Method1(void, setRenderingHint, IN, int, hint, + Properties::NON_VIRTUAL, + __void__setRenderingHint__int, + "Set the RenderingHint of this StateSet. ", + "RenderingHint is used by the renderer to determine which draw bin to drop associated osg::Drawables in. Typically, users will set this to either StateSet::OPAQUE_BIN or StateSet::TRANSPARENT_BIN. Drawables in the opaque bin are sorted by their StateSet, so that the number of expensive changes in the OpenGL state is minimized. Drawables in the transparent bin are sorted by depth, so that objects farther from the viewer are rendered first (and hence alpha blending works nicely for translucent objects)."); + I_Method0(int, getRenderingHint, + Properties::NON_VIRTUAL, + __int__getRenderingHint, + "Get the RenderingHint of this StateSet. ", + ""); + I_MethodWithDefaults3(void, setRenderBinDetails, IN, int, binNum, , IN, const std::string &, binName, , IN, osg::StateSet::RenderBinMode, mode, osg::StateSet::USE_RENDERBIN_DETAILS, + Properties::NON_VIRTUAL, + __void__setRenderBinDetails__int__C5_std_string_R1__RenderBinMode, + "Set the render bin details. ", + ""); + I_Method0(void, setRenderBinToInherit, + Properties::NON_VIRTUAL, + __void__setRenderBinToInherit, + "Set the render bin details to inherit. ", + ""); + I_Method0(bool, useRenderBinDetails, + Properties::NON_VIRTUAL, + __bool__useRenderBinDetails, + "Get whether the render bin details are set and should be used. ", + ""); + I_Method1(void, setRenderBinMode, IN, osg::StateSet::RenderBinMode, mode, + Properties::NON_VIRTUAL, + __void__setRenderBinMode__RenderBinMode, + "Set the render bin mode. ", + ""); + I_Method0(osg::StateSet::RenderBinMode, getRenderBinMode, + Properties::NON_VIRTUAL, + __RenderBinMode__getRenderBinMode, + "Get the render bin mode. ", + ""); + I_Method1(void, setBinNumber, IN, int, num, + Properties::NON_VIRTUAL, + __void__setBinNumber__int, + "Set the render bin number. ", + ""); + I_Method0(int, getBinNumber, + Properties::NON_VIRTUAL, + __int__getBinNumber, + "Get the render bin number. ", + ""); + I_Method1(void, setBinName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setBinName__C5_std_string_R1, + "Set the render bin name. ", + ""); + I_Method0(const std::string &, getBinName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getBinName, + "Get the render bin name. ", + ""); + I_Method1(void, setUpdateCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the Update Callback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const Update Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const Update Callback. ", + ""); + I_Method0(bool, requiresUpdateTraversal, + Properties::NON_VIRTUAL, + __bool__requiresUpdateTraversal, + "Return whether this StateSet has update callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringUpdateTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringUpdateTraversal, + "Get the number of Objects of this StateSet which require Update traversal, since they have an Update Callback attached to them or their children. ", + ""); + I_Method1(void, runUpdateCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runUpdateCallbacks__osg_NodeVisitor_P1, + "Run the update callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(void, setEventCallback, IN, osg::StateSet::Callback *, ac, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the Event Callback which allows users to attach customize the updating of an object during the event traversal. ", + ""); + I_Method0(osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const Event Callback. ", + ""); + I_Method0(const osg::StateSet::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const Event Callback. ", + ""); + I_Method0(bool, requiresEventTraversal, + Properties::NON_VIRTUAL, + __bool__requiresEventTraversal, + "Return whether this StateSet has event callbacks associated with it, and therefore must be traversed. ", + ""); + I_Method0(unsigned int, getNumChildrenRequiringEventTraversal, + Properties::NON_VIRTUAL, + __unsigned_int__getNumChildrenRequiringEventTraversal, + "Get the number of Objects of this StateSet which require Event traversal, since they have an Eevnt Callback attached to them or their children. ", + ""); + I_Method1(void, runEventCallbacks, IN, osg::NodeVisitor *, nv, + Properties::NON_VIRTUAL, + __void__runEventCallbacks__osg_NodeVisitor_P1, + "Run the event callbacks attached directly to this StateSet or to its children. ", + ""); + I_Method1(bool, checkValidityOfAssociatedModes, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __bool__checkValidityOfAssociatedModes__State_R1, + "Check the modes associated with this StateSet are supported by current OpenGL drivers, and if not set the associated mode in osg::State to be black listed/invalid. ", + "Return true if all associated modes are valid. "); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Method1(void, compileGLObjects, IN, osg::State &, state, + Properties::NON_VIRTUAL, + __void__compileGLObjects__State_R1, + "call compile on all StateAttributes contained within this StateSet. ", + ""); + I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, + Properties::VIRTUAL, + __void__resizeGLObjectBuffers__unsigned_int, + "Resize any per context GLObject buffers to specified size. ", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__State_P1, + "call release on all StateAttributes contained within this StateSet. ", + ""); + I_SimpleProperty(osg::StateSet::AttributeList &, AttributeList, + __AttributeList_R1__getAttributeList, + __void__setAttributeList__AttributeList_R1); + I_SimpleProperty(const std::string &, BinName, + __C5_std_string_R1__getBinName, + __void__setBinName__C5_std_string_R1); + I_SimpleProperty(int, BinNumber, + __int__getBinNumber, + __void__setBinNumber__int); + I_SimpleProperty(osg::StateSet::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + + I_SimpleProperty(osg::StateSet::ModeList &, ModeList, + __ModeList_R1__getModeList, + __void__setModeList__ModeList_R1); + I_ArrayProperty(osg::Object *, Parent, + __Object_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::StateSet::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::StateSet::RenderBinMode, RenderBinMode, + __RenderBinMode__getRenderBinMode, + __void__setRenderBinMode__RenderBinMode); + I_SimpleProperty(int, RenderingHint, + __int__getRenderingHint, + __void__setRenderingHint__int); + I_SimpleProperty(osg::StateSet::TextureAttributeList &, TextureAttributeList, + __TextureAttributeList_R1__getTextureAttributeList, + __void__setTextureAttributeList__TextureAttributeList_R1); + I_IndexedProperty(osg::StateAttribute::GLModeValue, TextureMode, + __StateAttribute_GLModeValue__getTextureMode__unsigned_int__StateAttribute_GLMode, + __void__setTextureMode__unsigned_int__StateAttribute_GLMode__StateAttribute_GLModeValue, + 0); + I_SimpleProperty(osg::StateSet::TextureModeList &, TextureModeList, + __TextureModeList_R1__getTextureModeList, + __void__setTextureModeList__TextureModeList_R1); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); + I_SimpleProperty(osg::StateSet::UniformList &, UniformList, + __UniformList_R1__getUniformList, + __void__setUniformList__UniformList_R1); + I_SimpleProperty(osg::StateSet::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexEnv.cpp b/src/osgWrappers/osg/TexEnv.cpp index a815830a9..4a90220aa 100644 --- a/src/osgWrappers/osg/TexEnv.cpp +++ b/src/osgWrappers/osg/TexEnv.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include +#include +#include +#include +#include +#include #include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -34,6 +35,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexEnv::Mode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexEnv) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, Properties::NON_EXPLICIT, @@ -47,37 +49,37 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnv) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __bool__isTextureAttribute, - "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -112,15 +114,274 @@ BEGIN_OBJECT_REFLECTOR(osg::TexEnv) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __void__apply__State_R1, - "apply the OpenGL state attributes. ", - "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + "", + ""); + I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + Properties::NON_EXPLICIT, + ____TexEnv__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnv__C5_TexEnv_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexEnv::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __Vec4_R1__getColor, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_SimpleProperty(const osg::Vec4 &, Color, __C5_Vec4_R1__getColor, __void__setColor__C5_Vec4_R1); I_SimpleProperty(osg::TexEnv::Mode, Mode, __Mode__getMode, __void__setMode__Mode); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexEnv::Mode) + I_EnumLabel(osg::TexEnv::DECAL); + I_EnumLabel(osg::TexEnv::MODULATE); + I_EnumLabel(osg::TexEnv::BLEND); + I_EnumLabel(osg::TexEnv::REPLACE); + I_EnumLabel(osg::TexEnv::ADD); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexEnv) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + Properties::NON_EXPLICIT, + ____TexEnv__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnv__C5_TexEnv_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexEnv::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __Vec4_R1__getColor, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, osg::TexEnv::Mode, mode, osg::TexEnv::MODULATE, + Properties::NON_EXPLICIT, + ____TexEnv__Mode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexEnv &, texenv, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexEnv__C5_TexEnv_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMode, IN, osg::TexEnv::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexEnv::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_Vec4_R1, + "", + ""); + I_Method0(osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __Vec4_R1__getColor, + "", + ""); + I_Method0(const osg::Vec4 &, getColor, + Properties::NON_VIRTUAL, + __C5_Vec4_R1__getColor, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + __C5_Vec4_R1__getColor, + __void__setColor__C5_Vec4_R1); + I_SimpleProperty(osg::TexEnv::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexGen.cpp b/src/osgWrappers/osg/TexGen.cpp index ed39a342c..d04460ba3 100644 --- a/src/osgWrappers/osg/TexGen.cpp +++ b/src/osgWrappers/osg/TexGen.cpp @@ -10,12 +10,13 @@ #include #include -#include -#include -#include +#include +#include +#include +#include +#include #include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -42,6 +43,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexGen::Coord) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexGen) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____TexGen, "", @@ -53,37 +55,37 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __bool__isTextureAttribute, - "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -98,8 +100,95 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) I_Method1(void, apply, IN, osg::State &, state, Properties::VIRTUAL, __void__apply__State_R1, - "apply the OpenGL state attributes. ", - "The render info for the current OpenGL context is passed in to allow the StateAttribute to obtain details on the the current context and state."); + "", + ""); + I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexGen::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__Coord__C5_Plane_R1, + "", + ""); + I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __C5_Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__setPlanesFromMatrix__C5_Matrixd_R1, + "Set the tex gen planes from specified matrix. ", + "Typical usage would be to pass in a projection matrix to set up projective texturing."); + I_Constructor0(____TexGen, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGen__C5_TexGen_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, Properties::NON_VIRTUAL, __void__setMode__Mode, @@ -140,7 +229,214 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGen) I_SimpleProperty(const osg::Matrixd &, PlanesFromMatrix, 0, __void__setPlanesFromMatrix__C5_Matrixd_R1); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexGen::Mode) + I_EnumLabel(osg::TexGen::OBJECT_LINEAR); + I_EnumLabel(osg::TexGen::EYE_LINEAR); + I_EnumLabel(osg::TexGen::SPHERE_MAP); + I_EnumLabel(osg::TexGen::NORMAL_MAP); + I_EnumLabel(osg::TexGen::REFLECTION_MAP); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexGen::Coord) + I_EnumLabel(osg::TexGen::S); + I_EnumLabel(osg::TexGen::T); + I_EnumLabel(osg::TexGen::R); + I_EnumLabel(osg::TexGen::Q); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexGen) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____TexGen, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGen__C5_TexGen_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexGen::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__Coord__C5_Plane_R1, + "", + ""); + I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __C5_Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__setPlanesFromMatrix__C5_Matrixd_R1, + "Set the tex gen planes from specified matrix. ", + "Typical usage would be to pass in a projection matrix to set up projective texturing."); + I_Constructor0(____TexGen, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGen &, texgen, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGen__C5_TexGen_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, + Properties::VIRTUAL, + __bool__getModeUsage__ModeUsage_R1, + "", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "", + ""); + I_Method1(void, setMode, IN, osg::TexGen::Mode, mode, + Properties::NON_VIRTUAL, + __void__setMode__Mode, + "", + ""); + I_Method0(osg::TexGen::Mode, getMode, + Properties::NON_VIRTUAL, + __Mode__getMode, + "", + ""); + I_Method2(void, setPlane, IN, osg::TexGen::Coord, which, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__Coord__C5_Plane_R1, + "", + ""); + I_Method1(osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(const osg::Plane &, getPlane, IN, osg::TexGen::Coord, which, + Properties::NON_VIRTUAL, + __C5_Plane_R1__getPlane__Coord, + "", + ""); + I_Method1(void, setPlanesFromMatrix, IN, const osg::Matrixd &, matrix, + Properties::NON_VIRTUAL, + __void__setPlanesFromMatrix__C5_Matrixd_R1, + "Set the tex gen planes from specified matrix. ", + "Typical usage would be to pass in a projection matrix to set up projective texturing."); + I_SimpleProperty(osg::TexGen::Mode, Mode, + __Mode__getMode, + __void__setMode__Mode); + I_IndexedProperty(const osg::Plane &, Plane, + __C5_Plane_R1__getPlane__Coord, + __void__setPlane__Coord__C5_Plane_R1, + 0); + I_SimpleProperty(const osg::Matrixd &, PlanesFromMatrix, + 0, + __void__setPlanesFromMatrix__C5_Matrixd_R1); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/TexGenNode.cpp b/src/osgWrappers/osg/TexGenNode.cpp index 71c1093d9..69fb37cde 100644 --- a/src/osgWrappers/osg/TexGenNode.cpp +++ b/src/osgWrappers/osg/TexGenNode.cpp @@ -10,9 +10,10 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include #include @@ -30,6 +31,7 @@ BEGIN_ENUM_REFLECTOR(osg::TexGenNode::ReferenceFrame) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____TexGenNode, "", @@ -46,32 +48,300 @@ BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "return a clone of a node, with Object* return type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the TexGenNode's ReferenceFrame, either to be relative to its parent reference frame. ", + ""); + I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Ge thte TexGenNode's ReferenceFrame. ", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that this TexGenNode is associated with. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "", + ""); + I_Method1(void, setTexGen, IN, osg::TexGen *, texgen, + Properties::NON_VIRTUAL, + __void__setTexGen__TexGen_P1, + "Set the TexGen. ", + ""); + I_Method0(osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __TexGen_P1__getTexGen, + "Get the TexGen. ", + ""); + I_Method0(const osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __C5_TexGen_P1__getTexGen, + "Get the const TexGen. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Constructor0(____TexGenNode, + "", + ""); + I_Constructor1(IN, osg::TexGen *, texgen, + Properties::NON_EXPLICIT, + ____TexGenNode__TexGen_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGenNode__C5_TexGenNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the TexGenNode's ReferenceFrame, either to be relative to its parent reference frame. ", + ""); + I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Ge thte TexGenNode's ReferenceFrame. ", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that this TexGenNode is associated with. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "", + ""); + I_Method1(void, setTexGen, IN, osg::TexGen *, texgen, + Properties::NON_VIRTUAL, + __void__setTexGen__TexGen_P1, + "Set the TexGen. ", + ""); + I_Method0(osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __TexGen_P1__getTexGen, + "Get the TexGen. ", + ""); + I_Method0(const osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __C5_TexGen_P1__getTexGen, + "Get the const TexGen. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_SimpleProperty(osg::TexGenNode::ReferenceFrame, ReferenceFrame, + __ReferenceFrame__getReferenceFrame, + __void__setReferenceFrame__ReferenceFrame); + I_SimpleProperty(osg::TexGen *, TexGen, + __TexGen_P1__getTexGen, + __void__setTexGen__TexGen_P1); + I_SimpleProperty(unsigned int, TextureUnit, + __unsigned_int__getTextureUnit, + __void__setTextureUnit__unsigned_int); + I_SimpleProperty(bool, ThreadSafeRefUnref, + 0, + __void__setThreadSafeRefUnref__bool); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osg::TexGenNode::ReferenceFrame) + I_EnumLabel(osg::TexGenNode::RELATIVE_RF); + I_EnumLabel(osg::TexGenNode::ABSOLUTE_RF); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexGenNode) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + I_Constructor0(____TexGenNode, + "", + ""); + I_Constructor1(IN, osg::TexGen *, texgen, + Properties::NON_EXPLICIT, + ____TexGenNode__TexGen_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGenNode__C5_TexGenNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, + Properties::NON_VIRTUAL, + __void__setReferenceFrame__ReferenceFrame, + "Set the TexGenNode's ReferenceFrame, either to be relative to its parent reference frame. ", + ""); + I_Method0(osg::TexGenNode::ReferenceFrame, getReferenceFrame, + Properties::NON_VIRTUAL, + __ReferenceFrame__getReferenceFrame, + "Ge thte TexGenNode's ReferenceFrame. ", + ""); + I_Method1(void, setTextureUnit, IN, unsigned int, textureUnit, + Properties::NON_VIRTUAL, + __void__setTextureUnit__unsigned_int, + "Set the texture unit that this TexGenNode is associated with. ", + ""); + I_Method0(unsigned int, getTextureUnit, + Properties::NON_VIRTUAL, + __unsigned_int__getTextureUnit, + "", + ""); + I_Method1(void, setTexGen, IN, osg::TexGen *, texgen, + Properties::NON_VIRTUAL, + __void__setTexGen__TexGen_P1, + "Set the TexGen. ", + ""); + I_Method0(osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __TexGen_P1__getTexGen, + "Get the TexGen. ", + ""); + I_Method0(const osg::TexGen *, getTexGen, + Properties::NON_VIRTUAL, + __C5_TexGen_P1__getTexGen, + "Get the const TexGen. ", + ""); + I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, + Properties::VIRTUAL, + __void__setThreadSafeRefUnref__bool, + "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", + ""); + I_Constructor0(____TexGenNode, + "", + ""); + I_Constructor1(IN, osg::TexGen *, texgen, + Properties::NON_EXPLICIT, + ____TexGenNode__TexGen_P1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexGenNode &, tgb, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexGenNode__C5_TexGenNode_R1__C5_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setReferenceFrame, IN, osg::TexGenNode::ReferenceFrame, rf, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osg/TexMat.cpp b/src/osgWrappers/osg/TexMat.cpp index 014efe6d0..e2b3fffaf 100644 --- a/src/osgWrappers/osg/TexMat.cpp +++ b/src/osgWrappers/osg/TexMat.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osg::TexMat) + I_BaseType(osg::StateAttribute); I_BaseType(osg::StateAttribute); I_Constructor0(____TexMat, "", @@ -42,37 +43,119 @@ BEGIN_OBJECT_REFLECTOR(osg::TexMat) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an attribute, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "Return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "Return the name of the attribute's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "Return the name of the attribute's class type. ", + "", ""); - I_Method0(osg::StateAttribute::Type, getType, + I_Method0(Type, getType, Properties::VIRTUAL, __Type__getType, - "Return the Type identifier of the attribute's class type. ", + "", ""); I_Method0(bool, isTextureAttribute, Properties::VIRTUAL, __bool__isTextureAttribute, - "Return true if StateAttribute is a type which controls texturing and needs to be issued w.r.t to specific texture unit. ", + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the texture matrix. ", + ""); + I_Method0(osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __Matrix_R1__getMatrix, + "Get the texture matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the const texture matrix. ", + ""); + I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setScaleByTextureRectangleSize__bool, + "Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. ", + "Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded. "); + I_Method0(bool, getScaleByTextureRectangleSize, + Properties::NON_VIRTUAL, + __bool__getScaleByTextureRectangleSize, + "Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "Apply texture matrix to OpenGL state. ", + ""); + I_Constructor0(____TexMat, + "", + ""); + I_Constructor1(IN, const osg::Matrix &, matrix, + Properties::NON_EXPLICIT, + ____TexMat__C5_Matrix_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexMat__C5_TexMat_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", ""); I_Method1(int, compare, IN, const osg::StateAttribute &, sa, Properties::VIRTUAL, @@ -115,7 +198,185 @@ BEGIN_OBJECT_REFLECTOR(osg::TexMat) I_SimpleProperty(bool, ScaleByTextureRectangleSize, __bool__getScaleByTextureRectangleSize, __void__setScaleByTextureRectangleSize__bool); - I_SimpleProperty(osg::StateAttribute::Type, Type, + I_SimpleProperty(Type, Type, + __Type__getType, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::TexMat) + I_BaseType(osg::StateAttribute); + I_BaseType(osg::StateAttribute); + I_Constructor0(____TexMat, + "", + ""); + I_Constructor1(IN, const osg::Matrix &, matrix, + Properties::NON_EXPLICIT, + ____TexMat__C5_Matrix_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexMat__C5_TexMat_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the texture matrix. ", + ""); + I_Method0(osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __Matrix_R1__getMatrix, + "Get the texture matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the const texture matrix. ", + ""); + I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setScaleByTextureRectangleSize__bool, + "Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. ", + "Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded. "); + I_Method0(bool, getScaleByTextureRectangleSize, + Properties::NON_VIRTUAL, + __bool__getScaleByTextureRectangleSize, + "Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "Apply texture matrix to OpenGL state. ", + ""); + I_Constructor0(____TexMat, + "", + ""); + I_Constructor1(IN, const osg::Matrix &, matrix, + Properties::NON_EXPLICIT, + ____TexMat__C5_Matrix_R1, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::TexMat &, texmat, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____TexMat__C5_TexMat_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(Type, getType, + Properties::VIRTUAL, + __Type__getType, + "", + ""); + I_Method0(bool, isTextureAttribute, + Properties::VIRTUAL, + __bool__isTextureAttribute, + "", + ""); + I_Method1(int, compare, IN, const osg::StateAttribute &, sa, + Properties::VIRTUAL, + __int__compare__C5_StateAttribute_R1, + "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(void, setMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setMatrix__C5_Matrix_R1, + "Set the texture matrix. ", + ""); + I_Method0(osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __Matrix_R1__getMatrix, + "Get the texture matrix. ", + ""); + I_Method0(const osg::Matrix &, getMatrix, + Properties::NON_VIRTUAL, + __C5_Matrix_R1__getMatrix, + "Get the const texture matrix. ", + ""); + I_Method1(void, setScaleByTextureRectangleSize, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setScaleByTextureRectangleSize__bool, + "Switch on/off the post scaling of the TexMat matrix by the size of the last applied texture rectangle. ", + "Use a TexMat alongside a TextureRectangle with this scaling applied allows one to treat a TextureRectnagles texture coordinate range as if it were the usual non dimensional 0.0 to 1.0 range. Note, the TexMat matrix itself is not modified by the post scaling, its purely an operation passed to OpenGL to do the post scaling once the the TexMat matrix has been loaded. "); + I_Method0(bool, getScaleByTextureRectangleSize, + Properties::NON_VIRTUAL, + __bool__getScaleByTextureRectangleSize, + "Get whether the post scaling of the TexMat matrix, by the size of the last applied texture rectangle, is switched on/off. ", + ""); + I_Method1(void, apply, IN, osg::State &, state, + Properties::VIRTUAL, + __void__apply__State_R1, + "Apply texture matrix to OpenGL state. ", + ""); + I_SimpleProperty(const osg::Matrix &, Matrix, + __C5_Matrix_R1__getMatrix, + __void__setMatrix__C5_Matrix_R1); + I_SimpleProperty(bool, ScaleByTextureRectangleSize, + __bool__getScaleByTextureRectangleSize, + __void__setScaleByTextureRectangleSize__bool); + I_SimpleProperty(Type, Type, __Type__getType, 0); END_REFLECTOR diff --git a/src/osgWrappers/osg/Texture.cpp b/src/osgWrappers/osg/Texture.cpp index 9fdc0eb49..29ddfe901 100644 --- a/src/osgWrappers/osg/Texture.cpp +++ b/src/osgWrappers/osg/Texture.cpp @@ -10,14 +10,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -28,1762 +20,844 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList); - -TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap); - -BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) - I_EnumLabel(osg::Texture::WRAP_S); - I_EnumLabel(osg::Texture::WRAP_T); - I_EnumLabel(osg::Texture::WRAP_R); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::WrapMode) - I_EnumLabel(osg::Texture::CLAMP); - I_EnumLabel(osg::Texture::CLAMP_TO_EDGE); - I_EnumLabel(osg::Texture::CLAMP_TO_BORDER); - I_EnumLabel(osg::Texture::REPEAT); - I_EnumLabel(osg::Texture::MIRROR); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::FilterParameter) - I_EnumLabel(osg::Texture::MIN_FILTER); - I_EnumLabel(osg::Texture::MAG_FILTER); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::FilterMode) - I_EnumLabel(osg::Texture::LINEAR); - I_EnumLabel(osg::Texture::LINEAR_MIPMAP_LINEAR); - I_EnumLabel(osg::Texture::LINEAR_MIPMAP_NEAREST); - I_EnumLabel(osg::Texture::NEAREST); - I_EnumLabel(osg::Texture::NEAREST_MIPMAP_LINEAR); - I_EnumLabel(osg::Texture::NEAREST_MIPMAP_NEAREST); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatMode) - I_EnumLabel(osg::Texture::USE_IMAGE_DATA_FORMAT); - I_EnumLabel(osg::Texture::USE_USER_DEFINED_FORMAT); - I_EnumLabel(osg::Texture::USE_ARB_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT1_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT3_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT5_COMPRESSION); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowCompareFunc) - I_EnumLabel(osg::Texture::LEQUAL); - I_EnumLabel(osg::Texture::GEQUAL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) - I_EnumLabel(osg::Texture::LUMINANCE); - I_EnumLabel(osg::Texture::INTENSITY); - I_EnumLabel(osg::Texture::ALPHA); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) - I_BaseType(osg::StateAttribute); - I_BaseType(osg::StateAttribute); - I_Constructor0(____Texture, +BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, "", ""); - I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture__C5_Texture_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::PURE_VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::PURE_VIRTUAL, - __osg_Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method0(bool, isTextureAttribute, - Properties::VIRTUAL, - __bool__isTextureAttribute, - "", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::PURE_VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, - Properties::NON_VIRTUAL, - __void__setWrap__WrapParameter__WrapMode, - "Sets the texture wrap mode. ", - ""); - I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, - Properties::NON_VIRTUAL, - __WrapMode__getWrap__WrapParameter, - "Gets the texture wrap mode. ", - ""); - I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setBorderColor__C5_Vec4_R1, - "Sets the border color. ", - "Only used when wrap mode is CLAMP_TO_BORDER. "); - I_Method0(const osg::Vec4 &, getBorderColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getBorderColor, - "Gets the border color. ", - ""); - I_Method1(void, setBorderWidth, IN, GLint, width, - Properties::NON_VIRTUAL, - __void__setBorderWidth__GLint, - "Sets the border width. ", - ""); - I_Method0(GLint, getBorderWidth, - Properties::NON_VIRTUAL, - __GLint__getBorderWidth, - "", - ""); - I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, - Properties::NON_VIRTUAL, - __void__setFilter__FilterParameter__FilterMode, - "Sets the texture filter mode. ", - ""); - I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, - Properties::NON_VIRTUAL, - __FilterMode__getFilter__FilterParameter, - "Gets the texture filter mode. ", - ""); - I_Method1(void, setMaxAnisotropy, IN, float, anis, - Properties::NON_VIRTUAL, - __void__setMaxAnisotropy__float, - "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", - "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); - I_Method0(float, getMaxAnisotropy, - Properties::NON_VIRTUAL, - __float__getMaxAnisotropy, - "Gets the maximum anisotropy value. ", - ""); - I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __void__setUseHardwareMipMapGeneration__bool, - "Sets the hardware mipmap generation hint. ", - "If enabled, it will only be used if supported in the graphics system. "); - I_Method0(bool, getUseHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __bool__getUseHardwareMipMapGeneration, - "Gets the hardware mipmap generation hint. ", - ""); - I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setUnRefImageDataAfterApply__bool, - "Sets whether or not the apply() function will unreference the image data. ", - "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); - I_Method0(bool, getUnRefImageDataAfterApply, - Properties::NON_VIRTUAL, - __bool__getUnRefImageDataAfterApply, - "Gets whether or not apply() unreferences image data. ", - ""); - I_Method1(void, setClientStorageHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setClientStorageHint__bool, - "Sets whether to use client storage for the texture, if supported by the graphics system. ", - "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); - I_Method0(bool, getClientStorageHint, - Properties::NON_VIRTUAL, - __bool__getClientStorageHint, - "Gets whether to use client storage for the texture. ", - ""); - I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setResizeNonPowerOfTwoHint__bool, - "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", - "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); - I_Method0(bool, getResizeNonPowerOfTwoHint, - Properties::NON_VIRTUAL, - __bool__getResizeNonPowerOfTwoHint, - "Gets whether texture will force non power to two images to be resized. ", - ""); - I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, - Properties::NON_VIRTUAL, - __void__setInternalFormatMode__InternalFormatMode, - "Sets the internal texture format mode. ", - "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); - I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, - Properties::NON_VIRTUAL, - __InternalFormatMode__getInternalFormatMode, - "Gets the internal texture format mode. ", - ""); - I_Method1(void, setInternalFormat, IN, GLint, internalFormat, - Properties::NON_VIRTUAL, - __void__setInternalFormat__GLint, - "Sets the internal texture format. ", - "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); - I_Method0(GLint, getInternalFormat, - Properties::NON_VIRTUAL, - __GLint__getInternalFormat, - "Gets the internal texture format. ", - ""); - I_Method0(bool, isCompressedInternalFormat, - Properties::NON_VIRTUAL, - __bool__isCompressedInternalFormat, - "Return true if the internal format is one of the compressed formats. ", - ""); - I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, - Properties::NON_VIRTUAL, - __void__setSourceFormat__GLenum, - "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceFormat, - Properties::NON_VIRTUAL, - __GLenum__getSourceFormat, - "Gets the external source image format. ", - ""); - I_Method1(void, setSourceType, IN, GLenum, sourceType, - Properties::NON_VIRTUAL, - __void__setSourceType__GLenum, - "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceType, - Properties::NON_VIRTUAL, - __GLenum__getSourceType, - "Gets the external source data type. ", - ""); - I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __TextureObject_P1__getTextureObject__unsigned_int, - "Returns a pointer to the texture object for the current context. ", - ""); - I_Method0(void, dirtyTextureObject, - Properties::NON_VIRTUAL, - __void__dirtyTextureObject, - "Forces a recompile on next apply() of associated OpenGL texture objects. ", - ""); - I_Method0(bool, areAllTextureObjectsLoaded, - Properties::NON_VIRTUAL, - __bool__areAllTextureObjectsLoaded, - "Returns true if the texture objects for all the required graphics contexts are loaded. ", - ""); - I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getTextureParameterDirty__unsigned_int, - "Gets the dirty flag for the current contextID. ", - ""); - I_Method0(void, dirtyTextureParameters, - Properties::NON_VIRTUAL, - __void__dirtyTextureParameters, - "Force a reset on next apply() of associated OpenGL texture parameters. ", - ""); - I_Method1(void, setShadowComparison, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setShadowComparison__bool, - "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", - ""); - I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, - Properties::NON_VIRTUAL, - __void__setShadowCompareFunc__ShadowCompareFunc, - "Sets shadow texture comparison function. ", - ""); - I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, - Properties::NON_VIRTUAL, - __ShadowCompareFunc__getShadowCompareFunc, - "", - ""); - I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, - Properties::NON_VIRTUAL, - __void__setShadowTextureMode__ShadowTextureMode, - "Sets shadow texture mode after comparison. ", - ""); - I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, - Properties::NON_VIRTUAL, - __ShadowTextureMode__getShadowTextureMode, - "", - ""); - I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, - Properties::NON_VIRTUAL, - __void__setShadowAmbient__float, - "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", - "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); - I_Method0(float, getShadowAmbient, - Properties::NON_VIRTUAL, - __float__getShadowAmbient, - "", - ""); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, - Properties::PURE_VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Sets the texture image for the specified face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Gets the texture image for the specified face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Gets the const texture image for specified face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::PURE_VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to this Texture. ", - ""); - I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, - Properties::NON_VIRTUAL, - __void__setReadPBuffer__GraphicsContext_P1, - "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __GraphicsContext_P1__getReadPBuffer, - "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(const osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __C5_GraphicsContext_P1__getReadPBuffer, - "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__apply__State_R1, - "Texture is a pure virtual base class, apply must be overriden. ", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "Calls apply(state) to compile the texture. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, - "Helper method. ", - "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, - "Helper method. ", - "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, - Properties::NON_VIRTUAL, - __void__takeTextureObjects__TextureObjectListMap_R1, - "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", - ""); - I_Constructor0(____Texture, + I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, "", ""); - I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture__C5_Texture_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::PURE_VIRTUAL, - __osg_Object_P1__cloneType, + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, "", ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::PURE_VIRTUAL, - __osg_Object_P1__clone__C5_CopyOp_R1, + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, "", ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, + I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexturingSupported__bool, "", ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, + I_Method0(bool, isMultiTexturingSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexturingSupported, "", ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, + I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureFilterAnisotropicSupported__bool, "", ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, + I_Method0(bool, isTextureFilterAnisotropicSupported, + Properties::NON_VIRTUAL, + __bool__isTextureFilterAnisotropicSupported, "", ""); - I_Method0(bool, isTextureAttribute, - Properties::VIRTUAL, - __bool__isTextureAttribute, + I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionARBSupported__bool, "", ""); - I_Method0(GLenum, getTextureTarget, - Properties::PURE_VIRTUAL, - __GLenum__getTextureTarget, + I_Method0(bool, isTextureCompressionARBSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionARBSupported, "", ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, + I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionS3TCSupported__bool, "", ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, + I_Method0(bool, isTextureCompressionS3TCSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionS3TCSupported, "", ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, + I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureMirroredRepeatSupported__bool, "", ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, + I_Method0(bool, isTextureMirroredRepeatSupported, + Properties::NON_VIRTUAL, + __bool__isTextureMirroredRepeatSupported, "", ""); - I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, + I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, Properties::NON_VIRTUAL, - __void__setWrap__WrapParameter__WrapMode, - "Sets the texture wrap mode. ", - ""); - I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, - Properties::NON_VIRTUAL, - __WrapMode__getWrap__WrapParameter, - "Gets the texture wrap mode. ", - ""); - I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setBorderColor__C5_Vec4_R1, - "Sets the border color. ", - "Only used when wrap mode is CLAMP_TO_BORDER. "); - I_Method0(const osg::Vec4 &, getBorderColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getBorderColor, - "Gets the border color. ", - ""); - I_Method1(void, setBorderWidth, IN, GLint, width, - Properties::NON_VIRTUAL, - __void__setBorderWidth__GLint, - "Sets the border width. ", - ""); - I_Method0(GLint, getBorderWidth, - Properties::NON_VIRTUAL, - __GLint__getBorderWidth, + __void__setTextureEdgeClampSupported__bool, "", ""); - I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, + I_Method0(bool, isTextureEdgeClampSupported, Properties::NON_VIRTUAL, - __void__setFilter__FilterParameter__FilterMode, - "Sets the texture filter mode. ", - ""); - I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, - Properties::NON_VIRTUAL, - __FilterMode__getFilter__FilterParameter, - "Gets the texture filter mode. ", - ""); - I_Method1(void, setMaxAnisotropy, IN, float, anis, - Properties::NON_VIRTUAL, - __void__setMaxAnisotropy__float, - "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", - "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); - I_Method0(float, getMaxAnisotropy, - Properties::NON_VIRTUAL, - __float__getMaxAnisotropy, - "Gets the maximum anisotropy value. ", - ""); - I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __void__setUseHardwareMipMapGeneration__bool, - "Sets the hardware mipmap generation hint. ", - "If enabled, it will only be used if supported in the graphics system. "); - I_Method0(bool, getUseHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __bool__getUseHardwareMipMapGeneration, - "Gets the hardware mipmap generation hint. ", - ""); - I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setUnRefImageDataAfterApply__bool, - "Sets whether or not the apply() function will unreference the image data. ", - "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); - I_Method0(bool, getUnRefImageDataAfterApply, - Properties::NON_VIRTUAL, - __bool__getUnRefImageDataAfterApply, - "Gets whether or not apply() unreferences image data. ", - ""); - I_Method1(void, setClientStorageHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setClientStorageHint__bool, - "Sets whether to use client storage for the texture, if supported by the graphics system. ", - "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); - I_Method0(bool, getClientStorageHint, - Properties::NON_VIRTUAL, - __bool__getClientStorageHint, - "Gets whether to use client storage for the texture. ", - ""); - I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setResizeNonPowerOfTwoHint__bool, - "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", - "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); - I_Method0(bool, getResizeNonPowerOfTwoHint, - Properties::NON_VIRTUAL, - __bool__getResizeNonPowerOfTwoHint, - "Gets whether texture will force non power to two images to be resized. ", - ""); - I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, - Properties::NON_VIRTUAL, - __void__setInternalFormatMode__InternalFormatMode, - "Sets the internal texture format mode. ", - "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); - I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, - Properties::NON_VIRTUAL, - __InternalFormatMode__getInternalFormatMode, - "Gets the internal texture format mode. ", - ""); - I_Method1(void, setInternalFormat, IN, GLint, internalFormat, - Properties::NON_VIRTUAL, - __void__setInternalFormat__GLint, - "Sets the internal texture format. ", - "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); - I_Method0(GLint, getInternalFormat, - Properties::NON_VIRTUAL, - __GLint__getInternalFormat, - "Gets the internal texture format. ", - ""); - I_Method0(bool, isCompressedInternalFormat, - Properties::NON_VIRTUAL, - __bool__isCompressedInternalFormat, - "Return true if the internal format is one of the compressed formats. ", - ""); - I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, - Properties::NON_VIRTUAL, - __void__setSourceFormat__GLenum, - "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceFormat, - Properties::NON_VIRTUAL, - __GLenum__getSourceFormat, - "Gets the external source image format. ", - ""); - I_Method1(void, setSourceType, IN, GLenum, sourceType, - Properties::NON_VIRTUAL, - __void__setSourceType__GLenum, - "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceType, - Properties::NON_VIRTUAL, - __GLenum__getSourceType, - "Gets the external source data type. ", - ""); - I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __TextureObject_P1__getTextureObject__unsigned_int, - "Returns a pointer to the texture object for the current context. ", - ""); - I_Method0(void, dirtyTextureObject, - Properties::NON_VIRTUAL, - __void__dirtyTextureObject, - "Forces a recompile on next apply() of associated OpenGL texture objects. ", - ""); - I_Method0(bool, areAllTextureObjectsLoaded, - Properties::NON_VIRTUAL, - __bool__areAllTextureObjectsLoaded, - "Returns true if the texture objects for all the required graphics contexts are loaded. ", - ""); - I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getTextureParameterDirty__unsigned_int, - "Gets the dirty flag for the current contextID. ", - ""); - I_Method0(void, dirtyTextureParameters, - Properties::NON_VIRTUAL, - __void__dirtyTextureParameters, - "Force a reset on next apply() of associated OpenGL texture parameters. ", - ""); - I_Method1(void, setShadowComparison, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setShadowComparison__bool, - "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", - ""); - I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, - Properties::NON_VIRTUAL, - __void__setShadowCompareFunc__ShadowCompareFunc, - "Sets shadow texture comparison function. ", - ""); - I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, - Properties::NON_VIRTUAL, - __ShadowCompareFunc__getShadowCompareFunc, + __bool__isTextureEdgeClampSupported, "", ""); - I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, + I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, Properties::NON_VIRTUAL, - __void__setShadowTextureMode__ShadowTextureMode, - "Sets shadow texture mode after comparison. ", - ""); - I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, - Properties::NON_VIRTUAL, - __ShadowTextureMode__getShadowTextureMode, + __void__setTextureBorderClampSupported__bool, "", ""); - I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, + I_Method0(bool, isTextureBorderClampSupported, Properties::NON_VIRTUAL, - __void__setShadowAmbient__float, - "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", - "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); - I_Method0(float, getShadowAmbient, - Properties::NON_VIRTUAL, - __float__getShadowAmbient, + __bool__isTextureBorderClampSupported, "", ""); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, - Properties::PURE_VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Sets the texture image for the specified face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Gets the texture image for the specified face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Gets the const texture image for specified face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::PURE_VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to this Texture. ", - ""); - I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, + I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, Properties::NON_VIRTUAL, - __void__setReadPBuffer__GraphicsContext_P1, - "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + __void__setGenerateMipMapSupported__bool, + "", ""); - I_Method0(osg::GraphicsContext *, getReadPBuffer, + I_Method0(bool, isGenerateMipMapSupported, Properties::NON_VIRTUAL, - __GraphicsContext_P1__getReadPBuffer, - "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + __bool__isGenerateMipMapSupported, + "", ""); - I_Method0(const osg::GraphicsContext *, getReadPBuffer, + I_Method1(void, setShadowSupported, IN, bool, flag, Properties::NON_VIRTUAL, - __C5_GraphicsContext_P1__getReadPBuffer, - "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", + __void__setShadowSupported__bool, + "", ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__apply__State_R1, - "Texture is a pure virtual base class, apply must be overriden. ", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "Calls apply(state) to compile the texture. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, + I_Method0(bool, isShadowSupported, Properties::NON_VIRTUAL, - __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, - "Helper method. ", - "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, - "Helper method. ", - "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, - Properties::NON_VIRTUAL, - __void__takeTextureObjects__TextureObjectListMap_R1, - "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", + __bool__isShadowSupported, + "", ""); - I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Gets the extension for the specified context. ", - "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "Overrides Extensions objects across graphics contexts. ", - "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); - I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, - __bool__isCompressedInternalFormat__GLint_S, - "Determine whether the given internalFormat is a compressed image format. ", - ""); - I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, - __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, - "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", - "The block size and the size are output parameters. "); - I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S, - "", - ""); - I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, - "", - ""); - I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, - __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, - "Set the minimum number of texture objects to retain in the deleted display list cache. ", - ""); - I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, - __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, - "Get the minimum number of display lists to retain in the deleted display list cache. ", - ""); - I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, - __void__flushAllDeletedTextureObjects__unsigned_int_S, - "", - ""); - I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, - "", - ""); - I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Gets the extension for the specified context. ", - "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "Overrides Extensions objects across graphics contexts. ", - "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); - I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, - __bool__isCompressedInternalFormat__GLint_S, - "Determine whether the given internalFormat is a compressed image format. ", - ""); - I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, - __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, - "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", - "The block size and the size are output parameters. "); - I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S, - "", - ""); - I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, - "", - ""); - I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, - __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, - "Set the minimum number of texture objects to retain in the deleted display list cache. ", - ""); - I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, - __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, - "Get the minimum number of display lists to retain in the deleted display list cache. ", - ""); - I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, - __void__flushAllDeletedTextureObjects__unsigned_int_S, - "", - ""); - I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, - "", - ""); - I_SimpleProperty(const osg::Vec4 &, BorderColor, - __C5_Vec4_R1__getBorderColor, - __void__setBorderColor__C5_Vec4_R1); - I_SimpleProperty(GLint, BorderWidth, - __GLint__getBorderWidth, - __void__setBorderWidth__GLint); - I_SimpleProperty(bool, ClientStorageHint, - __bool__getClientStorageHint, - __void__setClientStorageHint__bool); - I_IndexedProperty(osg::Texture::FilterMode, Filter, - __FilterMode__getFilter__FilterParameter, - __void__setFilter__FilterParameter__FilterMode, - 0); - I_ArrayProperty(osg::Image *, Image, - __Image_P1__getImage__unsigned_int, - __void__setImage__unsigned_int__Image_P1, - __unsigned_int__getNumImages, - 0, - 0, - 0); - I_SimpleProperty(GLint, InternalFormat, - __GLint__getInternalFormat, - __void__setInternalFormat__GLint); - I_SimpleProperty(osg::Texture::InternalFormatMode, InternalFormatMode, - __InternalFormatMode__getInternalFormatMode, - __void__setInternalFormatMode__InternalFormatMode); - I_SimpleProperty(float, MaxAnisotropy, - __float__getMaxAnisotropy, - __void__setMaxAnisotropy__float); - I_SimpleProperty(osg::GraphicsContext *, ReadPBuffer, - __GraphicsContext_P1__getReadPBuffer, - __void__setReadPBuffer__GraphicsContext_P1); - I_SimpleProperty(bool, ResizeNonPowerOfTwoHint, - __bool__getResizeNonPowerOfTwoHint, - __void__setResizeNonPowerOfTwoHint__bool); - I_SimpleProperty(float, ShadowAmbient, - __float__getShadowAmbient, - __void__setShadowAmbient__float); - I_SimpleProperty(osg::Texture::ShadowCompareFunc, ShadowCompareFunc, - __ShadowCompareFunc__getShadowCompareFunc, - __void__setShadowCompareFunc__ShadowCompareFunc); - I_SimpleProperty(bool, ShadowComparison, + I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowAmbientSupported__bool, + "", + ""); + I_Method0(bool, isShadowAmbientSupported, + Properties::NON_VIRTUAL, + __bool__isShadowAmbientSupported, + "", + ""); + I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTextureSize__GLint, + "", + ""); + I_Method0(GLint, maxTextureSize, + Properties::NON_VIRTUAL, + __GLint__maxTextureSize, + "", + ""); + I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + Properties::NON_VIRTUAL, + __void__setNumTextureUnits__GLint, + "", + ""); + I_Method0(GLint, numTextureUnits, + Properties::NON_VIRTUAL, + __GLint__numTextureUnits, + "", + ""); + I_Method0(bool, isCompressedTexImage2DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage2DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexImage2DProc__void_P1, + "", + ""); + I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexSubImage2DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setGetCompressedTexImageProc__void_P1, + "", + ""); + I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, + "", + ""); + I_Method0(bool, isClientStorageSupported, + Properties::NON_VIRTUAL, + __bool__isClientStorageSupported, + "", + ""); + I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + Properties::NON_VIRTUAL, + __bool__isNonPowerOfTwoTextureSupported__GLenum, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexturingSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexturingSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexturingSupported, + "", + ""); + I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureFilterAnisotropicSupported__bool, + "", + ""); + I_Method0(bool, isTextureFilterAnisotropicSupported, + Properties::NON_VIRTUAL, + __bool__isTextureFilterAnisotropicSupported, + "", + ""); + I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionARBSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionARBSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionARBSupported, + "", + ""); + I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionS3TCSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionS3TCSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionS3TCSupported, + "", + ""); + I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureMirroredRepeatSupported__bool, + "", + ""); + I_Method0(bool, isTextureMirroredRepeatSupported, + Properties::NON_VIRTUAL, + __bool__isTextureMirroredRepeatSupported, + "", + ""); + I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureEdgeClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureEdgeClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureEdgeClampSupported, + "", + ""); + I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureBorderClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureBorderClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureBorderClampSupported, + "", + ""); + I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateMipMapSupported__bool, + "", + ""); + I_Method0(bool, isGenerateMipMapSupported, + Properties::NON_VIRTUAL, + __bool__isGenerateMipMapSupported, + "", + ""); + I_Method1(void, setShadowSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowSupported__bool, + "", + ""); + I_Method0(bool, isShadowSupported, + Properties::NON_VIRTUAL, + __bool__isShadowSupported, + "", + ""); + I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowAmbientSupported__bool, + "", + ""); + I_Method0(bool, isShadowAmbientSupported, + Properties::NON_VIRTUAL, + __bool__isShadowAmbientSupported, + "", + ""); + I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTextureSize__GLint, + "", + ""); + I_Method0(GLint, maxTextureSize, + Properties::NON_VIRTUAL, + __GLint__maxTextureSize, + "", + ""); + I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + Properties::NON_VIRTUAL, + __void__setNumTextureUnits__GLint, + "", + ""); + I_Method0(GLint, numTextureUnits, + Properties::NON_VIRTUAL, + __GLint__numTextureUnits, + "", + ""); + I_Method0(bool, isCompressedTexImage2DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage2DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexImage2DProc__void_P1, + "", + ""); + I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexSubImage2DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setGetCompressedTexImageProc__void_P1, + "", + ""); + I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, + "", + ""); + I_Method0(bool, isClientStorageSupported, + Properties::NON_VIRTUAL, + __bool__isClientStorageSupported, + "", + ""); + I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + Properties::NON_VIRTUAL, + __bool__isNonPowerOfTwoTextureSupported__GLenum, + "", + ""); + I_SimpleProperty(void *, CompressedTexImage2DProc, 0, - __void__setShadowComparison__bool); - I_SimpleProperty(osg::Texture::ShadowTextureMode, ShadowTextureMode, - __ShadowTextureMode__getShadowTextureMode, - __void__setShadowTextureMode__ShadowTextureMode); - I_SimpleProperty(GLenum, SourceFormat, - __GLenum__getSourceFormat, - __void__setSourceFormat__GLenum); - I_SimpleProperty(GLenum, SourceType, - __GLenum__getSourceType, - __void__setSourceType__GLenum); - I_SimpleProperty(int, TextureDepth, - __int__getTextureDepth, - 0); - I_SimpleProperty(int, TextureHeight, - __int__getTextureHeight, - 0); - I_SimpleProperty(GLenum, TextureTarget, - __GLenum__getTextureTarget, - 0); - I_SimpleProperty(int, TextureWidth, - __int__getTextureWidth, - 0); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); - I_SimpleProperty(bool, UnRefImageDataAfterApply, - __bool__getUnRefImageDataAfterApply, - __void__setUnRefImageDataAfterApply__bool); - I_SimpleProperty(bool, UseHardwareMipMapGeneration, - __bool__getUseHardwareMipMapGeneration, - __void__setUseHardwareMipMapGeneration__bool); - I_IndexedProperty(osg::Texture::WrapMode, Wrap, - __WrapMode__getWrap__WrapParameter, - __void__setWrap__WrapParameter__WrapMode, - 0); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osg::Texture::TextureObject > >, osg::Texture::TextureObjectList); - -TYPE_NAME_ALIAS(osg::buffered_object< osg::Texture::TextureObjectList >, osg::Texture::TextureObjectListMap); - -BEGIN_ENUM_REFLECTOR(osg::Texture::WrapParameter) - I_EnumLabel(osg::Texture::WRAP_S); - I_EnumLabel(osg::Texture::WRAP_T); - I_EnumLabel(osg::Texture::WRAP_R); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::WrapMode) - I_EnumLabel(osg::Texture::CLAMP); - I_EnumLabel(osg::Texture::CLAMP_TO_EDGE); - I_EnumLabel(osg::Texture::CLAMP_TO_BORDER); - I_EnumLabel(osg::Texture::REPEAT); - I_EnumLabel(osg::Texture::MIRROR); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::FilterParameter) - I_EnumLabel(osg::Texture::MIN_FILTER); - I_EnumLabel(osg::Texture::MAG_FILTER); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::FilterMode) - I_EnumLabel(osg::Texture::LINEAR); - I_EnumLabel(osg::Texture::LINEAR_MIPMAP_LINEAR); - I_EnumLabel(osg::Texture::LINEAR_MIPMAP_NEAREST); - I_EnumLabel(osg::Texture::NEAREST); - I_EnumLabel(osg::Texture::NEAREST_MIPMAP_LINEAR); - I_EnumLabel(osg::Texture::NEAREST_MIPMAP_NEAREST); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::InternalFormatMode) - I_EnumLabel(osg::Texture::USE_IMAGE_DATA_FORMAT); - I_EnumLabel(osg::Texture::USE_USER_DEFINED_FORMAT); - I_EnumLabel(osg::Texture::USE_ARB_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT1_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT3_COMPRESSION); - I_EnumLabel(osg::Texture::USE_S3TC_DXT5_COMPRESSION); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowCompareFunc) - I_EnumLabel(osg::Texture::LEQUAL); - I_EnumLabel(osg::Texture::GEQUAL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osg::Texture::ShadowTextureMode) - I_EnumLabel(osg::Texture::LUMINANCE); - I_EnumLabel(osg::Texture::INTENSITY); - I_EnumLabel(osg::Texture::ALPHA); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture) - I_BaseType(osg::StateAttribute); - I_BaseType(osg::StateAttribute); - I_Constructor0(____Texture, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture__C5_Texture_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::PURE_VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::PURE_VIRTUAL, - __osg_Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method0(bool, isTextureAttribute, - Properties::VIRTUAL, - __bool__isTextureAttribute, - "", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::PURE_VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, - Properties::NON_VIRTUAL, - __void__setWrap__WrapParameter__WrapMode, - "Sets the texture wrap mode. ", - ""); - I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, - Properties::NON_VIRTUAL, - __WrapMode__getWrap__WrapParameter, - "Gets the texture wrap mode. ", - ""); - I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setBorderColor__C5_Vec4_R1, - "Sets the border color. ", - "Only used when wrap mode is CLAMP_TO_BORDER. "); - I_Method0(const osg::Vec4 &, getBorderColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getBorderColor, - "Gets the border color. ", - ""); - I_Method1(void, setBorderWidth, IN, GLint, width, - Properties::NON_VIRTUAL, - __void__setBorderWidth__GLint, - "Sets the border width. ", - ""); - I_Method0(GLint, getBorderWidth, - Properties::NON_VIRTUAL, - __GLint__getBorderWidth, - "", - ""); - I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, - Properties::NON_VIRTUAL, - __void__setFilter__FilterParameter__FilterMode, - "Sets the texture filter mode. ", - ""); - I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, - Properties::NON_VIRTUAL, - __FilterMode__getFilter__FilterParameter, - "Gets the texture filter mode. ", - ""); - I_Method1(void, setMaxAnisotropy, IN, float, anis, - Properties::NON_VIRTUAL, - __void__setMaxAnisotropy__float, - "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", - "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); - I_Method0(float, getMaxAnisotropy, - Properties::NON_VIRTUAL, - __float__getMaxAnisotropy, - "Gets the maximum anisotropy value. ", - ""); - I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __void__setUseHardwareMipMapGeneration__bool, - "Sets the hardware mipmap generation hint. ", - "If enabled, it will only be used if supported in the graphics system. "); - I_Method0(bool, getUseHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __bool__getUseHardwareMipMapGeneration, - "Gets the hardware mipmap generation hint. ", - ""); - I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setUnRefImageDataAfterApply__bool, - "Sets whether or not the apply() function will unreference the image data. ", - "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); - I_Method0(bool, getUnRefImageDataAfterApply, - Properties::NON_VIRTUAL, - __bool__getUnRefImageDataAfterApply, - "Gets whether or not apply() unreferences image data. ", - ""); - I_Method1(void, setClientStorageHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setClientStorageHint__bool, - "Sets whether to use client storage for the texture, if supported by the graphics system. ", - "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); - I_Method0(bool, getClientStorageHint, - Properties::NON_VIRTUAL, - __bool__getClientStorageHint, - "Gets whether to use client storage for the texture. ", - ""); - I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setResizeNonPowerOfTwoHint__bool, - "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", - "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); - I_Method0(bool, getResizeNonPowerOfTwoHint, - Properties::NON_VIRTUAL, - __bool__getResizeNonPowerOfTwoHint, - "Gets whether texture will force non power to two images to be resized. ", - ""); - I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, - Properties::NON_VIRTUAL, - __void__setInternalFormatMode__InternalFormatMode, - "Sets the internal texture format mode. ", - "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); - I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, - Properties::NON_VIRTUAL, - __InternalFormatMode__getInternalFormatMode, - "Gets the internal texture format mode. ", - ""); - I_Method1(void, setInternalFormat, IN, GLint, internalFormat, - Properties::NON_VIRTUAL, - __void__setInternalFormat__GLint, - "Sets the internal texture format. ", - "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); - I_Method0(GLint, getInternalFormat, - Properties::NON_VIRTUAL, - __GLint__getInternalFormat, - "Gets the internal texture format. ", - ""); - I_Method0(bool, isCompressedInternalFormat, - Properties::NON_VIRTUAL, - __bool__isCompressedInternalFormat, - "Return true if the internal format is one of the compressed formats. ", - ""); - I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, - Properties::NON_VIRTUAL, - __void__setSourceFormat__GLenum, - "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceFormat, - Properties::NON_VIRTUAL, - __GLenum__getSourceFormat, - "Gets the external source image format. ", - ""); - I_Method1(void, setSourceType, IN, GLenum, sourceType, - Properties::NON_VIRTUAL, - __void__setSourceType__GLenum, - "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceType, - Properties::NON_VIRTUAL, - __GLenum__getSourceType, - "Gets the external source data type. ", - ""); - I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __TextureObject_P1__getTextureObject__unsigned_int, - "Returns a pointer to the texture object for the current context. ", - ""); - I_Method0(void, dirtyTextureObject, - Properties::NON_VIRTUAL, - __void__dirtyTextureObject, - "Forces a recompile on next apply() of associated OpenGL texture objects. ", - ""); - I_Method0(bool, areAllTextureObjectsLoaded, - Properties::NON_VIRTUAL, - __bool__areAllTextureObjectsLoaded, - "Returns true if the texture objects for all the required graphics contexts are loaded. ", - ""); - I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getTextureParameterDirty__unsigned_int, - "Gets the dirty flag for the current contextID. ", - ""); - I_Method0(void, dirtyTextureParameters, - Properties::NON_VIRTUAL, - __void__dirtyTextureParameters, - "Force a reset on next apply() of associated OpenGL texture parameters. ", - ""); - I_Method1(void, setShadowComparison, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setShadowComparison__bool, - "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", - ""); - I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, - Properties::NON_VIRTUAL, - __void__setShadowCompareFunc__ShadowCompareFunc, - "Sets shadow texture comparison function. ", - ""); - I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, - Properties::NON_VIRTUAL, - __ShadowCompareFunc__getShadowCompareFunc, - "", - ""); - I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, - Properties::NON_VIRTUAL, - __void__setShadowTextureMode__ShadowTextureMode, - "Sets shadow texture mode after comparison. ", - ""); - I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, - Properties::NON_VIRTUAL, - __ShadowTextureMode__getShadowTextureMode, - "", - ""); - I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, - Properties::NON_VIRTUAL, - __void__setShadowAmbient__float, - "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", - "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); - I_Method0(float, getShadowAmbient, - Properties::NON_VIRTUAL, - __float__getShadowAmbient, - "", - ""); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, - Properties::PURE_VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Sets the texture image for the specified face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Gets the texture image for the specified face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Gets the const texture image for specified face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::PURE_VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to this Texture. ", - ""); - I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, - Properties::NON_VIRTUAL, - __void__setReadPBuffer__GraphicsContext_P1, - "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __GraphicsContext_P1__getReadPBuffer, - "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(const osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __C5_GraphicsContext_P1__getReadPBuffer, - "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__apply__State_R1, - "Texture is a pure virtual base class, apply must be overriden. ", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "Calls apply(state) to compile the texture. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, - "Helper method. ", - "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, - "Helper method. ", - "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, - Properties::NON_VIRTUAL, - __void__takeTextureObjects__TextureObjectListMap_R1, - "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", - ""); - I_Constructor0(____Texture, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture__C5_Texture_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::PURE_VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::PURE_VIRTUAL, - __osg_Object_P1__clone__C5_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method0(bool, isTextureAttribute, - Properties::VIRTUAL, - __bool__isTextureAttribute, - "", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::PURE_VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method2(void, setWrap, IN, osg::Texture::WrapParameter, which, IN, osg::Texture::WrapMode, wrap, - Properties::NON_VIRTUAL, - __void__setWrap__WrapParameter__WrapMode, - "Sets the texture wrap mode. ", - ""); - I_Method1(osg::Texture::WrapMode, getWrap, IN, osg::Texture::WrapParameter, which, - Properties::NON_VIRTUAL, - __WrapMode__getWrap__WrapParameter, - "Gets the texture wrap mode. ", - ""); - I_Method1(void, setBorderColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setBorderColor__C5_Vec4_R1, - "Sets the border color. ", - "Only used when wrap mode is CLAMP_TO_BORDER. "); - I_Method0(const osg::Vec4 &, getBorderColor, - Properties::NON_VIRTUAL, - __C5_Vec4_R1__getBorderColor, - "Gets the border color. ", - ""); - I_Method1(void, setBorderWidth, IN, GLint, width, - Properties::NON_VIRTUAL, - __void__setBorderWidth__GLint, - "Sets the border width. ", - ""); - I_Method0(GLint, getBorderWidth, - Properties::NON_VIRTUAL, - __GLint__getBorderWidth, - "", - ""); - I_Method2(void, setFilter, IN, osg::Texture::FilterParameter, which, IN, osg::Texture::FilterMode, filter, - Properties::NON_VIRTUAL, - __void__setFilter__FilterParameter__FilterMode, - "Sets the texture filter mode. ", - ""); - I_Method1(osg::Texture::FilterMode, getFilter, IN, osg::Texture::FilterParameter, which, - Properties::NON_VIRTUAL, - __FilterMode__getFilter__FilterParameter, - "Gets the texture filter mode. ", - ""); - I_Method1(void, setMaxAnisotropy, IN, float, anis, - Properties::NON_VIRTUAL, - __void__setMaxAnisotropy__float, - "Sets the maximum anisotropy value, default value is 1.0 for no anisotropic filtering. ", - "If hardware does not support anisotropic filtering, use normal filtering (equivilant to a max anisotropy value of 1.0. Valid range is 1.0f upwards. The maximum value depends on the graphics system. "); - I_Method0(float, getMaxAnisotropy, - Properties::NON_VIRTUAL, - __float__getMaxAnisotropy, - "Gets the maximum anisotropy value. ", - ""); - I_Method1(void, setUseHardwareMipMapGeneration, IN, bool, useHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __void__setUseHardwareMipMapGeneration__bool, - "Sets the hardware mipmap generation hint. ", - "If enabled, it will only be used if supported in the graphics system. "); - I_Method0(bool, getUseHardwareMipMapGeneration, - Properties::NON_VIRTUAL, - __bool__getUseHardwareMipMapGeneration, - "Gets the hardware mipmap generation hint. ", - ""); - I_Method1(void, setUnRefImageDataAfterApply, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setUnRefImageDataAfterApply__bool, - "Sets whether or not the apply() function will unreference the image data. ", - "If enabled, and the image data is only referened by this Texture, apply() will delete the image data. "); - I_Method0(bool, getUnRefImageDataAfterApply, - Properties::NON_VIRTUAL, - __bool__getUnRefImageDataAfterApply, - "Gets whether or not apply() unreferences image data. ", - ""); - I_Method1(void, setClientStorageHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setClientStorageHint__bool, - "Sets whether to use client storage for the texture, if supported by the graphics system. ", - "Note: If enabled, and the graphics system supports it, the osg::Image(s) associated with this texture cannot be deleted, so the UnRefImageDataAfterApply flag would be ignored. "); - I_Method0(bool, getClientStorageHint, - Properties::NON_VIRTUAL, - __bool__getClientStorageHint, - "Gets whether to use client storage for the texture. ", - ""); - I_Method1(void, setResizeNonPowerOfTwoHint, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setResizeNonPowerOfTwoHint__bool, - "Sets whether to force the texture to resize images that have dimensions that are not a power of two. ", - "If enabled, NPOT images will be resized, whether or not NPOT textures are supported by the hardware. If disabled, NPOT images will not be resized if supported by hardware. "); - I_Method0(bool, getResizeNonPowerOfTwoHint, - Properties::NON_VIRTUAL, - __bool__getResizeNonPowerOfTwoHint, - "Gets whether texture will force non power to two images to be resized. ", - ""); - I_Method1(void, setInternalFormatMode, IN, osg::Texture::InternalFormatMode, mode, - Properties::NON_VIRTUAL, - __void__setInternalFormatMode__InternalFormatMode, - "Sets the internal texture format mode. ", - "Note: If the texture format is USE_IMAGE_DATA_FORMAT, USE_ARB_COMPRESSION, or USE_S3TC_COMPRESSION, the internal format mode is set automatically and will overwrite the previous _internalFormat. "); - I_Method0(osg::Texture::InternalFormatMode, getInternalFormatMode, - Properties::NON_VIRTUAL, - __InternalFormatMode__getInternalFormatMode, - "Gets the internal texture format mode. ", - ""); - I_Method1(void, setInternalFormat, IN, GLint, internalFormat, - Properties::NON_VIRTUAL, - __void__setInternalFormat__GLint, - "Sets the internal texture format. ", - "Implicitly sets the internalFormatMode to USE_USER_DEFINED_FORMAT. "); - I_Method0(GLint, getInternalFormat, - Properties::NON_VIRTUAL, - __GLint__getInternalFormat, - "Gets the internal texture format. ", - ""); - I_Method0(bool, isCompressedInternalFormat, - Properties::NON_VIRTUAL, - __bool__isCompressedInternalFormat, - "Return true if the internal format is one of the compressed formats. ", - ""); - I_Method1(void, setSourceFormat, IN, GLenum, sourceFormat, - Properties::NON_VIRTUAL, - __void__setSourceFormat__GLenum, - "Sets the external source image format, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceFormat, - Properties::NON_VIRTUAL, - __GLenum__getSourceFormat, - "Gets the external source image format. ", - ""); - I_Method1(void, setSourceType, IN, GLenum, sourceType, - Properties::NON_VIRTUAL, - __void__setSourceType__GLenum, - "Sets the external source data type, used as a fallback when no osg::Image is attached to provide the source image format. ", - ""); - I_Method0(GLenum, getSourceType, - Properties::NON_VIRTUAL, - __GLenum__getSourceType, - "Gets the external source data type. ", - ""); - I_Method1(osg::Texture::TextureObject *, getTextureObject, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __TextureObject_P1__getTextureObject__unsigned_int, - "Returns a pointer to the texture object for the current context. ", - ""); - I_Method0(void, dirtyTextureObject, - Properties::NON_VIRTUAL, - __void__dirtyTextureObject, - "Forces a recompile on next apply() of associated OpenGL texture objects. ", - ""); - I_Method0(bool, areAllTextureObjectsLoaded, - Properties::NON_VIRTUAL, - __bool__areAllTextureObjectsLoaded, - "Returns true if the texture objects for all the required graphics contexts are loaded. ", - ""); - I_Method1(unsigned int &, getTextureParameterDirty, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getTextureParameterDirty__unsigned_int, - "Gets the dirty flag for the current contextID. ", - ""); - I_Method0(void, dirtyTextureParameters, - Properties::NON_VIRTUAL, - __void__dirtyTextureParameters, - "Force a reset on next apply() of associated OpenGL texture parameters. ", - ""); - I_Method1(void, setShadowComparison, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setShadowComparison__bool, - "Sets GL_TEXTURE_COMPARE_MODE_ARB to GL_COMPARE_R_TO_TEXTURE_ARB See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow.txt. ", - ""); - I_Method1(void, setShadowCompareFunc, IN, osg::Texture::ShadowCompareFunc, func, - Properties::NON_VIRTUAL, - __void__setShadowCompareFunc__ShadowCompareFunc, - "Sets shadow texture comparison function. ", - ""); - I_Method0(osg::Texture::ShadowCompareFunc, getShadowCompareFunc, - Properties::NON_VIRTUAL, - __ShadowCompareFunc__getShadowCompareFunc, - "", - ""); - I_Method1(void, setShadowTextureMode, IN, osg::Texture::ShadowTextureMode, mode, - Properties::NON_VIRTUAL, - __void__setShadowTextureMode__ShadowTextureMode, - "Sets shadow texture mode after comparison. ", - ""); - I_Method0(osg::Texture::ShadowTextureMode, getShadowTextureMode, - Properties::NON_VIRTUAL, - __ShadowTextureMode__getShadowTextureMode, - "", - ""); - I_Method1(void, setShadowAmbient, IN, float, shadow_ambient, - Properties::NON_VIRTUAL, - __void__setShadowAmbient__float, - "Sets the TEXTURE_COMPARE_FAIL_VALUE_ARB texture parameter. ", - "See http://oss.sgi.com/projects/ogl-sample/registry/ARB/shadow_ambient.txt. "); - I_Method0(float, getShadowAmbient, - Properties::NON_VIRTUAL, - __float__getShadowAmbient, - "", - ""); - I_Method2(void, setImage, IN, unsigned int, face, IN, osg::Image *, image, - Properties::PURE_VIRTUAL, - __void__setImage__unsigned_int__Image_P1, - "Sets the texture image for the specified face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __Image_P1__getImage__unsigned_int, - "Gets the texture image for the specified face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned int, face, - Properties::PURE_VIRTUAL, - __C5_Image_P1__getImage__unsigned_int, - "Gets the const texture image for specified face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::PURE_VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to this Texture. ", - ""); - I_Method1(void, setReadPBuffer, IN, osg::GraphicsContext *, context, - Properties::NON_VIRTUAL, - __void__setReadPBuffer__GraphicsContext_P1, - "Set the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __GraphicsContext_P1__getReadPBuffer, - "Get the PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method0(const osg::GraphicsContext *, getReadPBuffer, - Properties::NON_VIRTUAL, - __C5_GraphicsContext_P1__getReadPBuffer, - "Get the const PBuffer graphis context to read from when using PBuffers for RenderToTexture. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::PURE_VIRTUAL, - __void__apply__State_R1, - "Texture is a pure virtual base class, apply must be overriden. ", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "Calls apply(state) to compile the texture. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method6(void, applyTexImage2D_load, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_load__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLsizei, - "Helper method. ", - "Creates the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method7(void, applyTexImage2D_subload, IN, osg::State &, state, IN, GLenum, target, IN, const osg::Image *, image, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, inInternalFormat, IN, GLsizei, numMipmapLevels, - Properties::NON_VIRTUAL, - __void__applyTexImage2D_subload__State_R1__GLenum__C5_Image_P1__GLsizei__GLsizei__GLint__GLsizei, - "Helper method. ", - "Subloads images into the texture, but doesn't set or use a texture binding. Note: Don't call this method directly unless you're implementing a subload callback. "); - I_Method1(void, takeTextureObjects, IN, osg::Texture::TextureObjectListMap &, toblm, - Properties::NON_VIRTUAL, - __void__takeTextureObjects__TextureObjectListMap_R1, - "Takes the active texture objects from the Texture and places them in the specified TextureObjectListMap. ", - ""); - I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Gets the extension for the specified context. ", - "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "Overrides Extensions objects across graphics contexts. ", - "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); - I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, - __bool__isCompressedInternalFormat__GLint_S, - "Determine whether the given internalFormat is a compressed image format. ", - ""); - I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, - __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, - "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", - "The block size and the size are output parameters. "); - I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S, - "", - ""); - I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, - "", - ""); - I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, - __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, - "Set the minimum number of texture objects to retain in the deleted display list cache. ", - ""); - I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, - __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, - "Get the minimum number of display lists to retain in the deleted display list cache. ", - ""); - I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, - __void__flushAllDeletedTextureObjects__unsigned_int_S, - "", - ""); - I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, - "", - ""); - I_StaticMethod2(osg::Texture::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Gets the extension for the specified context. ", - "Creates the Extensions object for that context if it doesn't exist. Returns NULL if the Extensions object for the context doesn't exist and the createIfNotInitalized flag is false. "); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::Texture::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "Overrides Extensions objects across graphics contexts. ", - "Typically used to ensure the same lowest common denominator of extensions on sustems with different graphics pipes. "); - I_StaticMethod1(bool, isCompressedInternalFormat, IN, GLint, internalFormat, - __bool__isCompressedInternalFormat__GLint_S, - "Determine whether the given internalFormat is a compressed image format. ", - ""); - I_StaticMethod6(void, getCompressedSize, IN, GLenum, internalFormat, IN, GLint, width, IN, GLint, height, IN, GLint, depth, IN, GLint &, blockSize, IN, GLint &, size, - __void__getCompressedSize__GLenum__GLint__GLint__GLint__GLint_R1__GLint_R1_S, - "Determine the size of a compressed image, given the internalFormat, the width, the height, and the depth of the image. ", - "The block size and the size are output parameters. "); - I_StaticMethod2(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum_S, - "", - ""); - I_StaticMethod8(osg::Texture::TextureObject *, generateTextureObject, IN, unsigned int, contextID, IN, GLenum, target, IN, GLint, numMipmapLevels, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, - __TextureObject_P1__generateTextureObject__unsigned_int__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint_S, - "", - ""); - I_StaticMethod1(void, setMinimumNumberOfTextureObjectsToRetainInCache, IN, unsigned int, minimum, - __void__setMinimumNumberOfTextureObjectsToRetainInCache__unsigned_int_S, - "Set the minimum number of texture objects to retain in the deleted display list cache. ", - ""); - I_StaticMethod0(unsigned int, getMinimumNumberOfTextureObjectsToRetainInCache, - __unsigned_int__getMinimumNumberOfTextureObjectsToRetainInCache_S, - "Get the minimum number of display lists to retain in the deleted display list cache. ", - ""); - I_StaticMethod1(void, flushAllDeletedTextureObjects, IN, unsigned int, contextID, - __void__flushAllDeletedTextureObjects__unsigned_int_S, - "", - ""); - I_StaticMethod3(void, flushDeletedTextureObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedTextureObjects__unsigned_int__double__double_R1_S, - "", - ""); - I_SimpleProperty(const osg::Vec4 &, BorderColor, - __C5_Vec4_R1__getBorderColor, - __void__setBorderColor__C5_Vec4_R1); - I_SimpleProperty(GLint, BorderWidth, - __GLint__getBorderWidth, - __void__setBorderWidth__GLint); - I_SimpleProperty(bool, ClientStorageHint, - __bool__getClientStorageHint, - __void__setClientStorageHint__bool); - I_IndexedProperty(osg::Texture::FilterMode, Filter, - __FilterMode__getFilter__FilterParameter, - __void__setFilter__FilterParameter__FilterMode, - 0); - I_ArrayProperty(osg::Image *, Image, - __Image_P1__getImage__unsigned_int, - __void__setImage__unsigned_int__Image_P1, - __unsigned_int__getNumImages, - 0, - 0, - 0); - I_SimpleProperty(GLint, InternalFormat, - __GLint__getInternalFormat, - __void__setInternalFormat__GLint); - I_SimpleProperty(osg::Texture::InternalFormatMode, InternalFormatMode, - __InternalFormatMode__getInternalFormatMode, - __void__setInternalFormatMode__InternalFormatMode); - I_SimpleProperty(float, MaxAnisotropy, - __float__getMaxAnisotropy, - __void__setMaxAnisotropy__float); - I_SimpleProperty(osg::GraphicsContext *, ReadPBuffer, - __GraphicsContext_P1__getReadPBuffer, - __void__setReadPBuffer__GraphicsContext_P1); - I_SimpleProperty(bool, ResizeNonPowerOfTwoHint, - __bool__getResizeNonPowerOfTwoHint, - __void__setResizeNonPowerOfTwoHint__bool); - I_SimpleProperty(float, ShadowAmbient, - __float__getShadowAmbient, - __void__setShadowAmbient__float); - I_SimpleProperty(osg::Texture::ShadowCompareFunc, ShadowCompareFunc, - __ShadowCompareFunc__getShadowCompareFunc, - __void__setShadowCompareFunc__ShadowCompareFunc); - I_SimpleProperty(bool, ShadowComparison, + __void__setCompressedTexImage2DProc__void_P1); + I_SimpleProperty(void *, CompressedTexSubImage2DProc, 0, - __void__setShadowComparison__bool); - I_SimpleProperty(osg::Texture::ShadowTextureMode, ShadowTextureMode, - __ShadowTextureMode__getShadowTextureMode, - __void__setShadowTextureMode__ShadowTextureMode); - I_SimpleProperty(GLenum, SourceFormat, - __GLenum__getSourceFormat, - __void__setSourceFormat__GLenum); - I_SimpleProperty(GLenum, SourceType, - __GLenum__getSourceType, - __void__setSourceType__GLenum); - I_SimpleProperty(int, TextureDepth, - __int__getTextureDepth, - 0); - I_SimpleProperty(int, TextureHeight, - __int__getTextureHeight, - 0); - I_SimpleProperty(GLenum, TextureTarget, - __GLenum__getTextureTarget, - 0); - I_SimpleProperty(int, TextureWidth, - __int__getTextureWidth, - 0); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); - I_SimpleProperty(bool, UnRefImageDataAfterApply, - __bool__getUnRefImageDataAfterApply, - __void__setUnRefImageDataAfterApply__bool); - I_SimpleProperty(bool, UseHardwareMipMapGeneration, - __bool__getUseHardwareMipMapGeneration, - __void__setUseHardwareMipMapGeneration__bool); - I_IndexedProperty(osg::Texture::WrapMode, Wrap, - __WrapMode__getWrap__WrapParameter, - __void__setWrap__WrapParameter__WrapMode, - 0); + __void__setCompressedTexSubImage2DProc__void_P1); + I_SimpleProperty(bool, GenerateMipMapSupported, + 0, + __void__setGenerateMipMapSupported__bool); + I_SimpleProperty(void *, GetCompressedTexImageProc, + 0, + __void__setGetCompressedTexImageProc__void_P1); + I_SimpleProperty(GLint, MaxTextureSize, + 0, + __void__setMaxTextureSize__GLint); + I_SimpleProperty(bool, MultiTexturingSupported, + 0, + __void__setMultiTexturingSupported__bool); + I_SimpleProperty(GLint, NumTextureUnits, + 0, + __void__setNumTextureUnits__GLint); + I_SimpleProperty(bool, ShadowAmbientSupported, + 0, + __void__setShadowAmbientSupported__bool); + I_SimpleProperty(bool, ShadowSupported, + 0, + __void__setShadowSupported__bool); + I_SimpleProperty(bool, TextureBorderClampSupported, + 0, + __void__setTextureBorderClampSupported__bool); + I_SimpleProperty(bool, TextureCompressionARBSupported, + 0, + __void__setTextureCompressionARBSupported__bool); + I_SimpleProperty(bool, TextureCompressionS3TCSupported, + 0, + __void__setTextureCompressionS3TCSupported__bool); + I_SimpleProperty(bool, TextureEdgeClampSupported, + 0, + __void__setTextureEdgeClampSupported__bool); + I_SimpleProperty(bool, TextureFilterAnisotropicSupported, + 0, + __void__setTextureFilterAnisotropicSupported__bool); + I_SimpleProperty(bool, TextureMirroredRepeatSupported, + 0, + __void__setTextureMirroredRepeatSupported__bool); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Texture::Extensions) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexturingSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexturingSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexturingSupported, + "", + ""); + I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureFilterAnisotropicSupported__bool, + "", + ""); + I_Method0(bool, isTextureFilterAnisotropicSupported, + Properties::NON_VIRTUAL, + __bool__isTextureFilterAnisotropicSupported, + "", + ""); + I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionARBSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionARBSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionARBSupported, + "", + ""); + I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionS3TCSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionS3TCSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionS3TCSupported, + "", + ""); + I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureMirroredRepeatSupported__bool, + "", + ""); + I_Method0(bool, isTextureMirroredRepeatSupported, + Properties::NON_VIRTUAL, + __bool__isTextureMirroredRepeatSupported, + "", + ""); + I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureEdgeClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureEdgeClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureEdgeClampSupported, + "", + ""); + I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureBorderClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureBorderClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureBorderClampSupported, + "", + ""); + I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateMipMapSupported__bool, + "", + ""); + I_Method0(bool, isGenerateMipMapSupported, + Properties::NON_VIRTUAL, + __bool__isGenerateMipMapSupported, + "", + ""); + I_Method1(void, setShadowSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowSupported__bool, + "", + ""); + I_Method0(bool, isShadowSupported, + Properties::NON_VIRTUAL, + __bool__isShadowSupported, + "", + ""); + I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowAmbientSupported__bool, + "", + ""); + I_Method0(bool, isShadowAmbientSupported, + Properties::NON_VIRTUAL, + __bool__isShadowAmbientSupported, + "", + ""); + I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTextureSize__GLint, + "", + ""); + I_Method0(GLint, maxTextureSize, + Properties::NON_VIRTUAL, + __GLint__maxTextureSize, + "", + ""); + I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + Properties::NON_VIRTUAL, + __void__setNumTextureUnits__GLint, + "", + ""); + I_Method0(GLint, numTextureUnits, + Properties::NON_VIRTUAL, + __GLint__numTextureUnits, + "", + ""); + I_Method0(bool, isCompressedTexImage2DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage2DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexImage2DProc__void_P1, + "", + ""); + I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexSubImage2DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setGetCompressedTexImageProc__void_P1, + "", + ""); + I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, + "", + ""); + I_Method0(bool, isClientStorageSupported, + Properties::NON_VIRTUAL, + __bool__isClientStorageSupported, + "", + ""); + I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + Properties::NON_VIRTUAL, + __bool__isNonPowerOfTwoTextureSupported__GLenum, + "", + ""); + I_Constructor1(IN, unsigned int, contextID, + Properties::NON_EXPLICIT, + ____Extensions__unsigned_int, + "", + ""); + I_Constructor1(IN, const osg::Texture::Extensions &, rhs, + Properties::NON_EXPLICIT, + ____Extensions__C5_Extensions_R1, + "", + ""); + I_Method1(void, lowestCommonDenominator, IN, const osg::Texture::Extensions &, rhs, + Properties::NON_VIRTUAL, + __void__lowestCommonDenominator__C5_Extensions_R1, + "", + ""); + I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, + Properties::NON_VIRTUAL, + __void__setupGLExtensions__unsigned_int, + "", + ""); + I_Method1(void, setMultiTexturingSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setMultiTexturingSupported__bool, + "", + ""); + I_Method0(bool, isMultiTexturingSupported, + Properties::NON_VIRTUAL, + __bool__isMultiTexturingSupported, + "", + ""); + I_Method1(void, setTextureFilterAnisotropicSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureFilterAnisotropicSupported__bool, + "", + ""); + I_Method0(bool, isTextureFilterAnisotropicSupported, + Properties::NON_VIRTUAL, + __bool__isTextureFilterAnisotropicSupported, + "", + ""); + I_Method1(void, setTextureCompressionARBSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionARBSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionARBSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionARBSupported, + "", + ""); + I_Method1(void, setTextureCompressionS3TCSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureCompressionS3TCSupported__bool, + "", + ""); + I_Method0(bool, isTextureCompressionS3TCSupported, + Properties::NON_VIRTUAL, + __bool__isTextureCompressionS3TCSupported, + "", + ""); + I_Method1(void, setTextureMirroredRepeatSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureMirroredRepeatSupported__bool, + "", + ""); + I_Method0(bool, isTextureMirroredRepeatSupported, + Properties::NON_VIRTUAL, + __bool__isTextureMirroredRepeatSupported, + "", + ""); + I_Method1(void, setTextureEdgeClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureEdgeClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureEdgeClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureEdgeClampSupported, + "", + ""); + I_Method1(void, setTextureBorderClampSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setTextureBorderClampSupported__bool, + "", + ""); + I_Method0(bool, isTextureBorderClampSupported, + Properties::NON_VIRTUAL, + __bool__isTextureBorderClampSupported, + "", + ""); + I_Method1(void, setGenerateMipMapSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setGenerateMipMapSupported__bool, + "", + ""); + I_Method0(bool, isGenerateMipMapSupported, + Properties::NON_VIRTUAL, + __bool__isGenerateMipMapSupported, + "", + ""); + I_Method1(void, setShadowSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowSupported__bool, + "", + ""); + I_Method0(bool, isShadowSupported, + Properties::NON_VIRTUAL, + __bool__isShadowSupported, + "", + ""); + I_Method1(void, setShadowAmbientSupported, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setShadowAmbientSupported__bool, + "", + ""); + I_Method0(bool, isShadowAmbientSupported, + Properties::NON_VIRTUAL, + __bool__isShadowAmbientSupported, + "", + ""); + I_Method1(void, setMaxTextureSize, IN, GLint, maxsize, + Properties::NON_VIRTUAL, + __void__setMaxTextureSize__GLint, + "", + ""); + I_Method0(GLint, maxTextureSize, + Properties::NON_VIRTUAL, + __GLint__maxTextureSize, + "", + ""); + I_Method1(void, setNumTextureUnits, IN, GLint, nunits, + Properties::NON_VIRTUAL, + __void__setNumTextureUnits__GLint, + "", + ""); + I_Method0(GLint, numTextureUnits, + Properties::NON_VIRTUAL, + __GLint__numTextureUnits, + "", + ""); + I_Method0(bool, isCompressedTexImage2DSupported, + Properties::NON_VIRTUAL, + __bool__isCompressedTexImage2DSupported, + "", + ""); + I_Method1(void, setCompressedTexImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexImage2DProc__void_P1, + "", + ""); + I_Method8(void, glCompressedTexImage2D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexImage2D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setCompressedTexSubImage2DProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setCompressedTexSubImage2DProc__void_P1, + "", + ""); + I_Method9(void, glCompressedTexSubImage2D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLenum, format, IN, GLsizei, type, IN, const GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glCompressedTexSubImage2D__GLenum__GLint__GLint__GLint__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, + "", + ""); + I_Method1(void, setGetCompressedTexImageProc, IN, void *, ptr, + Properties::NON_VIRTUAL, + __void__setGetCompressedTexImageProc__void_P1, + "", + ""); + I_Method3(void, glGetCompressedTexImage, IN, GLenum, target, IN, GLint, level, IN, GLvoid *, data, + Properties::NON_VIRTUAL, + __void__glGetCompressedTexImage__GLenum__GLint__GLvoid_P1, + "", + ""); + I_Method0(bool, isClientStorageSupported, + Properties::NON_VIRTUAL, + __bool__isClientStorageSupported, + "", + ""); + I_Method1(bool, isNonPowerOfTwoTextureSupported, IN, GLenum, filter, + Properties::NON_VIRTUAL, + __bool__isNonPowerOfTwoTextureSupported__GLenum, + "", + ""); + I_SimpleProperty(void *, CompressedTexImage2DProc, + 0, + __void__setCompressedTexImage2DProc__void_P1); + I_SimpleProperty(void *, CompressedTexSubImage2DProc, + 0, + __void__setCompressedTexSubImage2DProc__void_P1); + I_SimpleProperty(bool, GenerateMipMapSupported, + 0, + __void__setGenerateMipMapSupported__bool); + I_SimpleProperty(void *, GetCompressedTexImageProc, + 0, + __void__setGetCompressedTexImageProc__void_P1); + I_SimpleProperty(GLint, MaxTextureSize, + 0, + __void__setMaxTextureSize__GLint); + I_SimpleProperty(bool, MultiTexturingSupported, + 0, + __void__setMultiTexturingSupported__bool); + I_SimpleProperty(GLint, NumTextureUnits, + 0, + __void__setNumTextureUnits__GLint); + I_SimpleProperty(bool, ShadowAmbientSupported, + 0, + __void__setShadowAmbientSupported__bool); + I_SimpleProperty(bool, ShadowSupported, + 0, + __void__setShadowSupported__bool); + I_SimpleProperty(bool, TextureBorderClampSupported, + 0, + __void__setTextureBorderClampSupported__bool); + I_SimpleProperty(bool, TextureCompressionARBSupported, + 0, + __void__setTextureCompressionARBSupported__bool); + I_SimpleProperty(bool, TextureCompressionS3TCSupported, + 0, + __void__setTextureCompressionS3TCSupported__bool); + I_SimpleProperty(bool, TextureEdgeClampSupported, + 0, + __void__setTextureEdgeClampSupported__bool); + I_SimpleProperty(bool, TextureFilterAnisotropicSupported, + 0, + __void__setTextureFilterAnisotropicSupported__bool); + I_SimpleProperty(bool, TextureMirroredRepeatSupported, + 0, + __void__setTextureMirroredRepeatSupported__bool); END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osg::Texture::TextureObject) diff --git a/src/osgWrappers/osg/Texture2D.cpp b/src/osgWrappers/osg/Texture2D.cpp index 3862e64ef..669b3f9a9 100644 --- a/src/osgWrappers/osg/Texture2D.cpp +++ b/src/osgWrappers/osg/Texture2D.cpp @@ -10,10 +10,7 @@ #include #include -#include -#include -#include -#include +#include #include #include @@ -25,712 +22,6 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osg::Texture2D) - I_BaseType(osg::Texture); - I_BaseType(osg::Texture); - I_Constructor0(____Texture2D, - "", - ""); - I_Constructor1(IN, osg::Image *, image, - Properties::NON_EXPLICIT, - ____Texture2D__Image_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(void, setImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__setImage__Image_P1, - "Sets the texture image. ", - ""); - I_Method0(osg::Image *, getImage, - Properties::NON_VIRTUAL, - __Image_P1__getImage, - "Gets the texture image. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::NON_VIRTUAL, - __C5_Image_P1__getImage, - "Gets the const texture image. ", - ""); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int, - "", - ""); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned__Image_P1, - "Sets the texture image, ignoring face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned, - "Gets the texture image, ignoring face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned, - "Gets the const texture image, ignoring face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to the Texture. ", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int, - "Sets the texture width and height. ", - "If width or height are zero, calculate the respective value from the source image size. "); - I_Method1(void, setTextureWidth, IN, int, width, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setNumMipmapLevels__unsigned_int, - "Helper function. ", - "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); - I_Method0(unsigned int, getNumMipmapLevels, - Properties::NON_VIRTUAL, - __unsigned_int__getNumMipmapLevels, - "Gets the number of mipmap levels created. ", - ""); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexImage2D__State_R1__int__int__int__int, - "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", - "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, - "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", - "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "Bind the texture object. ", - "If the texture object hasn't already been compiled, create the texture mipmap levels. "); - I_Constructor0(____Texture2D, - "", - ""); - I_Constructor1(IN, osg::Image *, image, - Properties::NON_EXPLICIT, - ____Texture2D__Image_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(void, setImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__setImage__Image_P1, - "Sets the texture image. ", - ""); - I_Method0(osg::Image *, getImage, - Properties::NON_VIRTUAL, - __Image_P1__getImage, - "Gets the texture image. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::NON_VIRTUAL, - __C5_Image_P1__getImage, - "Gets the const texture image. ", - ""); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int, - "", - ""); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned__Image_P1, - "Sets the texture image, ignoring face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned, - "Gets the texture image, ignoring face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned, - "Gets the const texture image, ignoring face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to the Texture. ", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int, - "Sets the texture width and height. ", - "If width or height are zero, calculate the respective value from the source image size. "); - I_Method1(void, setTextureWidth, IN, int, width, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setNumMipmapLevels__unsigned_int, - "Helper function. ", - "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); - I_Method0(unsigned int, getNumMipmapLevels, - Properties::NON_VIRTUAL, - __unsigned_int__getNumMipmapLevels, - "Gets the number of mipmap levels created. ", - ""); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexImage2D__State_R1__int__int__int__int, - "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", - "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, - "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", - "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "Bind the texture object. ", - "If the texture object hasn't already been compiled, create the texture mipmap levels. "); - I_SimpleProperty(osg::Image *, Image, - __Image_P1__getImage, - __void__setImage__Image_P1); - I_SimpleProperty(unsigned int, NumMipmapLevels, - 0, - __void__setNumMipmapLevels__unsigned_int); - I_SimpleProperty(osg::Texture2D::SubloadCallback *, SubloadCallback, - __SubloadCallback_P1__getSubloadCallback, - __void__setSubloadCallback__SubloadCallback_P1); - I_SimpleProperty(int, TextureDepth, - __int__getTextureDepth, - 0); - I_SimpleProperty(int, TextureHeight, - __int__getTextureHeight, - __void__setTextureHeight__int); - I_SimpleProperty(GLenum, TextureTarget, - __GLenum__getTextureTarget, - 0); - I_SimpleProperty(int, TextureWidth, - __int__getTextureWidth, - __void__setTextureWidth__int); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osg::Texture2D) - I_BaseType(osg::Texture); - I_BaseType(osg::Texture); - I_Constructor0(____Texture2D, - "", - ""); - I_Constructor1(IN, osg::Image *, image, - Properties::NON_EXPLICIT, - ____Texture2D__Image_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(void, setImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__setImage__Image_P1, - "Sets the texture image. ", - ""); - I_Method0(osg::Image *, getImage, - Properties::NON_VIRTUAL, - __Image_P1__getImage, - "Gets the texture image. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::NON_VIRTUAL, - __C5_Image_P1__getImage, - "Gets the const texture image. ", - ""); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int, - "", - ""); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned__Image_P1, - "Sets the texture image, ignoring face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned, - "Gets the texture image, ignoring face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned, - "Gets the const texture image, ignoring face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to the Texture. ", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int, - "Sets the texture width and height. ", - "If width or height are zero, calculate the respective value from the source image size. "); - I_Method1(void, setTextureWidth, IN, int, width, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setNumMipmapLevels__unsigned_int, - "Helper function. ", - "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); - I_Method0(unsigned int, getNumMipmapLevels, - Properties::NON_VIRTUAL, - __unsigned_int__getNumMipmapLevels, - "Gets the number of mipmap levels created. ", - ""); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexImage2D__State_R1__int__int__int__int, - "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", - "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, - "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", - "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "Bind the texture object. ", - "If the texture object hasn't already been compiled, create the texture mipmap levels. "); - I_Constructor0(____Texture2D, - "", - ""); - I_Constructor1(IN, osg::Image *, image, - Properties::NON_EXPLICIT, - ____Texture2D__Image_P1, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::Texture2D &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Texture2D__C5_Texture2D_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, rhs, - Properties::VIRTUAL, - __int__compare__C5_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method0(GLenum, getTextureTarget, - Properties::VIRTUAL, - __GLenum__getTextureTarget, - "", - ""); - I_Method1(void, setImage, IN, osg::Image *, image, - Properties::NON_VIRTUAL, - __void__setImage__Image_P1, - "Sets the texture image. ", - ""); - I_Method0(osg::Image *, getImage, - Properties::NON_VIRTUAL, - __Image_P1__getImage, - "Gets the texture image. ", - ""); - I_Method0(const osg::Image *, getImage, - Properties::NON_VIRTUAL, - __C5_Image_P1__getImage, - "Gets the const texture image. ", - ""); - I_Method1(unsigned int &, getModifiedCount, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __unsigned_int_R1__getModifiedCount__unsigned_int, - "", - ""); - I_Method2(void, setImage, IN, unsigned, int, IN, osg::Image *, image, - Properties::VIRTUAL, - __void__setImage__unsigned__Image_P1, - "Sets the texture image, ignoring face. ", - ""); - I_Method1(osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __Image_P1__getImage__unsigned, - "Gets the texture image, ignoring face. ", - ""); - I_Method1(const osg::Image *, getImage, IN, unsigned, int, - Properties::VIRTUAL, - __C5_Image_P1__getImage__unsigned, - "Gets the const texture image, ignoring face. ", - ""); - I_Method0(unsigned int, getNumImages, - Properties::VIRTUAL, - __unsigned_int__getNumImages, - "Gets the number of images that can be assigned to the Texture. ", - ""); - I_Method2(void, setTextureSize, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureSize__int__int, - "Sets the texture width and height. ", - "If width or height are zero, calculate the respective value from the source image size. "); - I_Method1(void, setTextureWidth, IN, int, width, - Properties::NON_VIRTUAL, - __void__setTextureWidth__int, - "", - ""); - I_Method1(void, setTextureHeight, IN, int, height, - Properties::NON_VIRTUAL, - __void__setTextureHeight__int, - "", - ""); - I_Method0(int, getTextureWidth, - Properties::VIRTUAL, - __int__getTextureWidth, - "", - ""); - I_Method0(int, getTextureHeight, - Properties::VIRTUAL, - __int__getTextureHeight, - "", - ""); - I_Method0(int, getTextureDepth, - Properties::VIRTUAL, - __int__getTextureDepth, - "", - ""); - I_Method1(void, setSubloadCallback, IN, osg::Texture2D::SubloadCallback *, cb, - Properties::NON_VIRTUAL, - __void__setSubloadCallback__SubloadCallback_P1, - "", - ""); - I_Method0(osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method0(const osg::Texture2D::SubloadCallback *, getSubloadCallback, - Properties::NON_VIRTUAL, - __C5_SubloadCallback_P1__getSubloadCallback, - "", - ""); - I_Method1(void, setNumMipmapLevels, IN, unsigned int, num, - Properties::NON_VIRTUAL, - __void__setNumMipmapLevels__unsigned_int, - "Helper function. ", - "Sets the number of mipmap levels created for this texture. Should only be called within an osg::Texuture::apply(), or during a custom OpenGL texture load. "); - I_Method0(unsigned int, getNumMipmapLevels, - Properties::NON_VIRTUAL, - __unsigned_int__getNumMipmapLevels, - "Gets the number of mipmap levels created. ", - ""); - I_Method5(void, copyTexImage2D, IN, osg::State &, state, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexImage2D__State_R1__int__int__int__int, - "Copies pixels into a 2D texture image, as per glCopyTexImage2D. ", - "Creates an OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. width and height must be a power of two. "); - I_Method7(void, copyTexSubImage2D, IN, osg::State &, state, IN, int, xoffset, IN, int, yoffset, IN, int, x, IN, int, y, IN, int, width, IN, int, height, - Properties::NON_VIRTUAL, - __void__copyTexSubImage2D__State_R1__int__int__int__int__int__int, - "Copies a two-dimensional texture subimage, as per glCopyTexSubImage2D. ", - "Updates a portion of an existing OpenGL texture object from the current OpenGL background framebuffer contents at position x, y with width width and height height. Loads framebuffer data into the texture using offsets xoffset and yoffset. width and height must be powers of two. "); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "Bind the texture object. ", - "If the texture object hasn't already been compiled, create the texture mipmap levels. "); - I_SimpleProperty(osg::Image *, Image, - __Image_P1__getImage, - __void__setImage__Image_P1); - I_SimpleProperty(unsigned int, NumMipmapLevels, - 0, - __void__setNumMipmapLevels__unsigned_int); - I_SimpleProperty(osg::Texture2D::SubloadCallback *, SubloadCallback, - __SubloadCallback_P1__getSubloadCallback, - __void__setSubloadCallback__SubloadCallback_P1); - I_SimpleProperty(int, TextureDepth, - __int__getTextureDepth, - 0); - I_SimpleProperty(int, TextureHeight, - __int__getTextureHeight, - __void__setTextureHeight__int); - I_SimpleProperty(GLenum, TextureTarget, - __GLenum__getTextureTarget, - 0); - I_SimpleProperty(int, TextureWidth, - __int__getTextureWidth, - __void__setTextureWidth__int); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); -END_REFLECTOR - BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture2D::SubloadCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osg/Texture3D.cpp b/src/osgWrappers/osg/Texture3D.cpp index 1895d1d55..a16c5dc89 100644 --- a/src/osgWrappers/osg/Texture3D.cpp +++ b/src/osgWrappers/osg/Texture3D.cpp @@ -764,547 +764,59 @@ BEGIN_OBJECT_REFLECTOR(osg::Texture3D) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, + I_Constructor0(____SubloadCallback, "", ""); - I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, + I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, + I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setTexture3DSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DSupported__bool, + I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture3D_R1__State_R1, "", ""); - I_Method0(bool, isTexture3DSupported, - Properties::NON_VIRTUAL, - __bool__isTexture3DSupported, + I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setTexture3DFast, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DFast__bool, - "", - ""); - I_Method0(bool, isTexture3DFast, - Properties::NON_VIRTUAL, - __bool__isTexture3DFast, - "", - ""); - I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, - Properties::NON_VIRTUAL, - __void__setMaxTexture3DSize__GLint, - "", - ""); - I_Method0(GLint, maxTexture3DSize, - Properties::NON_VIRTUAL, - __GLint__maxTexture3DSize, - "", - ""); - I_Method1(void, setTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexImage3DProc__void_P1, - "", - ""); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCopyTexSubImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, - Properties::NON_VIRTUAL, - __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, - "", - ""); - I_Method0(bool, isCompressedTexImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method0(bool, isCompressedTexSubImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexSubImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setBuild3DMipmapsProc__void_P1, - "", - ""); - I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, - "", - ""); - I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, - "", - ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, - "", - ""); - I_Method1(void, setTexture3DSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DSupported__bool, - "", - ""); - I_Method0(bool, isTexture3DSupported, - Properties::NON_VIRTUAL, - __bool__isTexture3DSupported, - "", - ""); - I_Method1(void, setTexture3DFast, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DFast__bool, - "", - ""); - I_Method0(bool, isTexture3DFast, - Properties::NON_VIRTUAL, - __bool__isTexture3DFast, - "", - ""); - I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, - Properties::NON_VIRTUAL, - __void__setMaxTexture3DSize__GLint, - "", - ""); - I_Method0(GLint, maxTexture3DSize, - Properties::NON_VIRTUAL, - __GLint__maxTexture3DSize, - "", - ""); - I_Method1(void, setTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexImage3DProc__void_P1, - "", - ""); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCopyTexSubImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, - Properties::NON_VIRTUAL, - __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, - "", - ""); - I_Method0(bool, isCompressedTexImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method0(bool, isCompressedTexSubImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexSubImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setBuild3DMipmapsProc__void_P1, - "", - ""); - I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_SimpleProperty(void *, Build3DMipmapsProc, - 0, - __void__setBuild3DMipmapsProc__void_P1); - I_SimpleProperty(void *, CompressedTexImage3DProc, - 0, - __void__setCompressedTexImage3DProc__void_P1); - I_SimpleProperty(void *, CompressedTexSubImage3DProc, - 0, - __void__setCompressedTexSubImage3DProc__void_P1); - I_SimpleProperty(void *, CopyTexSubImage3DProc, - 0, - __void__setCopyTexSubImage3DProc__void_P1); - I_SimpleProperty(GLint, MaxTexture3DSize, - 0, - __void__setMaxTexture3DSize__GLint); - I_SimpleProperty(void *, TexImage3DProc, - 0, - __void__setTexImage3DProc__void_P1); - I_SimpleProperty(void *, TexSubImage3DProc, - 0, - __void__setTexSubImage3DProc__void_P1); - I_SimpleProperty(bool, Texture3DFast, - 0, - __void__setTexture3DFast__bool); - I_SimpleProperty(bool, Texture3DSupported, - 0, - __void__setTexture3DSupported__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osg::Texture3D::Extensions) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osg::Texture3D::SubloadCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, + I_Constructor0(____SubloadCallback, "", ""); - I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, + I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, + I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setTexture3DSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DSupported__bool, + I_Method2(void, load, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__load__C5_Texture3D_R1__State_R1, "", ""); - I_Method0(bool, isTexture3DSupported, - Properties::NON_VIRTUAL, - __bool__isTexture3DSupported, + I_Method2(void, subload, IN, const osg::Texture3D &, texture, IN, osg::State &, state, + Properties::PURE_VIRTUAL, + __void__subload__C5_Texture3D_R1__State_R1, "", ""); - I_Method1(void, setTexture3DFast, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DFast__bool, - "", - ""); - I_Method0(bool, isTexture3DFast, - Properties::NON_VIRTUAL, - __bool__isTexture3DFast, - "", - ""); - I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, - Properties::NON_VIRTUAL, - __void__setMaxTexture3DSize__GLint, - "", - ""); - I_Method0(GLint, maxTexture3DSize, - Properties::NON_VIRTUAL, - __GLint__maxTexture3DSize, - "", - ""); - I_Method1(void, setTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexImage3DProc__void_P1, - "", - ""); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCopyTexSubImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, - Properties::NON_VIRTUAL, - __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, - "", - ""); - I_Method0(bool, isCompressedTexImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method0(bool, isCompressedTexSubImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexSubImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setBuild3DMipmapsProc__void_P1, - "", - ""); - I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Constructor1(IN, unsigned int, contextID, - Properties::NON_EXPLICIT, - ____Extensions__unsigned_int, - "", - ""); - I_Constructor1(IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_EXPLICIT, - ____Extensions__C5_Extensions_R1, - "", - ""); - I_Method1(void, lowestCommonDenominator, IN, const osg::Texture3D::Extensions &, rhs, - Properties::NON_VIRTUAL, - __void__lowestCommonDenominator__C5_Extensions_R1, - "", - ""); - I_Method1(void, setupGLExtensions, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __void__setupGLExtensions__unsigned_int, - "", - ""); - I_Method1(void, setTexture3DSupported, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DSupported__bool, - "", - ""); - I_Method0(bool, isTexture3DSupported, - Properties::NON_VIRTUAL, - __bool__isTexture3DSupported, - "", - ""); - I_Method1(void, setTexture3DFast, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setTexture3DFast__bool, - "", - ""); - I_Method0(bool, isTexture3DFast, - Properties::NON_VIRTUAL, - __bool__isTexture3DFast, - "", - ""); - I_Method1(void, setMaxTexture3DSize, IN, GLint, maxsize, - Properties::NON_VIRTUAL, - __void__setMaxTexture3DSize__GLint, - "", - ""); - I_Method0(GLint, maxTexture3DSize, - Properties::NON_VIRTUAL, - __GLint__maxTexture3DSize, - "", - ""); - I_Method1(void, setTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexImage3DProc__void_P1, - "", - ""); - I_Method10(void, glTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, pixels, - Properties::NON_VIRTUAL, - __void__glTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setCopyTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCopyTexSubImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCopyTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLint, x, IN, GLint, y, IN, GLsizei, width, IN, GLsizei, height, - Properties::NON_VIRTUAL, - __void__glCopyTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLint__GLint__GLsizei__GLsizei, - "", - ""); - I_Method0(bool, isCompressedTexImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexImage3DProc__void_P1, - "", - ""); - I_Method9(void, glCompressedTexImage3D, IN, GLenum, target, IN, GLint, level, IN, GLenum, internalformat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLint, border, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexImage3D__GLenum__GLint__GLenum__GLsizei__GLsizei__GLsizei__GLint__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method0(bool, isCompressedTexSubImage3DSupported, - Properties::NON_VIRTUAL, - __bool__isCompressedTexSubImage3DSupported, - "", - ""); - I_Method1(void, setCompressedTexSubImage3DProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setCompressedTexSubImage3DProc__void_P1, - "", - ""); - I_Method11(void, glCompressedTexSubImage3D, IN, GLenum, target, IN, GLint, level, IN, GLint, xoffset, IN, GLint, yoffset, IN, GLint, zoffset, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLsizei, imageSize, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__glCompressedTexSubImage3D__GLenum__GLint__GLint__GLint__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLsizei__C5_GLvoid_P1, - "", - ""); - I_Method1(void, setBuild3DMipmapsProc, IN, void *, ptr, - Properties::NON_VIRTUAL, - __void__setBuild3DMipmapsProc__void_P1, - "", - ""); - I_Method8(void, gluBuild3DMipmaps, IN, GLenum, target, IN, GLint, internalFormat, IN, GLsizei, width, IN, GLsizei, height, IN, GLsizei, depth, IN, GLenum, format, IN, GLenum, type, IN, const GLvoid *, data, - Properties::NON_VIRTUAL, - __void__gluBuild3DMipmaps__GLenum__GLint__GLsizei__GLsizei__GLsizei__GLenum__GLenum__C5_GLvoid_P1, - "", - ""); - I_SimpleProperty(void *, Build3DMipmapsProc, - 0, - __void__setBuild3DMipmapsProc__void_P1); - I_SimpleProperty(void *, CompressedTexImage3DProc, - 0, - __void__setCompressedTexImage3DProc__void_P1); - I_SimpleProperty(void *, CompressedTexSubImage3DProc, - 0, - __void__setCompressedTexSubImage3DProc__void_P1); - I_SimpleProperty(void *, CopyTexSubImage3DProc, - 0, - __void__setCopyTexSubImage3DProc__void_P1); - I_SimpleProperty(GLint, MaxTexture3DSize, - 0, - __void__setMaxTexture3DSize__GLint); - I_SimpleProperty(void *, TexImage3DProc, - 0, - __void__setTexImage3DProc__void_P1); - I_SimpleProperty(void *, TexSubImage3DProc, - 0, - __void__setTexSubImage3DProc__void_P1); - I_SimpleProperty(bool, Texture3DFast, - 0, - __void__setTexture3DFast__bool); - I_SimpleProperty(bool, Texture3DSupported, - 0, - __void__setTexture3DSupported__bool); END_REFLECTOR diff --git a/src/osgWrappers/osg/Uniform.cpp b/src/osgWrappers/osg/Uniform.cpp index 5564fbc74..33fb894f2 100644 --- a/src/osgWrappers/osg/Uniform.cpp +++ b/src/osgWrappers/osg/Uniform.cpp @@ -10,10 +10,18 @@ #include #include +#include #include +#include +#include +#include #include #include #include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -372,6 +380,2524 @@ BEGIN_VALUE_REFLECTOR(osg::Matrix3) ""); END_REFLECTOR +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList); + +BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) + I_EnumLabel(osg::Uniform::FLOAT); + I_EnumLabel(osg::Uniform::FLOAT_VEC2); + I_EnumLabel(osg::Uniform::FLOAT_VEC3); + I_EnumLabel(osg::Uniform::FLOAT_VEC4); + I_EnumLabel(osg::Uniform::INT); + I_EnumLabel(osg::Uniform::INT_VEC2); + I_EnumLabel(osg::Uniform::INT_VEC3); + I_EnumLabel(osg::Uniform::INT_VEC4); + I_EnumLabel(osg::Uniform::BOOL); + I_EnumLabel(osg::Uniform::BOOL_VEC2); + I_EnumLabel(osg::Uniform::BOOL_VEC3); + I_EnumLabel(osg::Uniform::BOOL_VEC4); + I_EnumLabel(osg::Uniform::FLOAT_MAT2); + I_EnumLabel(osg::Uniform::FLOAT_MAT3); + I_EnumLabel(osg::Uniform::FLOAT_MAT4); + I_EnumLabel(osg::Uniform::SAMPLER_1D); + I_EnumLabel(osg::Uniform::SAMPLER_2D); + I_EnumLabel(osg::Uniform::SAMPLER_3D); + I_EnumLabel(osg::Uniform::SAMPLER_CUBE); + I_EnumLabel(osg::Uniform::SAMPLER_1D_SHADOW); + I_EnumLabel(osg::Uniform::SAMPLER_2D_SHADOW); + I_EnumLabel(osg::Uniform::UNDEFINED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Uniform) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, setType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "Set the type of glUniform, ensuring it is only set once. ", + ""); + I_Method0(const osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, + __C5_Type__getType, + "Get the type of glUniform as enum. ", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "Set the name of the glUniform, ensuring it is only set once. ", + ""); + I_Method1(void, setNumElements, IN, unsigned int, numElements, + Properties::NON_VIRTUAL, + __void__setNumElements__unsigned_int, + "Set the length of a uniform, ensuring it is only set once (1==scalar). ", + ""); + I_Method0(unsigned int, getNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getNumElements, + "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", + ""); + I_Method0(unsigned int, getInternalArrayNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getInternalArrayNumElements, + "Get the number of elements required for the internal data array. ", + "Returns 0 if the osg::Uniform is not properly configured. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + I_Method1(int, compare, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compare__C5_Uniform_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compareData__C5_Uniform_R1, + "", + ""); + I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + Properties::NON_VIRTUAL, + __void__copyData__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Uniform::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this Uniform. ", + ""); + I_Method0(osg::Uniform::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this Uniform. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this Uniform. ", + "the number of parents of this Uniform. "); + I_Method1(bool, set, IN, float, f, + Properties::NON_VIRTUAL, + __bool__set__float, + "convenient scalar (non-array) value assignment ", + ""); + I_Method1(bool, set, IN, int, i, + Properties::NON_VIRTUAL, + __bool__set__int, + "", + ""); + I_Method1(bool, set, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__set__bool, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec4_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixf_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixd_R1, + "", + ""); + I_Method2(bool, set, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__set__int__int, + "", + ""); + I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__set__int__int__int, + "", + ""); + I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__set__int__int__int__int, + "", + ""); + I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__set__bool__bool, + "", + ""); + I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool, + "", + ""); + I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool__bool, + "", + ""); + I_Method1(bool, get, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__get__float_R1, + "convenient scalar (non-array) value query ", + ""); + I_Method1(bool, get, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__get__int_R1, + "", + ""); + I_Method1(bool, get, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__get__bool_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec4_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixf_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixd_R1, + "", + ""); + I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1, + "", + ""); + I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1, + "", + ""); + I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1, + "", + ""); + I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__float, + "value assignment for array uniforms ", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec4_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int__int, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool__bool, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__float_R1, + "value query for array uniforms ", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixf_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixd_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", + "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); + I_Method1(bool, setArray, IN, osg::FloatArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__FloatArray_P1, + "Set the internal data array for a osg::Uniform. ", + ""); + I_Method1(bool, setArray, IN, osg::IntArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__IntArray_P1, + "", + ""); + I_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __FloatArray_P1__getFloatArray, + "Get the internal data array for a float osg::Uniform. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __C5_FloatArray_P1__getFloatArray, + "", + ""); + I_Method0(osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __IntArray_P1__getIntArray, + "Get the internal data array for an int osg::Uniform. ", + ""); + I_Method0(const osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __C5_IntArray_P1__getIntArray, + "", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, mc, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "", + ""); + I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + Properties::NON_VIRTUAL, + __void__apply__C5_GL2Extensions_P1__GLint, + "", + ""); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, setType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "Set the type of glUniform, ensuring it is only set once. ", + ""); + I_Method0(const osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, + __C5_Type__getType, + "Get the type of glUniform as enum. ", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "Set the name of the glUniform, ensuring it is only set once. ", + ""); + I_Method1(void, setNumElements, IN, unsigned int, numElements, + Properties::NON_VIRTUAL, + __void__setNumElements__unsigned_int, + "Set the length of a uniform, ensuring it is only set once (1==scalar). ", + ""); + I_Method0(unsigned int, getNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getNumElements, + "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", + ""); + I_Method0(unsigned int, getInternalArrayNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getInternalArrayNumElements, + "Get the number of elements required for the internal data array. ", + "Returns 0 if the osg::Uniform is not properly configured. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + I_Method1(int, compare, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compare__C5_Uniform_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compareData__C5_Uniform_R1, + "", + ""); + I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + Properties::NON_VIRTUAL, + __void__copyData__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Uniform::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this Uniform. ", + ""); + I_Method0(osg::Uniform::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this Uniform. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this Uniform. ", + "the number of parents of this Uniform. "); + I_Method1(bool, set, IN, float, f, + Properties::NON_VIRTUAL, + __bool__set__float, + "convenient scalar (non-array) value assignment ", + ""); + I_Method1(bool, set, IN, int, i, + Properties::NON_VIRTUAL, + __bool__set__int, + "", + ""); + I_Method1(bool, set, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__set__bool, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec4_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixf_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixd_R1, + "", + ""); + I_Method2(bool, set, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__set__int__int, + "", + ""); + I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__set__int__int__int, + "", + ""); + I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__set__int__int__int__int, + "", + ""); + I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__set__bool__bool, + "", + ""); + I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool, + "", + ""); + I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool__bool, + "", + ""); + I_Method1(bool, get, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__get__float_R1, + "convenient scalar (non-array) value query ", + ""); + I_Method1(bool, get, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__get__int_R1, + "", + ""); + I_Method1(bool, get, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__get__bool_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec4_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixf_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixd_R1, + "", + ""); + I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1, + "", + ""); + I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1, + "", + ""); + I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1, + "", + ""); + I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__float, + "value assignment for array uniforms ", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec4_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int__int, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool__bool, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__float_R1, + "value query for array uniforms ", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixf_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixd_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", + "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); + I_Method1(bool, setArray, IN, osg::FloatArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__FloatArray_P1, + "Set the internal data array for a osg::Uniform. ", + ""); + I_Method1(bool, setArray, IN, osg::IntArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__IntArray_P1, + "", + ""); + I_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __FloatArray_P1__getFloatArray, + "Get the internal data array for a float osg::Uniform. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __C5_FloatArray_P1__getFloatArray, + "", + ""); + I_Method0(osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __IntArray_P1__getIntArray, + "Get the internal data array for an int osg::Uniform. ", + ""); + I_Method0(const osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __C5_IntArray_P1__getIntArray, + "", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, mc, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "", + ""); + I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + Properties::NON_VIRTUAL, + __void__apply__C5_GL2Extensions_P1__GLint, + "", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_SimpleProperty(osg::FloatArray *, Array, + 0, + __bool__setArray__FloatArray_P1); + I_ArrayProperty(bool, Element, + 0, + __bool__setElement__unsigned_int__bool, + __unsigned_int__getNumElements, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + I_SimpleProperty(osg::FloatArray *, FloatArray, + __FloatArray_P1__getFloatArray, + 0); + I_SimpleProperty(osg::IntArray *, IntArray, + __IntArray_P1__getIntArray, + 0); + I_SimpleProperty(unsigned int, InternalArrayNumElements, + __unsigned_int__getInternalArrayNumElements, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(const std::string &, Name, + 0, + __void__setName__C5_std_string_R1); + I_SimpleProperty(unsigned int, NumElements, + 0, + __void__setNumElements__unsigned_int); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Uniform::Type, Type, + 0, + __bool__setType__Type); + I_SimpleProperty(osg::Uniform::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::vector< osg::StateSet * >, osg::Uniform::ParentList); + +BEGIN_ENUM_REFLECTOR(osg::Uniform::Type) + I_EnumLabel(osg::Uniform::FLOAT); + I_EnumLabel(osg::Uniform::FLOAT_VEC2); + I_EnumLabel(osg::Uniform::FLOAT_VEC3); + I_EnumLabel(osg::Uniform::FLOAT_VEC4); + I_EnumLabel(osg::Uniform::INT); + I_EnumLabel(osg::Uniform::INT_VEC2); + I_EnumLabel(osg::Uniform::INT_VEC3); + I_EnumLabel(osg::Uniform::INT_VEC4); + I_EnumLabel(osg::Uniform::BOOL); + I_EnumLabel(osg::Uniform::BOOL_VEC2); + I_EnumLabel(osg::Uniform::BOOL_VEC3); + I_EnumLabel(osg::Uniform::BOOL_VEC4); + I_EnumLabel(osg::Uniform::FLOAT_MAT2); + I_EnumLabel(osg::Uniform::FLOAT_MAT3); + I_EnumLabel(osg::Uniform::FLOAT_MAT4); + I_EnumLabel(osg::Uniform::SAMPLER_1D); + I_EnumLabel(osg::Uniform::SAMPLER_2D); + I_EnumLabel(osg::Uniform::SAMPLER_3D); + I_EnumLabel(osg::Uniform::SAMPLER_CUBE); + I_EnumLabel(osg::Uniform::SAMPLER_1D_SHADOW); + I_EnumLabel(osg::Uniform::SAMPLER_2D_SHADOW); + I_EnumLabel(osg::Uniform::UNDEFINED); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osg::Uniform) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, setType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "Set the type of glUniform, ensuring it is only set once. ", + ""); + I_Method0(const osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, + __C5_Type__getType, + "Get the type of glUniform as enum. ", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "Set the name of the glUniform, ensuring it is only set once. ", + ""); + I_Method1(void, setNumElements, IN, unsigned int, numElements, + Properties::NON_VIRTUAL, + __void__setNumElements__unsigned_int, + "Set the length of a uniform, ensuring it is only set once (1==scalar). ", + ""); + I_Method0(unsigned int, getNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getNumElements, + "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", + ""); + I_Method0(unsigned int, getInternalArrayNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getInternalArrayNumElements, + "Get the number of elements required for the internal data array. ", + "Returns 0 if the osg::Uniform is not properly configured. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + I_Method1(int, compare, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compare__C5_Uniform_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compareData__C5_Uniform_R1, + "", + ""); + I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + Properties::NON_VIRTUAL, + __void__copyData__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Uniform::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this Uniform. ", + ""); + I_Method0(osg::Uniform::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this Uniform. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this Uniform. ", + "the number of parents of this Uniform. "); + I_Method1(bool, set, IN, float, f, + Properties::NON_VIRTUAL, + __bool__set__float, + "convenient scalar (non-array) value assignment ", + ""); + I_Method1(bool, set, IN, int, i, + Properties::NON_VIRTUAL, + __bool__set__int, + "", + ""); + I_Method1(bool, set, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__set__bool, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec4_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixf_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixd_R1, + "", + ""); + I_Method2(bool, set, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__set__int__int, + "", + ""); + I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__set__int__int__int, + "", + ""); + I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__set__int__int__int__int, + "", + ""); + I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__set__bool__bool, + "", + ""); + I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool, + "", + ""); + I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool__bool, + "", + ""); + I_Method1(bool, get, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__get__float_R1, + "convenient scalar (non-array) value query ", + ""); + I_Method1(bool, get, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__get__int_R1, + "", + ""); + I_Method1(bool, get, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__get__bool_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec4_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixf_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixd_R1, + "", + ""); + I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1, + "", + ""); + I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1, + "", + ""); + I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1, + "", + ""); + I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__float, + "value assignment for array uniforms ", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec4_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int__int, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool__bool, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__float_R1, + "value query for array uniforms ", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixf_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixd_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", + "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); + I_Method1(bool, setArray, IN, osg::FloatArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__FloatArray_P1, + "Set the internal data array for a osg::Uniform. ", + ""); + I_Method1(bool, setArray, IN, osg::IntArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__IntArray_P1, + "", + ""); + I_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __FloatArray_P1__getFloatArray, + "Get the internal data array for a float osg::Uniform. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __C5_FloatArray_P1__getFloatArray, + "", + ""); + I_Method0(osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __IntArray_P1__getIntArray, + "Get the internal data array for an int osg::Uniform. ", + ""); + I_Method0(const osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __C5_IntArray_P1__getIntArray, + "", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, mc, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "", + ""); + I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + Properties::NON_VIRTUAL, + __void__apply__C5_GL2Extensions_P1__GLint, + "", + ""); + I_Constructor0(____Uniform, + "", + ""); + I_ConstructorWithDefaults3(IN, osg::Uniform::Type, type, , IN, const std::string &, name, , IN, int, numElements, 1, + ____Uniform__Type__C5_std_string_R1__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osg::Uniform &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Uniform__C5_Uniform_R1__C5_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, setType, IN, osg::Uniform::Type, t, + Properties::NON_VIRTUAL, + __bool__setType__Type, + "Set the type of glUniform, ensuring it is only set once. ", + ""); + I_Method0(const osg::Uniform::Type, getType, + Properties::NON_VIRTUAL, + __C5_Type__getType, + "Get the type of glUniform as enum. ", + ""); + I_Method1(void, setName, IN, const std::string &, name, + Properties::NON_VIRTUAL, + __void__setName__C5_std_string_R1, + "Set the name of the glUniform, ensuring it is only set once. ", + ""); + I_Method1(void, setNumElements, IN, unsigned int, numElements, + Properties::NON_VIRTUAL, + __void__setNumElements__unsigned_int, + "Set the length of a uniform, ensuring it is only set once (1==scalar). ", + ""); + I_Method0(unsigned int, getNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getNumElements, + "Get the number of GLSL elements of the osg::Uniform (1==scalar). ", + ""); + I_Method0(unsigned int, getInternalArrayNumElements, + Properties::NON_VIRTUAL, + __unsigned_int__getInternalArrayNumElements, + "Get the number of elements required for the internal data array. ", + "Returns 0 if the osg::Uniform is not properly configured. "); + I_Constructor2(IN, const char *, name, IN, float, f, + ____Uniform__C5_char_P1__float, + "convenient scalar (non-array) constructors w/ assignment ", + ""); + I_Constructor2(IN, const char *, name, IN, int, i, + ____Uniform__C5_char_P1__int, + "", + ""); + I_Constructor2(IN, const char *, name, IN, bool, b, + ____Uniform__C5_char_P1__bool, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec2 &, v2, + ____Uniform__C5_char_P1__C5_osg_Vec2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec3 &, v3, + ____Uniform__C5_char_P1__C5_osg_Vec3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Vec4 &, v4, + ____Uniform__C5_char_P1__C5_osg_Vec4_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix2 &, m2, + ____Uniform__C5_char_P1__C5_osg_Matrix2_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrix3 &, m3, + ____Uniform__C5_char_P1__C5_osg_Matrix3_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixf &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixf_R1, + "", + ""); + I_Constructor2(IN, const char *, name, IN, const osg::Matrixd &, m4, + ____Uniform__C5_char_P1__C5_osg_Matrixd_R1, + "", + ""); + I_Constructor3(IN, const char *, name, IN, int, i0, IN, int, i1, + ____Uniform__C5_char_P1__int__int, + "", + ""); + I_Constructor4(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, + ____Uniform__C5_char_P1__int__int__int, + "", + ""); + I_Constructor5(IN, const char *, name, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + ____Uniform__C5_char_P1__int__int__int__int, + "", + ""); + I_Constructor3(IN, const char *, name, IN, bool, b0, IN, bool, b1, + ____Uniform__C5_char_P1__bool__bool, + "", + ""); + I_Constructor4(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, + ____Uniform__C5_char_P1__bool__bool__bool, + "", + ""); + I_Constructor5(IN, const char *, name, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + ____Uniform__C5_char_P1__bool__bool__bool__bool, + "", + ""); + I_Method1(int, compare, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compare__C5_Uniform_R1, + "return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", + ""); + I_Method1(int, compareData, IN, const osg::Uniform &, rhs, + Properties::VIRTUAL, + __int__compareData__C5_Uniform_R1, + "", + ""); + I_Method1(void, copyData, IN, const osg::Uniform &, rhs, + Properties::NON_VIRTUAL, + __void__copyData__C5_Uniform_R1, + "", + ""); + I_Method0(const osg::Uniform::ParentList &, getParents, + Properties::NON_VIRTUAL, + __C5_ParentList_R1__getParents, + "Get the parent list of this Uniform. ", + ""); + I_Method0(osg::Uniform::ParentList, getParents, + Properties::NON_VIRTUAL, + __ParentList__getParents, + "Get the a copy of parent list of node. ", + "A copy is returned to prevent modification of the parent list. "); + I_Method1(osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __StateSet_P1__getParent__unsigned_int, + "", + ""); + I_Method1(const osg::StateSet *, getParent, IN, unsigned int, i, + Properties::NON_VIRTUAL, + __C5_StateSet_P1__getParent__unsigned_int, + "Get a single const parent of this Uniform. ", + " param i index of the parent to get. return the parent i."); + I_Method0(unsigned int, getNumParents, + Properties::NON_VIRTUAL, + __unsigned_int__getNumParents, + "Get the number of parents of this Uniform. ", + "the number of parents of this Uniform. "); + I_Method1(bool, set, IN, float, f, + Properties::NON_VIRTUAL, + __bool__set__float, + "convenient scalar (non-array) value assignment ", + ""); + I_Method1(bool, set, IN, int, i, + Properties::NON_VIRTUAL, + __bool__set__int, + "", + ""); + I_Method1(bool, set, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__set__bool, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Vec4_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix2_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrix3_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixf_R1, + "", + ""); + I_Method1(bool, set, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__set__C5_osg_Matrixd_R1, + "", + ""); + I_Method2(bool, set, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__set__int__int, + "", + ""); + I_Method3(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__set__int__int__int, + "", + ""); + I_Method4(bool, set, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__set__int__int__int__int, + "", + ""); + I_Method2(bool, set, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__set__bool__bool, + "", + ""); + I_Method3(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool, + "", + ""); + I_Method4(bool, set, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__set__bool__bool__bool__bool, + "", + ""); + I_Method1(bool, get, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__get__float_R1, + "convenient scalar (non-array) value query ", + ""); + I_Method1(bool, get, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__get__int_R1, + "", + ""); + I_Method1(bool, get, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__get__bool_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__get__osg_Vec4_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix2_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrix3_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixf_R1, + "", + ""); + I_Method1(bool, get, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__get__osg_Matrixd_R1, + "", + ""); + I_Method2(bool, get, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1, + "", + ""); + I_Method3(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1, + "", + ""); + I_Method4(bool, get, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__get__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method2(bool, get, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1, + "", + ""); + I_Method3(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, get, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__get__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, float, f, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__float, + "value assignment for array uniforms ", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, int, i, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, bool, b, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Vec4_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix2_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrix3_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixf_R1, + "", + ""); + I_Method2(bool, setElement, IN, unsigned int, index, IN, const osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__C5_osg_Matrixd_R1, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, int, i0, IN, int, i1, IN, int, i2, IN, int, i3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__int__int__int__int, + "", + ""); + I_Method3(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool, + "", + ""); + I_Method4(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool, + "", + ""); + I_Method5(bool, setElement, IN, unsigned int, index, IN, bool, b0, IN, bool, b1, IN, bool, b2, IN, bool, b3, + Properties::NON_VIRTUAL, + __bool__setElement__unsigned_int__bool__bool__bool__bool, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, float &, f, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__float_R1, + "value query for array uniforms ", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, int &, i, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, bool &, b, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec2 &, v2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec3 &, v3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Vec4 &, v4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Vec4_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix2 &, m2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix2_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrix3 &, m3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrix3_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixf &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixf_R1, + "", + ""); + I_Method2(bool, getElement, IN, unsigned int, index, IN, osg::Matrixd &, m4, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__osg_Matrixd_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, int &, i0, IN, int &, i1, IN, int &, i2, IN, int &, i3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__int_R1__int_R1__int_R1__int_R1, + "", + ""); + I_Method3(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1, + "", + ""); + I_Method4(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method5(bool, getElement, IN, unsigned int, index, IN, bool &, b0, IN, bool &, b1, IN, bool &, b2, IN, bool &, b3, + Properties::NON_VIRTUAL, + __bool__getElement__unsigned_int__bool_R1__bool_R1__bool_R1__bool_R1, + "", + ""); + I_Method1(void, setUpdateCallback, IN, osg::Uniform::Callback *, uc, + Properties::NON_VIRTUAL, + __void__setUpdateCallback__Callback_P1, + "Set the UpdateCallback which allows users to attach customize the updating of an object during the update traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getUpdateCallback, + "Get the non const UpdateCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getUpdateCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getUpdateCallback, + "Get the const UpdateCallback. ", + ""); + I_Method1(void, setEventCallback, IN, osg::Uniform::Callback *, ec, + Properties::NON_VIRTUAL, + __void__setEventCallback__Callback_P1, + "Set the EventCallback which allows users to attach customize the updating of an object during the Event traversal. ", + ""); + I_Method0(osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __Callback_P1__getEventCallback, + "Get the non const EventCallback. ", + ""); + I_Method0(const osg::Uniform::Callback *, getEventCallback, + Properties::NON_VIRTUAL, + __C5_Callback_P1__getEventCallback, + "Get the const EventCallback. ", + ""); + I_Method0(void, dirty, + Properties::NON_VIRTUAL, + __void__dirty, + "Increment the modified count on the Uniform so Programs watching it know it update themselves. ", + "NOTE: autotomatically called during osg::Uniform::set*(); you must call if modifying the internal data array directly. "); + I_Method1(bool, setArray, IN, osg::FloatArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__FloatArray_P1, + "Set the internal data array for a osg::Uniform. ", + ""); + I_Method1(bool, setArray, IN, osg::IntArray *, array, + Properties::NON_VIRTUAL, + __bool__setArray__IntArray_P1, + "", + ""); + I_Method0(osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __FloatArray_P1__getFloatArray, + "Get the internal data array for a float osg::Uniform. ", + ""); + I_Method0(const osg::FloatArray *, getFloatArray, + Properties::NON_VIRTUAL, + __C5_FloatArray_P1__getFloatArray, + "", + ""); + I_Method0(osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __IntArray_P1__getIntArray, + "Get the internal data array for an int osg::Uniform. ", + ""); + I_Method0(const osg::IntArray *, getIntArray, + Properties::NON_VIRTUAL, + __C5_IntArray_P1__getIntArray, + "", + ""); + I_Method1(void, setModifiedCount, IN, unsigned int, mc, + Properties::NON_VIRTUAL, + __void__setModifiedCount__unsigned_int, + "", + ""); + I_Method0(unsigned int, getModifiedCount, + Properties::NON_VIRTUAL, + __unsigned_int__getModifiedCount, + "", + ""); + I_Method2(void, apply, IN, const osg::GL2Extensions *, ext, IN, GLint, location, + Properties::NON_VIRTUAL, + __void__apply__C5_GL2Extensions_P1__GLint, + "", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(const char *, getTypename, IN, osg::Uniform::Type, t, + __C5_char_P1__getTypename__Type_S, + "Return the name of a Type enum as string. ", + ""); + I_StaticMethod1(int, getTypeNumComponents, IN, osg::Uniform::Type, t, + __int__getTypeNumComponents__Type_S, + "Return the the number of components for a GLSL type. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getTypeId, IN, const std::string &, tname, + __Uniform_Type__getTypeId__C5_std_string_R1_S, + "Return the Type enum of a Uniform typename string. ", + ""); + I_StaticMethod1(osg::Uniform::Type, getGlApiType, IN, osg::Uniform::Type, t, + __Type__getGlApiType__Type_S, + "Return the GL API type corresponding to a GLSL type. ", + ""); + I_StaticMethod1(GLenum, getInternalArrayType, IN, osg::Uniform::Type, t, + __GLenum__getInternalArrayType__Type_S, + "Return the internal data array type corresponding to a GLSL type. ", + ""); + I_SimpleProperty(osg::FloatArray *, Array, + 0, + __bool__setArray__FloatArray_P1); + I_ArrayProperty(bool, Element, + 0, + __bool__setElement__unsigned_int__bool, + __unsigned_int__getNumElements, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::Callback *, EventCallback, + __Callback_P1__getEventCallback, + __void__setEventCallback__Callback_P1); + I_SimpleProperty(osg::FloatArray *, FloatArray, + __FloatArray_P1__getFloatArray, + 0); + I_SimpleProperty(osg::IntArray *, IntArray, + __IntArray_P1__getIntArray, + 0); + I_SimpleProperty(unsigned int, InternalArrayNumElements, + __unsigned_int__getInternalArrayNumElements, + 0); + I_SimpleProperty(unsigned int, ModifiedCount, + __unsigned_int__getModifiedCount, + __void__setModifiedCount__unsigned_int); + I_SimpleProperty(const std::string &, Name, + 0, + __void__setName__C5_std_string_R1); + I_SimpleProperty(unsigned int, NumElements, + 0, + __void__setNumElements__unsigned_int); + I_ArrayProperty(osg::StateSet *, Parent, + __StateSet_P1__getParent__unsigned_int, + 0, + __unsigned_int__getNumParents, + 0, + 0, + 0); + I_SimpleProperty(osg::Uniform::ParentList, Parents, + __ParentList__getParents, + 0); + I_SimpleProperty(osg::Uniform::Type, Type, + 0, + __bool__setType__Type); + I_SimpleProperty(osg::Uniform::Callback *, UpdateCallback, + __Callback_P1__getUpdateCallback, + __void__setUpdateCallback__Callback_P1); +END_REFLECTOR + BEGIN_OBJECT_REFLECTOR(osg::Uniform::Callback) I_VirtualBaseType(osg::Object); I_VirtualBaseType(osg::Object); diff --git a/src/osgWrappers/osg/Vec2f.cpp b/src/osgWrappers/osg/Vec2f.cpp index 35f7efdb6..d37502af9 100644 --- a/src/osgWrappers/osg/Vec2f.cpp +++ b/src/osgWrappers/osg/Vec2f.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -94,5 +95,213 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2f) __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); + I_Constructor0(____Vec2f, + "", + ""); + I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + ____Vec2f__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2f::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2f::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2f::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2f::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2f::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); +END_REFLECTOR + +TYPE_NAME_ALIAS(float, osg::Vec2f::value_type); + +BEGIN_VALUE_REFLECTOR(osg::Vec2f) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_Constructor0(____Vec2f, + "", + ""); + I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + ____Vec2f__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2f::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2f::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2f::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2f::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2f::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); + I_Constructor0(____Vec2f, + "", + ""); + I_Constructor2(IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + ____Vec2f__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2f::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2f::value_type, x, IN, osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2f::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2f::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2f::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2f::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec2f::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec2f::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec2f::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec2s.cpp b/src/osgWrappers/osg/Vec2s.cpp index 3dfd01d01..07d6e6a21 100644 --- a/src/osgWrappers/osg/Vec2s.cpp +++ b/src/osgWrappers/osg/Vec2s.cpp @@ -10,6 +10,7 @@ #include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -90,5 +91,211 @@ BEGIN_VALUE_REFLECTOR(osg::Vec2s) __value_type__g, "", ""); + I_Constructor0(____Vec2s, + "", + ""); + I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + ____Vec2s__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec2s &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec2s_R1, + "", + ""); + I_Method0(osg::Vec2s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec2s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec2s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec2s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec2s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); +END_REFLECTOR + +TYPE_NAME_ALIAS(short, osg::Vec2s::value_type); + +BEGIN_VALUE_REFLECTOR(osg::Vec2s) + I_Constructor0(____Vec2s, + "", + ""); + I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + ____Vec2s__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec2s &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec2s_R1, + "", + ""); + I_Method0(osg::Vec2s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec2s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec2s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec2s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec2s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Constructor0(____Vec2s, + "", + ""); + I_Constructor2(IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + ____Vec2s__value_type__value_type, + "", + ""); + I_Method0(osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec2s::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method2(void, set, IN, osg::Vec2s::value_type, x, IN, osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type, + "", + ""); + I_Method1(void, set, IN, const osg::Vec2s &, rhs, + Properties::NON_VIRTUAL, + __void__set__C5_Vec2s_R1, + "", + ""); + I_Method0(osg::Vec2s::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec2s::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec2s::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec2s::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec2s::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec2s::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec2s::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec2s::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osg/Vec3d.cpp b/src/osgWrappers/osg/Vec3d.cpp index 83c2ecd54..73ac14a50 100644 --- a/src/osgWrappers/osg/Vec3d.cpp +++ b/src/osgWrappers/osg/Vec3d.cpp @@ -10,9 +10,9 @@ #include #include +#include #include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers diff --git a/src/osgWrappers/osg/Vec4d.cpp b/src/osgWrappers/osg/Vec4d.cpp index 4dd6bdfae..632389a3b 100644 --- a/src/osgWrappers/osg/Vec4d.cpp +++ b/src/osgWrappers/osg/Vec4d.cpp @@ -10,9 +10,10 @@ #include #include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -175,5 +176,450 @@ BEGIN_VALUE_REFLECTOR(osg::Vec4d) __value_type__normalize, "Normalize the vector so that it has length unity. ", "Returns the previous length of the vector."); + I_Constructor0(____Vec4d, + "", + ""); + I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + ____Vec4d__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w, + ____Vec4d__C5_Vec3d_R1__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Vec4d__C5_Vec4f_R1, + "", + ""); + I_Method0(osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4d::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4d::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4d::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4d::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4d::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4d::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4d::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4d::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4d::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); + I_Method0(unsigned int, asABGR, + Properties::NON_VIRTUAL, + __unsigned_int__asABGR, + "", + ""); + I_Method0(unsigned int, asRGBA, + Properties::NON_VIRTUAL, + __unsigned_int__asRGBA, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec4d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec4d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec4d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); +END_REFLECTOR + +TYPE_NAME_ALIAS(double, osg::Vec4d::value_type); + +BEGIN_VALUE_REFLECTOR(osg::Vec4d) + I_ReaderWriter(osgIntrospection::StdReaderWriter); // user-defined + I_Comparator(osgIntrospection::PartialOrderComparator); // user-defined + I_Constructor0(____Vec4d, + "", + ""); + I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + ____Vec4d__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w, + ____Vec4d__C5_Vec3d_R1__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Vec4d__C5_Vec4f_R1, + "", + ""); + I_Method0(osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4d::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4d::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4d::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4d::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4d::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4d::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4d::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4d::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4d::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); + I_Method0(unsigned int, asABGR, + Properties::NON_VIRTUAL, + __unsigned_int__asABGR, + "", + ""); + I_Method0(unsigned int, asRGBA, + Properties::NON_VIRTUAL, + __unsigned_int__asRGBA, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec4d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec4d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec4d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); + I_Constructor0(____Vec4d, + "", + ""); + I_Constructor4(IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + ____Vec4d__value_type__value_type__value_type__value_type, + "", + ""); + I_Constructor2(IN, const osg::Vec3d &, v3, IN, osg::Vec4d::value_type, w, + ____Vec4d__C5_Vec3d_R1__value_type, + "", + ""); + I_Constructor1(IN, const osg::Vec4f &, vec, + Properties::NON_EXPLICIT, + ____Vec4d__C5_Vec4f_R1, + "", + ""); + I_Method0(osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __value_type_P1__ptr, + "", + ""); + I_Method0(const osg::Vec4d::value_type *, ptr, + Properties::NON_VIRTUAL, + __C5_value_type_P1__ptr, + "", + ""); + I_Method4(void, set, IN, osg::Vec4d::value_type, x, IN, osg::Vec4d::value_type, y, IN, osg::Vec4d::value_type, z, IN, osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __void__set__value_type__value_type__value_type__value_type, + "", + ""); + I_Method0(osg::Vec4d::value_type &, x, + Properties::NON_VIRTUAL, + __value_type_R1__x, + "", + ""); + I_Method0(osg::Vec4d::value_type &, y, + Properties::NON_VIRTUAL, + __value_type_R1__y, + "", + ""); + I_Method0(osg::Vec4d::value_type &, z, + Properties::NON_VIRTUAL, + __value_type_R1__z, + "", + ""); + I_Method0(osg::Vec4d::value_type &, w, + Properties::NON_VIRTUAL, + __value_type_R1__w, + "", + ""); + I_Method0(osg::Vec4d::value_type, x, + Properties::NON_VIRTUAL, + __value_type__x, + "", + ""); + I_Method0(osg::Vec4d::value_type, y, + Properties::NON_VIRTUAL, + __value_type__y, + "", + ""); + I_Method0(osg::Vec4d::value_type, z, + Properties::NON_VIRTUAL, + __value_type__z, + "", + ""); + I_Method0(osg::Vec4d::value_type, w, + Properties::NON_VIRTUAL, + __value_type__w, + "", + ""); + I_Method0(osg::Vec4d::value_type &, r, + Properties::NON_VIRTUAL, + __value_type_R1__r, + "", + ""); + I_Method0(osg::Vec4d::value_type &, g, + Properties::NON_VIRTUAL, + __value_type_R1__g, + "", + ""); + I_Method0(osg::Vec4d::value_type &, b, + Properties::NON_VIRTUAL, + __value_type_R1__b, + "", + ""); + I_Method0(osg::Vec4d::value_type &, a, + Properties::NON_VIRTUAL, + __value_type_R1__a, + "", + ""); + I_Method0(osg::Vec4d::value_type, r, + Properties::NON_VIRTUAL, + __value_type__r, + "", + ""); + I_Method0(osg::Vec4d::value_type, g, + Properties::NON_VIRTUAL, + __value_type__g, + "", + ""); + I_Method0(osg::Vec4d::value_type, b, + Properties::NON_VIRTUAL, + __value_type__b, + "", + ""); + I_Method0(osg::Vec4d::value_type, a, + Properties::NON_VIRTUAL, + __value_type__a, + "", + ""); + I_Method0(unsigned int, asABGR, + Properties::NON_VIRTUAL, + __unsigned_int__asABGR, + "", + ""); + I_Method0(unsigned int, asRGBA, + Properties::NON_VIRTUAL, + __unsigned_int__asRGBA, + "", + ""); + I_Method0(bool, valid, + Properties::NON_VIRTUAL, + __bool__valid, + "", + ""); + I_Method0(bool, isNaN, + Properties::NON_VIRTUAL, + __bool__isNaN, + "", + ""); + I_Method0(osg::Vec4d::value_type, length, + Properties::NON_VIRTUAL, + __value_type__length, + "Length of the vector = sqrt( vec . ", + "vec ) "); + I_Method0(osg::Vec4d::value_type, length2, + Properties::NON_VIRTUAL, + __value_type__length2, + "Length squared of the vector = vec . ", + "vec "); + I_Method0(osg::Vec4d::value_type, normalize, + Properties::NON_VIRTUAL, + __value_type__normalize, + "Normalize the vector so that it has length unity. ", + "Returns the previous length of the vector."); END_REFLECTOR diff --git a/src/osgWrappers/osg/VertexProgram.cpp b/src/osgWrappers/osg/VertexProgram.cpp index dba883ca7..caec55ff6 100644 --- a/src/osgWrappers/osg/VertexProgram.cpp +++ b/src/osgWrappers/osg/VertexProgram.cpp @@ -10,13 +10,6 @@ #include #include -#include -#include -#include -#include -#include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -27,640 +20,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalParamList); - -TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList); - -BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) - I_BaseType(osg::StateAttribute); - I_BaseType(osg::StateAttribute); - I_Constructor0(____VertexProgram, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __int__compare__C5_osg_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__getVertexProgramID__unsigned_int, - "Get the handle to the vertex program ID for the current context. ", - ""); - I_Method1(void, setVertexProgram, IN, const char *, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_char_P1, - "Set the vertex program using a C style string. ", - ""); - I_Method1(void, setVertexProgram, IN, const std::string &, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_std_string_R1, - "Set the vertex program using C++ style string. ", - ""); - I_Method0(const std::string &, getVertexProgram, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getVertexProgram, - "Get the vertex program. ", - ""); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, - Properties::NON_VIRTUAL, - __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, - "Set Program Parameters. ", - ""); - I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, - Properties::NON_VIRTUAL, - __void__setLocalParameters__C5_LocalParamList_R1, - "Set list of Program Parameters. ", - ""); - I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __LocalParamList_R1__getLocalParameters, - "Get list of Program Parameters. ", - ""); - I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __C5_LocalParamList_R1__getLocalParameters, - "Get const list of Program Parameters. ", - ""); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, - Properties::NON_VIRTUAL, - __void__setMatrix__C5_GLenum__C5_Matrix_R1, - "Matrix. ", - ""); - I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, - Properties::NON_VIRTUAL, - __void__setMatrices__C5_MatrixList_R1, - "Set list of Matrices. ", - ""); - I_Method0(osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __C5_MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(void, dirtyVertexProgramObject, - Properties::NON_VIRTUAL, - __void__dirtyVertexProgramObject, - "Force a recompile on next apply() of associated OpenGL vertex program objects. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", - ""); - I_Constructor0(____VertexProgram, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __int__compare__C5_osg_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__getVertexProgramID__unsigned_int, - "Get the handle to the vertex program ID for the current context. ", - ""); - I_Method1(void, setVertexProgram, IN, const char *, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_char_P1, - "Set the vertex program using a C style string. ", - ""); - I_Method1(void, setVertexProgram, IN, const std::string &, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_std_string_R1, - "Set the vertex program using C++ style string. ", - ""); - I_Method0(const std::string &, getVertexProgram, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getVertexProgram, - "Get the vertex program. ", - ""); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, - Properties::NON_VIRTUAL, - __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, - "Set Program Parameters. ", - ""); - I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, - Properties::NON_VIRTUAL, - __void__setLocalParameters__C5_LocalParamList_R1, - "Set list of Program Parameters. ", - ""); - I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __LocalParamList_R1__getLocalParameters, - "Get list of Program Parameters. ", - ""); - I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __C5_LocalParamList_R1__getLocalParameters, - "Get const list of Program Parameters. ", - ""); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, - Properties::NON_VIRTUAL, - __void__setMatrix__C5_GLenum__C5_Matrix_R1, - "Matrix. ", - ""); - I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, - Properties::NON_VIRTUAL, - __void__setMatrices__C5_MatrixList_R1, - "Set list of Matrices. ", - ""); - I_Method0(osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __C5_MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(void, dirtyVertexProgramObject, - Properties::NON_VIRTUAL, - __void__dirtyVertexProgramObject, - "Force a recompile on next apply() of associated OpenGL vertex program objects. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", - ""); - I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, - __void__deleteVertexProgramObject__unsigned_int__GLuint_S, - "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", - ""); - I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, - "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", - ""); - I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Function to call to get the extension of a specified context. ", - "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "The setExtensions method allows users to override the extensions across graphics contexts. ", - "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); - I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, - __void__deleteVertexProgramObject__unsigned_int__GLuint_S, - "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", - ""); - I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, - "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", - ""); - I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Function to call to get the extension of a specified context. ", - "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "The setExtensions method allows users to override the extensions across graphics contexts. ", - "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); - I_SimpleProperty(const osg::VertexProgram::LocalParamList &, LocalParameters, - __C5_LocalParamList_R1__getLocalParameters, - __void__setLocalParameters__C5_LocalParamList_R1); - I_SimpleProperty(const osg::VertexProgram::MatrixList &, Matrices, - __C5_MatrixList_R1__getMatrices, - __void__setMatrices__C5_MatrixList_R1); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); - I_SimpleProperty(const std::string &, VertexProgram, - __C5_std_string_R1__getVertexProgram, - __void__setVertexProgram__C5_std_string_R1); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::map< GLuint COMMA osg::Vec4 >, osg::VertexProgram::LocalParamList); - -TYPE_NAME_ALIAS(std::map< GLenum COMMA osg::Matrix >, osg::VertexProgram::MatrixList); - -BEGIN_OBJECT_REFLECTOR(osg::VertexProgram) - I_BaseType(osg::StateAttribute); - I_BaseType(osg::StateAttribute); - I_Constructor0(____VertexProgram, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __int__compare__C5_osg_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__getVertexProgramID__unsigned_int, - "Get the handle to the vertex program ID for the current context. ", - ""); - I_Method1(void, setVertexProgram, IN, const char *, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_char_P1, - "Set the vertex program using a C style string. ", - ""); - I_Method1(void, setVertexProgram, IN, const std::string &, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_std_string_R1, - "Set the vertex program using C++ style string. ", - ""); - I_Method0(const std::string &, getVertexProgram, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getVertexProgram, - "Get the vertex program. ", - ""); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, - Properties::NON_VIRTUAL, - __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, - "Set Program Parameters. ", - ""); - I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, - Properties::NON_VIRTUAL, - __void__setLocalParameters__C5_LocalParamList_R1, - "Set list of Program Parameters. ", - ""); - I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __LocalParamList_R1__getLocalParameters, - "Get list of Program Parameters. ", - ""); - I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __C5_LocalParamList_R1__getLocalParameters, - "Get const list of Program Parameters. ", - ""); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, - Properties::NON_VIRTUAL, - __void__setMatrix__C5_GLenum__C5_Matrix_R1, - "Matrix. ", - ""); - I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, - Properties::NON_VIRTUAL, - __void__setMatrices__C5_MatrixList_R1, - "Set list of Matrices. ", - ""); - I_Method0(osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __C5_MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(void, dirtyVertexProgramObject, - Properties::NON_VIRTUAL, - __void__dirtyVertexProgramObject, - "Force a recompile on next apply() of associated OpenGL vertex program objects. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", - ""); - I_Constructor0(____VertexProgram, - "", - ""); - I_ConstructorWithDefaults2(IN, const osg::VertexProgram &, vp, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____VertexProgram__C5_VertexProgram_R1__C5_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(Type, getType, - Properties::VIRTUAL, - __Type__getType, - "", - ""); - I_Method1(int, compare, IN, const osg::StateAttribute &, sa, - Properties::VIRTUAL, - __int__compare__C5_osg_StateAttribute_R1, - "Return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. ", - ""); - I_Method1(bool, getModeUsage, IN, osg::StateAttribute::ModeUsage &, usage, - Properties::VIRTUAL, - __bool__getModeUsage__ModeUsage_R1, - "", - ""); - I_Method1(GLuint &, getVertexProgramID, IN, unsigned int, contextID, - Properties::NON_VIRTUAL, - __GLuint_R1__getVertexProgramID__unsigned_int, - "Get the handle to the vertex program ID for the current context. ", - ""); - I_Method1(void, setVertexProgram, IN, const char *, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_char_P1, - "Set the vertex program using a C style string. ", - ""); - I_Method1(void, setVertexProgram, IN, const std::string &, program, - Properties::NON_VIRTUAL, - __void__setVertexProgram__C5_std_string_R1, - "Set the vertex program using C++ style string. ", - ""); - I_Method0(const std::string &, getVertexProgram, - Properties::NON_VIRTUAL, - __C5_std_string_R1__getVertexProgram, - "Get the vertex program. ", - ""); - I_Method2(void, setProgramLocalParameter, IN, const GLuint, index, IN, const osg::Vec4 &, p, - Properties::NON_VIRTUAL, - __void__setProgramLocalParameter__C5_GLuint__C5_Vec4_R1, - "Set Program Parameters. ", - ""); - I_Method1(void, setLocalParameters, IN, const osg::VertexProgram::LocalParamList &, lpl, - Properties::NON_VIRTUAL, - __void__setLocalParameters__C5_LocalParamList_R1, - "Set list of Program Parameters. ", - ""); - I_Method0(osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __LocalParamList_R1__getLocalParameters, - "Get list of Program Parameters. ", - ""); - I_Method0(const osg::VertexProgram::LocalParamList &, getLocalParameters, - Properties::NON_VIRTUAL, - __C5_LocalParamList_R1__getLocalParameters, - "Get const list of Program Parameters. ", - ""); - I_Method2(void, setMatrix, IN, const GLenum, mode, IN, const osg::Matrix &, matrix, - Properties::NON_VIRTUAL, - __void__setMatrix__C5_GLenum__C5_Matrix_R1, - "Matrix. ", - ""); - I_Method1(void, setMatrices, IN, const osg::VertexProgram::MatrixList &, matrices, - Properties::NON_VIRTUAL, - __void__setMatrices__C5_MatrixList_R1, - "Set list of Matrices. ", - ""); - I_Method0(osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(const osg::VertexProgram::MatrixList &, getMatrices, - Properties::NON_VIRTUAL, - __C5_MatrixList_R1__getMatrices, - "Get list of Matrices. ", - ""); - I_Method0(void, dirtyVertexProgramObject, - Properties::NON_VIRTUAL, - __void__dirtyVertexProgramObject, - "Force a recompile on next apply() of associated OpenGL vertex program objects. ", - ""); - I_Method1(void, apply, IN, osg::State &, state, - Properties::VIRTUAL, - __void__apply__State_R1, - "", - ""); - I_Method1(void, compileGLObjects, IN, osg::State &, state, - Properties::VIRTUAL, - __void__compileGLObjects__State_R1, - "", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__State_P1, - "Release any OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics contexts if State object pointer is NULL. ", - ""); - I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, - __void__deleteVertexProgramObject__unsigned_int__GLuint_S, - "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", - ""); - I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, - "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", - ""); - I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Function to call to get the extension of a specified context. ", - "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "The setExtensions method allows users to override the extensions across graphics contexts. ", - "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); - I_StaticMethod2(void, deleteVertexProgramObject, IN, unsigned int, contextID, IN, GLuint, handle, - __void__deleteVertexProgramObject__unsigned_int__GLuint_S, - "Use deleteVertexProgramObject instead of glDeletePrograms to allow OpenGL Vertex Program objects to cached until they can be deleted by the OpenGL context in which they were created, specified by contextID. ", - ""); - I_StaticMethod3(void, flushDeletedVertexProgramObjects, IN, unsigned int, contextID, IN, double, currentTime, IN, double &, availableTime, - __void__flushDeletedVertexProgramObjects__unsigned_int__double__double_R1_S, - "Flush all the cached vertex programs which need to be deleted in the OpenGL context related to contextID. ", - ""); - I_StaticMethod2(osg::VertexProgram::Extensions *, getExtensions, IN, unsigned int, contextID, IN, bool, createIfNotInitalized, - __Extensions_P1__getExtensions__unsigned_int__bool_S, - "Function to call to get the extension of a specified context. ", - "If the Exentsion object for that context has not yet been created and the 'createIfNotInitalized' flag been set to false then returns NULL. If 'createIfNotInitalized' is true then the Extensions object is automatically created. However, in this case the extension object will only be created with the graphics context associated with ContextID."); - I_StaticMethod2(void, setExtensions, IN, unsigned int, contextID, IN, osg::VertexProgram::Extensions *, extensions, - __void__setExtensions__unsigned_int__Extensions_P1_S, - "The setExtensions method allows users to override the extensions across graphics contexts. ", - "Typically used when you have different extensions supported across graphics pipes but need to ensure that they all use the same low common denominator extensions."); - I_SimpleProperty(const osg::VertexProgram::LocalParamList &, LocalParameters, - __C5_LocalParamList_R1__getLocalParameters, - __void__setLocalParameters__C5_LocalParamList_R1); - I_SimpleProperty(const osg::VertexProgram::MatrixList &, Matrices, - __C5_MatrixList_R1__getMatrices, - __void__setMatrices__C5_MatrixList_R1); - I_SimpleProperty(Type, Type, - __Type__getType, - 0); - I_SimpleProperty(const std::string &, VertexProgram, - __C5_std_string_R1__getVertexProgram, - __void__setVertexProgram__C5_std_string_R1); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osg::VertexProgram::Extensions) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osgDB/ReentrantMutex.cpp b/src/osgWrappers/osgDB/ReentrantMutex.cpp index 317320c0c..c3bf071de 100644 --- a/src/osgWrappers/osgDB/ReentrantMutex.cpp +++ b/src/osgWrappers/osgDB/ReentrantMutex.cpp @@ -20,81 +20,127 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) - I_Constructor0(____ReentrantMutex, +BEGIN_OBJECT_REFLECTOR(osgDB::ReadWriteMutex) + I_Constructor0(____ReadWriteMutex, "", ""); - I_Method0(int, lock, + I_Method0(int, readLock, Properties::VIRTUAL, - __int__lock, + __int__readLock, "", ""); - I_Method0(int, unlock, + I_Method0(int, readUnlock, Properties::VIRTUAL, - __int__unlock, + __int__readUnlock, "", ""); - I_Method0(int, trylock, + I_Method0(int, writeLock, Properties::VIRTUAL, - __int__trylock, + __int__writeLock, "", ""); - I_Constructor0(____ReentrantMutex, + I_Method0(int, writeUnlock, + Properties::VIRTUAL, + __int__writeUnlock, + "", + ""); + I_Constructor0(____ReadWriteMutex, "", ""); - I_Method0(int, lock, + I_Method0(int, readLock, Properties::VIRTUAL, - __int__lock, + __int__readLock, "", ""); - I_Method0(int, unlock, + I_Method0(int, readUnlock, Properties::VIRTUAL, - __int__unlock, + __int__readUnlock, "", ""); - I_Method0(int, trylock, + I_Method0(int, writeLock, Properties::VIRTUAL, - __int__trylock, + __int__writeLock, + "", + ""); + I_Method0(int, writeUnlock, + Properties::VIRTUAL, + __int__writeUnlock, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgDB::ReentrantMutex) - I_Constructor0(____ReentrantMutex, +BEGIN_OBJECT_REFLECTOR(osgDB::ReadWriteMutex) + I_Constructor0(____ReadWriteMutex, "", ""); - I_Method0(int, lock, + I_Method0(int, readLock, Properties::VIRTUAL, - __int__lock, + __int__readLock, "", ""); - I_Method0(int, unlock, + I_Method0(int, readUnlock, Properties::VIRTUAL, - __int__unlock, + __int__readUnlock, "", ""); - I_Method0(int, trylock, + I_Method0(int, writeLock, Properties::VIRTUAL, - __int__trylock, + __int__writeLock, "", ""); - I_Constructor0(____ReentrantMutex, + I_Method0(int, writeUnlock, + Properties::VIRTUAL, + __int__writeUnlock, + "", + ""); + I_Constructor0(____ReadWriteMutex, "", ""); - I_Method0(int, lock, + I_Method0(int, readLock, Properties::VIRTUAL, - __int__lock, + __int__readLock, "", ""); - I_Method0(int, unlock, + I_Method0(int, readUnlock, Properties::VIRTUAL, - __int__unlock, + __int__readUnlock, "", ""); - I_Method0(int, trylock, + I_Method0(int, writeLock, Properties::VIRTUAL, - __int__trylock, + __int__writeLock, + "", + ""); + I_Method0(int, writeUnlock, + Properties::VIRTUAL, + __int__writeUnlock, "", ""); END_REFLECTOR +BEGIN_VALUE_REFLECTOR(osgDB::ScopedReadLock) + I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedReadLock__ReadWriteMutex_R1, + "", + ""); + I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedReadLock__ReadWriteMutex_R1, + "", + ""); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgDB::ScopedReadLock) + I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedReadLock__ReadWriteMutex_R1, + "", + ""); + I_Constructor1(IN, osgDB::ReadWriteMutex &, mutex, + Properties::NON_EXPLICIT, + ____ScopedReadLock__ReadWriteMutex_R1, + "", + ""); +END_REFLECTOR + diff --git a/src/osgWrappers/osgDB/Registry.cpp b/src/osgWrappers/osgDB/Registry.cpp index ddec7b7f5..0dcddb044 100644 --- a/src/osgWrappers/osgDB/Registry.cpp +++ b/src/osgWrappers/osgDB/Registry.cpp @@ -10,24 +10,11 @@ #include #include -#include #include #include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include #include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -38,1680 +25,6 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgDB::Registry) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, - Properties::NON_VIRTUAL, - __void__readCommandLine__osg_ArgumentParser_R1, - "read the command line arguments. ", - ""); - I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, - Properties::NON_VIRTUAL, - __void__addFileExtensionAlias__C5_std_string__C5_std_string, - "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", - "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); - I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, - Properties::NON_VIRTUAL, - __bool__readPluginAliasConfigurationFile__C5_std_string_R1, - "Reads a file that configures extension mappings. ", - "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); - I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__addDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__removeDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__addReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__removeReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForFile__C5_std_string_R1, - "create the platform specific library name associated with file. ", - ""); - I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForExtension__C5_std_string_R1, - "create the platform specific library name associated with file extension. ", - ""); - I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForNodeKit__C5_std_string_R1, - "create the platform specific library name associated with nodekit library name. ", - ""); - I_Method1(bool, loadLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__loadLibrary__C5_std_string_R1, - "find the library in the OSG_LIBRARY_PATH and load it. ", - ""); - I_Method1(bool, closeLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__closeLibrary__C5_std_string_R1, - "close the attached library with specified name. ", - ""); - I_Method0(void, closeAllLibraries, - Properties::NON_VIRTUAL, - __void__closeAllLibraries, - "close all libraries. ", - ""); - I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, - "get a reader writer which handles specified extension. ", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, - "", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, - "", - ""); - I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObject__Input_R1, - "", - ""); - I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Image_P1__readImage__Input_R1, - "", - ""); - I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Drawable_P1__readDrawable__Input_R1, - "", - ""); - I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Uniform_P1__readUniform__Input_R1, - "", - ""); - I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_StateAttribute_P1__readStateAttribute__Input_R1, - "", - ""); - I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Node_P1__readNode__Input_R1, - "", - ""); - I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, - Properties::NON_VIRTUAL, - __bool__writeObject__C5_osg_Object_R1__Output_R1, - "", - ""); - I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setReadFileCallback__ReadFileCallback_P1, - "Set the Registry callback to use in place of the default readFile calls. ", - ""); - I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __ReadFileCallback_P1__getReadFileCallback, - "Get the readFile callback. ", - ""); - I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __C5_ReadFileCallback_P1__getReadFileCallback, - "Get the const readFile callback. ", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setWriteFileCallback__WriteFileCallback_P1, - "Set the Registry callback to use in place of the default writeFile calls. ", - ""); - I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __WriteFileCallback_P1__getWriteFileCallback, - "Get the writeFile callback. ", - ""); - I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __C5_WriteFileCallback_P1__getWriteFileCallback, - "Get the const writeFile callback. ", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method1(void, setCreateNodeFromImage, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setCreateNodeFromImage__bool, - "", - ""); - I_Method0(bool, getCreateNodeFromImage, - Properties::NON_VIRTUAL, - __bool__getCreateNodeFromImage, - "", - ""); - I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, - Properties::NON_VIRTUAL, - __void__setOptions__ReaderWriter_Options_P1, - "", - ""); - I_Method0(osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __C5_ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(void, initFilePathLists, - Properties::NON_VIRTUAL, - __void__initFilePathLists, - "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", - ""); - I_Method0(void, initDataFilePathList, - Properties::NON_VIRTUAL, - __void__initDataFilePathList, - "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", - ""); - I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_FilePathList_R1, - "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setDataFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_std_string_R1, - "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getDataFilePathList, - "get the data file path which is used when search for data files. ", - ""); - I_Method0(const osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getDataFilePathList, - "get the const data file path which is used when search for data files. ", - ""); - I_Method0(void, initLibraryFilePathList, - Properties::NON_VIRTUAL, - __void__initLibraryFilePathList, - "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_FilePathList_R1, - "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_std_string_R1, - "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getLibraryFilePathList, - "get the library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getLibraryFilePathList, - "get the const library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, - Properties::NON_VIRTUAL, - __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, - "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); - I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, - Properties::NON_VIRTUAL, - __void__removeExpiredObjectsInCache__double, - "Removed object in the cache which have a time stamp at or before the specified expiry time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); - I_Method0(void, clearObjectCache, - Properties::NON_VIRTUAL, - __void__clearObjectCache, - "Remove all objects in the cache regardless of having external references or expiry times. ", - ""); - I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, - Properties::NON_VIRTUAL, - __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, - "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", - ""); - I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osg_Object_P1__getFromObjectCache__C5_std_string_R1, - "Get an object from the object cache. ", - ""); - I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, - Properties::NON_VIRTUAL, - __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, - "Add archive to archive cache so that future calls reference this archive. ", - ""); - I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __void__removeFromArchiveCache__C5_std_string_R1, - "Remove archive from cache. ", - ""); - I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, - "Get an archive from the archive cache. ", - ""); - I_Method0(void, clearArchiveCache, - Properties::NON_VIRTUAL, - __void__clearArchiveCache, - "Remove all archives from the archive cache. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::NON_VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __DynamicLibrary_P1__getLibrary__C5_std_string_R1, - "get the attached library with specified name. ", - ""); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, - Properties::NON_VIRTUAL, - __void__setDatabasePager__DatabasePager_P1, - "Set the DatabasePager. ", - ""); - I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getOrCreateDatabasePager, - "Get the DatabasePager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::DatabasePager *, getDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getDatabasePager, - "Get the DatabasePager. ", - "Return 0 if no DatabasePager has been assigned. "); - I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, - Properties::NON_VIRTUAL, - __void__setSharedStateManager__SharedStateManager_P1, - "Set the SharedStateManager. ", - ""); - I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getOrCreateSharedStateManager, - "Get the SharedStateManager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::SharedStateManager *, getSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getSharedStateManager, - "Get the SharedStateManager. ", - "Return 0 if no SharedStateManager has been assigned. "); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, - Properties::NON_VIRTUAL, - __void__readCommandLine__osg_ArgumentParser_R1, - "read the command line arguments. ", - ""); - I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, - Properties::NON_VIRTUAL, - __void__addFileExtensionAlias__C5_std_string__C5_std_string, - "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", - "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); - I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, - Properties::NON_VIRTUAL, - __bool__readPluginAliasConfigurationFile__C5_std_string_R1, - "Reads a file that configures extension mappings. ", - "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); - I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__addDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__removeDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__addReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__removeReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForFile__C5_std_string_R1, - "create the platform specific library name associated with file. ", - ""); - I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForExtension__C5_std_string_R1, - "create the platform specific library name associated with file extension. ", - ""); - I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForNodeKit__C5_std_string_R1, - "create the platform specific library name associated with nodekit library name. ", - ""); - I_Method1(bool, loadLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__loadLibrary__C5_std_string_R1, - "find the library in the OSG_LIBRARY_PATH and load it. ", - ""); - I_Method1(bool, closeLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__closeLibrary__C5_std_string_R1, - "close the attached library with specified name. ", - ""); - I_Method0(void, closeAllLibraries, - Properties::NON_VIRTUAL, - __void__closeAllLibraries, - "close all libraries. ", - ""); - I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, - "get a reader writer which handles specified extension. ", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, - "", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, - "", - ""); - I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObject__Input_R1, - "", - ""); - I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Image_P1__readImage__Input_R1, - "", - ""); - I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Drawable_P1__readDrawable__Input_R1, - "", - ""); - I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Uniform_P1__readUniform__Input_R1, - "", - ""); - I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_StateAttribute_P1__readStateAttribute__Input_R1, - "", - ""); - I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Node_P1__readNode__Input_R1, - "", - ""); - I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, - Properties::NON_VIRTUAL, - __bool__writeObject__C5_osg_Object_R1__Output_R1, - "", - ""); - I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setReadFileCallback__ReadFileCallback_P1, - "Set the Registry callback to use in place of the default readFile calls. ", - ""); - I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __ReadFileCallback_P1__getReadFileCallback, - "Get the readFile callback. ", - ""); - I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __C5_ReadFileCallback_P1__getReadFileCallback, - "Get the const readFile callback. ", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setWriteFileCallback__WriteFileCallback_P1, - "Set the Registry callback to use in place of the default writeFile calls. ", - ""); - I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __WriteFileCallback_P1__getWriteFileCallback, - "Get the writeFile callback. ", - ""); - I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __C5_WriteFileCallback_P1__getWriteFileCallback, - "Get the const writeFile callback. ", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method1(void, setCreateNodeFromImage, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setCreateNodeFromImage__bool, - "", - ""); - I_Method0(bool, getCreateNodeFromImage, - Properties::NON_VIRTUAL, - __bool__getCreateNodeFromImage, - "", - ""); - I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, - Properties::NON_VIRTUAL, - __void__setOptions__ReaderWriter_Options_P1, - "", - ""); - I_Method0(osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __C5_ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(void, initFilePathLists, - Properties::NON_VIRTUAL, - __void__initFilePathLists, - "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", - ""); - I_Method0(void, initDataFilePathList, - Properties::NON_VIRTUAL, - __void__initDataFilePathList, - "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", - ""); - I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_FilePathList_R1, - "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setDataFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_std_string_R1, - "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getDataFilePathList, - "get the data file path which is used when search for data files. ", - ""); - I_Method0(const osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getDataFilePathList, - "get the const data file path which is used when search for data files. ", - ""); - I_Method0(void, initLibraryFilePathList, - Properties::NON_VIRTUAL, - __void__initLibraryFilePathList, - "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_FilePathList_R1, - "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_std_string_R1, - "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getLibraryFilePathList, - "get the library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getLibraryFilePathList, - "get the const library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, - Properties::NON_VIRTUAL, - __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, - "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); - I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, - Properties::NON_VIRTUAL, - __void__removeExpiredObjectsInCache__double, - "Removed object in the cache which have a time stamp at or before the specified expiry time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); - I_Method0(void, clearObjectCache, - Properties::NON_VIRTUAL, - __void__clearObjectCache, - "Remove all objects in the cache regardless of having external references or expiry times. ", - ""); - I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, - Properties::NON_VIRTUAL, - __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, - "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", - ""); - I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osg_Object_P1__getFromObjectCache__C5_std_string_R1, - "Get an object from the object cache. ", - ""); - I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, - Properties::NON_VIRTUAL, - __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, - "Add archive to archive cache so that future calls reference this archive. ", - ""); - I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __void__removeFromArchiveCache__C5_std_string_R1, - "Remove archive from cache. ", - ""); - I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, - "Get an archive from the archive cache. ", - ""); - I_Method0(void, clearArchiveCache, - Properties::NON_VIRTUAL, - __void__clearArchiveCache, - "Remove all archives from the archive cache. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::NON_VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __DynamicLibrary_P1__getLibrary__C5_std_string_R1, - "get the attached library with specified name. ", - ""); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, - Properties::NON_VIRTUAL, - __void__setDatabasePager__DatabasePager_P1, - "Set the DatabasePager. ", - ""); - I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getOrCreateDatabasePager, - "Get the DatabasePager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::DatabasePager *, getDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getDatabasePager, - "Get the DatabasePager. ", - "Return 0 if no DatabasePager has been assigned. "); - I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, - Properties::NON_VIRTUAL, - __void__setSharedStateManager__SharedStateManager_P1, - "Set the SharedStateManager. ", - ""); - I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getOrCreateSharedStateManager, - "Get the SharedStateManager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::SharedStateManager *, getSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getSharedStateManager, - "Get the SharedStateManager. ", - "Return 0 if no SharedStateManager has been assigned. "); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, - __Registry_P1__instance__bool_S, - "", - ""); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, - __Registry_P1__instance__bool_S, - "", - ""); - I_SimpleProperty(bool, CreateNodeFromImage, - __bool__getCreateNodeFromImage, - __void__setCreateNodeFromImage__bool); - I_SimpleProperty(const osgDB::FilePathList &, DataFilePathList, - __C5_FilePathList_R1__getDataFilePathList, - __void__setDataFilePathList__C5_FilePathList_R1); - I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, - __DatabasePager_P1__getDatabasePager, - __void__setDatabasePager__DatabasePager_P1); - I_SimpleProperty(const osgDB::FilePathList &, LibraryFilePathList, - __C5_FilePathList_R1__getLibraryFilePathList, - __void__setLibraryFilePathList__C5_FilePathList_R1); - I_SimpleProperty(osgDB::ReaderWriter::Options *, Options, - __ReaderWriter_Options_P1__getOptions, - __void__setOptions__ReaderWriter_Options_P1); - I_SimpleProperty(osgDB::Registry::ReadFileCallback *, ReadFileCallback, - __ReadFileCallback_P1__getReadFileCallback, - __void__setReadFileCallback__ReadFileCallback_P1); - I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager, - __SharedStateManager_P1__getSharedStateManager, - __void__setSharedStateManager__SharedStateManager_P1); - I_SimpleProperty(osgDB::Registry::WriteFileCallback *, WriteFileCallback, - __WriteFileCallback_P1__getWriteFileCallback, - __void__setWriteFileCallback__WriteFileCallback_P1); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgDB::Registry) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, - Properties::NON_VIRTUAL, - __void__readCommandLine__osg_ArgumentParser_R1, - "read the command line arguments. ", - ""); - I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, - Properties::NON_VIRTUAL, - __void__addFileExtensionAlias__C5_std_string__C5_std_string, - "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", - "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); - I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, - Properties::NON_VIRTUAL, - __bool__readPluginAliasConfigurationFile__C5_std_string_R1, - "Reads a file that configures extension mappings. ", - "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); - I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__addDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__removeDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__addReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__removeReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForFile__C5_std_string_R1, - "create the platform specific library name associated with file. ", - ""); - I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForExtension__C5_std_string_R1, - "create the platform specific library name associated with file extension. ", - ""); - I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForNodeKit__C5_std_string_R1, - "create the platform specific library name associated with nodekit library name. ", - ""); - I_Method1(bool, loadLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__loadLibrary__C5_std_string_R1, - "find the library in the OSG_LIBRARY_PATH and load it. ", - ""); - I_Method1(bool, closeLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__closeLibrary__C5_std_string_R1, - "close the attached library with specified name. ", - ""); - I_Method0(void, closeAllLibraries, - Properties::NON_VIRTUAL, - __void__closeAllLibraries, - "close all libraries. ", - ""); - I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, - "get a reader writer which handles specified extension. ", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, - "", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, - "", - ""); - I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObject__Input_R1, - "", - ""); - I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Image_P1__readImage__Input_R1, - "", - ""); - I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Drawable_P1__readDrawable__Input_R1, - "", - ""); - I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Uniform_P1__readUniform__Input_R1, - "", - ""); - I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_StateAttribute_P1__readStateAttribute__Input_R1, - "", - ""); - I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Node_P1__readNode__Input_R1, - "", - ""); - I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, - Properties::NON_VIRTUAL, - __bool__writeObject__C5_osg_Object_R1__Output_R1, - "", - ""); - I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setReadFileCallback__ReadFileCallback_P1, - "Set the Registry callback to use in place of the default readFile calls. ", - ""); - I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __ReadFileCallback_P1__getReadFileCallback, - "Get the readFile callback. ", - ""); - I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __C5_ReadFileCallback_P1__getReadFileCallback, - "Get the const readFile callback. ", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setWriteFileCallback__WriteFileCallback_P1, - "Set the Registry callback to use in place of the default writeFile calls. ", - ""); - I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __WriteFileCallback_P1__getWriteFileCallback, - "Get the writeFile callback. ", - ""); - I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __C5_WriteFileCallback_P1__getWriteFileCallback, - "Get the const writeFile callback. ", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method1(void, setCreateNodeFromImage, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setCreateNodeFromImage__bool, - "", - ""); - I_Method0(bool, getCreateNodeFromImage, - Properties::NON_VIRTUAL, - __bool__getCreateNodeFromImage, - "", - ""); - I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, - Properties::NON_VIRTUAL, - __void__setOptions__ReaderWriter_Options_P1, - "", - ""); - I_Method0(osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __C5_ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(void, initFilePathLists, - Properties::NON_VIRTUAL, - __void__initFilePathLists, - "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", - ""); - I_Method0(void, initDataFilePathList, - Properties::NON_VIRTUAL, - __void__initDataFilePathList, - "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", - ""); - I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_FilePathList_R1, - "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setDataFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_std_string_R1, - "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getDataFilePathList, - "get the data file path which is used when search for data files. ", - ""); - I_Method0(const osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getDataFilePathList, - "get the const data file path which is used when search for data files. ", - ""); - I_Method0(void, initLibraryFilePathList, - Properties::NON_VIRTUAL, - __void__initLibraryFilePathList, - "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_FilePathList_R1, - "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_std_string_R1, - "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getLibraryFilePathList, - "get the library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getLibraryFilePathList, - "get the const library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, - Properties::NON_VIRTUAL, - __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, - "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); - I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, - Properties::NON_VIRTUAL, - __void__removeExpiredObjectsInCache__double, - "Removed object in the cache which have a time stamp at or before the specified expiry time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); - I_Method0(void, clearObjectCache, - Properties::NON_VIRTUAL, - __void__clearObjectCache, - "Remove all objects in the cache regardless of having external references or expiry times. ", - ""); - I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, - Properties::NON_VIRTUAL, - __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, - "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", - ""); - I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osg_Object_P1__getFromObjectCache__C5_std_string_R1, - "Get an object from the object cache. ", - ""); - I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, - Properties::NON_VIRTUAL, - __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, - "Add archive to archive cache so that future calls reference this archive. ", - ""); - I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __void__removeFromArchiveCache__C5_std_string_R1, - "Remove archive from cache. ", - ""); - I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, - "Get an archive from the archive cache. ", - ""); - I_Method0(void, clearArchiveCache, - Properties::NON_VIRTUAL, - __void__clearArchiveCache, - "Remove all archives from the archive cache. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::NON_VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __DynamicLibrary_P1__getLibrary__C5_std_string_R1, - "get the attached library with specified name. ", - ""); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, - Properties::NON_VIRTUAL, - __void__setDatabasePager__DatabasePager_P1, - "Set the DatabasePager. ", - ""); - I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getOrCreateDatabasePager, - "Get the DatabasePager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::DatabasePager *, getDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getDatabasePager, - "Get the DatabasePager. ", - "Return 0 if no DatabasePager has been assigned. "); - I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, - Properties::NON_VIRTUAL, - __void__setSharedStateManager__SharedStateManager_P1, - "Set the SharedStateManager. ", - ""); - I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getOrCreateSharedStateManager, - "Get the SharedStateManager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::SharedStateManager *, getSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getSharedStateManager, - "Get the SharedStateManager. ", - "Return 0 if no SharedStateManager has been assigned. "); - I_Method1(void, readCommandLine, IN, osg::ArgumentParser &, commandLine, - Properties::NON_VIRTUAL, - __void__readCommandLine__osg_ArgumentParser_R1, - "read the command line arguments. ", - ""); - I_Method2(void, addFileExtensionAlias, IN, const std::string, mapExt, IN, const std::string, toExt, - Properties::NON_VIRTUAL, - __void__addFileExtensionAlias__C5_std_string__C5_std_string, - "register an .fileextension alias to mapExt toExt, the later should the the extension name of the readerwriter plugin library. ", - "For example to map .tif files to the tiff loader, use addExtAlias(\"tif\",\"tiff\") which will enable .tif to be read by the libdb_tiff readerwriter plugin. "); - I_Method1(bool, readPluginAliasConfigurationFile, IN, const std::string &, file, - Properties::NON_VIRTUAL, - __bool__readPluginAliasConfigurationFile__C5_std_string_R1, - "Reads a file that configures extension mappings. ", - "File is ASCII text and each line contains the parameyters to the addFileExtensionAlias method. Lines can be commented out with an initial '#' character. "); - I_Method1(void, addDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__addDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, removeDotOsgWrapper, IN, osgDB::DotOsgWrapper *, wrapper, - Properties::NON_VIRTUAL, - __void__removeDotOsgWrapper__DotOsgWrapper_P1, - "", - ""); - I_Method1(void, addReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__addReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(void, removeReaderWriter, IN, osgDB::ReaderWriter *, rw, - Properties::NON_VIRTUAL, - __void__removeReaderWriter__ReaderWriter_P1, - "", - ""); - I_Method1(std::string, createLibraryNameForFile, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForFile__C5_std_string_R1, - "create the platform specific library name associated with file. ", - ""); - I_Method1(std::string, createLibraryNameForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForExtension__C5_std_string_R1, - "create the platform specific library name associated with file extension. ", - ""); - I_Method1(std::string, createLibraryNameForNodeKit, IN, const std::string &, name, - Properties::NON_VIRTUAL, - __std_string__createLibraryNameForNodeKit__C5_std_string_R1, - "create the platform specific library name associated with nodekit library name. ", - ""); - I_Method1(bool, loadLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__loadLibrary__C5_std_string_R1, - "find the library in the OSG_LIBRARY_PATH and load it. ", - ""); - I_Method1(bool, closeLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __bool__closeLibrary__C5_std_string_R1, - "close the attached library with specified name. ", - ""); - I_Method0(void, closeAllLibraries, - Properties::NON_VIRTUAL, - __void__closeAllLibraries, - "close all libraries. ", - ""); - I_Method1(osgDB::ReaderWriter *, getReaderWriterForExtension, IN, const std::string &, ext, - Properties::NON_VIRTUAL, - __ReaderWriter_P1__getReaderWriterForExtension__C5_std_string_R1, - "get a reader writer which handles specified extension. ", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osg::Object &, compObj, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_osg_Object_R1__Input_R1, - "", - ""); - I_Method2(osg::Object *, readObjectOfType, IN, const osgDB::basic_type_wrapper &, btw, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObjectOfType__C5_basic_type_wrapper_R1__Input_R1, - "", - ""); - I_Method1(osg::Object *, readObject, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Object_P1__readObject__Input_R1, - "", - ""); - I_Method1(osg::Image *, readImage, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Image_P1__readImage__Input_R1, - "", - ""); - I_Method1(osg::Drawable *, readDrawable, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Drawable_P1__readDrawable__Input_R1, - "", - ""); - I_Method1(osg::Uniform *, readUniform, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Uniform_P1__readUniform__Input_R1, - "", - ""); - I_Method1(osg::StateAttribute *, readStateAttribute, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_StateAttribute_P1__readStateAttribute__Input_R1, - "", - ""); - I_Method1(osg::Node *, readNode, IN, osgDB::Input &, fr, - Properties::NON_VIRTUAL, - __osg_Node_P1__readNode__Input_R1, - "", - ""); - I_Method2(bool, writeObject, IN, const osg::Object &, obj, IN, osgDB::Output &, fw, - Properties::NON_VIRTUAL, - __bool__writeObject__C5_osg_Object_R1__Output_R1, - "", - ""); - I_Method1(void, setReadFileCallback, IN, osgDB::Registry::ReadFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setReadFileCallback__ReadFileCallback_P1, - "Set the Registry callback to use in place of the default readFile calls. ", - ""); - I_Method0(osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __ReadFileCallback_P1__getReadFileCallback, - "Get the readFile callback. ", - ""); - I_Method0(const osgDB::Registry::ReadFileCallback *, getReadFileCallback, - Properties::NON_VIRTUAL, - __C5_ReadFileCallback_P1__getReadFileCallback, - "Get the const readFile callback. ", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchive, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchive__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method4(osgDB::ReaderWriter::ReadResult, openArchiveImplementation, IN, const std::string &, fileName, IN, osgDB::ReaderWriter::ArchiveStatus, status, IN, unsigned int, indexBlockSizeHint, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__openArchiveImplementation__C5_std_string_R1__ReaderWriter_ArchiveStatus__unsigned_int__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObject, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObject__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readObjectImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readObjectImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImage, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImage__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readImageImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readImageImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightField, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightField__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readHeightFieldImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readHeightFieldImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNode, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNode__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method2(osgDB::ReaderWriter::ReadResult, readNodeImplementation, IN, const std::string &, fileName, IN, const osgDB::ReaderWriter::Options *, options, - Properties::NON_VIRTUAL, - __ReaderWriter_ReadResult__readNodeImplementation__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(void, setWriteFileCallback, IN, osgDB::Registry::WriteFileCallback *, cb, - Properties::NON_VIRTUAL, - __void__setWriteFileCallback__WriteFileCallback_P1, - "Set the Registry callback to use in place of the default writeFile calls. ", - ""); - I_Method0(osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __WriteFileCallback_P1__getWriteFileCallback, - "Get the writeFile callback. ", - ""); - I_Method0(const osgDB::Registry::WriteFileCallback *, getWriteFileCallback, - Properties::NON_VIRTUAL, - __C5_WriteFileCallback_P1__getWriteFileCallback, - "Get the const writeFile callback. ", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObject, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObject__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeObjectImplementation, IN, const osg::Object &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeObjectImplementation__C5_osg_Object_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImage, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImage__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeImageImplementation, IN, const osg::Image &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeImageImplementation__C5_osg_Image_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightField, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightField__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeHeightFieldImplementation, IN, const osg::HeightField &, obj, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeHeightFieldImplementation__C5_osg_HeightField_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNode, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNode__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method2(osgDB::ReaderWriter::WriteResult, writeNodeImplementation, IN, const osg::Node &, node, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __ReaderWriter_WriteResult__writeNodeImplementation__C5_osg_Node_R1__C5_std_string_R1, - "", - ""); - I_Method1(void, setCreateNodeFromImage, IN, bool, flag, - Properties::NON_VIRTUAL, - __void__setCreateNodeFromImage__bool, - "", - ""); - I_Method0(bool, getCreateNodeFromImage, - Properties::NON_VIRTUAL, - __bool__getCreateNodeFromImage, - "", - ""); - I_Method1(void, setOptions, IN, osgDB::ReaderWriter::Options *, opt, - Properties::NON_VIRTUAL, - __void__setOptions__ReaderWriter_Options_P1, - "", - ""); - I_Method0(osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(const osgDB::ReaderWriter::Options *, getOptions, - Properties::NON_VIRTUAL, - __C5_ReaderWriter_Options_P1__getOptions, - "", - ""); - I_Method0(void, initFilePathLists, - Properties::NON_VIRTUAL, - __void__initFilePathLists, - "initilize both the Data and Library FilePaths, by default called by the constructor, so it should only be required if you want to force the re-reading of environmental variables. ", - ""); - I_Method0(void, initDataFilePathList, - Properties::NON_VIRTUAL, - __void__initDataFilePathList, - "initilize the Data FilePath by reading the OSG_FILE_PATH environmental variable. ", - ""); - I_Method1(void, setDataFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_FilePathList_R1, - "Set the data file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setDataFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setDataFilePathList__C5_std_string_R1, - "Set the data file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getDataFilePathList, - "get the data file path which is used when search for data files. ", - ""); - I_Method0(const osgDB::FilePathList &, getDataFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getDataFilePathList, - "get the const data file path which is used when search for data files. ", - ""); - I_Method0(void, initLibraryFilePathList, - Properties::NON_VIRTUAL, - __void__initLibraryFilePathList, - "initilize the Library FilePath by reading the OSG_LIBRARY_PATH and the appropriate system environmental variables ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const osgDB::FilePathList &, filepath, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_FilePathList_R1, - "Set the library file path using a list of paths stored in a FilePath, which is used when search for data files. ", - ""); - I_Method1(void, setLibraryFilePathList, IN, const std::string &, paths, - Properties::NON_VIRTUAL, - __void__setLibraryFilePathList__C5_std_string_R1, - "Set the library file path using a single string deliminated either with ';' (Windows) or ':' (All other platforms), which is used when search for data files. ", - ""); - I_Method0(osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __FilePathList_R1__getLibraryFilePathList, - "get the library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method0(const osgDB::FilePathList &, getLibraryFilePathList, - Properties::NON_VIRTUAL, - __C5_FilePathList_R1__getLibraryFilePathList, - "get the const library file path which is used when search for library (dso/dll's) files. ", - ""); - I_Method1(void, updateTimeStampOfObjectsInCacheWithExtenalReferences, IN, double, currentTime, - Properties::NON_VIRTUAL, - __void__updateTimeStampOfObjectsInCacheWithExtenalReferences__double, - "For each object in the cache which has an reference count greater than 1 (and therefore referenced by elsewhere in the application) set the time stamp for that object in the cache to specified time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required. Time value is time in sceonds. "); - I_Method1(void, removeExpiredObjectsInCache, IN, double, expiryTime, - Properties::NON_VIRTUAL, - __void__removeExpiredObjectsInCache__double, - "Removed object in the cache which have a time stamp at or before the specified expiry time. ", - "This would typically be called once per frame by applications which are doing database paging, and need to prune objects that are no longer required, and called after the a called after the call to updateTimeStampOfObjectsInCacheWithExtenalReferences(currentTime). Note, the currentTime is not the expiryTime, one would typically set the expiry time to a fixed amount of time before currentTime, such as expiryTime = currentTime-10.0. Time value is time in sceonds. "); - I_Method0(void, clearObjectCache, - Properties::NON_VIRTUAL, - __void__clearObjectCache, - "Remove all objects in the cache regardless of having external references or expiry times. ", - ""); - I_MethodWithDefaults3(void, addEntryToObjectCache, IN, const std::string &, filename, , IN, osg::Object *, object, , IN, double, timestamp, 0.0, - Properties::NON_VIRTUAL, - __void__addEntryToObjectCache__C5_std_string_R1__osg_Object_P1__double, - "Add a filename,object,timestamp tripple to the Registry::ObjectCache. ", - ""); - I_Method1(osg::Object *, getFromObjectCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osg_Object_P1__getFromObjectCache__C5_std_string_R1, - "Get an object from the object cache. ", - ""); - I_Method2(void, addToArchiveCache, IN, const std::string &, fileName, IN, osgDB::Archive *, archive, - Properties::NON_VIRTUAL, - __void__addToArchiveCache__C5_std_string_R1__osgDB_Archive_P1, - "Add archive to archive cache so that future calls reference this archive. ", - ""); - I_Method1(void, removeFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __void__removeFromArchiveCache__C5_std_string_R1, - "Remove archive from cache. ", - ""); - I_Method1(osgDB::Archive *, getFromArchiveCache, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __osgDB_Archive_P1__getFromArchiveCache__C5_std_string_R1, - "Get an archive from the archive cache. ", - ""); - I_Method0(void, clearArchiveCache, - Properties::NON_VIRTUAL, - __void__clearArchiveCache, - "Remove all archives from the archive cache. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::NON_VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method1(osgDB::DynamicLibrary *, getLibrary, IN, const std::string &, fileName, - Properties::NON_VIRTUAL, - __DynamicLibrary_P1__getLibrary__C5_std_string_R1, - "get the attached library with specified name. ", - ""); - I_Method1(void, setDatabasePager, IN, osgDB::DatabasePager *, databasePager, - Properties::NON_VIRTUAL, - __void__setDatabasePager__DatabasePager_P1, - "Set the DatabasePager. ", - ""); - I_Method0(osgDB::DatabasePager *, getOrCreateDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getOrCreateDatabasePager, - "Get the DatabasePager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::DatabasePager *, getDatabasePager, - Properties::NON_VIRTUAL, - __DatabasePager_P1__getDatabasePager, - "Get the DatabasePager. ", - "Return 0 if no DatabasePager has been assigned. "); - I_Method1(void, setSharedStateManager, IN, osgDB::SharedStateManager *, SharedStateManager, - Properties::NON_VIRTUAL, - __void__setSharedStateManager__SharedStateManager_P1, - "Set the SharedStateManager. ", - ""); - I_Method0(osgDB::SharedStateManager *, getOrCreateSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getOrCreateSharedStateManager, - "Get the SharedStateManager, creating one if one is not already created. ", - ""); - I_Method0(osgDB::SharedStateManager *, getSharedStateManager, - Properties::NON_VIRTUAL, - __SharedStateManager_P1__getSharedStateManager, - "Get the SharedStateManager. ", - "Return 0 if no SharedStateManager has been assigned. "); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, - __Registry_P1__instance__bool_S, - "", - ""); - I_StaticMethodWithDefaults1(osgDB::Registry *, instance, IN, bool, erase, false, - __Registry_P1__instance__bool_S, - "", - ""); - I_SimpleProperty(bool, CreateNodeFromImage, - __bool__getCreateNodeFromImage, - __void__setCreateNodeFromImage__bool); - I_SimpleProperty(const osgDB::FilePathList &, DataFilePathList, - __C5_FilePathList_R1__getDataFilePathList, - __void__setDataFilePathList__C5_FilePathList_R1); - I_SimpleProperty(osgDB::DatabasePager *, DatabasePager, - __DatabasePager_P1__getDatabasePager, - __void__setDatabasePager__DatabasePager_P1); - I_SimpleProperty(const osgDB::FilePathList &, LibraryFilePathList, - __C5_FilePathList_R1__getLibraryFilePathList, - __void__setLibraryFilePathList__C5_FilePathList_R1); - I_SimpleProperty(osgDB::ReaderWriter::Options *, Options, - __ReaderWriter_Options_P1__getOptions, - __void__setOptions__ReaderWriter_Options_P1); - I_SimpleProperty(osgDB::Registry::ReadFileCallback *, ReadFileCallback, - __ReadFileCallback_P1__getReadFileCallback, - __void__setReadFileCallback__ReadFileCallback_P1); - I_SimpleProperty(osgDB::SharedStateManager *, SharedStateManager, - __SharedStateManager_P1__getSharedStateManager, - __void__setSharedStateManager__SharedStateManager_P1); - I_SimpleProperty(osgDB::Registry::WriteFileCallback *, WriteFileCallback, - __WriteFileCallback_P1__getWriteFileCallback, - __void__setWriteFileCallback__WriteFileCallback_P1); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); @@ -1828,90 +141,6 @@ BEGIN_OBJECT_REFLECTOR(osgDB::Registry::ReadFileCallback) ""); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) - I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, - ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, - Properties::PURE_VIRTUAL, - __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, - "", - ""); - I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, - Properties::PURE_VIRTUAL, - __bool__isValid__ReaderWriter_ReadResult_R1, - "", - ""); - I_Method1(bool, isValid, IN, osg::Object *, object, - Properties::PURE_VIRTUAL, - __bool__isValid__osg_Object_P1, - "", - ""); - I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, - ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, - Properties::PURE_VIRTUAL, - __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, - "", - ""); - I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, - Properties::PURE_VIRTUAL, - __bool__isValid__ReaderWriter_ReadResult_R1, - "", - ""); - I_Method1(bool, isValid, IN, osg::Object *, object, - Properties::PURE_VIRTUAL, - __bool__isValid__osg_Object_P1, - "", - ""); - I_PublicMemberProperty(std::string, _filename); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgDB::Registry::ReadFunctor) - I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, - ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, - Properties::PURE_VIRTUAL, - __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, - "", - ""); - I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, - Properties::PURE_VIRTUAL, - __bool__isValid__ReaderWriter_ReadResult_R1, - "", - ""); - I_Method1(bool, isValid, IN, osg::Object *, object, - Properties::PURE_VIRTUAL, - __bool__isValid__osg_Object_P1, - "", - ""); - I_Constructor2(IN, const std::string &, filename, IN, const osgDB::ReaderWriter::Options *, options, - ____ReadFunctor__C5_std_string_R1__C5_ReaderWriter_Options_P1, - "", - ""); - I_Method1(osgDB::ReaderWriter::ReadResult, doRead, IN, osgDB::ReaderWriter &, rw, - Properties::PURE_VIRTUAL, - __ReaderWriter_ReadResult__doRead__ReaderWriter_R1, - "", - ""); - I_Method1(bool, isValid, IN, osgDB::ReaderWriter::ReadResult &, readResult, - Properties::PURE_VIRTUAL, - __bool__isValid__ReaderWriter_ReadResult_R1, - "", - ""); - I_Method1(bool, isValid, IN, osg::Object *, object, - Properties::PURE_VIRTUAL, - __bool__isValid__osg_Object_P1, - "", - ""); - I_PublicMemberProperty(std::string, _filename); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osgDB::Registry::WriteFileCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osgFX/BumpMapping.cpp b/src/osgWrappers/osgFX/BumpMapping.cpp index 1c71e7746..7fd7eede4 100644 --- a/src/osgWrappers/osgFX/BumpMapping.cpp +++ b/src/osgWrappers/osgFX/BumpMapping.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers diff --git a/src/osgWrappers/osgFX/Effect.cpp b/src/osgWrappers/osgFX/Effect.cpp index 6905dc57d..dff28dbc1 100644 --- a/src/osgWrappers/osgFX/Effect.cpp +++ b/src/osgWrappers/osgFX/Effect.cpp @@ -13,8 +13,8 @@ #include #include #include -#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgFX/GNUmakefile b/src/osgWrappers/osgFX/GNUmakefile index b3c3c8ee0..f32ecc6b4 100644 --- a/src/osgWrappers/osgFX/GNUmakefile +++ b/src/osgWrappers/osgFX/GNUmakefile @@ -8,8 +8,8 @@ CXXFILES =\ Effect.cpp\ MultiTextureControl.cpp\ Registry.cpp\ - Scribe.cpp\ SpecularHighlights.cpp\ + Technique.cpp\ LIBS += -losgFX -losg -losgIntrospection -losgUtil -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgFX/Technique.cpp b/src/osgWrappers/osgFX/Technique.cpp index 91b4ee6a1..6c5fc96d8 100644 --- a/src/osgWrappers/osgFX/Technique.cpp +++ b/src/osgWrappers/osgFX/Technique.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -26,6 +26,141 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Technique, + "", + ""); + I_Method0(const char *, techniqueName, + Properties::VIRTUAL, + __C5_char_P1__techniqueName, + "get the name of this Technique ", + ""); + I_Method0(const char *, techniqueDescription, + Properties::VIRTUAL, + __C5_char_P1__techniqueDescription, + "get a brief description of this Technique ", + ""); + I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x, + Properties::VIRTUAL, + __void__getRequiredExtensions__std_vectorT1_std_string__R1, + "collect the GL extension strings which are required for this technique to work properly. ", + "This method is called from the default implementation of validate()."); + I_Method1(bool, validate, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__validate__osg_State_R1, + "tests whether this technique is valid for the current rendering context. ", + "The default behavior is to call getRequiredExtensions() and check for extension availability."); + I_Method0(int, getNumPasses, + Properties::NON_VIRTUAL, + __int__getNumPasses, + "get the number of rendering passes defined in this Technique ", + ""); + I_Method1(osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getPassStateSet__int, + "get the StateSet object associated to the i-th pass ", + ""); + I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getPassStateSet__int, + "get the const StateSet object associated to the i-th pass ", + ""); + I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1__Effect_P1, + "traverse children with multipass if necessary. ", + "By default this method simply calls the protected method traverse_implementation(); you can override it to change the default behavior. Don't call this method directly as it is called by osgFX::Effect"); + I_Constructor0(____Technique, + "", + ""); + I_Method0(const char *, techniqueName, + Properties::VIRTUAL, + __C5_char_P1__techniqueName, + "get the name of this Technique ", + ""); + I_Method0(const char *, techniqueDescription, + Properties::VIRTUAL, + __C5_char_P1__techniqueDescription, + "get a brief description of this Technique ", + ""); + I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x, + Properties::VIRTUAL, + __void__getRequiredExtensions__std_vectorT1_std_string__R1, + "collect the GL extension strings which are required for this technique to work properly. ", + "This method is called from the default implementation of validate()."); + I_Method1(bool, validate, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__validate__osg_State_R1, + "tests whether this technique is valid for the current rendering context. ", + "The default behavior is to call getRequiredExtensions() and check for extension availability."); + I_Method0(int, getNumPasses, + Properties::NON_VIRTUAL, + __int__getNumPasses, + "get the number of rendering passes defined in this Technique ", + ""); + I_Method1(osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getPassStateSet__int, + "get the StateSet object associated to the i-th pass ", + ""); + I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getPassStateSet__int, + "get the const StateSet object associated to the i-th pass ", + ""); + I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1__Effect_P1, + "traverse children with multipass if necessary. ", + "By default this method simply calls the protected method traverse_implementation(); you can override it to change the default behavior. Don't call this method directly as it is called by osgFX::Effect"); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgFX::Technique) + I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Technique, + "", + ""); + I_Method0(const char *, techniqueName, + Properties::VIRTUAL, + __C5_char_P1__techniqueName, + "get the name of this Technique ", + ""); + I_Method0(const char *, techniqueDescription, + Properties::VIRTUAL, + __C5_char_P1__techniqueDescription, + "get a brief description of this Technique ", + ""); + I_Method1(void, getRequiredExtensions, IN, std::vector< std::string > &, x, + Properties::VIRTUAL, + __void__getRequiredExtensions__std_vectorT1_std_string__R1, + "collect the GL extension strings which are required for this technique to work properly. ", + "This method is called from the default implementation of validate()."); + I_Method1(bool, validate, IN, osg::State &, x, + Properties::VIRTUAL, + __bool__validate__osg_State_R1, + "tests whether this technique is valid for the current rendering context. ", + "The default behavior is to call getRequiredExtensions() and check for extension availability."); + I_Method0(int, getNumPasses, + Properties::NON_VIRTUAL, + __int__getNumPasses, + "get the number of rendering passes defined in this Technique ", + ""); + I_Method1(osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __osg_StateSet_P1__getPassStateSet__int, + "get the StateSet object associated to the i-th pass ", + ""); + I_Method1(const osg::StateSet *, getPassStateSet, IN, int, i, + Properties::NON_VIRTUAL, + __C5_osg_StateSet_P1__getPassStateSet__int, + "get the const StateSet object associated to the i-th pass ", + ""); + I_Method2(void, traverse, IN, osg::NodeVisitor &, nv, IN, osgFX::Effect *, fx, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1__Effect_P1, + "traverse children with multipass if necessary. ", + "By default this method simply calls the protected method traverse_implementation(); you can override it to change the default behavior. Don't call this method directly as it is called by osgFX::Effect"); I_Constructor0(____Technique, "", ""); diff --git a/src/osgWrappers/osgGA/EventVisitor.cpp b/src/osgWrappers/osgGA/EventVisitor.cpp index c05702cba..4f7ff3baf 100644 --- a/src/osgWrappers/osgGA/EventVisitor.cpp +++ b/src/osgWrappers/osgGA/EventVisitor.cpp @@ -16,9 +16,9 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/src/osgWrappers/osgGA/GNUmakefile b/src/osgWrappers/osgGA/GNUmakefile index c91324f23..028eb6714 100644 --- a/src/osgWrappers/osgGA/GNUmakefile +++ b/src/osgWrappers/osgGA/GNUmakefile @@ -14,7 +14,7 @@ CXXFILES =\ MatrixManipulator.cpp\ NodeTrackerManipulator.cpp\ StateSetManipulator.cpp\ - UFOManipulator.cpp\ + TerrainManipulator.cpp\ LIBS += -losgGA -losg -losgIntrospection -losgUtil $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgGA/StateSetManipulator.cpp b/src/osgWrappers/osgGA/StateSetManipulator.cpp index 0b2706fc5..c0877eee6 100644 --- a/src/osgWrappers/osgGA/StateSetManipulator.cpp +++ b/src/osgWrappers/osgGA/StateSetManipulator.cpp @@ -11,8 +11,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/src/osgWrappers/osgGA/TerrainManipulator.cpp b/src/osgWrappers/osgGA/TerrainManipulator.cpp index d703fd6d5..5b0815ea1 100644 --- a/src/osgWrappers/osgGA/TerrainManipulator.cpp +++ b/src/osgWrappers/osgGA/TerrainManipulator.cpp @@ -10,13 +10,14 @@ #include #include +#include +#include #include -#include -#include +#include #include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -32,6 +33,7 @@ BEGIN_ENUM_REFLECTOR(osgGA::TerrainManipulator::RotationMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) + I_BaseType(osgGA::MatrixManipulator); I_BaseType(osgGA::MatrixManipulator); I_Constructor0(____TerrainManipulator, "", @@ -39,8 +41,291 @@ BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____TerrainManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_SimpleProperty(const osg::Matrixd &, ByInverseMatrix, + 0, + __void__setByInverseMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(const osg::Matrixd &, ByMatrix, + 0, + __void__setByMatrix__C5_osg_Matrixd_R1); + I_SimpleProperty(osgUtil::SceneView::FusionDistanceMode, FusionDistanceMode, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + 0); + I_SimpleProperty(float, FusionDistanceValue, + __float__getFusionDistanceValue, + 0); + I_SimpleProperty(osg::Matrixd, InverseMatrix, + __osg_Matrixd__getInverseMatrix, + 0); + I_SimpleProperty(osg::Matrixd, Matrix, + __osg_Matrixd__getMatrix, + 0); + I_SimpleProperty(osg::Node *, Node, + __osg_Node_P1__getNode, + __void__setNode__osg_Node_P1); + I_SimpleProperty(osgGA::TerrainManipulator::RotationMode, RotationMode, + __RotationMode__getRotationMode, + __void__setRotationMode__RotationMode); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgGA::TerrainManipulator::RotationMode) + I_EnumLabel(osgGA::TerrainManipulator::ELEVATION_AZIM_ROLL); + I_EnumLabel(osgGA::TerrainManipulator::ELEVATION_AZIM); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgGA::TerrainManipulator) + I_BaseType(osgGA::MatrixManipulator); + I_BaseType(osgGA::MatrixManipulator); + I_Constructor0(____TerrainManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode, + Properties::NON_VIRTUAL, + __void__setRotationMode__RotationMode, + "", + ""); + I_Method0(osgGA::TerrainManipulator::RotationMode, getRotationMode, + Properties::NON_VIRTUAL, + __RotationMode__getRotationMode, + "", + ""); + I_Method1(void, setByMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method1(void, setByInverseMatrix, IN, const osg::Matrixd &, matrix, + Properties::VIRTUAL, + __void__setByInverseMatrix__C5_osg_Matrixd_R1, + "set the position of the matrix manipulator using a 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getMatrix, + "get the position of the manipulator as 4x4 Matrix. ", + ""); + I_Method0(osg::Matrixd, getInverseMatrix, + Properties::VIRTUAL, + __osg_Matrixd__getInverseMatrix, + "get the position of the manipulator as a inverse matrix of the manipulator, typically used as a model view matrix. ", + ""); + I_Method0(osgUtil::SceneView::FusionDistanceMode, getFusionDistanceMode, + Properties::VIRTUAL, + __osgUtil_SceneView_FusionDistanceMode__getFusionDistanceMode, + "Get the FusionDistanceMode. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method0(float, getFusionDistanceValue, + Properties::VIRTUAL, + __float__getFusionDistanceValue, + "Get the FusionDistanceValue. ", + "Used by SceneView for setting up setereo convergence. "); + I_Method1(void, setNode, IN, osg::Node *, x, + Properties::VIRTUAL, + __void__setNode__osg_Node_P1, + "Attach a node to the manipulator. ", + "Automatically detaches previously attached node. setNode(NULL) detaches previously nodes. Is ignored by manipulators which do not require a reference model. "); + I_Method0(const osg::Node *, getNode, + Properties::VIRTUAL, + __C5_osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method0(osg::Node *, getNode, + Properties::VIRTUAL, + __osg_Node_P1__getNode, + "Return node if attached. ", + ""); + I_Method2(void, home, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__home__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Move the camera to the default position. ", + "May be ignored by manipulators if home functionality is not appropriate. "); + I_Method2(void, init, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __void__init__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "Start/restart the manipulator. ", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_GUIEventAdapter_R1__GUIActionAdapter_R1, + "handle events, return true if handled, false otherwise. ", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Constructor0(____TerrainManipulator, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(void, setRotationMode, IN, osgGA::TerrainManipulator::RotationMode, mode, Properties::NON_VIRTUAL, __void__setRotationMode__RotationMode, diff --git a/src/osgWrappers/osgManipulator/Command.cpp b/src/osgWrappers/osgManipulator/Command.cpp index 1d5610aba..52cb20420 100644 --- a/src/osgWrappers/osgManipulator/Command.cpp +++ b/src/osgWrappers/osgManipulator/Command.cpp @@ -11,11 +11,12 @@ #include #include -#include +#include +#include #include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -305,10 +306,14 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgManipulator::MotionCommand) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) I_BaseType(osgManipulator::MotionCommand); I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____Scale2DCommand, + I_Constructor0(____TranslateInLineCommand, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(bool, execute, @@ -326,44 +331,29 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__applyConstraint__C5_Constraint_P1, "", ""); - I_Method1(void, setScale, IN, const osg::Vec2 &, s, + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, Properties::NON_VIRTUAL, - __void__setScale__C5_osg_Vec2_R1, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); - I_Method0(const osg::Vec2 &, getScale, + I_Method0(const osg::Vec3 &, getLineStart, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScale, + __C5_osg_Vec3_R1__getLineStart, "", ""); - I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + I_Method0(const osg::Vec3 &, getLineEnd, Properties::NON_VIRTUAL, - __void__setScaleCenter__C5_osg_Vec2_R1, + __C5_osg_Vec3_R1__getLineEnd, "", ""); - I_Method0(const osg::Vec2 &, getScaleCenter, + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScaleCenter, + __void__setTranslation__C5_osg_Vec3_R1, "", ""); - I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + I_Method0(const osg::Vec3 &, getTranslation, Properties::NON_VIRTUAL, - __void__setReferencePoint__C5_osg_Vec2_R1, - "ReferencePoint is used only for snapping. ", - ""); - I_Method0(const osg::Vec2 &, getReferencePoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getReferencePoint, - "", - ""); - I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, - Properties::NON_VIRTUAL, - __void__setMinScale__C5_osg_Vec2_R1, - "", - ""); - I_Method0(const osg::Vec2 &, getMinScale, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getMinScale, + __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, @@ -371,7 +361,11 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __osg_Matrix__getMotionMatrix, "", ""); - I_Constructor0(____Scale2DCommand, + I_Constructor0(____TranslateInLineCommand, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(bool, execute, @@ -389,44 +383,29 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__applyConstraint__C5_Constraint_P1, "", ""); - I_Method1(void, setScale, IN, const osg::Vec2 &, s, + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, Properties::NON_VIRTUAL, - __void__setScale__C5_osg_Vec2_R1, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); - I_Method0(const osg::Vec2 &, getScale, + I_Method0(const osg::Vec3 &, getLineStart, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScale, + __C5_osg_Vec3_R1__getLineStart, "", ""); - I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + I_Method0(const osg::Vec3 &, getLineEnd, Properties::NON_VIRTUAL, - __void__setScaleCenter__C5_osg_Vec2_R1, + __C5_osg_Vec3_R1__getLineEnd, "", ""); - I_Method0(const osg::Vec2 &, getScaleCenter, + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScaleCenter, + __void__setTranslation__C5_osg_Vec3_R1, "", ""); - I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + I_Method0(const osg::Vec3 &, getTranslation, Properties::NON_VIRTUAL, - __void__setReferencePoint__C5_osg_Vec2_R1, - "ReferencePoint is used only for snapping. ", - ""); - I_Method0(const osg::Vec2 &, getReferencePoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getReferencePoint, - "", - ""); - I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, - Properties::NON_VIRTUAL, - __void__setMinScale__C5_osg_Vec2_R1, - "", - ""); - I_Method0(const osg::Vec2 &, getMinScale, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getMinScale, + __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, @@ -434,27 +413,28 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __osg_Matrix__getMotionMatrix, "", ""); - I_SimpleProperty(const osg::Vec2 &, MinScale, - __C5_osg_Vec2_R1__getMinScale, - __void__setMinScale__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec3 &, LineEnd, + __C5_osg_Vec3_R1__getLineEnd, + 0); + I_SimpleProperty(const osg::Vec3 &, LineStart, + __C5_osg_Vec3_R1__getLineStart, + 0); I_SimpleProperty(osg::Matrix, MotionMatrix, __osg_Matrix__getMotionMatrix, 0); - I_SimpleProperty(const osg::Vec2 &, ReferencePoint, - __C5_osg_Vec2_R1__getReferencePoint, - __void__setReferencePoint__C5_osg_Vec2_R1); - I_SimpleProperty(const osg::Vec2 &, Scale, - __C5_osg_Vec2_R1__getScale, - __void__setScale__C5_osg_Vec2_R1); - I_SimpleProperty(const osg::Vec2 &, ScaleCenter, - __C5_osg_Vec2_R1__getScaleCenter, - __void__setScaleCenter__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec3 &, Translation, + __C5_osg_Vec3_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInLineCommand) I_BaseType(osgManipulator::MotionCommand); I_BaseType(osgManipulator::MotionCommand); - I_Constructor0(____Scale2DCommand, + I_Constructor0(____TranslateInLineCommand, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(bool, execute, @@ -472,44 +452,29 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__applyConstraint__C5_Constraint_P1, "", ""); - I_Method1(void, setScale, IN, const osg::Vec2 &, s, + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, Properties::NON_VIRTUAL, - __void__setScale__C5_osg_Vec2_R1, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); - I_Method0(const osg::Vec2 &, getScale, + I_Method0(const osg::Vec3 &, getLineStart, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScale, + __C5_osg_Vec3_R1__getLineStart, "", ""); - I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + I_Method0(const osg::Vec3 &, getLineEnd, Properties::NON_VIRTUAL, - __void__setScaleCenter__C5_osg_Vec2_R1, + __C5_osg_Vec3_R1__getLineEnd, "", ""); - I_Method0(const osg::Vec2 &, getScaleCenter, + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScaleCenter, + __void__setTranslation__C5_osg_Vec3_R1, "", ""); - I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + I_Method0(const osg::Vec3 &, getTranslation, Properties::NON_VIRTUAL, - __void__setReferencePoint__C5_osg_Vec2_R1, - "ReferencePoint is used only for snapping. ", - ""); - I_Method0(const osg::Vec2 &, getReferencePoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getReferencePoint, - "", - ""); - I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, - Properties::NON_VIRTUAL, - __void__setMinScale__C5_osg_Vec2_R1, - "", - ""); - I_Method0(const osg::Vec2 &, getMinScale, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getMinScale, + __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, @@ -517,7 +482,11 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __osg_Matrix__getMotionMatrix, "", ""); - I_Constructor0(____Scale2DCommand, + I_Constructor0(____TranslateInLineCommand, + "", + ""); + I_Constructor2(IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, + ____TranslateInLineCommand__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); I_Method0(bool, execute, @@ -535,44 +504,29 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __void__applyConstraint__C5_Constraint_P1, "", ""); - I_Method1(void, setScale, IN, const osg::Vec2 &, s, + I_Method2(void, setLine, IN, const osg::Vec3 &, s, IN, const osg::Vec3 &, e, Properties::NON_VIRTUAL, - __void__setScale__C5_osg_Vec2_R1, + __void__setLine__C5_osg_Vec3_R1__C5_osg_Vec3_R1, "", ""); - I_Method0(const osg::Vec2 &, getScale, + I_Method0(const osg::Vec3 &, getLineStart, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScale, + __C5_osg_Vec3_R1__getLineStart, "", ""); - I_Method1(void, setScaleCenter, IN, const osg::Vec2 &, center, + I_Method0(const osg::Vec3 &, getLineEnd, Properties::NON_VIRTUAL, - __void__setScaleCenter__C5_osg_Vec2_R1, + __C5_osg_Vec3_R1__getLineEnd, "", ""); - I_Method0(const osg::Vec2 &, getScaleCenter, + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getScaleCenter, + __void__setTranslation__C5_osg_Vec3_R1, "", ""); - I_Method1(void, setReferencePoint, IN, const osg::Vec2 &, rp, + I_Method0(const osg::Vec3 &, getTranslation, Properties::NON_VIRTUAL, - __void__setReferencePoint__C5_osg_Vec2_R1, - "ReferencePoint is used only for snapping. ", - ""); - I_Method0(const osg::Vec2 &, getReferencePoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getReferencePoint, - "", - ""); - I_Method1(void, setMinScale, IN, const osg::Vec2 &, min, - Properties::NON_VIRTUAL, - __void__setMinScale__C5_osg_Vec2_R1, - "", - ""); - I_Method0(const osg::Vec2 &, getMinScale, - Properties::NON_VIRTUAL, - __C5_osg_Vec2_R1__getMinScale, + __C5_osg_Vec3_R1__getTranslation, "", ""); I_Method0(osg::Matrix, getMotionMatrix, @@ -580,20 +534,283 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::Scale2DCommand) __osg_Matrix__getMotionMatrix, "", ""); - I_SimpleProperty(const osg::Vec2 &, MinScale, - __C5_osg_Vec2_R1__getMinScale, - __void__setMinScale__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec3 &, LineEnd, + __C5_osg_Vec3_R1__getLineEnd, + 0); + I_SimpleProperty(const osg::Vec3 &, LineStart, + __C5_osg_Vec3_R1__getLineStart, + 0); I_SimpleProperty(osg::Matrix, MotionMatrix, __osg_Matrix__getMotionMatrix, 0); - I_SimpleProperty(const osg::Vec2 &, ReferencePoint, - __C5_osg_Vec2_R1__getReferencePoint, - __void__setReferencePoint__C5_osg_Vec2_R1); - I_SimpleProperty(const osg::Vec2 &, Scale, - __C5_osg_Vec2_R1__getScale, - __void__setScale__C5_osg_Vec2_R1); - I_SimpleProperty(const osg::Vec2 &, ScaleCenter, - __C5_osg_Vec2_R1__getScaleCenter, - __void__setScaleCenter__C5_osg_Vec2_R1); + I_SimpleProperty(const osg::Vec3 &, Translation, + __C5_osg_Vec3_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) + I_BaseType(osgManipulator::MotionCommand); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____TranslateInPlaneCommand, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____TranslateInPlaneCommand__C5_osg_Plane_R1, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getTranslation, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec3_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec3 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferencePoint, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); + I_Constructor0(____TranslateInPlaneCommand, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____TranslateInPlaneCommand__C5_osg_Plane_R1, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getTranslation, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec3_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec3 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferencePoint, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Plane &, Plane, + __C5_osg_Plane_R1__getPlane, + __void__setPlane__C5_osg_Plane_R1); + I_SimpleProperty(const osg::Vec3 &, ReferencePoint, + __C5_osg_Vec3_R1__getReferencePoint, + __void__setReferencePoint__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, Translation, + __C5_osg_Vec3_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::TranslateInPlaneCommand) + I_BaseType(osgManipulator::MotionCommand); + I_BaseType(osgManipulator::MotionCommand); + I_Constructor0(____TranslateInPlaneCommand, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____TranslateInPlaneCommand__C5_osg_Plane_R1, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getTranslation, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec3_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec3 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferencePoint, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); + I_Constructor0(____TranslateInPlaneCommand, + "", + ""); + I_Constructor1(IN, const osg::Plane &, plane, + Properties::NON_EXPLICIT, + ____TranslateInPlaneCommand__C5_osg_Plane_R1, + "", + ""); + I_Method0(bool, execute, + Properties::VIRTUAL, + __bool__execute, + "", + ""); + I_Method0(bool, unexecute, + Properties::VIRTUAL, + __bool__unexecute, + "", + ""); + I_Method1(void, applyConstraint, IN, const osgManipulator::Constraint *, x, + Properties::VIRTUAL, + __void__applyConstraint__C5_Constraint_P1, + "", + ""); + I_Method1(void, setPlane, IN, const osg::Plane &, plane, + Properties::NON_VIRTUAL, + __void__setPlane__C5_osg_Plane_R1, + "", + ""); + I_Method0(const osg::Plane &, getPlane, + Properties::NON_VIRTUAL, + __C5_osg_Plane_R1__getPlane, + "", + ""); + I_Method1(void, setTranslation, IN, const osg::Vec3 &, t, + Properties::NON_VIRTUAL, + __void__setTranslation__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getTranslation, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getTranslation, + "", + ""); + I_Method1(void, setReferencePoint, IN, const osg::Vec3 &, rp, + Properties::NON_VIRTUAL, + __void__setReferencePoint__C5_osg_Vec3_R1, + "ReferencePoint is used only for snapping. ", + ""); + I_Method0(const osg::Vec3 &, getReferencePoint, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getReferencePoint, + "", + ""); + I_Method0(osg::Matrix, getMotionMatrix, + Properties::VIRTUAL, + __osg_Matrix__getMotionMatrix, + "", + ""); + I_SimpleProperty(osg::Matrix, MotionMatrix, + __osg_Matrix__getMotionMatrix, + 0); + I_SimpleProperty(const osg::Plane &, Plane, + __C5_osg_Plane_R1__getPlane, + __void__setPlane__C5_osg_Plane_R1); + I_SimpleProperty(const osg::Vec3 &, ReferencePoint, + __C5_osg_Vec3_R1__getReferencePoint, + __void__setReferencePoint__C5_osg_Vec3_R1); + I_SimpleProperty(const osg::Vec3 &, Translation, + __C5_osg_Vec3_R1__getTranslation, + __void__setTranslation__C5_osg_Vec3_R1); END_REFLECTOR diff --git a/src/osgWrappers/osgManipulator/CommandManager.cpp b/src/osgWrappers/osgManipulator/CommandManager.cpp index d897ac32c..831ef65a2 100644 --- a/src/osgWrappers/osgManipulator/CommandManager.cpp +++ b/src/osgWrappers/osgManipulator/CommandManager.cpp @@ -10,11 +10,11 @@ #include #include +#include #include #include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgManipulator/GNUmakefile b/src/osgWrappers/osgManipulator/GNUmakefile index bd389396b..1db251952 100644 --- a/src/osgWrappers/osgManipulator/GNUmakefile +++ b/src/osgWrappers/osgManipulator/GNUmakefile @@ -8,13 +8,10 @@ CXXFILES =\ Constraint.cpp\ Dragger.cpp\ Projector.cpp\ + RotateSphereDragger.cpp\ ScaleAxisDragger.cpp\ - Selection.cpp\ TabBoxDragger.cpp\ - TabPlaneDragger.cpp\ - TrackballDragger.cpp\ Translate1DDragger.cpp\ - Translate2DDragger.cpp\ TranslateAxisDragger.cpp\ TranslatePlaneDragger.cpp\ diff --git a/src/osgWrappers/osgManipulator/Projector.cpp b/src/osgWrappers/osgManipulator/Projector.cpp index f6423a08b..e97c002ac 100644 --- a/src/osgWrappers/osgManipulator/Projector.cpp +++ b/src/osgWrappers/osgManipulator/Projector.cpp @@ -11,8 +11,8 @@ #include #include -#include #include +#include #include #include #include diff --git a/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp b/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp index 693a8ebea..92c01ddeb 100644 --- a/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp +++ b/src/osgWrappers/osgManipulator/RotateSphereDragger.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -26,6 +26,117 @@ BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger) I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____RotateSphereDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_Constructor0(____RotateSphereDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); + I_SimpleProperty(const osg::Vec4 &, Color, + 0, + __void__setColor__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, PickColor, + 0, + __void__setPickColor__C5_osg_Vec4_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgManipulator::RotateSphereDragger) + I_BaseType(osgManipulator::Dragger); + I_BaseType(osgManipulator::Dragger); + I_Constructor0(____RotateSphereDragger, + "", + ""); + I_Method3(bool, handle, IN, const osgManipulator::Dragger::PointerInfo &, x, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, us, + Properties::VIRTUAL, + __bool__handle__C5_PointerInfo_R1__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "Handle pick events on dragger and generate TranslateInLine commands. ", + ""); + I_Method0(void, setupDefaultGeometry, + Properties::NON_VIRTUAL, + __void__setupDefaultGeometry, + "Setup default geometry for dragger. ", + ""); + I_Method1(void, setColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setColor__C5_osg_Vec4_R1, + "Set/Get color for dragger. ", + ""); + I_Method0(const osg::Vec4, getColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getColor, + "", + ""); + I_Method1(void, setPickColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setPickColor__C5_osg_Vec4_R1, + "Set/Get pick color for dragger. ", + "Pick color is color of the dragger when picked. It gives a visual feedback to show that the dragger has been picked."); + I_Method0(const osg::Vec4, getPickColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4__getPickColor, + "", + ""); I_Constructor0(____RotateSphereDragger, "", ""); diff --git a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp index 46b44ad89..6853fa4cd 100644 --- a/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp +++ b/src/osgWrappers/osgManipulator/TranslatePlaneDragger.cpp @@ -13,9 +13,9 @@ #include #include #include +#include #include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers diff --git a/src/osgWrappers/osgParticle/CenteredPlacer.cpp b/src/osgWrappers/osgParticle/CenteredPlacer.cpp index 33262a49d..d73279939 100644 --- a/src/osgWrappers/osgParticle/CenteredPlacer.cpp +++ b/src/osgWrappers/osgParticle/CenteredPlacer.cpp @@ -23,7 +23,7 @@ #undef OUT #endif -BEGIN_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) I_BaseType(osgParticle::Placer); I_BaseType(osgParticle::Placer); I_Constructor0(____CenteredPlacer, @@ -105,7 +105,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) __void__setCenter__C5_osg_Vec3_R1); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::CenteredPlacer) I_BaseType(osgParticle::Placer); I_BaseType(osgParticle::Placer); I_Constructor0(____CenteredPlacer, diff --git a/src/osgWrappers/osgParticle/GNUmakefile b/src/osgWrappers/osgParticle/GNUmakefile index 109f1e4a8..c4ddb0142 100644 --- a/src/osgWrappers/osgParticle/GNUmakefile +++ b/src/osgWrappers/osgParticle/GNUmakefile @@ -23,15 +23,16 @@ CXXFILES =\ MultiSegmentPlacer.cpp\ Operator.cpp\ Particle.cpp\ - ParticleProcessor.cpp\ + ParticleEffect.cpp\ ParticleSystem.cpp\ - ParticleSystemUpdater.cpp\ - PointPlacer.cpp\ + Placer.cpp\ PrecipitationEffect.cpp\ Program.cpp\ RadialShooter.cpp\ - RandomRateCounter.cpp\ + SectorPlacer.cpp\ SegmentPlacer.cpp\ + Shooter.cpp\ + SmokeEffect.cpp\ LIBS += -losgParticle -losg -losgIntrospection -losgUtil -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgParticle/ModularEmitter.cpp b/src/osgWrappers/osgParticle/ModularEmitter.cpp index 2f515fb44..0eade308a 100644 --- a/src/osgWrappers/osgParticle/ModularEmitter.cpp +++ b/src/osgWrappers/osgParticle/ModularEmitter.cpp @@ -13,10 +13,10 @@ #include #include #include -#include -#include #include #include +#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgParticle/ParticleEffect.cpp b/src/osgWrappers/osgParticle/ParticleEffect.cpp index 274ef4087..dcf2a7b60 100644 --- a/src/osgWrappers/osgParticle/ParticleEffect.cpp +++ b/src/osgWrappers/osgParticle/ParticleEffect.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -29,6 +29,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, Properties::EXPLICIT, @@ -42,22 +43,651 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method1(void, setAutomaticSetup, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setAutomaticSetup__bool, + "", + ""); + I_Method0(bool, getAutomaticSetup, + Properties::NON_VIRTUAL, + __bool__getAutomaticSetup, + "", + ""); + I_Method1(void, setUseLocalParticleSystem, IN, bool, local, + Properties::NON_VIRTUAL, + __void__setUseLocalParticleSystem__bool, + "", + ""); + I_Method0(bool, getUseLocalParticleSystem, + Properties::NON_VIRTUAL, + __bool__getUseLocalParticleSystem, + "", + ""); + I_Method1(void, setTextureFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setTextureFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getTextureFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getTextureFileName, + "", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale__float, + "", + ""); + I_Method0(float, getScale, + Properties::NON_VIRTUAL, + __float__getScale, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setStartTime, IN, double, startTime, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "", + ""); + I_Method1(void, setEmitterDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setEmitterDuration__double, + "", + ""); + I_Method0(double, getEmitterDuration, + Properties::NON_VIRTUAL, + __double__getEmitterDuration, + "", + ""); + I_Method1(void, setParticleDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setParticleDuration__double, + "", + ""); + I_Method0(double, getParticleDuration, + Properties::NON_VIRTUAL, + __double__getParticleDuration, + "", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::PURE_VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(void, buildEffect, + Properties::VIRTUAL, + __void__buildEffect, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ParticleEffect__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleEffect__C5_ParticleEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setAutomaticSetup, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setAutomaticSetup__bool, + "", + ""); + I_Method0(bool, getAutomaticSetup, + Properties::NON_VIRTUAL, + __bool__getAutomaticSetup, + "", + ""); + I_Method1(void, setUseLocalParticleSystem, IN, bool, local, + Properties::NON_VIRTUAL, + __void__setUseLocalParticleSystem__bool, + "", + ""); + I_Method0(bool, getUseLocalParticleSystem, + Properties::NON_VIRTUAL, + __bool__getUseLocalParticleSystem, + "", + ""); + I_Method1(void, setTextureFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setTextureFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getTextureFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getTextureFileName, + "", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale__float, + "", + ""); + I_Method0(float, getScale, + Properties::NON_VIRTUAL, + __float__getScale, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setStartTime, IN, double, startTime, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "", + ""); + I_Method1(void, setEmitterDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setEmitterDuration__double, + "", + ""); + I_Method0(double, getEmitterDuration, + Properties::NON_VIRTUAL, + __double__getEmitterDuration, + "", + ""); + I_Method1(void, setParticleDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setParticleDuration__double, + "", + ""); + I_Method0(double, getParticleDuration, + Properties::NON_VIRTUAL, + __double__getParticleDuration, + "", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::PURE_VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(void, buildEffect, + Properties::VIRTUAL, + __void__buildEffect, + "", + ""); + I_SimpleProperty(bool, AutomaticSetup, + __bool__getAutomaticSetup, + __void__setAutomaticSetup__bool); + I_SimpleProperty(const osgParticle::Particle &, DefaultParticleTemplate, + __C5_Particle_R1__getDefaultParticleTemplate, + __void__setDefaultParticleTemplate__C5_Particle_R1); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(double, EmitterDuration, + __double__getEmitterDuration, + __void__setEmitterDuration__double); + I_SimpleProperty(float, Intensity, + __float__getIntensity, + __void__setIntensity__float); + I_SimpleProperty(double, ParticleDuration, + __double__getParticleDuration, + __void__setParticleDuration__double); + I_SimpleProperty(osgParticle::ParticleSystem *, ParticleSystem, + __ParticleSystem_P1__getParticleSystem, + __void__setParticleSystem__ParticleSystem_P1); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); + I_SimpleProperty(float, Scale, + __float__getScale, + __void__setScale__float); + I_SimpleProperty(double, StartTime, + __double__getStartTime, + __void__setStartTime__double); + I_SimpleProperty(const std::string &, TextureFileName, + __C5_std_string_R1__getTextureFileName, + __void__setTextureFileName__C5_std_string_R1); + I_SimpleProperty(bool, UseLocalParticleSystem, + __bool__getUseLocalParticleSystem, + __void__setUseLocalParticleSystem__bool); + I_SimpleProperty(const osg::Vec3 &, Wind, + __C5_osg_Vec3_R1__getWind, + __void__setWind__C5_osg_Vec3_R1); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleEffect) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ParticleEffect__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleEffect__C5_ParticleEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setAutomaticSetup, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setAutomaticSetup__bool, + "", + ""); + I_Method0(bool, getAutomaticSetup, + Properties::NON_VIRTUAL, + __bool__getAutomaticSetup, + "", + ""); + I_Method1(void, setUseLocalParticleSystem, IN, bool, local, + Properties::NON_VIRTUAL, + __void__setUseLocalParticleSystem__bool, + "", + ""); + I_Method0(bool, getUseLocalParticleSystem, + Properties::NON_VIRTUAL, + __bool__getUseLocalParticleSystem, + "", + ""); + I_Method1(void, setTextureFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setTextureFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getTextureFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getTextureFileName, + "", + ""); + I_Method1(void, setDefaultParticleTemplate, IN, const osgParticle::Particle &, p, + Properties::NON_VIRTUAL, + __void__setDefaultParticleTemplate__C5_Particle_R1, + "", + ""); + I_Method0(const osgParticle::Particle &, getDefaultParticleTemplate, + Properties::NON_VIRTUAL, + __C5_Particle_R1__getDefaultParticleTemplate, + "", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, position, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "", + ""); + I_Method1(void, setScale, IN, float, scale, + Properties::NON_VIRTUAL, + __void__setScale__float, + "", + ""); + I_Method0(float, getScale, + Properties::NON_VIRTUAL, + __float__getScale, + "", + ""); + I_Method1(void, setIntensity, IN, float, intensity, + Properties::NON_VIRTUAL, + __void__setIntensity__float, + "", + ""); + I_Method0(float, getIntensity, + Properties::NON_VIRTUAL, + __float__getIntensity, + "", + ""); + I_Method1(void, setStartTime, IN, double, startTime, + Properties::NON_VIRTUAL, + __void__setStartTime__double, + "", + ""); + I_Method0(double, getStartTime, + Properties::NON_VIRTUAL, + __double__getStartTime, + "", + ""); + I_Method1(void, setEmitterDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setEmitterDuration__double, + "", + ""); + I_Method0(double, getEmitterDuration, + Properties::NON_VIRTUAL, + __double__getEmitterDuration, + "", + ""); + I_Method1(void, setParticleDuration, IN, double, duration, + Properties::NON_VIRTUAL, + __void__setParticleDuration__double, + "", + ""); + I_Method0(double, getParticleDuration, + Properties::NON_VIRTUAL, + __double__getParticleDuration, + "", + ""); + I_Method1(void, setWind, IN, const osg::Vec3 &, wind, + Properties::NON_VIRTUAL, + __void__setWind__C5_osg_Vec3_R1, + "", + ""); + I_Method0(const osg::Vec3 &, getWind, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getWind, + "", + ""); + I_Method0(bool, areAllParticlesDead, + Properties::NON_VIRTUAL, + __bool__areAllParticlesDead, + "Get whether all particles are dead. ", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::PURE_VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::PURE_VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_Method1(void, setParticleSystem, IN, osgParticle::ParticleSystem *, ps, + Properties::NON_VIRTUAL, + __void__setParticleSystem__ParticleSystem_P1, + "", + ""); + I_Method0(osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(const osgParticle::ParticleSystem *, getParticleSystem, + Properties::NON_VIRTUAL, + __C5_ParticleSystem_P1__getParticleSystem, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::PURE_VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(void, buildEffect, + Properties::VIRTUAL, + __void__buildEffect, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____ParticleEffect__bool, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::ParticleEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ParticleEffect__C5_ParticleEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setAutomaticSetup, IN, bool, flag, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgParticle/ParticleSystem.cpp b/src/osgWrappers/osgParticle/ParticleSystem.cpp index 889a5e734..abc8c1068 100644 --- a/src/osgWrappers/osgParticle/ParticleSystem.cpp +++ b/src/osgWrappers/osgParticle/ParticleSystem.cpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/osgWrappers/osgParticle/Placer.cpp b/src/osgWrappers/osgParticle/Placer.cpp index 5058d2612..494cc3338 100644 --- a/src/osgWrappers/osgParticle/Placer.cpp +++ b/src/osgWrappers/osgParticle/Placer.cpp @@ -10,9 +10,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include #include @@ -25,6 +25,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Placer, "", @@ -36,13 +37,117 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + "", + ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Must be implemented in descendant classes. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::PURE_VIRTUAL, + __osg_Vec3__getControlPosition, + "Return the control position of particles that placer will generate. Must be implemented in descendant classes. ", + ""); + I_Constructor0(____Placer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Placer__C5_Placer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Must be implemented in descendant classes. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::PURE_VIRTUAL, + __osg_Vec3__getControlPosition, + "Return the control position of particles that placer will generate. Must be implemented in descendant classes. ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Placer) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____Placer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Placer__C5_Placer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Must be implemented in descendant classes. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::PURE_VIRTUAL, + __osg_Vec3__getControlPosition, + "Return the control position of particles that placer will generate. Must be implemented in descendant classes. ", + ""); + I_Constructor0(____Placer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Placer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Placer__C5_Placer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp index 1e11fe9f8..6fd58f8c4 100644 --- a/src/osgWrappers/osgParticle/PrecipitationEffect.cpp +++ b/src/osgWrappers/osgParticle/PrecipitationEffect.cpp @@ -20,22 +20,32 @@ #undef OUT #endif -BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) - I_Constructor0(____DepthMatrixStartTime, +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell) + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, "", ""); - I_PublicMemberProperty(float, depth); - I_PublicMemberProperty(float, startTime); - I_PublicMemberProperty(osg::Matrix, modelview); + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, + "", + ""); + I_PublicMemberProperty(int, i); + I_PublicMemberProperty(int, j); + I_PublicMemberProperty(int, k); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime) - I_Constructor0(____DepthMatrixStartTime, +BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell) + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, "", ""); - I_PublicMemberProperty(float, depth); - I_PublicMemberProperty(float, startTime); - I_PublicMemberProperty(osg::Matrix, modelview); + I_Constructor3(IN, int, in_i, IN, int, in_j, IN, int, in_k, + ____Cell__int__int__int, + "", + ""); + I_PublicMemberProperty(int, i); + I_PublicMemberProperty(int, j); + I_PublicMemberProperty(int, k); END_REFLECTOR BEGIN_VALUE_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable::LessFunctor) diff --git a/src/osgWrappers/osgParticle/SectorPlacer.cpp b/src/osgWrappers/osgParticle/SectorPlacer.cpp index 08e063f19..3af2948a8 100644 --- a/src/osgWrappers/osgParticle/SectorPlacer.cpp +++ b/src/osgWrappers/osgParticle/SectorPlacer.cpp @@ -10,12 +10,12 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) + I_BaseType(osgParticle::CenteredPlacer); I_BaseType(osgParticle::CenteredPlacer); I_Constructor0(____SectorPlacer, "", @@ -67,13 +68,13 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -82,20 +83,250 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + "", + ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(void, place, IN, osgParticle::Particle *, P, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__place__Particle_P1, "Place a particle. Do not call it manually. ", ""); I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_Constructor0(____SectorPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SectorPlacer__C5_SectorPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getRadiusRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getRadiusRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setRadiusRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setRadiusRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for the central angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_SimpleProperty(osg::Vec3, ControlPosition, + __osg_Vec3__getControlPosition, + 0); + I_SimpleProperty(const osgParticle::rangef &, PhiRange, + __C5_rangef_R1__getPhiRange, + __void__setPhiRange__C5_rangef_R1); + I_SimpleProperty(const osgParticle::rangef &, RadiusRange, + __C5_rangef_R1__getRadiusRange, + __void__setRadiusRange__C5_rangef_R1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer) + I_BaseType(osgParticle::CenteredPlacer); + I_BaseType(osgParticle::CenteredPlacer); + I_Constructor0(____SectorPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SectorPlacer__C5_SectorPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getRadiusRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getRadiusRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setRadiusRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setRadiusRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for the central angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, + __osg_Vec3__getControlPosition, + "return the control position ", + ""); + I_Constructor0(____SectorPlacer, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SectorPlacer &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SectorPlacer__C5_SectorPlacer_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const osgParticle::rangef &, getRadiusRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getRadiusRange, + "Get the range of possible values for radius. ", + ""); + I_Method1(void, setRadiusRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setRadiusRange__C5_rangef_R1, + "Set the range of possible values for radius. ", + ""); + I_Method2(void, setRadiusRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setRadiusRange__float__float, + "Set the range of possible values for radius. ", + ""); + I_Method0(const osgParticle::rangef &, getPhiRange, + Properties::NON_VIRTUAL, + __C5_rangef_R1__getPhiRange, + "Get the range of possible values for the central angle. ", + ""); + I_Method1(void, setPhiRange, IN, const osgParticle::rangef &, r, + Properties::NON_VIRTUAL, + __void__setPhiRange__C5_rangef_R1, + "Set the range of possible values for the central angle. ", + ""); + I_Method2(void, setPhiRange, IN, float, r1, IN, float, r2, + Properties::NON_VIRTUAL, + __void__setPhiRange__float__float, + "Set the range of possible values for the central angle. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(void, place, IN, osgParticle::Particle *, P, + Properties::NON_VIRTUAL, + __void__place__Particle_P1, + "Place a particle. Do not call it manually. ", + ""); + I_Method0(osg::Vec3, getControlPosition, + Properties::NON_VIRTUAL, __osg_Vec3__getControlPosition, "return the control position ", ""); diff --git a/src/osgWrappers/osgParticle/Shooter.cpp b/src/osgWrappers/osgParticle/Shooter.cpp index f0b69a567..d3a398d3f 100644 --- a/src/osgWrappers/osgParticle/Shooter.cpp +++ b/src/osgWrappers/osgParticle/Shooter.cpp @@ -10,8 +10,8 @@ #include #include -#include -#include +#include +#include #include #include @@ -24,6 +24,7 @@ #endif BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____Shooter, "", @@ -35,13 +36,99 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + "", + ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__shoot__Particle_P1, + "Shoot a particle. ", + "Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged."); + I_Constructor0(____Shooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shooter__C5_Shooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__shoot__Particle_P1, + "Shoot a particle. ", + "Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged."); +END_REFLECTOR + +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____Shooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shooter__C5_Shooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method1(void, shoot, IN, osgParticle::Particle *, P, + Properties::PURE_VIRTUAL, + __void__shoot__Particle_P1, + "Shoot a particle. ", + "Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged."); + I_Constructor0(____Shooter, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::Shooter &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____Shooter__C5_Shooter_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, diff --git a/src/osgWrappers/osgParticle/SmokeEffect.cpp b/src/osgWrappers/osgParticle/SmokeEffect.cpp index 7e8947264..7ade4bd8a 100644 --- a/src/osgWrappers/osgParticle/SmokeEffect.cpp +++ b/src/osgWrappers/osgParticle/SmokeEffect.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include @@ -27,6 +27,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) + I_BaseType(osgParticle::ParticleEffect); I_BaseType(osgParticle::ParticleEffect); I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, Properties::EXPLICIT, @@ -44,32 +45,262 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "return a clone of a node, with Object* return type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____SmokeEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeEffect__C5_SmokeEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_SimpleProperty(osgParticle::Emitter *, Emitter, + __Emitter_P1__getEmitter, + 0); + I_SimpleProperty(osgParticle::Program *, Program, + __Program_P1__getProgram, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect) + I_BaseType(osgParticle::ParticleEffect); + I_BaseType(osgParticle::ParticleEffect); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____SmokeEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeEffect__C5_SmokeEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, setDefaults, + Properties::VIRTUAL, + __void__setDefaults, + "", + ""); + I_Method0(void, setUpEmitterAndProgram, + Properties::VIRTUAL, + __void__setUpEmitterAndProgram, + "", + ""); + I_Method0(osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __Emitter_P1__getEmitter, + "", + ""); + I_Method0(const osgParticle::Emitter *, getEmitter, + Properties::VIRTUAL, + __C5_Emitter_P1__getEmitter, + "", + ""); + I_Method0(osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __Program_P1__getProgram, + "", + ""); + I_Method0(const osgParticle::Program *, getProgram, + Properties::VIRTUAL, + __C5_Program_P1__getProgram, + "", + ""); + I_ConstructorWithDefaults1(IN, bool, automaticSetup, true, + Properties::EXPLICIT, + ____SmokeEffect__bool, + "", + ""); + I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, , IN, float, scale, 1.0f, IN, float, intensity, 1.0f, + ____SmokeEffect__C5_osg_Vec3_R1__float__float, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgParticle::SmokeEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SmokeEffect__C5_SmokeEffect_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", ""); I_Method0(void, setDefaults, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgProducer/GNUmakefile b/src/osgWrappers/osgProducer/GNUmakefile index 817c1bf04..afb04202c 100644 --- a/src/osgWrappers/osgProducer/GNUmakefile +++ b/src/osgWrappers/osgProducer/GNUmakefile @@ -6,7 +6,7 @@ CXXFILES =\ KeyboardMouseCallback.cpp\ OsgCameraGroup.cpp\ OsgSceneHandler.cpp\ - Viewer.cpp\ + ViewerEventHandler.cpp\ LIBS += -losgProducer -losg -losgIntrospection -losgUtil -losgDB -lProducer -losgGA -losgText $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp index a71abfbbe..3bfcf368b 100644 --- a/src/osgWrappers/osgProducer/OsgCameraGroup.cpp +++ b/src/osgWrappers/osgProducer/OsgCameraGroup.cpp @@ -15,11 +15,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include diff --git a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp index 9c1cfc38b..07e39f8ef 100644 --- a/src/osgWrappers/osgProducer/OsgSceneHandler.cpp +++ b/src/osgWrappers/osgProducer/OsgSceneHandler.cpp @@ -11,9 +11,10 @@ #include #include +#include #include -#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -637,19 +638,3 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler) __void__setSceneView__osgUtil_SceneView_P1); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____Callback, - "", - ""); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgProducer::OsgSceneHandler::Callback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____Callback, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp index d4dbb8534..8e5f42683 100644 --- a/src/osgWrappers/osgProducer/ViewerEventHandler.cpp +++ b/src/osgWrappers/osgProducer/ViewerEventHandler.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include #include @@ -33,6 +34,7 @@ BEGIN_ENUM_REFLECTOR(osgProducer::ViewerEventHandler::FrameStatsMode) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) + I_BaseType(osgGA::GUIEventHandler); I_BaseType(osgGA::GUIEventHandler); I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, Properties::NON_EXPLICIT, @@ -42,7 +44,262 @@ BEGIN_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, Properties::VIRTUAL, __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, - "deprecated, Handle events, return true if handled, false otherwise. ", + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __C5_OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteNodeFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteNodeFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteNodeFileName, + "", + ""); + I_Method1(void, setDisplayHelp, IN, bool, displayHelp, + Properties::NON_VIRTUAL, + __void__setDisplayHelp__bool, + "", + ""); + I_Method0(bool, getDisplayHelp, + Properties::NON_VIRTUAL, + __bool__getDisplayHelp, + "", + ""); + I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode, + Properties::NON_VIRTUAL, + __void__setFrameStatsMode__FrameStatsMode, + "", + ""); + I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode, + Properties::NON_VIRTUAL, + __FrameStatsMode__getFrameStatsMode, + "", + ""); + I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame, + Properties::NON_VIRTUAL, + __void__setWriteImageOnNextFrame__bool, + "", + ""); + I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteImageFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteImageFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteImageFileName, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", + ""); + I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, + Properties::NON_EXPLICIT, + ____ViewerEventHandler__OsgCameraGroup_P1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __C5_OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteNodeFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteNodeFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteNodeFileName, + "", + ""); + I_Method1(void, setDisplayHelp, IN, bool, displayHelp, + Properties::NON_VIRTUAL, + __void__setDisplayHelp__bool, + "", + ""); + I_Method0(bool, getDisplayHelp, + Properties::NON_VIRTUAL, + __bool__getDisplayHelp, + "", + ""); + I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode, + Properties::NON_VIRTUAL, + __void__setFrameStatsMode__FrameStatsMode, + "", + ""); + I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode, + Properties::NON_VIRTUAL, + __FrameStatsMode__getFrameStatsMode, + "", + ""); + I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame, + Properties::NON_VIRTUAL, + __void__setWriteImageOnNextFrame__bool, + "", + ""); + I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteImageFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteImageFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteImageFileName, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", + ""); + I_SimpleProperty(bool, DisplayHelp, + __bool__getDisplayHelp, + __void__setDisplayHelp__bool); + I_SimpleProperty(osgProducer::ViewerEventHandler::FrameStatsMode, FrameStatsMode, + __FrameStatsMode__getFrameStatsMode, + __void__setFrameStatsMode__FrameStatsMode); + I_SimpleProperty(osgProducer::OsgCameraGroup *, OsgCameraGroup, + __OsgCameraGroup_P1__getOsgCameraGroup, + 0); + I_SimpleProperty(const std::string &, WriteImageFileName, + __C5_std_string_R1__getWriteImageFileName, + __void__setWriteImageFileName__C5_std_string_R1); + I_SimpleProperty(bool, WriteImageOnNextFrame, + 0, + __void__setWriteImageOnNextFrame__bool); + I_SimpleProperty(const std::string &, WriteNodeFileName, + __C5_std_string_R1__getWriteNodeFileName, + __void__setWriteNodeFileName__C5_std_string_R1); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgProducer::ViewerEventHandler::FrameStatsMode) + I_EnumLabel(osgProducer::ViewerEventHandler::NO_STATS); + I_EnumLabel(osgProducer::ViewerEventHandler::FRAME_RATE); + I_EnumLabel(osgProducer::ViewerEventHandler::CAMERA_STATS); + I_EnumLabel(osgProducer::ViewerEventHandler::SCENE_STATS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgProducer::ViewerEventHandler) + I_BaseType(osgGA::GUIEventHandler); + I_BaseType(osgGA::GUIEventHandler); + I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, + Properties::NON_EXPLICIT, + ____ViewerEventHandler__OsgCameraGroup_P1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", + ""); + I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, + Properties::VIRTUAL, + __void__getUsage__osg_ApplicationUsage_R1, + "Get the keyboard and mouse usage of this manipulator. ", + ""); + I_Method0(osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method0(const osgProducer::OsgCameraGroup *, getOsgCameraGroup, + Properties::NON_VIRTUAL, + __C5_OsgCameraGroup_P1__getOsgCameraGroup, + "", + ""); + I_Method1(void, setWriteNodeFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteNodeFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteNodeFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteNodeFileName, + "", + ""); + I_Method1(void, setDisplayHelp, IN, bool, displayHelp, + Properties::NON_VIRTUAL, + __void__setDisplayHelp__bool, + "", + ""); + I_Method0(bool, getDisplayHelp, + Properties::NON_VIRTUAL, + __bool__getDisplayHelp, + "", + ""); + I_Method1(void, setFrameStatsMode, IN, osgProducer::ViewerEventHandler::FrameStatsMode, mode, + Properties::NON_VIRTUAL, + __void__setFrameStatsMode__FrameStatsMode, + "", + ""); + I_Method0(osgProducer::ViewerEventHandler::FrameStatsMode, getFrameStatsMode, + Properties::NON_VIRTUAL, + __FrameStatsMode__getFrameStatsMode, + "", + ""); + I_Method1(void, setWriteImageOnNextFrame, IN, bool, writeImageOnNextFrame, + Properties::NON_VIRTUAL, + __void__setWriteImageOnNextFrame__bool, + "", + ""); + I_Method1(void, setWriteImageFileName, IN, const std::string &, filename, + Properties::NON_VIRTUAL, + __void__setWriteImageFileName__C5_std_string_R1, + "", + ""); + I_Method0(const std::string &, getWriteImageFileName, + Properties::NON_VIRTUAL, + __C5_std_string_R1__getWriteImageFileName, + "", + ""); + I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, x, 0, + Properties::VIRTUAL, + __void__releaseGLObjects__osg_State_P1, + "release OpenGL objects in specified graphics context if State object is passed, otherwise release OpenGL objexts for all graphics context if State object pointer NULL. ", + ""); + I_Constructor1(IN, osgProducer::OsgCameraGroup *, cg, + Properties::NON_EXPLICIT, + ____ViewerEventHandler__OsgCameraGroup_P1, + "", + ""); + I_Method2(bool, handle, IN, const osgGA::GUIEventAdapter &, ea, IN, osgGA::GUIActionAdapter &, aa, + Properties::VIRTUAL, + __bool__handle__C5_osgGA_GUIEventAdapter_R1__osgGA_GUIActionAdapter_R1, + "", ""); I_Method1(void, getUsage, IN, osg::ApplicationUsage &, usage, Properties::VIRTUAL, diff --git a/src/osgWrappers/osgShadow/ShadowTechnique.cpp b/src/osgWrappers/osgShadow/ShadowTechnique.cpp index 490497779..32aa48aa3 100644 --- a/src/osgWrappers/osgShadow/ShadowTechnique.cpp +++ b/src/osgWrappers/osgShadow/ShadowTechnique.cpp @@ -10,11 +10,11 @@ #include #include -#include -#include -#include +#include +#include +#include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -26,6 +26,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) + I_BaseType(osg::Object); I_BaseType(osg::Object); I_Constructor0(____ShadowTechnique, "", @@ -37,13 +38,13 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -52,13 +53,222 @@ BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); + "", + ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method0(osgShadow::ShadowedScene *, getShadowedScene, + Properties::NON_VIRTUAL, + __ShadowedScene_P1__getShadowedScene, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "Dirty so that cached data structurese are updated. ", + ""); + I_Constructor0(____ShadowTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTechnique__C5_ShadowTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osgShadow::ShadowedScene *, getShadowedScene, + Properties::NON_VIRTUAL, + __ShadowedScene_P1__getShadowedScene, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "Dirty so that cached data structurese are updated. ", + ""); + I_SimpleProperty(osgShadow::ShadowedScene *, ShadowedScene, + __ShadowedScene_P1__getShadowedScene, + 0); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgShadow::ShadowTechnique) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____ShadowTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTechnique__C5_ShadowTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(osgShadow::ShadowedScene *, getShadowedScene, + Properties::NON_VIRTUAL, + __ShadowedScene_P1__getShadowedScene, + "", + ""); + I_Method0(void, init, + Properties::VIRTUAL, + __void__init, + "initialize the ShadowedScene and local cached data structures. ", + ""); + I_Method1(void, update, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__update__osg_NodeVisitor_R1, + "run the update traversal of the ShadowedScene and update any loca chached data structures. ", + ""); + I_Method1(void, cull, IN, osgUtil::CullVisitor &, cv, + Properties::VIRTUAL, + __void__cull__osgUtil_CullVisitor_R1, + "run the cull traversal of the ShadowedScene and set up the rendering for this ShadowTechnique. ", + ""); + I_Method0(void, cleanSceneGraph, + Properties::VIRTUAL, + __void__cleanSceneGraph, + "Clean scene graph from any shadow technique specific nodes, state and drawables. ", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method0(void, dirty, + Properties::VIRTUAL, + __void__dirty, + "Dirty so that cached data structurese are updated. ", + ""); + I_Constructor0(____ShadowTechnique, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgShadow::ShadowTechnique &, es, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ShadowTechnique__C5_ShadowTechnique_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method0(osgShadow::ShadowedScene *, getShadowedScene, Properties::NON_VIRTUAL, __ShadowedScene_P1__getShadowedScene, diff --git a/src/osgWrappers/osgSim/BlinkSequence.cpp b/src/osgWrappers/osgSim/BlinkSequence.cpp index c15ca0421..f576d07e7 100644 --- a/src/osgWrappers/osgSim/BlinkSequence.cpp +++ b/src/osgWrappers/osgSim/BlinkSequence.cpp @@ -13,7 +13,6 @@ #include #include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -420,3 +419,163 @@ BEGIN_OBJECT_REFLECTOR(osgSim::BlinkSequence) __void__setSequenceGroup__SequenceGroup_P1); END_REFLECTOR +BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, double, baseTime, + Properties::NON_EXPLICIT, + ____SequenceGroup__double, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, double, baseTime, + Properties::NON_EXPLICIT, + ____SequenceGroup__double, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_PublicMemberProperty(double, _baseTime); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::SequenceGroup) + I_BaseType(osg::Object); + I_BaseType(osg::Object); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, double, baseTime, + Properties::NON_EXPLICIT, + ____SequenceGroup__double, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Constructor0(____SequenceGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::SequenceGroup &, bs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____SequenceGroup__C5_SequenceGroup_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Constructor1(IN, double, baseTime, + Properties::NON_EXPLICIT, + ____SequenceGroup__double, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_PublicMemberProperty(double, _baseTime); +END_REFLECTOR + diff --git a/src/osgWrappers/osgSim/GNUmakefile b/src/osgWrappers/osgSim/GNUmakefile index 2d7934a3d..7c2ac5da9 100644 --- a/src/osgWrappers/osgSim/GNUmakefile +++ b/src/osgWrappers/osgSim/GNUmakefile @@ -21,7 +21,7 @@ CXXFILES =\ ScalarBar.cpp\ ScalarsToColors.cpp\ Sector.cpp\ - SphereSegment.cpp\ + VisibilityGroup.cpp\ LIBS += -losgSim -losg -losgIntrospection -losgUtil -losgText -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgSim/ImpostorSprite.cpp b/src/osgWrappers/osgSim/ImpostorSprite.cpp index d11cfdc3a..8991e4ea1 100644 --- a/src/osgWrappers/osgSim/ImpostorSprite.cpp +++ b/src/osgWrappers/osgSim/ImpostorSprite.cpp @@ -14,14 +14,14 @@ #include #include #include -#include +#include #include #include #include #include #include #include -#include +#include #include #include diff --git a/src/osgWrappers/osgSim/LightPoint.cpp b/src/osgWrappers/osgSim/LightPoint.cpp index 2f7192d2f..ca723c541 100644 --- a/src/osgWrappers/osgSim/LightPoint.cpp +++ b/src/osgWrappers/osgSim/LightPoint.cpp @@ -13,9 +13,9 @@ #include #include #include +#include #include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp index 19c740676..9f7dc0b1d 100644 --- a/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp +++ b/src/osgWrappers/osgSim/OpenFlightOptimizer.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -138,44 +139,64 @@ BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MakeLitVisitor) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) +BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); - I_Constructor0(____TessellateVisitor, + I_Constructor0(____MergeGeodesVisitor, "default to traversing all children. ", ""); - I_Method1(void, apply, IN, osg::Geode &, geode, + I_Method1(void, apply, IN, osg::Group &, group, Properties::VIRTUAL, - __void__apply__osg_Geode_R1, + __void__apply__osg_Group_R1, "", ""); - I_Constructor0(____TessellateVisitor, + I_Method1(void, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, + __void__mergeGeodes__osg_Group_R1, + "", + ""); + I_Constructor0(____MergeGeodesVisitor, "default to traversing all children. ", ""); - I_Method1(void, apply, IN, osg::Geode &, geode, + I_Method1(void, apply, IN, osg::Group &, group, Properties::VIRTUAL, - __void__apply__osg_Geode_R1, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, + __void__mergeGeodes__osg_Group_R1, "", ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::TessellateVisitor) +BEGIN_OBJECT_REFLECTOR(osgFlightUtil::Optimizer::MergeGeodesVisitor) I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); - I_Constructor0(____TessellateVisitor, + I_Constructor0(____MergeGeodesVisitor, "default to traversing all children. ", ""); - I_Method1(void, apply, IN, osg::Geode &, geode, + I_Method1(void, apply, IN, osg::Group &, group, Properties::VIRTUAL, - __void__apply__osg_Geode_R1, + __void__apply__osg_Group_R1, "", ""); - I_Constructor0(____TessellateVisitor, + I_Method1(void, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, + __void__mergeGeodes__osg_Group_R1, + "", + ""); + I_Constructor0(____MergeGeodesVisitor, "default to traversing all children. ", ""); - I_Method1(void, apply, IN, osg::Geode &, geode, + I_Method1(void, apply, IN, osg::Group &, group, Properties::VIRTUAL, - __void__apply__osg_Geode_R1, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, mergeGeodes, IN, osg::Group &, group, + Properties::NON_VIRTUAL, + __void__mergeGeodes__osg_Group_R1, "", ""); END_REFLECTOR diff --git a/src/osgWrappers/osgSim/ScalarBar.cpp b/src/osgWrappers/osgSim/ScalarBar.cpp index b8a94e6e2..09a2a31ae 100644 --- a/src/osgWrappers/osgSim/ScalarBar.cpp +++ b/src/osgWrappers/osgSim/ScalarBar.cpp @@ -10,7 +10,13 @@ #include #include +#include +#include +#include +#include +#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -20,6 +26,670 @@ #undef OUT #endif +BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) + I_EnumLabel(osgSim::ScalarBar::HORIZONTAL); + I_EnumLabel(osgSim::ScalarBar::VERTICAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) + I_BaseType(osg::Geode); + I_BaseType(osg::Geode); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter"); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNumColors, IN, int, numColors, + Properties::NON_VIRTUAL, + __void__setNumColors__int, + "Set the number of distinct colours on the ScalarBar. ", + ""); + I_Method0(int, getNumColors, + Properties::NON_VIRTUAL, + __int__getNumColors, + "Get the number of distinct colours on the ScalarBar. ", + ""); + I_Method1(void, setNumLabels, IN, int, numLabels, + Properties::NON_VIRTUAL, + __void__setNumLabels__int, + "Set the number of labels to display along the ScalarBar. ", + "There will be one label at each end point, and evenly distributed labels in between. "); + I_Method0(int, getNumLabels, + Properties::NON_VIRTUAL, + __int__getNumLabels, + "Get the number of labels displayed along the ScalarBar. ", + ""); + I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + Properties::NON_VIRTUAL, + __void__setScalarsToColors__ScalarsToColors_P1, + "Set the ScalarsToColors mapping object for the ScalarBar. ", + ""); + I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + Properties::NON_VIRTUAL, + __C5_ScalarsToColors_P1__getScalarsToColors, + "Get the ScalarsToColors mapping object from the ScalarBar. ", + ""); + I_Method1(void, setTitle, IN, const std::string &, title, + Properties::NON_VIRTUAL, + __void__setTitle__C5_std_string_R1, + "Set the title for the ScalarBar, set \"\" for no title. ", + ""); + I_Method0(std::string, getTitle, + Properties::NON_VIRTUAL, + __std_string__getTitle, + "Get the title for the ScalarBar. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of scalar bar's lower left corner. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position of scalar bar. ", + ""); + I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, + __void__setWidth__float, + "Set the width of the scalar bar. ", + ""); + I_Method0(float, getWidth, + Properties::NON_VIRTUAL, + __float__getWidth, + "Get the width of the scalar bar. ", + ""); + I_Method1(void, setAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, + __void__setAspectRatio__float, + "Set the aspect ration (y/x) for the displayed bar. ", + "Bear in mind you may want to change this if you change the orientation. "); + I_Method0(float, getAspectRatio, + Properties::NON_VIRTUAL, + __float__getAspectRatio, + "Get the aspect ration (y/x) for the displayed bar. ", + ""); + I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + Properties::NON_VIRTUAL, + __void__setOrientation__ScalarBar_Orientation, + "Set the orientation of the ScalarBar. ", + "Orientation "); + I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + Properties::NON_VIRTUAL, + __ScalarBar_Orientation__getOrientation, + "Get the orientation of the ScalarBar. ", + "Orientation "); + I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + Properties::NON_VIRTUAL, + __void__setScalarPrinter__ScalarPrinter_P1, + "Set a ScalarPrinter object for the ScalarBar. ", + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + Properties::NON_VIRTUAL, + __C5_ScalarPrinter_P1__getScalarPrinter, + "Get the ScalarPrinter object. ", + ""); + I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + Properties::NON_VIRTUAL, + __void__setTextProperties__C5_TextProperties_R1, + "Set the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + Properties::NON_VIRTUAL, + __C5_TextProperties_R1__getTextProperties, + "Get the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "force update the drawables used to render the scalar bar. ", + ""); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter"); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNumColors, IN, int, numColors, + Properties::NON_VIRTUAL, + __void__setNumColors__int, + "Set the number of distinct colours on the ScalarBar. ", + ""); + I_Method0(int, getNumColors, + Properties::NON_VIRTUAL, + __int__getNumColors, + "Get the number of distinct colours on the ScalarBar. ", + ""); + I_Method1(void, setNumLabels, IN, int, numLabels, + Properties::NON_VIRTUAL, + __void__setNumLabels__int, + "Set the number of labels to display along the ScalarBar. ", + "There will be one label at each end point, and evenly distributed labels in between. "); + I_Method0(int, getNumLabels, + Properties::NON_VIRTUAL, + __int__getNumLabels, + "Get the number of labels displayed along the ScalarBar. ", + ""); + I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + Properties::NON_VIRTUAL, + __void__setScalarsToColors__ScalarsToColors_P1, + "Set the ScalarsToColors mapping object for the ScalarBar. ", + ""); + I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + Properties::NON_VIRTUAL, + __C5_ScalarsToColors_P1__getScalarsToColors, + "Get the ScalarsToColors mapping object from the ScalarBar. ", + ""); + I_Method1(void, setTitle, IN, const std::string &, title, + Properties::NON_VIRTUAL, + __void__setTitle__C5_std_string_R1, + "Set the title for the ScalarBar, set \"\" for no title. ", + ""); + I_Method0(std::string, getTitle, + Properties::NON_VIRTUAL, + __std_string__getTitle, + "Get the title for the ScalarBar. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of scalar bar's lower left corner. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position of scalar bar. ", + ""); + I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, + __void__setWidth__float, + "Set the width of the scalar bar. ", + ""); + I_Method0(float, getWidth, + Properties::NON_VIRTUAL, + __float__getWidth, + "Get the width of the scalar bar. ", + ""); + I_Method1(void, setAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, + __void__setAspectRatio__float, + "Set the aspect ration (y/x) for the displayed bar. ", + "Bear in mind you may want to change this if you change the orientation. "); + I_Method0(float, getAspectRatio, + Properties::NON_VIRTUAL, + __float__getAspectRatio, + "Get the aspect ration (y/x) for the displayed bar. ", + ""); + I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + Properties::NON_VIRTUAL, + __void__setOrientation__ScalarBar_Orientation, + "Set the orientation of the ScalarBar. ", + "Orientation "); + I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + Properties::NON_VIRTUAL, + __ScalarBar_Orientation__getOrientation, + "Get the orientation of the ScalarBar. ", + "Orientation "); + I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + Properties::NON_VIRTUAL, + __void__setScalarPrinter__ScalarPrinter_P1, + "Set a ScalarPrinter object for the ScalarBar. ", + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + Properties::NON_VIRTUAL, + __C5_ScalarPrinter_P1__getScalarPrinter, + "Get the ScalarPrinter object. ", + ""); + I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + Properties::NON_VIRTUAL, + __void__setTextProperties__C5_TextProperties_R1, + "Set the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + Properties::NON_VIRTUAL, + __C5_TextProperties_R1__getTextProperties, + "Get the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "force update the drawables used to render the scalar bar. ", + ""); + I_SimpleProperty(float, AspectRatio, + __float__getAspectRatio, + __void__setAspectRatio__float); + I_SimpleProperty(int, NumColors, + 0, + __void__setNumColors__int); + I_SimpleProperty(int, NumLabels, + 0, + __void__setNumLabels__int); + I_SimpleProperty(osgSim::ScalarBar::Orientation, Orientation, + __ScalarBar_Orientation__getOrientation, + __void__setOrientation__ScalarBar_Orientation); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter, + 0, + __void__setScalarPrinter__ScalarPrinter_P1); + I_SimpleProperty(osgSim::ScalarsToColors *, ScalarsToColors, + 0, + __void__setScalarsToColors__ScalarsToColors_P1); + I_SimpleProperty(const osgSim::ScalarBar::TextProperties &, TextProperties, + __C5_TextProperties_R1__getTextProperties, + __void__setTextProperties__C5_TextProperties_R1); + I_SimpleProperty(std::string, Title, + __std_string__getTitle, + __void__setTitle__C5_std_string_R1); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgSim::ScalarBar::Orientation) + I_EnumLabel(osgSim::ScalarBar::HORIZONTAL); + I_EnumLabel(osgSim::ScalarBar::VERTICAL); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar) + I_BaseType(osg::Geode); + I_BaseType(osg::Geode); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter"); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNumColors, IN, int, numColors, + Properties::NON_VIRTUAL, + __void__setNumColors__int, + "Set the number of distinct colours on the ScalarBar. ", + ""); + I_Method0(int, getNumColors, + Properties::NON_VIRTUAL, + __int__getNumColors, + "Get the number of distinct colours on the ScalarBar. ", + ""); + I_Method1(void, setNumLabels, IN, int, numLabels, + Properties::NON_VIRTUAL, + __void__setNumLabels__int, + "Set the number of labels to display along the ScalarBar. ", + "There will be one label at each end point, and evenly distributed labels in between. "); + I_Method0(int, getNumLabels, + Properties::NON_VIRTUAL, + __int__getNumLabels, + "Get the number of labels displayed along the ScalarBar. ", + ""); + I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + Properties::NON_VIRTUAL, + __void__setScalarsToColors__ScalarsToColors_P1, + "Set the ScalarsToColors mapping object for the ScalarBar. ", + ""); + I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + Properties::NON_VIRTUAL, + __C5_ScalarsToColors_P1__getScalarsToColors, + "Get the ScalarsToColors mapping object from the ScalarBar. ", + ""); + I_Method1(void, setTitle, IN, const std::string &, title, + Properties::NON_VIRTUAL, + __void__setTitle__C5_std_string_R1, + "Set the title for the ScalarBar, set \"\" for no title. ", + ""); + I_Method0(std::string, getTitle, + Properties::NON_VIRTUAL, + __std_string__getTitle, + "Get the title for the ScalarBar. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of scalar bar's lower left corner. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position of scalar bar. ", + ""); + I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, + __void__setWidth__float, + "Set the width of the scalar bar. ", + ""); + I_Method0(float, getWidth, + Properties::NON_VIRTUAL, + __float__getWidth, + "Get the width of the scalar bar. ", + ""); + I_Method1(void, setAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, + __void__setAspectRatio__float, + "Set the aspect ration (y/x) for the displayed bar. ", + "Bear in mind you may want to change this if you change the orientation. "); + I_Method0(float, getAspectRatio, + Properties::NON_VIRTUAL, + __float__getAspectRatio, + "Get the aspect ration (y/x) for the displayed bar. ", + ""); + I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + Properties::NON_VIRTUAL, + __void__setOrientation__ScalarBar_Orientation, + "Set the orientation of the ScalarBar. ", + "Orientation "); + I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + Properties::NON_VIRTUAL, + __ScalarBar_Orientation__getOrientation, + "Get the orientation of the ScalarBar. ", + "Orientation "); + I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + Properties::NON_VIRTUAL, + __void__setScalarPrinter__ScalarPrinter_P1, + "Set a ScalarPrinter object for the ScalarBar. ", + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + Properties::NON_VIRTUAL, + __C5_ScalarPrinter_P1__getScalarPrinter, + "Get the ScalarPrinter object. ", + ""); + I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + Properties::NON_VIRTUAL, + __void__setTextProperties__C5_TextProperties_R1, + "Set the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + Properties::NON_VIRTUAL, + __C5_TextProperties_R1__getTextProperties, + "Get the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "force update the drawables used to render the scalar bar. ", + ""); + I_Constructor0(____ScalarBar, + "Default constructor. ", + ""); + I_ConstructorWithDefaults7(IN, int, numColors, , IN, int, numLabels, , IN, osgSim::ScalarsToColors *, stc, , IN, const std::string &, title, , IN, osgSim::ScalarBar::Orientation, orientation, osgSim::ScalarBar::HORIZONTAL, IN, float, aspectRatio, 0.25, IN, osgSim::ScalarBar::ScalarPrinter *, sp, new osgSim::ScalarBar::ScalarPrinter, + ____ScalarBar__int__int__ScalarsToColors_P1__C5_std_string_R1__Orientation__float__ScalarPrinter_P1, + "Construct a ScalarBar with the supplied parameters. ", + " param numColors Specify the number of colors in the scalar bar. Color interpolation occurs where necessary. numLabels Specify the number of labels in the scalar bar. stc The ScalarsToColors defining the range of scalars and the colors they map to. title The title to be used when displaying the ScalarBar. Specify \"\" for no title. orientation The orientation of the ScalarBar. param aspectRatio The aspect ration (y/x) for the displayed bar. Bear in mind you may want to change this if you change the orientation. sp A ScalarPrinter object for the ScalarBar. For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish. see Orientation. see ScalarPrinter"); + I_Constructor2(IN, const osgSim::ScalarBar &, rhs, IN, const osg::CopyOp &, co, + ____ScalarBar__C5_ScalarBar_R1__C5_osg_CopyOp_R1, + "Copy constructor. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setNumColors, IN, int, numColors, + Properties::NON_VIRTUAL, + __void__setNumColors__int, + "Set the number of distinct colours on the ScalarBar. ", + ""); + I_Method0(int, getNumColors, + Properties::NON_VIRTUAL, + __int__getNumColors, + "Get the number of distinct colours on the ScalarBar. ", + ""); + I_Method1(void, setNumLabels, IN, int, numLabels, + Properties::NON_VIRTUAL, + __void__setNumLabels__int, + "Set the number of labels to display along the ScalarBar. ", + "There will be one label at each end point, and evenly distributed labels in between. "); + I_Method0(int, getNumLabels, + Properties::NON_VIRTUAL, + __int__getNumLabels, + "Get the number of labels displayed along the ScalarBar. ", + ""); + I_Method1(void, setScalarsToColors, IN, osgSim::ScalarsToColors *, stc, + Properties::NON_VIRTUAL, + __void__setScalarsToColors__ScalarsToColors_P1, + "Set the ScalarsToColors mapping object for the ScalarBar. ", + ""); + I_Method0(const osgSim::ScalarsToColors *, getScalarsToColors, + Properties::NON_VIRTUAL, + __C5_ScalarsToColors_P1__getScalarsToColors, + "Get the ScalarsToColors mapping object from the ScalarBar. ", + ""); + I_Method1(void, setTitle, IN, const std::string &, title, + Properties::NON_VIRTUAL, + __void__setTitle__C5_std_string_R1, + "Set the title for the ScalarBar, set \"\" for no title. ", + ""); + I_Method0(std::string, getTitle, + Properties::NON_VIRTUAL, + __std_string__getTitle, + "Get the title for the ScalarBar. ", + ""); + I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, + Properties::NON_VIRTUAL, + __void__setPosition__C5_osg_Vec3_R1, + "Set the position of scalar bar's lower left corner. ", + ""); + I_Method0(const osg::Vec3 &, getPosition, + Properties::NON_VIRTUAL, + __C5_osg_Vec3_R1__getPosition, + "Get the position of scalar bar. ", + ""); + I_Method1(void, setWidth, IN, float, width, + Properties::NON_VIRTUAL, + __void__setWidth__float, + "Set the width of the scalar bar. ", + ""); + I_Method0(float, getWidth, + Properties::NON_VIRTUAL, + __float__getWidth, + "Get the width of the scalar bar. ", + ""); + I_Method1(void, setAspectRatio, IN, float, aspectRatio, + Properties::NON_VIRTUAL, + __void__setAspectRatio__float, + "Set the aspect ration (y/x) for the displayed bar. ", + "Bear in mind you may want to change this if you change the orientation. "); + I_Method0(float, getAspectRatio, + Properties::NON_VIRTUAL, + __float__getAspectRatio, + "Get the aspect ration (y/x) for the displayed bar. ", + ""); + I_Method1(void, setOrientation, IN, osgSim::ScalarBar::Orientation, orientation, + Properties::NON_VIRTUAL, + __void__setOrientation__ScalarBar_Orientation, + "Set the orientation of the ScalarBar. ", + "Orientation "); + I_Method0(osgSim::ScalarBar::Orientation, getOrientation, + Properties::NON_VIRTUAL, + __ScalarBar_Orientation__getOrientation, + "Get the orientation of the ScalarBar. ", + "Orientation "); + I_Method1(void, setScalarPrinter, IN, osgSim::ScalarBar::ScalarPrinter *, sp, + Properties::NON_VIRTUAL, + __void__setScalarPrinter__ScalarPrinter_P1, + "Set a ScalarPrinter object for the ScalarBar. ", + "For every displayed ScalarBar label, the scalar value will be passed to the ScalarPrinter object to turn it into a string. Users may override the default ScalarPrinter object to map scalars to whatever strings they wish.ScalarPrinter "); + I_Method0(const osgSim::ScalarBar::ScalarPrinter *, getScalarPrinter, + Properties::NON_VIRTUAL, + __C5_ScalarPrinter_P1__getScalarPrinter, + "Get the ScalarPrinter object. ", + ""); + I_Method1(void, setTextProperties, IN, const osgSim::ScalarBar::TextProperties &, tp, + Properties::NON_VIRTUAL, + __void__setTextProperties__C5_TextProperties_R1, + "Set the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(const osgSim::ScalarBar::TextProperties &, getTextProperties, + Properties::NON_VIRTUAL, + __C5_TextProperties_R1__getTextProperties, + "Get the TextProperties for the labels & title. ", + "TextProperties "); + I_Method0(void, update, + Properties::NON_VIRTUAL, + __void__update, + "force update the drawables used to render the scalar bar. ", + ""); + I_SimpleProperty(float, AspectRatio, + __float__getAspectRatio, + __void__setAspectRatio__float); + I_SimpleProperty(int, NumColors, + 0, + __void__setNumColors__int); + I_SimpleProperty(int, NumLabels, + 0, + __void__setNumLabels__int); + I_SimpleProperty(osgSim::ScalarBar::Orientation, Orientation, + __ScalarBar_Orientation__getOrientation, + __void__setOrientation__ScalarBar_Orientation); + I_SimpleProperty(const osg::Vec3 &, Position, + __C5_osg_Vec3_R1__getPosition, + __void__setPosition__C5_osg_Vec3_R1); + I_SimpleProperty(osgSim::ScalarBar::ScalarPrinter *, ScalarPrinter, + 0, + __void__setScalarPrinter__ScalarPrinter_P1); + I_SimpleProperty(osgSim::ScalarsToColors *, ScalarsToColors, + 0, + __void__setScalarsToColors__ScalarsToColors_P1); + I_SimpleProperty(const osgSim::ScalarBar::TextProperties &, TextProperties, + __C5_TextProperties_R1__getTextProperties, + __void__setTextProperties__C5_TextProperties_R1); + I_SimpleProperty(std::string, Title, + __std_string__getTitle, + __void__setTitle__C5_std_string_R1); + I_SimpleProperty(float, Width, + __float__getWidth, + __void__setWidth__float); +END_REFLECTOR + BEGIN_OBJECT_REFLECTOR(osgSim::ScalarBar::ScalarPrinter) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); diff --git a/src/osgWrappers/osgSim/Sector.cpp b/src/osgWrappers/osgSim/Sector.cpp index 8c6890040..b46fa5222 100644 --- a/src/osgWrappers/osgSim/Sector.cpp +++ b/src/osgWrappers/osgSim/Sector.cpp @@ -1391,101 +1391,3 @@ BEGIN_OBJECT_REFLECTOR(osgSim::ElevationSector) ""); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) - I_BaseType(osg::Object); - I_BaseType(osg::Object); - I_Constructor0(____Sector, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Constructor0(____Sector, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgSim::Sector) - I_BaseType(osg::Object); - I_BaseType(osg::Object); - I_Constructor0(____Sector, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Constructor0(____Sector, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgSim::Sector &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Sector__C5_Sector_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osgSim/VisibilityGroup.cpp b/src/osgWrappers/osgSim/VisibilityGroup.cpp index 4494047a9..cb844b446 100644 --- a/src/osgWrappers/osgSim/VisibilityGroup.cpp +++ b/src/osgWrappers/osgSim/VisibilityGroup.cpp @@ -10,10 +10,10 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +25,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) + I_BaseType(osg::Group); I_BaseType(osg::Group); I_Constructor0(____VisibilityGroup, "", @@ -36,37 +37,282 @@ BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "clone an object of the same type as the node. ", + "", ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "return a clone of a node, with Object* return type. ", + "", ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, - "return true if this and obj are of the same kind of object. ", + "", ""); I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the node's class type. ", + "", ""); I_Method0(const char *, libraryName, Properties::VIRTUAL, __C5_char_P1__libraryName, - "return the name of the node's library. ", + "", ""); I_Method1(void, accept, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__accept__osg_NodeVisitor_R1, - "Visitor Pattern : calls the apply method of a NodeVisitor with this node's type. ", + "", ""); I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, Properties::VIRTUAL, __void__traverse__osg_NodeVisitor_R1, - "Traverse downwards : calls children's accept method with NodeVisitor. ", + "", + ""); + I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setVisibilityVolume__osg_Node_P1, + "Set the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __osg_Node_P1__getVisibilityVolume, + "Get the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(const osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getVisibilityVolume, + "Get the const subgraph that is intersected for the visibility determination. ", + ""); + I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, + __void__setVolumeIntersectionMask__osg_Node_NodeMask, + "Set the traversal mask for the intersection testing. ", + ""); + I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask, + Properties::NON_VIRTUAL, + __osg_Node_NodeMask__getVolumeIntersectionMask, + "Get the traversal mask for the intersection testing. ", + ""); + I_Method1(void, setSegmentLength, IN, float, length, + Properties::NON_VIRTUAL, + __void__setSegmentLength__float, + "Set the length of the intersection segment. ", + "The segments extends this many database units from the camera eye-point along the look vector. If this is left at zero then the diameter of the bounding sphere of the visibility volume is used. "); + I_Method0(float, getSegmentLength, + Properties::NON_VIRTUAL, + __float__getSegmentLength, + "Get the length of the intersection segment. ", + ""); + I_Constructor0(____VisibilityGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VisibilityGroup__C5_VisibilityGroup_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setVisibilityVolume__osg_Node_P1, + "Set the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __osg_Node_P1__getVisibilityVolume, + "Get the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(const osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getVisibilityVolume, + "Get the const subgraph that is intersected for the visibility determination. ", + ""); + I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, + __void__setVolumeIntersectionMask__osg_Node_NodeMask, + "Set the traversal mask for the intersection testing. ", + ""); + I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask, + Properties::NON_VIRTUAL, + __osg_Node_NodeMask__getVolumeIntersectionMask, + "Get the traversal mask for the intersection testing. ", + ""); + I_Method1(void, setSegmentLength, IN, float, length, + Properties::NON_VIRTUAL, + __void__setSegmentLength__float, + "Set the length of the intersection segment. ", + "The segments extends this many database units from the camera eye-point along the look vector. If this is left at zero then the diameter of the bounding sphere of the visibility volume is used. "); + I_Method0(float, getSegmentLength, + Properties::NON_VIRTUAL, + __float__getSegmentLength, + "Get the length of the intersection segment. ", + ""); + I_SimpleProperty(float, SegmentLength, + __float__getSegmentLength, + __void__setSegmentLength__float); + I_SimpleProperty(osg::Node *, VisibilityVolume, + __osg_Node_P1__getVisibilityVolume, + __void__setVisibilityVolume__osg_Node_P1); + I_SimpleProperty(osg::Node::NodeMask, VolumeIntersectionMask, + __osg_Node_NodeMask__getVolumeIntersectionMask, + __void__setVolumeIntersectionMask__osg_Node_NodeMask); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgSim::VisibilityGroup) + I_BaseType(osg::Group); + I_BaseType(osg::Group); + I_Constructor0(____VisibilityGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VisibilityGroup__C5_VisibilityGroup_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, + Properties::NON_VIRTUAL, + __void__setVisibilityVolume__osg_Node_P1, + "Set the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __osg_Node_P1__getVisibilityVolume, + "Get the subgraph that is intersected for the visibility determination. ", + ""); + I_Method0(const osg::Node *, getVisibilityVolume, + Properties::NON_VIRTUAL, + __C5_osg_Node_P1__getVisibilityVolume, + "Get the const subgraph that is intersected for the visibility determination. ", + ""); + I_Method1(void, setVolumeIntersectionMask, IN, osg::Node::NodeMask, mask, + Properties::NON_VIRTUAL, + __void__setVolumeIntersectionMask__osg_Node_NodeMask, + "Set the traversal mask for the intersection testing. ", + ""); + I_Method0(osg::Node::NodeMask, getVolumeIntersectionMask, + Properties::NON_VIRTUAL, + __osg_Node_NodeMask__getVolumeIntersectionMask, + "Get the traversal mask for the intersection testing. ", + ""); + I_Method1(void, setSegmentLength, IN, float, length, + Properties::NON_VIRTUAL, + __void__setSegmentLength__float, + "Set the length of the intersection segment. ", + "The segments extends this many database units from the camera eye-point along the look vector. If this is left at zero then the diameter of the bounding sphere of the visibility volume is used. "); + I_Method0(float, getSegmentLength, + Properties::NON_VIRTUAL, + __float__getSegmentLength, + "Get the length of the intersection segment. ", + ""); + I_Constructor0(____VisibilityGroup, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgSim::VisibilityGroup &, x, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____VisibilityGroup__C5_VisibilityGroup_R1__C5_osg_CopyOp_R1, + "Copy constructor using CopyOp to manage deep vs shallow copy. ", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(const char *, libraryName, + Properties::VIRTUAL, + __C5_char_P1__libraryName, + "", + ""); + I_Method1(void, accept, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__accept__osg_NodeVisitor_R1, + "", + ""); + I_Method1(void, traverse, IN, osg::NodeVisitor &, nv, + Properties::VIRTUAL, + __void__traverse__osg_NodeVisitor_R1, + "", ""); I_Method1(void, setVisibilityVolume, IN, osg::Node *, node, Properties::NON_VIRTUAL, diff --git a/src/osgWrappers/osgTerrain/DataSet.cpp b/src/osgWrappers/osgTerrain/DataSet.cpp index 49d91e3e6..752627277 100644 --- a/src/osgWrappers/osgTerrain/DataSet.cpp +++ b/src/osgWrappers/osgTerrain/DataSet.cpp @@ -15,10 +15,10 @@ #include #include #include -#include #include #include #include +#include #include #include #include diff --git a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp index 9ad3dce34..75573b217 100644 --- a/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp +++ b/src/osgWrappers/osgTerrain/HeightFieldRenderer.cpp @@ -13,8 +13,8 @@ #include #include #include -#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgText/Font.cpp b/src/osgWrappers/osgText/Font.cpp index b527feca4..2d20d2b4a 100644 --- a/src/osgWrappers/osgText/Font.cpp +++ b/src/osgWrappers/osgText/Font.cpp @@ -13,11 +13,10 @@ #include #include #include -#include -#include -#include #include #include +#include +#include #include #include diff --git a/src/osgWrappers/osgText/GNUmakefile b/src/osgWrappers/osgText/GNUmakefile index 7236b57dd..fb9994d04 100644 --- a/src/osgWrappers/osgText/GNUmakefile +++ b/src/osgWrappers/osgText/GNUmakefile @@ -5,6 +5,7 @@ CXXFILES =\ FadeText.cpp\ Font.cpp\ String.cpp\ + Text.cpp\ LIBS += -losgText -losg -losgIntrospection -losgDB $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgText/String.cpp b/src/osgWrappers/osgText/String.cpp index 229de06fe..e64e3503b 100644 --- a/src/osgWrappers/osgText/String.cpp +++ b/src/osgWrappers/osgText/String.cpp @@ -229,79 +229,3 @@ BEGIN_OBJECT_REFLECTOR(osgText::String) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) - I_BaseType(std::vector); - I_Constructor0(____VectorUInt, - "", - ""); - I_Constructor1(IN, const osgText::VectorUInt &, copy, - Properties::NON_EXPLICIT, - ____VectorUInt__C5_VectorUInt_R1, - "", - ""); - I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, - ____VectorUInt__unsigned_int_P1__unsigned_int_P1, - "", - ""); - I_Constructor1(IN, unsigned int, n, - Properties::EXPLICIT, - ____VectorUInt__unsigned_int, - "", - ""); - I_Constructor0(____VectorUInt, - "", - ""); - I_Constructor1(IN, const osgText::VectorUInt &, copy, - Properties::NON_EXPLICIT, - ____VectorUInt__C5_VectorUInt_R1, - "", - ""); - I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, - ____VectorUInt__unsigned_int_P1__unsigned_int_P1, - "", - ""); - I_Constructor1(IN, unsigned int, n, - Properties::EXPLICIT, - ____VectorUInt__unsigned_int, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgText::VectorUInt) - I_BaseType(std::vector); - I_Constructor0(____VectorUInt, - "", - ""); - I_Constructor1(IN, const osgText::VectorUInt &, copy, - Properties::NON_EXPLICIT, - ____VectorUInt__C5_VectorUInt_R1, - "", - ""); - I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, - ____VectorUInt__unsigned_int_P1__unsigned_int_P1, - "", - ""); - I_Constructor1(IN, unsigned int, n, - Properties::EXPLICIT, - ____VectorUInt__unsigned_int, - "", - ""); - I_Constructor0(____VectorUInt, - "", - ""); - I_Constructor1(IN, const osgText::VectorUInt &, copy, - Properties::NON_EXPLICIT, - ____VectorUInt__C5_VectorUInt_R1, - "", - ""); - I_Constructor2(IN, unsigned int *, beg, IN, unsigned int *, end, - ____VectorUInt__unsigned_int_P1__unsigned_int_P1, - "", - ""); - I_Constructor1(IN, unsigned int, n, - Properties::EXPLICIT, - ____VectorUInt__unsigned_int, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osgText/Text.cpp b/src/osgWrappers/osgText/Text.cpp index c25ee1982..bc83e8f86 100644 --- a/src/osgWrappers/osgText/Text.cpp +++ b/src/osgWrappers/osgText/Text.cpp @@ -10,18 +10,7 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -32,571 +21,6 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >, osgText::Text::TextureGlyphQuadMap); - -BEGIN_ENUM_REFLECTOR(osgText::Text::CharacterSizeMode) - I_EnumLabel(osgText::Text::OBJECT_COORDS); - I_EnumLabel(osgText::Text::SCREEN_COORDS); - I_EnumLabel(osgText::Text::OBJECT_COORDS_WITH_MAXIMUM_SCREEN_SIZE_CAPPED_BY_FONT_HEIGHT); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::AlignmentType) - I_EnumLabel(osgText::Text::LEFT_TOP); - I_EnumLabel(osgText::Text::LEFT_CENTER); - I_EnumLabel(osgText::Text::LEFT_BOTTOM); - I_EnumLabel(osgText::Text::CENTER_TOP); - I_EnumLabel(osgText::Text::CENTER_CENTER); - I_EnumLabel(osgText::Text::CENTER_BOTTOM); - I_EnumLabel(osgText::Text::RIGHT_TOP); - I_EnumLabel(osgText::Text::RIGHT_CENTER); - I_EnumLabel(osgText::Text::RIGHT_BOTTOM); - I_EnumLabel(osgText::Text::LEFT_BASE_LINE); - I_EnumLabel(osgText::Text::CENTER_BASE_LINE); - I_EnumLabel(osgText::Text::RIGHT_BASE_LINE); - I_EnumLabel(osgText::Text::LEFT_BOTTOM_BASE_LINE); - I_EnumLabel(osgText::Text::CENTER_BOTTOM_BASE_LINE); - I_EnumLabel(osgText::Text::RIGHT_BOTTOM_BASE_LINE); - I_EnumLabel(osgText::Text::BASE_LINE); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::AxisAlignment) - I_EnumLabel(osgText::Text::XY_PLANE); - I_EnumLabel(osgText::Text::REVERSED_XY_PLANE); - I_EnumLabel(osgText::Text::XZ_PLANE); - I_EnumLabel(osgText::Text::REVERSED_XZ_PLANE); - I_EnumLabel(osgText::Text::YZ_PLANE); - I_EnumLabel(osgText::Text::REVERSED_YZ_PLANE); - I_EnumLabel(osgText::Text::SCREEN); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::Layout) - I_EnumLabel(osgText::Text::LEFT_TO_RIGHT); - I_EnumLabel(osgText::Text::RIGHT_TO_LEFT); - I_EnumLabel(osgText::Text::VERTICAL); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::DrawModeMask) - I_EnumLabel(osgText::Text::TEXT); - I_EnumLabel(osgText::Text::BOUNDINGBOX); - I_EnumLabel(osgText::Text::ALIGNMENT); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropType) - I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_RIGHT); - I_EnumLabel(osgText::Text::DROP_SHADOW_CENTER_RIGHT); - I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_RIGHT); - I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_CENTER); - I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_CENTER); - I_EnumLabel(osgText::Text::DROP_SHADOW_BOTTOM_LEFT); - I_EnumLabel(osgText::Text::DROP_SHADOW_CENTER_LEFT); - I_EnumLabel(osgText::Text::DROP_SHADOW_TOP_LEFT); - I_EnumLabel(osgText::Text::OUTLINE); - I_EnumLabel(osgText::Text::NONE); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::BackdropImplementation) - I_EnumLabel(osgText::Text::POLYGON_OFFSET); - I_EnumLabel(osgText::Text::NO_DEPTH_BUFFER); - I_EnumLabel(osgText::Text::DEPTH_RANGE); - I_EnumLabel(osgText::Text::STENCIL_BUFFER); -END_REFLECTOR - -BEGIN_ENUM_REFLECTOR(osgText::Text::ColorGradientMode) - I_EnumLabel(osgText::Text::SOLID); - I_EnumLabel(osgText::Text::PER_CHARACTER); - I_EnumLabel(osgText::Text::OVERALL); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgText::Text) - I_BaseType(osg::Drawable); - I_Constructor0(____Text, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgText::Text &, text, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____Text__C5_Text_R1__C5_osg_CopyOp_R1, - "", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "return the name of the object's library. ", - "Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name. "); - I_MethodWithDefaults1(void, setFont, IN, osgText::Font *, font, 0, - Properties::NON_VIRTUAL, - __void__setFont__Font_P1, - "Set the Font to use to render the text. ", - "setFont(0) sets the use of the default font. "); - I_Method1(void, setFont, IN, const std::string &, fontfile, - Properties::NON_VIRTUAL, - __void__setFont__C5_std_string_R1, - "Set the font, loaded from the specified front file, to use to render the text, setFont(\"\") sets the use of the default font. ", - "See the osgText::readFontFile function for how the font file will be located. "); - I_Method0(const osgText::Font *, getFont, - Properties::NON_VIRTUAL, - __C5_Font_P1__getFont, - "Get the font. ", - "Return 0 if default is being used. "); - I_Method2(void, setFontResolution, IN, unsigned int, width, IN, unsigned int, height, - Properties::NON_VIRTUAL, - __void__setFontResolution__unsigned_int__unsigned_int, - "Set the Font reference width and height resolution in texels. ", - "Note, the size may not be supported by current font, the closest supported font size will be selected. "); - I_Method0(unsigned int, getFontWidth, - Properties::NON_VIRTUAL, - __unsigned_int__getFontWidth, - "", - ""); - I_Method0(unsigned int, getFontHeight, - Properties::NON_VIRTUAL, - __unsigned_int__getFontHeight, - "", - ""); - I_Method1(void, setText, IN, const osgText::String &, text, - Properties::NON_VIRTUAL, - __void__setText__C5_String_R1, - "Set the text using a osgText::String. ", - ""); - I_Method1(void, setText, IN, const std::string &, text, - Properties::NON_VIRTUAL, - __void__setText__C5_std_string_R1, - "Set the text using a std::string, which is converted to an internal TextString. ", - ""); - I_Method2(void, setText, IN, const std::string &, text, IN, osgText::String::Encoding, encoding, - Properties::NON_VIRTUAL, - __void__setText__C5_std_string_R1__String_Encoding, - "Set the text using a Unicode encoded std::string, which is converted to an internal TextString. ", - "The encoding parameter specificies which Unicode encodeding is used in the std::string. "); - I_Method1(void, setText, IN, const wchar_t *, text, - Properties::NON_VIRTUAL, - __void__setText__C5_wchar_t_P1, - "Set the text using a wchar_t string, which is converted to an internal TextString. ", - ""); - I_Method0(osgText::String &, getText, - Properties::NON_VIRTUAL, - __String_R1__getText, - "Get the text string. ", - "Note, if you modify the string you must call Text::update() for the internal glyph reprentation to be updated. "); - I_Method0(const osgText::String &, getText, - Properties::NON_VIRTUAL, - __C5_String_R1__getText, - "Get the const text string. ", - ""); - I_Method0(void, update, - Properties::NON_VIRTUAL, - __void__update, - "update internal glyph respresnetation used for rendering, and bounding volume. ", - ""); - I_MethodWithDefaults2(void, setCharacterSize, IN, float, height, , IN, float, aspectRatio, 1.0f, - Properties::NON_VIRTUAL, - __void__setCharacterSize__float__float, - "Set the rendered character size in object coordinates. ", - ""); - I_Method0(float, getCharacterHeight, - Properties::NON_VIRTUAL, - __float__getCharacterHeight, - "", - ""); - I_Method0(float, getCharacterAspectRatio, - Properties::NON_VIRTUAL, - __float__getCharacterAspectRatio, - "", - ""); - I_Method1(void, setCharacterSizeMode, IN, osgText::Text::CharacterSizeMode, mode, - Properties::NON_VIRTUAL, - __void__setCharacterSizeMode__CharacterSizeMode, - "Set how the CharacterSize value relates to the final rendered character. ", - ""); - I_Method0(osgText::Text::CharacterSizeMode, getCharacterSizeMode, - Properties::NON_VIRTUAL, - __CharacterSizeMode__getCharacterSizeMode, - "Get the CharacterSizeMode. ", - ""); - I_Method1(void, setMaximumWidth, IN, float, maximumWidth, - Properties::NON_VIRTUAL, - __void__setMaximumWidth__float, - "Set the maximum width of the text box. ", - "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum width is set, lines can be as long as they need be to fit thre required text "); - I_Method0(float, getMaximumWidth, - Properties::NON_VIRTUAL, - __float__getMaximumWidth, - "Get the maximim width of the text box. ", - ""); - I_Method1(void, setMaximumHeight, IN, float, maximumHeight, - Properties::NON_VIRTUAL, - __void__setMaximumHeight__float, - "Set the maximum height of the text box. ", - "With horizontal layouts any characters which do not fit are wrapped around. 0 or negative values indicate that no maximum height is set, lines can be as long as they need be to fit the required text "); - I_Method0(float, getMaximumHeight, - Properties::NON_VIRTUAL, - __float__getMaximumHeight, - "Get the maximum height of the text box. ", - ""); - I_Method1(void, setLineSpacing, IN, float, lineSpacing, - Properties::NON_VIRTUAL, - __void__setLineSpacing__float, - "Set the line spacing of the text box, given as a percentage of the character height. ", - "The default value is 0 for backward compatibility. For longer paragraphs of text, a value of at least 25% (i.e. set line spacing to 0.25) is recommended. "); - I_Method0(float, getLineSpacing, - Properties::NON_VIRTUAL, - __float__getLineSpacing, - "Get the line spacing of the text box. ", - ""); - I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, - Properties::NON_VIRTUAL, - __void__setPosition__C5_osg_Vec3_R1, - "Set the position of text. ", - ""); - I_Method0(const osg::Vec3 &, getPosition, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getPosition, - "Get the position of text. ", - ""); - I_Method1(void, setAlignment, IN, osgText::Text::AlignmentType, alignment, - Properties::NON_VIRTUAL, - __void__setAlignment__AlignmentType, - "", - ""); - I_Method0(osgText::Text::AlignmentType, getAlignment, - Properties::NON_VIRTUAL, - __AlignmentType__getAlignment, - "", - ""); - I_Method1(void, setAxisAlignment, IN, osgText::Text::AxisAlignment, axis, - Properties::NON_VIRTUAL, - __void__setAxisAlignment__AxisAlignment, - "", - ""); - I_Method1(void, setRotation, IN, const osg::Quat &, quat, - Properties::NON_VIRTUAL, - __void__setRotation__C5_osg_Quat_R1, - "", - ""); - I_Method0(const osg::Quat &, getRotation, - Properties::NON_VIRTUAL, - __C5_osg_Quat_R1__getRotation, - "", - ""); - I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen, - Properties::NON_VIRTUAL, - __void__setAutoRotateToScreen__bool, - "", - ""); - I_Method0(bool, getAutoRotateToScreen, - Properties::NON_VIRTUAL, - __bool__getAutoRotateToScreen, - "", - ""); - I_Method1(void, setLayout, IN, osgText::Text::Layout, layout, - Properties::NON_VIRTUAL, - __void__setLayout__Layout, - "", - ""); - I_Method0(osgText::Text::Layout, getLayout, - Properties::NON_VIRTUAL, - __Layout__getLayout, - "", - ""); - I_Method1(void, setColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setColor__C5_osg_Vec4_R1, - "", - ""); - I_Method0(const osg::Vec4 &, getColor, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getColor, - "", - ""); - I_Method1(void, setDrawMode, IN, unsigned int, mode, - Properties::NON_VIRTUAL, - __void__setDrawMode__unsigned_int, - "", - ""); - I_Method0(unsigned int, getDrawMode, - Properties::NON_VIRTUAL, - __unsigned_int__getDrawMode, - "", - ""); - I_Method1(void, setBackdropType, IN, osgText::Text::BackdropType, type, - Properties::NON_VIRTUAL, - __void__setBackdropType__BackdropType, - "BackdropType gives you a background shadow text behind your regular text. ", - "This helps give text extra contrast which can be useful when placing text against noisy backgrounds. The color of the background shadow text is specified by setBackdropColor(). DROP_SHADOW_BOTTOM_RIGHT will draw backdrop text to the right and down of the normal text. Other DROW_SHADOW_* modes do the same for their repective directions. OUTLINE will draw backdrop text so that it appears the text has an outline or border around the normal text. This mode is particularly useful against really noisy backgrounds that may put text on top of things that have all types of colors which you don't have control over. Some real world examples of this general technique in use that I know of are Google Earth, Sid Meier's Pirates (2004 Remake), and Star Control 2 (PC 1993). The default is NONE."); - I_Method0(osgText::Text::BackdropType, getBackdropType, - Properties::NON_VIRTUAL, - __BackdropType__getBackdropType, - "", - ""); - I_MethodWithDefaults1(void, setBackdropOffset, IN, float, offset, 0.07f, - Properties::NON_VIRTUAL, - __void__setBackdropOffset__float, - "Sets the amount text is offset to create the backdrop/shadow effect. ", - "Set the value too high and for example, in OUTLINE mode you will get a \"Brady Bunch\" effect where you see duplicates of the text in a 3x3 grid. Set the value too small and you won't see anything. The values represent percentages. 1.0 means 100% so a value of 1.0 in DROW_SHADOW_LEFT_CENTER mode would cause each glyph to be echoed next to it self. So the letter 'e' might look like 'ee'. Good values tend to be in the 0.03 to 0.10 range (but will be subject to your specific font and display characteristics). Note that the text bounding boxes are updated to include backdrop offsets. However, other metric information such as getCharacterHeight() are unaffected by this. This means that individual glyph spacing (kerning?) are unchanged even when this mode is used. The default is 0.07 (7% offset)."); - I_Method2(void, setBackdropOffset, IN, float, horizontal, IN, float, vertical, - Properties::NON_VIRTUAL, - __void__setBackdropOffset__float__float, - "This overloaded version lets you specify the offset for the horizontal and vertical components separately. ", - ""); - I_Method0(float, getBackdropHorizontalOffset, - Properties::NON_VIRTUAL, - __float__getBackdropHorizontalOffset, - "", - ""); - I_Method0(float, getBackdropVerticalOffset, - Properties::NON_VIRTUAL, - __float__getBackdropVerticalOffset, - "", - ""); - I_Method1(void, setBackdropColor, IN, const osg::Vec4 &, color, - Properties::NON_VIRTUAL, - __void__setBackdropColor__C5_osg_Vec4_R1, - "This specifies the color of the backdrop text. ", - "The default is black."); - I_Method0(const osg::Vec4 &, getBackdropColor, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getBackdropColor, - "", - ""); - I_Method1(void, setBackdropImplementation, IN, osgText::Text::BackdropImplementation, implementation, - Properties::NON_VIRTUAL, - __void__setBackdropImplementation__BackdropImplementation, - "This specifies the underlying backdrop rendering implementation. ", - "Unfortunately, at this time, there is no \"perfect\" rendering solution so this function is provided to let you 'pick your poison'. Each implementation has trade-offs. See BackdropImplementation enum docs for details. "); - I_Method0(osgText::Text::BackdropImplementation, getBackdropImplementation, - Properties::NON_VIRTUAL, - __BackdropImplementation__getBackdropImplementation, - "", - ""); - I_Method1(void, setColorGradientMode, IN, osgText::Text::ColorGradientMode, mode, - Properties::NON_VIRTUAL, - __void__setColorGradientMode__ColorGradientMode, - "This sets different types of text coloring modes. ", - "When the coloring mode is not set to SOLID, the colors specified in setColorGradientCorners() determine the colors for the text. When the gradient mode is OVERALL, the coloring scheme attempts to approximate the effect as if the entire text box/region were a single polygon and you had applied colors to each of the four corners with GL_SMOOTH enabled. In this mode, OpenGL interpolates the colors across the polygon, and this is what OVERALL tries to emulate. This can be used to give nice embellishments on things like logos and names. PER_CHARACTER is similar to OVERALL except that it applies the color interpolation to the four corners of each character instead of across the overall text box. The default is SOLID (a.k.a. off)."); - I_Method0(osgText::Text::ColorGradientMode, getColorGradientMode, - Properties::NON_VIRTUAL, - __ColorGradientMode__getColorGradientMode, - "", - ""); - I_Method4(void, setColorGradientCorners, IN, const osg::Vec4 &, topLeft, IN, const osg::Vec4 &, bottomLeft, IN, const osg::Vec4 &, bottomRight, IN, const osg::Vec4 &, topRight, - Properties::NON_VIRTUAL, - __void__setColorGradientCorners__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1__C5_osg_Vec4_R1, - "Used only for gradient mode, let's you specify the colors of the 4 corners. ", - "If ColorGradients are off, these values are ignored (and the value from setColor() is the only one that is relevant."); - I_Method0(const osg::Vec4 &, getColorGradientTopLeft, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getColorGradientTopLeft, - "", - ""); - I_Method0(const osg::Vec4 &, getColorGradientBottomLeft, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getColorGradientBottomLeft, - "", - ""); - I_Method0(const osg::Vec4 &, getColorGradientBottomRight, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getColorGradientBottomRight, - "", - ""); - I_Method0(const osg::Vec4 &, getColorGradientTopRight, - Properties::NON_VIRTUAL, - __C5_osg_Vec4_R1__getColorGradientTopRight, - "", - ""); - I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType, - Properties::NON_VIRTUAL, - __void__setKerningType__KerningType, - "", - ""); - I_Method0(osgText::KerningType, getKerningType, - Properties::NON_VIRTUAL, - __KerningType__getKerningType, - "", - ""); - I_Method0(unsigned int, getLineCount, - Properties::NON_VIRTUAL, - __unsigned_int__getLineCount, - "Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ", - ""); - I_Method1(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1, - "Draw the text. ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::AttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_Drawable_AttributeFunctor_R1, - "return false, osgText::Text does not support accept(AttributeFunctor&). ", - ""); - I_Method1(bool, supports, IN, const osg::Drawable::ConstAttributeFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_Drawable_ConstAttributeFunctor_R1, - "return true, osgText::Text does support accept(ConstAttributeFunctor&). ", - ""); - I_Method1(void, accept, IN, osg::Drawable::ConstAttributeFunctor &, af, - Properties::VIRTUAL, - __void__accept__osg_Drawable_ConstAttributeFunctor_R1, - "accept an ConstAttributeFunctor and call its methods to tell it about the interal attributes that this Drawable has. ", - ""); - I_Method1(bool, supports, IN, const osg::PrimitiveFunctor &, x, - Properties::VIRTUAL, - __bool__supports__C5_osg_PrimitiveFunctor_R1, - "return true, osgText::Text does support accept(PrimitiveFunctor&) . ", - ""); - I_Method1(void, accept, IN, osg::PrimitiveFunctor &, pf, - Properties::VIRTUAL, - __void__accept__osg_PrimitiveFunctor_R1, - "accept a PrimtiveFunctor and call its methods to tell it about the interal primtives that this Drawable has. ", - ""); - I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, - Properties::VIRTUAL, - __void__setThreadSafeRefUnref__bool, - "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", - ""); - I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, - Properties::VIRTUAL, - __void__resizeGLObjectBuffers__unsigned_int, - "Resize any per context GLObject buffers to specified size. ", - ""); - I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, - Properties::VIRTUAL, - __void__releaseGLObjects__osg_State_P1, - "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", - "Otherwise, releases OpenGL objexts for all graphics contexts. "); - I_Method1(const osgText::Text::GlyphQuads *, getGlyphQuads, IN, osgText::Font::GlyphTexture *, texture, - Properties::NON_VIRTUAL, - __C5_GlyphQuads_P1__getGlyphQuads__Font_GlyphTexture_P1, - "Direct Access to GlyphQuads. ", - ""); - I_Method0(const osgText::Text::TextureGlyphQuadMap &, getTextureGlyphQuadMap, - Properties::NON_VIRTUAL, - __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, - "", - ""); - I_Method0(osg::BoundingBox, computeBound, - Properties::VIRTUAL, - __osg_BoundingBox__computeBound, - "Compute the bounding box around Drawables's geometry. ", - ""); - I_SimpleProperty(osgText::Text::AlignmentType, Alignment, - __AlignmentType__getAlignment, - __void__setAlignment__AlignmentType); - I_SimpleProperty(bool, AutoRotateToScreen, - __bool__getAutoRotateToScreen, - __void__setAutoRotateToScreen__bool); - I_SimpleProperty(osgText::Text::AxisAlignment, AxisAlignment, - 0, - __void__setAxisAlignment__AxisAlignment); - I_SimpleProperty(const osg::Vec4 &, BackdropColor, - __C5_osg_Vec4_R1__getBackdropColor, - __void__setBackdropColor__C5_osg_Vec4_R1); - I_SimpleProperty(float, BackdropHorizontalOffset, - __float__getBackdropHorizontalOffset, - 0); - I_SimpleProperty(osgText::Text::BackdropImplementation, BackdropImplementation, - __BackdropImplementation__getBackdropImplementation, - __void__setBackdropImplementation__BackdropImplementation); - I_SimpleProperty(float, BackdropOffset, - 0, - __void__setBackdropOffset__float); - I_SimpleProperty(osgText::Text::BackdropType, BackdropType, - __BackdropType__getBackdropType, - __void__setBackdropType__BackdropType); - I_SimpleProperty(float, BackdropVerticalOffset, - __float__getBackdropVerticalOffset, - 0); - I_SimpleProperty(float, CharacterAspectRatio, - __float__getCharacterAspectRatio, - 0); - I_SimpleProperty(float, CharacterHeight, - __float__getCharacterHeight, - 0); - I_SimpleProperty(osgText::Text::CharacterSizeMode, CharacterSizeMode, - __CharacterSizeMode__getCharacterSizeMode, - __void__setCharacterSizeMode__CharacterSizeMode); - I_SimpleProperty(const osg::Vec4 &, Color, - __C5_osg_Vec4_R1__getColor, - __void__setColor__C5_osg_Vec4_R1); - I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomLeft, - __C5_osg_Vec4_R1__getColorGradientBottomLeft, - 0); - I_SimpleProperty(const osg::Vec4 &, ColorGradientBottomRight, - __C5_osg_Vec4_R1__getColorGradientBottomRight, - 0); - I_SimpleProperty(osgText::Text::ColorGradientMode, ColorGradientMode, - __ColorGradientMode__getColorGradientMode, - __void__setColorGradientMode__ColorGradientMode); - I_SimpleProperty(const osg::Vec4 &, ColorGradientTopLeft, - __C5_osg_Vec4_R1__getColorGradientTopLeft, - 0); - I_SimpleProperty(const osg::Vec4 &, ColorGradientTopRight, - __C5_osg_Vec4_R1__getColorGradientTopRight, - 0); - I_SimpleProperty(unsigned int, DrawMode, - __unsigned_int__getDrawMode, - __void__setDrawMode__unsigned_int); - I_SimpleProperty(osgText::Font *, Font, - 0, - __void__setFont__Font_P1); - I_SimpleProperty(unsigned int, FontHeight, - __unsigned_int__getFontHeight, - 0); - I_SimpleProperty(unsigned int, FontWidth, - __unsigned_int__getFontWidth, - 0); - I_SimpleProperty(osgText::KerningType, KerningType, - __KerningType__getKerningType, - __void__setKerningType__KerningType); - I_SimpleProperty(osgText::Text::Layout, Layout, - __Layout__getLayout, - __void__setLayout__Layout); - I_SimpleProperty(unsigned int, LineCount, - __unsigned_int__getLineCount, - 0); - I_SimpleProperty(float, LineSpacing, - __float__getLineSpacing, - __void__setLineSpacing__float); - I_SimpleProperty(float, MaximumHeight, - __float__getMaximumHeight, - __void__setMaximumHeight__float); - I_SimpleProperty(float, MaximumWidth, - __float__getMaximumWidth, - __void__setMaximumWidth__float); - I_SimpleProperty(const osg::Vec3 &, Position, - __C5_osg_Vec3_R1__getPosition, - __void__setPosition__C5_osg_Vec3_R1); - I_SimpleProperty(const osg::Quat &, Rotation, - __C5_osg_Quat_R1__getRotation, - __void__setRotation__C5_osg_Quat_R1); - I_SimpleProperty(const osgText::String &, Text, - __C5_String_R1__getText, - __void__setText__C5_String_R1); - I_SimpleProperty(const osgText::Text::TextureGlyphQuadMap &, TextureGlyphQuadMap, - __C5_TextureGlyphQuadMap_R1__getTextureGlyphQuadMap, - 0); - I_SimpleProperty(bool, ThreadSafeRefUnref, - 0, - __void__setThreadSafeRefUnref__bool); -END_REFLECTOR - TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs); TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::Text::GlyphQuads::LineNumbers); @@ -663,6 +87,56 @@ BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) __C5_LineNumbers_R1__getLineNumbers, "", ""); + I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, + __Glyphs__getGlyphs, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, + __C5_Glyphs__getGlyphs, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, + __Coords2_R1__getCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, + __C5_Coords2_R1__getCoords, + "", + ""); + I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __C5_Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __C5_TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __LineNumbers_R1__getLineNumbers, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __C5_LineNumbers_R1__getLineNumbers, + "", + ""); I_SimpleProperty(osgText::Text::GlyphQuads::Coords2 &, Coords, __Coords2_R1__getCoords, 0); @@ -681,48 +155,143 @@ BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) I_PublicMemberProperty(osgText::Text::GlyphQuads::TexCoords, _texcoords); I_PublicMemberProperty(osgText::Text::GlyphQuads::LineNumbers, _lineNumbers); I_PublicMemberProperty(osgText::Text::GlyphQuads::ColorCoords, _colorCoords); + I_PublicMemberProperty(osg::buffered_object< osgText::Text::GlyphQuads::Coords3 >, _transformedCoords); END_REFLECTOR -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgText::Font::GlyphTexture >) - I_Constructor0(____ref_ptr, +TYPE_NAME_ALIAS(std::vector< osgText::Font::Glyph * >, osgText::Text::GlyphQuads::Glyphs); + +TYPE_NAME_ALIAS(std::vector< unsigned int >, osgText::Text::GlyphQuads::LineNumbers); + +TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::Coords2); + +TYPE_NAME_ALIAS(std::vector< osg::Vec3 >, osgText::Text::GlyphQuads::Coords3); + +TYPE_NAME_ALIAS(std::vector< osg::Vec2 >, osgText::Text::GlyphQuads::TexCoords); + +TYPE_NAME_ALIAS(std::vector< osg::Vec4 >, osgText::Text::GlyphQuads::ColorCoords); + +BEGIN_VALUE_REFLECTOR(osgText::Text::GlyphQuads) + I_Constructor0(____GlyphQuads, "", ""); - I_Constructor1(IN, osgText::Font::GlyphTexture *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgText::Font::GlyphTexture *, get, + I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs, Properties::NON_VIRTUAL, - __T_P1__get, + __Glyphs__getGlyphs, "", ""); - I_Method0(bool, valid, + I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs, Properties::NON_VIRTUAL, - __bool__valid, + __C5_Glyphs__getGlyphs, "", ""); - I_Method0(osgText::Font::GlyphTexture *, release, + I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords, Properties::NON_VIRTUAL, - __T_P1__release, + __Coords2_R1__getCoords, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgText::Font::GlyphTexture > &, rp, + I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __C5_Coords2_R1__getCoords, "", ""); - I_SimpleProperty(osgText::Font::GlyphTexture *, , - __T_P1__get, + I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __C5_Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __C5_TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __LineNumbers_R1__getLineNumbers, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __C5_LineNumbers_R1__getLineNumbers, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, + __Glyphs__getGlyphs, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Glyphs, getGlyphs, + Properties::NON_VIRTUAL, + __C5_Glyphs__getGlyphs, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, + __Coords2_R1__getCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::Coords2 &, getCoords, + Properties::NON_VIRTUAL, + __C5_Coords2_R1__getCoords, + "", + ""); + I_Method1(osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method1(const osgText::Text::GlyphQuads::Coords3 &, getTransformedCoords, IN, unsigned int, contexID, + Properties::NON_VIRTUAL, + __C5_Coords3_R1__getTransformedCoords__unsigned_int, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::TexCoords &, getTexCoords, + Properties::NON_VIRTUAL, + __C5_TexCoords_R1__getTexCoords, + "", + ""); + I_Method0(osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __LineNumbers_R1__getLineNumbers, + "", + ""); + I_Method0(const osgText::Text::GlyphQuads::LineNumbers &, getLineNumbers, + Properties::NON_VIRTUAL, + __C5_LineNumbers_R1__getLineNumbers, + "", + ""); + I_SimpleProperty(osgText::Text::GlyphQuads::Coords2 &, Coords, + __Coords2_R1__getCoords, 0); + I_SimpleProperty(osgText::Text::GlyphQuads::Glyphs, Glyphs, + __Glyphs__getGlyphs, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::LineNumbers &, LineNumbers, + __LineNumbers_R1__getLineNumbers, + 0); + I_SimpleProperty(osgText::Text::GlyphQuads::TexCoords &, TexCoords, + __TexCoords_R1__getTexCoords, + 0); + I_PublicMemberProperty(osgText::Text::GlyphQuads::Glyphs, _glyphs); + I_PublicMemberProperty(osgText::Text::GlyphQuads::Coords2, _coords); + I_PublicMemberProperty(osg::buffered_object< osgText::Text::GlyphQuads::Coords3 >, _transformedCoords); + I_PublicMemberProperty(osgText::Text::GlyphQuads::TexCoords, _texcoords); + I_PublicMemberProperty(osgText::Text::GlyphQuads::LineNumbers, _lineNumbers); + I_PublicMemberProperty(osgText::Text::GlyphQuads::ColorCoords, _colorCoords); + I_PublicMemberProperty(osg::buffered_object< osgText::Text::GlyphQuads::Coords3 >, _transformedCoords); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< osg::ref_ptr< osgText::Font::GlyphTexture > COMMA osgText::Text::GlyphQuads >); - -STD_VECTOR_REFLECTOR(std::vector< osgText::Font::Glyph * >); - diff --git a/src/osgWrappers/osgUtil/CullVisitor.cpp b/src/osgWrappers/osgUtil/CullVisitor.cpp index d68d675f2..d219d01cf 100644 --- a/src/osgWrappers/osgUtil/CullVisitor.cpp +++ b/src/osgWrappers/osgUtil/CullVisitor.cpp @@ -26,20 +26,20 @@ #include #include #include -#include -#include +#include #include #include #include #include #include -#include +#include +#include #include #include -#include +#include #include #include -#include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp index 804830813..b0546e8c5 100644 --- a/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp +++ b/src/osgWrappers/osgUtil/DisplayRequirementsVisitor.cpp @@ -12,8 +12,8 @@ #include #include -#include #include +#include #include // Must undefine IN and OUT macros defined in Windows headers diff --git a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp index 0cb991115..38820dfee 100644 --- a/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp +++ b/src/osgWrappers/osgUtil/GLObjectsVisitor.cpp @@ -13,9 +13,9 @@ #include #include #include -#include #include #include +#include #include #include diff --git a/src/osgWrappers/osgUtil/GNUmakefile b/src/osgWrappers/osgUtil/GNUmakefile index ef76cc1a9..5a1f42a5e 100644 --- a/src/osgWrappers/osgUtil/GNUmakefile +++ b/src/osgWrappers/osgUtil/GNUmakefile @@ -13,11 +13,17 @@ CXXFILES =\ IntersectionVisitor.cpp\ LineSegmentIntersector.cpp\ Optimizer.cpp\ + ReflectionMapGenerator.cpp\ RenderBin.cpp\ - RenderLeaf.cpp\ + RenderStage.cpp\ SceneView.cpp\ Simplifier.cpp\ + SmoothingVisitor.cpp\ + Statistics.cpp\ + Tessellator.cpp\ + TransformAttributeFunctor.cpp\ TriStripVisitor.cpp\ + UpdateVisitor.cpp\ LIBS += -losgUtil -losg -losgIntrospection $(GL_LIBS) $(OTHER_LIBS) diff --git a/src/osgWrappers/osgUtil/IntersectVisitor.cpp b/src/osgWrappers/osgUtil/IntersectVisitor.cpp index f6c2f5c25..eeb7340cb 100644 --- a/src/osgWrappers/osgUtil/IntersectVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectVisitor.cpp @@ -10,10 +10,7 @@ #include #include -#include #include -#include -#include #include #include #include @@ -23,8 +20,6 @@ #include #include #include -#include -#include #include #include @@ -538,424 +533,6 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Hit) I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, _inverse); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList); - -TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap); - -BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) - I_EnumLabel(osgUtil::IntersectVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); - I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) - I_BaseType(osg::NodeVisitor); - I_BaseType(osg::NodeVisitor); - I_Constructor0(____IntersectVisitor, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __void__addLineSegment__osg_LineSegment_P1, - "Add a line segment to use for intersection testing during scene traversal. ", - "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); - I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __HitList_R1__getHitList__C5_osg_LineSegment_P1, - "", - ""); - I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __int__getNumHits__C5_osg_LineSegment_P1, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, - Properties::NON_VIRTUAL, - __LineSegmentHitListMap_R1__getSegHitList, - "", - ""); - I_Method0(bool, hits, - Properties::NON_VIRTUAL, - __bool__hits, - "", - ""); - I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, - Properties::NON_VIRTUAL, - __void__setLODSelectionMode__LODSelectionMode, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, - Properties::NON_VIRTUAL, - __LODSelectionMode__getLODSelectionMode, - "", - ""); - I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, - Properties::NON_VIRTUAL, - __void__setEyePoint__C5_osg_Vec3_R1, - "Set the eye point in local coordinates. ", - "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); - I_Method0(osg::Vec3, getEyePoint, - Properties::VIRTUAL, - __osg_Vec3__getEyePoint, - "", - ""); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, - Properties::VIRTUAL, - __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, - "Get the distance from a point to the eye point, distance value in local coordinate system. ", - "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); - I_Method1(void, apply, IN, osg::Node &, x, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, node, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, node, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, node, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Switch &, node, - Properties::VIRTUAL, - __void__apply__osg_Switch_R1, - "", - ""); - I_Method1(void, apply, IN, osg::LOD &, node, - Properties::VIRTUAL, - __void__apply__osg_LOD_R1, - "", - ""); - I_Constructor0(____IntersectVisitor, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __void__addLineSegment__osg_LineSegment_P1, - "Add a line segment to use for intersection testing during scene traversal. ", - "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); - I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __HitList_R1__getHitList__C5_osg_LineSegment_P1, - "", - ""); - I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __int__getNumHits__C5_osg_LineSegment_P1, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, - Properties::NON_VIRTUAL, - __LineSegmentHitListMap_R1__getSegHitList, - "", - ""); - I_Method0(bool, hits, - Properties::NON_VIRTUAL, - __bool__hits, - "", - ""); - I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, - Properties::NON_VIRTUAL, - __void__setLODSelectionMode__LODSelectionMode, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, - Properties::NON_VIRTUAL, - __LODSelectionMode__getLODSelectionMode, - "", - ""); - I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, - Properties::NON_VIRTUAL, - __void__setEyePoint__C5_osg_Vec3_R1, - "Set the eye point in local coordinates. ", - "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); - I_Method0(osg::Vec3, getEyePoint, - Properties::VIRTUAL, - __osg_Vec3__getEyePoint, - "", - ""); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, - Properties::VIRTUAL, - __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, - "Get the distance from a point to the eye point, distance value in local coordinate system. ", - "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); - I_Method1(void, apply, IN, osg::Node &, x, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, node, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, node, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, node, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Switch &, node, - Properties::VIRTUAL, - __void__apply__osg_Switch_R1, - "", - ""); - I_Method1(void, apply, IN, osg::LOD &, node, - Properties::VIRTUAL, - __void__apply__osg_LOD_R1, - "", - ""); - I_SimpleProperty(osg::Vec3, EyePoint, - __osg_Vec3__getEyePoint, - __void__setEyePoint__C5_osg_Vec3_R1); - I_SimpleProperty(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode, - __LODSelectionMode__getLODSelectionMode, - __void__setLODSelectionMode__LODSelectionMode); - I_SimpleProperty(osgUtil::IntersectVisitor::LineSegmentHitListMap &, SegHitList, - __LineSegmentHitListMap_R1__getSegHitList, - 0); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osgUtil::Hit >, osgUtil::IntersectVisitor::HitList); - -TYPE_NAME_ALIAS(std::map< const osg::LineSegment * COMMA osgUtil::IntersectVisitor::HitList >, osgUtil::IntersectVisitor::LineSegmentHitListMap); - -BEGIN_ENUM_REFLECTOR(osgUtil::IntersectVisitor::LODSelectionMode) - I_EnumLabel(osgUtil::IntersectVisitor::USE_HIGHEST_LEVEL_OF_DETAIL); - I_EnumLabel(osgUtil::IntersectVisitor::USE_SEGMENT_START_POINT_AS_EYE_POINT_FOR_LOD_LEVEL_SELECTION); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::IntersectVisitor) - I_BaseType(osg::NodeVisitor); - I_BaseType(osg::NodeVisitor); - I_Constructor0(____IntersectVisitor, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __void__addLineSegment__osg_LineSegment_P1, - "Add a line segment to use for intersection testing during scene traversal. ", - "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); - I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __HitList_R1__getHitList__C5_osg_LineSegment_P1, - "", - ""); - I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __int__getNumHits__C5_osg_LineSegment_P1, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, - Properties::NON_VIRTUAL, - __LineSegmentHitListMap_R1__getSegHitList, - "", - ""); - I_Method0(bool, hits, - Properties::NON_VIRTUAL, - __bool__hits, - "", - ""); - I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, - Properties::NON_VIRTUAL, - __void__setLODSelectionMode__LODSelectionMode, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, - Properties::NON_VIRTUAL, - __LODSelectionMode__getLODSelectionMode, - "", - ""); - I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, - Properties::NON_VIRTUAL, - __void__setEyePoint__C5_osg_Vec3_R1, - "Set the eye point in local coordinates. ", - "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); - I_Method0(osg::Vec3, getEyePoint, - Properties::VIRTUAL, - __osg_Vec3__getEyePoint, - "", - ""); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, - Properties::VIRTUAL, - __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, - "Get the distance from a point to the eye point, distance value in local coordinate system. ", - "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); - I_Method1(void, apply, IN, osg::Node &, x, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, node, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, node, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, node, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Switch &, node, - Properties::VIRTUAL, - __void__apply__osg_Switch_R1, - "", - ""); - I_Method1(void, apply, IN, osg::LOD &, node, - Properties::VIRTUAL, - __void__apply__osg_LOD_R1, - "", - ""); - I_Constructor0(____IntersectVisitor, - "", - ""); - I_Method0(void, reset, - Properties::NON_VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, addLineSegment, IN, osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __void__addLineSegment__osg_LineSegment_P1, - "Add a line segment to use for intersection testing during scene traversal. ", - "Note, a maximum of 32 line segments can be added to a IntersectVistor, adding more than this will result in warning being emitted to the console and the excess segments being ignored. "); - I_Method1(osgUtil::IntersectVisitor::HitList &, getHitList, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __HitList_R1__getHitList__C5_osg_LineSegment_P1, - "", - ""); - I_Method1(int, getNumHits, IN, const osg::LineSegment *, seg, - Properties::NON_VIRTUAL, - __int__getNumHits__C5_osg_LineSegment_P1, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LineSegmentHitListMap &, getSegHitList, - Properties::NON_VIRTUAL, - __LineSegmentHitListMap_R1__getSegHitList, - "", - ""); - I_Method0(bool, hits, - Properties::NON_VIRTUAL, - __bool__hits, - "", - ""); - I_Method1(void, setLODSelectionMode, IN, osgUtil::IntersectVisitor::LODSelectionMode, mode, - Properties::NON_VIRTUAL, - __void__setLODSelectionMode__LODSelectionMode, - "", - ""); - I_Method0(osgUtil::IntersectVisitor::LODSelectionMode, getLODSelectionMode, - Properties::NON_VIRTUAL, - __LODSelectionMode__getLODSelectionMode, - "", - ""); - I_Method1(void, setEyePoint, IN, const osg::Vec3 &, eye, - Properties::NON_VIRTUAL, - __void__setEyePoint__C5_osg_Vec3_R1, - "Set the eye point in local coordinates. ", - "This is a pseudo-EyePoint for billboarding and LOD purposes. It is copied from the Start point of the most-recently-added segment of the intersection ray set (IntersectState::_segList). "); - I_Method0(osg::Vec3, getEyePoint, - Properties::VIRTUAL, - __osg_Vec3__getEyePoint, - "", - ""); - I_Method2(float, getDistanceToEyePoint, IN, const osg::Vec3 &, pos, IN, bool, withLODScale, - Properties::VIRTUAL, - __float__getDistanceToEyePoint__C5_osg_Vec3_R1__bool, - "Get the distance from a point to the eye point, distance value in local coordinate system. ", - "This is calculated using the pseudo-EyePoint (above) when doing LOD calculcations. "); - I_Method1(void, apply, IN, osg::Node &, x, - Properties::VIRTUAL, - __void__apply__osg_Node_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, - __void__apply__osg_Geode_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Billboard &, node, - Properties::VIRTUAL, - __void__apply__osg_Billboard_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Group &, node, - Properties::VIRTUAL, - __void__apply__osg_Group_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Transform &, node, - Properties::VIRTUAL, - __void__apply__osg_Transform_R1, - "", - ""); - I_Method1(void, apply, IN, osg::Switch &, node, - Properties::VIRTUAL, - __void__apply__osg_Switch_R1, - "", - ""); - I_Method1(void, apply, IN, osg::LOD &, node, - Properties::VIRTUAL, - __void__apply__osg_LOD_R1, - "", - ""); - I_SimpleProperty(osg::Vec3, EyePoint, - __osg_Vec3__getEyePoint, - __void__setEyePoint__C5_osg_Vec3_R1); - I_SimpleProperty(osgUtil::IntersectVisitor::LODSelectionMode, LODSelectionMode, - __LODSelectionMode__getLODSelectionMode, - __void__setLODSelectionMode__LODSelectionMode); - I_SimpleProperty(osgUtil::IntersectVisitor::LineSegmentHitListMap &, SegHitList, - __LineSegmentHitListMap_R1__getSegHitList, - 0); -END_REFLECTOR - BEGIN_OBJECT_REFLECTOR(osgUtil::PickVisitor) I_BaseType(osgUtil::IntersectVisitor); I_BaseType(osgUtil::IntersectVisitor); diff --git a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp index 3dcae046c..52801d6dc 100644 --- a/src/osgWrappers/osgUtil/IntersectionVisitor.cpp +++ b/src/osgWrappers/osgUtil/IntersectionVisitor.cpp @@ -16,10 +16,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include diff --git a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp index f45fe48b2..d6b2574b6 100644 --- a/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp +++ b/src/osgWrappers/osgUtil/LineSegmentIntersector.cpp @@ -12,7 +12,6 @@ #include #include -#include #include #include #include @@ -281,155 +280,3 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::LineSegmentIntersector) 0); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::Intersection::IndexList); - -TYPE_NAME_ALIAS(std::vector< double >, osgUtil::LineSegmentIntersector::Intersection::RatioList); - -BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) - I_Constructor0(____Intersection, - "", - ""); - I_Method0(const osg::Vec3d &, getLocalIntersectPoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - "", - ""); - I_Method0(osg::Vec3d, getWorldIntersectPoint, - Properties::NON_VIRTUAL, - __osg_Vec3d__getWorldIntersectPoint, - "", - ""); - I_Method0(const osg::Vec3 &, getLocalIntersectNormal, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - "", - ""); - I_Method0(osg::Vec3, getWorldIntersectNormal, - Properties::NON_VIRTUAL, - __osg_Vec3__getWorldIntersectNormal, - "", - ""); - I_Constructor0(____Intersection, - "", - ""); - I_Method0(const osg::Vec3d &, getLocalIntersectPoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - "", - ""); - I_Method0(osg::Vec3d, getWorldIntersectPoint, - Properties::NON_VIRTUAL, - __osg_Vec3d__getWorldIntersectPoint, - "", - ""); - I_Method0(const osg::Vec3 &, getLocalIntersectNormal, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - "", - ""); - I_Method0(osg::Vec3, getWorldIntersectNormal, - Properties::NON_VIRTUAL, - __osg_Vec3__getWorldIntersectNormal, - "", - ""); - I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - 0); - I_SimpleProperty(const osg::Vec3d &, LocalIntersectPoint, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - 0); - I_SimpleProperty(osg::Vec3, WorldIntersectNormal, - __osg_Vec3__getWorldIntersectNormal, - 0); - I_SimpleProperty(osg::Vec3d, WorldIntersectPoint, - __osg_Vec3d__getWorldIntersectPoint, - 0); - I_PublicMemberProperty(double, ratio); - I_PublicMemberProperty(osg::NodePath, nodePath); - I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); - I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); - I_PublicMemberProperty(osg::Vec3d, localIntersectionPoint); - I_PublicMemberProperty(osg::Vec3, localIntersectionNormal); - I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList); - I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::RatioList, ratioList); - I_PublicMemberProperty(unsigned int, primitiveIndex); - I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); - I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< unsigned int >, osgUtil::LineSegmentIntersector::Intersection::IndexList); - -TYPE_NAME_ALIAS(std::vector< double >, osgUtil::LineSegmentIntersector::Intersection::RatioList); - -BEGIN_VALUE_REFLECTOR(osgUtil::LineSegmentIntersector::Intersection) - I_Constructor0(____Intersection, - "", - ""); - I_Method0(const osg::Vec3d &, getLocalIntersectPoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - "", - ""); - I_Method0(osg::Vec3d, getWorldIntersectPoint, - Properties::NON_VIRTUAL, - __osg_Vec3d__getWorldIntersectPoint, - "", - ""); - I_Method0(const osg::Vec3 &, getLocalIntersectNormal, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - "", - ""); - I_Method0(osg::Vec3, getWorldIntersectNormal, - Properties::NON_VIRTUAL, - __osg_Vec3__getWorldIntersectNormal, - "", - ""); - I_Constructor0(____Intersection, - "", - ""); - I_Method0(const osg::Vec3d &, getLocalIntersectPoint, - Properties::NON_VIRTUAL, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - "", - ""); - I_Method0(osg::Vec3d, getWorldIntersectPoint, - Properties::NON_VIRTUAL, - __osg_Vec3d__getWorldIntersectPoint, - "", - ""); - I_Method0(const osg::Vec3 &, getLocalIntersectNormal, - Properties::NON_VIRTUAL, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - "", - ""); - I_Method0(osg::Vec3, getWorldIntersectNormal, - Properties::NON_VIRTUAL, - __osg_Vec3__getWorldIntersectNormal, - "", - ""); - I_SimpleProperty(const osg::Vec3 &, LocalIntersectNormal, - __C5_osg_Vec3_R1__getLocalIntersectNormal, - 0); - I_SimpleProperty(const osg::Vec3d &, LocalIntersectPoint, - __C5_osg_Vec3d_R1__getLocalIntersectPoint, - 0); - I_SimpleProperty(osg::Vec3, WorldIntersectNormal, - __osg_Vec3__getWorldIntersectNormal, - 0); - I_SimpleProperty(osg::Vec3d, WorldIntersectPoint, - __osg_Vec3d__getWorldIntersectPoint, - 0); - I_PublicMemberProperty(double, ratio); - I_PublicMemberProperty(osg::NodePath, nodePath); - I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); - I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); - I_PublicMemberProperty(osg::Vec3d, localIntersectionPoint); - I_PublicMemberProperty(osg::Vec3, localIntersectionNormal); - I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::IndexList, indexList); - I_PublicMemberProperty(osgUtil::LineSegmentIntersector::Intersection::RatioList, ratioList); - I_PublicMemberProperty(unsigned int, primitiveIndex); - I_PublicMemberProperty(osg::ref_ptr< osg::Drawable >, drawable); - I_PublicMemberProperty(osg::ref_ptr< osg::RefMatrix >, matrix); -END_REFLECTOR - diff --git a/src/osgWrappers/osgUtil/Optimizer.cpp b/src/osgWrappers/osgUtil/Optimizer.cpp index 8743a64b0..da7192d65 100644 --- a/src/osgWrappers/osgUtil/Optimizer.cpp +++ b/src/osgWrappers/osgUtil/Optimizer.cpp @@ -10,12 +10,17 @@ #include #include +#include #include -#include #include #include +#include #include -#include +#include +#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -526,17 +531,42 @@ BEGIN_VALUE_REFLECTOR(osgUtil::Optimizer) 0); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____CombineStaticTransformsVisitor__Optimizer_P1, + ____FlattenStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + I_Method1(void, apply, IN, osg::Node &, geode, Properties::VIRTUAL, - __void__apply__osg_MatrixTransform_R1, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, @@ -546,12 +576,37 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) ""); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____CombineStaticTransformsVisitor__Optimizer_P1, + ____FlattenStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + I_Method1(void, apply, IN, osg::Node &, geode, Properties::VIRTUAL, - __void__apply__osg_MatrixTransform_R1, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, @@ -561,17 +616,42 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) +BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::FlattenStaticTransformsVisitor) I_BaseType(osgUtil::BaseOptimizerVisitor); I_BaseType(osgUtil::BaseOptimizerVisitor); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____CombineStaticTransformsVisitor__Optimizer_P1, + ____FlattenStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + I_Method1(void, apply, IN, osg::Node &, geode, Properties::VIRTUAL, - __void__apply__osg_MatrixTransform_R1, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, @@ -581,12 +661,37 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) ""); I_ConstructorWithDefaults1(IN, osgUtil::Optimizer *, optimizer, 0, Properties::NON_EXPLICIT, - ____CombineStaticTransformsVisitor__Optimizer_P1, + ____FlattenStaticTransformsVisitor__Optimizer_P1, "", ""); - I_Method1(void, apply, IN, osg::MatrixTransform &, transform, + I_Method1(void, apply, IN, osg::Node &, geode, Properties::VIRTUAL, - __void__apply__osg_MatrixTransform_R1, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, geode, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::ProxyNode &, node, + Properties::VIRTUAL, + __void__apply__osg_ProxyNode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::PagedLOD &, node, + Properties::VIRTUAL, + __void__apply__osg_PagedLOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, transform, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, "", ""); I_Method1(bool, removeTransforms, IN, osg::Node *, nodeWeCannotRemove, @@ -596,99 +701,3 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::CombineStaticTransformsVisitor) ""); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____IsOperationPermissibleForObjectCallback, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, - "", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::Optimizer::IsOperationPermissibleForObjectCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____IsOperationPermissibleForObjectCallback, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateSet *, stateset, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateSet_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::StateAttribute *, attribute, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_StateAttribute_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Drawable *, drawable, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Drawable_P1__unsigned_int, - "", - ""); - I_Method3(bool, isOperationPermissibleForObjectImplementation, IN, const osgUtil::Optimizer *, optimizer, IN, const osg::Node *, node, IN, unsigned int, option, - Properties::VIRTUAL, - __bool__isOperationPermissibleForObjectImplementation__C5_Optimizer_P1__C5_osg_Node_P1__unsigned_int, - "", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp index 7b3930c4a..55331cf5b 100644 --- a/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp +++ b/src/osgWrappers/osgUtil/ReflectionMapGenerator.cpp @@ -10,7 +10,7 @@ #include #include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -23,6 +23,39 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) I_BaseType(osgUtil::CubeMapGenerator); + I_BaseType(osgUtil::CubeMapGenerator); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::NON_EXPLICIT, + ____ReflectionMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReflectionMapGenerator__C5_ReflectionMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::NON_EXPLICIT, + ____ReflectionMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReflectionMapGenerator__C5_ReflectionMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::ReflectionMapGenerator) + I_BaseType(osgUtil::CubeMapGenerator); + I_BaseType(osgUtil::CubeMapGenerator); + I_ConstructorWithDefaults1(IN, int, texture_size, 64, + Properties::NON_EXPLICIT, + ____ReflectionMapGenerator__int, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::ReflectionMapGenerator &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____ReflectionMapGenerator__C5_ReflectionMapGenerator_R1__C5_osg_CopyOp_R1, + "", + ""); I_ConstructorWithDefaults1(IN, int, texture_size, 64, Properties::NON_EXPLICIT, ____ReflectionMapGenerator__int, diff --git a/src/osgWrappers/osgUtil/RenderBin.cpp b/src/osgWrappers/osgUtil/RenderBin.cpp index 1e026817b..e783b73eb 100644 --- a/src/osgWrappers/osgUtil/RenderBin.cpp +++ b/src/osgWrappers/osgUtil/RenderBin.cpp @@ -10,16 +10,8 @@ #include #include -#include -#include -#include -#include #include -#include -#include -#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN @@ -29,1098 +21,38 @@ #undef OUT #endif -TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList); - -TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList); - -TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList); - -BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) - I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); - I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE_THEN_FRONT_TO_BACK); - I_EnumLabel(osgUtil::RenderBin::SORT_FRONT_TO_BACK); - I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) - I_BaseType(osg::Object); - I_BaseType(osg::Object); - I_Constructor0(____RenderBin, - "", - ""); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_EXPLICIT, - ____RenderBin__SortMode, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, - Properties::NON_VIRTUAL, - __void__setStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __RenderBin_P1__getParent, - "", - ""); - I_Method0(const osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __C5_RenderBin_P1__getParent, - "", - ""); - I_Method0(osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __RenderStage_P1__getStage, - "", - ""); - I_Method0(const osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __C5_RenderStage_P1__getStage, - "", - ""); - I_Method0(int, getBinNum, - Properties::NON_VIRTUAL, - __int__getBinNum, - "", - ""); - I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __C5_StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __C5_RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __C5_RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, - Properties::NON_VIRTUAL, - __RenderBin_P1__find_or_insert__int__C5_std_string_R1, - "", - ""); - I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, - Properties::NON_VIRTUAL, - __void__addStateGraph__StateGraph_P1, - "", - ""); - I_Method0(void, sort, - Properties::VIRTUAL, - __void__sort, - "", - ""); - I_Method0(void, sortImplementation, - Properties::VIRTUAL, - __void__sortImplementation, - "", - ""); - I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_VIRTUAL, - __void__setSortMode__SortMode, - "", - ""); - I_Method0(osgUtil::RenderBin::SortMode, getSortMode, - Properties::NON_VIRTUAL, - __SortMode__getSortMode, - "", - ""); - I_Method0(void, sortByState, - Properties::VIRTUAL, - __void__sortByState, - "", - ""); - I_Method0(void, sortByStateThenFrontToBack, - Properties::VIRTUAL, - __void__sortByStateThenFrontToBack, - "", - ""); - I_Method0(void, sortFrontToBack, - Properties::VIRTUAL, - __void__sortFrontToBack, - "", - ""); - I_Method0(void, sortBackToFront, - Properties::VIRTUAL, - __void__sortBackToFront, - "", - ""); - I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, - Properties::NON_VIRTUAL, - __void__setSortCallback__SortCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __SortCallback_P1__getSortCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __C5_SortCallback_P1__getSortCallback, - "", - ""); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, - Properties::NON_VIRTUAL, - __void__setDrawCallback__DrawCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __C5_DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, - Properties::NON_VIRTUAL, - __bool__getStats__Statistics_R1, - "Extract stats for current draw list. ", - ""); - I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, - Properties::VIRTUAL, - __unsigned_int__computeNumberOfDynamicRenderLeaves, - "Compute the number of dynamic RenderLeaves. ", - ""); - I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, - Properties::NON_VIRTUAL, - __void__copyLeavesFromStateGraphListToRenderLeafList, - "", - ""); - I_Constructor0(____RenderBin, - "", - ""); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_EXPLICIT, - ____RenderBin__SortMode, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, - Properties::NON_VIRTUAL, - __void__setStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __RenderBin_P1__getParent, - "", - ""); - I_Method0(const osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __C5_RenderBin_P1__getParent, - "", - ""); - I_Method0(osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __RenderStage_P1__getStage, - "", - ""); - I_Method0(const osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __C5_RenderStage_P1__getStage, - "", - ""); - I_Method0(int, getBinNum, - Properties::NON_VIRTUAL, - __int__getBinNum, - "", - ""); - I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __C5_StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __C5_RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __C5_RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, - Properties::NON_VIRTUAL, - __RenderBin_P1__find_or_insert__int__C5_std_string_R1, - "", - ""); - I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, - Properties::NON_VIRTUAL, - __void__addStateGraph__StateGraph_P1, - "", - ""); - I_Method0(void, sort, - Properties::VIRTUAL, - __void__sort, - "", - ""); - I_Method0(void, sortImplementation, - Properties::VIRTUAL, - __void__sortImplementation, - "", - ""); - I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_VIRTUAL, - __void__setSortMode__SortMode, - "", - ""); - I_Method0(osgUtil::RenderBin::SortMode, getSortMode, - Properties::NON_VIRTUAL, - __SortMode__getSortMode, - "", - ""); - I_Method0(void, sortByState, - Properties::VIRTUAL, - __void__sortByState, - "", - ""); - I_Method0(void, sortByStateThenFrontToBack, - Properties::VIRTUAL, - __void__sortByStateThenFrontToBack, - "", - ""); - I_Method0(void, sortFrontToBack, - Properties::VIRTUAL, - __void__sortFrontToBack, - "", - ""); - I_Method0(void, sortBackToFront, - Properties::VIRTUAL, - __void__sortBackToFront, - "", - ""); - I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, - Properties::NON_VIRTUAL, - __void__setSortCallback__SortCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __SortCallback_P1__getSortCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __C5_SortCallback_P1__getSortCallback, - "", - ""); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, - Properties::NON_VIRTUAL, - __void__setDrawCallback__DrawCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __C5_DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, - Properties::NON_VIRTUAL, - __bool__getStats__Statistics_R1, - "Extract stats for current draw list. ", - ""); - I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, - Properties::VIRTUAL, - __unsigned_int__computeNumberOfDynamicRenderLeaves, - "Compute the number of dynamic RenderLeaves. ", - ""); - I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, - Properties::NON_VIRTUAL, - __void__copyLeavesFromStateGraphListToRenderLeafList, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, - __RenderBin_P1__createRenderBin__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, - __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, - "", - ""); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, - __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, - __void__removeRenderBinPrototype__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, - __void__setDefaultRenderBinSortMode__SortMode_S, - "", - ""); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, - __SortMode__getDefaultRenderBinSortMode_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, - __RenderBin_P1__createRenderBin__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, - __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, - "", - ""); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, - __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, - __void__removeRenderBinPrototype__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, - __void__setDefaultRenderBinSortMode__SortMode_S, - "", - ""); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, - __SortMode__getDefaultRenderBinSortMode_S, - "", - ""); - I_SimpleProperty(int, BinNum, - __int__getBinNum, - 0); - I_SimpleProperty(osgUtil::RenderBin::DrawCallback *, DrawCallback, - __DrawCallback_P1__getDrawCallback, - __void__setDrawCallback__DrawCallback_P1); - I_SimpleProperty(osgUtil::RenderBin *, Parent, - __RenderBin_P1__getParent, - 0); - I_SimpleProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList, - __RenderBinList_R1__getRenderBinList, - 0); - I_SimpleProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList, - __RenderLeafList_R1__getRenderLeafList, - 0); - I_SimpleProperty(osgUtil::RenderBin::SortCallback *, SortCallback, - __SortCallback_P1__getSortCallback, - __void__setSortCallback__SortCallback_P1); - I_SimpleProperty(osgUtil::RenderBin::SortMode, SortMode, - __SortMode__getSortMode, - __void__setSortMode__SortMode); - I_SimpleProperty(osgUtil::RenderStage *, Stage, - __RenderStage_P1__getStage, - 0); - I_SimpleProperty(osgUtil::RenderBin::StateGraphList &, StateGraphList, - __StateGraphList_R1__getStateGraphList, - 0); - I_SimpleProperty(osg::StateSet *, StateSet, - __osg_StateSet_P1__getStateSet, - __void__setStateSet__osg_StateSet_P1); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::vector< osgUtil::RenderLeaf * >, osgUtil::RenderBin::RenderLeafList); - -TYPE_NAME_ALIAS(std::vector< osgUtil::StateGraph * >, osgUtil::RenderBin::StateGraphList); - -TYPE_NAME_ALIAS(std::map< int COMMA osg::ref_ptr< osgUtil::RenderBin > >, osgUtil::RenderBin::RenderBinList); - -BEGIN_ENUM_REFLECTOR(osgUtil::RenderBin::SortMode) - I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE); - I_EnumLabel(osgUtil::RenderBin::SORT_BY_STATE_THEN_FRONT_TO_BACK); - I_EnumLabel(osgUtil::RenderBin::SORT_FRONT_TO_BACK); - I_EnumLabel(osgUtil::RenderBin::SORT_BACK_TO_FRONT); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::RenderBin) - I_BaseType(osg::Object); - I_BaseType(osg::Object); - I_Constructor0(____RenderBin, - "", - ""); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_EXPLICIT, - ____RenderBin__SortMode, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, - Properties::NON_VIRTUAL, - __void__setStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __RenderBin_P1__getParent, - "", - ""); - I_Method0(const osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __C5_RenderBin_P1__getParent, - "", - ""); - I_Method0(osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __RenderStage_P1__getStage, - "", - ""); - I_Method0(const osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __C5_RenderStage_P1__getStage, - "", - ""); - I_Method0(int, getBinNum, - Properties::NON_VIRTUAL, - __int__getBinNum, - "", - ""); - I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __C5_StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __C5_RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __C5_RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, - Properties::NON_VIRTUAL, - __RenderBin_P1__find_or_insert__int__C5_std_string_R1, - "", - ""); - I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, - Properties::NON_VIRTUAL, - __void__addStateGraph__StateGraph_P1, - "", - ""); - I_Method0(void, sort, - Properties::VIRTUAL, - __void__sort, - "", - ""); - I_Method0(void, sortImplementation, - Properties::VIRTUAL, - __void__sortImplementation, - "", - ""); - I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_VIRTUAL, - __void__setSortMode__SortMode, - "", - ""); - I_Method0(osgUtil::RenderBin::SortMode, getSortMode, - Properties::NON_VIRTUAL, - __SortMode__getSortMode, - "", - ""); - I_Method0(void, sortByState, - Properties::VIRTUAL, - __void__sortByState, - "", - ""); - I_Method0(void, sortByStateThenFrontToBack, - Properties::VIRTUAL, - __void__sortByStateThenFrontToBack, - "", - ""); - I_Method0(void, sortFrontToBack, - Properties::VIRTUAL, - __void__sortFrontToBack, - "", - ""); - I_Method0(void, sortBackToFront, - Properties::VIRTUAL, - __void__sortBackToFront, - "", - ""); - I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, - Properties::NON_VIRTUAL, - __void__setSortCallback__SortCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __SortCallback_P1__getSortCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __C5_SortCallback_P1__getSortCallback, - "", - ""); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, - Properties::NON_VIRTUAL, - __void__setDrawCallback__DrawCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __C5_DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, - Properties::NON_VIRTUAL, - __bool__getStats__Statistics_R1, - "Extract stats for current draw list. ", - ""); - I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, - Properties::VIRTUAL, - __unsigned_int__computeNumberOfDynamicRenderLeaves, - "Compute the number of dynamic RenderLeaves. ", - ""); - I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, - Properties::NON_VIRTUAL, - __void__copyLeavesFromStateGraphListToRenderLeafList, - "", - ""); - I_Constructor0(____RenderBin, - "", - ""); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_EXPLICIT, - ____RenderBin__SortMode, - "", - ""); - I_ConstructorWithDefaults2(IN, const osgUtil::RenderBin &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, - ____RenderBin__C5_RenderBin_R1__C5_osg_CopyOp_R1, - "Copy constructor using CopyOp to manage deep vs shallow copy. ", - ""); - I_Method0(osg::Object *, cloneType, - Properties::VIRTUAL, - __osg_Object_P1__cloneType, - "", - ""); - I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, - Properties::VIRTUAL, - __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "", - ""); - I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, - Properties::VIRTUAL, - __bool__isSameKindAs__C5_osg_Object_P1, - "", - ""); - I_Method0(const char *, libraryName, - Properties::VIRTUAL, - __C5_char_P1__libraryName, - "", - ""); - I_Method0(const char *, className, - Properties::VIRTUAL, - __C5_char_P1__className, - "", - ""); - I_Method0(void, reset, - Properties::VIRTUAL, - __void__reset, - "", - ""); - I_Method1(void, setStateSet, IN, osg::StateSet *, stateset, - Properties::NON_VIRTUAL, - __void__setStateSet__osg_StateSet_P1, - "", - ""); - I_Method0(osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(const osg::StateSet *, getStateSet, - Properties::NON_VIRTUAL, - __C5_osg_StateSet_P1__getStateSet, - "", - ""); - I_Method0(osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __RenderBin_P1__getParent, - "", - ""); - I_Method0(const osgUtil::RenderBin *, getParent, - Properties::NON_VIRTUAL, - __C5_RenderBin_P1__getParent, - "", - ""); - I_Method0(osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __RenderStage_P1__getStage, - "", - ""); - I_Method0(const osgUtil::RenderStage *, getStage, - Properties::NON_VIRTUAL, - __C5_RenderStage_P1__getStage, - "", - ""); - I_Method0(int, getBinNum, - Properties::NON_VIRTUAL, - __int__getBinNum, - "", - ""); - I_Method0(osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(const osgUtil::RenderBin::StateGraphList &, getStateGraphList, - Properties::NON_VIRTUAL, - __C5_StateGraphList_R1__getStateGraphList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderBinList &, getRenderBinList, - Properties::NON_VIRTUAL, - __C5_RenderBinList_R1__getRenderBinList, - "", - ""); - I_Method0(osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method0(const osgUtil::RenderBin::RenderLeafList &, getRenderLeafList, - Properties::NON_VIRTUAL, - __C5_RenderLeafList_R1__getRenderLeafList, - "", - ""); - I_Method2(osgUtil::RenderBin *, find_or_insert, IN, int, binNum, IN, const std::string &, binName, - Properties::NON_VIRTUAL, - __RenderBin_P1__find_or_insert__int__C5_std_string_R1, - "", - ""); - I_Method1(void, addStateGraph, IN, osgUtil::StateGraph *, rg, - Properties::NON_VIRTUAL, - __void__addStateGraph__StateGraph_P1, - "", - ""); - I_Method0(void, sort, - Properties::VIRTUAL, - __void__sort, - "", - ""); - I_Method0(void, sortImplementation, - Properties::VIRTUAL, - __void__sortImplementation, - "", - ""); - I_Method1(void, setSortMode, IN, osgUtil::RenderBin::SortMode, mode, - Properties::NON_VIRTUAL, - __void__setSortMode__SortMode, - "", - ""); - I_Method0(osgUtil::RenderBin::SortMode, getSortMode, - Properties::NON_VIRTUAL, - __SortMode__getSortMode, - "", - ""); - I_Method0(void, sortByState, - Properties::VIRTUAL, - __void__sortByState, - "", - ""); - I_Method0(void, sortByStateThenFrontToBack, - Properties::VIRTUAL, - __void__sortByStateThenFrontToBack, - "", - ""); - I_Method0(void, sortFrontToBack, - Properties::VIRTUAL, - __void__sortFrontToBack, - "", - ""); - I_Method0(void, sortBackToFront, - Properties::VIRTUAL, - __void__sortBackToFront, - "", - ""); - I_Method1(void, setSortCallback, IN, osgUtil::RenderBin::SortCallback *, sortCallback, - Properties::NON_VIRTUAL, - __void__setSortCallback__SortCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __SortCallback_P1__getSortCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::SortCallback *, getSortCallback, - Properties::NON_VIRTUAL, - __C5_SortCallback_P1__getSortCallback, - "", - ""); - I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, - Properties::VIRTUAL, - __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, - "", - ""); - I_Method1(void, setDrawCallback, IN, osgUtil::RenderBin::DrawCallback *, drawCallback, - Properties::NON_VIRTUAL, - __void__setDrawCallback__DrawCallback_P1, - "", - ""); - I_Method0(osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method0(const osgUtil::RenderBin::DrawCallback *, getDrawCallback, - Properties::NON_VIRTUAL, - __C5_DrawCallback_P1__getDrawCallback, - "", - ""); - I_Method1(bool, getStats, IN, osgUtil::Statistics &, primStats, - Properties::NON_VIRTUAL, - __bool__getStats__Statistics_R1, - "Extract stats for current draw list. ", - ""); - I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, - Properties::VIRTUAL, - __unsigned_int__computeNumberOfDynamicRenderLeaves, - "Compute the number of dynamic RenderLeaves. ", - ""); - I_Method0(void, copyLeavesFromStateGraphListToRenderLeafList, - Properties::NON_VIRTUAL, - __void__copyLeavesFromStateGraphListToRenderLeafList, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, - __RenderBin_P1__createRenderBin__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, - __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, - "", - ""); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, - __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, - __void__removeRenderBinPrototype__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, - __void__setDefaultRenderBinSortMode__SortMode_S, - "", - ""); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, - __SortMode__getDefaultRenderBinSortMode_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, createRenderBin, IN, const std::string &, binName, - __RenderBin_P1__createRenderBin__C5_std_string_R1_S, - "", - ""); - I_StaticMethod1(osgUtil::RenderBin *, getRenderBinPrototype, IN, const std::string &, binName, - __RenderBin_P1__getRenderBinPrototype__C5_std_string_R1_S, - "", - ""); - I_StaticMethod2(void, addRenderBinPrototype, IN, const std::string &, binName, IN, osgUtil::RenderBin *, proto, - __void__addRenderBinPrototype__C5_std_string_R1__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, removeRenderBinPrototype, IN, osgUtil::RenderBin *, proto, - __void__removeRenderBinPrototype__RenderBin_P1_S, - "", - ""); - I_StaticMethod1(void, setDefaultRenderBinSortMode, IN, osgUtil::RenderBin::SortMode, mode, - __void__setDefaultRenderBinSortMode__SortMode_S, - "", - ""); - I_StaticMethod0(osgUtil::RenderBin::SortMode, getDefaultRenderBinSortMode, - __SortMode__getDefaultRenderBinSortMode_S, - "", - ""); - I_SimpleProperty(int, BinNum, - __int__getBinNum, - 0); - I_SimpleProperty(osgUtil::RenderBin::DrawCallback *, DrawCallback, - __DrawCallback_P1__getDrawCallback, - __void__setDrawCallback__DrawCallback_P1); - I_SimpleProperty(osgUtil::RenderBin *, Parent, - __RenderBin_P1__getParent, - 0); - I_SimpleProperty(osgUtil::RenderBin::RenderBinList &, RenderBinList, - __RenderBinList_R1__getRenderBinList, - 0); - I_SimpleProperty(osgUtil::RenderBin::RenderLeafList &, RenderLeafList, - __RenderLeafList_R1__getRenderLeafList, - 0); - I_SimpleProperty(osgUtil::RenderBin::SortCallback *, SortCallback, - __SortCallback_P1__getSortCallback, - __void__setSortCallback__SortCallback_P1); - I_SimpleProperty(osgUtil::RenderBin::SortMode, SortMode, - __SortMode__getSortMode, - __void__setSortMode__SortMode); - I_SimpleProperty(osgUtil::RenderStage *, Stage, - __RenderStage_P1__getStage, - 0); - I_SimpleProperty(osgUtil::RenderBin::StateGraphList &, StateGraphList, - __StateGraphList_R1__getStateGraphList, - 0); - I_SimpleProperty(osg::StateSet *, StateSet, - __osg_StateSet_P1__getStateSet, - __void__setStateSet__osg_StateSet_P1); -END_REFLECTOR - -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); - I_Constructor0(____DrawCallback, + I_Constructor0(____SortCallback, "", ""); - I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, Properties::PURE_VIRTUAL, - __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, + __void__sortImplementation__RenderBin_P1, "", ""); - I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, Properties::PURE_VIRTUAL, - __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, + __void__sortImplementation__RenderBin_P1, "", ""); END_REFLECTOR -BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::DrawCallback) +BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgUtil::RenderBin::SortCallback) I_BaseType(osg::Referenced); I_BaseType(osg::Referenced); - I_Constructor0(____DrawCallback, + I_Constructor0(____SortCallback, "", ""); - I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, Properties::PURE_VIRTUAL, - __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, + __void__sortImplementation__RenderBin_P1, "", ""); - I_Method3(void, drawImplementation, IN, osgUtil::RenderBin *, bin, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + I_Method1(void, sortImplementation, IN, osgUtil::RenderBin *, x, Properties::PURE_VIRTUAL, - __void__drawImplementation__RenderBin_P1__osg_RenderInfo_R1__RenderLeaf_P1R1, + __void__sortImplementation__RenderBin_P1, "", ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/RenderStage.cpp b/src/osgWrappers/osgUtil/RenderStage.cpp index 9282b3e6a..9f615d6ef 100644 --- a/src/osgWrappers/osgUtil/RenderStage.cpp +++ b/src/osgWrappers/osgUtil/RenderStage.cpp @@ -10,22 +10,22 @@ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include #include #include @@ -38,11 +38,12 @@ #endif BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) + I_BaseType(osgUtil::RenderBin); I_BaseType(osgUtil::RenderBin); I_Constructor0(____RenderStage, "", ""); - I_Constructor1(IN, osgUtil::RenderBin::SortMode, mode, + I_Constructor1(IN, SortMode, mode, Properties::NON_EXPLICIT, ____RenderStage__SortMode, "", @@ -54,13 +55,13 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) I_Method0(osg::Object *, cloneType, Properties::VIRTUAL, __osg_Object_P1__cloneType, - "Clone the type of an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, Properties::VIRTUAL, __osg_Object_P1__clone__C5_osg_CopyOp_R1, - "Clone an object, with Object* return type. ", - "Must be defined by derived classes. "); + "", + ""); I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, Properties::VIRTUAL, __bool__isSameKindAs__C5_osg_Object_P1, @@ -69,8 +70,1099 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) I_Method0(const char *, className, Properties::VIRTUAL, __C5_char_P1__className, - "return the name of the object's class type. ", - "Must be defined by derived classes. "); + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setDrawBuffer__GLenum, + "Set the draw buffer used at the start of each frame draw. ", + ""); + I_Method0(GLenum, getDrawBuffer, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setReadBuffer__GLenum, + "Set the read buffer for any required copy operations to use. ", + ""); + I_Method0(GLenum, getReadBuffer, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__setViewport__osg_Viewport_P1, + "Set the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, cm, + Properties::NON_VIRTUAL, + __void__setColorMask__osg_ColorMask_P1, + "", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the clear color used in glClearColor(. ", + ".). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the clear color. ", + ""); + I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearAccum__C5_osg_Vec4_R1, + "Set the clear accum used in glClearAccum(. ", + ".). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. "); + I_Method0(const osg::Vec4 &, getClearAccum, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearAccum, + "Get the clear accum. ", + ""); + I_Method1(void, setClearDepth, IN, double, depth, + Properties::NON_VIRTUAL, + __void__setClearDepth__double, + "Set the clear depth used in glClearDepth(. ", + ".). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. "); + I_Method0(double, getClearDepth, + Properties::NON_VIRTUAL, + __double__getClearDepth, + "Get the clear depth. ", + ""); + I_Method1(void, setClearStencil, IN, int, stencil, + Properties::NON_VIRTUAL, + __void__setClearStencil__int, + "Set the clear stencil value used in glClearStencil(). ", + "Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true "); + I_Method0(int, getClearStencil, + Properties::NON_VIRTUAL, + __int__getClearStencil, + "Get the clear color. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraRequiresSetUp, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCameraRequiresSetUp__bool, + "", + ""); + I_Method0(bool, getCameraRequiresSetUp, + Properties::NON_VIRTUAL, + __bool__getCameraRequiresSetUp, + "", + ""); + I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__runCameraSetUp__osg_RenderInfo_R1, + "Attempt the set the RenderStage from the Camera settings. ", + ""); + I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture_P1__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture_P1__getTexture, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setImageReadPixelFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setImageReadPixelFormat__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelFormat, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelFormat, + "", + ""); + I_Method1(void, setImageReadPixelDataType, IN, GLenum, type, + Properties::NON_VIRTUAL, + __void__setImageReadPixelDataType__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelDataType, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelDataType, + "", + ""); + I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo, + Properties::NON_VIRTUAL, + __void__setFrameBufferObject__osg_FrameBufferObject_P1, + "", + ""); + I_Method0(osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method0(const osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __C5_osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + "", + ""); + I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getPositionalStateContainer, + "", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__copyTexture__osg_RenderInfo_R1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPreRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture, + Properties::VIRTUAL, + __void__drawInner__osg_RenderInfo_R1__RenderLeaf_P1R1__bool_R1, + "", + ""); + I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPostRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__addToDependencyList__RenderStage_P1, + "", + ""); + I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPreRenderStage__RenderStage_P1__int, + "", + ""); + I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPostRenderStage__RenderStage_P1__int, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__osg_Camera_BufferComponent__osg_Image_P1, + "", + ""); + I_Constructor0(____RenderStage, + "", + ""); + I_Constructor1(IN, SortMode, mode, + Properties::NON_EXPLICIT, + ____RenderStage__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderStage__C5_RenderStage_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setDrawBuffer__GLenum, + "Set the draw buffer used at the start of each frame draw. ", + ""); + I_Method0(GLenum, getDrawBuffer, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setReadBuffer__GLenum, + "Set the read buffer for any required copy operations to use. ", + ""); + I_Method0(GLenum, getReadBuffer, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__setViewport__osg_Viewport_P1, + "Set the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, cm, + Properties::NON_VIRTUAL, + __void__setColorMask__osg_ColorMask_P1, + "", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the clear color used in glClearColor(. ", + ".). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the clear color. ", + ""); + I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearAccum__C5_osg_Vec4_R1, + "Set the clear accum used in glClearAccum(. ", + ".). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. "); + I_Method0(const osg::Vec4 &, getClearAccum, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearAccum, + "Get the clear accum. ", + ""); + I_Method1(void, setClearDepth, IN, double, depth, + Properties::NON_VIRTUAL, + __void__setClearDepth__double, + "Set the clear depth used in glClearDepth(. ", + ".). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. "); + I_Method0(double, getClearDepth, + Properties::NON_VIRTUAL, + __double__getClearDepth, + "Get the clear depth. ", + ""); + I_Method1(void, setClearStencil, IN, int, stencil, + Properties::NON_VIRTUAL, + __void__setClearStencil__int, + "Set the clear stencil value used in glClearStencil(). ", + "Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true "); + I_Method0(int, getClearStencil, + Properties::NON_VIRTUAL, + __int__getClearStencil, + "Get the clear color. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraRequiresSetUp, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCameraRequiresSetUp__bool, + "", + ""); + I_Method0(bool, getCameraRequiresSetUp, + Properties::NON_VIRTUAL, + __bool__getCameraRequiresSetUp, + "", + ""); + I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__runCameraSetUp__osg_RenderInfo_R1, + "Attempt the set the RenderStage from the Camera settings. ", + ""); + I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture_P1__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture_P1__getTexture, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setImageReadPixelFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setImageReadPixelFormat__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelFormat, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelFormat, + "", + ""); + I_Method1(void, setImageReadPixelDataType, IN, GLenum, type, + Properties::NON_VIRTUAL, + __void__setImageReadPixelDataType__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelDataType, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelDataType, + "", + ""); + I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo, + Properties::NON_VIRTUAL, + __void__setFrameBufferObject__osg_FrameBufferObject_P1, + "", + ""); + I_Method0(osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method0(const osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __C5_osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + "", + ""); + I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getPositionalStateContainer, + "", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__copyTexture__osg_RenderInfo_R1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPreRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture, + Properties::VIRTUAL, + __void__drawInner__osg_RenderInfo_R1__RenderLeaf_P1R1__bool_R1, + "", + ""); + I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPostRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__addToDependencyList__RenderStage_P1, + "", + ""); + I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPreRenderStage__RenderStage_P1__int, + "", + ""); + I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPostRenderStage__RenderStage_P1__int, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__osg_Camera_BufferComponent__osg_Image_P1, + "", + ""); + I_SimpleProperty(osg::Camera *, Camera, + __osg_Camera_P1__getCamera, + __void__setCamera__osg_Camera_P1); + I_SimpleProperty(bool, CameraRequiresSetUp, + __bool__getCameraRequiresSetUp, + __void__setCameraRequiresSetUp__bool); + I_SimpleProperty(const osg::Vec4 &, ClearAccum, + __C5_osg_Vec4_R1__getClearAccum, + __void__setClearAccum__C5_osg_Vec4_R1); + I_SimpleProperty(const osg::Vec4 &, ClearColor, + __C5_osg_Vec4_R1__getClearColor, + __void__setClearColor__C5_osg_Vec4_R1); + I_SimpleProperty(double, ClearDepth, + __double__getClearDepth, + __void__setClearDepth__double); + I_SimpleProperty(GLbitfield, ClearMask, + __GLbitfield__getClearMask, + __void__setClearMask__GLbitfield); + I_SimpleProperty(int, ClearStencil, + __int__getClearStencil, + __void__setClearStencil__int); + I_SimpleProperty(osg::ColorMask *, ColorMask, + __osg_ColorMask_P1__getColorMask, + __void__setColorMask__osg_ColorMask_P1); + I_SimpleProperty(GLenum, DrawBuffer, + __GLenum__getDrawBuffer, + __void__setDrawBuffer__GLenum); + I_SimpleProperty(osg::FrameBufferObject *, FrameBufferObject, + __osg_FrameBufferObject_P1__getFrameBufferObject, + __void__setFrameBufferObject__osg_FrameBufferObject_P1); + I_SimpleProperty(osg::GraphicsContext *, GraphicsContext, + __osg_GraphicsContext_P1__getGraphicsContext, + __void__setGraphicsContext__osg_GraphicsContext_P1); + I_SimpleProperty(osg::Image *, Image, + __osg_Image_P1__getImage, + __void__setImage__osg_Image_P1); + I_SimpleProperty(GLenum, ImageReadPixelDataType, + __GLenum__getImageReadPixelDataType, + __void__setImageReadPixelDataType__GLenum); + I_SimpleProperty(GLenum, ImageReadPixelFormat, + __GLenum__getImageReadPixelFormat, + __void__setImageReadPixelFormat__GLenum); + I_SimpleProperty(osgUtil::PositionalStateContainer *, InheritedPositionalStateContainer, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(const osg::Matrix &, InheritedPositionalStateContainerMatrix, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1); + I_SimpleProperty(osgUtil::PositionalStateContainer *, PositionalStateContainer, + __PositionalStateContainer_P1__getPositionalStateContainer, + __void__setPositionalStateContainer__PositionalStateContainer_P1); + I_SimpleProperty(GLenum, ReadBuffer, + __GLenum__getReadBuffer, + __void__setReadBuffer__GLenum); + I_SimpleProperty(osg::Texture *, Texture, + __osg_Texture_P1__getTexture, + 0); + I_SimpleProperty(osg::Viewport *, Viewport, + __osg_Viewport_P1__getViewport, + __void__setViewport__osg_Viewport_P1); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::RenderStage) + I_BaseType(osgUtil::RenderBin); + I_BaseType(osgUtil::RenderBin); + I_Constructor0(____RenderStage, + "", + ""); + I_Constructor1(IN, SortMode, mode, + Properties::NON_EXPLICIT, + ____RenderStage__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderStage__C5_RenderStage_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setDrawBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setDrawBuffer__GLenum, + "Set the draw buffer used at the start of each frame draw. ", + ""); + I_Method0(GLenum, getDrawBuffer, + Properties::NON_VIRTUAL, + __GLenum__getDrawBuffer, + "Get the draw buffer used at the start of each frame draw. ", + ""); + I_Method1(void, setReadBuffer, IN, GLenum, buffer, + Properties::NON_VIRTUAL, + __void__setReadBuffer__GLenum, + "Set the read buffer for any required copy operations to use. ", + ""); + I_Method0(GLenum, getReadBuffer, + Properties::NON_VIRTUAL, + __GLenum__getReadBuffer, + "Get the read buffer for any required copy operations to use. ", + ""); + I_Method1(void, setViewport, IN, osg::Viewport *, viewport, + Properties::NON_VIRTUAL, + __void__setViewport__osg_Viewport_P1, + "Set the viewport. ", + ""); + I_Method0(const osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __C5_osg_Viewport_P1__getViewport, + "Get the const viewport. ", + ""); + I_Method0(osg::Viewport *, getViewport, + Properties::NON_VIRTUAL, + __osg_Viewport_P1__getViewport, + "Get the viewport. ", + ""); + I_Method1(void, setClearMask, IN, GLbitfield, mask, + Properties::NON_VIRTUAL, + __void__setClearMask__GLbitfield, + "Set the clear mask used in glClear(. ", + ".). Defaults to GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT. "); + I_Method0(GLbitfield, getClearMask, + Properties::NON_VIRTUAL, + __GLbitfield__getClearMask, + "Get the clear mask. ", + ""); + I_Method1(void, setColorMask, IN, osg::ColorMask *, cm, + Properties::NON_VIRTUAL, + __void__setColorMask__osg_ColorMask_P1, + "", + ""); + I_Method0(osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method0(const osg::ColorMask *, getColorMask, + Properties::NON_VIRTUAL, + __C5_osg_ColorMask_P1__getColorMask, + "", + ""); + I_Method1(void, setClearColor, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearColor__C5_osg_Vec4_R1, + "Set the clear color used in glClearColor(. ", + ".). glClearColor is only called if mask & GL_COLOR_BUFFER_BIT is true "); + I_Method0(const osg::Vec4 &, getClearColor, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearColor, + "Get the clear color. ", + ""); + I_Method1(void, setClearAccum, IN, const osg::Vec4 &, color, + Properties::NON_VIRTUAL, + __void__setClearAccum__C5_osg_Vec4_R1, + "Set the clear accum used in glClearAccum(. ", + ".). glClearAcumm is only called if mask & GL_ACCUM_BUFFER_BIT is true. "); + I_Method0(const osg::Vec4 &, getClearAccum, + Properties::NON_VIRTUAL, + __C5_osg_Vec4_R1__getClearAccum, + "Get the clear accum. ", + ""); + I_Method1(void, setClearDepth, IN, double, depth, + Properties::NON_VIRTUAL, + __void__setClearDepth__double, + "Set the clear depth used in glClearDepth(. ", + ".). Defaults to 1.0 glClearDepth is only called if mask & GL_DEPTH_BUFFER_BIT is true. "); + I_Method0(double, getClearDepth, + Properties::NON_VIRTUAL, + __double__getClearDepth, + "Get the clear depth. ", + ""); + I_Method1(void, setClearStencil, IN, int, stencil, + Properties::NON_VIRTUAL, + __void__setClearStencil__int, + "Set the clear stencil value used in glClearStencil(). ", + "Defaults to 0; glClearStencil is only called if mask & GL_STENCIL_BUFFER_BIT is true "); + I_Method0(int, getClearStencil, + Properties::NON_VIRTUAL, + __int__getClearStencil, + "Get the clear color. ", + ""); + I_Method1(void, setCamera, IN, osg::Camera *, camera, + Properties::NON_VIRTUAL, + __void__setCamera__osg_Camera_P1, + "", + ""); + I_Method0(osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __osg_Camera_P1__getCamera, + "", + ""); + I_Method0(const osg::Camera *, getCamera, + Properties::NON_VIRTUAL, + __C5_osg_Camera_P1__getCamera, + "", + ""); + I_Method1(void, setCameraRequiresSetUp, IN, bool, flag, + Properties::NON_VIRTUAL, + __void__setCameraRequiresSetUp__bool, + "", + ""); + I_Method0(bool, getCameraRequiresSetUp, + Properties::NON_VIRTUAL, + __bool__getCameraRequiresSetUp, + "", + ""); + I_Method1(void, runCameraSetUp, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__runCameraSetUp__osg_RenderInfo_R1, + "Attempt the set the RenderStage from the Camera settings. ", + ""); + I_MethodWithDefaults3(void, setTexture, IN, osg::Texture *, texture, , IN, unsigned int, level, 0, IN, unsigned int, face, 0, + Properties::NON_VIRTUAL, + __void__setTexture__osg_Texture_P1__unsigned_int__unsigned_int, + "", + ""); + I_Method0(osg::Texture *, getTexture, + Properties::NON_VIRTUAL, + __osg_Texture_P1__getTexture, + "", + ""); + I_Method1(void, setImage, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__setImage__osg_Image_P1, + "", + ""); + I_Method0(osg::Image *, getImage, + Properties::NON_VIRTUAL, + __osg_Image_P1__getImage, + "", + ""); + I_Method1(void, setImageReadPixelFormat, IN, GLenum, format, + Properties::NON_VIRTUAL, + __void__setImageReadPixelFormat__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelFormat, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelFormat, + "", + ""); + I_Method1(void, setImageReadPixelDataType, IN, GLenum, type, + Properties::NON_VIRTUAL, + __void__setImageReadPixelDataType__GLenum, + "", + ""); + I_Method0(GLenum, getImageReadPixelDataType, + Properties::NON_VIRTUAL, + __GLenum__getImageReadPixelDataType, + "", + ""); + I_Method1(void, setFrameBufferObject, IN, osg::FrameBufferObject *, fbo, + Properties::NON_VIRTUAL, + __void__setFrameBufferObject__osg_FrameBufferObject_P1, + "", + ""); + I_Method0(osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method0(const osg::FrameBufferObject *, getFrameBufferObject, + Properties::NON_VIRTUAL, + __C5_osg_FrameBufferObject_P1__getFrameBufferObject, + "", + ""); + I_Method1(void, setGraphicsContext, IN, osg::GraphicsContext *, context, + Properties::NON_VIRTUAL, + __void__setGraphicsContext__osg_GraphicsContext_P1, + "", + ""); + I_Method0(osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method0(const osg::GraphicsContext *, getGraphicsContext, + Properties::NON_VIRTUAL, + __C5_osg_GraphicsContext_P1__getGraphicsContext, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainerMatrix, IN, const osg::Matrix &, matrix, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainerMatrix__C5_osg_Matrix_R1, + "", + ""); + I_Method0(const osg::Matrix &, getInheritedPositionalStateContainerMatrix, + Properties::NON_VIRTUAL, + __C5_osg_Matrix_R1__getInheritedPositionalStateContainerMatrix, + "", + ""); + I_Method1(void, setInheritedPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setInheritedPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getInheritedPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getInheritedPositionalStateContainer, + "", + ""); + I_Method1(void, setPositionalStateContainer, IN, osgUtil::PositionalStateContainer *, rsl, + Properties::NON_VIRTUAL, + __void__setPositionalStateContainer__PositionalStateContainer_P1, + "", + ""); + I_Method0(osgUtil::PositionalStateContainer *, getPositionalStateContainer, + Properties::NON_VIRTUAL, + __PositionalStateContainer_P1__getPositionalStateContainer, + "", + ""); + I_Method2(void, addPositionedAttribute, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedAttribute__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method3(void, addPositionedTextureAttribute, IN, unsigned int, textureUnit, IN, osg::RefMatrix *, matrix, IN, const osg::StateAttribute *, attr, + Properties::VIRTUAL, + __void__addPositionedTextureAttribute__unsigned_int__osg_RefMatrix_P1__C5_osg_StateAttribute_P1, + "", + ""); + I_Method1(void, copyTexture, IN, osg::RenderInfo &, renderInfo, + Properties::NON_VIRTUAL, + __void__copyTexture__osg_RenderInfo_R1, + "", + ""); + I_Method0(void, sort, + Properties::VIRTUAL, + __void__sort, + "", + ""); + I_Method2(void, drawPreRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPreRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, draw, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__draw__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method3(void, drawInner, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, IN, bool &, doCopyTexture, + Properties::VIRTUAL, + __void__drawInner__osg_RenderInfo_R1__RenderLeaf_P1R1__bool_R1, + "", + ""); + I_Method2(void, drawPostRenderStages, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawPostRenderStages__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method2(void, drawImplementation, IN, osg::RenderInfo &, renderInfo, IN, osgUtil::RenderLeaf *&, previous, + Properties::VIRTUAL, + __void__drawImplementation__osg_RenderInfo_R1__RenderLeaf_P1R1, + "", + ""); + I_Method1(void, addToDependencyList, IN, osgUtil::RenderStage *, rs, + Properties::NON_VIRTUAL, + __void__addToDependencyList__RenderStage_P1, + "", + ""); + I_MethodWithDefaults2(void, addPreRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPreRenderStage__RenderStage_P1__int, + "", + ""); + I_MethodWithDefaults2(void, addPostRenderStage, IN, osgUtil::RenderStage *, rs, , IN, int, order, 0, + Properties::NON_VIRTUAL, + __void__addPostRenderStage__RenderStage_P1__int, + "", + ""); + I_Method1(bool, getStats, IN, osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __bool__getStats__Statistics_R1, + "Extract stats for current draw list. ", + ""); + I_Method0(unsigned int, computeNumberOfDynamicRenderLeaves, + Properties::VIRTUAL, + __unsigned_int__computeNumberOfDynamicRenderLeaves, + "Compute the number of dynamic RenderLeaves. ", + ""); + I_Method2(void, attach, IN, osg::Camera::BufferComponent, buffer, IN, osg::Image *, image, + Properties::NON_VIRTUAL, + __void__attach__osg_Camera_BufferComponent__osg_Image_P1, + "", + ""); + I_Constructor0(____RenderStage, + "", + ""); + I_Constructor1(IN, SortMode, mode, + Properties::NON_EXPLICIT, + ____RenderStage__SortMode, + "", + ""); + I_ConstructorWithDefaults2(IN, const osgUtil::RenderStage &, rhs, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY, + ____RenderStage__C5_RenderStage_R1__C5_osg_CopyOp_R1, + "", + ""); + I_Method0(osg::Object *, cloneType, + Properties::VIRTUAL, + __osg_Object_P1__cloneType, + "", + ""); + I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop, + Properties::VIRTUAL, + __osg_Object_P1__clone__C5_osg_CopyOp_R1, + "", + ""); + I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj, + Properties::VIRTUAL, + __bool__isSameKindAs__C5_osg_Object_P1, + "", + ""); + I_Method0(const char *, className, + Properties::VIRTUAL, + __C5_char_P1__className, + "", + ""); I_Method0(void, reset, Properties::VIRTUAL, __void__reset, @@ -450,5 +1542,16 @@ BEGIN_VALUE_REFLECTOR(osgUtil::RenderStage::Attachment) I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); I_PublicMemberProperty(GLenum, _imageReadPixelFormat); I_PublicMemberProperty(GLenum, _imageReadPixelDataType); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); +END_REFLECTOR + +BEGIN_VALUE_REFLECTOR(osgUtil::RenderStage::Attachment) + I_Constructor0(____Attachment, + "", + ""); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); + I_PublicMemberProperty(GLenum, _imageReadPixelFormat); + I_PublicMemberProperty(GLenum, _imageReadPixelDataType); + I_PublicMemberProperty(osg::ref_ptr< osg::Image >, _image); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/SceneView.cpp b/src/osgWrappers/osgUtil/SceneView.cpp index 42ff1e01e..cd9223922 100644 --- a/src/osgWrappers/osgUtil/SceneView.cpp +++ b/src/osgWrappers/osgUtil/SceneView.cpp @@ -20,20 +20,20 @@ #include #include #include -#include #include #include +#include #include #include #include #include -#include -#include +#include #include #include -#include #include +#include #include +#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgUtil/Simplifier.cpp b/src/osgWrappers/osgUtil/Simplifier.cpp index 322666096..e102de171 100644 --- a/src/osgWrappers/osgUtil/Simplifier.cpp +++ b/src/osgWrappers/osgUtil/Simplifier.cpp @@ -449,39 +449,3 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier) __void__setSmoothing__bool); END_REFLECTOR -BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____ContinueSimplificationCallback, - "", - ""); - I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, - Properties::VIRTUAL, - __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, - "return true if mesh should be continued to be simplified, return false to stop simplification. ", - ""); - I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, - Properties::VIRTUAL, - __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, - "return true if mesh should be continued to be simplified, return false to stop simplification. ", - ""); -END_REFLECTOR - -BEGIN_OBJECT_REFLECTOR(osgUtil::Simplifier::ContinueSimplificationCallback) - I_BaseType(osg::Referenced); - I_BaseType(osg::Referenced); - I_Constructor0(____ContinueSimplificationCallback, - "", - ""); - I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, - Properties::VIRTUAL, - __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, - "return true if mesh should be continued to be simplified, return false to stop simplification. ", - ""); - I_Method4(bool, continueSimplification, IN, const osgUtil::Simplifier &, simplifier, IN, float, nextError, IN, unsigned int, numOriginalPrimitives, IN, unsigned int, numRemainingPrimitives, - Properties::VIRTUAL, - __bool__continueSimplification__C5_Simplifier_R1__float__unsigned_int__unsigned_int, - "return true if mesh should be continued to be simplified, return false to stop simplification. ", - ""); -END_REFLECTOR - diff --git a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp index 93009f82f..ff04b1bd9 100644 --- a/src/osgWrappers/osgUtil/SmoothingVisitor.cpp +++ b/src/osgWrappers/osgUtil/SmoothingVisitor.cpp @@ -10,8 +10,8 @@ #include #include +#include #include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -24,6 +24,15 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____SmoothingVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "apply smoothing method to all geode geosets. ", + ""); I_Constructor0(____SmoothingVisitor, "default to traversing all children. ", ""); @@ -36,5 +45,38 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) __void__smooth__osg_Geometry_R1_S, "smooth geoset by creating per vertex normals. ", ""); + I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset, + __void__smooth__osg_Geometry_R1_S, + "smooth geoset by creating per vertex normals. ", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::SmoothingVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____SmoothingVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "apply smoothing method to all geode geosets. ", + ""); + I_Constructor0(____SmoothingVisitor, + "default to traversing all children. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, geode, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "apply smoothing method to all geode geosets. ", + ""); + I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset, + __void__smooth__osg_Geometry_R1_S, + "smooth geoset by creating per vertex normals. ", + ""); + I_StaticMethod1(void, smooth, IN, osg::Geometry &, geoset, + __void__smooth__osg_Geometry_R1_S, + "smooth geoset by creating per vertex normals. ", + ""); END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/Statistics.cpp b/src/osgWrappers/osgUtil/Statistics.cpp index 3d19df5c9..59edb41f8 100644 --- a/src/osgWrappers/osgUtil/Statistics.cpp +++ b/src/osgWrappers/osgUtil/Statistics.cpp @@ -10,16 +10,17 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include #include -#include -#include -#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -48,6 +49,7 @@ BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) + I_BaseType(osg::PrimitiveFunctor); I_BaseType(osg::PrimitiveFunctor); I_Constructor0(____Statistics, "", @@ -65,42 +67,42 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, - "Sets the array of vertices used to describe the primitives. ", - "Somehow mimics the OpenGL glVertexPointer() function."); + "", + ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, - "Sets the array of vertices used to describe the primitives. ", - "Somehow mimics the OpenGL glVertexPointer() function."); + "", + ""); I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, Properties::VIRTUAL, __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, - "Sets the array of vertices used to describe the primitives. ", - "Somehow mimics the OpenGL glVertexPointer() function."); + "", + ""); I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, Properties::VIRTUAL, __void__drawArrays__GLenum__GLint__GLsizei, - "Mimics the OpenGL glDrawArrays() function. ", + "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, - "Mimics the OpenGL glDrawElements() function. ", + "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, - "Mimics the OpenGL glDrawElements() function. ", + "", ""); I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, Properties::VIRTUAL, __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, - "Mimics the OpenGL glDrawElements() function. ", + "", ""); I_Method1(void, begin, IN, GLenum, mode, Properties::VIRTUAL, __void__begin__GLenum, - "Mimics the OpenGL glBegin() function. ", + "", ""); I_Method0(void, vertex, Properties::NON_VIRTUAL, @@ -110,37 +112,526 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, Properties::VIRTUAL, __void__vertex__float__float__float, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method1(void, vertex, IN, const osg::Vec3 &, x, Properties::VIRTUAL, __void__vertex__C5_osg_Vec3_R1, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method1(void, vertex, IN, const osg::Vec2 &, x, Properties::VIRTUAL, __void__vertex__C5_osg_Vec2_R1, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method1(void, vertex, IN, const osg::Vec4 &, x, Properties::VIRTUAL, __void__vertex__C5_osg_Vec4_R1, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method2(void, vertex, IN, float, x, IN, float, x, Properties::VIRTUAL, __void__vertex__float__float, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, Properties::VIRTUAL, __void__vertex__float__float__float__float, - "Mimics the OpenGL glVertex() \"family of functions\". ", + "", ""); I_Method0(void, end, Properties::VIRTUAL, __void__end, - "Mimics the OpenGL glEnd() function. ", + "", + ""); + I_Method0(void, addDrawable, + Properties::NON_VIRTUAL, + __void__addDrawable, + "", + ""); + I_Method0(void, addMatrix, + Properties::NON_VIRTUAL, + __void__addMatrix, + "", + ""); + I_Method1(void, addLight, IN, int, np, + Properties::NON_VIRTUAL, + __void__addLight__int, + "", + ""); + I_Method1(void, addImpostor, IN, int, np, + Properties::NON_VIRTUAL, + __void__addImpostor__int, + "", + ""); + I_Method0(int, getBins, + Properties::NON_VIRTUAL, + __int__getBins, + "", + ""); + I_Method1(void, setDepth, IN, int, d, + Properties::NON_VIRTUAL, + __void__setDepth__int, + "", + ""); + I_Method1(void, addBins, IN, int, np, + Properties::NON_VIRTUAL, + __void__addBins__int, + "", + ""); + I_Method1(void, setBinNo, IN, int, n, + Properties::NON_VIRTUAL, + __void__setBinNo__int, + "", + ""); + I_Method1(void, add, IN, const osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __void__add__C5_Statistics_R1, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesBegin, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesEnd, + "", + ""); + I_Constructor0(____Statistics, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t, + Properties::NON_VIRTUAL, + __void__setType__StatsType, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + Properties::VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method0(void, vertex, + Properties::NON_VIRTUAL, + __void__vertex, + "", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec2_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec4_R1, + "", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float, + "", + ""); + I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float__float, + "", + ""); + I_Method0(void, end, + Properties::VIRTUAL, + __void__end, + "", + ""); + I_Method0(void, addDrawable, + Properties::NON_VIRTUAL, + __void__addDrawable, + "", + ""); + I_Method0(void, addMatrix, + Properties::NON_VIRTUAL, + __void__addMatrix, + "", + ""); + I_Method1(void, addLight, IN, int, np, + Properties::NON_VIRTUAL, + __void__addLight__int, + "", + ""); + I_Method1(void, addImpostor, IN, int, np, + Properties::NON_VIRTUAL, + __void__addImpostor__int, + "", + ""); + I_Method0(int, getBins, + Properties::NON_VIRTUAL, + __int__getBins, + "", + ""); + I_Method1(void, setDepth, IN, int, d, + Properties::NON_VIRTUAL, + __void__setDepth__int, + "", + ""); + I_Method1(void, addBins, IN, int, np, + Properties::NON_VIRTUAL, + __void__addBins__int, + "", + ""); + I_Method1(void, setBinNo, IN, int, n, + Properties::NON_VIRTUAL, + __void__setBinNo__int, + "", + ""); + I_Method1(void, add, IN, const osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __void__add__C5_Statistics_R1, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesBegin, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesEnd, + "", + ""); + I_SimpleProperty(int, BinNo, + 0, + __void__setBinNo__int); + I_SimpleProperty(int, Bins, + __int__getBins, + 0); + I_SimpleProperty(int, Depth, + 0, + __void__setDepth__int); + I_SimpleProperty(osgUtil::Statistics::StatsType, Type, + 0, + __void__setType__StatsType); + I_PublicMemberProperty(int, numDrawables); + I_PublicMemberProperty(int, nummat); + I_PublicMemberProperty(int, nbins); + I_PublicMemberProperty(int, nlights); + I_PublicMemberProperty(int, depth); + I_PublicMemberProperty(int, _binNo); + I_PublicMemberProperty(osgUtil::Statistics::StatsType, stattype); + I_PublicMemberProperty(int, nimpostor); + I_PublicMemberProperty(unsigned int, _vertexCount); + I_PublicMemberProperty(osgUtil::Statistics::PrimitiveValueMap, _primitiveCount); + I_PublicMemberProperty(GLenum, _currentPrimitiveFunctorMode); +END_REFLECTOR + +TYPE_NAME_ALIAS(std::pair< unsigned int COMMA unsigned int >, osgUtil::Statistics::PrimitivePair); + +TYPE_NAME_ALIAS(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >, osgUtil::Statistics::PrimitiveValueMap); + +TYPE_NAME_ALIAS(std::map< GLenum COMMA unsigned int >, osgUtil::Statistics::PrimitiveCountMap); + +BEGIN_ENUM_REFLECTOR(osgUtil::Statistics::StatsType) + I_EnumLabel(osgUtil::Statistics::STAT_NONE); + I_EnumLabel(osgUtil::Statistics::STAT_FRAMERATE); + I_EnumLabel(osgUtil::Statistics::STAT_GRAPHS); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMS); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERVIEW); + I_EnumLabel(osgUtil::Statistics::STAT_PRIMSPERBIN); + I_EnumLabel(osgUtil::Statistics::STAT_DC); + I_EnumLabel(osgUtil::Statistics::STAT_RESTART); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Statistics) + I_BaseType(osg::PrimitiveFunctor); + I_BaseType(osg::PrimitiveFunctor); + I_Constructor0(____Statistics, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t, + Properties::NON_VIRTUAL, + __void__setType__StatsType, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + Properties::VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method0(void, vertex, + Properties::NON_VIRTUAL, + __void__vertex, + "", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec2_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec4_R1, + "", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float, + "", + ""); + I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float__float, + "", + ""); + I_Method0(void, end, + Properties::VIRTUAL, + __void__end, + "", + ""); + I_Method0(void, addDrawable, + Properties::NON_VIRTUAL, + __void__addDrawable, + "", + ""); + I_Method0(void, addMatrix, + Properties::NON_VIRTUAL, + __void__addMatrix, + "", + ""); + I_Method1(void, addLight, IN, int, np, + Properties::NON_VIRTUAL, + __void__addLight__int, + "", + ""); + I_Method1(void, addImpostor, IN, int, np, + Properties::NON_VIRTUAL, + __void__addImpostor__int, + "", + ""); + I_Method0(int, getBins, + Properties::NON_VIRTUAL, + __int__getBins, + "", + ""); + I_Method1(void, setDepth, IN, int, d, + Properties::NON_VIRTUAL, + __void__setDepth__int, + "", + ""); + I_Method1(void, addBins, IN, int, np, + Properties::NON_VIRTUAL, + __void__addBins__int, + "", + ""); + I_Method1(void, setBinNo, IN, int, n, + Properties::NON_VIRTUAL, + __void__setBinNo__int, + "", + ""); + I_Method1(void, add, IN, const osgUtil::Statistics &, stats, + Properties::NON_VIRTUAL, + __void__add__C5_Statistics_R1, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesBegin, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesBegin, + "", + ""); + I_Method0(osgUtil::Statistics::PrimitiveCountMap::iterator, GetPrimitivesEnd, + Properties::NON_VIRTUAL, + __PrimitiveCountMap_iterator__GetPrimitivesEnd, + "", + ""); + I_Constructor0(____Statistics, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, setType, IN, osgUtil::Statistics::StatsType, t, + Properties::NON_VIRTUAL, + __void__setType__StatsType, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec3 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec3_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec2 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec2_P1, + "", + ""); + I_Method2(void, setVertexArray, IN, unsigned int, count, IN, const osg::Vec4 *, x, + Properties::VIRTUAL, + __void__setVertexArray__unsigned_int__C5_osg_Vec4_P1, + "", + ""); + I_Method3(void, drawArrays, IN, GLenum, mode, IN, GLint, x, IN, GLsizei, count, + Properties::VIRTUAL, + __void__drawArrays__GLenum__GLint__GLsizei, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLubyte *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLubyte_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLushort *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLushort_P1, + "", + ""); + I_Method3(void, drawElements, IN, GLenum, mode, IN, GLsizei, count, IN, const GLuint *, x, + Properties::VIRTUAL, + __void__drawElements__GLenum__GLsizei__C5_GLuint_P1, + "", + ""); + I_Method1(void, begin, IN, GLenum, mode, + Properties::VIRTUAL, + __void__begin__GLenum, + "", + ""); + I_Method0(void, vertex, + Properties::NON_VIRTUAL, + __void__vertex, + "", + ""); + I_Method3(void, vertex, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec3 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec3_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec2 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec2_R1, + "", + ""); + I_Method1(void, vertex, IN, const osg::Vec4 &, x, + Properties::VIRTUAL, + __void__vertex__C5_osg_Vec4_R1, + "", + ""); + I_Method2(void, vertex, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float, + "", + ""); + I_Method4(void, vertex, IN, float, x, IN, float, x, IN, float, x, IN, float, x, + Properties::VIRTUAL, + __void__vertex__float__float__float__float, + "", + ""); + I_Method0(void, end, + Properties::VIRTUAL, + __void__end, + "", ""); I_Method0(void, addDrawable, Properties::NON_VIRTUAL, @@ -229,42 +720,96 @@ TYPE_NAME_ALIAS(std::set< osg::Drawable * >, osgUtil::StatsVisitor::DrawableSet) TYPE_NAME_ALIAS(std::set< osg::StateSet * >, osgUtil::StatsVisitor::StateSetSet); BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_Constructor0(____StatsVisitor, "", ""); I_Method0(void, reset, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__reset, - "Method to call to reset visitor. ", - "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + "", + ""); I_Method1(void, apply, IN, osg::Node &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_Node_R1, "", ""); I_Method1(void, apply, IN, osg::Group &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_Group_R1, "", ""); I_Method1(void, apply, IN, osg::Transform &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_Transform_R1, "", ""); I_Method1(void, apply, IN, osg::LOD &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_LOD_R1, "", ""); I_Method1(void, apply, IN, osg::Switch &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, __void__apply__osg_Switch_R1, "", ""); I_Method1(void, apply, IN, osg::Geode &, node, - Properties::VIRTUAL, + Properties::NON_VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method0(void, totalUpStats, + Properties::NON_VIRTUAL, + __void__totalUpStats, + "", + ""); + I_Method1(void, print, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__print__std_ostream_R1, + "", + ""); + I_Constructor0(____StatsVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::NON_VIRTUAL, __void__apply__osg_Geode_R1, "", ""); @@ -303,13 +848,138 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor) I_PublicMemberProperty(osgUtil::Statistics, _instancedStats); END_REFLECTOR -STD_MAP_REFLECTOR(std::map< GLenum COMMA osgUtil::Statistics::PrimitivePair >); +TYPE_NAME_ALIAS(std::set< osg::Node * >, osgUtil::StatsVisitor::NodeSet); -STD_MAP_REFLECTOR(std::map< GLenum COMMA unsigned int >); +TYPE_NAME_ALIAS(std::set< osg::Drawable * >, osgUtil::StatsVisitor::DrawableSet); -STD_PAIR_REFLECTOR(std::pair< unsigned int COMMA unsigned int >); +TYPE_NAME_ALIAS(std::set< osg::StateSet * >, osgUtil::StatsVisitor::StateSetSet); -STD_SET_REFLECTOR(std::set< osg::Drawable * >); - -STD_SET_REFLECTOR(std::set< osg::StateSet * >); +BEGIN_OBJECT_REFLECTOR(osgUtil::StatsVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____StatsVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method0(void, totalUpStats, + Properties::NON_VIRTUAL, + __void__totalUpStats, + "", + ""); + I_Method1(void, print, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__print__std_ostream_R1, + "", + ""); + I_Constructor0(____StatsVisitor, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Node_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::NON_VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Drawable &, drawable, + Properties::NON_VIRTUAL, + __void__apply__osg_Drawable_R1, + "", + ""); + I_Method0(void, totalUpStats, + Properties::NON_VIRTUAL, + __void__totalUpStats, + "", + ""); + I_Method1(void, print, IN, std::ostream &, out, + Properties::NON_VIRTUAL, + __void__print__std_ostream_R1, + "", + ""); + I_PublicMemberProperty(unsigned int, _numInstancedGroup); + I_PublicMemberProperty(unsigned int, _numInstancedSwitch); + I_PublicMemberProperty(unsigned int, _numInstancedLOD); + I_PublicMemberProperty(unsigned int, _numInstancedTransform); + I_PublicMemberProperty(unsigned int, _numInstancedGeode); + I_PublicMemberProperty(unsigned int, _numInstancedDrawable); + I_PublicMemberProperty(unsigned int, _numInstancedGeometry); + I_PublicMemberProperty(unsigned int, _numInstancedStateSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _groupSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _transformSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _lodSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _switchSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::NodeSet, _geodeSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::DrawableSet, _drawableSet); + I_PublicMemberProperty(osgUtil::StatsVisitor::DrawableSet, _geometrySet); + I_PublicMemberProperty(osgUtil::StatsVisitor::StateSetSet, _statesetSet); + I_PublicMemberProperty(osgUtil::Statistics, _uniqueStats); + I_PublicMemberProperty(osgUtil::Statistics, _instancedStats); +END_REFLECTOR diff --git a/src/osgWrappers/osgUtil/Tessellator.cpp b/src/osgWrappers/osgUtil/Tessellator.cpp index 79c620708..19936a038 100644 --- a/src/osgWrappers/osgUtil/Tessellator.cpp +++ b/src/osgWrappers/osgUtil/Tessellator.cpp @@ -10,8 +10,9 @@ #include #include -#include -#include +#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -42,6 +43,90 @@ END_REFLECTOR BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) I_BaseType(osg::Referenced); + I_BaseType(osg::Referenced); + I_Constructor0(____Tessellator, + "", + ""); + I_Method1(void, setBoundaryOnly, IN, const bool, tt, + Properties::NON_VIRTUAL, + __void__setBoundaryOnly__C5_bool, + "Set and get tessellation request boundary only on/off. ", + ""); + I_Method0(const bool, getBoundaryOnly, + Properties::NON_VIRTUAL, + __C5_bool__getBoundaryOnly, + "", + ""); + I_Method1(void, setWindingType, IN, const osgUtil::Tessellator::WindingType, wt, + Properties::NON_VIRTUAL, + __void__setWindingType__C5_WindingType, + "Set and get tessellation windong rule. ", + ""); + I_Method0(const osgUtil::Tessellator::WindingType, getWindingType, + Properties::NON_VIRTUAL, + __C5_WindingType__getWindingType, + "", + ""); + I_Method1(void, setTessellationType, IN, const osgUtil::Tessellator::TessellationType, tt, + Properties::NON_VIRTUAL, + __void__setTessellationType__C5_TessellationType, + "Set and get tessellation type. ", + ""); + I_Method0(const osgUtil::Tessellator::TessellationType, getTessellationType, + Properties::NON_VIRTUAL, + __C5_TessellationType__getTessellationType, + "", + ""); + I_Method1(void, retessellatePolygons, IN, osg::Geometry &, cxgeom, + Properties::NON_VIRTUAL, + __void__retessellatePolygons__osg_Geometry_R1, + "Change the contours lists of the geometry into tessellated primitives (the list of primitives in the original geometry is stored in the Tessellator for possible re-use. ", + "The name remains retessellatePolygons although it now handles trifans, strips, quads etc. as well as Polygons so as to not break old codes relying on this function name. "); + I_Method1(void, setTessellationNormal, IN, const osg::Vec3, norm, + Properties::NON_VIRTUAL, + __void__setTessellationNormal__C5_osg_Vec3, + "Define the normal to the tessellated polygon - this provides a hint how to tessellate the contours; see gluTessNormal in red book or man pages. ", + "GWM July 2005. Can improve teselation \"For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.\""); + I_Method0(osg::Geometry::PrimitiveSetList, getContours, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList__getContours, + "", + ""); + I_Method0(void, beginTessellation, + Properties::NON_VIRTUAL, + __void__beginTessellation, + "", + ""); + I_Method0(void, beginContour, + Properties::NON_VIRTUAL, + __void__beginContour, + "", + ""); + I_Method1(void, addVertex, IN, osg::Vec3 *, vertex, + Properties::NON_VIRTUAL, + __void__addVertex__osg_Vec3_P1, + "", + ""); + I_Method0(void, endContour, + Properties::NON_VIRTUAL, + __void__endContour, + "", + ""); + I_Method0(void, endTessellation, + Properties::NON_VIRTUAL, + __void__endTessellation, + "", + ""); + I_Method0(osgUtil::Tessellator::PrimList &, getPrimList, + Properties::NON_VIRTUAL, + __PrimList_R1__getPrimList, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); I_Constructor0(____Tessellator, "", ""); @@ -145,59 +230,210 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) __void__setWindingType__C5_WindingType); END_REFLECTOR -TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::Prim::VecList); +TYPE_NAME_ALIAS(std::vector< osg::Vec3 * >, osgUtil::Tessellator::VertexPointList); -BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator::Prim) +TYPE_NAME_ALIAS(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >, osgUtil::Tessellator::PrimList); + +BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::WindingType) + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_ODD); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_NONZERO); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_POSITIVE); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_NEGATIVE); + I_EnumLabel(osgUtil::Tessellator::TESS_WINDING_ABS_GEQ_TWO); +END_REFLECTOR + +BEGIN_ENUM_REFLECTOR(osgUtil::Tessellator::TessellationType) + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_GEOMETRY); + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_DRAWABLE); + I_EnumLabel(osgUtil::Tessellator::TESS_TYPE_POLYGONS); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::Tessellator) I_BaseType(osg::Referenced); - I_Constructor1(IN, GLenum, mode, - Properties::NON_EXPLICIT, - ____Prim__GLenum, + I_BaseType(osg::Referenced); + I_Constructor0(____Tessellator, "", ""); - I_PublicMemberProperty(GLenum, _mode); - I_PublicMemberProperty(osgUtil::Tessellator::Prim::VecList, _vertices); -END_REFLECTOR - -BEGIN_VALUE_REFLECTOR(osg::ref_ptr< osgUtil::Tessellator::Prim >) - I_Constructor0(____ref_ptr, + I_Method1(void, setBoundaryOnly, IN, const bool, tt, + Properties::NON_VIRTUAL, + __void__setBoundaryOnly__C5_bool, + "Set and get tessellation request boundary only on/off. ", + ""); + I_Method0(const bool, getBoundaryOnly, + Properties::NON_VIRTUAL, + __C5_bool__getBoundaryOnly, + "", + ""); + I_Method1(void, setWindingType, IN, const osgUtil::Tessellator::WindingType, wt, + Properties::NON_VIRTUAL, + __void__setWindingType__C5_WindingType, + "Set and get tessellation windong rule. ", + ""); + I_Method0(const osgUtil::Tessellator::WindingType, getWindingType, + Properties::NON_VIRTUAL, + __C5_WindingType__getWindingType, + "", + ""); + I_Method1(void, setTessellationType, IN, const osgUtil::Tessellator::TessellationType, tt, + Properties::NON_VIRTUAL, + __void__setTessellationType__C5_TessellationType, + "Set and get tessellation type. ", + ""); + I_Method0(const osgUtil::Tessellator::TessellationType, getTessellationType, + Properties::NON_VIRTUAL, + __C5_TessellationType__getTessellationType, + "", + ""); + I_Method1(void, retessellatePolygons, IN, osg::Geometry &, cxgeom, + Properties::NON_VIRTUAL, + __void__retessellatePolygons__osg_Geometry_R1, + "Change the contours lists of the geometry into tessellated primitives (the list of primitives in the original geometry is stored in the Tessellator for possible re-use. ", + "The name remains retessellatePolygons although it now handles trifans, strips, quads etc. as well as Polygons so as to not break old codes relying on this function name. "); + I_Method1(void, setTessellationNormal, IN, const osg::Vec3, norm, + Properties::NON_VIRTUAL, + __void__setTessellationNormal__C5_osg_Vec3, + "Define the normal to the tessellated polygon - this provides a hint how to tessellate the contours; see gluTessNormal in red book or man pages. ", + "GWM July 2005. Can improve teselation \"For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.\""); + I_Method0(osg::Geometry::PrimitiveSetList, getContours, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList__getContours, + "", + ""); + I_Method0(void, beginTessellation, + Properties::NON_VIRTUAL, + __void__beginTessellation, + "", + ""); + I_Method0(void, beginContour, + Properties::NON_VIRTUAL, + __void__beginContour, + "", + ""); + I_Method1(void, addVertex, IN, osg::Vec3 *, vertex, + Properties::NON_VIRTUAL, + __void__addVertex__osg_Vec3_P1, + "", + ""); + I_Method0(void, endContour, + Properties::NON_VIRTUAL, + __void__endContour, + "", + ""); + I_Method0(void, endTessellation, + Properties::NON_VIRTUAL, + __void__endTessellation, + "", + ""); + I_Method0(osgUtil::Tessellator::PrimList &, getPrimList, + Properties::NON_VIRTUAL, + __PrimList_R1__getPrimList, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_Constructor0(____Tessellator, "", ""); - I_Constructor1(IN, osgUtil::Tessellator::Prim *, ptr, - Properties::NON_EXPLICIT, - ____ref_ptr__T_P1, - "", - ""); - I_Constructor1(IN, const osg::ref_ptr< osgUtil::Tessellator::Prim > &, rp, - Properties::NON_EXPLICIT, - ____ref_ptr__C5_ref_ptr_R1, - "", - ""); - I_Method0(osgUtil::Tessellator::Prim *, get, + I_Method1(void, setBoundaryOnly, IN, const bool, tt, Properties::NON_VIRTUAL, - __T_P1__get, + __void__setBoundaryOnly__C5_bool, + "Set and get tessellation request boundary only on/off. ", + ""); + I_Method0(const bool, getBoundaryOnly, + Properties::NON_VIRTUAL, + __C5_bool__getBoundaryOnly, "", ""); - I_Method0(bool, valid, + I_Method1(void, setWindingType, IN, const osgUtil::Tessellator::WindingType, wt, Properties::NON_VIRTUAL, - __bool__valid, + __void__setWindingType__C5_WindingType, + "Set and get tessellation windong rule. ", + ""); + I_Method0(const osgUtil::Tessellator::WindingType, getWindingType, + Properties::NON_VIRTUAL, + __C5_WindingType__getWindingType, "", ""); - I_Method0(osgUtil::Tessellator::Prim *, release, + I_Method1(void, setTessellationType, IN, const osgUtil::Tessellator::TessellationType, tt, Properties::NON_VIRTUAL, - __T_P1__release, + __void__setTessellationType__C5_TessellationType, + "Set and get tessellation type. ", + ""); + I_Method0(const osgUtil::Tessellator::TessellationType, getTessellationType, + Properties::NON_VIRTUAL, + __C5_TessellationType__getTessellationType, "", ""); - I_Method1(void, swap, IN, osg::ref_ptr< osgUtil::Tessellator::Prim > &, rp, + I_Method1(void, retessellatePolygons, IN, osg::Geometry &, cxgeom, Properties::NON_VIRTUAL, - __void__swap__ref_ptr_R1, + __void__retessellatePolygons__osg_Geometry_R1, + "Change the contours lists of the geometry into tessellated primitives (the list of primitives in the original geometry is stored in the Tessellator for possible re-use. ", + "The name remains retessellatePolygons although it now handles trifans, strips, quads etc. as well as Polygons so as to not break old codes relying on this function name. "); + I_Method1(void, setTessellationNormal, IN, const osg::Vec3, norm, + Properties::NON_VIRTUAL, + __void__setTessellationNormal__C5_osg_Vec3, + "Define the normal to the tessellated polygon - this provides a hint how to tessellate the contours; see gluTessNormal in red book or man pages. ", + "GWM July 2005. Can improve teselation \"For example, if you know that all polygons lie in the x-y plane, call gluTessNormal(tess, 0.0, 0.0, 1.0) before rendering any polygons.\""); + I_Method0(osg::Geometry::PrimitiveSetList, getContours, + Properties::NON_VIRTUAL, + __osg_Geometry_PrimitiveSetList__getContours, "", ""); - I_SimpleProperty(osgUtil::Tessellator::Prim *, , - __T_P1__get, + I_Method0(void, beginTessellation, + Properties::NON_VIRTUAL, + __void__beginTessellation, + "", + ""); + I_Method0(void, beginContour, + Properties::NON_VIRTUAL, + __void__beginContour, + "", + ""); + I_Method1(void, addVertex, IN, osg::Vec3 *, vertex, + Properties::NON_VIRTUAL, + __void__addVertex__osg_Vec3_P1, + "", + ""); + I_Method0(void, endContour, + Properties::NON_VIRTUAL, + __void__endContour, + "", + ""); + I_Method0(void, endTessellation, + Properties::NON_VIRTUAL, + __void__endTessellation, + "", + ""); + I_Method0(osgUtil::Tessellator::PrimList &, getPrimList, + Properties::NON_VIRTUAL, + __PrimList_R1__getPrimList, + "", + ""); + I_Method0(void, reset, + Properties::NON_VIRTUAL, + __void__reset, + "", + ""); + I_SimpleProperty(const bool, BoundaryOnly, + __C5_bool__getBoundaryOnly, + __void__setBoundaryOnly__C5_bool); + I_SimpleProperty(osg::Geometry::PrimitiveSetList, Contours, + __osg_Geometry_PrimitiveSetList__getContours, 0); + I_SimpleProperty(osgUtil::Tessellator::PrimList &, PrimList, + __PrimList_R1__getPrimList, + 0); + I_SimpleProperty(const osg::Vec3, TessellationNormal, + 0, + __void__setTessellationNormal__C5_osg_Vec3); + I_SimpleProperty(const osgUtil::Tessellator::TessellationType, TessellationType, + __C5_TessellationType__getTessellationType, + __void__setTessellationType__C5_TessellationType); + I_SimpleProperty(const osgUtil::Tessellator::WindingType, WindingType, + __C5_WindingType__getWindingType, + __void__setWindingType__C5_WindingType); END_REFLECTOR -STD_VECTOR_REFLECTOR(std::vector< osg::Vec3 * >); - -STD_VECTOR_REFLECTOR(std::vector< osg::ref_ptr< osgUtil::Tessellator::Prim > >); - diff --git a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp index 918994aeb..b6238eac0 100644 --- a/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp +++ b/src/osgWrappers/osgUtil/TransformAttributeFunctor.cpp @@ -10,9 +10,8 @@ #include #include -#include -#include -#include +#include +#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -25,6 +24,44 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) I_BaseType(osg::Drawable::AttributeFunctor); + I_BaseType(osg::Drawable::AttributeFunctor); + I_Constructor1(IN, const osg::Matrix &, m, + Properties::NON_EXPLICIT, + ____TransformAttributeFunctor__C5_osg_Matrix_R1, + "Construct a functor to transform a drawable's vertex and normal attributes by specified matrix. ", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin, + Properties::VIRTUAL, + __void__apply__osg_Drawable_AttributeType__unsigned_int__osg_Vec3_P1, + "Do the work of transforming vertex and normal attributes. ", + ""); + I_Constructor1(IN, const osg::Matrix &, m, + Properties::NON_EXPLICIT, + ____TransformAttributeFunctor__C5_osg_Matrix_R1, + "Construct a functor to transform a drawable's vertex and normal attributes by specified matrix. ", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin, + Properties::VIRTUAL, + __void__apply__osg_Drawable_AttributeType__unsigned_int__osg_Vec3_P1, + "Do the work of transforming vertex and normal attributes. ", + ""); + I_PublicMemberProperty(osg::Matrix, _m); + I_PublicMemberProperty(osg::Matrix, _im); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::TransformAttributeFunctor) + I_BaseType(osg::Drawable::AttributeFunctor); + I_BaseType(osg::Drawable::AttributeFunctor); + I_Constructor1(IN, const osg::Matrix &, m, + Properties::NON_EXPLICIT, + ____TransformAttributeFunctor__C5_osg_Matrix_R1, + "Construct a functor to transform a drawable's vertex and normal attributes by specified matrix. ", + ""); + I_Method3(void, apply, IN, osg::Drawable::AttributeType, type, IN, unsigned int, count, IN, osg::Vec3 *, begin, + Properties::VIRTUAL, + __void__apply__osg_Drawable_AttributeType__unsigned_int__osg_Vec3_P1, + "Do the work of transforming vertex and normal attributes. ", + ""); I_Constructor1(IN, const osg::Matrix &, m, Properties::NON_EXPLICIT, ____TransformAttributeFunctor__C5_osg_Matrix_R1, diff --git a/src/osgWrappers/osgUtil/UpdateVisitor.cpp b/src/osgWrappers/osgUtil/UpdateVisitor.cpp index f1fac7ae0..566e369e9 100644 --- a/src/osgWrappers/osgUtil/UpdateVisitor.cpp +++ b/src/osgWrappers/osgUtil/UpdateVisitor.cpp @@ -10,15 +10,15 @@ #include #include -#include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include -#include -#include -#include #include -#include #include #include @@ -31,6 +31,7 @@ #endif BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) + I_BaseType(osg::NodeVisitor); I_BaseType(osg::NodeVisitor); I_Constructor0(____UpdateVisitor, "", @@ -38,8 +39,187 @@ BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) I_Method0(void, reset, Properties::VIRTUAL, __void__reset, - "Method to call to reset visitor. ", - "Useful if your visitor accumulates state during a traversal, and you plan to reuse the visitor. To flush that state for the next traversal: call reset() prior to each traversal. "); + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "During traversal each type of node calls its callbacks and its children traversed. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Constructor0(____UpdateVisitor, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "During traversal each type of node calls its callbacks and its children traversed. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); +END_REFLECTOR + +BEGIN_OBJECT_REFLECTOR(osgUtil::UpdateVisitor) + I_BaseType(osg::NodeVisitor); + I_BaseType(osg::NodeVisitor); + I_Constructor0(____UpdateVisitor, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); + I_Method1(void, apply, IN, osg::Node &, node, + Properties::VIRTUAL, + __void__apply__osg_Node_R1, + "During traversal each type of node calls its callbacks and its children traversed. ", + ""); + I_Method1(void, apply, IN, osg::Geode &, node, + Properties::VIRTUAL, + __void__apply__osg_Geode_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Billboard &, node, + Properties::VIRTUAL, + __void__apply__osg_Billboard_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LightSource &, node, + Properties::VIRTUAL, + __void__apply__osg_LightSource_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Group &, node, + Properties::VIRTUAL, + __void__apply__osg_Group_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Transform &, node, + Properties::VIRTUAL, + __void__apply__osg_Transform_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Projection &, node, + Properties::VIRTUAL, + __void__apply__osg_Projection_R1, + "", + ""); + I_Method1(void, apply, IN, osg::Switch &, node, + Properties::VIRTUAL, + __void__apply__osg_Switch_R1, + "", + ""); + I_Method1(void, apply, IN, osg::LOD &, node, + Properties::VIRTUAL, + __void__apply__osg_LOD_R1, + "", + ""); + I_Method1(void, apply, IN, osg::OccluderNode &, node, + Properties::VIRTUAL, + __void__apply__osg_OccluderNode_R1, + "", + ""); + I_Constructor0(____UpdateVisitor, + "", + ""); + I_Method0(void, reset, + Properties::VIRTUAL, + __void__reset, + "", + ""); I_Method1(void, apply, IN, osg::Node &, node, Properties::VIRTUAL, __void__apply__osg_Node_R1, diff --git a/src/osgWrappers/osgViewer/CompositeViewer.cpp b/src/osgWrappers/osgViewer/CompositeViewer.cpp index 3ad8145a0..faca1cc55 100644 --- a/src/osgWrappers/osgViewer/CompositeViewer.cpp +++ b/src/osgWrappers/osgViewer/CompositeViewer.cpp @@ -16,8 +16,8 @@ #include #include #include +#include #include -#include // Must undefine IN and OUT macros defined in Windows headers #ifdef IN diff --git a/src/osgWrappers/osgViewer/GNUmakefile b/src/osgWrappers/osgViewer/GNUmakefile index 898d1b5ec..be439166f 100644 --- a/src/osgWrappers/osgViewer/GNUmakefile +++ b/src/osgWrappers/osgViewer/GNUmakefile @@ -6,8 +6,6 @@ CXXFILES =\ GraphicsWindow.cpp\ HelpHandler.cpp\ Scene.cpp\ - SimpleViewer.cpp\ - StatsHandler.cpp\ View.cpp\ Viewer.cpp\ diff --git a/src/osgWrappers/osgViewer/View.cpp b/src/osgWrappers/osgViewer/View.cpp index b0390299b..32411215f 100644 --- a/src/osgWrappers/osgViewer/View.cpp +++ b/src/osgWrappers/osgViewer/View.cpp @@ -10,16 +10,7 @@ #include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include #include // Must undefine IN and OUT macros defined in Windows headers @@ -166,635 +157,3 @@ BEGIN_OBJECT_REFLECTOR(osgViewer::EndOfDynamicDrawBlock) __void__setNumOfBlocks__unsigned_int); END_REFLECTOR -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers); - -BEGIN_OBJECT_REFLECTOR(osgViewer::View) - I_BaseType(osg::View); - I_BaseType(osgGA::GUIActionAdapter); - I_BaseType(osg::View); - I_BaseType(osgGA::GUIActionAdapter); - I_Constructor0(____View, - "", - ""); - I_Method0(osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __Scene_P1__getScene, - "", - ""); - I_Method0(const osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __C5_Scene_P1__getScene, - "", - ""); - I_Method1(void, setSceneData, IN, osg::Node *, node, - Properties::VIRTUAL, - __void__setSceneData__osg_Node_P1, - "", - ""); - I_Method0(osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __osg_Node_P1__getSceneData, - "", - ""); - I_Method0(const osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __C5_osg_Node_P1__getSceneData, - "", - ""); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, - Properties::NON_VIRTUAL, - __void__setEventQueue__osgGA_EventQueue_P1, - "", - ""); - I_Method0(osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method0(const osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __C5_osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, - Properties::NON_VIRTUAL, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1, - "", - ""); - I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, - Properties::NON_VIRTUAL, - __void__addEventHandler__osgGA_GUIEventHandler_P1, - "", - ""); - I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __C5_EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, - Properties::NON_VIRTUAL, - __void__setDisplaySettings__osg_DisplaySettings_P1, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(const osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __C5_osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(void, setUpViewAcrossAllScreens, - Properties::NON_VIRTUAL, - __void__setUpViewAcrossAllScreens, - "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", - ""); - I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, - Properties::NON_VIRTUAL, - __void__setUpViewOnSingleScreen__unsigned_int, - "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", - ""); - I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, - Properties::NON_VIRTUAL, - __bool__containsCamera__C5_osg_Camera_P1, - "Return true if this view contains a specified camera. ", - ""); - I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, - "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", - "Also passes back the local window coords for the graphics context associated with the camera passed back. "); - I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", - "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", - ""); - I_Method0(void, requestRedraw, - Properties::VIRTUAL, - __void__requestRedraw, - "", - ""); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, - Properties::VIRTUAL, - __void__requestContinuousUpdate__bool, - "", - ""); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, - Properties::VIRTUAL, - __void__requestWarpPointer__float__float, - "", - ""); - I_Method0(void, assignSceneDataToCameras, - Properties::NON_VIRTUAL, - __void__assignSceneDataToCameras, - "", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "", - ""); - I_Constructor0(____View, - "", - ""); - I_Method0(osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __Scene_P1__getScene, - "", - ""); - I_Method0(const osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __C5_Scene_P1__getScene, - "", - ""); - I_Method1(void, setSceneData, IN, osg::Node *, node, - Properties::VIRTUAL, - __void__setSceneData__osg_Node_P1, - "", - ""); - I_Method0(osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __osg_Node_P1__getSceneData, - "", - ""); - I_Method0(const osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __C5_osg_Node_P1__getSceneData, - "", - ""); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, - Properties::NON_VIRTUAL, - __void__setEventQueue__osgGA_EventQueue_P1, - "", - ""); - I_Method0(osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method0(const osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __C5_osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, - Properties::NON_VIRTUAL, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1, - "", - ""); - I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, - Properties::NON_VIRTUAL, - __void__addEventHandler__osgGA_GUIEventHandler_P1, - "", - ""); - I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __C5_EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, - Properties::NON_VIRTUAL, - __void__setDisplaySettings__osg_DisplaySettings_P1, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(const osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __C5_osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(void, setUpViewAcrossAllScreens, - Properties::NON_VIRTUAL, - __void__setUpViewAcrossAllScreens, - "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", - ""); - I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, - Properties::NON_VIRTUAL, - __void__setUpViewOnSingleScreen__unsigned_int, - "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", - ""); - I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, - Properties::NON_VIRTUAL, - __bool__containsCamera__C5_osg_Camera_P1, - "Return true if this view contains a specified camera. ", - ""); - I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, - "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", - "Also passes back the local window coords for the graphics context associated with the camera passed back. "); - I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", - "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", - ""); - I_Method0(void, requestRedraw, - Properties::VIRTUAL, - __void__requestRedraw, - "", - ""); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, - Properties::VIRTUAL, - __void__requestContinuousUpdate__bool, - "", - ""); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, - Properties::VIRTUAL, - __void__requestWarpPointer__float__float, - "", - ""); - I_Method0(void, assignSceneDataToCameras, - Properties::NON_VIRTUAL, - __void__assignSceneDataToCameras, - "", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "", - ""); - I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1); - I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, - __osg_DisplaySettings_P1__getDisplaySettings, - __void__setDisplaySettings__osg_DisplaySettings_P1); - I_SimpleProperty(osgViewer::View::EventHandlers &, EventHandlers, - __EventHandlers_R1__getEventHandlers, - 0); - I_SimpleProperty(osgGA::EventQueue *, EventQueue, - __osgGA_EventQueue_P1__getEventQueue, - __void__setEventQueue__osgGA_EventQueue_P1); - I_SimpleProperty(osgViewer::Scene *, Scene, - __Scene_P1__getScene, - 0); - I_SimpleProperty(osg::Node *, SceneData, - __osg_Node_P1__getSceneData, - __void__setSceneData__osg_Node_P1); - I_SimpleProperty(unsigned int, UpViewOnSingleScreen, - 0, - __void__setUpViewOnSingleScreen__unsigned_int); -END_REFLECTOR - -TYPE_NAME_ALIAS(std::list< osg::ref_ptr< osgGA::GUIEventHandler > >, osgViewer::View::EventHandlers); - -BEGIN_OBJECT_REFLECTOR(osgViewer::View) - I_BaseType(osg::View); - I_BaseType(osgGA::GUIActionAdapter); - I_BaseType(osg::View); - I_BaseType(osgGA::GUIActionAdapter); - I_Constructor0(____View, - "", - ""); - I_Method0(osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __Scene_P1__getScene, - "", - ""); - I_Method0(const osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __C5_Scene_P1__getScene, - "", - ""); - I_Method1(void, setSceneData, IN, osg::Node *, node, - Properties::VIRTUAL, - __void__setSceneData__osg_Node_P1, - "", - ""); - I_Method0(osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __osg_Node_P1__getSceneData, - "", - ""); - I_Method0(const osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __C5_osg_Node_P1__getSceneData, - "", - ""); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, - Properties::NON_VIRTUAL, - __void__setEventQueue__osgGA_EventQueue_P1, - "", - ""); - I_Method0(osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method0(const osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __C5_osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, - Properties::NON_VIRTUAL, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1, - "", - ""); - I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, - Properties::NON_VIRTUAL, - __void__addEventHandler__osgGA_GUIEventHandler_P1, - "", - ""); - I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __C5_EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, - Properties::NON_VIRTUAL, - __void__setDisplaySettings__osg_DisplaySettings_P1, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(const osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __C5_osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(void, setUpViewAcrossAllScreens, - Properties::NON_VIRTUAL, - __void__setUpViewAcrossAllScreens, - "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", - ""); - I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, - Properties::NON_VIRTUAL, - __void__setUpViewOnSingleScreen__unsigned_int, - "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", - ""); - I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, - Properties::NON_VIRTUAL, - __bool__containsCamera__C5_osg_Camera_P1, - "Return true if this view contains a specified camera. ", - ""); - I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, - "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", - "Also passes back the local window coords for the graphics context associated with the camera passed back. "); - I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", - "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", - ""); - I_Method0(void, requestRedraw, - Properties::VIRTUAL, - __void__requestRedraw, - "", - ""); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, - Properties::VIRTUAL, - __void__requestContinuousUpdate__bool, - "", - ""); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, - Properties::VIRTUAL, - __void__requestWarpPointer__float__float, - "", - ""); - I_Method0(void, assignSceneDataToCameras, - Properties::NON_VIRTUAL, - __void__assignSceneDataToCameras, - "", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "", - ""); - I_Constructor0(____View, - "", - ""); - I_Method0(osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __Scene_P1__getScene, - "", - ""); - I_Method0(const osgViewer::Scene *, getScene, - Properties::NON_VIRTUAL, - __C5_Scene_P1__getScene, - "", - ""); - I_Method1(void, setSceneData, IN, osg::Node *, node, - Properties::VIRTUAL, - __void__setSceneData__osg_Node_P1, - "", - ""); - I_Method0(osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __osg_Node_P1__getSceneData, - "", - ""); - I_Method0(const osg::Node *, getSceneData, - Properties::NON_VIRTUAL, - __C5_osg_Node_P1__getSceneData, - "", - ""); - I_Method1(void, setEventQueue, IN, osgGA::EventQueue *, eventQueue, - Properties::NON_VIRTUAL, - __void__setEventQueue__osgGA_EventQueue_P1, - "", - ""); - I_Method0(osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method0(const osgGA::EventQueue *, getEventQueue, - Properties::NON_VIRTUAL, - __C5_osgGA_EventQueue_P1__getEventQueue, - "", - ""); - I_Method1(void, setCameraManipulator, IN, osgGA::MatrixManipulator *, manipulator, - Properties::NON_VIRTUAL, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1, - "", - ""); - I_Method0(osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method0(const osgGA::MatrixManipulator *, getCameraManipulator, - Properties::NON_VIRTUAL, - __C5_osgGA_MatrixManipulator_P1__getCameraManipulator, - "", - ""); - I_Method1(void, addEventHandler, IN, osgGA::GUIEventHandler *, eventHandler, - Properties::NON_VIRTUAL, - __void__addEventHandler__osgGA_GUIEventHandler_P1, - "", - ""); - I_Method0(osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method0(const osgViewer::View::EventHandlers &, getEventHandlers, - Properties::NON_VIRTUAL, - __C5_EventHandlers_R1__getEventHandlers, - "", - ""); - I_Method1(void, setDisplaySettings, IN, osg::DisplaySettings *, ds, - Properties::NON_VIRTUAL, - __void__setDisplaySettings__osg_DisplaySettings_P1, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(const osg::DisplaySettings *, getDisplaySettings, - Properties::NON_VIRTUAL, - __C5_osg_DisplaySettings_P1__getDisplaySettings, - "Set the DsplaySettings object associated with this view. ", - ""); - I_Method0(void, setUpViewAcrossAllScreens, - Properties::NON_VIRTUAL, - __void__setUpViewAcrossAllScreens, - "Convinience method for creating slave Cameras and associated GraphicsWindows across all screens. ", - ""); - I_MethodWithDefaults1(void, setUpViewOnSingleScreen, IN, unsigned int, screenNum, 0, - Properties::NON_VIRTUAL, - __void__setUpViewOnSingleScreen__unsigned_int, - "Convinience method for a single Camara associated with a single full screen GraphicsWindow. ", - ""); - I_Method1(bool, containsCamera, IN, const osg::Camera *, camera, - Properties::NON_VIRTUAL, - __bool__containsCamera__C5_osg_Camera_P1, - "Return true if this view contains a specified camera. ", - ""); - I_Method4(const osg::Camera *, getCameraContainingPosition, IN, float, x, IN, float, y, IN, float &, local_x, IN, float &, local_y, - Properties::NON_VIRTUAL, - __C5_osg_Camera_P1__getCameraContainingPosition__float__float__float_R1__float_R1, - "Get the camera which contains the pointer position x,y specified master cameras window/eye coords. ", - "Also passes back the local window coords for the graphics context associated with the camera passed back. "); - I_MethodWithDefaults4(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified node. ", - "Note, when a master cameras has slaves and no viewport itself its coordinate frame will be in clip space i.e. -1,-1 to 1,1, while if its has a viewport the coordintates will be relative to its viewport dimensions. Mouse events handled by the view will automatically be attached into the master camera window/clip coords so can be passed directly on to the computeIntersections method. "); - I_MethodWithDefaults5(bool, computeIntersections, IN, float, x, , IN, float, y, , IN, osg::NodePath &, nodePath, , IN, osgUtil::LineSegmentIntersector::Intersections &, intersections, , IN, osg::Node::NodeMask, traversalMask, 0xffffffff, - Properties::NON_VIRTUAL, - __bool__computeIntersections__float__float__osg_NodePath_R1__osgUtil_LineSegmentIntersector_Intersections_R1__osg_Node_NodeMask, - "Compute intersections between a ray through the specified master cameras window/eye coords and a specified nodePath's subgraph. ", - ""); - I_Method0(void, requestRedraw, - Properties::VIRTUAL, - __void__requestRedraw, - "", - ""); - I_MethodWithDefaults1(void, requestContinuousUpdate, IN, bool, needed, true, - Properties::VIRTUAL, - __void__requestContinuousUpdate__bool, - "", - ""); - I_Method2(void, requestWarpPointer, IN, float, x, IN, float, y, - Properties::VIRTUAL, - __void__requestWarpPointer__float__float, - "", - ""); - I_Method0(void, assignSceneDataToCameras, - Properties::NON_VIRTUAL, - __void__assignSceneDataToCameras, - "", - ""); - I_Method0(void, init, - Properties::NON_VIRTUAL, - __void__init, - "", - ""); - I_SimpleProperty(osgGA::MatrixManipulator *, CameraManipulator, - __osgGA_MatrixManipulator_P1__getCameraManipulator, - __void__setCameraManipulator__osgGA_MatrixManipulator_P1); - I_SimpleProperty(osg::DisplaySettings *, DisplaySettings, - __osg_DisplaySettings_P1__getDisplaySettings, - __void__setDisplaySettings__osg_DisplaySettings_P1); - I_SimpleProperty(osgViewer::View::EventHandlers &, EventHandlers, - __EventHandlers_R1__getEventHandlers, - 0); - I_SimpleProperty(osgGA::EventQueue *, EventQueue, - __osgGA_EventQueue_P1__getEventQueue, - __void__setEventQueue__osgGA_EventQueue_P1); - I_SimpleProperty(osgViewer::Scene *, Scene, - __Scene_P1__getScene, - 0); - I_SimpleProperty(osg::Node *, SceneData, - __osg_Node_P1__getSceneData, - __void__setSceneData__osg_Node_P1); - I_SimpleProperty(unsigned int, UpViewOnSingleScreen, - 0, - __void__setUpViewOnSingleScreen__unsigned_int); -END_REFLECTOR -