![]() |
VR-Forces 4.0.4 Class Documentation
|
Public Member Functions | |
| DtBoundingVolumesManager () | |
| virtual | ~DtBoundingVolumesManager () |
| virtual bool | init (const QString &boundingVolumesFile) |
| virtual DtBoundingVolumeInfo * | boundingVolume (const DtEntityMapperKey &data) const |
| virtual bool | addBoundingVolume (DtBoundingVolumeInfo *volume) |
| virtual DtBoundingVolumeInfo | boundingVolume (const DtModelData &data) const |
| Returns the bouding volume of the specified item. | |
| virtual Dt3dBoundingVolume | computeExtent (const DtPoint &boudingVolume, const DtPoint &offset, const DtPoint &symbolOrigin, const DtModelData &data) const |
| Given a bounding volume, compute the bounding of the object in geocentric coordinates. | |
| virtual void | computeBoundingBox (const DtPoint &boundingVolume, const DtPoint &offset, const DtPoint &symbolOrigin, const DtModelData &data, DtVector &ul, DtVector &ll, DtVector &ur, DtVector &lr, const Coordinate_System *cs, const DtDcm &bodyToGeoc) const |
| Computes bounding box and returns four points in the given vectors in geocentric. | |
| virtual bool | intersectLineOfChord (Dt3dBoundingVolume &source, const DtModelData *data, const DtVector &targetOrigin, const DtVector &start, const DtVector &end, const DtDcm &bodyToGeoc, DtVector *pointIn=NULL, DtVector *pointOut=NULL) |
| Returns true/false on intersection with given information and also points of intersection. | |
Static Public Member Functions | |
| static DtBoundingVolumesManager * | create () |
Protected Attributes | |
| DtOrderedKeyList < DtBoundingVolumeInfo * > | myBoundingVolumes |
| virtual DtBoundingVolumesManager::~DtBoundingVolumesManager | ( | ) | [virtual] |
| virtual bool DtBoundingVolumesManager::init | ( | const QString & | boundingVolumesFile | ) | [virtual] |
| virtual DtBoundingVolumeInfo* DtBoundingVolumesManager::boundingVolume | ( | const DtEntityMapperKey & | data | ) | const [virtual] |
| virtual bool DtBoundingVolumesManager::addBoundingVolume | ( | DtBoundingVolumeInfo * | volume | ) | [virtual] |
| virtual DtBoundingVolumeInfo DtBoundingVolumesManager::boundingVolume | ( | const DtModelData & | data | ) | const [virtual] |
Returns the bouding volume of the specified item.
the X is the length, the Y is the width and the Z is the height. Uses the bounding volume manager to return if set
| virtual Dt3dBoundingVolume DtBoundingVolumesManager::computeExtent | ( | const DtPoint & | boudingVolume, |
| const DtPoint & | offset, | ||
| const DtPoint & | symbolOrigin, | ||
| const DtModelData & | data | ||
| ) | const [virtual] |
Given a bounding volume, compute the bounding of the object in geocentric coordinates.
By default calculates a simple box around the origin, with the origin at Z of 0 and centered in the bottom plane of the box.
| virtual void DtBoundingVolumesManager::computeBoundingBox | ( | const DtPoint & | boundingVolume, |
| const DtPoint & | offset, | ||
| const DtPoint & | symbolOrigin, | ||
| const DtModelData & | data, | ||
| DtVector & | ul, | ||
| DtVector & | ll, | ||
| DtVector & | ur, | ||
| DtVector & | lr, | ||
| const Coordinate_System * | cs, | ||
| const DtDcm & | bodyToGeoc | ||
| ) | const [virtual] |
Computes bounding box and returns four points in the given vectors in geocentric.
| virtual bool DtBoundingVolumesManager::intersectLineOfChord | ( | Dt3dBoundingVolume & | source, |
| const DtModelData * | data, | ||
| const DtVector & | targetOrigin, | ||
| const DtVector & | start, | ||
| const DtVector & | end, | ||
| const DtDcm & | bodyToGeoc, | ||
| DtVector * | pointIn = NULL, |
||
| DtVector * | pointOut = NULL |
||
| ) | [virtual] |
Returns true/false on intersection with given information and also points of intersection.
All information is expected in geocentric coordinates
| static DtBoundingVolumesManager* DtBoundingVolumesManager::create | ( | ) | [static] |