bpp-phyl3 3.0.0
AbstractDendrogramPlot.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: The Bio++ Development Group
2//
3// SPDX-License-Identifier: CECILL-2.1
4
5#ifndef BPP_PHYL_GRAPHICS_ABSTRACTDENDROGRAMPLOT_H
6#define BPP_PHYL_GRAPHICS_ABSTRACTDENDROGRAMPLOT_H
7
8
10
11namespace bpp
12{
23{
24private:
27
28public:
31 {}
32
33public:
34 void setHorizontalOrientation(short orientation) { horOrientation_ = orientation; }
35 void setVerticalOrientation(short orientation) { verOrientation_ = orientation; }
36
37 short getHorizontalOrientation() const { return horOrientation_; }
38 short getVerticalOrientation() const { return verOrientation_; }
39
40 void plot(GraphicDevice& gDevice) const;
41
42protected:
43 virtual void drawDendrogram_(GraphicDevice& gDevice) const = 0;
44
45public:
50};
51} // end of namespace bpp;
52#endif // BPP_PHYL_GRAPHICS_ABSTRACTDENDROGRAMPLOT_H
Basic implementation of dendrogram plots.
virtual void drawDendrogram_(GraphicDevice &gDevice) const =0
void plot(GraphicDevice &gDevice) const
Plot the tree onto the specified device.
void setVerticalOrientation(short orientation)
void setHorizontalOrientation(short orientation)
Partial implementation of the TreeDrawing interface.
Defines the basic types of data flow nodes.