![]() |
VR-Forces 4.5 Class Documentation
|
Shake for a continuous process like a UAV (default on DtObserver) More...

Public Types | |
| enum | CameraAxis { Yaw, Pitch, Roll } |
Public Member Functions | |
| DtContinuousCameraShake (DtDe &de, DtObserver &obs, const std::string &cameraShakeType) | |
| virtual | ~DtContinuousCameraShake () |
| DTOR. | |
| virtual void | update (DtTime tNow) |
| The update function called by DtTickableManager during update-ticks. | |
| virtual void | setCameraShakeDeg (CameraAxis axis, double deg) |
| Set the camera shake maximum rotation degree components. | |
| virtual void | setCameraShakeSpeed (CameraAxis axis, double rate) |
| Set the speed of the camera shake. | |
| virtual void | setCameraShakePhase (CameraAxis axis, double phase) |
| Set the phase offset of the camera shake along the sine wave. | |
| virtual void | setCameraShakeNoiseScale (CameraAxis axis, double noise) |
| Set the magnitude of noise added into each axis. | |
| DtVector & | cameraShakeDeg () |
| Get max degree allowed for camera shake (yaw, pitch, roll) | |
| DtVector & | cameraShakeSpeed () |
| Get camera shake speed (yaw, pitch, roll) | |
| DtVector & | cameraShakePhase () |
| Get camera shake phase for sine waves (yaw, pitch, roll) | |
| DtVector & | cameraShakeNoiseScale () |
| Get camera shake added noise (on yaw, pitch, roll) | |
Public Member Functions inherited from makVrv::DtCameraShake | |
| DtCameraShake (DtDe &de, DtObserver &obs, const std::string &cameraShakeType) | |
| CTOR. | |
| virtual | ~DtCameraShake () |
| DTOR. | |
| const std::string & | type () const |
| What type of camera shake is this (ex. "DtContinuousCameraShake") | |
| void | enableCameraShake () |
| Enable camera shake. | |
| void | disableCameraShake () |
| Disable camera shake. | |
| bool | cameraShakeEnabled () const |
| Is camera shake enabled? | |
| void | setCameraShakeEnabled (bool enabled) |
| Enable or disable the camera shake. | |
| void | setCameraShakeIntensity (float intensity) |
| Set the camera shake intensity. | |
| float | cameraShakeIntensity () |
| Get the camera shake intensity. | |
| virtual bool | needsUpdate (DtTime tNow) |
| Determine if we need to call update this tick. | |
| virtual const DtObserver & | observer () |
| Retrieve the observer using this shake effect. | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual | ~DtTickable () |
| Virtual DTOR. | |
| virtual void | setUpdatePeriod (unsigned int period) |
| Specify how often (in # of frames) this tickable should call update. | |
| virtual unsigned int | updatePeriod () const |
Protected Attributes | |
| DtVector | myShakeDeg |
| DtVector | myShakeSpeed |
| DtVector | myShakePhaseDeg |
| DtVector | myShakeNoiseScale |
| DtQuat | myNoRotQuat |
Protected Attributes inherited from makVrv::DtCameraShake | |
| DtDe & | myDe |
| DtObserver & | myObs |
| DtObserverModeManager & | myObserverModeManager |
| std::string | myType |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| Pointer to manager for removal during destruction. | |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
Additional Inherited Members | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. | |
| DtTickable () | |
| Unimplemented default CTOR. | |
| virtual void | slot_managerAboutToBeDeleted () |
Shake for a continuous process like a UAV (default on DtObserver)
| makVrv::DtContinuousCameraShake::DtContinuousCameraShake | ( | DtDe & | de, |
| DtObserver & | obs, | ||
| const std::string & | cameraShakeType | ||
| ) |
|
virtual |
DTOR.
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Reimplemented from makVrv::DtCameraShake.
|
virtual |
Set the camera shake maximum rotation degree components.
|
virtual |
Set the speed of the camera shake.
|
virtual |
Set the phase offset of the camera shake along the sine wave.
|
virtual |
Set the magnitude of noise added into each axis.
| DtVector& makVrv::DtContinuousCameraShake::cameraShakeDeg | ( | ) |
Get max degree allowed for camera shake (yaw, pitch, roll)
| DtVector& makVrv::DtContinuousCameraShake::cameraShakeSpeed | ( | ) |
Get camera shake speed (yaw, pitch, roll)
| DtVector& makVrv::DtContinuousCameraShake::cameraShakePhase | ( | ) |
Get camera shake phase for sine waves (yaw, pitch, roll)
| DtVector& makVrv::DtContinuousCameraShake::cameraShakeNoiseScale | ( | ) |
Get camera shake added noise (on yaw, pitch, roll)
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |