![]() |
anatomist
5.1.2
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 {\tt doit()}. More... | |
virtual void | undo () |
Undo the command - may use {\tt undoit()}. More... | |
virtual void | redo () |
Redo the command - may use {\tt 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::WindowConfigCommand, anatomist::WindowBlockCommand, anatomist::TexturingParamsCommand, anatomist::SliceParamsCommand, anatomist::ShowObjectCommand, anatomist::SetObjectPaletteCommand, anatomist::SetMaterialCommand, anatomist::SetControlCommand, anatomist::SetConnThresholdCommand, anatomist::ServerCommand, anatomist::SelectByHierarchyCommand, anatomist::SelectCommand, anatomist::SaveTransformationGraphCommand, anatomist::SaveTransformationCommand, anatomist::SaveObjectCommand, anatomist::RemoveObjectCommand, anatomist::ReloadObjectCommand, anatomist::PopupPaletteCommand, anatomist::PaintParamsCommand, anatomist::OutputCommand, anatomist::ObjectInfoCommand, anatomist::NewPaletteCommand, anatomist::NewIdCommand, anatomist::LoadTransformationGraphCommand, anatomist::LoadTransformationCommand, anatomist::LoadObjectCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::LinkWindowsCommand, anatomist::LinkedCursorCommand, anatomist::GroupObjectsCommand, anatomist::GraphParamsCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::GetInfoCommand, anatomist::GetConnThresholdCommand, anatomist::GenerateTextureCommand, anatomist::FusionObjectsCommand, anatomist::FusionInfoCommand, anatomist::Fusion3DParamsCommand, anatomist::Fusion2DParamsCommand, anatomist::ExtractTextureCommand, anatomist::ExternalReferenceCommand, anatomist::ExportTextureCommand, anatomist::ExitCommand, anatomist::EventFilterCommand, anatomist::DuplicateObjectCommand, anatomist::DeleteObjectCommand, anatomist::DeleteElementCommand, anatomist::DeleteAllCommand, anatomist::CreateWindowCommand, anatomist::CreateGraphCommand, anatomist::CreateControlWindowCommand, anatomist::ControlsParamsCommand, anatomist::CloseWindowCommand, anatomist::ClosePipeCommand, anatomist::ChangePaletteCommand, anatomist::CameraCommand, anatomist::AssignReferentialCommand, anatomist::AskTexExtremaCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::AddObjectCommand, anatomist::AddNodeCommand, and anatomist::ActivateActionCommand.
|
virtual |
Execute the command - may use {\tt doit()}.
Reimplemented in anatomist::WaitCommand.
|
pure virtual |
Return the unique name of a class of commands.
Implemented in anatomist::WindowConfigCommand, anatomist::WindowBlockCommand, anatomist::TexturingParamsCommand, anatomist::SliceParamsCommand, anatomist::ShowObjectCommand, anatomist::SetObjectPaletteCommand, anatomist::SetMaterialCommand, anatomist::SetControlCommand, anatomist::SetConnThresholdCommand, anatomist::ServerCommand, anatomist::SelectByHierarchyCommand, anatomist::SelectCommand, anatomist::SaveTransformationGraphCommand, anatomist::SaveTransformationCommand, anatomist::SaveObjectCommand, anatomist::RemoveObjectCommand, anatomist::ReloadObjectCommand, anatomist::PopupPaletteCommand, anatomist::PaintParamsCommand, anatomist::OutputCommand, anatomist::ObjectInfoCommand, anatomist::NewPaletteCommand, anatomist::NewIdCommand, anatomist::LoadTransformationGraphCommand, anatomist::LoadTransformationCommand, anatomist::LoadObjectCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::LinkWindowsCommand, anatomist::LinkedCursorCommand, anatomist::GroupObjectsCommand, anatomist::GraphParamsCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::GetInfoCommand, anatomist::GetConnThresholdCommand, anatomist::GenerateTextureCommand, anatomist::FusionObjectsCommand, anatomist::FusionInfoCommand, anatomist::Fusion3DParamsCommand, anatomist::Fusion2DParamsCommand, anatomist::ExtractTextureCommand, anatomist::ExternalReferenceCommand, anatomist::ExportTextureCommand, anatomist::ExitCommand, anatomist::EventFilterCommand, anatomist::DuplicateObjectCommand, anatomist::DeleteObjectCommand, anatomist::DeleteElementCommand, anatomist::DeleteAllCommand, anatomist::CreateWindowCommand, anatomist::CreateGraphCommand, anatomist::CreateControlWindowCommand, anatomist::ControlsParamsCommand, anatomist::CloseWindowCommand, anatomist::ClosePipeCommand, anatomist::ChangePaletteCommand, anatomist::CameraCommand, anatomist::AssignReferentialCommand, anatomist::AskTexExtremaCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::AddObjectCommand, anatomist::AddNodeCommand, and anatomist::ActivateActionCommand.
|
virtual |
Redo the command - may use {\tt doit()}.
Reimplemented in anatomist::WaitCommand.
|
virtual |
Undo the command - may use {\tt undoit()}.
Reimplemented in anatomist::WaitCommand.
|
protectedvirtual |
Undo a command.
Reimplemented in anatomist::GroupObjectsCommand, anatomist::CreateWindowCommand, and anatomist::AddObjectCommand.
|
virtual |
Print the guts of a command into a Tree given as parent.
Reimplemented in anatomist::WindowConfigCommand, anatomist::WindowBlockCommand, anatomist::TexturingParamsCommand, anatomist::SliceParamsCommand, anatomist::ShowObjectCommand, anatomist::SetObjectPaletteCommand, anatomist::SetMaterialCommand, anatomist::SetControlCommand, anatomist::SetConnThresholdCommand, anatomist::ServerCommand, anatomist::SelectByHierarchyCommand, anatomist::SelectCommand, anatomist::SaveTransformationGraphCommand, anatomist::SaveTransformationCommand, anatomist::SaveObjectCommand, anatomist::RemoveObjectCommand, anatomist::ReloadObjectCommand, anatomist::PopupPaletteCommand, anatomist::PaintParamsCommand, anatomist::OutputCommand, anatomist::ObjectInfoCommand, anatomist::NewPaletteCommand, anatomist::NewIdCommand, anatomist::LoadTransformationGraphCommand, anatomist::LoadTransformationCommand, anatomist::LoadObjectCommand, anatomist::LoadGraphSubObjectsCommand, anatomist::LinkWindowsCommand, anatomist::LinkedCursorCommand, anatomist::GroupObjectsCommand, anatomist::GraphParamsCommand, anatomist::GraphDisplayPropertiesCommand, anatomist::GetInfoCommand, anatomist::GetConnThresholdCommand, anatomist::GenerateTextureCommand, anatomist::FusionObjectsCommand, anatomist::FusionInfoCommand, anatomist::Fusion3DParamsCommand, anatomist::Fusion2DParamsCommand, anatomist::ExtractTextureCommand, anatomist::ExternalReferenceCommand, anatomist::ExportTextureCommand, anatomist::ExitCommand, anatomist::EventFilterCommand, anatomist::DuplicateObjectCommand, anatomist::DeleteObjectCommand, anatomist::DeleteElementCommand, anatomist::DeleteAllCommand, anatomist::CreateWindowCommand, anatomist::CreateGraphCommand, anatomist::ControlsParamsCommand, anatomist::CloseWindowCommand, anatomist::ClosePipeCommand, anatomist::ChangePaletteCommand, anatomist::CameraCommand, anatomist::AssignReferentialCommand, anatomist::AskTexExtremaCommand, anatomist::ApplyBuiltinReferentialCommand, anatomist::AddObjectCommand, anatomist::AddNodeCommand, and anatomist::ActivateActionCommand.