MythTV  master
Public Member Functions | Protected Attributes | List of all members
MythQtImage Class Reference
Inheritance diagram for MythQtImage:
Inheritance graph
Collaboration diagram for MythQtImage:
Collaboration graph

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)
- Public Member Functions inherited from MythImage
 MythImage (MythPainter *parent, const char *name="MythImage")
 Creates a reference counted image, call DecrRef() to delete. More...
MythPainterGetParent (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
- Public Member Functions inherited from ReferenceCounter
 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}
- Protected Attributes inherited from MythImage
bool m_changed {false}
MythPainterm_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}
- Protected Attributes inherited from ReferenceCounter
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 Public Member Functions inherited from MythImage
static QImage ApplyExifOrientation (QImage &image, int orientation)
static MythImageGradient (MythPainter *painter, QSize size, const QColor &begin, const QColor &end, uint alpha, FillDirection direction=FillDirection::TopToBottom)
 Create a gradient image. More...
- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
- Protected Member Functions inherited from MythImage
 ~MythImage () override
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
- Static Protected Member Functions inherited from MythImage
static void MakeGradient (QImage &image, const QColor &begin, const QColor &end, int alpha, BoundaryWanted drawBoundary=BoundaryWanted::Yes, FillDirection direction=FillDirection::TopToBottom)
- Static Protected Attributes inherited from MythImage
static MythUIHelpers_ui = nullptr

Detailed Description

Definition at line 15 of file mythpainter_qt.cpp.

Constructor & Destructor Documentation

◆ MythQtImage()

MythQtImage::MythQtImage ( MythQtPainter parent)

Definition at line 18 of file mythpainter_qt.cpp.

Member Function Documentation

◆ SetChanged()

void MythQtImage::SetChanged ( bool  change = true)

Reimplemented from MythImage.

Definition at line 33 of file mythpainter_qt.cpp.

◆ GetPixmap()

QPixmap* MythQtImage::GetPixmap ( void  )

Definition at line 22 of file mythpainter_qt.cpp.

◆ SetPixmap()

void MythQtImage::SetPixmap ( QPixmap *  p)

Definition at line 23 of file mythpainter_qt.cpp.

◆ NeedsRegen()

bool MythQtImage::NeedsRegen ( void  ) const

Definition at line 25 of file mythpainter_qt.cpp.

◆ RegeneratePixmap()

void MythQtImage::RegeneratePixmap ( void  )

Definition at line 41 of file mythpainter_qt.cpp.

Referenced by MythQtPainter::DrawImage().

Member Data Documentation

◆ m_pixmap

QPixmap* MythQtImage::m_pixmap {nullptr}

Definition at line 29 of file mythpainter_qt.cpp.

Referenced by GetPixmap(), RegeneratePixmap(), and SetPixmap().

◆ m_bRegenPixmap

bool MythQtImage::m_bRegenPixmap {false}

Definition at line 30 of file mythpainter_qt.cpp.

Referenced by NeedsRegen(), RegeneratePixmap(), and SetChanged().

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