Addd libraryName() method to osg::Object in preperation for the osgDB support
for node kits plugins.
This commit is contained in:
@@ -24,7 +24,7 @@ namespace osgParticle
|
||||
inline AccelOperator();
|
||||
inline AccelOperator(const AccelOperator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(AccelOperator);
|
||||
META_Object(osgParticle, AccelOperator);
|
||||
|
||||
/// Get the acceleration vector.
|
||||
inline const osg::Vec3 &getAcceleration() const;
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace osgParticle
|
||||
inline CenteredPlacer();
|
||||
inline CenteredPlacer(const CenteredPlacer ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "CenteredPlacer"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Placer *>(obj) != 0; }
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ namespace osgParticle
|
||||
inline Counter();
|
||||
inline Counter(const Counter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Counter"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Counter *>(obj) != 0; }
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace osgParticle
|
||||
Emitter();
|
||||
Emitter(const Emitter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Emitter"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) { return dynamic_cast<const Emitter*>(obj) != 0; }
|
||||
virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } }
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace osgParticle
|
||||
FluidFrictionOperator();
|
||||
FluidFrictionOperator(const FluidFrictionOperator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(FluidFrictionOperator);
|
||||
META_Object(osgParticle, FluidFrictionOperator);
|
||||
|
||||
/// Get the density of the fluid.
|
||||
inline float getFluidDensity() const;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace osgParticle
|
||||
inline ForceOperator();
|
||||
inline ForceOperator(const ForceOperator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(ForceOperator);
|
||||
META_Object(osgParticle, ForceOperator);
|
||||
|
||||
/// Get the force vector.
|
||||
inline const osg::Vec3 &getForce() const;
|
||||
|
||||
@@ -26,6 +26,7 @@ namespace osgParticle
|
||||
Interpolator(const Interpolator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
|
||||
: osg::Object(copy, copyop) {}
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Interpolator"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Interpolator *>(obj) != 0; }
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace osgParticle
|
||||
LinearInterpolator(const LinearInterpolator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY)
|
||||
: Interpolator(copy, copyop) {}
|
||||
|
||||
META_Object(LinearInterpolator);
|
||||
META_Object(osgParticle, LinearInterpolator);
|
||||
|
||||
virtual float interpolate(float t, float y1, float y2) const
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace osgParticle
|
||||
ModularEmitter();
|
||||
ModularEmitter(const ModularEmitter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Node(ModularEmitter);
|
||||
META_Node(osgParticle,ModularEmitter);
|
||||
|
||||
/// Get the counter object.
|
||||
inline Counter *getCounter();
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace osgParticle
|
||||
ModularProgram();
|
||||
ModularProgram(const ModularProgram ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Node(ModularProgram);
|
||||
META_Node(osgParticle,ModularProgram);
|
||||
|
||||
/// Get the number of operators.
|
||||
inline int numOperators() const;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace osgParticle {
|
||||
MultiSegmentPlacer();
|
||||
MultiSegmentPlacer(const MultiSegmentPlacer ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(MultiSegmentPlacer);
|
||||
META_Object(osgParticle, MultiSegmentPlacer);
|
||||
|
||||
/// Get the number of vertices which define the segments.
|
||||
inline int numVertices() const;
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace osgParticle
|
||||
inline Operator();
|
||||
inline Operator(const Operator ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Operator"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Operator *>(obj) != 0; }
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace osgParticle
|
||||
ParticleSystem();
|
||||
ParticleSystem(const ParticleSystem ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(ParticleSystem);
|
||||
META_Object(osgParticle, ParticleSystem);
|
||||
|
||||
/// Get the default bounding box
|
||||
inline const osg::BoundingBox &getDefaultBoundingBox() const;
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace osgParticle
|
||||
ParticleSystemUpdater();
|
||||
ParticleSystemUpdater(const ParticleSystemUpdater ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Node(ParticleSystemUpdater);
|
||||
META_Node(osgParticle,ParticleSystemUpdater);
|
||||
|
||||
/// Return the number of particle systems on the list.
|
||||
inline int numParticleSystems() const;
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace osgParticle
|
||||
inline Placer();
|
||||
inline Placer(const Placer ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Placer"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Placer *>(obj) != 0; }
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace osgParticle
|
||||
inline PointPlacer();
|
||||
inline PointPlacer(const PointPlacer ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(PointPlacer);
|
||||
META_Object(osgParticle, PointPlacer);
|
||||
|
||||
/** Place a particle.
|
||||
This method is called automatically by <CODE>ModularEmitter</CODE> and should not be called
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace osgParticle
|
||||
Program();
|
||||
Program(const Program ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Program"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) { return dynamic_cast<const Program*>(obj) != 0; }
|
||||
virtual void accept(osg::NodeVisitor& nv) { if (nv.validNodeMask(*this)) { nv.pushOntoNodePath(this); nv.apply(*this); nv.popFromNodePath(); } }
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace osgParticle
|
||||
inline RadialShooter();
|
||||
inline RadialShooter(const RadialShooter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(RadialShooter);
|
||||
META_Object(osgParticle, RadialShooter);
|
||||
|
||||
/// Get the range of possible values for <B>theta</B> angle.
|
||||
inline const rangef &getThetaRange() const;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace osgParticle
|
||||
inline RandomRateCounter();
|
||||
inline RandomRateCounter(const RandomRateCounter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(RandomRateCounter);
|
||||
META_Object(osgParticle, RandomRateCounter);
|
||||
|
||||
/// Return the number of particles to be created in this frame
|
||||
inline int numParticlesToCreate(double dt) const;
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace osgParticle
|
||||
/// Set the range of possible values for the central angle.
|
||||
inline void setPhiRange(float r1, float r2);
|
||||
|
||||
META_Object(SectorPlacer);
|
||||
META_Object(osgParticle, SectorPlacer);
|
||||
|
||||
/// Place a particle. Do not call it manually.
|
||||
inline void place(Particle *P) const;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace osgParticle {
|
||||
inline SegmentPlacer();
|
||||
inline SegmentPlacer(const SegmentPlacer ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Object(SegmentPlacer);
|
||||
META_Object(osgParticle, SegmentPlacer);
|
||||
|
||||
/// get vertex <B>A</B>.
|
||||
inline const osg::Vec3 &getVertexA() const;
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace osgParticle
|
||||
inline Shooter();
|
||||
inline Shooter(const Shooter ©, const osg::CopyOp ©op = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual const char *libraryName() const { return "osgParticle"; }
|
||||
virtual const char *className() const { return "Shooter"; }
|
||||
virtual bool isSameKindAs(const osg::Object *obj) const { return dynamic_cast<const Shooter *>(obj) != 0; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user