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.
 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 
55  };
56 
57 
59 
63  public:
64 
69 
71 
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 
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 
106 
108 
109  public:
110 
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 
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 
147 
148 
150 
151  int m_in;
152  int m_out;
153 
155 
156  moKeys m_SceneKeys;
158  };
159 
177 {
178  public:
179 
180  moSceneEffect();
181  virtual ~moSceneEffect();
182 
183  MOboolean Init();
184  void Draw(moTempo*,moEffectState* parentstate=NULL);
185  MOboolean Finish();
186 
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 
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 
virtual MOboolean Init()=0
Tempo, beat, ritmo.
Definition: moTempo.h:44
MOint m_fx_index
Definition: moSceneEffect.h:70
MOint m_active
Definition: moSceneEffect.h:67
MOint m_preconfig_index
Definition: moSceneEffect.h:66
moEffectManager & GetEffectManager()
virtual void LoadCodes(moIODeviceManager *)
Definition: moEffect.cpp:323
moKeys m_SceneKeys
#define MOboolean
Definition: moTypes.h:385
virtual ~moKeyEffect()
Definition: moSceneEffect.h:81
virtual MOboolean Finish()=0
moTimer m_Timer
moKeyEffect
Definition: moSceneEffect.h:62
#define LIBMOLDEO_API
Definition: moTypes.h:180
definición de todos los parámetros a encontrar o a crear dentro del moConfig
Definition: moConfig.h:57
virtual void Interaction(moIODeviceManager *)=0
moText m_action
Definition: moSceneEffect.h:68
Lista de eventos.
Definition: moEventList.h:139
clase de para manejar textos
Definition: moText.h:75
moSceneParamIndex
Definition: moSceneEffect.h:39
virtual moConfigDefinition * GetDefinition(moConfigDefinition *p_configdefinition=NULL)
Definition: moEffect.cpp:772
virtual void Draw(moTempo *, moEffectState *parentstate=NULL)=0
#define MOint
Definition: moTypes.h:388
moText m_state_name
moSceneState(const moSceneState &src)
virtual void Update(moEventList *p_EventList)
moText m_label_name
Definition: moSceneEffect.h:65
Clase para el control de un temporizador (relativo) con identificación
Definition: moTimer.h:321
virtual ~moSceneState()
moMatrix3 & operator=(const moMatrix3 &rkM)
moDeclareExportedDynamicArray(moKeyEffect, moKeys)
moKeys
Administrador de efectos.
moKeyEffect(const moKeyEffect &src)
Definition: moSceneEffect.h:84