A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LayoutBase Class Referenceabstract

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

Inherited by CircularLayout, and RectangularLayout.

Detailed Description

Definition at line 47 of file layout_base.hpp.

Public Member Functions

 LayoutBase ()=default
 
 LayoutBase (Type const drawing_type)
 
 LayoutBase (LayoutBase const &)=default
 
 LayoutBase (LayoutBase &&)=default
 
virtual ~LayoutBase ()=default
 
LayoutBaseoperator= (LayoutBase const &)=default
 
LayoutBaseoperator= (LayoutBase &&)=default
 
void set_edge_strokes (std::vector< utils::SvgStroke > const &strokes)
 
void set_node_shapes (std::vector< utils::SvgGroup > const &shapes)
 
void text_template (utils::SvgText const &tt)
 
utils::SvgTexttext_template ()
 
utils::SvgText const & text_template () const
 
utils::SvgDocument to_svg_document () const
 
void tree (Tree const &orig_tree)
 
Tree const & tree () const
 
void type (Type const drawing_type)
 
Type type () const
 

Public Types

enum  Type { kPhylogram, kCladogram }
 

Protected Member Functions

virtual void init_tree_ (Tree const &orig_tree)=0
 
virtual utils::SvgDocument to_svg_document_ () const =0
 
Treetree ()
 

Constructor & Destructor Documentation

LayoutBase ( )
default
LayoutBase ( Type const  drawing_type)
inlineexplicit

Definition at line 66 of file layout_base.hpp.

virtual ~LayoutBase ( )
virtualdefault
LayoutBase ( LayoutBase const &  )
default
LayoutBase ( LayoutBase &&  )
default

Member Function Documentation

virtual void init_tree_ ( Tree const &  orig_tree)
protectedpure virtual
LayoutBase& operator= ( LayoutBase const &  )
default
LayoutBase& operator= ( LayoutBase &&  )
default
void set_edge_strokes ( std::vector< utils::SvgStroke > const &  strokes)

Definition at line 56 of file layout_base.cpp.

void set_node_shapes ( std::vector< utils::SvgGroup > const &  shapes)

Definition at line 66 of file layout_base.cpp.

void text_template ( utils::SvgText const &  tt)

Definition at line 80 of file layout_base.cpp.

utils::SvgText & text_template ( )

Definition at line 85 of file layout_base.cpp.

utils::SvgText const & text_template ( ) const

Definition at line 90 of file layout_base.cpp.

utils::SvgDocument to_svg_document ( ) const
inline

Definition at line 92 of file layout_base.hpp.

virtual utils::SvgDocument to_svg_document_ ( ) const
protectedpure virtual
void tree ( Tree const &  orig_tree)

Definition at line 40 of file layout_base.cpp.

Tree const & tree ( ) const

Definition at line 51 of file layout_base.cpp.

Tree & tree ( )
protected

Definition at line 46 of file layout_base.cpp.

void type ( Type const  drawing_type)

Definition at line 95 of file layout_base.cpp.

LayoutBase::Type type ( ) const

Definition at line 100 of file layout_base.cpp.

Member Enumeration Documentation

enum Type
strong
Enumerator
kPhylogram 
kCladogram 

Definition at line 55 of file layout_base.hpp.


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