5#ifndef BPP_PHYL_GRAPHICS_PHYLOGRAMPLOT_H
6#define BPP_PHYL_GRAPHICS_PHYLOGRAMPLOT_H
49 std::string
getName()
const override {
return "Phylogram"; }
60 tree_->setVoidBranchLengths(0.);
Basic implementation of dendrogram plots.
const Tree & tree() const override
std::unique_ptr< TreeTemplate< INode > > tree_
bool hasTree() const override
Data structure describing a plotting direction.
Event class that uses INode object (more efficient than relying on nodes id, but less generic).
Cursor getBranchCursor(double position) const
PhylogramDrawBranchEvent(const TreeDrawing *source, GraphicDevice *gd, const INode *node, const Cursor &cursor, short orientation)
Phylogram representation of trees.
void setTree(const Tree &tree) override
void treeHasChanged() override
Method to implement to deal with redrawing when the underlying tree has been modified.
void recursivePlot_(GraphicDevice &gDevice, INode &node, double x, double &y, double hDirection, double vDirection, unsigned int &tipCounter) const
double getWidth() const override
std::string getName() const override
void drawDendrogram_(GraphicDevice &gDevice) const override
PhylogramPlot * clone() const override
double getHeight() const override
Basal interface for tree drawing classes.
Interface for phylogenetic tree objects.
Defines the basic types of data flow nodes.