7#ifndef GRAPHICS_LINES_FOR_CURVE_H
8#define GRAPHICS_LINES_FOR_CURVE_H
11#include "OrdinalToGraphicsPoint.h"
12#include <QGraphicsPathItem>
35 void addPoint (
const QString &pointIdentifier,
50 QTextStream &str)
const;
76 QPainterPath drawLinesSmooth ();
77 QPainterPath drawLinesStraight ();
78 bool needOrdinalRenumbering ()
const;
79 void renumberOrdinals();
81 const QString m_curveName;
82 OrdinalToGraphicsPoint m_graphicsPoints;
Container for LineStyle and PointStyle for one Curve.
This class stores the GraphicsLine objects for one Curve.
double identifierToOrdinal(const QString &identifier) const
Get ordinal for specified identifier.
void updateCurveStyle(const CurveStyle &curveStyle)
Update the curve style for this curve.
void removePoint(double ordinal)
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScen...
void addPoint(const QString &pointIdentifier, double ordinal, GraphicsPoint &point)
Add new line.
void updateAfterCommand(GraphicsScene &scene, const PointStyle &pointStyle, const Point &point)
Update the GraphicsScene with the specified Point from the Document. If it does not exist yet in the ...
void lineMembershipReset()
Mark points as unwanted. Afterwards, lineMembershipPurge gets called.
void removeTemporaryPointIfExists()
Remove temporary point if it exists.
void lineMembershipPurge(const LineStyle &lineStyle)
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines...
void updateGraphicsLinesToMatchGraphicsPoints(const LineStyle &lineStyle)
Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly.
void updatePointOrdinalsAfterDrag(const LineStyle &lineStyle, const Transformation &transformation)
See GraphicsScene::updateOrdinalsAfterDrag. Pretty much the same steps as Curve::updatePointOrdinals.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
Graphics item for drawing a circular or polygonal Point.
Add point and line handling to generic QGraphicsScene.
Details for a specific Line.
Details for a specific Point.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...