bpp-phyl3
3.0.0
|
A TreeDrawingListener implementation that label the collapsed nodes. More...
#include <Bpp/Phyl/Graphics/TreeDrawingListener.h>
Public Member Functions | |
LabelCollapsedNodesTreeDrawingListener (bool autonomous=false) | |
LabelCollapsedNodesTreeDrawingListener * | clone () const |
void | afterDrawNode (const DrawNodeEvent &event) |
void | beforeDrawTree (const DrawTreeEvent &event) |
void | afterDrawTree (const DrawTreeEvent &event) |
void | beforeDrawNode (const DrawNodeEvent &event) |
void | beforeDrawBranch (const DrawBranchEvent &event) |
void | afterDrawBranch (const DrawBranchEvent &event) |
bool | isAutonomous () const |
Tells if the listener is autonomous. If so, it will never be hard-copied or deleted. More... | |
bool | isEnabled () const |
void | enable (bool tf) |
Private Attributes | |
bool | autonomous_ |
bool | enabled_ |
A TreeDrawingListener implementation that label the collapsed nodes.
This listener works with TreeDrawing classes, but is more efficient when used with a class that fires DrawINodeEvent events.
Definition at line 238 of file TreeDrawingListener.h.
|
inline |
Definition at line 242 of file TreeDrawingListener.h.
Referenced by clone().
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Reimplemented in bpp::BootstrapValuesTreeDrawingListener, and bpp::BranchLengthsTreeDrawingListener.
Definition at line 63 of file TreeDrawingListener.h.
|
virtual |
Reimplemented from bpp::TreeDrawingListenerAdapter.
Definition at line 177 of file TreeDrawingListener.cpp.
References bpp::GraphicDevice::drawText(), bpp::Cursor::getAngle(), bpp::Cursor::getHPos(), bpp::NodeTemplate< NodeInfos >::getInfos(), bpp::DrawINodeEvent::getINode(), bpp::Node::getName(), bpp::DrawNodeEvent::getNodeId(), bpp::Tree::getNodeName(), bpp::TreeDrawing::getTree(), bpp::Cursor::getVPos(), bpp::Cursor::getX(), bpp::Cursor::getY(), bpp::Node::hasName(), bpp::Tree::hasNodeName(), and bpp::TreeDrawing::isNodeCollapsed().
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 59 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 62 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 60 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 58 of file TreeDrawingListener.h.
|
inlinevirtual |
Implements bpp::TreeDrawingListener.
Definition at line 245 of file TreeDrawingListener.h.
References LabelCollapsedNodesTreeDrawingListener().
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 66 of file TreeDrawingListener.h.
References bpp::TreeDrawingListenerAdapter::enabled_.
|
inlinevirtualinherited |
Tells if the listener is autonomous. If so, it will never be hard-copied or deleted.
Implements bpp::TreeDrawingListener.
Definition at line 64 of file TreeDrawingListener.h.
References bpp::TreeDrawingListenerAdapter::autonomous_.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 65 of file TreeDrawingListener.h.
References bpp::TreeDrawingListenerAdapter::enabled_.
|
privateinherited |
Definition at line 51 of file TreeDrawingListener.h.
Referenced by bpp::TreeDrawingListenerAdapter::isAutonomous().
|
privateinherited |
Definition at line 52 of file TreeDrawingListener.h.
Referenced by bpp::TreeDrawingListenerAdapter::enable(), and bpp::TreeDrawingListenerAdapter::isEnabled().