VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtContinuousCameraShake.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
10 
11 #pragma once
12 
13 #include <vrvCore/vrvCore.h>
14 #include <vrvCore/DtCameraShake.h>
15 
16 #include <matrix/vlVector.h>
17 #include <vrvUtil/DtQuat.h>
18 
19 
20 namespace makVrv
21 {
25  {
26  public:
28  {
29  Yaw,
31  Roll
32  };
33 
34  //~CTOR
36  const std::string& cameraShakeType);
37 
39  virtual ~DtContinuousCameraShake();
40 
43  virtual void update( DtTime tNow );
44 
46  virtual void setCameraShakeDeg(CameraAxis axis, double deg);
47 
49  virtual void setCameraShakeSpeed(CameraAxis axis, double rate);
50 
52  virtual void setCameraShakePhase(CameraAxis axis, double phase);
53 
55  virtual void setCameraShakeNoiseScale(CameraAxis axis, double noise);
56 
58  DtVector& cameraShakeDeg();
59 
61  DtVector& cameraShakeSpeed();
62 
64  DtVector& cameraShakePhase();
65 
67  DtVector& cameraShakeNoiseScale();
68 
69  protected:
70  // Vectors are YAW, PITCH, ROLL
76  };
77 
78 
79  //
80  // Creator
81  //
82 
87  : public DtCameraShakeCreator
88  {
89  public:
91  friend class DtCameraShakeFactory;
92 
95 
98 
99  protected:
101  virtual DtCameraShake* create(DtDe& de, DtObserver& obs,
102  const std::string& cameraShakeType);
103  };
104 }
DtVector myShakeSpeed
Definition: DtContinuousCameraShake.h:72
DtVector myShakeNoiseScale
Definition: DtContinuousCameraShake.h:74
Shake for a continuous process like a UAV (default on DtObserver)
Definition: DtContinuousCameraShake.h:24
DtQuat myNoRotQuat
Definition: DtContinuousCameraShake.h:75
Factory to create the specific DtCameraShakes created when vrvCore starts up.
Definition: DtCameraShakeFactory.h:28
DtVector myShakeDeg
Definition: DtContinuousCameraShake.h:71
CameraAxis
Definition: DtContinuousCameraShake.h:27
A facade for a DtObserverObject.
Definition: DtObserver.h:37
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv::DtQuat class.
A DtContinuousCameraShakeCreator instance is registered with the DtCameraShakeFactory to create DtCam...
Definition: DtContinuousCameraShake.h:86
Definition: DtContinuousCameraShake.h:29
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
A utility Quaternion class.
Definition: DtQuat.h:19
Definition: DtContinuousCameraShake.h:30
Provides an algorithm for shaking the camera.
Definition: DtCameraShake.h:23
DtCameraShakeCreator is the common base class for all camera shake creators.
Definition: DtCameraShake.h:76
DtVector myShakePhaseDeg
Definition: DtContinuousCameraShake.h:73
Contains DLL export macros.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)