bpp-phyl  2.2.0
bpp::DrawIBranchEvent Class Referenceabstract

Event class that uses INode object (more efficient than relying on nodes id, but less generic). More...

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

+ Inheritance diagram for bpp::DrawIBranchEvent:
+ Collaboration diagram for bpp::DrawIBranchEvent:

Public Member Functions

 DrawIBranchEvent (const TreeDrawing *source, GraphicDevice *gd, const INode *node, const Cursor &cursor)
 
 DrawIBranchEvent (const DrawIBranchEvent &dne)
 
DrawIBranchEventoperator= (const DrawIBranchEvent &dne)
 
const INodegetINode () const
 
virtual const TreeDrawinggetTreeDrawing () const
 
virtual GraphicDevice * getGraphicDevice () const
 
virtual int getNodeId () const
 
virtual const CursorgetCursor () const
 
virtual Cursor getBranchCursor (double position) const =0
 

Private Attributes

const INodenode_
 

Detailed Description

Event class that uses INode object (more efficient than relying on nodes id, but less generic).

Definition at line 118 of file AbstractTreeDrawing.h.

Constructor & Destructor Documentation

◆ DrawIBranchEvent() [1/2]

bpp::DrawIBranchEvent::DrawIBranchEvent ( const TreeDrawing source,
GraphicDevice *  gd,
const INode node,
const Cursor cursor 
)
inline

Definition at line 125 of file AbstractTreeDrawing.h.

◆ DrawIBranchEvent() [2/2]

bpp::DrawIBranchEvent::DrawIBranchEvent ( const DrawIBranchEvent dne)
inline

Definition at line 130 of file AbstractTreeDrawing.h.

Member Function Documentation

◆ getBranchCursor()

virtual Cursor bpp::DrawBranchEvent::getBranchCursor ( double  position) const
pure virtualinherited
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.

Implemented in bpp::CladogramDrawBranchEvent, and bpp::PhylogramDrawBranchEvent.

◆ 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
inline

◆ 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().

◆ operator=()

DrawIBranchEvent& bpp::DrawIBranchEvent::operator= ( const DrawIBranchEvent dne)
inline

Definition at line 134 of file AbstractTreeDrawing.h.

References node_, and bpp::DrawBranchEvent::operator=().

Member Data Documentation

◆ node_

const INode* bpp::DrawIBranchEvent::node_
private

Definition at line 122 of file AbstractTreeDrawing.h.

Referenced by getINode(), and operator=().


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