libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
moSceneEffect.h
Go to the documentation of this file.
1
/*******************************************************************************
2
3
moSceneEffect.h
4
5
****************************************************************************
6
* *
7
* This source is free software; you can redistribute it and/or modify *
8
* it under the terms of the GNU General Public License as published by *
9
* the Free Software Foundation; either version 2 of the License, or *
10
* (at your option) any later version. *
11
* *
12
* This code is distributed in the hope that it will be useful, but *
13
* WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15
* General Public License for more details. *
16
* *
17
* A copy of the GNU General Public License is available on the World *
18
* Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19
* obtain it by writing to the Free Software Foundation, *
20
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
* *
22
****************************************************************************
23
24
Copyright(C) 2006 Fabricio Costa
25
26
Authors:
27
Fabricio Costa
28
29
30
*******************************************************************************/
31
32
#ifndef __MO_SCENE_EFFECT_H__
33
#define __MO_SCENE_EFFECT_H__
34
35
#include "
moSequenceEffect.h
"
36
#include "
moConsole.h
"
37
#include "
moEffectManager.h
"
38
39
enum
moSceneParamIndex
{
40
SCENE_INLET
,
41
SCENE_OUTLET
,
42
SCENE_SCRIPT
,
43
SCENE_ALPHA
,
44
SCENE_COLOR
,
45
SCENE_SYNC
,
46
SCENE_PHASE
,
47
SCENE_PREEFFECTS
,
48
SCENE_EFFECTS
,
49
SCENE_POSTEFFECTS
,
50
SCENE_STATES
,
51
SCENE_SEQUENCE_MODE
,
52
SCENE_SEQUENCE_DURATION
,
53
SCENE_SEQUENCE_LOOP
,
54
SCENE_CREATE_LAYER
55
};
56
57
59
62
class
LIBMOLDEO_API
moKeyEffect
{
63
public
:
64
65
moText
m_label_name
;
66
MOint
m_preconfig_index
;
67
MOint
m_active
;
68
moText
m_action
;
69
70
MOint
m_fx_index
;
71
72
moKeyEffect
() {
73
m_label_name =
"undefined"
;
74
m_preconfig_index = 0;
75
m_active =
false
;
76
m_action =
""
;
77
78
m_fx_index = -1;
79
}
80
81
virtual
~moKeyEffect
() {
82
}
83
84
moKeyEffect
(
const
moKeyEffect
& src ) {
85
(*this) = src;
86
}
87
88
moKeyEffect
&
operator =
(
const
moKeyEffect
& src ) {
89
m_label_name = src.
m_label_name
;
90
m_preconfig_index = src.
m_preconfig_index
;
91
m_active = src.
m_active
;
92
m_fx_index = src.
m_fx_index
;
93
m_action = src.
m_action
;
94
return
(*
this
);
95
}
96
97
int
Set(
const
moText
& p_XmlText );
98
99
};
100
102
105
moDeclareExportedDynamicArray
(
moKeyEffect
, moKeys );
106
107
class
LIBMOLDEO_API
moSceneState
{
108
109
public
:
110
111
moSceneState
() {
112
113
m_state_name =
""
;
114
115
m_mode =
"auto"
;
116
117
m_in = -1;
118
m_out = -1;
119
120
m_action =
""
;
121
122
}
123
virtual
~moSceneState
() {}
124
125
moSceneState
(
const
moSceneState
& src ) {
126
(*this) = src;
127
}
128
129
moSceneState
&
operator =
(
const
moSceneState
& src ) {
130
131
m_state_name = src.
m_state_name
;
132
133
m_mode = src.
m_mode
;
134
135
m_in = src.
m_in
;
136
m_out = src.
m_out
;
137
m_action = src.
m_action
;
138
139
m_SceneKeys = src.
m_SceneKeys
;
140
m_Timer = src.
m_Timer
;
141
return
(*
this
);
142
}
143
144
int
Set(
const
moText
& p_XmlText );
145
146
moText
m_state_name
;
147
148
149
moText
m_mode
;
150
151
int
m_in
;
152
int
m_out
;
153
154
moText
m_action
;
155
156
moKeys
m_SceneKeys
;
157
moTimer
m_Timer
;
158
};
159
176
class
LIBMOLDEO_API
moSceneEffect
:
public
moMasterEffect
177
{
178
public
:
179
180
moSceneEffect
();
181
virtual
~
moSceneEffect
();
182
183
MOboolean
Init
();
184
void
Draw
(
moTempo
*,
moEffectState
* parentstate=NULL);
185
MOboolean
Finish
();
186
187
void
Interaction
(
moIODeviceManager
*);
188
void
LoadCodes
(
moIODeviceManager
*);
189
moConfigDefinition
*
GetDefinition
(
moConfigDefinition
*p_configdefinition );
190
195
virtual
void
Update
(
moEventList
* p_EventList );
//checks p_EventList for events/messages
196
197
void
UpdateParameters();
198
199
int
UpdateSceneState(
int
i_state );
200
int
SetSceneState(
int
i_state );
201
int
NextSceneState(
int
i_state );
202
203
moEffectManager
&
GetEffectManager
() {
204
return
m_EffectManager;
205
}
206
207
int
GetObjectId(
moText
p_label_name );
208
int
UpdateMoldeoIds( moMoldeoObjects &p_MoldeoSceneObjects );
209
210
private
:
211
212
int
m_i_scene_states;
213
int
m_n_scene_states;
214
moSceneState
m_SceneStates[1024];
215
moEffectManager
m_EffectManager;
216
};
217
218
#endif
219
moSceneEffect
Definition:
moSceneEffect.h:176
moMasterEffect::Init
virtual MOboolean Init()=0
SCENE_INLET
Definition:
moSceneEffect.h:40
moTempo
Tempo, beat, ritmo.
Definition:
moTempo.h:44
SCENE_PREEFFECTS
Definition:
moSceneEffect.h:47
moKeyEffect::m_fx_index
MOint m_fx_index
Definition:
moSceneEffect.h:70
moKeyEffect::m_active
MOint m_active
Definition:
moSceneEffect.h:67
moKeyEffect::m_preconfig_index
MOint m_preconfig_index
Definition:
moSceneEffect.h:66
moSceneState::m_out
int m_out
Definition:
moSceneEffect.h:152
moSequenceEffect.h
moSceneEffect::GetEffectManager
moEffectManager & GetEffectManager()
Definition:
moSceneEffect.h:203
moEffect::LoadCodes
virtual void LoadCodes(moIODeviceManager *)
Definition:
moEffect.cpp:323
moSceneState::m_SceneKeys
moKeys m_SceneKeys
Definition:
moSceneEffect.h:156
moIODeviceManager
Definition:
moIODeviceManager.h:168
moSceneState
Definition:
moSceneEffect.h:107
MOboolean
#define MOboolean
Definition:
moTypes.h:385
SCENE_CREATE_LAYER
Definition:
moSceneEffect.h:54
moEffectManager.h
moKeyEffect::~moKeyEffect
virtual ~moKeyEffect()
Definition:
moSceneEffect.h:81
moMasterEffect::Finish
virtual MOboolean Finish()=0
SCENE_SEQUENCE_MODE
Definition:
moSceneEffect.h:51
moSceneState::moSceneState
moSceneState()
Definition:
moSceneEffect.h:111
SCENE_STATES
Definition:
moSceneEffect.h:50
SCENE_SEQUENCE_LOOP
Definition:
moSceneEffect.h:53
SCENE_EFFECTS
Definition:
moSceneEffect.h:48
moSceneState::m_Timer
moTimer m_Timer
Definition:
moSceneEffect.h:157
moKeyEffect
moKeyEffect
Definition:
moSceneEffect.h:62
LIBMOLDEO_API
#define LIBMOLDEO_API
Definition:
moTypes.h:180
moEffectState
Definition:
moEffectState.h:44
moConfigDefinition
definición de todos los parámetros a encontrar o a crear dentro del moConfig
Definition:
moConfig.h:57
moMasterEffect::Interaction
virtual void Interaction(moIODeviceManager *)=0
moKeyEffect::m_action
moText m_action
Definition:
moSceneEffect.h:68
moEventList
Lista de eventos.
Definition:
moEventList.h:139
moText0
clase de para manejar textos
Definition:
moText.h:75
moSceneParamIndex
moSceneParamIndex
Definition:
moSceneEffect.h:39
moEffect::GetDefinition
virtual moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
Definition:
moEffect.cpp:772
SCENE_SYNC
Definition:
moSceneEffect.h:45
moMasterEffect::Draw
virtual void Draw(moTempo *, moEffectState *parentstate=NULL)=0
moConsole.h
MOint
#define MOint
Definition:
moTypes.h:388
SCENE_OUTLET
Definition:
moSceneEffect.h:41
SCENE_COLOR
Definition:
moSceneEffect.h:44
moSceneState::m_state_name
moText m_state_name
Definition:
moSceneEffect.h:146
moSceneState::moSceneState
moSceneState(const moSceneState &src)
Definition:
moSceneEffect.h:125
moMoldeoObject::Update
virtual void Update(moEventList *p_EventList)
Definition:
moMoldeoObject.cpp:1133
SCENE_PHASE
Definition:
moSceneEffect.h:46
SCENE_SCRIPT
Definition:
moSceneEffect.h:42
moKeyEffect::m_label_name
moText m_label_name
Definition:
moSceneEffect.h:65
moSceneState::m_mode
moText m_mode
Definition:
moSceneEffect.h:149
SCENE_ALPHA
Definition:
moSceneEffect.h:43
moTimer
Clase para el control de un temporizador (relativo) con identificación
Definition:
moTimer.h:321
moSceneState::~moSceneState
virtual ~moSceneState()
Definition:
moSceneEffect.h:123
operator=
moMatrix3 & operator=(const moMatrix3 &rkM)
Definition:
moMathMatrix.h:2102
moDeclareExportedDynamicArray
moDeclareExportedDynamicArray(moKeyEffect, moKeys)
moKeys
moSceneState::m_action
moText m_action
Definition:
moSceneEffect.h:154
moSceneState::m_in
int m_in
Definition:
moSceneEffect.h:151
moMasterEffect
Definition:
moMasterEffect.h:54
SCENE_SEQUENCE_DURATION
Definition:
moSceneEffect.h:52
moEffectManager
Administrador de efectos.
Definition:
moEffectManager.h:59
moKeyEffect::moKeyEffect
moKeyEffect(const moKeyEffect &src)
Definition:
moSceneEffect.h:84
moKeyEffect::moKeyEffect
moKeyEffect()
Definition:
moSceneEffect.h:72
SCENE_POSTEFFECTS
Definition:
moSceneEffect.h:49
libmoldeo
moSceneEffect.h
Generated on Wed May 17 2017 14:09:19 for libmoldeo (Moldeo 1.0 Core) by
1.8.8