bpp-phyl  2.2.0
bpp::PhylogramDrawBranchEvent Class Reference

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

+ Inheritance diagram for bpp::PhylogramDrawBranchEvent:
+ Collaboration diagram for bpp::PhylogramDrawBranchEvent:

Public Member Functions

 PhylogramDrawBranchEvent (const TreeDrawing *source, GraphicDevice *gd, const INode *node, 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_
 

Detailed Description

Definition at line 48 of file PhylogramPlot.h.

Constructor & Destructor Documentation

◆ PhylogramDrawBranchEvent()

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

Member Function Documentation

◆ getBranchCursor()

Cursor PhylogramDrawBranchEvent::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 PhylogramPlot.cpp.

References bpp::DrawBranchEvent::getCursor(), bpp::Node::getDistanceToFather(), bpp::DrawIBranchEvent::getINode(), bpp::Cursor::getTranslation(), bpp::DrawBranchEvent::getTreeDrawing(), bpp::TreeDrawing::getXUnit(), 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 getBranchCursor().

Member Data Documentation

◆ orientation_

double bpp::PhylogramDrawBranchEvent::orientation_
private

Definition at line 52 of file PhylogramPlot.h.

Referenced by getBranchCursor(), and PhylogramDrawBranchEvent().


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