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 
9 #include "AbstractTreeDrawing.h"
10 
11 namespace bpp
12 {
22  public AbstractTreeDrawing
23 {
24 private:
27 
28 public:
31  {}
32 
33 public:
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 
42 protected:
43  virtual void drawDendrogram_(GraphicDevice& gDevice) const = 0;
44 
45 public:
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.