VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
23  {
24  public:
26  DtCameraShake(DtDe& de, DtObserver& obs,
27  const std::string& cameraShakeType);
28 
30  virtual ~DtCameraShake();
31 
33  const std::string& type() const;
34 
36  void enableCameraShake();
37 
39  void disableCameraShake();
40 
42  bool cameraShakeEnabled() const;
43 
45  void setCameraShakeEnabled(bool enabled);
46 
48  void setCameraShakeIntensity(float intensity);
49 
51  float cameraShakeIntensity();
52 
55  virtual void update(DtTime tNow);
56 
58  virtual bool needsUpdate(DtTime tNow);
59 
61  virtual const DtObserver& observer();
62 
63  protected:
66 
67  // The category of this camera shake ex. "DtContinousCameraShake"
68  std::string myType;
69  };
70 
75  {
76  public:
78  friend class DtCameraShakeFactory;
79 
82 
84  virtual ~DtCameraShakeCreator();
85 
86  protected:
88  virtual DtCameraShake* create(DtDe& de, DtObserver& obs,
89  const std::string& cameraShakeType) = 0;
90  };
91 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)