|
INET Framework for OMNeT++/OMNEST
|
#include <BVHTree.h>
Classes | |
| class | Axis |
| struct | AxisComparator |
| class | BVHTreeVisitor |
Public Member Functions | |
| BVHTree (const Coord &boundingMin, const Coord &boundingMax, std::vector< const IPhysicalObject * > &objects, unsigned int start, unsigned int end, Axis axis, unsigned int leafCapacity) | |
| virtual | ~BVHTree () |
| void | lineSegmentQuery (const LineSegment &lineSegment, const IVisitor *visitor) const |
Protected Member Functions | |
| bool | isLeaf () const |
| void | buildHierarchy (std::vector< const IPhysicalObject * > &objects, unsigned int start, unsigned int end, Axis axis) |
| void | computeBoundingBox (Coord &boundingMin, Coord &boundingMax, std::vector< const IPhysicalObject * > &objects, unsigned int start, unsigned int end) const |
| bool | intersectWithLineSegment (const LineSegment &lineSegment) const |
Protected Attributes | |
| unsigned int | leafCapacity |
| std::string | axisOrder |
| Coord | boundingMin |
| Coord | boundingMax |
| Coord | center |
| BVHTree * | left |
| BVHTree * | right |
| std::vector< const IPhysicalObject * > | objects |
| inet::BVHTree::BVHTree | ( | const Coord & | boundingMin, |
| const Coord & | boundingMax, | ||
| std::vector< const IPhysicalObject * > & | objects, | ||
| unsigned int | start, | ||
| unsigned int | end, | ||
| Axis | axis, | ||
| unsigned int | leafCapacity | ||
| ) |
Referenced by buildHierarchy().
|
virtual |
|
protected |
Referenced by BVHTree().
|
protected |
Referenced by buildHierarchy().
|
protected |
Referenced by lineSegmentQuery().
|
protected |
Referenced by lineSegmentQuery().
| void inet::BVHTree::lineSegmentQuery | ( | const LineSegment & | lineSegment, |
| const IVisitor * | visitor | ||
| ) | const |
Referenced by lineSegmentQuery(), and inet::physicalenvironment::BVHObjectCache::visitObjects().
|
protected |
|
protected |
Referenced by buildHierarchy(), BVHTree(), and intersectWithLineSegment().
|
protected |
Referenced by buildHierarchy(), BVHTree(), and intersectWithLineSegment().
|
protected |
Referenced by BVHTree(), and intersectWithLineSegment().
|
protected |
Referenced by buildHierarchy(), and BVHTree().
|
protected |
Referenced by buildHierarchy(), BVHTree(), lineSegmentQuery(), and ~BVHTree().
|
protected |
Referenced by isLeaf(), and lineSegmentQuery().
|
protected |
Referenced by buildHierarchy(), BVHTree(), lineSegmentQuery(), and ~BVHTree().