The ElementPictureFactory class This class is singleton factory, use to create and get the picture use by elements.
More...
#include <elementpicturefactory.h>
|
| | ElementPictureFactory () |
| |
| | ElementPictureFactory (const ElementPictureFactory &) |
| |
| ElementPictureFactory | operator= (const ElementPictureFactory &) |
| |
| | ~ElementPictureFactory () |
| |
| bool | build (const ElementsLocation &location, QPicture *picture=nullptr, QPicture *low_picture=nullptr) |
| | ElementPictureFactory::build Build the picture from location. More...
|
| |
| void | parseElement (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseLine (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseRect (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseEllipse (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseCircle (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseArc (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parsePolygon (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | parseText (const QDomElement &dom, QPainter &painter, primitives &prim) const |
| |
| void | setPainterStyle (const QDomElement &dom, QPainter &painter) const |
| | ElementPictureFactory::setPainterStyle apply the style store in dom to painter. More...
|
| |
The ElementPictureFactory class This class is singleton factory, use to create and get the picture use by elements.
◆ ElementPictureFactory() [1/2]
| ElementPictureFactory::ElementPictureFactory |
( |
| ) |
|
|
inlineprivate |
◆ ElementPictureFactory() [2/2]
◆ ~ElementPictureFactory()
| ElementPictureFactory::~ElementPictureFactory |
( |
| ) |
|
|
private |
◆ build()
| bool ElementPictureFactory::build |
( |
const ElementsLocation & |
location, |
|
|
QPicture * |
picture = nullptr, |
|
|
QPicture * |
low_picture = nullptr |
|
) |
| |
|
private |
ElementPictureFactory::build Build the picture from location.
- Parameters
-
| location | |
| picture | |
| low_picture | if picture and/or low_picture are not null this function draw on it and don't store it. if null, this function create a QPicture for normal and low zoom, draw on it and store it in m_pictures_H and m_low_pictures_H |
- Returns
◆ dropInstance()
| static void ElementPictureFactory::dropInstance |
( |
| ) |
|
|
inlinestatic |
dropInstance Drop the instance of factory
◆ getPictures()
| void ElementPictureFactory::getPictures |
( |
const ElementsLocation & |
location, |
|
|
QPicture & |
picture, |
|
|
QPicture & |
low_picture |
|
) |
| |
◆ getPrimitives()
◆ instance()
instance
- Returns
- The instance of the factory
◆ operator=()
◆ parseArc()
◆ parseCircle()
◆ parseElement()
| void ElementPictureFactory::parseElement |
( |
const QDomElement & |
dom, |
|
|
QPainter & |
painter, |
|
|
primitives & |
prim |
|
) |
| const |
|
private |
◆ parseEllipse()
◆ parseLine()
| void ElementPictureFactory::parseLine |
( |
const QDomElement & |
dom, |
|
|
QPainter & |
painter, |
|
|
primitives & |
prim |
|
) |
| const |
|
private |
◆ parsePolygon()
◆ parseRect()
◆ parseText()
◆ pixmap()
◆ setPainterStyle()
| void ElementPictureFactory::setPainterStyle |
( |
const QDomElement & |
dom, |
|
|
QPainter & |
painter |
|
) |
| const |
|
private |
◆ m_factory
◆ m_low_pictures_H
| QHash<QUuid, QPicture> ElementPictureFactory::m_low_pictures_H |
|
private |
◆ m_pictures_H
| QHash<QUuid, QPicture> ElementPictureFactory::m_pictures_H |
|
private |
◆ m_pixmap_H
| QHash<QUuid, QPixmap> ElementPictureFactory::m_pixmap_H |
|
private |
◆ m_primitives_H
| QHash<QUuid, primitives> ElementPictureFactory::m_primitives_H |
|
private |
The documentation for this class was generated from the following files: