ImageModel::ChangeImageCommand Class Reference

#include <ImageModel.h>

Inherits Command.

Inheritance diagram for ImageModel::ChangeImageCommand:

Inheritance graph
[legend]
Collaboration diagram for ImageModel::ChangeImageCommand:

Collaboration graph
[legend]
List of all members.

Detailed Description

Command to change the image for a point.

Definition at line 108 of file ImageModel.h.

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


Constructor & Destructor Documentation

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

Definition at line 111 of file ImageModel.h.

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


Member Function Documentation

virtual QString ImageModel::ChangeImageCommand::getName (  )  const [inline, virtual]

Implements Command.

Definition at line 120 of file ImageModel.h.

virtual void ImageModel::ChangeImageCommand::execute (  )  [inline, virtual]

Implements Command.

Definition at line 122 of file ImageModel.h.

References SparseModel< PointType >::addPoint(), SparseModel< PointType >::deletePoint(), m_model, m_newPoint, and m_oldPoint.

Referenced by unexecute().

virtual void ImageModel::ChangeImageCommand::unexecute (  )  [inline, virtual]

Implements Command.

Definition at line 128 of file ImageModel.h.

References execute().


Member Data Documentation

ImageModel* ImageModel::ChangeImageCommand::m_model [private]

Definition at line 131 of file ImageModel.h.

Referenced by execute().

ImagePoint ImageModel::ChangeImageCommand::m_oldPoint [private]

Definition at line 132 of file ImageModel.h.

Referenced by execute().

ImagePoint ImageModel::ChangeImageCommand::m_newPoint [private]

Definition at line 133 of file ImageModel.h.

Referenced by ChangeImageCommand(), and execute().


The documentation for this class was generated from the following file:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1