MythTV
master
|
Public Member Functions | |
MythQtImage (MythQtPainter *parent) | |
void | SetChanged (bool change=true) override |
QPixmap * | GetPixmap (void) |
void | SetPixmap (QPixmap *p) |
bool | NeedsRegen (void) const |
void | RegeneratePixmap (void) |
![]() | |
MythImage (MythPainter *parent, const char *name="MythImage") | |
Creates a reference counted image, call DecrRef() to delete. More... | |
MythPainter * | GetParent (void) |
void | SetParent (MythPainter *parent) |
int | IncrRef (void) override |
Increments reference count. More... | |
int | DecrRef (void) override |
Decrements reference count and deletes on 0. More... | |
bool | IsChanged () const |
bool | IsGradient () const |
bool | IsReflected () const |
bool | IsOriented () const |
void | Assign (const QImage &img) |
void | Assign (const QPixmap &pix) |
bool | Load (MythImageReader *reader) |
bool | Load (const QString &filename) |
void | Orientation (int orientation) |
Changes the orientation angle of the image according to the exif rotation values. More... | |
void | Resize (QSize newSize, bool preserveAspect=false) |
void | Reflect (ReflectAxis axis, int shear, int scale, int length, int spacing=0) |
void | ToGreyscale () |
int64_t | GetSize (void) |
void | SetID (unsigned int id) |
unsigned int | GetID (void) const |
void | SetFileName (QString fname) |
QString | GetFileName (void) const |
void | setIsReflected (bool reflected) |
void | setIsOriented (bool oriented) |
void | SetIsInCache (bool bCached) |
uint | GetCacheSize (void) const |
![]() | |
ReferenceCounter (const QString &debugName, bool logDebug=true) | |
Creates reference counter with an initial value of 1. More... | |
Protected Attributes | |
QPixmap * | m_pixmap {nullptr} |
bool | m_bRegenPixmap {false} |
![]() | |
bool | m_changed {false} |
MythPainter * | m_parent {nullptr} |
bool | m_isGradient {false} |
QColor | m_gradBegin {0x00, 0x00, 0x00} |
QColor | m_gradEnd {0xFF, 0xFF, 0xFF} |
int | m_gradAlpha {255} |
FillDirection | m_gradDirection {FillDirection::TopToBottom} |
bool | m_isOriented {false} |
bool | m_isReflected {false} |
unsigned int | m_imageId {0} |
QString | m_fileName |
bool | m_cached {false} |
![]() | |
bool | m_logDebug |
This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More... | |
QAtomicInt | m_referenceCount {1} |
Additional Inherited Members | |
![]() | |
static QImage | ApplyExifOrientation (QImage &image, int orientation) |
static MythImage * | Gradient (MythPainter *painter, QSize size, const QColor &begin, const QColor &end, uint alpha, FillDirection direction=FillDirection::TopToBottom) |
Create a gradient image. More... | |
![]() | |
static void | PrintDebug (void) |
Print out any leaks if that level of debugging is enabled. More... | |
![]() | |
~MythImage () override | |
![]() | |
virtual | ~ReferenceCounter (void) |
Called on destruction, will warn if object deleted with references in place. More... | |
![]() | |
static void | MakeGradient (QImage &image, const QColor &begin, const QColor &end, int alpha, BoundaryWanted drawBoundary=BoundaryWanted::Yes, FillDirection direction=FillDirection::TopToBottom) |
![]() | |
static MythUIHelper * | s_ui = nullptr |
Definition at line 15 of file mythpainter_qt.cpp.
|
inlineexplicit |
Definition at line 18 of file mythpainter_qt.cpp.
Reimplemented from MythImage.
Definition at line 33 of file mythpainter_qt.cpp.
|
inline |
Definition at line 22 of file mythpainter_qt.cpp.
|
inline |
Definition at line 23 of file mythpainter_qt.cpp.
|
inline |
Definition at line 25 of file mythpainter_qt.cpp.
void MythQtImage::RegeneratePixmap | ( | void | ) |
Definition at line 41 of file mythpainter_qt.cpp.
Referenced by MythQtPainter::DrawImage().
|
protected |
Definition at line 29 of file mythpainter_qt.cpp.
Referenced by GetPixmap(), RegeneratePixmap(), and SetPixmap().
Definition at line 30 of file mythpainter_qt.cpp.
Referenced by NeedsRegen(), RegeneratePixmap(), and SetChanged().