libmoldeo (Moldeo 1.0 Core)
1.0
libmoldeo es el conjunto de objetos y funciones, que permiten ejecutar las operaciones básicas de la plataforma Moldeo, y que compone su núcleo.
Página principal
Páginas relacionadas
Módulos
Namespaces
Clases
Archivos
Lista de archivos
Miembros de los ficheros
Todo
Clases
Namespaces
Archivos
Funciones
Variables
'typedefs'
Enumeraciones
Valores de enumeraciones
Amigas
'defines'
Grupos
Páginas
moMotion.h
Ir a la documentación de este archivo.
1
/*******************************************************************************
2
3
moMotion.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_MOTION_H__
32
#define __MO_MOTION_H__
33
34
#include "
moParam.h
"
35
#include "
moTypes.h
"
36
37
#define torad 0.0174532925199432957692369076848861f // PI/180
38
#define togra 57.2957795130823208767981548141052f // 180/PI
39
#define sqrt2 0.707106781186547524400844362104849f // sqr(2)/2
40
41
class
LIBMOLDEO_API
moMotion
42
{
43
public
:
44
moMotion
();
45
virtual
~
moMotion
();
46
47
MOfloat
movx(
moParam
& param,
moTempo
& tempo);
48
MOfloat
movy(
moParam
& param,
moTempo
& tempo);
49
MOfloat
movz(
moParam
& param,
moTempo
& tempo);
50
51
MOfloat
movx(
moParam
& param,
MOdouble
ang);
52
MOfloat
movy(
moParam
& param,
MOdouble
ang);
53
MOfloat
movz(
moParam
& param,
MOdouble
ang);
54
55
private
:
56
//moPulse pulse;
57
58
MOdouble
movEsf(
char
,
int
,
double
,
double
,
double
,
double
);
59
MOdouble
movLin(
char
,
int
,
double
,
double
,
double
,
double
);
60
MOdouble
movCub(
char
,
int
,
double
,
double
,
double
,
double
);
61
MOdouble
movSEs(
char
,
int
,
double
,
double
,
double
,
double
);
62
MOdouble
movFij(
char
,
int
,
double
,
double
,
double
,
double
);
63
MOdouble
movBuc(
char
,
int
,
double
,
double
,
double
,
double
);
64
MOdouble
movRan(
char
,
int
,
double
,
double
,
double
,
double
);
65
MOdouble
movGan(
char
,
int
,
double
,
double
,
double
,
double
);
66
MOdouble
movPul(
char
,
int
,
double
,
double
,
double
,
double
);
67
};
68
69
#endif
70
71
// :-D
72
73
// Falta crear una clase ajFuncMov que tenga la estructura para contener las N funciones
74
// de movimiento y que permita acceder a cualquier value en tiempo de ejecucion, para
75
// poder hacer por ejemplo fm.amplitude *= amp; y que ademas se pueda convertir ida y
76
// vuelta en un moParam.
77
78
moTempo
Tempo, beat, ritmo.
Definition:
moTempo.h:44
moParam.h
moParam
Definition:
moParam.h:359
moTypes.h
LIBMOLDEO_API
#define LIBMOLDEO_API
Definition:
moTypes.h:180
MOfloat
#define MOfloat
Definition:
moTypes.h:403
MOdouble
#define MOdouble
Definition:
moTypes.h:404
moMotion
Definition:
moMotion.h:41
libmoldeo
moMotion.h
Generado el Jueves, 18 de Enero de 2018 13:10:28 para libmoldeo (Moldeo 1.0 Core) por
1.8.8