anatomist 6.0.4
3D neuroimaging data viewer
anatomist::LoadObjectsCommand Class Reference

Command to load an object from a file. More...

#include <anatomist/commands/cLoadObjects.h>

Inheritance diagram for anatomist::LoadObjectsCommand:
Collaboration diagram for anatomist::LoadObjectsCommand:

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::Mutexmutex ()
 
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 ()
 
CommandContextcontext ()
 
const CommandContextcontext () 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
 

Detailed Description

Command to load an object from a file.

Definition at line 63 of file cLoadObjects.h.

Constructor & Destructor Documentation

◆ LoadObjectsCommand()

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 )

◆ ~LoadObjectsCommand()

virtual anatomist::LoadObjectsCommand::~LoadObjectsCommand ( )
virtual

Member Function Documentation

◆ doit()

virtual void anatomist::LoadObjectsCommand::doit ( )
protectedvirtual

Do a command.

Implements anatomist::Command.

◆ doLoad

void anatomist::LoadObjectsCommand::doLoad ( )
protectedslot

◆ id()

int anatomist::LoadObjectsCommand::id ( ) const

◆ loadedObjects()

std::vector< AObject * > anatomist::LoadObjectsCommand::loadedObjects ( )

◆ loadFinished

void anatomist::LoadObjectsCommand::loadFinished ( int )
signal

◆ loading()

bool anatomist::LoadObjectsCommand::loading ( ) const

◆ mutex()

carto::Mutex & anatomist::LoadObjectsCommand::mutex ( )

◆ name()

virtual std::string anatomist::LoadObjectsCommand::name ( ) const
inlinevirtual

Return the unique name of a class of commands.

Implements anatomist::Command.

Definition at line 80 of file cLoadObjects.h.

◆ objectLoadDone()

void anatomist::LoadObjectsCommand::objectLoadDone ( AObject * ,
const ObjectReader::PostRegisterList & ,
int index )
protected

◆ objectLoaded

void anatomist::LoadObjectsCommand::objectLoaded ( anatomist::AObject * ,
const QString &  )
signal

◆ objectLoadedCallback

void anatomist::LoadObjectsCommand::objectLoadedCallback ( AObject * ,
const ObjectReader::PostRegisterList & ,
void * ,
bool  )
protectedslot

◆ wait()

void anatomist::LoadObjectsCommand::wait ( )

◆ write()

virtual void anatomist::LoadObjectsCommand::write ( Tree & com,
Serializer * ser ) const
virtual

Print the guts of a command into a Tree given as parent.

Reimplemented from anatomist::Command.

Friends And Related Symbol Documentation

◆ StdModule

friend class StdModule
friend

Definition at line 104 of file cLoadObjects.h.

References anatomist::SerializingCommand::context(), and StdModule.

Referenced by StdModule.


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