MythTV  0.26-pre
Public Member Functions | Protected Member Functions | Protected Attributes
MythOpenGLPainter Class Reference

#include <mythpainter_ogl.h>

Inheritance diagram for MythOpenGLPainter:
MythPainter

List of all members.

Public Member Functions

 MythOpenGLPainter (MythRenderOpenGL *render=NULL, QGLWidget *parent=NULL)
 ~MythOpenGLPainter ()
void SetTarget (int new_target)
void SetSwapControl (bool swap)
virtual QString GetName (void)
virtual bool SupportsAnimation (void)
virtual bool SupportsAlpha (void)
virtual bool SupportsClipping (void)
virtual void FreeResources (void)
virtual void Begin (QPaintDevice *parent)
virtual void End ()
virtual void DrawImage (const QRect &dest, MythImage *im, const QRect &src, int alpha)
virtual void DrawRect (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha)
virtual void DrawRoundRect (const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha)
virtual void PushTransformation (const UIEffects &fx, QPointF center=QPointF())
virtual void PopTransformation (void)

Protected Member Functions

virtual MythImageGetFormatImagePriv (void)
virtual void DeleteFormatImagePriv (MythImage *im)
void ClearCache (void)
void DeleteTextures (void)
int GetTextureFromCache (MythImage *im)

Protected Attributes

QGLWidget * realParent
MythRenderOpenGLrealRender
int target
bool swapControl
QMap< MythImage *, uintm_ImageIntMap
std::list< MythImage * > m_ImageExpireList
std::list< uintm_textureDeleteList
QMutex m_textureDeleteLock

Detailed Description

Definition at line 13 of file mythpainter_ogl.h.


Constructor & Destructor Documentation

MythOpenGLPainter::MythOpenGLPainter ( MythRenderOpenGL render = NULL,
QGLWidget *  parent = NULL 
)

Definition at line 20 of file mythpainter_ogl.cpp.

Definition at line 32 of file mythpainter_ogl.cpp.


Member Function Documentation

void MythOpenGLPainter::SetTarget ( int  new_target) [inline]

Definition at line 19 of file mythpainter_ogl.h.

virtual QString MythOpenGLPainter::GetName ( void  ) [inline, virtual]

Implements MythPainter.

Definition at line 21 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsAnimation ( void  ) [inline, virtual]

Implements MythPainter.

Definition at line 22 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsAlpha ( void  ) [inline, virtual]

Implements MythPainter.

Definition at line 23 of file mythpainter_ogl.h.

virtual bool MythOpenGLPainter::SupportsClipping ( void  ) [inline, virtual]

Implements MythPainter.

Definition at line 24 of file mythpainter_ogl.h.

Reimplemented from MythPainter.

Definition at line 38 of file mythpainter_ogl.cpp.

Referenced by ~MythOpenGLPainter().

void MythOpenGLPainter::Begin ( QPaintDevice *  parent) [virtual]

Reimplemented from MythPainter.

Definition at line 75 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::End ( void  ) [virtual]

Reimplemented from MythPainter.

Definition at line 113 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::DrawImage ( const QRect &  dest,
MythImage im,
const QRect &  src,
int  alpha 
) [virtual]

Implements MythPainter.

Definition at line 183 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::DrawRect ( const QRect &  area,
const QBrush &  fillBrush,
const QPen &  linePen,
int  alpha 
) [virtual]

Reimplemented from MythPainter.

Definition at line 191 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::DrawRoundRect ( const QRect &  area,
int  cornerRadius,
const QBrush &  fillBrush,
const QPen &  linePen,
int  alpha 
) [virtual]

Reimplemented from MythPainter.

Definition at line 203 of file mythpainter_ogl.cpp.

void MythOpenGLPainter::PushTransformation ( const UIEffects fx,
QPointF  center = QPointF() 
) [virtual]

Reimplemented from MythPainter.

Definition at line 231 of file mythpainter_ogl.cpp.

Reimplemented from MythPainter.

Definition at line 237 of file mythpainter_ogl.cpp.

virtual MythImage* MythOpenGLPainter::GetFormatImagePriv ( void  ) [inline, protected, virtual]

Implements MythPainter.

Definition at line 41 of file mythpainter_ogl.h.

Implements MythPainter.

Definition at line 220 of file mythpainter_ogl.cpp.

Referenced by GetTextureFromCache().

Definition at line 60 of file mythpainter_ogl.cpp.

Referenced by FreeResources().

Definition at line 44 of file mythpainter_ogl.cpp.

Referenced by Begin(), FreeResources(), and GetTextureFromCache().

Definition at line 131 of file mythpainter_ogl.cpp.

Referenced by DrawImage().


Member Data Documentation

QGLWidget* MythOpenGLPainter::realParent [protected]

Definition at line 48 of file mythpainter_ogl.h.

Referenced by Begin(), and MythOpenGLPainter().

Definition at line 50 of file mythpainter_ogl.h.

Referenced by Begin(), DrawImage(), and End().

Definition at line 51 of file mythpainter_ogl.h.

Referenced by Begin(), and End().

Definition at line 53 of file mythpainter_ogl.h.

Referenced by ClearCache(), DeleteFormatImagePriv(), and GetTextureFromCache().

Definition at line 54 of file mythpainter_ogl.h.

Referenced by ClearCache(), DeleteFormatImagePriv(), and GetTextureFromCache().

Definition at line 55 of file mythpainter_ogl.h.

Referenced by ClearCache(), DeleteFormatImagePriv(), and DeleteTextures().

Definition at line 56 of file mythpainter_ogl.h.

Referenced by ClearCache(), DeleteFormatImagePriv(), and DeleteTextures().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends