![]() |
anatomist
4.7.0
3D neuroimaging data viewer
|
Attributed object descriptor. More...
#include <anatomist/browser/attDescr.h>

Public Types | |
| typedef void(* | Helper) (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| typedef void(* | ListHelper) (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, QTreeWidgetItem *parent, const AttDescr *ad, bool regist) |
| typedef std::map< std::string, Helper > | HelperSet |
| typedef std::map< std::string, ListHelper > | ListHelperSet |
Public Member Functions | |
| AttDescr () | |
| virtual | ~AttDescr () |
| void | describeAttributes (QObjectBrowserWidget *br, QTreeWidgetItem *parent, const carto::GenericObject *ao, bool regist=true, bool checkexisting=true) const |
| std::string | printAttribute (QObjectBrowserWidget *br, const carto::GenericObject *ao, const std::string &semantic, const std::string &type) const |
| void | printAttribute (QObjectBrowserWidget *br, const carto::GenericObject *ao, const std::string &semantic, const std::string &type, QTreeWidgetItem *parent, bool regist=true, bool checkexisting=true) const |
| std::string | objectName (const carto::GenericObject *ao) const |
| void | setSyntax (const carto::SyntaxSet &s) |
| void | addSyntax (const carto::SyntaxSet &s) |
| void | setHelpers (const HelperSet &help) |
| void | addHelpers (const HelperSet &help) |
| void | setListHelpers (const ListHelperSet &help) |
| void | addListHelpers (const ListHelperSet &help) |
| const carto::SyntaxSet & | syntaxSet () const |
| const HelperSet & | helperSet () const |
| const ListHelperSet & | listHelperSet () const |
| void | describeTree (QObjectBrowserWidget *br, const Tree *tr, QTreeWidgetItem *parent, bool regist=true) const |
| void | describeTreeInside (QObjectBrowserWidget *br, const Tree *tr, QTreeWidgetItem *parent, bool regist) const |
| does not recreate the base tree More... | |
| void | describeUnregisteredTreeInside (QObjectBrowserWidget *br, const Tree *tr, QTreeWidgetItem *parent) const |
| does not recreate the base tree More... | |
| virtual void | initHelpers () |
Static Public Member Functions | |
| static void | printError (QTreeWidgetItem *parent, const std::string &semantic) |
| static void | treeListHelper (QObjectBrowserWidget *br, const carto::GenericObject &, const std::string &, QTreeWidgetItem *parent, const AttDescr *gvw, bool regist=true) |
| static AttDescr * | descr () |
| static QPixmap | rgbPixmap (const QColor &col) |
Static Protected Member Functions | |
| static void | printInt (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| Helpers. More... | |
| static void | printFloat (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printDouble (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printString (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printFloatVector (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printDoubleVector (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printIntVector (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printStringVector (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
| static void | printStringVectorPtr (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
Protected Attributes | |
| carto::SyntaxSet | syntax |
| HelperSet | helpers |
| ListHelperSet | listHelpers |
Static Protected Attributes | |
| static AttDescr * | _theAttDescr |
| typedef void(* anatomist::AttDescr::Helper) (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, std::string &output) |
Definition at line 56 of file attDescr.h.
| typedef std::map<std::string, Helper> anatomist::AttDescr::HelperSet |
Definition at line 63 of file attDescr.h.
| typedef void(* anatomist::AttDescr::ListHelper) (QObjectBrowserWidget *, const carto::GenericObject &, const std::string &, QTreeWidgetItem *parent, const AttDescr *ad, bool regist) |
Definition at line 59 of file attDescr.h.
| typedef std::map<std::string, ListHelper> anatomist::AttDescr::ListHelperSet |
Definition at line 64 of file attDescr.h.
| anatomist::AttDescr::AttDescr | ( | ) |
|
virtual |
| void anatomist::AttDescr::addHelpers | ( | const HelperSet & | help | ) |
| void anatomist::AttDescr::addListHelpers | ( | const ListHelperSet & | help | ) |
| void anatomist::AttDescr::addSyntax | ( | const carto::SyntaxSet & | s | ) |
|
inlinestatic |
Definition at line 114 of file attDescr.h.
References _theAttDescr, printDouble(), printDoubleVector(), printFloat(), printFloatVector(), printInt(), printIntVector(), printString(), printStringVector(), printStringVectorPtr(), and rgbPixmap().
| void anatomist::AttDescr::describeAttributes | ( | QObjectBrowserWidget * | br, |
| QTreeWidgetItem * | parent, | ||
| const carto::GenericObject * | ao, | ||
| bool | regist = true, |
||
| bool | checkexisting = true |
||
| ) | const |
| void anatomist::AttDescr::describeTree | ( | QObjectBrowserWidget * | br, |
| const Tree * | tr, | ||
| QTreeWidgetItem * | parent, | ||
| bool | regist = true |
||
| ) | const |
Referenced by listHelperSet().
| void anatomist::AttDescr::describeTreeInside | ( | QObjectBrowserWidget * | br, |
| const Tree * | tr, | ||
| QTreeWidgetItem * | parent, | ||
| bool | regist | ||
| ) | const |
does not recreate the base tree
Referenced by listHelperSet().
| void anatomist::AttDescr::describeUnregisteredTreeInside | ( | QObjectBrowserWidget * | br, |
| const Tree * | tr, | ||
| QTreeWidgetItem * | parent | ||
| ) | const |
does not recreate the base tree
Referenced by listHelperSet().
|
inline |
Definition at line 92 of file attDescr.h.
References helpers.
|
virtual |
Referenced by listHelperSet().
|
inline |
Definition at line 93 of file attDescr.h.
References describeTree(), describeTreeInside(), describeUnregisteredTreeInside(), initHelpers(), listHelpers, printError(), and treeListHelper().
| std::string anatomist::AttDescr::objectName | ( | const carto::GenericObject * | ao | ) | const |
| std::string anatomist::AttDescr::printAttribute | ( | QObjectBrowserWidget * | br, |
| const carto::GenericObject * | ao, | ||
| const std::string & | semantic, | ||
| const std::string & | type | ||
| ) | const |
| void anatomist::AttDescr::printAttribute | ( | QObjectBrowserWidget * | br, |
| const carto::GenericObject * | ao, | ||
| const std::string & | semantic, | ||
| const std::string & | type, | ||
| QTreeWidgetItem * | parent, | ||
| bool | regist = true, |
||
| bool | checkexisting = true |
||
| ) | const |
|
staticprotected |
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
static |
Referenced by listHelperSet().
|
staticprotected |
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
staticprotected |
Helpers.
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
staticprotected |
Referenced by descr().
|
static |
Referenced by descr().
| void anatomist::AttDescr::setHelpers | ( | const HelperSet & | help | ) |
| void anatomist::AttDescr::setListHelpers | ( | const ListHelperSet & | help | ) |
| void anatomist::AttDescr::setSyntax | ( | const carto::SyntaxSet & | s | ) |
|
inline |
Definition at line 91 of file attDescr.h.
References syntax.
|
static |
Referenced by listHelperSet().
|
staticprotected |
Definition at line 148 of file attDescr.h.
Referenced by descr().
|
protected |
Definition at line 151 of file attDescr.h.
Referenced by helperSet().
|
protected |
Definition at line 152 of file attDescr.h.
Referenced by listHelperSet().
|
protected |
Definition at line 150 of file attDescr.h.
Referenced by syntaxSet().