Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

GeoTraitRectangle Struct Reference

Inheritance diagram for GeoTraitRectangle:

ParticleTraits List of all members.

Public Types

typedef UInt8 dataType

Static Public Member Functions

static void init (Particles *, DrawActionBase *, dataType &)
static void exit (Particles *, DrawActionBase *, dataType &)
static bool particle (dataType &, UInt32)
static void draw (dataType &, Pnt3f &p, Pnt3f &sp, Vec3f &dx, Vec3f &dy, Vec3f &, Vec3f &s)

Detailed Description

Definition at line 1878 of file OSGParticles.cpp.


Member Typedef Documentation

typedef UInt8 GeoTraitRectangle::dataType
 

Definition at line 1880 of file OSGParticles.cpp.


Member Function Documentation

static void GeoTraitRectangle::init Particles ,
DrawActionBase ,
dataType
[inline, static]
 

Definition at line 1882 of file OSGParticles.cpp.

01883     {
01884         glBegin(GL_QUADS);
01885     }

static void GeoTraitRectangle::exit Particles ,
DrawActionBase ,
dataType
[inline, static]
 

Definition at line 1887 of file OSGParticles.cpp.

01888     {
01889         glEnd();
01890     }

static bool GeoTraitRectangle::particle dataType ,
UInt32 
[inline, static]
 

Definition at line 1892 of file OSGParticles.cpp.

01893     {
01894         return false;
01895     }

static void GeoTraitRectangle::draw dataType ,
Pnt3f p,
Pnt3f sp,
Vec3f dx,
Vec3f dy,
Vec3f ,
Vec3f s
[inline, static]
 

Definition at line 1897 of file OSGParticles.cpp.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::getValues().

01900     {
01901         dx *= s[0] * .5f;
01902        
01903         glNormal3fv((GLfloat*) dy.getValues() );
01904 
01905         glVertex3f( p[0] - dx[0],
01906                     p[1] - dx[1],
01907                     p[2] - dx[2]);
01908 
01909         glVertex3f( p[0] + dx[0],
01910                     p[1] + dx[1],
01911                     p[2] + dx[2]);
01912 
01913         glVertex3f(sp[0] + dx[0],
01914                    sp[1] + dx[1],
01915                    sp[2] + dx[2]);
01916 
01917         glVertex3f(sp[0] - dx[0],
01918                    sp[1] - dx[1],
01919                    sp[2] - dx[2]);
01920     }


The documentation for this struct was generated from the following file:
Generated on Thu Aug 25 04:12:26 2005 for OpenSG by  doxygen 1.4.3