![]() |
anatomist
5.0.5
3D neuroimaging data viewer
|
The abstract base class for commands. More...
#include <anatomist/processor/Command.h>
Public Types | |
typedef Command *(* | Reader) (const Tree &, CommandContext *) |
Public Member Functions | |
virtual | ~Command () |
Destructor does nothing. More... | |
virtual void | execute () |
Execute the command - may use { doit()}. More... | |
virtual void | undo () |
Undo the command - may use { undoit()}. More... | |
virtual void | redo () |
Redo the command - may use { doit()}. More... | |
virtual std::string | name () const =0 |
Return the unique name of a class of commands. More... | |
virtual void | write (Tree &com, Serializer *ser) const |
Print the guts of a command into a Tree given as parent. More... | |
Protected Member Functions | |
Command () | |
The programmer cannot call the constructor of an abstract base class. More... | |
virtual void | doit ()=0 |
Do a command. More... | |
virtual void | undoit () |
Undo a command. More... | |
typedef Command*(* anatomist::Command::Reader) (const Tree &, CommandContext *) |
|
virtual |
Destructor does nothing.
|
protected |
The programmer cannot call the constructor of an abstract base class.
|
protectedpure virtual |
Do a command.
Implemented in anatomist::LoadTransformationCommand, anatomist::GetInfoCommand, anatomist::AssignReferentialCommand, anatomist::LoadObjectCommand, anatomist::SetConnThresholdCommand, anatomist::SetMaterialCommand, anatomist::SetObjectPaletteCommand, anatomist::GetConnThresholdCommand, anatomist::ObjectInfoCommand, anatomist::ExternalReferenceCommand, anatomist::GroupObjectsCommand, anatomist::DuplicateObjectCommand, anatomist::AddObjectCommand, anatomist::DeleteElementCommand, anatomist::NewIdCommand, anatomist::ReloadObjectCommand, anatomist::CreateWindowCommand, anatomist::SelectCommand, anatomist::SelectByHierarchyCommand, anatomist::CloseWindowCommand, anatomist::DeleteObjectCommand, anatomist::RemoveObjectCommand, anatomist::ShowObjectCommand, anatomist::TexturingParamsCommand, anatomist::EventFilterCommand, anatomist::FusionInfoCommand, anatomist::CreateControlWindowCommand, anatomist::DeleteAllCommand, anatomist::GraphParamsCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::CameraCommand, anatomist::FusionObjectsCommand, anatomist::OutputCommand, anatomist::SaveTransformationCommand, anatomist::SetControlCommand, anatomist::WindowBlockCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::LinkedCursorCommand, anatomist::SliceParamsCommand, anatomist::ChangePaletteCommand, anatomist::ExtractTextureCommand, anatomist::Fusion2DParamsCommand, anatomist::Fusion3DParamsCommand, anatomist::GenerateTextureCommand, anatomist::LinkWindowsCommand, anatomist::AddNodeCommand, anatomist::AskTexExtremaCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::NewPaletteCommand, anatomist::SaveObjectCommand, anatomist::WindowConfigCommand, anatomist::CreateGraphCommand, anatomist::PopupPaletteCommand, anatomist::ControlsParamsCommand, anatomist::ExitCommand, anatomist::ExportTextureCommand, anatomist::ActivateActionCommand, anatomist::ServerCommand, anatomist::PaintParamsCommand, and anatomist::ClosePipeCommand.
|
virtual |
Execute the command - may use { doit()}.
Reimplemented in anatomist::WaitCommand.
|
pure virtual |
Return the unique name of a class of commands.
Implemented in anatomist::LoadTransformationCommand, anatomist::GetInfoCommand, anatomist::AssignReferentialCommand, anatomist::SetConnThresholdCommand, anatomist::LoadObjectCommand, anatomist::SetMaterialCommand, anatomist::SetObjectPaletteCommand, anatomist::GetConnThresholdCommand, anatomist::ExternalReferenceCommand, anatomist::ObjectInfoCommand, anatomist::GroupObjectsCommand, anatomist::AddObjectCommand, anatomist::DeleteElementCommand, anatomist::DuplicateObjectCommand, anatomist::NewIdCommand, anatomist::SelectCommand, anatomist::ReloadObjectCommand, anatomist::SelectByHierarchyCommand, anatomist::CloseWindowCommand, anatomist::CreateWindowCommand, anatomist::DeleteObjectCommand, anatomist::RemoveObjectCommand, anatomist::TexturingParamsCommand, anatomist::CreateControlWindowCommand, anatomist::EventFilterCommand, anatomist::ShowObjectCommand, anatomist::DeleteAllCommand, anatomist::FusionInfoCommand, anatomist::GraphParamsCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::CameraCommand, anatomist::OutputCommand, anatomist::SetControlCommand, anatomist::FusionObjectsCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::LinkedCursorCommand, anatomist::SaveTransformationCommand, anatomist::SliceParamsCommand, anatomist::WindowBlockCommand, anatomist::ChangePaletteCommand, anatomist::Fusion2DParamsCommand, anatomist::Fusion3DParamsCommand, anatomist::ExtractTextureCommand, anatomist::GenerateTextureCommand, anatomist::AddNodeCommand, anatomist::AskTexExtremaCommand, anatomist::LinkWindowsCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::NewPaletteCommand, anatomist::SaveObjectCommand, anatomist::WindowConfigCommand, anatomist::CreateGraphCommand, anatomist::PopupPaletteCommand, anatomist::ControlsParamsCommand, anatomist::ExitCommand, anatomist::ExportTextureCommand, anatomist::ActivateActionCommand, anatomist::ServerCommand, anatomist::PaintParamsCommand, and anatomist::ClosePipeCommand.
|
virtual |
Redo the command - may use { doit()}.
Reimplemented in anatomist::WaitCommand.
|
virtual |
Undo the command - may use { undoit()}.
Reimplemented in anatomist::WaitCommand.
|
protectedvirtual |
Undo a command.
Reimplemented in anatomist::GroupObjectsCommand, anatomist::AddObjectCommand, and anatomist::CreateWindowCommand.
|
virtual |
Print the guts of a command into a Tree given as parent.
Reimplemented in anatomist::LoadTransformationCommand, anatomist::GetInfoCommand, anatomist::AssignReferentialCommand, anatomist::SetConnThresholdCommand, anatomist::LoadObjectCommand, anatomist::SetMaterialCommand, anatomist::SetObjectPaletteCommand, anatomist::GetConnThresholdCommand, anatomist::ExternalReferenceCommand, anatomist::ObjectInfoCommand, anatomist::GroupObjectsCommand, anatomist::AddObjectCommand, anatomist::DeleteElementCommand, anatomist::DuplicateObjectCommand, anatomist::NewIdCommand, anatomist::SelectCommand, anatomist::ReloadObjectCommand, anatomist::SelectByHierarchyCommand, anatomist::CloseWindowCommand, anatomist::CreateWindowCommand, anatomist::DeleteObjectCommand, anatomist::RemoveObjectCommand, anatomist::TexturingParamsCommand, anatomist::EventFilterCommand, anatomist::ShowObjectCommand, anatomist::DeleteAllCommand, anatomist::FusionInfoCommand, anatomist::GraphParamsCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::CameraCommand, anatomist::OutputCommand, anatomist::SetControlCommand, anatomist::FusionObjectsCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::LinkedCursorCommand, anatomist::SaveTransformationCommand, anatomist::SliceParamsCommand, anatomist::WindowBlockCommand, anatomist::ChangePaletteCommand, anatomist::Fusion2DParamsCommand, anatomist::Fusion3DParamsCommand, anatomist::ExtractTextureCommand, anatomist::GenerateTextureCommand, anatomist::AddNodeCommand, anatomist::AskTexExtremaCommand, anatomist::LinkWindowsCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::NewPaletteCommand, anatomist::SaveObjectCommand, anatomist::WindowConfigCommand, anatomist::CreateGraphCommand, anatomist::PopupPaletteCommand, anatomist::ControlsParamsCommand, anatomist::ExitCommand, anatomist::ExportTextureCommand, anatomist::ActivateActionCommand, anatomist::ServerCommand, anatomist::PaintParamsCommand, and anatomist::ClosePipeCommand.