VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCore
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
23
class
DT_DLL_VRVCORE
DtCameraShake
:
public
DtTickable
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
:
65
DtDe
&
myDe
;
66
DtObserver
&
myObs
;
67
DtObserverModeManager
&
myObserverModeManager
;
68
69
// The category of this camera shake ex. "DtContinousCameraShake"
70
std::string
myType
;
71
};
72
76
class
DT_DLL_VRVCORE
DtCameraShakeCreator
77
{
78
public
:
80
friend
class
DtCameraShakeFactory
;
81
83
DtCameraShakeCreator
();
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 Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)