#include <KoPictureBase.h>
Graphe d'héritage de KoPictureBase:
Fonctions membres publiques | |
KoPictureBase () | |
virtual | ~KoPictureBase () |
virtual KoPictureType::Type | getType (void) const |
virtual KoPictureBase * | newCopy (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 picture in a painter. | |
virtual Q3DragObject * | dragObject (QWidget *dragSource=0L, const char *name=0L) |
virtual bool | load (QIODevice *io, const QString &extension) |
virtual bool | loadData (const QByteArray &array, const QString &extension) |
virtual bool | save (QIODevice *io) const |
virtual bool | saveAsBase64 (KoXmlWriter &writer) const |
virtual QSize | getOriginalSize (void) const |
virtual QPixmap | generatePixmap (const QSize &size, bool smoothScale=false) |
virtual QString | getMimeType (const QString &extension) const |
bool | isSlowResizeModeAllowed (void) const |
virtual QImage | generateImage (const QSize &size) |
virtual bool | hasAlphaBuffer () const |
virtual void | setAlphaBuffer (bool) |
virtual QImage | createAlphaMask (Qt::ImageConversionFlags=Qt::AutoColor) const |
virtual void | clearCache (void) |
Définition à la ligne 44 du fichier KoPictureBase.h.
KoPictureBase::KoPictureBase | ( | ) |
Default constructor.
Définition à la ligne 38 du fichier KoPictureBase.cpp.
Références s_useSlowResizeMode.
Référencé par newCopy().
Voici le graphe d'appel pour cette fonction :
KoPictureBase::~KoPictureBase | ( | ) | [virtual] |
Destructor.
Définition à la ligne 49 du fichier KoPictureBase.cpp.
KoPictureType::Type KoPictureBase::getType | ( | void | ) | const [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 58 du fichier KoPictureBase.cpp.
Références KoPictureType::TypeUnknown.
Référencé par KoPictureShared::getType().
Voici le graphe d'appel pour cette fonction :
KoPictureBase * KoPictureBase::newCopy | ( | void | ) | const [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 53 du fichier KoPictureBase.cpp.
Références KoPictureBase().
Référencé par KoPictureShared::KoPictureShared(), et KoPictureShared::operator=().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::isNull | ( | void | ) | const [virtual] |
Returns true if the picture is null.
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 63 du fichier KoPictureBase.cpp.
Référencé par KoPictureShared::isNull().
Voici le graphe d'appel pour cette fonction :
void KoPictureBase::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 picture 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 dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 68 du fichier KoPictureBase.cpp.
Référencé par KoPictureShared::draw().
Voici le graphe d'appel pour cette fonction :
Q3DragObject * KoPictureBase::dragObject | ( | QWidget * | dragSource = 0L , |
|
const char * | name = 0L | |||
) | [virtual] |
Create a dragobject containing this picture.
dragSource | must be 0 when copying to the clipboard |
Réimplémentée dans KoPictureImage.
Définition à la ligne 126 du fichier KoPictureBase.cpp.
Références generateImage(), et getOriginalSize().
Référencé par KoPictureShared::dragObject().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::load | ( | QIODevice * | io, | |
const QString & | extension | |||
) | [virtual] |
Définition à la ligne 78 du fichier KoPictureBase.cpp.
Références loadData().
Référencé par KoPictureShared::load(), et KoPictureShared::loadXpm().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::loadData | ( | const QByteArray & | array, | |
const QString & | extension | |||
) | [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 83 du fichier KoPictureBase.cpp.
Référencé par KoPictureShared::identifyAndLoad(), load(), et KoPictureShared::loadWmf().
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::save | ( | QIODevice * | io | ) | const [virtual] |
save file
io | QIODevice used for saving |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 89 du fichier KoPictureBase.cpp.
Référencé par KoPictureShared::save(), et saveAsBase64().
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::saveAsBase64 | ( | KoXmlWriter & | writer | ) | const [virtual] |
OASIS FlatXML support: Save picture as base64-encoded data into an XML writer.
Définition à la ligne 95 du fichier KoPictureBase.cpp.
Références KoXmlWriter::addTextNode(), et save().
Référencé par KoPictureShared::saveAsBase64().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
QSize KoPictureBase::getOriginalSize | ( | void | ) | const [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 106 du fichier KoPictureBase.cpp.
Référencé par dragObject(), et KoPictureShared::getOriginalSize().
Voici le graphe d'appel pour cette fonction :
QPixmap KoPictureBase::generatePixmap | ( | const QSize & | size, | |
bool | smoothScale = false | |||
) | [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 111 du fichier KoPictureBase.cpp.
Référencé par generateImage(), et KoPictureShared::generatePixmap().
Voici le graphe d'appel pour cette fonction :
QString KoPictureBase::getMimeType | ( | const QString & | extension | ) | const [virtual] |
Réimplémentée dans KoPictureClipart, KoPictureEps, KoPictureImage, et KoPictureWmf.
Définition à la ligne 116 du fichier KoPictureBase.cpp.
Références NULL_MIME_TYPE.
Référencé par KoPictureShared::getMimeType().
Voici le graphe d'appel pour cette fonction :
bool KoPictureBase::isSlowResizeModeAllowed | ( | void | ) | const |
Définition à la ligne 121 du fichier KoPictureBase.cpp.
Références s_useSlowResizeMode.
Référencé par KoPictureImage::scaleAndCreatePixmap(), et KoPictureEps::scaleAndCreatePixmap().
Voici le graphe d'appel pour cette fonction :
QImage KoPictureBase::generateImage | ( | const QSize & | size | ) | [virtual] |
Generate a QImage (always in slow mode)
Réimplémentée dans KoPictureEps, et KoPictureImage.
Définition à la ligne 135 du fichier KoPictureBase.cpp.
Références generatePixmap().
Référencé par dragObject(), et KoPictureShared::generateImage().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
virtual bool KoPictureBase::hasAlphaBuffer | ( | ) | const [inline, virtual] |
Réimplémentée dans KoPictureImage.
Définition à la ligne 120 du fichier KoPictureBase.h.
Référencé par KoPictureShared::hasAlphaBuffer().
Voici le graphe d'appel pour cette fonction :
virtual void KoPictureBase::setAlphaBuffer | ( | bool | ) | [inline, virtual] |
Réimplémentée dans KoPictureImage.
Définition à la ligne 122 du fichier KoPictureBase.h.
Référencé par KoPictureShared::setAlphaBuffer().
Voici le graphe d'appel pour cette fonction :
virtual QImage KoPictureBase::createAlphaMask | ( | Qt::ImageConversionFlags | = Qt::AutoColor |
) | const [inline, virtual] |
Réimplémentée dans KoPictureImage.
Définition à la ligne 124 du fichier KoPictureBase.h.
Référencé par KoPictureShared::createAlphaMask().
Voici le graphe d'appel pour cette fonction :
void KoPictureBase::clearCache | ( | void | ) | [virtual] |
Réimplémentée dans KoPictureEps, et KoPictureImage.
Définition à la ligne 140 du fichier KoPictureBase.cpp.
Référencé par KoPictureShared::clearCache().
Voici le graphe d'appel pour cette fonction :