version 3.3

VRS::PhysicalModelSettings Class Reference

PhysicalModelSettings is a set of configuration variables for a PhysicalModel. More...

#include <vrs/sg/physicalmodelsettings.h>

Inheritance diagram for VRS::PhysicalModelSettings:

VRS::SharedObj VRS::Visitable

List of all members.

Public Member Functions

 PhysicalModelSettings (bool preserveViewDirection)
void apply (SO< PhysicalModel > target) const
 Applies the stored settings to a given target model. 'target' must not be NULL.
void setViscosity (double viscosity=.5)
 All parameters are explained in physicalmodel.h.
double getViscosity () const
void setSpringStrength (double strength=50.0)
double getSpringStrength () const
double getMeterDefinition () const
void setMeterDefinition (double factor=1.0)
void setPreserveViewDirection (bool yesNo)
 The physical model modifies only the camera position.
bool getPreserveViewDirection () const
 VRS_TYPEINFO (PhysicalModelSettings, SharedObj)
 VRS_SERIALIZABLE (PhysicalModelSettings)


Detailed Description

PhysicalModelSettings is a set of configuration variables for a PhysicalModel.

A PhysicalModel is used for NavigationPurposes (see phyiscalmodel.h and navigationconcept for details). The seperation of the phyiscal model (containing state variables) its configuration into two classes allows to switch easily between different configurations of the physical model while it is running.


Constructor & Destructor Documentation

VRS::PhysicalModelSettings::PhysicalModelSettings ( bool  preserveViewDirection  ) 


Member Function Documentation

void VRS::PhysicalModelSettings::apply ( SO< PhysicalModel target  )  const

Applies the stored settings to a given target model. 'target' must not be NULL.

void VRS::PhysicalModelSettings::setViscosity ( double  viscosity = .5  ) 

All parameters are explained in physicalmodel.h.

double VRS::PhysicalModelSettings::getViscosity (  )  const

void VRS::PhysicalModelSettings::setSpringStrength ( double  strength = 50.0  ) 

double VRS::PhysicalModelSettings::getSpringStrength (  )  const

double VRS::PhysicalModelSettings::getMeterDefinition (  )  const

void VRS::PhysicalModelSettings::setMeterDefinition ( double  factor = 1.0  ) 

void VRS::PhysicalModelSettings::setPreserveViewDirection ( bool  yesNo  ) 

The physical model modifies only the camera position.

The camera orientation is calculated either by preversing the direction after applying the physical model or by preserving the lookTo point.

bool VRS::PhysicalModelSettings::getPreserveViewDirection (  )  const

VRS::PhysicalModelSettings::VRS_TYPEINFO ( PhysicalModelSettings  ,
SharedObj   
)

VRS::PhysicalModelSettings::VRS_SERIALIZABLE ( PhysicalModelSettings   ) 


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

Generated on Tue May 22 06:00:29 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact