Added computeDataVariance method into osg::Object and implementations in Drawable and StateSet,
and calling of osgUtil::StaticObjectDetectionVisitor in osgViewer::Viewer
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::AccelOperator)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator)
|
||||
I_BaseType(osgParticle::Operator);
|
||||
I_Constructor0(____AccelOperator,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::AngularAccelOperator)
|
||||
I_BaseType(osgParticle::Operator);
|
||||
I_Constructor0(____AngularAccelOperator,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::BoxPlacer)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::BoxPlacer)
|
||||
I_BaseType(osgParticle::CenteredPlacer);
|
||||
I_Constructor0(____BoxPlacer,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ConnectedParticleSystem)
|
||||
I_BaseType(osgParticle::ParticleSystem);
|
||||
I_Constructor0(____ConnectedParticleSystem,
|
||||
"",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ConstantRateCounter)
|
||||
I_BaseType(osgParticle::Counter);
|
||||
I_Constructor0(____ConstantRateCounter,
|
||||
"",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults1(IN, bool, automaticSetup, true,
|
||||
Properties::EXPLICIT,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ExplosionEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults1(IN, bool, automaticSetup, true,
|
||||
Properties::EXPLICIT,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FireEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::FireEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults1(IN, bool, automaticSetup, true,
|
||||
Properties::EXPLICIT,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::FluidFrictionOperator)
|
||||
I_BaseType(osgParticle::Operator);
|
||||
I_Constructor0(____FluidFrictionOperator,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::FluidProgram)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram)
|
||||
I_BaseType(osgParticle::Program);
|
||||
I_Constructor0(____FluidProgram,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ForceOperator)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ForceOperator)
|
||||
I_BaseType(osgParticle::Operator);
|
||||
I_Constructor0(____ForceOperator,
|
||||
"",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::LinearInterpolator)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::LinearInterpolator)
|
||||
I_BaseType(osgParticle::Interpolator);
|
||||
I_Constructor0(____LinearInterpolator,
|
||||
"",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ModularEmitter)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ModularEmitter)
|
||||
I_BaseType(osgParticle::Emitter);
|
||||
I_Constructor0(____ModularEmitter,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ModularProgram)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ModularProgram)
|
||||
I_BaseType(osgParticle::Program);
|
||||
I_Constructor0(____ModularProgram,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::MultiSegmentPlacer)
|
||||
I_BaseType(osgParticle::Placer);
|
||||
I_Constructor0(____MultiSegmentPlacer,
|
||||
"",
|
||||
|
||||
@@ -32,7 +32,7 @@ BEGIN_ENUM_REFLECTOR(osgParticle::ParticleSystem::Alignment)
|
||||
I_EnumLabel(osgParticle::ParticleSystem::FIXED);
|
||||
END_REFLECTOR
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
I_BaseType(osg::Drawable);
|
||||
I_Constructor0(____ParticleSystem,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystemUpdater)
|
||||
I_BaseType(osg::Node);
|
||||
I_Constructor0(____ParticleSystemUpdater,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PointPlacer)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer)
|
||||
I_BaseType(osgParticle::CenteredPlacer);
|
||||
I_Constructor0(____PointPlacer,
|
||||
"",
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect)
|
||||
I_BaseType(osg::Node);
|
||||
I_Constructor0(____PrecipitationEffect,
|
||||
"",
|
||||
@@ -274,7 +274,7 @@ END_REFLECTOR
|
||||
|
||||
TYPE_NAME_ALIAS(std::map< osgParticle::PrecipitationEffect::PrecipitationDrawable::Cell COMMA osgParticle::PrecipitationEffect::PrecipitationDrawable::DepthMatrixStartTime >, osgParticle::PrecipitationEffect::PrecipitationDrawable::CellMatrixMap);
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::PrecipitationEffect::PrecipitationDrawable)
|
||||
I_BaseType(osg::Drawable);
|
||||
I_Constructor0(____PrecipitationDrawable,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::RadialShooter)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::RadialShooter)
|
||||
I_BaseType(osgParticle::Shooter);
|
||||
I_Constructor0(____RadialShooter,
|
||||
"",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::RandomRateCounter)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::RandomRateCounter)
|
||||
I_BaseType(osgParticle::VariableRateCounter);
|
||||
I_Constructor0(____RandomRateCounter,
|
||||
"",
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SectorPlacer)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::SectorPlacer)
|
||||
I_BaseType(osgParticle::CenteredPlacer);
|
||||
I_Constructor0(____SectorPlacer,
|
||||
"",
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SegmentPlacer)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::SegmentPlacer)
|
||||
I_BaseType(osgParticle::Placer);
|
||||
I_Constructor0(____SegmentPlacer,
|
||||
"",
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SmokeEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults1(IN, bool, automaticSetup, true,
|
||||
Properties::EXPLICIT,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::SmokeTrailEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults1(IN, bool, automaticSetup, true,
|
||||
Properties::EXPLICIT,
|
||||
|
||||
Reference in New Issue
Block a user