VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions
XYZAxis Class Reference

Class containing all parts of a system for a single type of particle. More...

Inheritance diagram for XYZAxis:
Inheritance graph
[legend]

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]lengthis the length of each axis.
[in]colorXis the color for the X axis (default red).
[in]colorYis the color for the Y axis (default green).
[in]colorZis the color for the Z axis (default blue).
virtual XYZAxis::~XYZAxis ( )
virtual

DTOR.

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]coloris the color for the axis.
[in]numRepsis the number of ticks in the axis.
[in]tickis the direction of the (orthogonal) tick.
[in]endPointis the ending point of the axis.
[in]startPointis 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]coloris the color for the axis.
[in]startPointis the starting point of the axis.
[in]endPointis the ending point of the axis.
Returns
Geometry for the single line.

The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)