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
moLunaClasses.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moLunaClasses.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  Andrés Colubri
29 
30  Description:
31  En este archivo se deben crear las clases de interface de LUA que encapsulan
32  las clases de Moldeo para que sean accesibles desde los scripts.
33 
34 *******************************************************************************/
35 
36 #include "moLuna.h"
37 #include "moMath.h"
38 #include "moMathFunction.h"
39 #include "moP5.h"
40 #include "moSoundManager.h"
41 #include "moVideoManager.h"
42 #include "moResourceManager.h"
43 
44 #ifndef __MO_LUNA_CLASSES_H__
45 #define __MO_LUNA_CLASSES_H__
46 
48 {
50 
58  SCRIPT_FUNCTION_DECLARATION(GetSoundCount);
64 
65  void Set( moSoundManager* p_pSoundMan);
66  private:
67  moSoundManager* m_pSoundMan;
68 
69 };
70 
72 {
74 
76 
77  SCRIPT_FUNCTION_DECLARATION(GetTextureCount);
78  SCRIPT_FUNCTION_DECLARATION(GetTextureMOId);
79  SCRIPT_FUNCTION_DECLARATION(GetTextureBuffer);
80  SCRIPT_FUNCTION_DECLARATION(AddTexture);
81  SCRIPT_FUNCTION_DECLARATION(DeleteTexture);
82  SCRIPT_FUNCTION_DECLARATION(AddTextureBuffer);
83  SCRIPT_FUNCTION_DECLARATION(DeleteTextureBuffer);
85  SCRIPT_FUNCTION_DECLARATION(ValidTexture);
86 
87  void Set( moTextureManager* p_pTextureMan);
88  private:
89  moTextureManager* m_pTextureMan;
90 
91 };
92 
98 {
100 
102  SCRIPT_FUNCTION_DECLARATION(StartRecording);
103  SCRIPT_FUNCTION_DECLARATION(PauseRecording);
104  SCRIPT_FUNCTION_DECLARATION(ContinueRecording);
105  SCRIPT_FUNCTION_DECLARATION(StopRecording);
106  SCRIPT_FUNCTION_DECLARATION(GetRecordPosition);
107  SCRIPT_FUNCTION_DECLARATION(GetFrameCount);
108  SCRIPT_FUNCTION_DECLARATION(IsRecording);
109 
110  void Set( moCircularVideoBuffer* p_pCircularVideoBuffer );
111 
112  private:
113  moCircularVideoBuffer* m_pCircularVideoBuffer;
114 };
115 
121 {
123 
125  SCRIPT_FUNCTION_DECLARATION(GetFrameCount);
126 
127  void Set( moVideoBuffer* p_pVideoBuffer );
128 
129  private:
130  moVideoBuffer* m_pVideoBuffer;
131 };
132 
137 {
139 
141  SCRIPT_FUNCTION_DECLARATION(GetPath);
142  SCRIPT_FUNCTION_DECLARATION(GetCompletePath);
143  SCRIPT_FUNCTION_DECLARATION(GetTotalFiles);
144  SCRIPT_FUNCTION_DECLARATION(GetImagesProcessed);
145  SCRIPT_FUNCTION_DECLARATION(LoadCompleted);
146 
147  void Set( moVideoBufferPath* p_pVideoBufferPath );
148 
149  private:
150  moVideoBufferPath* m_pVideoBufferPath;
151 };
152 
154 {
156 
161  //SCRIPT_FUNCTION_DECLARATION(GetVideoFramework);
162  //SCRIPT_FUNCTION_DECLARATION(GetCameraCount);
163  //SCRIPT_FUNCTION_DECLARATION(GetCamera);
164  SCRIPT_FUNCTION_DECLARATION(GetVideoBufferCount);
165  SCRIPT_FUNCTION_DECLARATION(GetVideoBuffer);
166  SCRIPT_FUNCTION_DECLARATION(GetCircularVideoBufferCount);
167  SCRIPT_FUNCTION_DECLARATION(GetCircularVideoBuffer);
168  SCRIPT_FUNCTION_DECLARATION(GetVideoBufferPathCount);
169  SCRIPT_FUNCTION_DECLARATION(GetVideoBufferPath);
170 
171  void Set( moVideoManager* p_pVideoMan);
172  private:
173  moVideoManager* m_pVideoMan;
174 
175 };
176 
177 
178 
180 {
182 
184 
185  SCRIPT_FUNCTION_DECLARATION(GetResourceCount);
186  SCRIPT_FUNCTION_DECLARATION(GetResource);
187  SCRIPT_FUNCTION_DECLARATION(GetResourceIndex);
188  SCRIPT_FUNCTION_DECLARATION(GetResourceByType);
189  SCRIPT_FUNCTION_DECLARATION(GetResourceName);
190  SCRIPT_FUNCTION_DECLARATION(GetResourceLabelName);
191  SCRIPT_FUNCTION_DECLARATION(GetResourceType);
192 
193  SCRIPT_FUNCTION_DECLARATION(GetTextureMan);
194  SCRIPT_FUNCTION_DECLARATION(GetVideoMan);
195  SCRIPT_FUNCTION_DECLARATION(GetSoundMan);
196 
197  void Set( moResourceManager* p_pResourceManager);
198  private:
199  moResourceManager* m_pResourceManager;
200 
201 };
202 
203 
210 {
212 
214 
234 
235  SCRIPT_FUNCTION_DECLARATION(UnitRandom)
236  SCRIPT_FUNCTION_DECLARATION(SymmetricRandom)
237  SCRIPT_FUNCTION_DECLARATION(IntervalRandom)
238 
239  moMathd Mathd;
240 };
241 
242 
247 /*
248 class LIBMOLDEO_API moLuaParserFunction : public moParserFunction
249 {
250  DECLARE_SCRIPT_CLASS(moLuaParserFunction)
251 
252  SCRIPT_CONSTRUCTOR_DECLARATION(moLuaParserFunction)
253 
254  SCRIPT_FUNCTION_DECLARATION(SetExpression)
255 
256  SCRIPT_FUNCTION_DECLARATION(SetParameters1)
257  SCRIPT_FUNCTION_DECLARATION(SetParameters2)
258  SCRIPT_FUNCTION_DECLARATION(SetParameters3)
259 
260  SCRIPT_FUNCTION_DECLARATION(Eval1)
261  SCRIPT_FUNCTION_DECLARATION(Eval2)
262  SCRIPT_FUNCTION_DECLARATION(Eval3)
263 
264  SCRIPT_FUNCTION_DECLARATION(GetParameterCount)
265  SCRIPT_FUNCTION_DECLARATION(GetVariableCount)
266 };
267 */
268 
273 class LIBMOLDEO_API moLuaP5 : public moP5
274 {
276 
278 
286 
287  SCRIPT_FUNCTION_DECLARATION(strokeWeight)
288  SCRIPT_FUNCTION_DECLARATION(background)
289  SCRIPT_FUNCTION_DECLARATION(colorMode)
290 
295 
296  SCRIPT_FUNCTION_DECLARATION(pushMatrix)
297  SCRIPT_FUNCTION_DECLARATION(popMatrix)
298  SCRIPT_FUNCTION_DECLARATION(resetMatrix)
299 
301  SCRIPT_FUNCTION_DECLARATION(translate)
303 
306 
310 };
311 
312 #endif
313 
virtual long GetRecordPosition()
Administrador de sonidos.
virtual bool IsRecording()
#define SCRIPT_FUNCTION_DECLARATION(FunctionName)
Definition: moLuna.h:637
Clase base abstracta de donde deben derivar los objetos [virtual pura].
Definition: moAbstract.h:191
virtual void PauseRecording()
#define LIBMOLDEO_API
Definition: moTypes.h:180
virtual MOuint GetFrameCount()
Definition: moTexture.h:615
Buffer de imágenes para video.
#define SCRIPT_CONSTRUCTOR_DECLARATION(ClassName)
Definition: moLuna.h:634
virtual void StartRecording(long at_position=-1)
MOboolean LoadCompleted()
#define DECLARE_SCRIPT_CLASS(ClassName)
Definition: moLuna.h:603
Administrador de recursos.
virtual void StopRecording()
Definition: moMath.h:64
virtual void ContinueRecording()
Definition: moP5.h:41
Circular Video Buffer for live loop video recording.