VR-Forces 4.3.1 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/vrvCore.h>
14 #include <vrvCore/DtTickable.h>
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtObserver;
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:
67 
68  // The category of this camera shake ex. "DtContinousCameraShake"
69  std::string myType;
70  };
71 
76  {
77  public:
79  friend class DtCameraShakeFactory;
80 
83 
85  virtual ~DtCameraShakeCreator();
86 
87  protected:
89  virtual DtCameraShake* create(DtDe& de, DtObserver& obs,
90  const std::string& cameraShakeType) = 0;
91  };
92 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)