VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCameraShake.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/DtTickable.h>
14 #include <string>
15 
16 namespace makVrv
17 {
18  class DtObserver;
19  class DtObserverModeManager;
20 
24  {
25  public:
27  DtCameraShake(DtDe& de, DtObserver& obs,
28  const std::string& cameraShakeType);
29 
31  virtual ~DtCameraShake();
32 
34  const std::string& type() const;
35 
37  void enableCameraShake();
38 
40  void disableCameraShake();
41 
43  bool cameraShakeEnabled() const;
44 
46  void setCameraShakeEnabled(bool enabled);
47 
49  void setCameraShakeIntensity(float intensity);
50 
52  float cameraShakeIntensity();
53 
56  virtual void update(DtTime tNow);
57 
59  virtual bool needsUpdate(DtTime tNow);
60 
62  virtual const DtObserver& observer();
63 
64  protected:
68 
69  // The category of this camera shake ex. "DtContinousCameraShake"
70  std::string myType;
71  };
72 
77  {
78  public:
80  friend class DtCameraShakeFactory;
81 
84 
86  virtual ~DtCameraShakeCreator();
87 
88  protected:
90  virtual DtCameraShake* create(DtDe& de, DtObserver& obs,
91  const std::string& cameraShakeType) = 0;
92  };
93 }
DtObserverModeManager is responsible for loading and saving observer modes, and providing a mechanism...
Definition: DtObserverModeManager.h:53
An abstract base class for objects that require updates. This object automatically adds itself to a D...
Definition: DtTickable.h:26
Factory to create the specific DtCameraShakes created when vrvCore starts up.
Definition: DtCameraShakeFactory.h:28
A facade for a DtObserverObject.
Definition: DtObserver.h:37
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtObserverModeManager & myObserverModeManager
Definition: DtCameraShake.h:67
Contains the declaration for makVrv::DtTickable.
DtDe & myDe
Definition: DtCameraShake.h:65
std::string myType
Definition: DtCameraShake.h:70
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:70
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
DtObserver & myObs
Definition: DtCameraShake.h:66

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)