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

Background image state for interval between startup and loading of the image. More...

#include <BackgroundStateUnloaded.h>

Inheritance diagram for BackgroundStateUnloaded:
Inheritance graph
Collaboration diagram for BackgroundStateUnloaded:
Collaboration graph

Public Member Functions

 BackgroundStateUnloaded (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 (bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
 Update the currently selected curve name.
 
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.
 
virtual QString state () const
 State name for debugging.
 
virtual void updateColorFilter (bool isGnuplot, const Transformation &transformation, const DocumentModelGridRemoval &modelGridRemoval, const DocumentModelColorFilter &colorFilter, const QString &curveSelected)
 Apply color filter settings.
 
- Public Member Functions inherited from BackgroundStateAbstractBase
 BackgroundStateAbstractBase (BackgroundStateContext &context, GraphicsScene &scene)
 Single constructor.
 
virtual ~BackgroundStateAbstractBase ()
 
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.
 
QGraphicsPixmapItemimageItem () 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 interval between startup and loading of the image.

Definition at line 13 of file BackgroundStateUnloaded.h.

Constructor & Destructor Documentation

◆ BackgroundStateUnloaded()

BackgroundStateUnloaded::BackgroundStateUnloaded ( BackgroundStateContext & context,
GraphicsScene & scene )

Single constructor.

Definition at line 16 of file BackgroundStateUnloaded.cpp.

17 :
19 scene)
20{
21}
Background image state machine state base class.
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses,...

Member Function Documentation

◆ begin()

void BackgroundStateUnloaded::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 BackgroundStateUnloaded.cpp.

24{
25 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::begin";
26}
log4cpp::Category * mainCat
Definition Logger.cpp:14
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

◆ end()

void BackgroundStateUnloaded::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 28 of file BackgroundStateUnloaded.cpp.

29{
30 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::end";
31}

◆ fitInView()

void BackgroundStateUnloaded::fitInView ( GraphicsView & view)
virtual

Zoom so background fills the window.

Implements BackgroundStateAbstractBase.

Definition at line 33 of file BackgroundStateUnloaded.cpp.

34{
35 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::fitInView";
36}

◆ setCurveSelected()

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

Update the currently selected curve name.

Implements BackgroundStateAbstractBase.

Definition at line 38 of file BackgroundStateUnloaded.cpp.

43{
44 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::setCurveSelected";
45}

◆ setPixmap()

void BackgroundStateUnloaded::setPixmap ( bool isGnuplot,
const Transformation & transformation,
const DocumentModelGridRemoval & modelGridRemoval,
const DocumentModelColorFilter & modelColorFilter,
const QPixmap & pixmap,
const QString & curveSelected )
virtual

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

Implements BackgroundStateAbstractBase.

Definition at line 47 of file BackgroundStateUnloaded.cpp.

53{
54 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::setPixmap";
55
56 // This state has no displayed image
57}

◆ state()

QString BackgroundStateUnloaded::state ( ) const
virtual

State name for debugging.

Implements BackgroundStateAbstractBase.

Definition at line 59 of file BackgroundStateUnloaded.cpp.

60{
61 return "BackgroundStateUnloaded";
62}

◆ updateColorFilter()

void BackgroundStateUnloaded::updateColorFilter ( bool isGnuplot,
const Transformation & transformation,
const DocumentModelGridRemoval & modelGridRemoval,
const DocumentModelColorFilter & modelColorFilter,
const QString & curveSelected )
virtual

Apply color filter settings.

Implements BackgroundStateAbstractBase.

Definition at line 64 of file BackgroundStateUnloaded.cpp.

69{
70 LOG4CPP_INFO_S ((*mainCat)) << "BackgroundStateUnloaded::updateColorFilter";
71}

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