INET Framework for OMNeT++/OMNEST
inet::BVHTree::Axis Class Reference

#include <BVHTree.h>

Public Member Functions

 Axis (const std::string &axisOrder)
 
char getNextAxis ()
 
char getCurrentAxis () const
 

Protected Attributes

std::string axisOrder
 
unsigned int curr
 

Constructor & Destructor Documentation

inet::BVHTree::Axis::Axis ( const std::string &  axisOrder)
inline
46 : axisOrder(axisOrder), curr(0) {}
unsigned int curr
Definition: BVHTree.h:44
std::string axisOrder
Definition: BVHTree.h:43

Member Function Documentation

char inet::BVHTree::Axis::getCurrentAxis ( ) const
inline

Referenced by inet::BVHTree::buildHierarchy().

52 { return axisOrder[curr]; }
unsigned int curr
Definition: BVHTree.h:44
std::string axisOrder
Definition: BVHTree.h:43
char inet::BVHTree::Axis::getNextAxis ( )
inline

Referenced by inet::BVHTree::buildHierarchy().

48  {
49  curr = (curr + 1) % axisOrder.size();
50  return axisOrder[curr];
51  }
unsigned int curr
Definition: BVHTree.h:44
std::string axisOrder
Definition: BVHTree.h:43

Member Data Documentation

std::string inet::BVHTree::Axis::axisOrder
protected
unsigned int inet::BVHTree::Axis::curr
protected

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