#include "ImagePainterManager.h"
|
void | paintImage (const std::string &_key, QPainter *_painter, const QRectF &_bounds) const |
|
ImagePainter * | getPainter (const std::string &_key) const |
|
void | addImagePainter (const std::string &_key, ImagePainter *_painter) |
| Stores the painter under the given name. If an entry for the given key already exists the painter won't be added.
|
|
void | importFromFile (const std::string &_fileSubPath) |
| Creates a ImagePainter from the imported file. If an entry for the file path already exists the operation will be skipped.
|
|
bool | contains (const std::string &_key) const |
| Returns true if an image painter for the given key exists.
|
|
void | clear (void) |
| Destroys all painter and clears the map.
|
|
◆ addImagePainter()
void ot::ImagePainterManager::addImagePainter |
( |
const std::string & | _key, |
|
|
ImagePainter * | _painter ) |
Stores the painter under the given name. If an entry for the given key already exists the painter won't be added.
- Note
- The ImagePainterManager takes ownership of the painter.
◆ clear()
void ot::ImagePainterManager::clear |
( |
void | | ) |
|
Destroys all painter and clears the map.
◆ contains()
bool ot::ImagePainterManager::contains |
( |
const std::string & | _key | ) |
const |
|
inline |
Returns true if an image painter for the given key exists.
◆ getPainter()
ot::ImagePainter * ot::ImagePainterManager::getPainter |
( |
const std::string & | _key | ) |
const |
◆ importFromFile()
void ot::ImagePainterManager::importFromFile |
( |
const std::string & | _fileSubPath | ) |
|
Creates a ImagePainter from the imported file. If an entry for the file path already exists the operation will be skipped.
◆ instance()
◆ paintImage()
void ot::ImagePainterManager::paintImage |
( |
const std::string & | _key, |
|
|
QPainter * | _painter, |
|
|
const QRectF & | _bounds ) const |
The documentation for this class was generated from the following files: