Go to the documentation of this file.
41 view.fitInView (
imageItem ().boundingRect());
57 const QPixmap &pixmapOriginal,
63 QPixmap pixmapNone (pixmapOriginal);
64 pixmapNone.fill (Qt::white);
71 return "BackgroundStateNone";
virtual void setCurveSelected(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Update the currently selected curve name.
void setImageVisible(bool visible)
Show/hide background image.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
virtual void fitInView(GraphicsView &view)
Zoom so background fills the window.
QGraphicsPixmapItem & imageItem() const
Graphics image item for the current state.
Background image state machine state base class.
QGraphicsView class with event handling added. Typically the events are sent to the active digitizing...
virtual QString state() const
State name for debugging.
virtual void setPixmap(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmap, const QString &curveSelected)
Update the image for this state, after the leaf class processes it appropriately.
BackgroundStateNone(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
#define LOG4CPP_INFO_S(logger)
Add point and line handling to generic QGraphicsScene.
void setProcessedPixmap(const QPixmap &pixmap)
Save the image for this state after it has been processed by the leaf class.
log4cpp::Category * mainCat
virtual void end()
Method that is called at the exact moment a state is exited. Typically called just before begin for t...
virtual void updateColorFilter(bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
Apply color filter settings.
Model for DlgSettingsGridRemoval and CmdSettingsGridRemoval. The settings are unstable until the user...
Context class that manages the background image state machine.
virtual void begin()
Method that is called at the exact moment a state is entered. Typically called just after end for the...