#include <genesis/tree/drawing/layout_base.hpp>
Inherited by CircularLayout, and RectangularLayout.
Definition at line 91 of file layout_base.hpp.
◆ LayoutBase() [1/4]
◆ LayoutBase() [2/4]
◆ ~LayoutBase()
◆ LayoutBase() [3/4]
◆ LayoutBase() [4/4]
◆ align_labels() [1/2]
bool align_labels |
( |
| ) |
const |
◆ align_labels() [2/2]
void align_labels |
( |
bool |
value | ) |
|
Align the taxon labels/node names/texts to each other.
If set to true
, the taxon names are aligned with each other. This is particularly interesting in phylograms, where they otherwise are placed close to their nodes. In cladograms, the tip nodes are aligned to each other anyway, so there is not much of a difference there.
In order to still be able to see which label belongs to which node, a label spacer line is drawn for each node, using LayoutNodeData::spacer_stroke. These strokes can be set with set_label_spacer_strokes().
Note also the extra_spacer() setting, which modifies how much longer the spacer line is than the exact alignment. This setting is useful to create some extra space between the tree and the aligned labels.
Definition at line 518 of file layout_base.cpp.
◆ extra_spacer() [1/2]
double extra_spacer |
( |
| ) |
const |
◆ extra_spacer() [2/2]
void extra_spacer |
( |
double |
value | ) |
|
◆ inner_node_spreading() [1/2]
◆ inner_node_spreading() [2/2]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_edge_distance_strokes() [1/2]
void set_edge_distance_strokes |
( |
std::vector< utils::SvgStroke > const & |
strokes | ) |
|
◆ set_edge_distance_strokes() [2/2]
◆ set_edge_shapes() [1/2]
◆ set_edge_shapes() [2/2]
◆ set_edge_spreading_strokes() [1/2]
void set_edge_spreading_strokes |
( |
std::vector< utils::SvgStroke > const & |
strokes | ) |
|
◆ set_edge_spreading_strokes() [2/2]
◆ set_edge_strokes() [1/2]
◆ set_edge_strokes() [2/2]
◆ set_label_spacer_strokes() [1/2]
void set_label_spacer_strokes |
( |
std::vector< utils::SvgStroke > const & |
strokes | ) |
|
◆ set_label_spacer_strokes() [2/2]
◆ set_node_shapes() [1/2]
◆ set_node_shapes() [2/2]
◆ text_template() [1/3]
◆ text_template() [2/3]
◆ text_template() [3/3]
◆ to_svg_document()
◆ to_svg_document_()
◆ tree() [1/2]
Tree const & tree |
( |
| ) |
const |
◆ tree() [2/2]
void tree |
( |
Tree const & |
orig_tree, |
|
|
bool |
ladderize = true |
|
) |
| |
◆ type() [1/2]
◆ type() [2/2]
The documentation for this class was generated from the following files: