9 #include "GraphicsItemType.h"
10 #include "GraphicsPoint.h"
11 #include "GraphicsPointFactory.h"
12 #include "PointStyle.h"
14 #include <QGraphicsScene>
23 const QString &identifier,
24 const QPointF &posScreen,
29 switch (pointStyle.
shape ())
31 case POINT_SHAPE_CIRCLE:
int lineWidth() const
Get method for line width.
GraphicsPoint * createPoint(QGraphicsScene &scene, const QString &identifier, const QPointF &posScreen, const PointStyle &pointStyle)
Create circle or polygon point according to the PointStyle.
GraphicsPointFactory()
Single constructor.
QPolygonF polygon() const
Return the polygon for creating a QGraphicsPolygonItem. The size is determined by the radius...
Details for a specific Point.
ColorPalette paletteColor() const
Get method for point color.
int radius() const
Radius of point. For a circle this is all that is needed to draw a circle. For a polygon, the radius determines the size of the polygon.
Graphics item for drawing a circular or polygonal Point.
PointShape shape() const
Get method for point shape.