7 #ifndef GRAPHICS_POINT_H 8 #define GRAPHICS_POINT_H 10 #include "GraphicsPointAbstractBase.h" 14 extern const double DEFAULT_HIGHLIGHT_OPACITY;
15 extern const double MAX_OPACITY;
47 const QString &identifier,
48 const QPointF &posScreen,
56 const QString &identifier,
57 const QPointF &posScreen,
59 const QPolygonF &polygon,
67 QVariant
data (
int key)
const;
78 double ordinalKey)
const;
84 void setData (
int key,
const QVariant &data);
93 void setPos (
const QPointF pos);
107 void createPointEllipse (
unsigned int radius);
108 void createPointPolygon (
const QPolygonF &polygon);
110 QGraphicsScene &m_scene;
121 const QString m_identifier;
122 const QPointF m_posScreen;
123 const QColor m_color;
129 double m_highlightOpacity;
134 #endif // GRAPHICS_POINT_H void setWanted()
Mark point as wanted. Marking as unwanted is done by the reset function.
QPointF pos() const
Proxy method for QGraphicsItem::pos.
void setHighlightOpacity(double highlightOpacity)
Set method for highlight opacity.
QVariant data(int key) const
Proxy method for QGraphicsItem::data.
Base class for adding identifiers to graphics items that represent Points.
Window that displays the geometry information, as a table, for the current curve. ...
void setData(int key, const QVariant &data)
Proxy method for QGraphicsItem::setData.
void setPos(const QPointF pos)
Update the position.
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.
double highlightOpacity() const
Get method for highlight opacity.
~GraphicsPoint()
Destructor. This remove the graphics item from the scene.
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(...
Container for LineStyle and PointStyle for one Curve.
bool wanted() const
Identify point as wanted//unwanted.
Graphics item for drawing a circular or polygonal Point.
This class add event handling to QGraphicsPolygonItem.
void reset()
Mark point as unwanted, and unbind any bound lines.