bpp-phyl
2.2.0
|
A TreeDrawingListener implementation that write the branch lengths of inner nodes. More...
#include <Bpp/Phyl/Graphics/TreeDrawingListener.h>
Public Member Functions | |
BranchLengthsTreeDrawingListener (const TreeDrawingSettings *settings, bool autonomous=false) | |
BranchLengthsTreeDrawingListener (const BranchLengthsTreeDrawingListener &lntdl) | |
BranchLengthsTreeDrawingListener & | operator= (const BranchLengthsTreeDrawingListener &lntdl) |
BranchLengthsTreeDrawingListener * | clone () const |
void | afterDrawBranch (const DrawBranchEvent &event) |
void | beforeDrawTree (const DrawTreeEvent &event) |
void | afterDrawTree (const DrawTreeEvent &event) |
void | beforeDrawNode (const DrawNodeEvent &event) |
void | afterDrawNode (const DrawNodeEvent &event) |
void | beforeDrawBranch (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 | |
const TreeDrawingSettings * | settings_ |
A TreeDrawingListener implementation that write the branch lengths of inner nodes.
Collapsed nodes are not labelled.
This listener works with TreeDrawing classes, but is more efficient when used with a class that fires DrawINodeEvent events.
Definition at line 187 of file TreeDrawingListener.h.
|
inline |
Definition at line 194 of file TreeDrawingListener.h.
Referenced by clone().
|
inline |
Definition at line 199 of file TreeDrawingListener.h.
|
virtual |
Reimplemented from bpp::TreeDrawingListenerAdapter.
Definition at line 100 of file TreeDrawingListener.cpp.
References bpp::Cursor::getAngle(), bpp::Tree::getDistanceToFather(), bpp::Node::getDistanceToFather(), bpp::DrawNodeEvent::getGraphicDevice(), bpp::DrawINodeEvent::getINode(), bpp::DrawBranchEvent::getNodeId(), bpp::TreeDrawing::getTree(), bpp::Cursor::getX(), bpp::Cursor::getY(), bpp::Tree::hasDistanceToFather(), and bpp::Node::hasDistanceToFather().
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Reimplemented in bpp::LabelCollapsedNodesTreeDrawingListener, bpp::LabelInnerNodesTreeDrawingListener, bpp::LeafNamesTreeDrawingListener, and bpp::NodesIdTreeDrawingListener.
Definition at line 101 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 99 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 102 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 100 of file TreeDrawingListener.h.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 98 of file TreeDrawingListener.h.
|
inlinevirtual |
Implements bpp::TreeDrawingListener.
Definition at line 211 of file TreeDrawingListener.h.
References BranchLengthsTreeDrawingListener().
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 106 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 104 of file TreeDrawingListener.h.
References bpp::TreeDrawingListenerAdapter::autonomous_.
|
inlinevirtualinherited |
Implements bpp::TreeDrawingListener.
Definition at line 105 of file TreeDrawingListener.h.
References bpp::TreeDrawingListenerAdapter::enabled_.
|
inline |
Definition at line 204 of file TreeDrawingListener.h.
References settings_.
|
private |
Definition at line 191 of file TreeDrawingListener.h.
Referenced by operator=().