LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixmapFilmstripObject Class Reference

#include <pixmapfilmstripobject.h>

Inheritance diagram for PixmapFilmstripObject:
[legend]
Collaboration diagram for PixmapFilmstripObject:
[legend]

Public Member Functions

 PixmapFilmstripObject (const QList< QRect > frameCoordinates, const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
 PixmapFilmstripObject (const QSize &frameSize, quint32 numFrames, FrameDirection::Enum direction, const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor, const QPoint &startOffset=QPoint(0, 0))
 
virtual ~PixmapFilmstripObject ()
 
virtual QSize size () const
 
virtual int width () const
 
virtual int height () const
 
virtual QSizeF sizeF () const
 
virtual void paint (QPainter *painter)
 
virtual void paint (QPainter *painter, const QPointF &targetOriginInPainterCS)
 
virtual void paint (QPainter *painter, const QRectF &targetRectInPainterCS)
 
virtual void paint (QPainter *painter, const QRect &targetRectInPainterCS, const QRect &sourceRect)
 
virtual bool valid () const
 
virtual void nextFrame (bool rollOver=false)
 
virtual void rewind ()
 
virtual void setFrameIndex (quint32 index)
 
virtual quint32 frameIndex () const
 
virtual quint32 totalFrames () const
 
virtual QSize minFrame () const
 
virtual QSize maxFrame () const
 
- Public Member Functions inherited from PixmapObject
 PixmapObject ()
 
 PixmapObject (int width, int height)
 
 PixmapObject (const QString &fileName, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
 PixmapObject (const QString &fileName, const QSize &desiredSize, bool limitOnly=true, const char *format=0, Qt::ImageConversionFlags flags=Qt::AutoColor)
 
virtual PixmapObjectclone ()
 
virtual ~PixmapObject ()
 
virtual QUuid id () const
 
virtual void setId (const QUuid &uid)
 
virtual void setId (const QString &quuid_as_string)
 
virtual bool resize (const quint32 w, const quint32 h)
 
virtual bool resize (const QSize &size)
 
virtual quint64 sizeOf () const
 
virtual bool isSquare () const
 
virtual QSize nativeSize () const
 
virtual int nativeWidth () const
 
virtual int nativeHeight () const
 
virtual QSizeF nativeSizeF () const
 
virtual void fill (const QColor &c)
 
virtual QPoint translatePaintTargetPointToPixmapPoint (const QPoint &point, const QRect &sourceRect, const QRect &destRect)
 
virtual QVector< qint32 > translatePaintTargetPointToPixmapPointEx (const QPoint &point, const QRect &sourceRect, const QRect &destRect)
 
virtual QPixmap * operator-> () const
 
virtual QPixmap & operator* () const
 
virtual operator QPixmap * () const
 
virtual QPixmap * data () const
 

Static Public Attributes

static const char * FrameIndexPropertyName = "frameindex"
 
static const char * TotalFramesPropertyName = "totalframes"
 

Protected Member Functions

virtual void createFrames (const QSize &frameSize, quint32 numFrames, FrameDirection::Enum direction, const QPoint &startOffset=QPoint(0, 0))
 
virtual void createFrames (const QList< QRect > &frameCoordinates)
 
- Protected Member Functions inherited from PixmapObject
 PixmapObject (QPixmap *p_pixmap)
 
 PixmapObject (const QUuid &specificUid)
 

Protected Attributes

quint32 m_currentFrameIndex
 
QRect m_currentFrameRect
 
QSize m_minFrameSize
 
QSize m_maxFrameSize
 
QList< QRect > m_frames
 
- Protected Attributes inherited from PixmapObject
QUuid m_uid
 
QPixmap * pm
 
bool m_destroyEmitted
 

Properties

quint32 frameindex
 
quint32 totalframes
 

Additional Inherited Members

- Signals inherited from PixmapObject
void signalObjectDestroyed ()
 
- Static Public Member Functions inherited from PixmapObject
static quint64 sizeOfPixmap (const QPixmap *p_pixmap)
 
static quint64 sizeOfPixmap (quint32 width, quint32 height)
 

Constructor & Destructor Documentation

PixmapFilmstripObject::PixmapFilmstripObject ( const QList< QRect >  frameCoordinates,
const QString &  fileName,
const char *  format = 0,
Qt::ImageConversionFlags  flags = Qt::AutoColor 
)
PixmapFilmstripObject::PixmapFilmstripObject ( const QSize &  frameSize,
quint32  numFrames,
FrameDirection::Enum  direction,
const QString &  fileName,
const char *  format = 0,
Qt::ImageConversionFlags  flags = Qt::AutoColor,
const QPoint &  startOffset = QPoint(0,0) 
)
PixmapFilmstripObject::~PixmapFilmstripObject ( )
virtual

Member Function Documentation

void PixmapFilmstripObject::createFrames ( const QSize &  frameSize,
quint32  numFrames,
FrameDirection::Enum  direction,
const QPoint &  startOffset = QPoint(0,0) 
)
protectedvirtual
void PixmapFilmstripObject::createFrames ( const QList< QRect > &  frameCoordinates)
protectedvirtual
quint32 PixmapFilmstripObject::frameIndex ( ) const
virtual
int PixmapFilmstripObject::height ( ) const
virtual

Reimplemented from PixmapObject.

QSize PixmapFilmstripObject::maxFrame ( ) const
virtual
QSize PixmapFilmstripObject::minFrame ( ) const
virtual
void PixmapFilmstripObject::nextFrame ( bool  rollOver = false)
virtual
void PixmapFilmstripObject::paint ( QPainter *  painter)
virtual

Reimplemented from PixmapObject.

void PixmapFilmstripObject::paint ( QPainter *  painter,
const QPointF &  targetOriginInPainterCS 
)
virtual

Reimplemented from PixmapObject.

void PixmapFilmstripObject::paint ( QPainter *  painter,
const QRectF &  targetRectInPainterCS 
)
virtual

Reimplemented from PixmapObject.

void PixmapFilmstripObject::paint ( QPainter *  painter,
const QRect &  targetRectInPainterCS,
const QRect &  sourceRect 
)
virtual

Reimplemented from PixmapObject.

void PixmapFilmstripObject::rewind ( )
virtual
void PixmapFilmstripObject::setFrameIndex ( quint32  index)
virtual
QSize PixmapFilmstripObject::size ( ) const
virtual

Reimplemented from PixmapObject.

QSizeF PixmapFilmstripObject::sizeF ( ) const
virtual

Reimplemented from PixmapObject.

quint32 PixmapFilmstripObject::totalFrames ( ) const
virtual
bool PixmapFilmstripObject::valid ( ) const
virtual

Reimplemented from PixmapObject.

int PixmapFilmstripObject::width ( ) const
virtual

Reimplemented from PixmapObject.

Member Data Documentation

const char * PixmapFilmstripObject::FrameIndexPropertyName = "frameindex"
static
quint32 PixmapFilmstripObject::m_currentFrameIndex
protected
QRect PixmapFilmstripObject::m_currentFrameRect
protected
QList<QRect> PixmapFilmstripObject::m_frames
protected
QSize PixmapFilmstripObject::m_maxFrameSize
protected
QSize PixmapFilmstripObject::m_minFrameSize
protected
const char * PixmapFilmstripObject::TotalFramesPropertyName = "totalframes"
static

Property Documentation

quint32 PixmapFilmstripObject::frameindex
readwrite
quint32 PixmapFilmstripObject::totalframes
read

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