| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/sg/physicalmodelsettings.h>

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) | |
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.
| VRS::PhysicalModelSettings::PhysicalModelSettings | ( | bool | preserveViewDirection | ) |
| 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 | ) |