35#ifndef ANA_COMMANDS_CLOADOBJECTS_H
36#define ANA_COMMANDS_CLOADOBJECTS_H
71 const std::vector<int> &
id = std::vector<int>(),
72 const std::vector<std::string> & objname
73 = std::vector<std::string>(),
77 bool threaded =
true );
80 virtual std::string
name()
const {
return(
"LoadObjects" ); }
105 class LoadObjectsCommandThread;
106 class ThreadLoadContext;
110 static bool initSyntax();
Base Anatomist object (abstract)
The abstract base class for commands.
void objectLoadDone(AObject *, const ObjectReader::PostRegisterList &, int index)
void objectLoadedCallback(AObject *, const ObjectReader::PostRegisterList &, void *, bool)
virtual std::string name() const
Return the unique name of a class of commands.
virtual void doit()
Do a command.
virtual void write(Tree &com, Serializer *ser) const
Print the guts of a command into a Tree given as parent.
void objectLoaded(anatomist::AObject *, const QString &)
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()
std::vector< AObject * > loadedObjects()
std::vector< std::pair< AObject *, bool > > PostRegisterList
Serializer is a helper class for pointer serialization.
SerializingCommand(CommandContext *)
CommandContext * context()
WaitCommand()
The programmer cannot call the constructor of an abstract base class.
Context for commands processor readers (APipeReader etc)
static CommandContext & defaultContext()