|
bpp-phyl3 3.0.0
|
Easy tune of tree drawings display, a basic implementation: More...
#include <Bpp/Phyl/Graphics/TreeDrawingDisplayControler.h>
Inheritance diagram for bpp::BasicTreeDrawingDisplayControler:
Collaboration diagram for bpp::BasicTreeDrawingDisplayControler:Public Member Functions | |
| BasicTreeDrawingDisplayControler (std::shared_ptr< const TreeDrawingSettings > settings) | |
| void | addListener (const std::string &propertyName, TreeDrawingListener *listener) |
| Add a listener to the controller. The controller then owns the object, and will copy or delete it when needed. More... | |
| bool | hasListenerFor (const std::string &propertyName) const |
| void | enableListener (const std::string &propertyName, bool tf) |
| bool | isListenerEnabled (const std::string &propertyName) const |
| void | registerTreeDrawing (std::shared_ptr< TreeDrawing > td) |
Static Public Attributes | |
| static const std::string | PROPERTY_NODE_IDS = "Node ids" |
| static const std::string | PROPERTY_LEAF_NAMES = "Leaf names" |
| static const std::string | PROPERTY_BRANCH_LENGTHS = "Branch lengths" |
| static const std::string | PROPERTY_BOOTSTRAP_VALUES = "Bootstrap values" |
Private Member Functions | |
| BasicTreeDrawingDisplayControler (const BasicTreeDrawingDisplayControler &) | |
| BasicTreeDrawingDisplayControler & | operator= (const BasicTreeDrawingDisplayControler &) |
Private Attributes | |
| std::shared_ptr< const TreeDrawingSettings > | settings_ |
| std::map< std::string, TreeDrawingListener * > | listeners_ |
| std::vector< std::shared_ptr< TreeDrawing > > | registeredTreeDrawings_ |
Easy tune of tree drawings display, a basic implementation:
This class maintains several "standard" drawing listener for:
This controller takes as an argument a TreeDrawingSettings object that is used by all listeners that require one.
Definition at line 115 of file TreeDrawingDisplayControler.h.
|
inline |
Definition at line 128 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawingDisplayControler::addListener(), PROPERTY_BOOTSTRAP_VALUES, PROPERTY_BRANCH_LENGTHS, PROPERTY_LEAF_NAMES, PROPERTY_NODE_IDS, and settings_.
|
inlineprivate |
Definition at line 140 of file TreeDrawingDisplayControler.h.
|
inherited |
Add a listener to the controller. The controller then owns the object, and will copy or delete it when needed.
Definition at line 23 of file TreeDrawingDisplayControler.cpp.
References bpp::TreeDrawingListener::isAutonomous(), bpp::TreeDrawingDisplayControler::listeners_, and bpp::TreeDrawingDisplayControler::registeredTreeDrawings_.
Referenced by BasicTreeDrawingDisplayControler().
|
inlineinherited |
Definition at line 75 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawingDisplayControler::hasListenerFor(), and bpp::TreeDrawingDisplayControler::listeners_.
|
inlineinherited |
Definition at line 70 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawingDisplayControler::listeners_.
Referenced by bpp::TreeDrawingDisplayControler::enableListener(), and bpp::TreeDrawingDisplayControler::isListenerEnabled().
|
inlineinherited |
Definition at line 82 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawingDisplayControler::hasListenerFor(), and bpp::TreeDrawingDisplayControler::listeners_.
|
inlineprivate |
Definition at line 141 of file TreeDrawingDisplayControler.h.
|
inlineinherited |
Definition at line 89 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawingDisplayControler::listeners_, and bpp::TreeDrawingDisplayControler::registeredTreeDrawings_.
|
privateinherited |
Definition at line 30 of file TreeDrawingDisplayControler.h.
Referenced by bpp::TreeDrawingDisplayControler::addListener(), bpp::TreeDrawingDisplayControler::enableListener(), bpp::TreeDrawingDisplayControler::hasListenerFor(), bpp::TreeDrawingDisplayControler::isListenerEnabled(), bpp::TreeDrawingDisplayControler::operator=(), bpp::TreeDrawingDisplayControler::registerTreeDrawing(), bpp::TreeDrawingDisplayControler::TreeDrawingDisplayControler(), and bpp::TreeDrawingDisplayControler::~TreeDrawingDisplayControler().
|
static |
Definition at line 122 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().
|
static |
Definition at line 121 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().
|
static |
Definition at line 120 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().
|
static |
Definition at line 119 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().
|
privateinherited |
|
private |
Definition at line 125 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().