18#ifndef ELEMENTPICTUREFACTORY_H
19#define ELEMENTPICTUREFACTORY_H
22#include <QSharedPointer>
30class QGraphicsSimpleTextItem;
95 bool build(
const ElementsLocation &location, QPicture *picture=
nullptr, QPicture *low_picture=
nullptr);
The ElementPictureFactory class This class is singleton factory, use to create and get the picture us...
Definition elementpicturefactory.h:38
void parseRect(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:360
void parseText(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:489
bool build(const ElementsLocation &location, QPicture *picture=nullptr, QPicture *low_picture=nullptr)
ElementPictureFactory::build Build the picture from location.
Definition elementpicturefactory.cpp:150
ElementPictureFactory()
Definition elementpicturefactory.h:90
ElementPictureFactory(const ElementPictureFactory &)
ElementPictureFactory::primitives getPrimitives(const ElementsLocation &location)
ElementPictureFactory::getPrimitives.
Definition elementpicturefactory.cpp:122
~ElementPictureFactory()
Definition elementpicturefactory.cpp:131
void getPictures(const ElementsLocation &location, QPicture &picture, QPicture &low_picture)
ElementPictureFactory::getPictures Set the picture of the element at location. Note,...
Definition elementpicturefactory.cpp:44
void setPainterStyle(const QDomElement &dom, QPainter &painter) const
ElementPictureFactory::setPainterStyle apply the style store in dom to painter.
Definition elementpicturefactory.cpp:557
void parsePolygon(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:452
static ElementPictureFactory * instance()
instance
Definition elementpicturefactory.h:55
void parseEllipse(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:384
QHash< QUuid, QPicture > m_low_pictures_H
Definition elementpicturefactory.h:107
static void dropInstance()
dropInstance Drop the instance of factory
Definition elementpicturefactory.h:73
void parseArc(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:425
QHash< QUuid, primitives > m_primitives_H
Definition elementpicturefactory.h:109
void parseCircle(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:408
static ElementPictureFactory * m_factory
Definition elementpicturefactory.h:110
QPixmap pixmap(const ElementsLocation &location)
ElementPictureFactory::pixmap.
Definition elementpicturefactory.cpp:78
void parseElement(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:250
void parseLine(const QDomElement &dom, QPainter &painter, primitives &prim) const
Definition elementpicturefactory.cpp:261
QHash< QUuid, QPicture > m_pictures_H
Definition elementpicturefactory.h:106
QHash< QUuid, QPixmap > m_pixmap_H
Definition elementpicturefactory.h:108
ElementPictureFactory operator=(const ElementPictureFactory &)
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition elementslocation.h:47
Definition elementpicturefactory.h:41
QList< QRectF > m_circles
Definition elementpicturefactory.h:44
QList< QVector< QPointF > > m_polygons
Definition elementpicturefactory.h:45
QList< QVector< qreal > > m_arcs
Definition elementpicturefactory.h:46
QList< QRectF > m_rectangles
Definition elementpicturefactory.h:43
QList< QLineF > m_lines
Definition elementpicturefactory.h:42
QList< QGraphicsSimpleTextItem * > m_texts
Definition elementpicturefactory.h:47