bpp-phyl3 3.0.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 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_
 
const INode * node_
 
const TreeDrawing * td_
 
GraphicDevice * gd_
 
int id_
 
Cursor cursor_
 

Detailed Description

Definition at line 13 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 20 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 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 getBranchCursor().

Member Data Documentation

◆ cursor_

Cursor bpp::DrawBranchEvent::cursor_
privateinherited

◆ gd_

GraphicDevice* bpp::DrawBranchEvent::gd_
privateinherited

◆ id_

int bpp::DrawBranchEvent::id_
privateinherited

◆ node_

const INode* bpp::DrawIBranchEvent::node_
privateinherited

◆ orientation_

double bpp::PhylogramDrawBranchEvent::orientation_
private

Definition at line 17 of file PhylogramPlot.h.

Referenced by getBranchCursor(), and PhylogramDrawBranchEvent().

◆ td_

const TreeDrawing* bpp::DrawBranchEvent::td_
privateinherited

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