7#ifndef GRAPHICS_POINT_H
8#define GRAPHICS_POINT_H
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;
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;
const double DEFAULT_HIGHLIGHT_OPACITY
Container for LineStyle and PointStyle for one Curve.
Window that displays the geometry information, as a table, for the current curve.
GraphicsPointAbstractBase()
Single constructor.
This class add event handling to QGraphicsEllipseItem.
This class add event handling to QGraphicsPolygonItem.
QPointF pos() const
Proxy method for QGraphicsItem::pos.
void setWanted()
Mark point as wanted. Marking as unwanted is done by the reset function.
void setData(int key, const QVariant &data)
Proxy method for QGraphicsItem::setData.
void setPointStyle(const PointStyle &pointStyle)
Update the point style.
void updateCurveStyle(const CurveStyle &curveStyle)
Update point and line styles that comprise the curve style.
void setPassive()
Prevent automatic focus on point (=make it passive) for scale bar so drags can be made to work proper...
void reset()
Mark point as unwanted, and unbind any bound lines.
bool wanted() const
Identify point as wanted//unwanted.
GraphicsPoint(QGraphicsScene &scene, const QString &identifier, const QPointF &posScreen, const QColor &color, unsigned int radius, double lineWidth, GeometryWindow *geometryWindow)
Constructor of circular point.
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(...
~GraphicsPoint()
Destructor. This remove the graphics item from the scene.
QRectF boundingRect() const
Proxy method for QGraphicsItem::boundingRect.
void setHighlightOpacity(double highlightOpacity)
Set method for highlight opacity.
double highlightOpacity() const
Get method for highlight opacity.
void setPos(const QPointF pos)
Update the position.
QVariant data(int key) const
Proxy method for QGraphicsItem::data.
Details for a specific Point.