OpenSceneGraph/doc/doc++/osgParticle/Particle.html
Robert Osfield ed10594139 Updated docs
2004-08-06 06:53:36 +00:00

458 lines
23 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class OSGPARTICLE_EXPORT osgParticle::Particle</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.6">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class OSGPARTICLE_EXPORT <A HREF="#DOC.DOCU">osgParticle::Particle</A></H2></H2><BLOCKQUOTE>Implementation of a <B>particle</B>.</BLOCKQUOTE>
<HR>
<DL>
<P><DL>
<DT><H3>Public Classes</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>enum <B><A HREF="#DOC.2.16.1">Shape</A></B>
<DD><I> Shape of particles.</I>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.2.16.2">Particle</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline <!1><A HREF="Particle.html#DOC.2.16.1">Shape</A> <B><A HREF="#DOC.2.16.3">getShape</A></B>() const
<DD><I>Get the shape of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>bool <B><A HREF="#DOC.2.16.4">update</A></B>(double dt)
<DD><I>Update the particle (don't call this method manually).</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>void <B><A HREF="#DOC.2.16.5">render</A></B>(const osg::Vec3 &amp;xpos, const osg::Vec3 &amp;px, const osg::Vec3 &amp;py, float scale = 1.0f) const
<DD><I>Render the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline Particle::Shape <B><A HREF="#DOC.2.16.35">getShape</A></B>() const
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.36">setShape</A></B>(<!1><A HREF="Particle.html#DOC.2.16.1">Shape</A> s)
<DD><I>Set the shape of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline bool <B><A HREF="#DOC.2.16.37">isAlive</A></B>() const
<DD><I>Get whether the particle is still alive</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.16.38">getLifeTime</A></B>() const
<DD><I>Get the life time of the particle (in seconds)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline double <B><A HREF="#DOC.2.16.39">getAge</A></B>() const
<DD><I>Get the age of the particle (in seconds)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.16.40">getRadius</A></B>() const
<DD><I>Get the physical radius of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.41">setRadius</A></B>(float r)
<DD><I>Set the physical radius of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="rangef.html">rangef</A>&amp; <B><A HREF="#DOC.2.16.42">getSizeRange</A></B>() const
<DD><I>Get the minimum and maximum values for polygon size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="rangef.html">rangef</A>&amp; <B><A HREF="#DOC.2.16.43">getAlphaRange</A></B>() const
<DD><I>Get the minimum and maximum values for alpha</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="rangev4.html">rangev4</A>&amp; <B><A HREF="#DOC.2.16.44">getColorRange</A></B>() const
<DD><I>Get the minimum and maximum values for color</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.16.45">getSizeInterpolator</A></B>() const
<DD><I>Get the interpolator for computing the size of polygons</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.16.46">getAlphaInterpolator</A></B>() const
<DD><I>Get the interpolator for computing alpha values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* <B><A HREF="#DOC.2.16.47">getColorInterpolator</A></B>() const
<DD><I>Get the interpolator for computing color values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.48">getPosition</A></B>() const
<DD><I>Get the position vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.49">getVelocity</A></B>() const
<DD><I>Get the velocity vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.50">getPreviousPosition</A></B>() const
<DD><I>Get the previous position (the position before last update)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.51">getAngle</A></B>() const
<DD><I>Get the angle vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.52">getAngularVelocity</A></B>() const
<DD><I>Get the rotational velocity vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline const osg::Vec3&amp; <B><A HREF="#DOC.2.16.53">getPreviousAngle</A></B>() const
<DD><I>Get the previous angle vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.54">kill</A></B>()
<DD><I>Kill the particle on next update NOTE: after calling this function, the <CODE>isAlive()</CODE> method will still return true until the particle is updated again</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.55">setLifeTime</A></B>(double t)
<DD><I>Set the life time of the particle</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.56">setSizeRange</A></B>(const <!1><A HREF="rangef.html">rangef</A> &amp;r)
<DD><I>Set the minimum and maximum values for polygon size</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.57">setAlphaRange</A></B>(const <!1><A HREF="rangef.html">rangef</A> &amp;r)
<DD><I>Set the minimum and maximum values for alpha</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.58">setColorRange</A></B>(const <!1><A HREF="rangev4.html">rangev4</A> &amp;r)
<DD><I>Set the minimum and maximum values for color</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.59">setSizeInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ri)
<DD><I>Set the interpolator for computing size values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.60">setAlphaInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ai)
<DD><I>Set the interpolator for computing alpha values.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.61">setColorInterpolator</A></B>(<!1><A HREF="Interpolator.html">Interpolator</A>* ci)
<DD><I>Set the interpolator for computing color values</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.62">setPosition</A></B>(const osg::Vec3 &amp;p)
<DD><I>Set the position vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.63">setVelocity</A></B>(const osg::Vec3 &amp;v)
<DD><I>Set the velocity vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.64">addVelocity</A></B>(const osg::Vec3 &amp;dv)
<DD><I>Add a vector to the velocity vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.65">transformPositionVelocity</A></B>(const osg::Matrix &amp;xform)
<DD><I>Transform position and velocity vectors by a matrix</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.66">setAngle</A></B>(const osg::Vec3 &amp;a)
<DD><I>Set the angle vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.67">setAngularVelocity</A></B>(const osg::Vec3 &amp;v)
<DD><I> Set the angular velocity vector.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.68">addAngularVelocity</A></B>(const osg::Vec3 &amp;dv)
<DD><I>Add a vector to the angular velocity vector</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.69">transformAngleVelocity</A></B>(const osg::Matrix &amp;xform)
<DD><I>Transform angle and angularVelocity vectors by a matrix</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.16.70">getMass</A></B>() const
<DD><I>Get the mass of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.16.71">getMassInv</A></B>() const
<DD><I>Get <CODE>1 / getMass()</CODE></I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.72">setMass</A></B>(float m)
<DD><I>Set the mass of the particle.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.73">beginRender</A></B>() const
<DD><I>Perform some pre-rendering tasks.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.74">endRender</A></B>() const
<DD><I>Perform some post-rendering tasks.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline float <B><A HREF="#DOC.2.16.75">getCurrentSize</A></B>() const
<DD><I>Get the current (interpolated) polygon size.</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>inline void <B><A HREF="#DOC.2.16.76">setTextureTile</A></B>(int sTile, int tTile, int numTiles)
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>Implementation of a <B>particle</B>.
Objects of this class are particles, they have some graphical properties
and some physical properties. Particles are created by emitters and then placed
into Particle Systems, where they live and get updated at each frame.
Particles can either live forever (lifeTime < 0), or die after a specified
time (lifeTime >= 0). For each property which is defined as a range of values, a
"current" value will be evaluated at each frame by interpolating the <I>min</I>
and <I>max</I> values so that <I>curr_value = min</I> when <I>t == 0</I>, and
<I>curr_value = max</I> when <I>t == lifeTime</I>.
You may customize the interpolator objects to achieve any kind of transition.
If you want the particle to live forever, set its lifetime to any value <= 0;
in that case, no interpolation is done to compute real-time properties, and only
minimum values are used.</BLOCKQUOTE>
<DL>
<A NAME="Shape"></A>
<A NAME="DOC.2.16.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>enum Shape</B></TT>
<DD>
Shape of particles.
NOTE: the LINE shape should be used in conjunction with FIXED alignment mode (see ParticleSystem).
<DL><DT><DD></DL><P><DL>
<A NAME="POINT"></A>
<A NAME="DOC.2.16.1.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> POINT</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD"></A>
<A NAME="DOC.2.16.1.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD</B></TT>
<DL><DT><DD></DL><P>
<A NAME="QUAD_TRIANGLESTRIP"></A>
<A NAME="DOC.2.16.1.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> QUAD_TRIANGLESTRIP</B></TT>
<DL><DT><DD></DL><P>
<A NAME="HEXAGON"></A>
<A NAME="DOC.2.16.1.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> HEXAGON</B></TT>
<DL><DT><DD></DL><P>
<A NAME="LINE"></A>
<A NAME="DOC.2.16.1.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> LINE</B></TT>
<DL><DT><DD></DL><P></DL>
<A NAME="Particle"></A>
<A NAME="DOC.2.16.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Particle()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="getShape"></A>
<A NAME="DOC.2.16.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline <!1><A HREF="Particle.html#DOC.2.16.1">Shape</A> getShape() const </B></TT>
<DD>Get the shape of the particle
<DL><DT><DD></DL><P>
<A NAME="update"></A>
<A NAME="DOC.2.16.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>bool update(double dt)</B></TT>
<DD>Update the particle (don't call this method manually).
This method is called automatically by <CODE>ParticleSystem::update()</CODE>; 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 <I>P = P + V * dt</I> (where <I>P</I> is the position and <I>V</I> is the velocity).
<DL><DT><DD></DL><P>
<A NAME="render"></A>
<A NAME="DOC.2.16.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>void render(const osg::Vec3 &amp;xpos, const osg::Vec3 &amp;px, const osg::Vec3 &amp;py, float scale = 1.0f) const </B></TT>
<DD>Render the particle. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="getShape"></A>
<A NAME="DOC.2.16.35"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline Particle::Shape getShape() const </B></TT>
<DL><DT><DD></DL><P>
<A NAME="setShape"></A>
<A NAME="DOC.2.16.36"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setShape(<!1><A HREF="Particle.html#DOC.2.16.1">Shape</A> s)</B></TT>
<DD>Set the shape of the particle
<DL><DT><DD></DL><P>
<A NAME="isAlive"></A>
<A NAME="DOC.2.16.37"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline bool isAlive() const </B></TT>
<DD>Get whether the particle is still alive
<DL><DT><DD></DL><P>
<A NAME="getLifeTime"></A>
<A NAME="DOC.2.16.38"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline double getLifeTime() const </B></TT>
<DD>Get the life time of the particle (in seconds)
<DL><DT><DD></DL><P>
<A NAME="getAge"></A>
<A NAME="DOC.2.16.39"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline double getAge() const </B></TT>
<DD>Get the age of the particle (in seconds)
<DL><DT><DD></DL><P>
<A NAME="getRadius"></A>
<A NAME="DOC.2.16.40"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getRadius() const </B></TT>
<DD>Get the physical radius of the particle.
For built-in operators to work correctly, lengths must be expressed in meters.
<DL><DT><DD></DL><P>
<A NAME="setRadius"></A>
<A NAME="DOC.2.16.41"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setRadius(float r)</B></TT>
<DD>Set the physical radius of the particle.
For built-in operators to work correctly, lengths must be expressed in meters.
<DL><DT><DD></DL><P>
<A NAME="getSizeRange"></A>
<A NAME="DOC.2.16.42"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="rangef.html">rangef</A>&amp; getSizeRange() const </B></TT>
<DD>Get the minimum and maximum values for polygon size
<DL><DT><DD></DL><P>
<A NAME="getAlphaRange"></A>
<A NAME="DOC.2.16.43"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="rangef.html">rangef</A>&amp; getAlphaRange() const </B></TT>
<DD>Get the minimum and maximum values for alpha
<DL><DT><DD></DL><P>
<A NAME="getColorRange"></A>
<A NAME="DOC.2.16.44"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="rangev4.html">rangev4</A>&amp; getColorRange() const </B></TT>
<DD>Get the minimum and maximum values for color
<DL><DT><DD></DL><P>
<A NAME="getSizeInterpolator"></A>
<A NAME="DOC.2.16.45"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* getSizeInterpolator() const </B></TT>
<DD>Get the interpolator for computing the size of polygons
<DL><DT><DD></DL><P>
<A NAME="getAlphaInterpolator"></A>
<A NAME="DOC.2.16.46"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* getAlphaInterpolator() const </B></TT>
<DD>Get the interpolator for computing alpha values
<DL><DT><DD></DL><P>
<A NAME="getColorInterpolator"></A>
<A NAME="DOC.2.16.47"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const <!1><A HREF="Interpolator.html">Interpolator</A>* getColorInterpolator() const </B></TT>
<DD>Get the interpolator for computing color values
<DL><DT><DD></DL><P>
<A NAME="getPosition"></A>
<A NAME="DOC.2.16.48"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getPosition() const </B></TT>
<DD>Get the position vector
<DL><DT><DD></DL><P>
<A NAME="getVelocity"></A>
<A NAME="DOC.2.16.49"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getVelocity() const </B></TT>
<DD>Get the velocity vector.
For built-in operators to work correctly, remember that velocity components are expressed
in meters per second.
<DL><DT><DD></DL><P>
<A NAME="getPreviousPosition"></A>
<A NAME="DOC.2.16.50"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getPreviousPosition() const </B></TT>
<DD>Get the previous position (the position before last update)
<DL><DT><DD></DL><P>
<A NAME="getAngle"></A>
<A NAME="DOC.2.16.51"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getAngle() const </B></TT>
<DD>Get the angle vector
<DL><DT><DD></DL><P>
<A NAME="getAngularVelocity"></A>
<A NAME="DOC.2.16.52"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getAngularVelocity() const </B></TT>
<DD>Get the rotational velocity vector
<DL><DT><DD></DL><P>
<A NAME="getPreviousAngle"></A>
<A NAME="DOC.2.16.53"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline const osg::Vec3&amp; getPreviousAngle() const </B></TT>
<DD>Get the previous angle vector
<DL><DT><DD></DL><P>
<A NAME="kill"></A>
<A NAME="DOC.2.16.54"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void kill()</B></TT>
<DD>Kill the particle on next update
NOTE: after calling this function, the <CODE>isAlive()</CODE> method will still
return true until the particle is updated again
<DL><DT><DD></DL><P>
<A NAME="setLifeTime"></A>
<A NAME="DOC.2.16.55"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setLifeTime(double t)</B></TT>
<DD>Set the life time of the particle
<DL><DT><DD></DL><P>
<A NAME="setSizeRange"></A>
<A NAME="DOC.2.16.56"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setSizeRange(const <!1><A HREF="rangef.html">rangef</A> &amp;r)</B></TT>
<DD>Set the minimum and maximum values for polygon size
<DL><DT><DD></DL><P>
<A NAME="setAlphaRange"></A>
<A NAME="DOC.2.16.57"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setAlphaRange(const <!1><A HREF="rangef.html">rangef</A> &amp;r)</B></TT>
<DD>Set the minimum and maximum values for alpha
<DL><DT><DD></DL><P>
<A NAME="setColorRange"></A>
<A NAME="DOC.2.16.58"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setColorRange(const <!1><A HREF="rangev4.html">rangev4</A> &amp;r)</B></TT>
<DD>Set the minimum and maximum values for color
<DL><DT><DD></DL><P>
<A NAME="setSizeInterpolator"></A>
<A NAME="DOC.2.16.59"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setSizeInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ri)</B></TT>
<DD>Set the interpolator for computing size values
<DL><DT><DD></DL><P>
<A NAME="setAlphaInterpolator"></A>
<A NAME="DOC.2.16.60"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setAlphaInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ai)</B></TT>
<DD>Set the interpolator for computing alpha values.
<DL><DT><DD></DL><P>
<A NAME="setColorInterpolator"></A>
<A NAME="DOC.2.16.61"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setColorInterpolator(<!1><A HREF="Interpolator.html">Interpolator</A>* ci)</B></TT>
<DD>Set the interpolator for computing color values
<DL><DT><DD></DL><P>
<A NAME="setPosition"></A>
<A NAME="DOC.2.16.62"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setPosition(const osg::Vec3 &amp;p)</B></TT>
<DD>Set the position vector.
<DL><DT><DD></DL><P>
<A NAME="setVelocity"></A>
<A NAME="DOC.2.16.63"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setVelocity(const osg::Vec3 &amp;v)</B></TT>
<DD>Set the velocity vector.
For built-in operators to work correctly, remember that velocity components are expressed
in meters per second.
<DL><DT><DD></DL><P>
<A NAME="addVelocity"></A>
<A NAME="DOC.2.16.64"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void addVelocity(const osg::Vec3 &amp;dv)</B></TT>
<DD>Add a vector to the velocity vector
<DL><DT><DD></DL><P>
<A NAME="transformPositionVelocity"></A>
<A NAME="DOC.2.16.65"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void transformPositionVelocity(const osg::Matrix &amp;xform)</B></TT>
<DD>Transform position and velocity vectors by a matrix
<DL><DT><DD></DL><P>
<A NAME="setAngle"></A>
<A NAME="DOC.2.16.66"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setAngle(const osg::Vec3 &amp;a)</B></TT>
<DD>Set the angle vector
<DL><DT><DD></DL><P>
<A NAME="setAngularVelocity"></A>
<A NAME="DOC.2.16.67"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setAngularVelocity(const osg::Vec3 &amp;v)</B></TT>
<DD>
Set the angular velocity vector.
Components x, y and z are angles of rotation around the respective axis (in radians).
<DL><DT><DD></DL><P>
<A NAME="addAngularVelocity"></A>
<A NAME="DOC.2.16.68"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void addAngularVelocity(const osg::Vec3 &amp;dv)</B></TT>
<DD>Add a vector to the angular velocity vector
<DL><DT><DD></DL><P>
<A NAME="transformAngleVelocity"></A>
<A NAME="DOC.2.16.69"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void transformAngleVelocity(const osg::Matrix &amp;xform)</B></TT>
<DD>Transform angle and angularVelocity vectors by a matrix
<DL><DT><DD></DL><P>
<A NAME="getMass"></A>
<A NAME="DOC.2.16.70"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getMass() const </B></TT>
<DD>Get the mass of the particle.
For built-in operators to work correctly, remember that the mass is expressed in kg.
<DL><DT><DD></DL><P>
<A NAME="getMassInv"></A>
<A NAME="DOC.2.16.71"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getMassInv() const </B></TT>
<DD>Get <CODE>1 / getMass()</CODE>
<DL><DT><DD></DL><P>
<A NAME="setMass"></A>
<A NAME="DOC.2.16.72"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setMass(float m)</B></TT>
<DD>Set the mass of the particle.
For built-in operators to work correctly, remember that the mass is expressed in kg.
<DL><DT><DD></DL><P>
<A NAME="beginRender"></A>
<A NAME="DOC.2.16.73"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void beginRender() const </B></TT>
<DD>Perform some pre-rendering tasks. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="endRender"></A>
<A NAME="DOC.2.16.74"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void endRender() const </B></TT>
<DD>Perform some post-rendering tasks. Called automatically by particle systems.
<DL><DT><DD></DL><P>
<A NAME="getCurrentSize"></A>
<A NAME="DOC.2.16.75"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline float getCurrentSize() const </B></TT>
<DD>Get the current (interpolated) polygon size. Valid only after the first call to update().
<DL><DT><DD></DL><P>
<A NAME="setTextureTile"></A>
<A NAME="DOC.2.16.76"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>inline void setTextureTile(int sTile, int tTile, int numTiles)</B></TT>
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://www.linuxsupportline.com/~doc++">DOC++</A>.
</BODY>
</HTML>