#include <OSGSplitGraphOp.h>
Public Member Functions | |
| Pnt3fComparator (const std::vector< Pnt3f > &vec) | |
| bool | operator() (int a, int b) const |
Private Attributes | |
| const std::vector< Pnt3f > & | _vec |
Definition at line 121 of file OSGSplitGraphOp.h.
| osg::Pnt3fComparator::Pnt3fComparator | ( | const std::vector< Pnt3f > & | vec | ) | [inline] |
| 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 }
const std::vector<Pnt3f>& osg::Pnt3fComparator::_vec [private] |
Definition at line 123 of file OSGSplitGraphOp.h.
1.5.5