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
moMovie Class Reference

una textura animada basada en una película More...

#include <moTexture.h>

Inheritance diagram for moMovie:
moTextureAnimated moTexture moAbstract

Public Member Functions

 moMovie ()
 
virtual ~moMovie ()
 
virtual MOboolean Init (moText p_name, MOuint p_moid, moResourceManager *p_res, moTexParam p_param=MODefTex2DParams)
 
virtual MOboolean Finish ()
 
virtual void Play ()
 
virtual void Pause ()
 
virtual void Continue ()
 
virtual void Stop ()
 
virtual void Seek (long frame, float rate=1.0)
 
virtual bool IsPlaying ()
 
virtual bool IsPaused ()
 
virtual MOulong GetPosition ()
 
virtual moStreamState State ()
 
virtual void SetBrightness (float brightness)
 
virtual void SetContrast (float contrast)
 
virtual void SetSaturation (float saturation)
 
virtual void SetHue (float hue)
 
virtual void SetVolume (float volume)
 
virtual void SetBalance (float balance)
 
MOboolean SupportedFile (moText p_filename)
 
MOboolean LoadMovieFile (moText p_filename)
 
MOboolean Load (moParam *p_param)
 
MOboolean Load (moValue *p_value)
 
MOboolean Reload (bool force_kill=true)
 
void EnableVideo (int)
 
bool HasVideo ()
 
void EnableAudio (int)
 
bool HasAudio ()
 
bool IsEOS ()
 
- Public Member Functions inherited from moTextureAnimated
 moTextureAnimated ()
 
virtual ~moTextureAnimated ()
 
virtual MOint GetGLId (moTempo *tempo)
 
virtual MOint GetGLId (MOuint p_i)
 
virtual MOint GetGLId (MOfloat p_cycle)
 
virtual MOuint GetFrameCount ()
 
virtual void SetFrameCount (MOuint p_nframes)
 
virtual MOfloat GetFramesPerSecond ()
 
virtual void SetFramesPerSecond (MOfloat p_fps)
 
virtual void SetPlayMode (moPlayMode playmode)
 
virtual moPlayMode GetPlayMode ()
 
virtual MOuint GetActualFrame ()
 
virtual void SetInterpolation (MOuint p_FrameJump, MOuint p_InterpolationTime)
 
virtual MOboolean IsInterpolating ()
 
virtual MOboolean IsInterpolationActive ()
 
virtual MOboolean ActivateInterpolation (MOboolean activate=true)
 
- Public Member Functions inherited from moTexture
 moTexture ()
 
virtual ~moTexture ()
 
MOboolean BuildEmpty (MOuint p_width, MOuint p_height)
 
MOboolean BuildFromBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean BuildFromFile (moText p_filename)
 
MOboolean SupportedFile (moText p_filename)
 
MOboolean Load (moParam *p_param)
 
MOboolean Load (moValue *p_value)
 
