#include <BVHObjectCache.h>
inet::physicalenvironment::BVHObjectCache::BVHObjectCache |
( |
| ) |
|
unsigned int leafCapacity
Definition: BVHObjectCache.h:37
const char * axisOrder
Definition: BVHObjectCache.h:38
BVHTree * bvhTree
Definition: BVHObjectCache.h:43
PhysicalEnvironment * physicalEnvironment
Definition: BVHObjectCache.h:36
inet::physicalenvironment::BVHObjectCache::~BVHObjectCache |
( |
| ) |
|
|
virtual |
BVHTree * bvhTree
Definition: BVHObjectCache.h:43
void inet::physicalenvironment::BVHObjectCache::initialize |
( |
int |
stage | ) |
|
|
overrideprotectedvirtual |
44 physicalEnvironment = getModuleFromPar<PhysicalEnvironment>(par(
"physicalEnvironmentModule"),
this);
Additional physical environment initializations that depend on the previous stage.
Definition: InitStages.h:47
unsigned int leafCapacity
Definition: BVHObjectCache.h:37
const char * axisOrder
Definition: BVHObjectCache.h:38
virtual bool insertObject(const IPhysicalObject *object)
Definition: BVHObjectCache.cc:55
virtual int getNumObjects() const override
Definition: PhysicalEnvironment.h:97
Local initializations.
Definition: InitStages.h:35
PhysicalEnvironment * physicalEnvironment
Definition: BVHObjectCache.h:36
virtual const PhysicalObject * getObject(int index) const override
Definition: PhysicalEnvironment.h:98
bool inet::physicalenvironment::BVHObjectCache::insertObject |
( |
const IPhysicalObject * |
object | ) |
|
|
protectedvirtual |
Referenced by initialize().
std::vector< const IPhysicalObject * > objects
Definition: BVHObjectCache.h:44
BVHTree * bvhTree
Definition: BVHObjectCache.h:43
virtual int inet::physicalenvironment::BVHObjectCache::numInitStages |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
The number of initialization stages.
Definition: InitStages.h:116
void inet::physicalenvironment::BVHObjectCache::visitObjects |
( |
const IVisitor * |
visitor, |
|
|
const LineSegment & |
lineSegment |
|
) |
| const |
|
overridevirtual |
Calls the visitor with at least all physical objects that intersect with the provided line segment.
Implements inet::physicalenvironment::IObjectCache.
std::vector< const IPhysicalObject * > objects
Definition: BVHObjectCache.h:44
void lineSegmentQuery(const LineSegment &lineSegment, const IVisitor *visitor) const
Definition: BVHTree.cc:108
unsigned int leafCapacity
Definition: BVHObjectCache.h:37
const char * axisOrder
Definition: BVHObjectCache.h:38
virtual const Coord & getSpaceMax() const override
Definition: PhysicalEnvironment.h:93
virtual const Coord & getSpaceMin() const override
Definition: PhysicalEnvironment.h:92
BVHTree * bvhTree
Definition: BVHObjectCache.h:43
PhysicalEnvironment * physicalEnvironment
Definition: BVHObjectCache.h:36
const char* inet::physicalenvironment::BVHObjectCache::axisOrder |
|
protected |
BVHTree* inet::physicalenvironment::BVHObjectCache::bvhTree |
|
mutableprotected |
unsigned int inet::physicalenvironment::BVHObjectCache::leafCapacity |
|
protected |
std::vector<const IPhysicalObject *> inet::physicalenvironment::BVHObjectCache::objects |
|
mutableprotected |
The documentation for this class was generated from the following files: