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

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 QSelectMenupopupMenu (const std::set< AObject * > &ol, Tree &tr)
 get the QSelectMenu (Qt QMenu) for given options tree More...
 

Detailed Description

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.

Member Typedef Documentation

◆ OptionFunction

typedef void(* anatomist::OptionMatcher::OptionFunction) (const std::set< AObject * > &)

Definition at line 64 of file optionMatcher.h.

Member Function Documentation

◆ commonOptions()

static void anatomist::OptionMatcher::commonOptions ( const std::set< AObject * > &  ,
Tree tr 
)
static

Fills the return tree tr with the common options of the set of objects.

◆ copyTree()

static void anatomist::OptionMatcher::copyTree ( Tree tout,
const Tree tin 
)
static

Copies 'tin' into 'tout', with only syntactic attribute and "objectmenucallback" or "callback" attribute.

◆ intersect()

static void anatomist::OptionMatcher::intersect ( Tree tr,
const Tree ot 
)
static

Makes the intersection between tr and ot, result in tr.

ot may be null, if so tr is empty after intersection

◆ popupMenu()

static QSelectMenu* anatomist::OptionMatcher::popupMenu ( const std::set< AObject * > &  ol,
Tree tr 
)
static

get the QSelectMenu (Qt QMenu) for given options tree


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