MOboolean SetBuffer (const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean SetBuffer (MOuint p_width, MOuint p_height, const GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
MOboolean GetBuffer (GLvoid *p_buffer, GLenum p_format=GL_RGBA, GLenum p_type=GL_UNSIGNED_BYTE)
 
void SetGLMan (moGLManager *p_gl)
 
void SetDataMan (moDataManager *p_dataman)
 
void SetFileMan (moFileManager *p_fileman)
 
void SetFBO (moFBO *p_fbo)
 
MOuint SetFBOandAttachPoint (moFBO *p_fbo)
 
void SetFBOAttachPoint (MOuint p_fbo_attach_point)
 
moFBOGetFBO () const
 
MOuint GetFBOAttachPoint () const
 
moTextureType GetType () const
 
MOuint GetGLId () const
 
MOuint GetGLId (moMoldeoObject *p_src_mob)
 TODO: check this! obsolete? More...
 
MOuint GetMOId () const
 
void SetMOId (MOuint p_moid)
 
moText GetName () const
 
void SetName (moText p_name)
 
MOuint GetWidth () const
 
MOuint GetHeight () const
 
MOuint GetDataWidth () const
 
MOuint GetDataHeight () const
 
MOuint GetComponents () const
 
MOlong GetTexelCount () const
 
MOlong GetDataTexelCount () const
 
MOfloat GetMaxCoordS () const
 
MOfloat GetMaxCoordT () const
 
moTexParam GetTexParam () const
 
GLenum GetTexTarget () const
 
GLenum GetTexInternalFormat () const
 
GLint GetMinFilter () const
 
GLint GetMagFilter () const
 
GLint GetWrapS () const
 
GLint GetWrapT () const
 
void FlipBufferVert (MOubyte *pBuffer, MOint p_depth)
 
void CopyFromTex (moTexture *p_src_tex, MOboolean p_copy_glid, MOboolean p_copy_moid, MOboolean p_copy_type, MOboolean p_copy_name)
 
moTextureoperator= (const moTexture &p_src_tex)
 
MOboolean IsBuildedFromFile () const
 
moText CreateThumbnail (moText p_bufferformat, int w, int h, moText newfilename=moText(""))
 
bool CalculateLuminanceAndConstrast (int x0=0, int y0=0, int x1=0, int y1=0)
 
int GetLuminance () const
 
int GetContrast () const
 
MOboolean Refresh ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Protected Member Functions

void GetFrame (MOuint p_i)
 
- Protected Member Functions inherited from moTextureAnimated
virtual MOboolean NeedsInterpolation ()
 
virtual MOint Interpolate ()
 
- Protected Member Functions inherited from moTexture
void SetParam ()
 
void CalculateSize (MOuint p_width, MOuint p_height)
 
MOboolean Build ()
 
bool ResetBufferData (bool force_creation=false, int bytes_per_pixel=0)
 

Protected Attributes

MOint frameprevious
 
MOint lastframe
 
moText m_pFilename
 
moBucketsPool m_BucketsPool
 
moVideoGraphm_pGraph
 
- Protected Attributes inherited from moTextureAnimated
moPlayMode m_PlayMode
 
MOboolean m_bIsPlaying
 
MOboolean m_bIsPaused
 
MOuint m_nFrames
 
MOfloat m_fFramesPerSecond
 
MOuint m_FrameNext
 
MOuint m_FramePrevious
 
MOuint m_Time
 
MOuint m_ActualFrame
 
MOboolean m_bInterpolation
 
MOboolean m_bInterpolating
 
moTextureFilterm_pCopyStart
 
moTextureFilterm_pCopyEnd
 
moTextureFilterm_pInterpolator
 
moTextureArray m_srcstart
 
moTextureArray m_dststart
 
moTextureArray m_srcend
 
moTextureArray m_dstend
 
moTextureArray m_srcinterpol
 
moTextureArray m_dstinterpol
 
moShaderm_pShaderCopy
 
moShaderm_pShaderInterpolate
 
MOuint m_FrameJump
 
MOuint m_InterpolationTime
 
MOuint m_StartTime
 
MOuint m_FrameStart
 
MOuint m_FrameEnd
 
MOfloat m_InterpolationPosition
 
- Protected Attributes inherited from moTexture
MOboolean m_bBuildedFromFile
 
moFilem_pFile
 
moDataManagerm_pDataMan
 
moFileManagerm_pFileMan
 
moGLManagerm_gl
 
moResourceManagerm_pResourceManager
 
moFBOm_fbo
 
MOuint m_fbo_attach_point
 
moTextureType m_type
 
MOint m_moid
 
MOuint m_glid
 
moText m_name
 
moTexParam m_param
 
MOuint m_width
 
MOuint m_height
 
MOuint m_bytespp
 
MOint m_components
 
MOfloat m_max_coord_s
 
MOfloat m_max_coord_t
 
int Luminance
 
int Contrast
 
moDWord Histogram [256]
 
MOubytem_pBufferData
 
MOuint m_buffer_width
 
MOuint m_buffer_height
 
MOuint m_buffer_bytespp
 

Additional Inherited Members

- Public Types inherited from moTextureAnimated
enum  moPlayMode { MO_PLAYMODE_TIMEBASE, MO_PLAYMODE_FRAMEBASE }
 
- Static Public Member Functions inherited from moTexture
static MOuint NextPowerOf2 (MOuint p_seed)
 
- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

una textura animada basada en una película

Clase para manejar una textura animada basada en una película.

Definition at line 853 of file moTexture.h.

Constructor & Destructor Documentation

moMovie::moMovie ( )

Constructor por defecto.

Definition at line 1885 of file moTexture.cpp.

moMovie::~moMovie ( )
virtual

Destructor por defecto.

Definition at line 1895 of file moTexture.cpp.

Member Function Documentation

void moMovie::Continue ( )
virtual

Definition at line 1946 of file moTexture.cpp.

void moMovie::EnableAudio ( int  enable)

Definition at line 2210 of file moTexture.cpp.

void moMovie::EnableVideo ( int  enable)

Definition at line 2206 of file moTexture.cpp.

MOboolean moMovie::Finish ( )
virtual

Destruye la textura openGL.

Returns
true si la operación fue exitosa, false en caso contrario.

Reimplemented from moTextureAnimated.

Definition at line 1919 of file moTexture.cpp.

void moMovie::GetFrame ( MOuint  p_i)
protectedvirtual

Calcula el cuadro i-ésimo de la animación.

Parameters
p_iíndice del cuadro a cualcular.

no ponemos play dos veces, logico....

lock to prevent any data or reference loss...

always needs implementation??? must be pure virtual.

Reimplemented from moTextureAnimated.

Definition at line 2214 of file moTexture.cpp.

MOulong moMovie::GetPosition ( )
virtual

Definition at line 1986 of file moTexture.cpp.

bool moMovie::HasAudio ( )

Definition at line 2090 of file moTexture.cpp.

bool moMovie::HasVideo ( )

Definition at line 2086 of file moTexture.cpp.

MOboolean moMovie::Init ( moText  p_name,
MOuint  p_moid,
moResourceManager p_res,
moTexParam  p_param = MODefTex2DParams 
)
virtual

Inicializa propiedades básicas de la textura tales como el nombre, id, administradores y parámetros.

Parameters
p_namenombre de la textura.
p_moidMoldeo ID de la textura.
p_respuntero al administrador de recursos, del cual son extraidos todos los administradores que la textura necesita (GL, Data, File, etc).
p_paramparámetros de textura.

Reimplemented from moTextureAnimated.

Definition at line 1900 of file moTexture.cpp.

bool moMovie::IsEOS ( )

Definition at line 2094 of file moTexture.cpp.

bool moMovie::IsPaused ( )
virtual

Definition at line 2031 of file moTexture.cpp.

bool moMovie::IsPlaying ( )
virtual

Pregunta si esta corriendo

Reimplemented from moTextureAnimated.

Definition at line 2020 of file moTexture.cpp.

MOboolean moMovie::Load ( moParam p_param)

Construye una película a partir de los parámetros p_param.

Parameters
p_parampuntero a un objeto de parámetros que contiene el nombre del archivo del cual la película será leida.
Returns
true si la operación fue exitosa, false en caso contrario.

Definition at line 2180 of file moTexture.cpp.

MOboolean moMovie::Load ( moValue p_value)

Definition at line 2186 of file moTexture.cpp.

MOboolean moMovie::LoadMovieFile ( moText  p_filename)

Carga en la textura la película p_filename.

Returns
true si la operación fue exitosa, false en caso contrario.

QUICKTIME FOR DIRECTSHOW

UNIVERSAL

Definition at line 2122 of file moTexture.cpp.

void moMovie::Pause ( )
virtual

Definition at line 1938 of file moTexture.cpp.

void moMovie::Play ( )
virtual

Funciones de control de la pelicula

Reimplemented from moTextureAnimated.

Definition at line 1930 of file moTexture.cpp.

MOboolean moMovie::Reload ( bool  force_kill = true)

Definition at line 2197 of file moTexture.cpp.

void moMovie::Seek ( long  frame,
float  rate = 1.0 
)
virtual

Definition at line 1980 of file moTexture.cpp.

void moMovie::SetBalance ( float  balance)
virtual

Definition at line 2080 of file moTexture.cpp.

void moMovie::SetBrightness ( float  brightness)
virtual

Definition at line 2043 of file moTexture.cpp.

void moMovie::SetContrast ( float  contrast)
virtual

Definition at line 2051 of file moTexture.cpp.

void moMovie::SetHue ( float  hue)
virtual

Definition at line 2059 of file moTexture.cpp.

void moMovie::SetSaturation ( float  saturation)
virtual

Definition at line 2067 of file moTexture.cpp.

void moMovie::SetVolume ( float  volume)
virtual

Definition at line 2073 of file moTexture.cpp.

moStreamState moMovie::State ( )
virtual

Definition at line 1992 of file moTexture.cpp.

void moMovie::Stop ( )
virtual

Para la animación, mostrando el cuadro del principio

Reimplemented from moTextureAnimated.

Definition at line 1964 of file moTexture.cpp.

MOboolean moMovie::SupportedFile ( moText  p_filename)

Revisa que el archivo especificado con p_filename sea un archivo de película soportado. Tiene que ser de extensión avi, mpg o mov.

Returns
true si el archivo está soportado, false en caso contrario.

Definition at line 2103 of file moTexture.cpp.

Member Data Documentation

MOint moMovie::frameprevious
protected

Definition at line 932 of file moTexture.h.

MOint moMovie::lastframe
protected

Definition at line 933 of file moTexture.h.

moBucketsPool moMovie::m_BucketsPool
protected

Definition at line 935 of file moTexture.h.

moText moMovie::m_pFilename
protected

Definition at line 934 of file moTexture.h.

moVideoGraph* moMovie::m_pGraph
protected

Definition at line 937 of file moTexture.h.


The documentation for this class was generated from the following files: