svcore  1.9
SparseModel< PointType >::AddPointCommand Class Reference

Command to add a point, with undo. More...

#include <SparseModel.h>

Inheritance diagram for SparseModel< PointType >::AddPointCommand:
Collaboration diagram for SparseModel< PointType >::AddPointCommand:

List of all members.

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

Detailed Description

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

Command to add a point, with undo.

Definition at line 174 of file SparseModel.h.


Constructor & Destructor Documentation

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

Definition at line 177 of file SparseModel.h.


Member Function Documentation

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

Implements Command.

Definition at line 182 of file SparseModel.h.

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

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

Member Data Documentation

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

Definition at line 194 of file SparseModel.h.

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


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