A DtEnvironmentalIconCenteringUpdater updates the attached scene object to be centered in the center of mass of a closed area or along the center of the line of an unclosed area.
More...
Detailed Description
A DtEnvironmentalIconCenteringUpdater updates the attached scene object to be centered in the center of mass of a closed area or along the center of the line of an unclosed area.
Setting the control points or whether or not an item is closed will cause a recalculation of the center
Constructor & Destructor Documentation
| makVrv::DtEnvironmentalIconCenteringUpdater::DtEnvironmentalIconCenteringUpdater |
( |
DtDe & |
de, |
|
|
DtUniqueID |
id |
|
) |
| |
| virtual makVrv::DtEnvironmentalIconCenteringUpdater::~DtEnvironmentalIconCenteringUpdater |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual bool makVrv::DtEnvironmentalIconCenteringUpdater::needsUpdate |
( |
DtTime |
tNow | ) |
|
|
virtual |
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::update |
( |
DtTime |
tNow | ) |
|
|
virtual |
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::setSceneObject |
( |
DtSceneObject * |
sceneObject | ) |
|
|
virtual |
Set the scene object to be updated.
- Parameters
-
| [in] | sceneObject | is the scene object to receive updates. |
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::setEnvironmentalSceneObject |
( |
DtSceneObject * |
sceneObject | ) |
|
|
virtual |
Set the scene object that contains the original environmental (line or area).
- Parameters
-
| [in] | sceneObject | is the scene object to look at for positional changes. |
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::setOrderGroup |
( |
int |
| ) |
|
|
virtual |
Sets the z order on which to place the icons.
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::centerIcon |
( |
| ) |
|
|
protectedvirtual |
Find the actual position and orientation based on the attach points and offsets.
| virtual DtVector makVrv::DtEnvironmentalIconCenteringUpdater::calculateGeometricCenter |
( |
| ) |
const |
|
protectedvirtual |
Calculates the geometric center of the polygonal area.
| virtual DtVector makVrv::DtEnvironmentalIconCenteringUpdater::calculateLineCenter |
( |
| ) |
const |
|
protectedvirtual |
Calculates the point on the center of the line given the line distance.
| virtual DtVector makVrv::DtEnvironmentalIconCenteringUpdater::centerOnLine |
( |
int |
startIndex, |
|
|
int |
endIndex, |
|
|
double |
lengthOnLine |
|
) |
| const |
|
protectedvirtual |
Centers the point on the given line segment.
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::slot_sceneObjectToBeDeleted |
( |
const DtUniqueID & |
id | ) |
|
|
protectedvirtual |
Called when a model is added to the scene object.
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::slot_modelAdded |
( |
DtModel * |
| ) |
|
|
protectedvirtual |
Called when a model is added to the scene object.
| virtual void makVrv::DtEnvironmentalIconCenteringUpdater::slot_modelRemoved |
( |
DtModel * |
| ) |
|
|
protectedvirtual |
Called when a model is removed from the scene object.
Member Data Documentation
| DtDe& makVrv::DtEnvironmentalIconCenteringUpdater::myDe |
|
protected |
| DtUniqueID makVrv::DtEnvironmentalIconCenteringUpdater::myUniqueId |
|
protected |
This distributed object's unique identifier.
| DtSceneObject* makVrv::DtEnvironmentalIconCenteringUpdater::mySceneObject |
|
protected |
A pointer to the current scene object being updated.
| DtPolygonModel* makVrv::DtEnvironmentalIconCenteringUpdater::myEnvironmentalPolygonModel |
|
protected |
A pointer to the current environmental model object.
Only one may be valid, however, both pointers are around for convenience
| DtLineModel* makVrv::DtEnvironmentalIconCenteringUpdater::myEnvironmentalLineModel |
|
protected |
| DtSceneObject* makVrv::DtEnvironmentalIconCenteringUpdater::myEnvironmentalSceneObject |
|
protected |
A pointer tothe current environmental scene object agent.
| std::vector<DtVector> makVrv::DtEnvironmentalIconCenteringUpdater::myPoints |
|
protected |
Points that were last used for calculation.
| int makVrv::DtEnvironmentalIconCenteringUpdater::myOrderGroup |
|
protected |
| bool makVrv::DtEnvironmentalIconCenteringUpdater::myUpdate |
|
protected |
The documentation for this class was generated from the following file: