svcore
1.9
|
Command to add a point, with undo. More...
#include <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 |
Command to add a point, with undo.
Definition at line 174 of file SparseModel.h.
SparseModel< PointType >::AddPointCommand::AddPointCommand | ( | SparseModel< PointType > * | model, |
const PointType & | point, | ||
QString | name = "" |
||
) | [inline] |
Definition at line 177 of file SparseModel.h.
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.
virtual void SparseModel< PointType >::AddPointCommand::execute | ( | ) | [inline, virtual] |
Implements Command.
Definition at line 186 of file SparseModel.h.
References SparseModel< PointType >::AddPointCommand::m_model, and SparseModel< PointType >::AddPointCommand::m_point.
virtual void SparseModel< PointType >::AddPointCommand::unexecute | ( | ) | [inline, virtual] |
Implements Command.
Definition at line 187 of file SparseModel.h.
References SparseModel< PointType >::AddPointCommand::m_model, and SparseModel< PointType >::AddPointCommand::m_point.
const PointType& SparseModel< PointType >::AddPointCommand::getPoint | ( | ) | const [inline] |
Definition at line 189 of file SparseModel.h.
References SparseModel< PointType >::AddPointCommand::m_point.
Referenced by SparseModel< PointType >::EditCommand::addCommand().
SparseModel<PointType>* SparseModel< PointType >::AddPointCommand::m_model [private] |
Definition at line 192 of file SparseModel.h.
Referenced by SparseModel< PointType >::AddPointCommand::execute(), and SparseModel< PointType >::AddPointCommand::unexecute().
PointType SparseModel< PointType >::AddPointCommand::m_point [private] |
Definition at line 193 of file SparseModel.h.
Referenced by SparseModel< PointType >::AddPointCommand::execute(), SparseModel< PointType >::AddPointCommand::getPoint(), and SparseModel< PointType >::AddPointCommand::unexecute().
QString SparseModel< PointType >::AddPointCommand::m_name [private] |
Definition at line 194 of file SparseModel.h.
Referenced by SparseModel< PointType >::AddPointCommand::getName().