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
moEffectManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moEffectManager.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 __MOEFFECTMANAGER_H
33 #define __MOEFFECTMANAGER_H
34 
35 #include "moTypes.h"
36 #include "moArray.h"
37 #include "moEffect.h"
38 #include "moPostEffect.h"
39 #include "moPreEffect.h"
40 #include "moMasterEffect.h"
41 #include "moPlugin.h"
42 #include "moPostPlugin.h"
43 #include "moPrePlugin.h"
44 #include "moMasterPlugin.h"
45 #include "moResourceManager.h"
46 
48 
60 
61  public:
62 
67 
68  virtual ~moEffectManager();
69 
70  virtual MOboolean Init();
71 
72  virtual MOboolean Finish();
73 
75 
81  moEffect* New( moMobDefinition& p_MobDefinition );
82 
84 
96  moEffect* NewEffect( const moText& p_resname, const moText& p_configname, const moText& p_labelname, const moText& p_keyname, moMoldeoObjectType p_type, MOint p_paramindex, MOint p_valueindex, bool p_activate=true );
97 
101  MOboolean AddEffect( moEffect* m_pEffect );
102 
108  MOboolean RemoveEffect( MOint p_ID, moMoldeoObjectType p_type );
109  MOint GetEffectId( const moText& p_labelname );
110  moText GetEffectLabelName( MOint p_ID );
111  moMoldeoObjectType GetType( MOint p_ID );
112 
113  moEffect* GetEffectByLabel( const moText& p_label_name, moMoldeoObjectType p_mob_type=MO_OBJECT_UNDEFINED );
114 
115 
116  bool Set( int fx_index, moMoldeoObject* p_pMOB );
117 
118  moEffectsArray& AllEffects();
119  moPreEffectsArray& PreEffects();
120  moEffectsArray& Effects();
121  moPostEffectsArray& PostEffects();
122  moMasterEffectsArray& MasterEffects();
123 
126 
127  private:
128  // EFFECTS(TODOS,PREEFFECTS,EFFECTS;POSTEFFECTS)
129  moPreEffectsArray m_PreEffects;
130  moEffectsArray m_Effects;
131  moPostEffectsArray m_PostEffects;
132  moMasterEffectsArray m_MasterEffects;
133 
134  moPrePluginsArray m_PrePlugins;
135  moPluginsArray m_Plugins;
136  moPostPluginsArray m_PostPlugins;
137  moMasterPluginsArray m_MasterPlugins;
138 
139  moEffectsArray m_AllEffects;
140 
141 
142 
143 };
144 
145 
146 #endif
moMoldeoObjectType
Tipos de objetos en Moldeo.
Definition: moTypes.h:525
moEffectManager * m_pEffectManager
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
Definition: moAbstract.cpp:147
#define MOboolean
Definition: moTypes.h:385
Clase base abstracta de donde deben derivar los objetos [virtual pura].
Definition: moAbstract.h:191
virtual MOboolean Init()
Inicializa el objeto.
Definition: moAbstract.cpp:141
#define LIBMOLDEO_API
Definition: moTypes.h:180
clase de para manejar textos
Definition: moText.h:75
Clase Base Descriptiva de un Objeto Moldeo.
#define MOint
Definition: moTypes.h:388
Clase Base para Objetos Moldeo ( moEffect, moIODevice, moResource, moConsole )
Administrador de recursos.
moResourceManager * m_pResourceManager
clase base para objetos dibujables
Definition: moEffect.h:82
Administrador de efectos.