SparseModel< PointType >::AddPointCommand Class Reference

#include <SparseModel.h>

Inherits Command.

Inheritance diagram for SparseModel< PointType >::AddPointCommand:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Command to add a point, with undo.

Definition at line 153 of file SparseModel.h.

Public Member Functions

 AddPointCommand (SparseModel< PointType > *model, const PointType &point, QString name="")
virtual QString getName () const
virtual void execute ()
virtual void unexecute ()
const PointType & getPoint () const

Private Attributes

SparseModel< PointType > * m_model
PointType m_point
QString m_name


Constructor & Destructor Documentation

template<typename PointType>
SparseModel< PointType >::AddPointCommand::AddPointCommand ( SparseModel< PointType > *  model,
const PointType &  point,
QString  name = "" 
) [inline]

Definition at line 156 of file SparseModel.h.


Member Function Documentation

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

Implements Command.

Definition at line 161 of file SparseModel.h.

References SparseModel< PointType >::AddPointCommand::m_name.

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

Implements Command.

Definition at line 165 of file SparseModel.h.

References SparseModel< PointType >::AddPointCommand::m_model, and SparseModel< PointType >::AddPointCommand::m_point.

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

Implements Command.

Definition at line 166 of file SparseModel.h.

References SparseModel< PointType >::AddPointCommand::m_model, and SparseModel< PointType >::AddPointCommand::m_point.

template<typename PointType>
const PointType& SparseModel< PointType >::AddPointCommand::getPoint (  )  const [inline]

Definition at line 168 of file SparseModel.h.

References SparseModel< PointType >::AddPointCommand::m_point.

Referenced by SparseModel< PointType >::EditCommand::addCommand().


Member Data Documentation

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

Definition at line 171 of file SparseModel.h.

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

template<typename PointType>
PointType SparseModel< PointType >::AddPointCommand::m_point [private]

Definition at line 172 of file SparseModel.h.

Referenced by SparseModel< PointType >::AddPointCommand::execute(), SparseModel< PointType >::AddPointCommand::getPoint(), and SparseModel< PointType >::AddPointCommand::unexecute().

template<typename PointType>
QString SparseModel< PointType >::AddPointCommand::m_name [private]

Definition at line 173 of file SparseModel.h.

Referenced by SparseModel< PointType >::AddPointCommand::getName().


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