bpp-phyl  2.2.0
bpp::BootstrapValuesTreeDrawingListener Class Reference

A TreeDrawingListener implementation that write the bootstrap values of inner nodes. More...

#include <Bpp/Phyl/Graphics/TreeDrawingListener.h>

+ Inheritance diagram for bpp::BootstrapValuesTreeDrawingListener:
+ Collaboration diagram for bpp::BootstrapValuesTreeDrawingListener:

Public Member Functions

 BootstrapValuesTreeDrawingListener (const TreeDrawingSettings *settings, bool autonomous=false)
 
 BootstrapValuesTreeDrawingListener (const BootstrapValuesTreeDrawingListener &lntdl)
 
BootstrapValuesTreeDrawingListeneroperator= (const BootstrapValuesTreeDrawingListener &lntdl)
 
BootstrapValuesTreeDrawingListenerclone () 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 TreeDrawingSettingssettings_
 

Detailed Description

A TreeDrawingListener implementation that write the bootstrap values 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 226 of file TreeDrawingListener.h.

Constructor & Destructor Documentation

◆ BootstrapValuesTreeDrawingListener() [1/2]

bpp::BootstrapValuesTreeDrawingListener::BootstrapValuesTreeDrawingListener ( const TreeDrawingSettings settings,
bool  autonomous = false 
)
inline

Definition at line 233 of file TreeDrawingListener.h.

Referenced by clone().

◆ BootstrapValuesTreeDrawingListener() [2/2]

bpp::BootstrapValuesTreeDrawingListener::BootstrapValuesTreeDrawingListener ( const BootstrapValuesTreeDrawingListener lntdl)
inline

Definition at line 238 of file TreeDrawingListener.h.

Member Function Documentation

◆ afterDrawBranch()

◆ afterDrawNode()

void bpp::TreeDrawingListenerAdapter::afterDrawNode ( const DrawNodeEvent event)
inlinevirtualinherited

◆ afterDrawTree()

void bpp::TreeDrawingListenerAdapter::afterDrawTree ( const DrawTreeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 99 of file TreeDrawingListener.h.

◆ beforeDrawBranch()

void bpp::TreeDrawingListenerAdapter::beforeDrawBranch ( const DrawBranchEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 102 of file TreeDrawingListener.h.

◆ beforeDrawNode()

void bpp::TreeDrawingListenerAdapter::beforeDrawNode ( const DrawNodeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 100 of file TreeDrawingListener.h.

◆ beforeDrawTree()

void bpp::TreeDrawingListenerAdapter::beforeDrawTree ( const DrawTreeEvent event)
inlinevirtualinherited

Implements bpp::TreeDrawingListener.

Definition at line 98 of file TreeDrawingListener.h.

◆ clone()

BootstrapValuesTreeDrawingListener* bpp::BootstrapValuesTreeDrawingListener::clone ( ) const
inlinevirtual

Implements bpp::TreeDrawingListener.

Definition at line 249 of file TreeDrawingListener.h.

References BootstrapValuesTreeDrawingListener().

◆ enable()

void bpp::TreeDrawingListenerAdapter::enable ( bool  tf)
inlinevirtualinherited

◆ isAutonomous()

bool bpp::TreeDrawingListenerAdapter::isAutonomous ( ) const
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_.

◆ isEnabled()

bool bpp::TreeDrawingListenerAdapter::isEnabled ( ) const
inlinevirtualinherited

◆ operator=()

BootstrapValuesTreeDrawingListener& bpp::BootstrapValuesTreeDrawingListener::operator= ( const BootstrapValuesTreeDrawingListener lntdl)
inline

Definition at line 242 of file TreeDrawingListener.h.

References settings_.

Member Data Documentation

◆ settings_

const TreeDrawingSettings* bpp::BootstrapValuesTreeDrawingListener::settings_
private

Definition at line 230 of file TreeDrawingListener.h.

Referenced by operator=().


The documentation for this class was generated from the following files: