7 #ifndef GRAPHICS_POINT_H 8 #define GRAPHICS_POINT_H 10 #include "GraphicsPointAbstractBase.h" 11 #include "GraphicsPoint.h" 44 const QString &identifier,
45 const QPointF &posScreen,
52 const QString &identifier,
53 const QPointF &posScreen,
55 const QPolygonF &polygon,
62 QVariant
data (
int key)
const;
70 double ordinalKey)
const;
76 void setData (
int key,
const QVariant &data);
82 void setPos (
const QPointF pos);
99 void createPointEllipse (
unsigned int radius);
100 void createPointPolygon (
const QPolygonF &polygon);
102 QGraphicsScene &m_scene;
113 const QString m_identifier;
114 const QPointF m_posScreen;
115 const QColor m_color;
122 #endif // GRAPHICS_POINT_H void setWanted()
Mark point as wanted. Marking as unwanted is done by the reset function.
void printStream(QString indentation, QTextStream &str, double ordinalKey) const
Debugging method that supports print method of this class and printStream method of some other class(...
Base class for adding identifiers to graphics items that represent Points.
void setData(int key, const QVariant &data)
Proxy method for QGraphicsItem::setData.
void setPos(const QPointF pos)
Update the position.
bool wanted() const
Identify point as wanted//unwanted.
void setPointStyle(const PointStyle &pointStyle)
Update the point style.
void updateCurveStyle(const CurveStyle &curveStyle)
Update point and line styles that comprise the curve style.
This class add event handling to QGraphicsEllipseItem.
Details for a specific Point.
~GraphicsPoint()
Destructor. This remove the graphics item from the scene.
Container for LineStyle and PointStyle for one Curve.
Graphics item for drawing a circular or polygonal Point.
This class add event handling to QGraphicsPolygonItem.
QPointF pos() const
Proxy method for QGraphicsItem::pos.
QVariant data(int key) const
Proxy method for QGraphicsItem::data.
void setToolTip(const QString &toolTip)
Proxy method for QGraphicsItem::setToolTip.
void reset()
Mark point as unwanted, and unbind any bound lines.