![]() |
VR-Forces 4.10 Class Documentation
|
Linear scaling algorithm implementation This Scaling algorithm implements basic linear scaling. More...

Public Member Functions | |
| virtual | ~DtLinearScalingAlgorithm () |
| DTOR. More... | |
| virtual double | calculateScale (const DtOsgCullVisitorParameters &info, const osg::Camera &camera, const osg::Vec3d &position, double modelRadius, DtUniqueID objectElementId) const |
| Calculate the XR scale factor. More... | |
Public Member Functions inherited from makVrv::DtScalingAlgorithm | |
| DtScalingAlgorithm () | |
| CTOR. More... | |
| virtual | ~DtScalingAlgorithm () |
| DTOR. More... | |
| virtual double | scaleFactor () const |
| Get the scale factor for this algorithm to use. More... | |
| virtual void | setScaleFactor (double maxScale) |
| Set the scale factor for this algorithm to use. More... | |
| virtual double | maxScaleFactor () const |
| Get the maximum scale factor for this algorithm to use. More... | |
| virtual void | setMaxScaleFactor (double maxScale) |
| Set the maximum scale factor for this algorithm to use. More... | |
Protected Member Functions | |
| DtLinearScalingAlgorithm () | |
| CTOR. More... | |
Private Member Functions | |
| DtLinearScalingAlgorithm & | operator= (const DtLinearScalingAlgorithm &rhs) |
| Unimplemented Copy CTOR. More... | |
| DtLinearScalingAlgorithm (const DtLinearScalingAlgorithm &orig) | |
Friends | |
| class | DtLinearScalingAlgorithmCreator |
Additional Inherited Members | |
Protected Attributes inherited from makVrv::DtScalingAlgorithm | |
| double | myScaleFactor |
| double | myMaxScaleFactor |
Linear scaling algorithm implementation This Scaling algorithm implements basic linear scaling.
Objects in the scene are scaled by the scale factor indicated; neither object size or distance from the camera is used.
|
protected |
CTOR.
|
virtual |
DTOR.
|
private |
|
virtual |
Calculate the XR scale factor.
This is the method can be overridden to change to a different method. This version will scale based on the distance of the object from the eyepoint, its size, and the scale factor parameter in the cull visitor parameters set.
| [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. |
Implements makVrv::DtScalingAlgorithm.
|
private |
Unimplemented Copy CTOR.
|
friend |