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

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

GeoPositionsPtr ParticleCompare::_pos
 

Definition at line 429 of file OSGParticleBSP.cpp.

UInt8 ParticleCompare::_axis
 

Definition at line 430 of file OSGParticleBSP.cpp.


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