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

Public Member Functions

 MythQtImage (MythQtPainter *parent)
 
void SetChanged (bool change=true) override
 
QPixmap * GetPixmap (void)
 
void SetPixmap (QPixmap *p)
 
bool NeedsRegen (void)
 
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 SetToYUV (void)
 
void ConvertToYUV (void)
 
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 (const QSize &newSize, bool preserveAspect=false)
 
void Reflect (ReflectAxis axis, int shear, int scale, int length, int spacing=0)
 
void ToGreyscale ()
 
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 {"#000000"}
 
QColor m_gradEnd {"#FFFFFF"}
 
int m_gradAlpha {255}
 
FillDirection m_gradDirection {FillTopToBottom}
 
bool m_isOriented {false}
 
bool m_isReflected {false}
 
bool m_isYUV {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, const QSize &size, const QColor &begin, const QColor &end, uint alpha, FillDirection direction=FillTopToBottom)
 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
virtual ~MythImage ()
 
- 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, bool drawBoundary=true, FillDirection direction=FillTopToBottom)
 
- 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)
inlineexplicit

Definition at line 18 of file mythpainter_qt.cpp.

Member Function Documentation

◆ SetChanged()

void MythQtImage::SetChanged ( bool  change = true)
overridevirtual

Reimplemented from MythImage.

Definition at line 33 of file mythpainter_qt.cpp.

◆ GetPixmap()

QPixmap* MythQtImage::GetPixmap ( void  )
inline

Definition at line 22 of file mythpainter_qt.cpp.

◆ SetPixmap()

void MythQtImage::SetPixmap ( QPixmap *  p)
inline

Definition at line 23 of file mythpainter_qt.cpp.

◆ NeedsRegen()

bool MythQtImage::NeedsRegen ( void  )
inline

Definition at line 25 of file mythpainter_qt.cpp.

◆ RegeneratePixmap()

void MythQtImage::RegeneratePixmap ( void  )

Definition at line 41 of file mythpainter_qt.cpp.

Member Data Documentation

◆ m_pixmap

QPixmap* MythQtImage::m_pixmap {nullptr}
protected

Definition at line 29 of file mythpainter_qt.cpp.

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

◆ m_bRegenPixmap

bool MythQtImage::m_bRegenPixmap {false}
protected

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: