bpp-phyl  2.2.0
bpp::CladogramDrawBranchEvent Class Reference

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

+ Inheritance diagram for bpp::CladogramDrawBranchEvent:
+ Collaboration diagram for bpp::CladogramDrawBranchEvent:

Public Member Functions

 CladogramDrawBranchEvent (const TreeDrawing *source, GraphicDevice *gd, const INode *node, double length_, const Cursor &cursor, short orientation)
 
Cursor getBranchCursor (double position) const
 
const INodegetINode () const
 
virtual const TreeDrawinggetTreeDrawing () const
 
virtual GraphicDevice * getGraphicDevice () const
 
virtual int getNodeId () const
 
virtual const CursorgetCursor () const
 

Private Attributes

double orientation_
 
double length_
 

Detailed Description

Definition at line 50 of file CladogramPlot.h.

Constructor & Destructor Documentation

◆ CladogramDrawBranchEvent()

CladogramDrawBranchEvent::CladogramDrawBranchEvent ( const TreeDrawing source,
GraphicDevice *  gd,
const INode node,
double  length_,
const Cursor cursor,
short  orientation 
)

Member Function Documentation

◆ getBranchCursor()

Cursor CladogramDrawBranchEvent::getBranchCursor ( double  position) const
virtual
Returns
The coordinate of a point on the branch.
Parameters
positionThe position of the point on the branch, as a proportion of the total branch length.

Implements bpp::DrawBranchEvent.

Definition at line 55 of file CladogramPlot.cpp.

References bpp::DrawBranchEvent::getCursor(), bpp::DrawIBranchEvent::getINode(), bpp::Cursor::getTranslation(), length_, and orientation_.

◆ getCursor()

virtual const Cursor& bpp::DrawBranchEvent::getCursor ( ) const
inlinevirtualinherited

◆ getGraphicDevice()

virtual GraphicDevice* bpp::DrawBranchEvent::getGraphicDevice ( ) const
inlinevirtualinherited

Definition at line 195 of file TreeDrawing.h.

References bpp::DrawBranchEvent::gd_.

◆ getINode()

const INode* bpp::DrawIBranchEvent::getINode ( ) const
inlineinherited

◆ getNodeId()

virtual int bpp::DrawBranchEvent::getNodeId ( ) const
inlinevirtualinherited

◆ getTreeDrawing()

virtual const TreeDrawing* bpp::DrawBranchEvent::getTreeDrawing ( ) const
inlinevirtualinherited

Definition at line 194 of file TreeDrawing.h.

References bpp::DrawBranchEvent::td_.

Referenced by bpp::PhylogramDrawBranchEvent::getBranchCursor().

Member Data Documentation

◆ length_

double bpp::CladogramDrawBranchEvent::length_
private

Definition at line 55 of file CladogramPlot.h.

Referenced by getBranchCursor().

◆ orientation_

double bpp::CladogramDrawBranchEvent::orientation_
private

Definition at line 54 of file CladogramPlot.h.

Referenced by CladogramDrawBranchEvent(), and getBranchCursor().


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