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.
|
#include <moSceneEffect.h>
Public Member Functions | |
moSceneEffect () | |
virtual | ~moSceneEffect () |
MOboolean | Init () |
void | Draw (moTempo *, moEffectState *parentstate=NULL) |
MOboolean | Finish () |
void | Interaction (moIODeviceManager *) |
void | LoadCodes (moIODeviceManager *) |
moConfigDefinition * | GetDefinition (moConfigDefinition *p_configdefinition) |
virtual void | Update (moEventList *p_EventList) |
void | UpdateParameters () |
int | UpdateSceneState (int i_state) |
int | SetSceneState (int i_state) |
int | NextSceneState (int i_state) |
moEffectManager & | GetEffectManager () |
int | GetObjectId (moText p_label_name) |
int | UpdateMoldeoIds (moMoldeoObjects &p_MoldeoSceneObjects) |
Public Member Functions inherited from moMasterEffect | |
moMasterEffect () | |
virtual | ~moMasterEffect () |
virtual MOboolean | PreInit () |
virtual void | Set (moEffectManager *pEffectManager, moConsoleState *cstate) |
Public Member Functions inherited from moEffect | |
moEffect () | |
virtual | ~moEffect () |
virtual void | PreDraw (moTempo *, moEffectState *parentstate=NULL) |
virtual void | BeginDraw (moTempo *, moEffectState *parentstate=NULL) |
virtual void | EndDraw () |
virtual MOboolean | PreFinish () |
virtual const moEffectState & | GetEffectState () |
virtual bool | SetEffectState (const moEffectState &p_state) |
virtual const moMobState & | GetState () |
virtual bool | SetState (const moMobState &p_MobState) |
void | SetColor (const moColorRGBA &color_rgba, double alpha, moEffectState &pstate) |
void | SetColor (moValue &color, moValue &alpha, moEffectState &pstate) |
void | SetColor (moParam &color, moParam &alpha, moEffectState &pstate) |
void | SetBlending (moBlendingModes blending) |
void | SetPolygonMode (moPolygonModes polygonmode) |
virtual void | TurnOn () |
virtual void | TurnOff () |
virtual void | Enable () |
virtual void | Disable () |
virtual void | SwitchOn () |
virtual void | SwitchEnabled () |
virtual void | Synchronize () |
virtual void | Unsynchronize () |
virtual bool | Synchronized () |
virtual void | BeatPulse () |
virtual double | TempoDelta (double p_delta) |
virtual double | GetTempoDelta () const |
double | SetTempoDelta (double p_delta) |
virtual double | TempoFactor (double p_factor) |
virtual double | GetTempoFactor () const |
virtual double | Alpha (double alpha) |
virtual double | GetAlpha () const |
virtual double | Amplitude (double amplitude) |
virtual double | GetAmplitude () const |
virtual double | Magnitude (double magnitude) |
virtual double | GetMagnitude () const |
virtual void | TintCSV (double tintc, double tints, double tint) |
virtual moVector3f | GetTintCSV () const |
virtual moVector3f | GetTintRGB () const |
virtual void | Play () |
virtual void | Stop () |
virtual void | Pause () |
virtual void | Continue () |
virtual moTimerState | State () |
virtual const moText & | ToJSON () |
Public Member Functions inherited from moMoldeoObject | |
moMoldeoObject () | |
moMoldeoObject (moMoldeoObjectType p_type) | |
virtual | ~moMoldeoObject () |
virtual MOboolean | Init (moResourceManager *p_pResources) |
virtual MOboolean | CreateConnectors () |
virtual MOboolean | UpdateConnectors () |
virtual MOboolean | RefreshValue (moParam ¶m, int value_index) |
virtual MOboolean | ResolveValue (moParam ¶m, int value_index, bool p_refresh=false) |
void | SetResourceManager (moResourceManager *p_pResourceManager) |
moResourceManager * | GetResourceManager () |
MOint | GetId () const |
void | SetId (MOint p_id) |
moMoldeoObjectType | GetType () const |
void | SetType (moMoldeoObjectType p_type) |
void | SetName (const moText &p_name) |
void | SetLabelName (const moText &p_labelname) |
void | SetKeyName (const moText &p_keyname) |
const moText & | GetKeyName () const |
const moText & | GetName () const |
const moText & | GetLabelName () const |
moConfig * | GetConfig () |
void | SyncConnections () |
virtual int | Save (const moText &p_save_filename=moText("")) |
void | SetConfigName (const moText &p_configname) |
const moText & | GetConfigName () const |
const moText & | GetDescription () const |
Devuelve al descripción del objeto. More... | |
void | SetDescription (const moText &p_Description) |
Fija la descripción de este objeto. More... | |
const moMobDefinition & | GetMobDefinition () const |
void | SetMobDefinition (const moMobDefinition &p_MobDef) |
moOutlets * | GetOutlets () |
moInlets * | GetInlets () |
MOint | GetInletIndex (moText p_connector_name) const |
MOint | GetOutletIndex (moText p_connector_name) const |
virtual void | HandleReturns (moLuaVirtualMachine &vm, const char *strFunc) |
virtual const moMobState & | GetState () const |
virtual void | Activate () |
virtual void | Deactivate () |
virtual bool | Activated () const |
virtual void | Select () |
virtual void | Unselect () |
virtual bool | Selected () const |
virtual void | SetConsoleParamIndex (MOint p_paramindex) |
virtual void | SetConsoleValueIndex (MOint p_valueindex) |
Public Member Functions inherited from moAbstract | |
moAbstract () | |
virtual | ~moAbstract () |
MOboolean | Initialized () |
Pregunta si está inicializado. More... | |
Public Member Functions inherited from moScript | |
moScript () | |
virtual | ~moScript (void) |
void | InitScript () |
void | FinishScript () |
bool | IsInitialized () |
bool | CompileFile (const char *strFilename) |
bool | CompileBuffer (unsigned char *pbBuffer, size_t szLen) |
int | RegisterFunction (const char *strFuncName, moScript::Function &fun) |
int | RegisterFunction (const char *strFuncName) |
int | RegisterBaseFunction (const char *strFuncName) |
bool | SelectScriptFunction (const char *strFuncName) |
void | AddFunctionParam (int iInt) |
void | AddFunctionParam (float fFloat) |
void | AddFunctionParam (char *string) |
bool | RunSelectedFunction (int nReturns=0) |
bool | ScriptHasFunction (const char *strScriptName) |
int | methods (void) |
virtual int | ResetScriptCalling () |
virtual int | NextScriptCalling () |
moLuaVirtualMachine & | mvm (void) |
moSceneEffect el efecto escena es una agrupación de efectos. Se comporta igual que un efecto, pero además permite la creación de una capa de renderización independiente. La escena agrupa estos efectos, pero también los administra de tal forma a generar sub-escenas que llamaremos Estados de Escena (moSceneState). Cada uno de estos estados se define como un grupo de Claves de Escena (moSceneKey) que permiten incluir cada efecto, seleccionar su pre-configuración y la acción (pause,stop,play) que se reproducirá.
Posee algunos modos automáticos: "secuencia": los efectos son tratados como una secuencia
Definition at line 176 of file moSceneEffect.h.
moSceneEffect::moSceneEffect | ( | ) |
=======================================================================
Definition at line 114 of file moSceneEffect.cpp.
|
virtual |
Definition at line 119 of file moSceneEffect.cpp.
|
virtual |
Función de dibujado derivada de moEffect
ACTIVAR EL PRE-EFFECT
ACTIVAR EL EFFECT
ACTIVAR EL POST-EFFECT
TODO: corregir esto, debe hacerse este paso sobre la textura final de ete efecto (FBO) if (RenderMan) RenderMan->CopyRenderToTexture(MO_FINAL_TEX);
GUARDAR LA TEXTURA -> scene_xxx_texture
Implements moMasterEffect.
Definition at line 404 of file moSceneEffect.cpp.
|
virtual |
Finalizador genérico derivado de moAbstract. Es importante que esta función libere los recursos que han sido creados en la función Init().
Implements moMasterEffect.
Definition at line 522 of file moSceneEffect.cpp.
|
virtual |
función que devuelve la definición del archivo de configuración del objeto.
p_configdefinition | (opcional) puntero a la clase de definición de la configuración dónde se registran las definiciones. Si este parámetro no está definido la función toma el puntero a la definición dentro del objeto de configuración (moConfig). |
Reimplemented from moEffect.
Definition at line 536 of file moSceneEffect.cpp.
|
inline |
Definition at line 203 of file moSceneEffect.h.
int moSceneEffect::GetObjectId | ( | moText | p_label_name | ) |
Definition at line 243 of file moSceneEffect.cpp.
|
virtual |
Inicializador genérico derivado de moAbstract.
CREATING NEW LAYER!!
Implements moMasterEffect.
Definition at line 125 of file moSceneEffect.cpp.
|
virtual |
|
virtual |
Reimplemented from moEffect.
Definition at line 558 of file moSceneEffect.cpp.
int moSceneEffect::NextSceneState | ( | int | i_state | ) |
Definition at line 309 of file moSceneEffect.cpp.
int moSceneEffect::SetSceneState | ( | int | i_state | ) |
|
virtual |
método de actualización de datos del objeto.
p_EventList | puntero a la lista de eventos. |
Reimplemented from moMoldeoObject.
Definition at line 396 of file moSceneEffect.cpp.
int moSceneEffect::UpdateMoldeoIds | ( | moMoldeoObjects & | p_MoldeoSceneObjects | ) |
void moSceneEffect::UpdateParameters | ( | ) |
next sequence is next sequence in config param "sequence_states"
Definition at line 378 of file moSceneEffect.cpp.
int moSceneEffect::UpdateSceneState | ( | int | i_state | ) |
check auto -> dont wait -> if timer has reached duration or timer has reached (total_duration/m_n_sequence_states)
Definition at line 286 of file moSceneEffect.cpp.