Updated wrappers
This commit is contained in:
@@ -74,7 +74,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::AccelOperator)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setToGravity__float,
|
||||
"Quickly set the acceleration vector to the gravity on earth (0, 0, -9.81). ",
|
||||
"The acceleration will be multiplied by the scale parameter.");
|
||||
"The acceleration will be multiplied by the scale parameter. ");
|
||||
I_Method2(void, operate, IN, osgParticle::Particle *, P, IN, double, dt,
|
||||
Properties::VIRTUAL,
|
||||
__void__operate__Particle_P1__double,
|
||||
|
||||
@@ -73,7 +73,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Emitter)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setUseDefaultTemplate__bool,
|
||||
"Set whether the default particle template should be used. ",
|
||||
"When this flag is true, the particle template is ignored, and the particle system's default template is used instead.");
|
||||
"When this flag is true, the particle template is ignored, and the particle system's default template is used instead. ");
|
||||
I_ProtectedMethod1(void, process, IN, double, dt,
|
||||
Properties::VIRTUAL,
|
||||
Properties::NON_CONST,
|
||||
|
||||
@@ -108,7 +108,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::FluidProgram)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setToGravity__float,
|
||||
"Set the acceleration vector to the gravity on earth (0, 0, -9.81). ",
|
||||
"The acceleration will be multiplied by the scale parameter.");
|
||||
"The acceleration will be multiplied by the scale parameter. ");
|
||||
I_Method0(void, setFluidToAir,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setFluidToAir,
|
||||
|
||||
@@ -63,12 +63,12 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Operator)
|
||||
Properties::PURE_VIRTUAL,
|
||||
__void__operate__Particle_P1__double,
|
||||
"Do something on a particle. ",
|
||||
"This method is called by ModularProgram objects to perform some operations on the particles. You must override it in descendant classes. Common operations consist of modifying the particle's velocity vector. The dt parameter is the time elapsed from last operation.");
|
||||
"This method is called by ModularProgram objects to perform some operations on the particles. You must override it in descendant classes. Common operations consist of modifying the particle's velocity vector. The dt parameter is the time elapsed from last operation. ");
|
||||
I_Method1(void, beginOperate, IN, osgParticle::Program *, x,
|
||||
Properties::VIRTUAL,
|
||||
__void__beginOperate__Program_P1,
|
||||
"Do something before processing particles via the operate() method. ",
|
||||
"Overriding this method could be necessary to query the calling Program object for the current reference frame. If the reference frame is RELATIVE_RF, then your class should prepare itself to do all operations in local coordinates.");
|
||||
"Overriding this method could be necessary to query the calling Program object for the current reference frame. If the reference frame is RELATIVE_RF, then your class should prepare itself to do all operations in local coordinates. ");
|
||||
I_Method0(void, endOperate,
|
||||
Properties::VIRTUAL,
|
||||
__void__endOperate,
|
||||
|
||||
@@ -99,12 +99,12 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__float__getRadius,
|
||||
"Get the physical radius of the particle. ",
|
||||
"For built-in operators to work correctly, lengths must be expressed in meters.");
|
||||
"For built-in operators to work correctly, lengths must be expressed in meters. ");
|
||||
I_Method0(float, getMass,
|
||||
Properties::NON_VIRTUAL,
|
||||
__float__getMass,
|
||||
"Get the mass of the particle. ",
|
||||
"For built-in operators to work correctly, remember that the mass is expressed in kg.");
|
||||
"For built-in operators to work correctly, remember that the mass is expressed in kg. ");
|
||||
I_Method0(float, getMassInv,
|
||||
Properties::NON_VIRTUAL,
|
||||
__float__getMassInv,
|
||||
@@ -119,7 +119,7 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__C5_osg_Vec3_R1__getVelocity,
|
||||
"Get the velocity vector. ",
|
||||
"For built-in operators to work correctly, remember that velocity components are expressed in meters per second.");
|
||||
"For built-in operators to work correctly, remember that velocity components are expressed in meters per second. ");
|
||||
I_Method0(const osg::Vec3 &, getPreviousPosition,
|
||||
Properties::NON_VIRTUAL,
|
||||
__C5_osg_Vec3_R1__getPreviousPosition,
|
||||
@@ -219,12 +219,12 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setRadius__float,
|
||||
"Set the physical radius of the particle. ",
|
||||
"For built-in operators to work correctly, lengths must be expressed in meters.");
|
||||
"For built-in operators to work correctly, lengths must be expressed in meters. ");
|
||||
I_Method1(void, setMass, IN, float, m,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setMass__float,
|
||||
"Set the mass of the particle. ",
|
||||
"For built-in operators to work correctly, remember that the mass is expressed in kg.");
|
||||
"For built-in operators to work correctly, remember that the mass is expressed in kg. ");
|
||||
I_Method1(void, setPosition, IN, const osg::Vec3 &, p,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setPosition__C5_osg_Vec3_R1,
|
||||
@@ -234,7 +234,7 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setVelocity__C5_osg_Vec3_R1,
|
||||
"Set the velocity vector. ",
|
||||
"For built-in operators to work correctly, remember that velocity components are expressed in meters per second.");
|
||||
"For built-in operators to work correctly, remember that velocity components are expressed in meters per second. ");
|
||||
I_Method1(void, addVelocity, IN, const osg::Vec3 &, dv,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__addVelocity__C5_osg_Vec3_R1,
|
||||
@@ -259,7 +259,7 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setAngularVelocity__C5_osg_Vec3_R1,
|
||||
"Set the angular velocity vector. ",
|
||||
"Components x, y and z are angles of rotation around the respective axis (in radians).");
|
||||
"Components x, y and z are angles of rotation around the respective axis (in radians). ");
|
||||
I_Method1(void, addAngularVelocity, IN, const osg::Vec3 &, dv,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__addAngularVelocity__C5_osg_Vec3_R1,
|
||||
@@ -274,7 +274,7 @@ BEGIN_VALUE_REFLECTOR(osgParticle::Particle)
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__update__double,
|
||||
"Update the particle (don't call this method manually). ",
|
||||
"This method is called automatically by ParticleSystem::update(); it updates the graphical properties of the particle for the current time, checks whether the particle is still alive, and then updates its position by computing P = P + V * dt (where P is the position and V is the velocity).");
|
||||
"This method is called automatically by ParticleSystem::update(); it updates the graphical properties of the particle for the current time, checks whether the particle is still alive, and then updates its position by computing P = P + V * dt (where P is the position and V is the velocity). ");
|
||||
I_Method0(void, beginRender,
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__beginRender,
|
||||
|
||||
@@ -152,7 +152,7 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::ParticleProcessor)
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__isAlive,
|
||||
"Check whether the processor is alive with respect to start time and life duration. ",
|
||||
"Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive()).");
|
||||
"Note that this method may return true even if the processor has been disabled by calling setEnabled(false). To test whether the processor is actually processing particles or not, you should evaluate (isEnabled() && isAlive()). ");
|
||||
I_Method1(void, traverse, IN, osg::NodeVisitor &, nv,
|
||||
Properties::VIRTUAL,
|
||||
__void__traverse__osg_NodeVisitor_R1,
|
||||
|
||||
@@ -112,7 +112,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setDefaultBoundingBox__C5_osg_BoundingBox_R1,
|
||||
"Set the default bounding box. ",
|
||||
"The default bounding box is used when a real bounding box cannot be computed, for example because no particles has been updated yet.");
|
||||
"The default bounding box is used when a real bounding box cannot be computed, for example because no particles has been updated yet. ");
|
||||
I_Method0(bool, getDoublePassRendering,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__getDoublePassRendering,
|
||||
@@ -122,7 +122,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setDoublePassRendering__bool,
|
||||
"Set the double pass rendering flag. ",
|
||||
"Double pass rendering avoids overdraw problems between particle systems and other opaque objects. If you can render all the particle systems after the opaque objects, then double pass is not necessary and can be turned off (best choice). If you set the default attributes with setDefaultAttributes, then the particle system will fall into a transparent bin.");
|
||||
"Double pass rendering avoids overdraw problems between particle systems and other opaque objects. If you can render all the particle systems after the opaque objects, then double pass is not necessary and can be turned off (best choice). If you set the default attributes with setDefaultAttributes, then the particle system will fall into a transparent bin. ");
|
||||
I_Method0(bool, isFrozen,
|
||||
Properties::NON_VIRTUAL,
|
||||
__bool__isFrozen,
|
||||
@@ -132,7 +132,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setFrozen__bool,
|
||||
"Set or reset the frozen state. ",
|
||||
"When the particle system is frozen, emitters and programs won't do anything on it.");
|
||||
"When the particle system is frozen, emitters and programs won't do anything on it. ");
|
||||
I_Method0(int, numParticles,
|
||||
Properties::NON_VIRTUAL,
|
||||
__int__numParticles,
|
||||
@@ -207,7 +207,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setDefaultAttributes__C5_std_string_R1__bool__bool__int,
|
||||
"A useful method to set the most common StateAttribute's in one call. ",
|
||||
"If texturefile is empty, then texturing is turned off.");
|
||||
"If texturefile is empty, then texturing is turned off. ");
|
||||
I_Method0(int, getLevelOfDetail,
|
||||
Properties::NON_VIRTUAL,
|
||||
__int__getLevelOfDetail,
|
||||
@@ -217,7 +217,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::ParticleSystem)
|
||||
Properties::NON_VIRTUAL,
|
||||
__void__setLevelOfDetail__int,
|
||||
"(EXPERIMENTAL) Set the level of detail. ",
|
||||
"The total number of particles is divided by the detail value to get the actual number of particles to be drawn. This value must be greater than zero.");
|
||||
"The total number of particles is divided by the detail value to get the actual number of particles to be drawn. This value must be greater than zero. ");
|
||||
I_Method1(void, update, IN, double, dt,
|
||||
Properties::VIRTUAL,
|
||||
__void__update__double,
|
||||
|
||||
@@ -63,7 +63,7 @@ BEGIN_OBJECT_REFLECTOR(osgParticle::PointPlacer)
|
||||
Properties::VIRTUAL,
|
||||
__void__place__Particle_P1,
|
||||
"Place a particle. ",
|
||||
"This method is called automatically by ModularEmitter and should not be called manually.");
|
||||
"This method is called automatically by ModularEmitter and should not be called manually. ");
|
||||
I_Method0(osg::Vec3, getControlPosition,
|
||||
Properties::VIRTUAL,
|
||||
__osg_Vec3__getControlPosition,
|
||||
|
||||
@@ -52,6 +52,6 @@ BEGIN_ABSTRACT_OBJECT_REFLECTOR(osgParticle::Shooter)
|
||||
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.");
|
||||
"Must be overriden by descendants. This method should only set the velocity vector of particle P, leaving other attributes unchanged. ");
|
||||
END_REFLECTOR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user