bpp-phyl3
3.0.0
|
Easy tune of tree drawings display. More...
#include <Bpp/Phyl/Graphics/TreeDrawingDisplayControler.h>
Public Member Functions | |
TreeDrawingDisplayControler () | |
virtual | ~TreeDrawingDisplayControler () |
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) |
Private Member Functions | |
TreeDrawingDisplayControler (const TreeDrawingDisplayControler &tddc) | |
TreeDrawingDisplayControler & | operator= (const TreeDrawingDisplayControler &tddc) |
Private Attributes | |
std::map< std::string, TreeDrawingListener * > | listeners_ |
std::vector< TreeDrawing * > | registeredTreeDrawings_ |
Easy tune of tree drawings display.
This class maintains a set of autonomous TreeDrawing listeners that are used for annotating a tree drawing.
Definition at line 27 of file TreeDrawingDisplayControler.h.
|
inline |
Definition at line 34 of file TreeDrawingDisplayControler.h.
|
inlineprivate |
Definition at line 39 of file TreeDrawingDisplayControler.h.
References listeners_.
|
virtual |
Definition at line 10 of file TreeDrawingDisplayControler.cpp.
void TreeDrawingDisplayControler::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.
Definition at line 23 of file TreeDrawingDisplayControler.cpp.
References bpp::TreeDrawingListener::isAutonomous().
Referenced by bpp::BasicTreeDrawingDisplayControler::BasicTreeDrawingDisplayControler().
|
inline |
Definition at line 75 of file TreeDrawingDisplayControler.h.
References hasListenerFor(), and listeners_.
|
inline |
Definition at line 70 of file TreeDrawingDisplayControler.h.
References listeners_.
Referenced by enableListener(), and isListenerEnabled().
|
inline |
Definition at line 82 of file TreeDrawingDisplayControler.h.
References hasListenerFor(), and listeners_.
|
inlineprivate |
Definition at line 48 of file TreeDrawingDisplayControler.h.
References listeners_, and registeredTreeDrawings_.
|
inline |
Definition at line 89 of file TreeDrawingDisplayControler.h.
References bpp::TreeDrawing::addTreeDrawingListener(), listeners_, and registeredTreeDrawings_.
|
private |
Definition at line 30 of file TreeDrawingDisplayControler.h.
Referenced by enableListener(), hasListenerFor(), isListenerEnabled(), operator=(), registerTreeDrawing(), and TreeDrawingDisplayControler().
|
private |
Definition at line 31 of file TreeDrawingDisplayControler.h.
Referenced by operator=(), and registerTreeDrawing().