VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtScalingAlgorithm Class Reference

Provides an algorithm for scaling objects in the scene. More...

Inheritance diagram for makVrv::DtScalingAlgorithm:
Inheritance graph
[legend]

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.

Detailed Description

Provides an algorithm for scaling objects in the scene.

Constructor & Destructor Documentation

virtual makVrv::DtScalingAlgorithm::~DtScalingAlgorithm ( )
virtual

DTOR.

Member Function Documentation

virtual double makVrv::DtScalingAlgorithm::calculateScale ( const DtOsgCullVisitorParameters info,
const osg::Camera &  camera,
const osg::Vec3d &  position,
double  modelRadius,
DtUniqueID  objectElementId 
)
pure virtual

Calculate the scale factor for an object in the scene.

Parameters
[in]infois 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]camerais 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]positionis the position of the object to be scaled
[in]modelRadiusis the bounding radius of the object to be scaled
[in]objectElementIdis the element ID of the object being scaled, if it exists - check first for (DtUniqueID)0.
Returns
the amount to scale the object

Implemented in makVrv::DtXRScalingAlgorithm.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)