bpp-phyl3  3.0.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 GraphicDevicegetGraphicDevice () const
 
virtual int getNodeId () const
 
virtual const CursorgetCursor () const
 
virtual Cursor getBranchCursor (double position) const =0
 

Private Attributes

const INodenode_
 
const TreeDrawingtd_
 
GraphicDevicegd_
 
int id_
 
Cursor cursor_
 

Detailed Description

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

Definition at line 80 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 87 of file AbstractTreeDrawing.h.

◆ DrawIBranchEvent() [2/2]

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

Definition at line 92 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::PhylogramDrawBranchEvent, and bpp::CladogramDrawBranchEvent.

◆ getCursor()

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

◆ getGraphicDevice()

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

Definition at line 156 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 155 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 96 of file AbstractTreeDrawing.h.

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

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_
private

Definition at line 84 of file AbstractTreeDrawing.h.

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

◆ td_

const TreeDrawing* bpp::DrawBranchEvent::td_
privateinherited

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