PosTraitGeneric Struct Reference

Inheritance diagram for PosTraitGeneric:

ParticleTraits

List of all members.

Static Public Member Functions

static void init (Particles *, DrawActionBase *, dataType &data, GeoPositionsPtr &pos)
static bool particle (dataType &data, UInt32 particle)
static Pnt3fposition (dataType &data)
static void vertex (dataType &data, UInt32, Vec4f &dir, Real32 s)
static void vertex (dataType &data)

Classes

struct  dataType


Detailed Description

Definition at line 705 of file OSGParticles.cpp.


Member Function Documentation

static void PosTraitGeneric::init ( Particles ,
DrawActionBase ,
dataType data,
GeoPositionsPtr pos 
) [inline, static]

Definition at line 714 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::pos.

00716     {
00717         data.pos = pos;
00718     }

static bool PosTraitGeneric::particle ( dataType data,
UInt32  particle 
) [inline, static]

Definition at line 720 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::p, and PosTraitGeneric::dataType::pos.

00721     {
00722         data.pos->getValue(data.p, particle);
00723              
00724         return false;
00725     }

static Pnt3f& PosTraitGeneric::position ( dataType data  )  [inline, static]

Definition at line 727 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::p.

00728     {
00729         return data.p;
00730     }

static void PosTraitGeneric::vertex ( dataType data,
UInt32  ,
Vec4f dir,
Real32  s 
) [inline, static]

Definition at line 732 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::p.

00734     {
00735         glVertex3f( data.p[0] + dir[0] * s, 
00736                     data.p[1] + dir[1] * s, 
00737                     data.p[2] + dir[2] * s);             
00738     }

static void PosTraitGeneric::vertex ( dataType data  )  [inline, static]

Definition at line 740 of file OSGParticles.cpp.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::getValues(), and PosTraitGeneric::dataType::p.

00741     {
00742         glVertex3fv( (GLfloat*) data.p.getValues() );             
00743     }


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

Generated on Mon Mar 17 12:02:59 2008 for OpenSG by  doxygen 1.5.5