![]() |
anatomist
5.1.2
3D neuroimaging data viewer
|
Option menus registration mechanism (all static). More...
#include <anatomist/object/optionMatcher.h>
Public Types | |
typedef void(* | OptionFunction) (const std::set< AObject * > &) |
Static Public Member Functions | |
static void | commonOptions (const std::set< AObject * > &, Tree &tr) |
Fills the return tree tr with the common options of the set of objects. More... | |
static void | intersect (Tree &tr, const Tree *ot) |
Makes the intersection between tr and ot, result in tr. More... | |
static void | copyTree (Tree &tout, const Tree &tin) |
Copies 'tin' into 'tout', with only syntactic attribute and "objectmenucallback" or "callback" attribute. More... | |
static QSelectMenu * | popupMenu (const std::set< AObject * > &ol, Tree &tr) |
get the QSelectMenu (Qt QMenu) for given options tree More... | |
Option menus registration mechanism (all static).
Makes the intersection of the option menu trees for a set of objects. The menu tree is the option menu for this object: a tree of strings (syntactic attribute for each node), and each leaf must have a callback function of type OptionFunction stored in the attribute "callback". Typically, each object class has a static tree, a pointer to which is returned by the optionTree() function. In special cases the tree can be instance-dependent.
Definition at line 60 of file optionMatcher.h.
typedef void(* anatomist::OptionMatcher::OptionFunction) (const std::set< AObject * > &) |
Definition at line 64 of file optionMatcher.h.
|
static |
Fills the return tree tr with the common options of the set of objects.
Copies 'tin' into 'tout', with only syntactic attribute and "objectmenucallback" or "callback" attribute.
Makes the intersection between tr and ot, result in tr.
ot may be null, if so tr is empty after intersection
|
static |
get the QSelectMenu (Qt QMenu) for given options tree