Go to the documentation of this file.
7 #ifndef GRAPHICS_LINES_FOR_CURVE_H
8 #define GRAPHICS_LINES_FOR_CURVE_H
12 #include <QGraphicsPathItem>
38 void addPoint (
const QString &pointIdentifier,
48 QPainterPath &pathMultiValued,
56 QTextStream &str)
const;
77 QPainterPath &pathMultiValued,
89 QPainterPath drawLinesSmooth (
const LineStyle &lineStyle,
91 QPainterPath &pathMultiValued,
93 QPainterPath drawLinesStraight (QPainterPath &pathMultiValued);
94 bool needOrdinalRenumbering ()
const;
95 void renumberOrdinals();
97 const QString m_curveName;
101 #endif // GRAPHICS_LINES_FOR_CURVE_H
void addPoint(const QString &pointIdentifier, double ordinal, GraphicsPoint &point)
Add new line.
GraphicsLinesForCurve(const QString &curveName)
Single constructor.
void removeTemporaryPointIfExists()
Remove temporary point if it exists.
void updatePointOrdinalsAfterDrag(const LineStyle &lineStyle, const Transformation &transformation)
See GraphicsScene::updateOrdinalsAfterDrag. Pretty much the same steps as Curve::updatePointOrdinals.
QMap< double, GraphicsPoint * > OrdinalToGraphicsPoint
Container for LineStyle and PointStyle for one Curve.
Details for a specific Line.
This class stores the GraphicsLine objects for one Curve.
void updateHighlightOpacity(double highlightOpacity)
Update the highlight opacity value. This may or may not affect the current display immediately depend...
void updateAfterCommand(GraphicsScene &scene, const PointStyle &pointStyle, const Point &point, GeometryWindow *geometryWindow)
Update the GraphicsScene with the specified Point from the Document. If it does not exist yet in the ...
Add point and line handling to generic QGraphicsScene.
void updateCurveStyle(const CurveStyle &curveStyle)
Update the curve style for this curve.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
This class takes the output from Spline and uses that to draw the curve in the graphics window,...
Details for a specific Point.
Graphics item for drawing a circular or polygonal Point.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
void lineMembershipReset()
Mark points as unwanted. Afterwards, lineMembershipPurge gets called.
void removePoint(double ordinal)
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScen...
void updateGraphicsLinesToMatchGraphicsPoints(const LineStyle &lineStyle, SplineDrawer &splineDrawer, QPainterPath &pathMultiValued, LineStyle &lineMultiValued)
Calls to moveLinesWithDraggedPoint have finished so update the lines correspondingly.
Window that displays the geometry information, as a table, for the current curve.
void lineMembershipPurge(const LineStyle &lineStyle, SplineDrawer &splineDrawer, QPainterPath &pathMultiValued, LineStyle &lineMultiValued)
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines...
double identifierToOrdinal(const QString &identifier) const
Get ordinal for specified identifier.