Référence de la classe KoPictureClipart

#include <KoPictureClipart.h>

Graphe d'héritage de KoPictureClipart:

[légende]
Graphe de collaboration de KoPictureClipart:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoPictureClipart ()
virtual ~KoPictureClipart ()
virtual KoPictureType::Type getType (void) const
virtual KoPictureBasenewCopy (void) const
virtual bool isNull (void) const
virtual void draw (QPainter &painter, int x, int y, int width, int height, int sx=0, int sy=0, int sw=-1, int sh=-1, bool fastMode=false)
 Draw the image in a painter.
virtual bool loadData (const QByteArray &array, const QString &extension)
virtual bool save (QIODevice *io) const
virtual QSize getOriginalSize (void) const
virtual QPixmap generatePixmap (const QSize &size, bool smoothScale=false)
virtual QString getMimeType (const QString &extension) const

Fonctions membres protégées

QPixmap getPixmap (QImage &image)
void drawQPicture (QPicture &clipart, QPainter &painter, int x, int y, int width, int height, int sx, int sy, int sw, int sh)

Attributs protégés

QPicture m_clipart
 The clipart as QPicture.
QByteArray m_rawData
 Copy of the loaded image file.

Description détaillée

Définition à la ligne 37 du fichier KoPictureClipart.h.


Documentation des contructeurs et destructeur

KoPictureClipart::KoPictureClipart (  ) 

Default constructor.

Définition à la ligne 33 du fichier KoPictureClipart.cpp.

Référencé par newCopy().

Voici le graphe d'appel pour cette fonction :

KoPictureClipart::~KoPictureClipart (  )  [virtual]

Destructor.

Définition à la ligne 37 du fichier KoPictureClipart.cpp.


Documentation des fonctions membres

KoPictureType::Type KoPictureClipart::getType ( void   )  const [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 46 du fichier KoPictureClipart.cpp.

Références KoPictureType::TypeClipart.

KoPictureBase * KoPictureClipart::newCopy ( void   )  const [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 41 du fichier KoPictureClipart.cpp.

Références KoPictureClipart().

Voici le graphe d'appel pour cette fonction :

bool KoPictureClipart::isNull ( void   )  const [virtual]

Returns true if the picture is null.

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 51 du fichier KoPictureClipart.cpp.

Références m_clipart.

void KoPictureClipart::draw ( QPainter &  painter,
int  x,
int  y,
int  width,
int  height,
int  sx = 0,
int  sy = 0,
int  sw = -1,
int  sh = -1,
bool  fastMode = false 
) [virtual]

Draw the image in a painter.

The parameter fastMode allows the picture to be re-sized and drawn quicker if possible

The parameters width, height define the desired size for the image Note that the image is being scaled to that size using scale() - except when printing. This avoids scaling the image at each paint event.

The other parameters are very similar to QPainter::drawPixmap : (x, y) define the position in the painter, (sx, sy) specify the top-left point in pixmap that is to be drawn. The default is (0, 0). (sw, sh) specify the size of the pixmap that is to be drawn. The default, (-1, -1), means all the way to the bottom right of the pixmap.

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 76 du fichier KoPictureClipart.cpp.

Références drawQPicture(), et m_clipart.

Voici le graphe d'appel pour cette fonction :

bool KoPictureClipart::loadData ( const QByteArray &  array,
const QString &  extension 
) [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 81 du fichier KoPictureClipart.cpp.

Références check(), m_clipart, et m_rawData.

Voici le graphe d'appel pour cette fonction :

bool KoPictureClipart::save ( QIODevice *  io  )  const [virtual]

save file

Paramètres:
io QIODevice used for saving

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 109 du fichier KoPictureClipart.cpp.

Références m_rawData, et testguiform::size.

QSize KoPictureClipart::getOriginalSize ( void   )  const [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 116 du fichier KoPictureClipart.cpp.

Références m_clipart.

QPixmap KoPictureClipart::generatePixmap ( const QSize &  size,
bool  smoothScale = false 
) [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 121 du fichier KoPictureClipart.cpp.

Références m_clipart.

QString KoPictureClipart::getMimeType ( const QString &  extension  )  const [virtual]

Réimplémentée à partir de KoPictureBase.

Définition à la ligne 139 du fichier KoPictureClipart.cpp.

QPixmap KoPictureClipart::getPixmap ( QImage &  image  )  [protected]

void KoPictureClipart::drawQPicture ( QPicture &  clipart,
QPainter &  painter,
int  x,
int  y,
int  width,
int  height,
int  sx,
int  sy,
int  sw,
int  sh 
) [protected]

Définition à la ligne 56 du fichier KoPictureClipart.cpp.

Référencé par draw().

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

QPicture KoPictureClipart::m_clipart [protected]

The clipart as QPicture.

Définition à la ligne 100 du fichier KoPictureClipart.h.

Référencé par draw(), generatePixmap(), getOriginalSize(), isNull(), et loadData().

QByteArray KoPictureClipart::m_rawData [protected]

Copy of the loaded image file.

Définition à la ligne 101 du fichier KoPictureClipart.h.

Référencé par loadData(), et save().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:48:08 2006 pour KPlato par  doxygen 1.5.1-p1