VR-Forces 4.7 Class Documentation
 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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)