#include <mythpainter.h>
Public Member Functions | |
| MythPainter () | |
| virtual | ~MythPainter () |
| virtual QString | GetName (void)=0 |
| virtual bool | SupportsAnimation (void)=0 |
| virtual bool | SupportsAlpha (void)=0 |
| virtual bool | SupportsClipping (void)=0 |
| virtual void | FreeResources (void) |
| virtual void | Begin (QPaintDevice *parent) |
| virtual void | End () |
| virtual void | SetClipRect (const QRect &clipRect) |
| virtual void | SetClipRegion (const QRegion &clipRegion) |
| virtual void | Clear (QPaintDevice *device, const QRegion ®ion) |
| QPaintDevice * | GetParent (void) |
| virtual void | DrawImage (const QRect &dest, MythImage *im, const QRect &src, int alpha)=0 |
| void | DrawImage (int x, int y, MythImage *im, int alpha) |
| void | DrawImage (const QPoint &topLeft, MythImage *im, int alph) |
| virtual void | DrawText (const QRect &dest, const QString &msg, int flags, const MythFontProperties &font, int alpha, const QRect &boundRect) |
| virtual void | DrawTextLayout (const QRect &canvasRect, const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, int alpha, const QRect &destRect) |
| 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 | DrawEllipse (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) |
| virtual void | PushTransformation (const UIEffects &zoom, QPointF center=QPointF()) |
| virtual void | PopTransformation (void) |
| MythImage * | GetFormatImage () |
| void | DeleteFormatImage (MythImage *im) |
| void | SetDebugMode (bool showBorders, bool showNames) |
| bool | ShowBorders (void) |
| bool | ShowTypeNames (void) |
| void | SetMaximumCacheSizes (int hardware, int software) |
Protected Member Functions | |
| void | DrawTextPriv (MythImage *im, const QString &msg, int flags, const QRect &r, const MythFontProperties &font) |
| void | DrawRectPriv (MythImage *im, const QRect &area, int radius, int ellipse, const QBrush &fillBrush, const QPen &linePen) |
| MythImage * | GetImageFromString (const QString &msg, int flags, const QRect &r, const MythFontProperties &font) |
| MythImage * | GetImageFromTextLayout (const LayoutVector &layouts, const FormatVector &formats, const MythFontProperties &font, QRect &canvas, QRect &dest) |
| MythImage * | GetImageFromRect (const QRect &area, int radius, int ellipse, const QBrush &fillBrush, const QPen &linePen) |
| virtual MythImage * | GetFormatImagePriv (void)=0 |
| virtual void | DeleteFormatImagePriv (MythImage *im)=0 |
| void | ExpireImages (int max=0) |
| void | CheckFormatImage (MythImage *im) |
Protected Attributes | |
| QPaintDevice * | m_Parent |
| int | m_HardwareCacheSize |
| int | m_MaxHardwareCacheSize |
Private Attributes | |
| int | m_SoftwareCacheSize |
| int | m_MaxSoftwareCacheSize |
| QList< MythImage * > | m_allocatedImages |
| QMutex | m_allocationLock |
| QMap< QString, MythImage * > | m_StringToImageMap |
| std::list< QString > | m_StringExpireList |
| bool | m_showBorders |
| bool | m_showNames |
Definition at line 28 of file mythpainter.h.
| MythPainter::MythPainter | ( | ) |
Definition at line 17 of file mythpainter.cpp.
| MythPainter::~MythPainter | ( | void | ) | [virtual] |
Definition at line 24 of file mythpainter.cpp.
| virtual QString MythPainter::GetName | ( | void | ) | [pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, MythVDPAUPainter, and MythYUVAPainter.
Referenced by MythMainWindow::Init().
| virtual bool MythPainter::SupportsAnimation | ( | void | ) | [pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Referenced by MythScreenStack::EnableEffects(), and MythUIText::ParseElement().
| virtual bool MythPainter::SupportsAlpha | ( | void | ) | [pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Referenced by MythScreenStack::EnableEffects().
| virtual bool MythPainter::SupportsClipping | ( | void | ) | [pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Referenced by MythMainWindow::drawScreen().
| virtual void MythPainter::FreeResources | ( | void | ) | [inline, virtual] |
Reimplemented in MythD3D9Painter, MythOpenGLPainter, and MythVDPAUPainter.
Definition at line 38 of file mythpainter.h.
Referenced by TV::customEvent(), VideoOutputVDPAU::Init(), and VideoOutputD3D::Init().
| virtual void MythPainter::Begin | ( | QPaintDevice * | parent | ) | [inline, virtual] |
Reimplemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Definition at line 39 of file mythpainter.h.
Referenced by OSD::Draw(), MythMainWindow::draw(), OSD::DrawDirect(), VideoVisualSpectrum::DrawPriv(), and VideoVisualCircles::DrawPriv().
| virtual void MythPainter::End | ( | void | ) | [inline, virtual] |
Reimplemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Definition at line 40 of file mythpainter.h.
Referenced by OSD::Draw(), MythMainWindow::draw(), OSD::DrawDirect(), VideoVisualSpectrum::DrawPriv(), and VideoVisualCircles::DrawPriv().
| void MythPainter::SetClipRect | ( | const QRect & | clipRect | ) | [virtual] |
Reimplemented in MythQImagePainter, and MythQtPainter.
Definition at line 37 of file mythpainter.cpp.
Referenced by MythMainWindow::draw().
| void MythPainter::SetClipRegion | ( | const QRegion & | clipRegion | ) | [virtual] |
Reimplemented in MythQImagePainter.
Definition at line 41 of file mythpainter.cpp.
Referenced by OSD::Draw().
| void MythPainter::Clear | ( | QPaintDevice * | device, | |
| const QRegion & | region | |||
| ) | [virtual] |
Reimplemented in MythQImagePainter.
Definition at line 45 of file mythpainter.cpp.
Referenced by OSD::Draw().
| QPaintDevice* MythPainter::GetParent | ( | void | ) | [inline] |
Definition at line 46 of file mythpainter.h.
| virtual void MythPainter::DrawImage | ( | const QRect & | dest, | |
| MythImage * | im, | |||
| const QRect & | src, | |||
| int | alpha | |||
| ) | [pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, MythVDPAUPainter, and MythYUVAPainter.
Referenced by DrawEllipse(), DrawImage(), DrawRect(), MythUIGuideGrid::drawRecType(), DrawRoundRect(), MythUIWebBrowser::DrawSelf(), MythUIVideo::DrawSelf(), MythUIImage::DrawSelf(), DrawText(), and DrawTextLayout().
| void MythPainter::DrawImage | ( | int | x, | |
| int | y, | |||
| MythImage * | im, | |||
| int | alpha | |||
| ) |
Definition at line 49 of file mythpainter.cpp.
| void MythPainter::DrawImage | ( | const QPoint & | topLeft, | |
| MythImage * | im, | |||
| int | alph | |||
| ) |
Definition at line 62 of file mythpainter.cpp.
| void MythPainter::DrawText | ( | const QRect & | dest, | |
| const QString & | msg, | |||
| int | flags, | |||
| const MythFontProperties & | font, | |||
| int | alpha, | |||
| const QRect & | boundRect | |||
| ) | [virtual] |
Reimplemented in MythQImagePainter, and MythYUVAPainter.
Definition at line 67 of file mythpainter.cpp.
Referenced by MythUIType::Draw(), MythUISimpleText::DrawSelf(), and MythUIGuideGrid::drawText().
| void MythPainter::DrawTextLayout | ( | const QRect & | canvasRect, | |
| const LayoutVector & | layouts, | |||
| const FormatVector & | formats, | |||
| const MythFontProperties & | font, | |||
| int | alpha, | |||
| const QRect & | destRect | |||
| ) | [virtual] |
Definition at line 113 of file mythpainter.cpp.
Referenced by MythUIText::DrawSelf().
| void MythPainter::DrawRect | ( | const QRect & | area, | |
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [virtual] |
Reimplemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, and MythYUVAPainter.
Definition at line 144 of file mythpainter.cpp.
Referenced by MythUIType::Draw(), MythUIGuideGrid::drawBackground(), MythUIGuideGrid::drawBox(), MythUIGuideGrid::drawCurrent(), VideoVisualSpectrum::DrawPriv(), and MythUIShape::DrawSelf().
| void MythPainter::DrawRoundRect | ( | const QRect & | area, | |
| int | cornerRadius, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [virtual] |
Reimplemented in MythOpenGLPainter, MythQImagePainter, and MythYUVAPainter.
Definition at line 152 of file mythpainter.cpp.
Referenced by MythUIGuideGrid::drawCurrent(), VideoVisualCircles::DrawPriv(), and MythUIShape::DrawSelf().
| void MythPainter::DrawEllipse | ( | const QRect & | area, | |
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [virtual] |
Reimplemented in MythQImagePainter, and MythYUVAPainter.
Definition at line 161 of file mythpainter.cpp.
Referenced by MythUIShape::DrawSelf().
| void MythPainter::PushTransformation | ( | const UIEffects & | zoom, | |
| QPointF | center = QPointF() | |||
| ) | [virtual] |
Reimplemented in MythOpenGLPainter.
Definition at line 169 of file mythpainter.cpp.
Referenced by MythUIType::Draw().
| virtual void MythPainter::PopTransformation | ( | void | ) | [inline, virtual] |
Reimplemented in MythOpenGLPainter.
Definition at line 71 of file mythpainter.h.
Referenced by MythUIType::Draw().
| MythImage * MythPainter::GetFormatImage | ( | ) |
Definition at line 478 of file mythpainter.cpp.
Referenced by SubtitleScreen::AddScaledImage(), MythBrowser::Create(), BDOverlayScreen::DisplayBDOverlay(), VideoOutput::DisplayOSD(), SubtitleScreen::DisplayScaledAVSubtitles(), ZMEvents::eventChanged(), ZMClient::getEventFrame(), ThumbFinder::getFrameImage(), GetImageFromRect(), GetImageFromString(), GetImageFromTextLayout(), MythImage::Gradient(), MythUIWebBrowser::Init(), MythUIHelper::LoadCacheImage(), ImageLoader::LoadImage(), MythUIGuideGrid::LoadImage(), MythUIVideo::MythUIVideo(), TeletextScreen::OptimiseDisplayedArea(), MythUIImage::ParseElement(), SubtitleScreen::RenderAssTrack(), MythUIVideo::Reset(), MythUIGuideGrid::SetArrow(), WebPage::slotIconChanged(), MHIContext::UpdateOSD(), and ThumbFinder::updatePositionBar().
| void MythPainter::DeleteFormatImage | ( | MythImage * | im | ) |
Definition at line 487 of file mythpainter.cpp.
Referenced by MythImage::~MythImage().
Definition at line 76 of file mythpainter.h.
Referenced by setDebugShowBorders(), and setDebugShowNames().
| bool MythPainter::ShowBorders | ( | void | ) | [inline] |
Definition at line 82 of file mythpainter.h.
Referenced by MythUIType::Draw(), setDebugShowBorders(), and setDebugShowNames().
| bool MythPainter::ShowTypeNames | ( | void | ) | [inline] |
Definition at line 83 of file mythpainter.h.
Referenced by MythUIType::Draw(), setDebugShowBorders(), and setDebugShowNames().
| void MythPainter::SetMaximumCacheSizes | ( | int | hardware, | |
| int | software | |||
| ) |
Definition at line 533 of file mythpainter.cpp.
Referenced by MythPainter().
| void MythPainter::DrawTextPriv | ( | MythImage * | im, | |
| const QString & | msg, | |||
| int | flags, | |||
| const QRect & | r, | |||
| const MythFontProperties & | font | |||
| ) | [protected] |
Definition at line 175 of file mythpainter.cpp.
Referenced by GetImageFromString().
| void MythPainter::DrawRectPriv | ( | MythImage * | im, | |
| const QRect & | area, | |||
| int | radius, | |||
| int | ellipse, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen | |||
| ) | [protected] |
Definition at line 270 of file mythpainter.cpp.
Referenced by GetImageFromRect().
| MythImage * MythPainter::GetImageFromString | ( | const QString & | msg, | |
| int | flags, | |||
| const QRect & | r, | |||
| const MythFontProperties & | font | |||
| ) | [protected] |
Definition at line 305 of file mythpainter.cpp.
Referenced by MythYUVAPainter::DrawText(), and DrawText().
| MythImage * MythPainter::GetImageFromTextLayout | ( | const LayoutVector & | layouts, | |
| const FormatVector & | formats, | |||
| const MythFontProperties & | font, | |||
| QRect & | canvas, | |||
| QRect & | dest | |||
| ) | [protected] |
Definition at line 333 of file mythpainter.cpp.
Referenced by DrawTextLayout().
| MythImage * MythPainter::GetImageFromRect | ( | const QRect & | area, | |
| int | radius, | |||
| int | ellipse, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen | |||
| ) | [protected] |
Definition at line 418 of file mythpainter.cpp.
Referenced by MythYUVAPainter::DrawEllipse(), DrawEllipse(), MythYUVAPainter::DrawRect(), DrawRect(), MythYUVAPainter::DrawRoundRect(), and DrawRoundRect().
| virtual MythImage* MythPainter::GetFormatImagePriv | ( | void | ) | [protected, pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Referenced by GetFormatImage().
| virtual void MythPainter::DeleteFormatImagePriv | ( | MythImage * | im | ) | [protected, pure virtual] |
Implemented in MythD3D9Painter, MythOpenGLPainter, MythQImagePainter, MythQtPainter, and MythVDPAUPainter.
Referenced by DeleteFormatImage().
| void MythPainter::ExpireImages | ( | int | max = 0 |
) | [protected] |
Definition at line 508 of file mythpainter.cpp.
Referenced by GetImageFromRect(), GetImageFromString(), GetImageFromTextLayout(), MythVDPAUPainter::Teardown(), MythD3D9Painter::Teardown(), MythOpenGLPainter::~MythOpenGLPainter(), and MythQImagePainter::~MythQImagePainter().
| void MythPainter::CheckFormatImage | ( | MythImage * | im | ) | [protected] |
Definition at line 497 of file mythpainter.cpp.
Referenced by MythD3D9Painter::GetImageFromCache(), MythVDPAUPainter::GetTextureFromCache(), and MythOpenGLPainter::GetTextureFromCache().
QPaintDevice* MythPainter::m_Parent [protected] |
Definition at line 109 of file mythpainter.h.
int MythPainter::m_HardwareCacheSize [protected] |
Definition at line 110 of file mythpainter.h.
Referenced by MythVDPAUPainter::DeleteBitmaps(), MythD3D9Painter::DeleteBitmaps(), MythOpenGLPainter::DeleteTextures(), MythD3D9Painter::GetImageFromCache(), MythVDPAUPainter::GetTextureFromCache(), and MythOpenGLPainter::GetTextureFromCache().
int MythPainter::m_MaxHardwareCacheSize [protected] |
Definition at line 111 of file mythpainter.h.
Referenced by MythD3D9Painter::GetImageFromCache(), MythVDPAUPainter::GetTextureFromCache(), MythOpenGLPainter::GetTextureFromCache(), and SetMaximumCacheSizes().
int MythPainter::m_SoftwareCacheSize [private] |
Definition at line 114 of file mythpainter.h.
Referenced by ExpireImages(), GetImageFromRect(), GetImageFromString(), and GetImageFromTextLayout().
int MythPainter::m_MaxSoftwareCacheSize [private] |
Definition at line 115 of file mythpainter.h.
Referenced by GetImageFromRect(), GetImageFromString(), GetImageFromTextLayout(), and SetMaximumCacheSizes().
QList<MythImage*> MythPainter::m_allocatedImages [private] |
Definition at line 117 of file mythpainter.h.
Referenced by CheckFormatImage(), DeleteFormatImage(), GetFormatImage(), and ~MythPainter().
QMutex MythPainter::m_allocationLock [private] |
Definition at line 118 of file mythpainter.h.
Referenced by CheckFormatImage(), DeleteFormatImage(), GetFormatImage(), and ~MythPainter().
QMap<QString, MythImage *> MythPainter::m_StringToImageMap [private] |
Definition at line 120 of file mythpainter.h.
Referenced by ExpireImages(), GetImageFromRect(), GetImageFromString(), and GetImageFromTextLayout().
std::list<QString> MythPainter::m_StringExpireList [private] |
Definition at line 121 of file mythpainter.h.
Referenced by ExpireImages(), GetImageFromRect(), GetImageFromString(), and GetImageFromTextLayout().
bool MythPainter::m_showBorders [private] |
Definition at line 123 of file mythpainter.h.
bool MythPainter::m_showNames [private] |
Definition at line 124 of file mythpainter.h.
1.6.3