7#ifndef GRAPHICS_SCENE_H
8#define GRAPHICS_SCENE_H
10#include "CmdMediator.h"
11#include "GraphicsLinesForCurves.h"
12#include <QGraphicsScene>
44 const QPointF &posScreen);
75 const QString &curveName =
"");
92 QString dumpCursors ()
const;
94 const QGraphicsPixmapItem *image ()
const;
100 void updatePointMembership (
CmdMediator &cmdMediator);
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
Container for one set of digitized Points.
Container for all graph curves. The axes point curve is external to this class.
This class stores the GraphicsLinesForCurves objects, one per Curve.
Graphics item for drawing a circular or polygonal Point.
Add point and line handling to generic QGraphicsScene.
void updateGraphicsLinesToMatchGraphicsPoints(const CurveStyles &modelCurveStyles, const Transformation &transformation)
A mouse move has just occurred so move the selected points, since they were dragged.
void resetOnLoad()
Reset, when loading a document after the first, to same state that first document was at when loaded.
void updateAfterCommand(CmdMediator &cmdMediator)
Update the Points and their Curves after executing a command.
QStringList selectedPointIdentifiers() const
Return a list of identifiers for the currently selected points.
void hideAllItemsExceptImage()
Hide all graphics items, except background image, in preparation for preview during IMPORT_TYPE_ADVAN...
void addTemporaryPoint(const QString &identifier, GraphicsPoint *point)
Add one temporary point to m_graphicsLinesForCurves. Non-temporary points are handled by the updateLi...
QStringList positionHasChangedPointIdentifiers() const
Return a list of identifiers for the points that have moved since the last call to resetPositionHasCh...
void showCurves(bool show, bool showAll=false, const QString &curveName="")
Show or hide all Curves (if showAll is true) or just the selected Curve (if showAll is false);.
void resetPositionHasChangedFlags()
Reset positionHasChanged flag for all items. Typically this is done as part of mousePressEvent.
void printStream(QString indentation, QTextStream &str)
Debugging method that supports print method of this class and printStream method of some other class(...
void removeTemporaryPointIfExists()
Remove temporary point if it exists.
void removePoint(const QString &identifier)
Remove specified point. This aborts if the point does not exist.
void updateCurveStyles(const CurveStyles &modelCurveStyles)
Update curve styles after settings changed.
GraphicsPoint * createPoint(const QString &identifier, const PointStyle &pointStyle, const QPointF &posScreen)
Create one QGraphicsItem-based object that represents one Point. It is NOT added to m_graphicsLinesFo...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Details for a specific Point.