![]() |
anatomist 6.0.4
3D neuroimaging data viewer
|
Command to load an object from a file. More...
#include <anatomist/commands/cLoadObjects.h>


Signals | |
| void | objectLoaded (anatomist::AObject *, const QString &) |
| void | loadFinished (int) |
Public Member Functions | |
| LoadObjectsCommand (const std::vector< std::string > &filename, const std::vector< int > &id=std::vector< int >(), const std::vector< std::string > &objname=std::vector< std::string >(), carto::Object options=carto::none(), CommandContext *context=&CommandContext::defaultContext(), bool threaded=true) | |
| virtual | ~LoadObjectsCommand () |
| virtual std::string | name () const |
| Return the unique name of a class of commands. | |
| virtual void | write (Tree &com, Serializer *ser) const |
| Print the guts of a command into a Tree given as parent. | |
| std::vector< AObject * > | loadedObjects () |
| carto::Mutex & | mutex () |
| bool | loading () const |
| void | wait () |
| int | id () const |
Public Member Functions inherited from anatomist::WaitCommand | |
| virtual | ~WaitCommand () |
| Destructor does nothing. | |
| virtual void | execute () |
| Execute the command - may use {\tt doit()}. | |
| virtual void | undo () |
| Undo the command - may use {\tt undoit()}. | |
| virtual void | redo () |
| Redo the command - may use {\tt doit()}. | |
Public Member Functions inherited from anatomist::Command | |
| virtual | ~Command () |
| Destructor does nothing. | |
Public Member Functions inherited from anatomist::SerializingCommand | |
| virtual | ~SerializingCommand () |
| CommandContext * | context () |
| const CommandContext * | context () const |
Protected Slots | |
| void | objectLoadedCallback (AObject *, const ObjectReader::PostRegisterList &, void *, bool) |
| void | doLoad () |
Protected Member Functions | |
| virtual void | doit () |
| Do a command. | |
| void | objectLoadDone (AObject *, const ObjectReader::PostRegisterList &, int index) |
Protected Member Functions inherited from anatomist::WaitCommand | |
| WaitCommand () | |
| The programmer cannot call the constructor of an abstract base class. | |
Protected Member Functions inherited from anatomist::Command | |
| Command () | |
| The programmer cannot call the constructor of an abstract base class. | |
| virtual void | undoit () |
| Undo a command. | |
Protected Member Functions inherited from anatomist::SerializingCommand | |
| SerializingCommand (CommandContext *) | |
Friends | |
| class | StdModule |
Additional Inherited Members | |
Public Types inherited from anatomist::Command | |
| typedef Command *(* | Reader) (const Tree &, CommandContext *) |
Protected Attributes inherited from anatomist::SerializingCommand | |
| CommandContext * | _context |
Command to load an object from a file.
Definition at line 63 of file cLoadObjects.h.
| anatomist::LoadObjectsCommand::LoadObjectsCommand | ( | const std::vector< std::string > & | filename, |
| const std::vector< int > & | id = std::vector< int >(), | ||
| const std::vector< std::string > & | objname = std::vector< std::string >(), | ||
| carto::Object | options = carto::none(), | ||
| CommandContext * | context = &CommandContext::defaultContext(), | ||
| bool | threaded = true ) |
|
virtual |
|
protectedvirtual |
Do a command.
Implements anatomist::Command.
|
protectedslot |
| int anatomist::LoadObjectsCommand::id | ( | ) | const |
| std::vector< AObject * > anatomist::LoadObjectsCommand::loadedObjects | ( | ) |
|
signal |
| bool anatomist::LoadObjectsCommand::loading | ( | ) | const |
| carto::Mutex & anatomist::LoadObjectsCommand::mutex | ( | ) |
|
inlinevirtual |
Return the unique name of a class of commands.
Implements anatomist::Command.
Definition at line 80 of file cLoadObjects.h.
|
protected |
|
signal |
|
protectedslot |
| void anatomist::LoadObjectsCommand::wait | ( | ) |
|
virtual |
Print the guts of a command into a Tree given as parent.
Reimplemented from anatomist::Command.
|
friend |
Definition at line 104 of file cLoadObjects.h.
References anatomist::SerializingCommand::context(), and StdModule.
Referenced by StdModule.