-
Notifications
You must be signed in to change notification settings - Fork 0
/
MeTimelineCloudySkyEvent.h
95 lines (76 loc) · 3.07 KB
/
MeTimelineCloudySkyEvent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#pragma once
#include <MeFoundation/MeTimelineShadeEvent.h>
/**
* @brief Sunny to cloudy or cloudy to sunny
*/
class MEFOUNDATION_ENTRY MeTimelineCloudySkyEvent : public MeTimelineShadeEvent
{
// Construction.
public:
/// Constructor.
MeTimelineCloudySkyEvent(){
m_kOriginalAmbient = D3DXCOLOR( 0, 0, 0, 0 );
m_kOriginalDiffuse = D3DXCOLOR( 0, 0, 0, 0 );
m_kDestinationAmbient = D3DXCOLOR( 0, 0, 0, 0 );
m_kDestinationDiffuse = D3DXCOLOR( 0, 0, 0, 0 );
m_kCurrentAmbient = D3DXCOLOR( 0, 0, 0, 0 );
m_kCurrentDiffuse = D3DXCOLOR( 0, 0, 0, 0 );
}
/// Copy constructor.
MeTimelineCloudySkyEvent( const MeTimelineCloudySkyEvent& kClass ){
m_kOriginalAmbient = kClass.m_kOriginalAmbient;
m_kOriginalDiffuse = kClass.m_kOriginalDiffuse;
m_kDestinationAmbient = kClass.m_kDestinationAmbient;
m_kDestinationDiffuse = kClass.m_kDestinationDiffuse;
m_kCurrentAmbient = kClass.m_kCurrentAmbient;
m_kCurrentDiffuse = kClass.m_kCurrentDiffuse;
}
// Overload operator.
public:
/// Assignment operator.
const MeTimelineCloudySkyEvent& operator=( const MeTimelineCloudySkyEvent& kClass ){
m_kOriginalAmbient = kClass.m_kOriginalAmbient;
m_kOriginalDiffuse = kClass.m_kOriginalDiffuse;
m_kDestinationAmbient = kClass.m_kDestinationAmbient;
m_kDestinationDiffuse = kClass.m_kDestinationDiffuse;
m_kCurrentAmbient = kClass.m_kCurrentAmbient;
m_kCurrentDiffuse = kClass.m_kCurrentDiffuse;
return *this;
}
// Override.
public:
/// Destructor.
virtual ~MeTimelineCloudySkyEvent(){}
/// Destroy.
virtual void DestroyEvent() {}
/// Render.
virtual void RenderEvent() {}
virtual void DoFirstInRunning( const MeTimeValue& kTime );
virtual void UpdateBeginToFull( const MeTimeValue& kTime );
virtual void UpdateInFull( const MeTimeValue& kTime );
virtual void UpdateFullToEnd( const MeTimeValue& kTime );
// Methods.
public:
const D3DXCOLOR& GetOriginalAmbient() const { return m_kOriginalAmbient; }
void SetOriginalAmbient(const D3DXCOLOR& val) { m_kOriginalAmbient = val; }
const D3DXCOLOR& GetOriginalDiffuse() const { return m_kOriginalDiffuse; }
void SetOriginalDiffuse(const D3DXCOLOR& val) { m_kOriginalDiffuse = val; }
const D3DXCOLOR& GetDestinationAmbient() const { return m_kDestinationAmbient; }
void SetDestinationAmbient(const D3DXCOLOR& val) { m_kDestinationAmbient = val; }
const D3DXCOLOR& GetDestinationDiffuse() const { return m_kDestinationDiffuse; }
void SetDestinationDiffuse(const D3DXCOLOR& val) { m_kDestinationDiffuse = val; }
const D3DXCOLOR& GetCurrentAmbient() const { return m_kCurrentAmbient; }
void SetCurrentAmbient(const D3DXCOLOR& val) { m_kCurrentAmbient = val; }
const D3DXCOLOR& GetCurrentDiffuse() const { return m_kCurrentDiffuse; }
void SetCurrentDiffuse(const D3DXCOLOR& val) { m_kCurrentDiffuse = val; }
// Methods.
protected:
// Members.
protected:
D3DXCOLOR m_kOriginalAmbient;
D3DXCOLOR m_kOriginalDiffuse;
D3DXCOLOR m_kDestinationAmbient;
D3DXCOLOR m_kDestinationDiffuse;
D3DXCOLOR m_kCurrentAmbient;
D3DXCOLOR m_kCurrentDiffuse;
};