bpp-phyl3 3.0.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 INode * getINode () const
 
virtual const TreeDrawing * getTreeDrawing () const
 
virtual GraphicDevice * getGraphicDevice () const
 
virtual int getNodeId () const
 
virtual const Cursor & getCursor () const
 

Private Attributes

double orientation_
 
double length_
 
const INode * node_
 
const TreeDrawing * td_
 
GraphicDevice * gd_
 
int id_
 
Cursor cursor_
 

Detailed Description

Definition at line 14 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 20 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 157 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 156 of file TreeDrawing.h.

References bpp::DrawBranchEvent::td_.

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

Member Data Documentation

◆ cursor_

Cursor bpp::DrawBranchEvent::cursor_
privateinherited

◆ gd_

GraphicDevice* bpp::DrawBranchEvent::gd_
privateinherited

◆ id_

int bpp::DrawBranchEvent::id_
privateinherited

◆ length_

double bpp::CladogramDrawBranchEvent::length_
private

Definition at line 19 of file CladogramPlot.h.

Referenced by getBranchCursor().

◆ node_

const INode* bpp::DrawIBranchEvent::node_
privateinherited

◆ orientation_

double bpp::CladogramDrawBranchEvent::orientation_
private

Definition at line 18 of file CladogramPlot.h.

Referenced by CladogramDrawBranchEvent(), and getBranchCursor().

◆ td_

const TreeDrawing* bpp::DrawBranchEvent::td_
privateinherited

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