A library for working with phylogenetic and population genetic data.
v0.32.0
RectangularLayout Class Reference

#include <genesis/tree/drawing/rectangular_layout.hpp>

Inherits LayoutBase.

Detailed Description

Definition at line 47 of file rectangular_layout.hpp.

Public Member Functions

 RectangularLayout ()=default
 
 RectangularLayout (RectangularLayout &&)=default
 
 RectangularLayout (RectangularLayout const &)=default
 
 RectangularLayout (Tree const &orig_tree, LayoutType const drawing_type=LayoutType::kCladogram, bool ladderize=true)
 
virtual ~RectangularLayout () override=default
 
double height () const
 
RectangularLayoutheight (double const value)
 
RectangularLayoutoperator= (RectangularLayout &&)=default
 
RectangularLayoutoperator= (RectangularLayout const &)=default
 
double width () const
 
RectangularLayoutwidth (double const value)
 
- Public Member Functions inherited from LayoutBase
 LayoutBase ()=default
 
 LayoutBase (LayoutBase &&)=default
 
 LayoutBase (LayoutBase const &)=default
 
 LayoutBase (Tree const &orig_tree, LayoutType const drawing_type=LayoutType::kCladogram, bool ladderize=true)
 
virtual ~LayoutBase ()=default
 
bool align_labels () const
 
void align_labels (bool value)
 Align the taxon labels/node names/texts to each other. More...
 
double extra_spacer () const
 
void extra_spacer (double value)
 Set some extra space betwen the tree nodes and their labels when align_labels() is set to true. More...
 
LayoutSpreading inner_node_spreading () const
 
void inner_node_spreading (LayoutSpreading value)
 
LayoutBaseoperator= (LayoutBase &&)=default
 
LayoutBaseoperator= (LayoutBase const &)=default
 
void set_edge_distance_strokes (std::vector< utils::SvgStroke > const &strokes)
 
void set_edge_distance_strokes (utils::SvgStroke const &stroke)
 
void set_edge_shapes (std::vector< utils::SvgGroup > const &shapes)
 
void set_edge_shapes (utils::SvgGroup const &shape)
 
void set_edge_spreading_strokes (std::vector< utils::SvgStroke > const &strokes)
 
void set_edge_spreading_strokes (utils::SvgStroke const &stroke)
 
void set_edge_strokes (std::vector< utils::SvgStroke > const &strokes)
 
void set_edge_strokes (utils::SvgStroke const &stroke)
 
void set_label_spacer_strokes (std::vector< utils::SvgStroke > const &strokes)
 
void set_label_spacer_strokes (utils::SvgStroke const &stroke, LayoutSpreading spreading=LayoutSpreading::kLeafNodesOnly)
 
void set_node_shapes (std::vector< utils::SvgGroup > const &shapes)
 
void set_node_shapes (utils::SvgGroup const &shape)
 
utils::SvgTexttext_template ()
 
utils::SvgText const & text_template () const
 
void text_template (utils::SvgText const &tt)
 
utils::SvgDocument to_svg_document () const
 
Tree const & tree () const
 
void tree (Tree const &orig_tree, bool ladderize=true)
 
LayoutType type () const
 
void type (LayoutType const drawing_type)
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ RectangularLayout() [1/4]

RectangularLayout ( )
default

◆ RectangularLayout() [2/4]

RectangularLayout ( Tree const &  orig_tree,
LayoutType const  drawing_type = LayoutType::kCladogram,
bool  ladderize = true 
)
inline

Definition at line 56 of file rectangular_layout.hpp.

◆ ~RectangularLayout()

virtual ~RectangularLayout ( )
overridevirtualdefault

◆ RectangularLayout() [3/4]

RectangularLayout ( RectangularLayout const &  )
default

◆ RectangularLayout() [4/4]

Member Function Documentation

◆ height() [1/2]

double height ( ) const

Definition at line 64 of file rectangular_layout.cpp.

◆ height() [2/2]

RectangularLayout & height ( double const  value)

Definition at line 58 of file rectangular_layout.cpp.

◆ operator=() [1/2]

RectangularLayout& operator= ( RectangularLayout &&  )
default

◆ operator=() [2/2]

RectangularLayout& operator= ( RectangularLayout const &  )
default

◆ width() [1/2]

double width ( ) const

Definition at line 53 of file rectangular_layout.cpp.

◆ width() [2/2]

RectangularLayout & width ( double const  value)

Definition at line 47 of file rectangular_layout.cpp.


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