anatomist  5.1.2
3D neuroimaging data viewer
anatomist::Command Class Referenceabstract

The abstract base class for commands. More...

#include <anatomist/processor/Command.h>

Inheritance diagram for anatomist::Command:

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...
 

Detailed Description

The abstract base class for commands.

Definition at line 59 of file Command.h.

Member Typedef Documentation

◆ Reader

typedef Command*(* anatomist::Command::Reader) (const Tree &, CommandContext *)

Definition at line 72 of file Command.h.

Constructor & Destructor Documentation

◆ ~Command()

virtual anatomist::Command::~Command ( )
virtual

Destructor does nothing.

◆ Command()

anatomist::Command::Command ( )
protected

The programmer cannot call the constructor of an abstract base class.

Member Function Documentation

◆ doit()

virtual void anatomist::Command::doit ( )
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.

◆ execute()

virtual void anatomist::Command::execute ( )
virtual

Execute the command - may use {\tt doit()}.

Reimplemented in anatomist::WaitCommand.

◆ name()

virtual std::string anatomist::Command::name ( ) const
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.

◆ redo()

virtual void anatomist::Command::redo ( )
virtual

Redo the command - may use {\tt doit()}.

Reimplemented in anatomist::WaitCommand.

◆ undo()

virtual void anatomist::Command::undo ( )
virtual

Undo the command - may use {\tt undoit()}.

Reimplemented in anatomist::WaitCommand.

◆ undoit()

virtual void anatomist::Command::undoit ( )
protectedvirtual

◆ write()

virtual void anatomist::Command::write ( Tree com,
Serializer ser 
) const
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.


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