PosTraitGeneric Struct Reference

Inheritance diagram for PosTraitGeneric:
ParticleTraits

List of all members.

Classes

struct  dataType

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)

Detailed Description

Definition at line 738 of file OSGParticles.cpp.


Member Function Documentation

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

Definition at line 747 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::pos.

00749     {
00750         data.pos = pos;
00751     }

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

Definition at line 753 of file OSGParticles.cpp.

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

00754     {
00755         data.pos->getValue(data.p, particle);
00756              
00757         return false;
00758     }

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

Definition at line 760 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::p.

00761     {
00762         return data.p;
00763     }

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

Definition at line 765 of file OSGParticles.cpp.

References PosTraitGeneric::dataType::p.

00767     {
00768         glVertex3f( data.p[0] + dir[0] * s, 
00769                     data.p[1] + dir[1] * s, 
00770                     data.p[2] + dir[2] * s);             
00771     }

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

Definition at line 773 of file OSGParticles.cpp.

References osg::Point< ValueTypeT, SizeI >::getValues(), and PosTraitGeneric::dataType::p.

00774     {
00775         glVertex3fv( static_cast<const GLfloat*>(data.p.getValues()) );
00776     }


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

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1