bpp-phyl3
3.0.0
|
Easy tune of tree drawings display, a basic implementation: More...
#include <Bpp/Phyl/Graphics/TreeDrawingDisplayControler.h>
Public Member Functions | |
BasicTreeDrawingDisplayControler (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 (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 | |
const TreeDrawingSettings * | settings_ |
std::map< std::string, TreeDrawingListener * > | listeners_ |
std::vector< 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().
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::TreeDrawing::addTreeDrawingListener(), bpp::TreeDrawingDisplayControler::listeners_, and bpp::TreeDrawingDisplayControler::registeredTreeDrawings_.
|
privateinherited |
Definition at line 30 of file TreeDrawingDisplayControler.h.
Referenced by bpp::TreeDrawingDisplayControler::enableListener(), bpp::TreeDrawingDisplayControler::hasListenerFor(), bpp::TreeDrawingDisplayControler::isListenerEnabled(), bpp::TreeDrawingDisplayControler::operator=(), bpp::TreeDrawingDisplayControler::registerTreeDrawing(), 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 |
Definition at line 31 of file TreeDrawingDisplayControler.h.
Referenced by bpp::TreeDrawingDisplayControler::operator=(), and bpp::TreeDrawingDisplayControler::registerTreeDrawing().
|
private |
Definition at line 125 of file TreeDrawingDisplayControler.h.
Referenced by BasicTreeDrawingDisplayControler().