ParticleCompare Struct Reference

List of all members.

Public Member Functions

 ParticleCompare (GeoPositionsPtr pos, UInt8 axis)
bool operator() (Int32 x, Int32 y)

Public Attributes

GeoPositionsPtr _pos
UInt8 _axis


Detailed Description

Definition at line 415 of file OSGParticleBSP.cpp.


Constructor & Destructor Documentation

ParticleCompare::ParticleCompare ( GeoPositionsPtr  pos,
UInt8  axis 
) [inline]

Definition at line 417 of file OSGParticleBSP.cpp.

00417                                                      : _pos(pos), _axis(axis)
00418     {}


Member Function Documentation

bool ParticleCompare::operator() ( Int32  x,
Int32  y 
) [inline]

Definition at line 420 of file OSGParticleBSP.cpp.

00421     { 
00422         Pnt3f px,py;
00423         _pos->getValue(px, x);
00424         _pos->getValue(py, y);
00425         
00426         return px[_axis] < py[_axis]; 
00427     }


Member Data Documentation

Definition at line 429 of file OSGParticleBSP.cpp.

Definition at line 430 of file OSGParticleBSP.cpp.


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