![]() |
VR-Forces 4.7 Class Documentation
|
Provides an algorithm for scaling objects in the scene. More...

Public Member Functions | |
| virtual | ~DtScalingAlgorithm () |
| DTOR. | |
| virtual double | calculateScale (const DtOsgCullVisitorParameters &info, const osg::Camera &camera, const osg::Vec3d &position, double modelRadius, DtUniqueID objectElementId)=0 |
| Calculate the scale factor for an object in the scene. | |
Provides an algorithm for scaling objects in the scene.
|
virtual |
DTOR.
|
pure virtual |
Calculate the scale factor for an object in the scene.
| [in] | info | is the cull visitor parameters object, which contains the current XR scale factor setting, as well as other potentially useful information for a scaling algorithm. |
| [in] | camera | is the current cull or intersector camera, from which the eyepoint can be found, as well as the viewport, model view and projection matrices, if desired. |
| [in] | position | is the position of the object to be scaled |
| [in] | modelRadius | is the bounding radius of the object to be scaled |
| [in] | objectElementId | is the element ID of the object being scaled, if it exists - check first for (DtUniqueID)0. |
Implemented in makVrv::DtXRScalingAlgorithm.