anatomist  5.1.2
3D neuroimaging data viewer
anatomist::ControlDictionary Class Reference

#include <anatomist/controler/controldictionary.h>

Classes

class  ControlCreatorBase
 almost private utility class, used mainly for python bindings More...
 
class  ControlCreatorFunc
 almost private utility class, used mainly for python bindings More...
 

Public Types

typedef ControlPtr(* ControlCreator) ()
 

Public Member Functions

 ControlDictionary ()
 
 ~ControlDictionary ()
 
ControlPtr getControlInstance (const std::string &name)
 
int controlPriority (const std::string &name) const
 
void addControl (const std::string &name, ControlCreator creator, int priority, bool allowreplace=false)
 
void addControl (const std::string &name, ControlCreatorBase *creator, int priority, bool allowreplace=false)
 
bool removeControl (const std::string &)
 
int testPriorityUnicity (int priority)
 

Static Public Member Functions

static ControlDictionaryinstance ()
 

Detailed Description

Definition at line 47 of file controldictionary.h.

Member Typedef Documentation

◆ ControlCreator

typedef ControlPtr(* anatomist::ControlDictionary::ControlCreator) ()

Definition at line 50 of file controldictionary.h.

Constructor & Destructor Documentation

◆ ControlDictionary()

anatomist::ControlDictionary::ControlDictionary ( )

◆ ~ControlDictionary()

anatomist::ControlDictionary::~ControlDictionary ( )

Member Function Documentation

◆ addControl() [1/2]

void anatomist::ControlDictionary::addControl ( const std::string &  name,
ControlCreator  creator,
int  priority,
bool  allowreplace = false 
)

◆ addControl() [2/2]

void anatomist::ControlDictionary::addControl ( const std::string &  name,
ControlCreatorBase creator,
int  priority,
bool  allowreplace = false 
)

◆ controlPriority()

int anatomist::ControlDictionary::controlPriority ( const std::string &  name) const

◆ getControlInstance()

ControlPtr anatomist::ControlDictionary::getControlInstance ( const std::string &  name)

◆ instance()

static ControlDictionary* anatomist::ControlDictionary::instance ( )
static

◆ removeControl()

bool anatomist::ControlDictionary::removeControl ( const std::string &  )

◆ testPriorityUnicity()

int anatomist::ControlDictionary::testPriorityUnicity ( int  priority)

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