svcore  1.9
ImageModel::ChangeImageCommand Class Reference

Command to change the image for a point. More...

#include <ImageModel.h>

Inheritance diagram for ImageModel::ChangeImageCommand:
Collaboration diagram for ImageModel::ChangeImageCommand:

Public Member Functions

 ChangeImageCommand (ImageModel *model, const ImagePoint &point, QString newImage, QString newLabel)
 
virtual QString getName () const
 
virtual void execute ()
 
virtual void unexecute ()
 

Private Attributes

ImageModelm_model
 
ImagePoint m_oldPoint
 
ImagePoint m_newPoint
 

Detailed Description

Command to change the image for a point.

Definition at line 112 of file ImageModel.h.

Constructor & Destructor Documentation

◆ ChangeImageCommand()

ImageModel::ChangeImageCommand::ChangeImageCommand ( ImageModel model,
const ImagePoint point,
QString  newImage,
QString  newLabel 
)
inline

Definition at line 115 of file ImageModel.h.

References ImagePoint::image, ImagePoint::label, and m_newPoint.

Member Function Documentation

◆ getName()

virtual QString ImageModel::ChangeImageCommand::getName ( ) const
inlinevirtual

Implements Command.

Definition at line 124 of file ImageModel.h.

◆ execute()

virtual void ImageModel::ChangeImageCommand::execute ( )
inlinevirtual

◆ unexecute()

virtual void ImageModel::ChangeImageCommand::unexecute ( )
inlinevirtual

Implements Command.

Definition at line 132 of file ImageModel.h.

References execute().

Member Data Documentation

◆ m_model

ImageModel* ImageModel::ChangeImageCommand::m_model
private

Definition at line 135 of file ImageModel.h.

Referenced by execute().

◆ m_oldPoint

ImagePoint ImageModel::ChangeImageCommand::m_oldPoint
private

Definition at line 136 of file ImageModel.h.

Referenced by execute().

◆ m_newPoint

ImagePoint ImageModel::ChangeImageCommand::m_newPoint
private

Definition at line 137 of file ImageModel.h.

Referenced by ChangeImageCommand(), and execute().


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