MeVisLab Toolbox Reference
ml::CSOCmdMoveContour Class Reference

Class for undo/redo of the moving of a contour. More...

#include <CSOUndoRedoCommands.h>

Inheritance diagram for ml::CSOCmdMoveContour:
ml::CSOCommand

Public Member Functions

 CSOCmdMoveContour (const CSOListPtr &csoList, CSO *cso, Vector3 fromPos, Vector3 toPos, int fromTPI, int toTPI)
 Constructor.
 
 ~CSOCmdMoveContour () override
 Destructor.
 
int execute () override
 Method is executed on undo/redo.
 
std::string description () const override
 Undo descriptions are the inverse of the performed operation.
 
- Public Member Functions inherited from ml::CSOCommand
 CSOCommand (const CSOListPtr &csoList)
 Constructor.
 
 ~CSOCommand () override
 Destructor.
 
void undo () override
 calls execute
 

Additional Inherited Members

- Public Attributes inherited from ml::CSOCommand
std::string commandName
 The command as a string (for debugging purposes).
 
- Protected Member Functions inherited from ml::CSOCommand
bool checkRedoBehavior () const override
 Not every undo step generates a redo step (a previous step might generate two instead), so...
 
- Protected Attributes inherited from ml::CSOCommand
CSOList_csoList
 Pointer to the csoList.
 

Detailed Description

Class for undo/redo of the moving of a contour.

Definition at line 231 of file CSOUndoRedoCommands.h.

Constructor & Destructor Documentation

◆ CSOCmdMoveContour()

ml::CSOCmdMoveContour::CSOCmdMoveContour ( const CSOListPtr & csoList,
CSO * cso,
Vector3 fromPos,
Vector3 toPos,
int fromTPI,
int toTPI )

Constructor.

◆ ~CSOCmdMoveContour()

ml::CSOCmdMoveContour::~CSOCmdMoveContour ( )
override

Destructor.

Member Function Documentation

◆ description()

std::string ml::CSOCmdMoveContour::description ( ) const
inlineoverride

Undo descriptions are the inverse of the performed operation.

Definition at line 244 of file CSOUndoRedoCommands.h.

◆ execute()

int ml::CSOCmdMoveContour::execute ( )
overridevirtual

Method is executed on undo/redo.

Implements ml::CSOCommand.


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