Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BackgroundStateNone Class Reference

Background image state for showing no image. More...

#include <BackgroundStateNone.h>

Inheritance diagram for BackgroundStateNone:
BackgroundStateAbstractBase

Public Member Functions

 BackgroundStateNone (BackgroundStateContext &context, GraphicsScene &scene)
 Single constructor.
 
virtual void begin ()
 Method that is called at the exact moment a state is entered. Typically called just after end for the previous state.
 
virtual void end ()
 Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.
 
virtual void fitInView (GraphicsView &view)
 Zoom so background fills the window.
 
virtual void setCurveSelected (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
 Update the currently selected curve name.
 
virtual void setPixmap (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &modelColorFilter, const QPixmap &pixmap)
 Update the image for this state, after the leaf class processes it appropriately.
 
virtual QString state () const
 State name for debugging.
 
virtual void updateColorFilter (const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter)
 Apply color filter settings.
 
- Public Member Functions inherited from BackgroundStateAbstractBase
 BackgroundStateAbstractBase (BackgroundStateContext &context, GraphicsScene &scene)
 Single constructor.
 
BackgroundStateContextcontext ()
 Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
 
const BackgroundStateContextcontext () const
 Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses, without const.
 
QImage image () const
 Image for the current state.
 
QGraphicsPixmapItem & imageItem () const
 Graphics image item for the current state.
 
GraphicsScenescene ()
 Reference to the GraphicsScene, without const.
 
const GraphicsScenescene () const
 Reference to the GraphicsScene, without const.
 

Additional Inherited Members

- Protected Member Functions inherited from BackgroundStateAbstractBase
void setImageVisible (bool visible)
 Show/hide background image.
 
void setProcessedPixmap (const QPixmap &pixmap)
 Save the image for this state after it has been processed by the leaf class.
 

Detailed Description

Background image state for showing no image.

Definition at line 13 of file BackgroundStateNone.h.

Constructor & Destructor Documentation

◆ BackgroundStateNone()

BackgroundStateNone::BackgroundStateNone ( BackgroundStateContext context,
GraphicsScene scene 
)

Single constructor.

Definition at line 16 of file BackgroundStateNone.cpp.

Member Function Documentation

◆ begin()

void BackgroundStateNone::begin ( )
virtual

Method that is called at the exact moment a state is entered. Typically called just after end for the previous state.

Implements BackgroundStateAbstractBase.

Definition at line 23 of file BackgroundStateNone.cpp.

◆ end()

void BackgroundStateNone::end ( )
virtual

Method that is called at the exact moment a state is exited. Typically called just before begin for the next state.

Implements BackgroundStateAbstractBase.

Definition at line 30 of file BackgroundStateNone.cpp.

◆ fitInView()

void BackgroundStateNone::fitInView ( GraphicsView view)
virtual

Zoom so background fills the window.

Implements BackgroundStateAbstractBase.

Definition at line 37 of file BackgroundStateNone.cpp.

◆ setCurveSelected()

void BackgroundStateNone::setCurveSelected ( const Transformation transformation,
const DocumentModelGridRemoval modelGridRemoval,
const DocumentModelColorFilter colorFilter,
const QString &  curveSelected 
)
virtual

Update the currently selected curve name.

Implements BackgroundStateAbstractBase.

Definition at line 44 of file BackgroundStateNone.cpp.

◆ setPixmap()

void BackgroundStateNone::setPixmap ( const Transformation transformation,
const DocumentModelGridRemoval modelGridRemoval,
const DocumentModelColorFilter modelColorFilter,
const QPixmap &  pixmap 
)
virtual

Update the image for this state, after the leaf class processes it appropriately.

Implements BackgroundStateAbstractBase.

Definition at line 52 of file BackgroundStateNone.cpp.

◆ state()

QString BackgroundStateNone::state ( ) const
virtual

State name for debugging.

Implements BackgroundStateAbstractBase.

Definition at line 66 of file BackgroundStateNone.cpp.

◆ updateColorFilter()

void BackgroundStateNone::updateColorFilter ( const Transformation transformation,
const DocumentModelGridRemoval modelGridRemoval,
const DocumentModelColorFilter modelColorFilter 
)
virtual

Apply color filter settings.

Implements BackgroundStateAbstractBase.

Definition at line 71 of file BackgroundStateNone.cpp.


The documentation for this class was generated from the following files: