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

#include <anatomist/object/objectmenu.h>

Inheritance diagram for anatomist::ObjectMenu:
Collaboration diagram for anatomist::ObjectMenu:

Public Member Functions

 ObjectMenu ()
 
 ObjectMenu (const ObjectMenu &)
 
 ObjectMenu (Tree &t)
 
 ~ObjectMenu ()
 
ObjectMenuoperator= (const ObjectMenu &)
 
void insertItem (const std::vector< std::string > &inside, const std::string &text)
 inserts a sub-menu
 
void insertItem (const std::vector< std::string > &inside, const std::string &text, ObjectMenuCallback *cbk)
 inserts a terminal menu (with callback).
 
void insertItem (const std::vector< std::string > &inside, const std::string &text, ObjectMenuCallbackFunc::CallbackFunc cbk)
 inserts a terminal menu (with callback as a function)
 
void removeItem (const std::vector< std::string > &inside, const std::string &text)
 
Treeitem (const std::vector< std::string > &pos, bool createSubtrees=true)
 
Treetree ()
 
const Treetree () const
 
TreereleaseTree ()
 returns the internal tree and release ownership on it
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 

Additional Inherited Members

- Public Types inherited from carto::RCObject
typedef int RefCounterType
 

Detailed Description

Definition at line 81 of file objectmenu.h.

Constructor & Destructor Documentation

◆ ObjectMenu() [1/3]

anatomist::ObjectMenu::ObjectMenu ( )

Referenced by ObjectMenu(), and operator=().

◆ ObjectMenu() [2/3]

anatomist::ObjectMenu::ObjectMenu ( const ObjectMenu & )

References ObjectMenu().

◆ ObjectMenu() [3/3]

anatomist::ObjectMenu::ObjectMenu ( Tree & t)

◆ ~ObjectMenu()

anatomist::ObjectMenu::~ObjectMenu ( )

Member Function Documentation

◆ insertItem() [1/3]

void anatomist::ObjectMenu::insertItem ( const std::vector< std::string > & inside,
const std::string & text )

inserts a sub-menu

◆ insertItem() [2/3]

void anatomist::ObjectMenu::insertItem ( const std::vector< std::string > & inside,
const std::string & text,
ObjectMenuCallback * cbk )

inserts a terminal menu (with callback).

The ObjectMenu takes ownership of the callback, even if it fails to insert it in the menu tree.

◆ insertItem() [3/3]

void anatomist::ObjectMenu::insertItem ( const std::vector< std::string > & inside,
const std::string & text,
ObjectMenuCallbackFunc::CallbackFunc cbk )

inserts a terminal menu (with callback as a function)

◆ item()

Tree * anatomist::ObjectMenu::item ( const std::vector< std::string > & pos,
bool createSubtrees = true )

◆ operator=()

ObjectMenu & anatomist::ObjectMenu::operator= ( const ObjectMenu & )

References ObjectMenu().

◆ releaseTree()

Tree * anatomist::ObjectMenu::releaseTree ( )

returns the internal tree and release ownership on it

◆ removeItem()

void anatomist::ObjectMenu::removeItem ( const std::vector< std::string > & inside,
const std::string & text )

◆ tree() [1/2]

Tree * anatomist::ObjectMenu::tree ( )

◆ tree() [2/2]

const Tree * anatomist::ObjectMenu::tree ( ) const

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