osg::Pnt3fComparator Class Reference

#include <OSGSplitGraphOp.h>

List of all members.

Public Member Functions

 Pnt3fComparator (const std::vector< Pnt3f > &vec)
bool operator() (int a, int b) const

Private Attributes

const std::vector< Pnt3f > & _vec


Detailed Description

Definition at line 121 of file OSGSplitGraphOp.h.


Constructor & Destructor Documentation

osg::Pnt3fComparator::Pnt3fComparator ( const std::vector< Pnt3f > &  vec  )  [inline]

Definition at line 125 of file OSGSplitGraphOp.h.

00125 : _vec(vec) {}


Member Function Documentation

bool osg::Pnt3fComparator::operator() ( int  a,
int  b 
) const [inline]

Definition at line 127 of file OSGSplitGraphOp.h.

00128     {
00129         if (_vec[a][0] < _vec[b][0])
00130             return true;
00131         if (_vec[a][0] == _vec[b][0])
00132             if (_vec[a][1] < _vec[b][1])
00133                 return true;
00134             else if (_vec[a][1] == _vec[b][1])
00135                 if (_vec[a][2] < _vec[b][2])
00136                     return true;
00137 
00138         return false;
00139     }


Member Data Documentation

const std::vector<Pnt3f>& osg::Pnt3fComparator::_vec [private]

Definition at line 123 of file OSGSplitGraphOp.h.


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

Generated on Mon Mar 17 12:05:35 2008 for OpenSG by  doxygen 1.5.5