24 void paintImage(
const std::string& _key, QPainter* _painter,
const QRectF& _bounds)
const;
42 bool contains(
const std::string& _key)
const {
return m_painter.find(_key) != m_painter.end(); };
52 std::map<std::string, ImagePainter*> m_painter;
Definition ImagePainter.h:20
Definition ImagePainterManager.h:20
static ImagePainterManager & instance(void)
Definition ImagePainterManager.cpp:18
void paintImage(const std::string &_key, QPainter *_painter, const QRectF &_bounds) const
Definition ImagePainterManager.cpp:23
ImagePainter * getPainter(const std::string &_key) const
Definition ImagePainterManager.cpp:27
void clear(void)
Destroys all painter and clears the map.
Definition ImagePainterManager.cpp:69
bool contains(const std::string &_key) const
Returns true if an image painter for the given key exists.
Definition ImagePainterManager.h:42
void importFromFile(const std::string &_fileSubPath)
Creates a ImagePainter from the imported file. If an entry for the file path already exists the opera...
Definition ImagePainterManager.cpp:48
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...
Definition ImagePainterManager.cpp:40