VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions | Friends
makVrv::DtLinearScalingAlgorithm Class Reference

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.

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

Public Member Functions

virtual ~DtLinearScalingAlgorithm ()
 
virtual double calculateScale (const DtOsgCullVisitorParameters &info, const osg::Camera &camera, const osg::Vec3d &position, double modelRadius, DtUniqueID objectElementId) const
 
- Public Member Functions inherited from makVrv::DtScalingAlgorithm
 DtScalingAlgorithm ()
 
virtual ~DtScalingAlgorithm ()
 
virtual double scaleFactor () const
 
virtual void setScaleFactor (double maxScale)
 
virtual double maxScaleFactor () const
 
virtual void setMaxScaleFactor (double maxScale)
 

Protected Member Functions

 DtLinearScalingAlgorithm ()
 

Private Member Functions

DtLinearScalingAlgorithmoperator= (const DtLinearScalingAlgorithm &rhs)
 
 DtLinearScalingAlgorithm (const DtLinearScalingAlgorithm &orig)
 

Friends

class DtLinearScalingAlgorithmCreator
 

Additional Inherited Members

- Protected Attributes inherited from makVrv::DtScalingAlgorithm
double myScaleFactor
 
double myMaxScaleFactor
 

Constructor & Destructor Documentation

makVrv::DtLinearScalingAlgorithm::DtLinearScalingAlgorithm ( )
protected

CTOR.

virtual makVrv::DtLinearScalingAlgorithm::~DtLinearScalingAlgorithm ( )
virtual

DTOR.

makVrv::DtLinearScalingAlgorithm::DtLinearScalingAlgorithm ( const DtLinearScalingAlgorithm orig)
private

Member Function Documentation

virtual double makVrv::DtLinearScalingAlgorithm::calculateScale ( const DtOsgCullVisitorParameters info,
const osg::Camera &  camera,
const osg::Vec3d &  position,
double  modelRadius,
DtUniqueID  objectElementId 
) const
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.

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

Implements makVrv::DtScalingAlgorithm.

DtLinearScalingAlgorithm& makVrv::DtLinearScalingAlgorithm::operator= ( const DtLinearScalingAlgorithm rhs)
private

Unimplemented Copy CTOR.

Friends And Related Function Documentation

friend class DtLinearScalingAlgorithmCreator
friend

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

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)