Class containing all parts of a system for a single type of particle.
More...
Public Member Functions |
| | XYZAxis (float length=25.0f, const osg::Vec4 &colorX=osg::Vec4f(1.0f, 0.0f, 0.0f, 1.0f), const osg::Vec4 &colorY=osg::Vec4f(0.0f, 1.0f, 0.0f, 1.0f), const osg::Vec4 &colorZ=osg::Vec4f(0.0f, 0.0f, 1.0f, 1.0f)) |
| | Initialize CTOR The entire Axis is created at construction time.
|
| virtual | ~XYZAxis () |
| | DTOR.
|
Protected Member Functions |
| osg::Node * | createAxis (const osg::Vec4 &color, unsigned int numReps, const osg::Vec3 &tick, const osg::Vec3 &endPoint, const osg::Vec3 &startPoint=osg::Vec3f(0.0f, 0.0f, 0.0f)) const |
| | A helper function to create one axis.
|
| osg::Geometry * | createLine (const osg::Vec4 &color, const osg::Vec3 &startPoint, const osg::Vec3 &endPoint) const |
| | A helper function to create one line.
|
Detailed Description
Class containing all parts of a system for a single type of particle.
This class encompasses all the necessary parts to create a particle system which emits a single type of particle. In this particle system each particle changes over its lifespan according to a Gaussian interpolation. The changes could be transitioning from one size to another, one color to another or one alpha value to another.
- Examples
-
Constructor & Destructor Documentation
| XYZAxis::XYZAxis |
( |
float |
length = 25.0f, |
|
|
const osg::Vec4 & |
colorX = osg::Vec4f(1.0f, 0.0f, 0.0f, 1.0f), |
|
|
const osg::Vec4 & |
colorY = osg::Vec4f(0.0f, 1.0f, 0.0f, 1.0f), |
|
|
const osg::Vec4 & |
colorZ = osg::Vec4f(0.0f, 0.0f, 1.0f, 1.0f) |
|
) |
| |
Initialize CTOR The entire Axis is created at construction time.
- Parameters
-
| [in] | length | is the length of each axis. |
| [in] | colorX | is the color for the X axis (default red). |
| [in] | colorY | is the color for the Y axis (default green). |
| [in] | colorZ | is the color for the Z axis (default blue). |
| virtual XYZAxis::~XYZAxis |
( |
| ) |
|
|
virtual |
Member Function Documentation
| osg::Node* XYZAxis::createAxis |
( |
const osg::Vec4 & |
color, |
|
|
unsigned int |
numReps, |
|
|
const osg::Vec3 & |
tick, |
|
|
const osg::Vec3 & |
endPoint, |
|
|
const osg::Vec3 & |
startPoint = osg::Vec3f(0.0f, 0.0f, 0.0f) |
|
) |
| const |
|
protected |
A helper function to create one axis.
- Parameters
-
| [in] | color | is the color for the axis. |
| [in] | numReps | is the number of ticks in the axis. |
| [in] | tick | is the direction of the (orthogonal) tick. |
| [in] | endPoint | is the ending point of the axis. |
| [in] | startPoint | is the starting point of the axis. |
- Returns
- A node containing the axis.
| osg::Geometry* XYZAxis::createLine |
( |
const osg::Vec4 & |
color, |
|
|
const osg::Vec3 & |
startPoint, |
|
|
const osg::Vec3 & |
endPoint |
|
) |
| const |
|
protected |
A helper function to create one line.
- Parameters
-
| [in] | color | is the color for the axis. |
| [in] | startPoint | is the starting point of the axis. |
| [in] | endPoint | is the ending point of the axis. |
- Returns
- Geometry for the single line.
The documentation for this class was generated from the following file:
- /exports/nfedora7-1/nightly/docs/vrforcesDevelopment.vrf4-4-branch/examples/exampleOsgParticlesGaussian/XYZAxis.h