SparseModel< PointType >::RelabelCommand Class Reference

#include <SparseModel.h>

Inherits Command.

Inheritance diagram for SparseModel< PointType >::RelabelCommand:

Inheritance graph
[legend]
Collaboration diagram for SparseModel< PointType >::RelabelCommand:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename PointType>
class SparseModel< PointType >::RelabelCommand

Command to relabel a point.

Definition at line 233 of file SparseModel.h.

Public Member Functions

 RelabelCommand (SparseModel< PointType > *model, const PointType &point, QString newLabel)
virtual QString getName () const
virtual void execute ()
virtual void unexecute ()

Private Attributes

SparseModel< PointType > * m_model
PointType m_oldPoint
PointType m_newPoint


Constructor & Destructor Documentation

template<typename PointType>
SparseModel< PointType >::RelabelCommand::RelabelCommand ( SparseModel< PointType > *  model,
const PointType &  point,
QString  newLabel 
) [inline]

Definition at line 236 of file SparseModel.h.

References SparseModel< PointType >::RelabelCommand::m_newPoint.


Member Function Documentation

template<typename PointType>
virtual QString SparseModel< PointType >::RelabelCommand::getName (  )  const [inline, virtual]

Implements Command.

Definition at line 243 of file SparseModel.h.

template<typename PointType>
virtual void SparseModel< PointType >::RelabelCommand::execute (  )  [inline, virtual]

Implements Command.

Definition at line 245 of file SparseModel.h.

References SparseModel< PointType >::RelabelCommand::m_model, SparseModel< PointType >::RelabelCommand::m_newPoint, and SparseModel< PointType >::RelabelCommand::m_oldPoint.

Referenced by SparseModel< PointType >::RelabelCommand::unexecute().

template<typename PointType>
virtual void SparseModel< PointType >::RelabelCommand::unexecute (  )  [inline, virtual]

Implements Command.

Definition at line 251 of file SparseModel.h.

References SparseModel< PointType >::RelabelCommand::execute().


Member Data Documentation

template<typename PointType>
SparseModel<PointType>* SparseModel< PointType >::RelabelCommand::m_model [private]

Definition at line 254 of file SparseModel.h.

Referenced by SparseModel< PointType >::RelabelCommand::execute().

template<typename PointType>
PointType SparseModel< PointType >::RelabelCommand::m_oldPoint [private]

Definition at line 255 of file SparseModel.h.

Referenced by SparseModel< PointType >::RelabelCommand::execute().

template<typename PointType>
PointType SparseModel< PointType >::RelabelCommand::m_newPoint [private]

Definition at line 256 of file SparseModel.h.

Referenced by SparseModel< PointType >::RelabelCommand::execute(), and SparseModel< PointType >::RelabelCommand::RelabelCommand().


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