7 #ifndef GRAPHICS_LINES_FOR_CURVE_H 8 #define GRAPHICS_LINES_FOR_CURVE_H 11 #include "OrdinalToGraphicsPoint.h" 12 #include <QGraphicsPathItem> 36 void addPoint (
const QString &pointIdentifier,
51 QTextStream &str)
const;
81 QPainterPath drawLinesSmooth ();
82 QPainterPath drawLinesStraight ();
83 bool needOrdinalRenumbering ()
const;
84 void renumberOrdinals();
86 const QString m_curveName;
87 OrdinalToGraphicsPoint m_graphicsPoints;
90 #endif // GRAPHICS_LINES_FOR_CURVE_H void lineMembershipReset()
Mark points as unwanted. Afterwards, lineMembershipPurge gets called.
void updateCurveStyle(const CurveStyle &curveStyle)
Update the curve style for this curve.
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Window that displays the geometry information, as a table, for the current curve. ...
GraphicsLinesForCurve(const QString &curveName)
Single constructor.
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...
This class stores the GraphicsLine objects for one Curve.
Details for a specific Point.
void removeTemporaryPointIfExists()
Remove temporary point if it exists.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void updateHighlightOpacity(double highlightOpacity)
Update the highlight opacity value. This may or may not affect the current display immediately depend...
Container for LineStyle and PointStyle for one Curve.
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 ...
Details for a specific Line.
Graphics item for drawing a circular or polygonal Point.
void addPoint(const QString &pointIdentifier, double ordinal, GraphicsPoint &point)
Add new line.
Add point and line handling to generic QGraphicsScene.
void lineMembershipPurge(const LineStyle &lineStyle)
Mark the end of addPoint calls. Remove stale lines, insert missing lines, and draw the graphics lines...
void removePoint(double ordinal)
Remove the specified point. The act of deleting it will automatically remove it from the GraphicsScen...
double identifierToOrdinal(const QString &identifier) const
Get ordinal for specified identifier.