7 #ifndef GRAPHICS_POINT_H 8 #define GRAPHICS_POINT_H 10 #include "GraphicsPointAbstractBase.h" 15 extern const double DEFAULT_HIGHLIGHT_OPACITY;
16 extern const double MAX_OPACITY;
48 const QString &identifier,
49 const QPointF &posScreen,
57 const QString &identifier,
58 const QPointF &posScreen,
60 const QPolygonF &polygon,
71 QVariant
data (
int key)
const;
82 double ordinalKey)
const;
88 void setData (
int key,
const QVariant &data);
97 void setPos (
const QPointF pos);
114 void createPointEllipse (
unsigned int radius);
115 void createPointPolygon (
const QPolygonF &polygon);
117 QGraphicsScene &m_scene;
128 const QString m_identifier;
129 const QPointF m_posScreen;
130 const QColor m_color;
136 double m_highlightOpacity;
141 #endif // GRAPHICS_POINT_H void setPassive()
Prevent automatic focus on point (=make it passive) for scale bar so drags can be made to work proper...
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.
QRectF boundingRect() const
Proxy method for QGraphicsItem::boundingRect.
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.