Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
bool | containsImageForScale (qreal scaleFactor) |
qreal | minimalScaleFactor () |
bool | paint (QPainter *painter, int x, int y) |
Paints a precached QPixmap using painter at the specified position. More... | |
void | setImage (const QImage &image, const QPainter *painterToDetermineScaleFactor) |
void | setImage (const QImage &image, qreal scaleFactor) |
void | setImage (const QPixmap &pixmap, const QPainter *painterToDetermineScaleFactor) |
void | setImage (const QPixmap &pixmap, qreal scaleFactor) |
void | setMinimalScaleFactor (qreal factor) |
Sets the minimum scaling factor for which a QPixmap will be precomputed. More... | |
Private Attributes | |
qreal | minimalScaleFactor_ {0.1} |
QMap< qreal, QPixmap > | scaleFactorImagesMap_ |
bool Visualization::Mipmap::containsImageForScale | ( | qreal | scaleFactor | ) |
|
inline |
bool Visualization::Mipmap::paint | ( | QPainter * | painter, |
int | x, | ||
int | y | ||
) |
Paints a precached QPixmap using painter at the specified position.
Returns true if an appropriately sized QPixmap was found and false otherwise.
void Visualization::Mipmap::setImage | ( | const QImage & | image, |
const QPainter * | painterToDetermineScaleFactor | ||
) |
void Visualization::Mipmap::setImage | ( | const QImage & | image, |
qreal | scaleFactor | ||
) |
void Visualization::Mipmap::setImage | ( | const QPixmap & | pixmap, |
const QPainter * | painterToDetermineScaleFactor | ||
) |
void Visualization::Mipmap::setImage | ( | const QPixmap & | pixmap, |
qreal | scaleFactor | ||
) |
|
inline |
Sets the minimum scaling factor for which a QPixmap will be precomputed.
Smaller images will be based on the smallest precomputed pixmap.
|
private |
|
private |