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
moEffect.h
Go to the documentation of this file.
1
/*******************************************************************************
2
3
moEffect.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
#ifndef __MO_EFFECT_H__
32
#define __MO_EFFECT_H__
33
34
class
moEffect
;
35
36
#include "
moAbstract.h
"
37
#include "
moTempo.h
"
38
#include "
moArray.h
"
39
#include "
moMathFunctionIndex.h
"
40
#include "
moIODeviceManager.h
"
41
#include "
moConfig.h
"
42
#include "
moEffectState.h
"
43
#include "
moPreConfig.h
"
44
#include "
moPresets.h
"
45
#include "
moMotion.h
"
46
#include "
moText.h
"
47
#include "
moMoldeoObject.h
"
48
#include "
moResourceManager.h
"
49
//resources
50
#include "
moRenderManager.h
"
51
#include "
moMathManager.h
"
52
#include "
moTextureManager.h
"
53
#include "
moFontManager.h
"
54
#include "
moSoundManager.h
"
55
#include "
moScriptManager.h
"
56
#include "
mo3dModelManager.h
"
57
#include "
moRenderManager.h
"
58
#include "
moGUIManager.h
"
59
61
82
class
LIBMOLDEO_API
moEffect
:
public
moMoldeoObject
83
{
84
public
:
85
89
moEffect
();
90
94
virtual
~
moEffect
();
95
100
virtual
MOboolean
Init
() = 0;
101
105
virtual
void
Draw(
moTempo
*,
moEffectState
* parentstate=NULL) = 0;
106
111
virtual
MOboolean
Finish
() = 0;
112
119
virtual
MOboolean
PreInit();
120
126
virtual
void
PreDraw(
moTempo
*,
moEffectState
* parentstate=NULL);
127
virtual
void
BeginDraw(
moTempo
*,
moEffectState
* parentstate=NULL);
128
virtual
void
EndDraw();
129
130
virtual
MOboolean
PreFinish();
131
132
virtual
void
Interaction(
moIODeviceManager
* );
133
virtual
void
LoadCodes(
moIODeviceManager
* );
134
virtual
moConfigDefinition
*
GetDefinition
(
moConfigDefinition
*p_configdefinition = NULL );
//retreive the parameters definition of the Moldeo Object
135
139
virtual
const
moEffectState
& GetEffectState();
140
virtual
bool
SetEffectState(
const
moEffectState
& p_state );
141
virtual
const
moMobState
&
GetState
();
142
virtual
bool
SetState
(
const
moMobState
& p_MobState );
143
144
145
//virtual void SetNombreConfig(moText texto);
146
147
void
SetColor(
const
moColorRGBA
& color_rgba,
double
alpha,
moEffectState
& pstate );
148
void
SetColor(
moValue
& color,
moValue
& alpha,
moEffectState
& pstate );
149
void
SetColor(
moParam
& color,
moParam
& alpha,
moEffectState
& pstate );
150
void
SetBlending(
moBlendingModes
blending );
151
void
SetPolygonMode(
moPolygonModes
polygonmode );
152
153
virtual
void
TurnOn();
154
virtual
void
TurnOff();
155
virtual
void
Enable();
156
virtual
void
Disable();
157
virtual
void
SwitchOn();
158
virtual
void
SwitchEnabled();
159
virtual
void
Synchronize();
160
virtual
void
Unsynchronize();
161
virtual
bool
Synchronized();
162
virtual
void
BeatPulse();
163
virtual
double
TempoDelta(
double
p_delta );
164
virtual
double
GetTempoDelta()
const
;
165
double
SetTempoDelta(
double
p_delta );
166
virtual
double
TempoFactor(
double
p_factor );
167
virtual
double
GetTempoFactor()
const
;
168
169
virtual
double
Alpha(
double
alpha );
170
virtual
double
GetAlpha()
const
;
171
virtual
double
Amplitude(
double
amplitude );
172
virtual
double
GetAmplitude()
const
;
173
virtual
double
Magnitude(
double
magnitude );
174
virtual
double
GetMagnitude()
const
;
175
176
virtual
void
TintCSV(
double
tintc,
double
tints,
double
tint );
177
virtual
moVector3f
GetTintCSV()
const
;
178
virtual
moVector3f
GetTintRGB()
const
;
179
180
181
virtual
void
Play();
182
virtual
void
Stop();
183
virtual
void
Pause();
184
virtual
void
Continue();
185
186
virtual
moTimerState
State();
187
188
virtual
const
moText
&
ToJSON
();
189
190
public
:
191
192
moPresets
presets
;
193
moMotion
mov
;
194
moDeviceCodeList
*
devicecode
;
//accion vs moDeviceCode, personalizable
195
MOint
ncodes
;
196
197
MOint
isyncro
;
198
MOint
iphase
;
199
200
// Agregado para poder asignar efectos a teclas arbitrarias de las 4 filas del teclado.
201
// Luego hay que discutirlo/implementarlo mejor...
202
MOint
keyidx
;
203
204
protected
:
205
206
moEffectState
m_EffectState
;
207
moObject3D
m_Effect3D
;
208
209
virtual
int
ScriptCalling
(
moLuaVirtualMachine
& vm,
int
iFunctionNumber);
210
void
RegisterFunctions
();
211
212
213
int
luaPlay(
moLuaVirtualMachine
& vm );
214
int
luaPause(
moLuaVirtualMachine
& vm );
215
int
luaStop(
moLuaVirtualMachine
& vm );
216
int
luaState(
moLuaVirtualMachine
& vm );
217
218
int
luaGetTicks(
moLuaVirtualMachine
& vm);
219
int
luaSetTicks(
moLuaVirtualMachine
& vm);
220
222
int
luaDisable(
moLuaVirtualMachine
& vm);
223
int
luaEnable(
moLuaVirtualMachine
& vm);
226
int
luaSetEffectState(
moLuaVirtualMachine
& vm);
227
int
luaGetEffectState(
moLuaVirtualMachine
& vm);
228
229
moInlet
*
InletTime
;
230
moInlet
*
InletTimems
;
231
moInlet
*
InletMilliseconds
;
232
moInlet
*
InletTimes
;
233
moInlet
*
InletSeconds
;
234
moInlet
*
InletT
;
235
moInlet
*
InletTempo
;
236
237
virtual
void
ScriptExeDraw();
238
virtual
void
ScriptExeInteraction();
239
240
};
241
242
moDeclareExportedDynamicArray
(
moEffect
*, moEffectsArray);
243
244
#endif
moEffect::mov
moMotion mov
Definition:
moEffect.h:193
moValue
Valor de un Parámetro.
Definition:
moValue.h:501
moMoldeoObject::SetState
virtual bool SetState(const moMobState &p_MobState)
Definition:
moMoldeoObject.cpp:420
moObject3D
Definition:
moGUIManager.h:282
moTempo
Tempo, beat, ritmo.
Definition:
moTempo.h:44
moVector4< MOfloat >
moEffect::isyncro
MOint isyncro
Definition:
moEffect.h:197
moInlet
Conector Inlet, conector que recibe datos.
Definition:
moConnectors.h:374
moArray.h
moIODeviceManager
Definition:
moIODeviceManager.h:168
moPresets
Definition:
moPresets.h:39
moMotion.h
MOboolean
#define MOboolean
Definition:
moTypes.h:385
moEffect::keyidx
MOint keyidx
Definition:
moEffect.h:202
moMoldeoObject::ScriptCalling
virtual int ScriptCalling(moLuaVirtualMachine &vm, int iFunctionNumber)
Definition:
moMoldeoObject.cpp:1310
moTempo.h
moSoundManager.h
moDeviceCodeList
Definition:
moDeviceCode.h:50
mo3dModelManager.h
moRenderManager.h
moParam
Definition:
moParam.h:359
moEffect::InletTime
moInlet * InletTime
Definition:
moEffect.h:229
moVector3< MOfloat >
moEffect::InletTempo
moInlet * InletTempo
Definition:
moEffect.h:235
moMoldeoObject::GetState
virtual const moMobState & GetState() const
Definition:
moMoldeoObject.cpp:415
moAbstract.h
moMoldeoObject.h
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
moConfig.h
moText0
clase de para manejar textos
Definition:
moText.h:75
moTextureManager.h
moMathFunctionIndex.h
moEffect::InletTimems
moInlet * InletTimems
Definition:
moEffect.h:230
moMoldeoObject::GetDefinition
virtual moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
Definition:
moMoldeoObject.cpp:1046
moEffect::InletTimes
moInlet * InletTimes
Definition:
moEffect.h:232
moEffect::m_EffectState
moEffectState m_EffectState
Definition:
moEffect.h:206
moEffect::presets
moPresets presets
Definition:
moEffect.h:192
moEffect::InletT
moInlet * InletT
Definition:
moEffect.h:234
moResourceManager.h
MOint
#define MOint
Definition:
moTypes.h:388
moTimerState
moTimerState
Estado del temporizador.
Definition:
moTimer.h:75
moIODeviceManager.h
moScriptManager.h
moMathManager.h
moMoldeoObject
Clase Base para Objetos Moldeo ( moEffect, moIODevice, moResource, moConsole )
Definition:
moMoldeoObject.h:409
moText.h
moLuaVirtualMachine
Definition:
moLuaBase.h:66
moGUIManager.h
moEffect::m_Effect3D
moObject3D m_Effect3D
Definition:
moEffect.h:207
moMoldeoObject::RegisterFunctions
virtual void RegisterFunctions()
beware ! call only once or die!!!
Definition:
moMoldeoObject.cpp:1258
moPreConfig.h
moEffect::devicecode
moDeviceCodeList * devicecode
Definition:
moEffect.h:194
moMobState
Definition:
moMoldeoObject.h:358
moEffect::InletMilliseconds
moInlet * InletMilliseconds
Definition:
moEffect.h:231
moPresets.h
moEffect
clase base para objetos dibujables
Definition:
moEffect.h:82
moEffectState.h
moMoldeoObject::ToJSON
virtual const moText & ToJSON()
Definition:
moMoldeoObject.cpp:2664
moEffect::iphase
MOint iphase
Definition:
moEffect.h:198
moMoldeoObject::Finish
virtual MOboolean Finish()
Definition:
moMoldeoObject.cpp:949
moMotion
Definition:
moMotion.h:41
moEffect::ncodes
MOint ncodes
Definition:
moEffect.h:195
moPolygonModes
moPolygonModes
Modos de dibujado de polígonos.
Definition:
moTypes.h:472
moDeclareExportedDynamicArray
moDeclareExportedDynamicArray(moEffect *, moEffectsArray)
moBlendingModes
moBlendingModes
Modos de combinación
Definition:
moTypes.h:453
moEffect::InletSeconds
moInlet * InletSeconds
Definition:
moEffect.h:233
moFontManager.h
moMoldeoObject::Init
virtual MOboolean Init()
Definition:
moMoldeoObject.cpp:472
libmoldeo
moEffect.h
Generated on Wed May 17 2017 14:09:17 for libmoldeo (Moldeo 1.0 Core) by
1.8.8