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:

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

◆ AddPointCommand()

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

◆ getName()

template<typename PointType>
virtual QString SparseModel< PointType >::AddPointCommand::getName ( ) const
inlinevirtual

Implements Command.

Definition at line 182 of file SparseModel.h.

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

◆ execute()

template<typename PointType>
virtual void SparseModel< PointType >::AddPointCommand::execute ( )
inlinevirtual

◆ unexecute()

template<typename PointType>
virtual void SparseModel< PointType >::AddPointCommand::unexecute ( )
inlinevirtual

◆ getPoint()

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

Member Data Documentation

◆ m_model

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

◆ m_point

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

◆ m_name

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: