A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LayoutEdgeData Class Reference

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

Inherits DefaultEdgeData.

Detailed Description

Data class for LayoutTreeEdges.

It is derived from tree::DefaultEdgeData, so that it already contains a branch_length field.

Definition at line 162 of file layout_tree.hpp.

Public Member Functions

 LayoutEdgeData (LayoutEdgeData &&)=delete
 
virtual ~LayoutEdgeData ()=default
 
virtual std::unique_ptr
< BaseEdgeData
clone () const override
 Polymorphically copy an instance of this class. Use instead of copy constructor. More...
 
LayoutEdgeDataoperator= (LayoutEdgeData &&)=delete
 
virtual std::unique_ptr
< BaseEdgeData
recreate () const override
 Polymorphically create a default-constructed instance of this class with the same derived type as it was called on. More...
 
- Public Member Functions inherited from DefaultEdgeData
 DefaultEdgeData (DefaultEdgeData &&)=delete
 
virtual ~DefaultEdgeData ()=default
 
DefaultEdgeDataoperator= (DefaultEdgeData &&)=delete
 
- Public Member Functions inherited from BaseEdgeData
 BaseEdgeData (BaseEdgeData &&)=delete
 Deleted move constructor. More...
 
virtual ~BaseEdgeData ()=default
 Virtual destructor. Needed for polymorphism. More...
 
BaseEdgeDataoperator= (BaseEdgeData &&)=delete
 Deleted move assignment. More...
 

Static Public Member Functions

static std::unique_ptr
< LayoutEdgeData
create ()
 
- Static Public Member Functions inherited from DefaultEdgeData
static std::unique_ptr
< DefaultEdgeData
create ()
 
- Static Public Member Functions inherited from BaseEdgeData
static std::unique_ptr
< BaseEdgeData
create ()
 Create a new instance of this class. Use instead of default constructor. More...
 

Public Attributes

utils::SvgStroke distance_stroke
 
utils::SvgGroup shape
 
utils::SvgStroke spreading_stroke
 
- Public Attributes inherited from DefaultEdgeData
double branch_length = 0.0
 Branch length of the edge. More...
 

Protected Member Functions

 LayoutEdgeData ()=default
 
 LayoutEdgeData (LayoutEdgeData const &)=default
 
LayoutEdgeDataoperator= (LayoutEdgeData const &)=default
 
- Protected Member Functions inherited from DefaultEdgeData
 DefaultEdgeData ()=default
 
 DefaultEdgeData (DefaultEdgeData const &)=default
 
DefaultEdgeDataoperator= (DefaultEdgeData const &)=default
 
- Protected Member Functions inherited from BaseEdgeData
 BaseEdgeData ()=default
 Protected default constructor. Called from the create() function. More...
 
 BaseEdgeData (BaseEdgeData const &)=default
 Protected copy constructor. Called from the clone() function. More...
 
BaseEdgeDataoperator= (BaseEdgeData const &)=default
 Protected copy assignment. Not used right now. More...
 

Constructor & Destructor Documentation

virtual ~LayoutEdgeData ( )
virtualdefault
LayoutEdgeData ( LayoutEdgeData &&  )
delete
LayoutEdgeData ( )
protecteddefault
LayoutEdgeData ( LayoutEdgeData const &  )
protecteddefault

Member Function Documentation

virtual std::unique_ptr< BaseEdgeData > clone ( ) const
inlineoverridevirtual

Polymorphically copy an instance of this class. Use instead of copy constructor.

Reimplemented from DefaultEdgeData.

Definition at line 196 of file layout_tree.hpp.

static std::unique_ptr< LayoutEdgeData > create ( )
inlinestatic

Definition at line 186 of file layout_tree.hpp.

LayoutEdgeData& operator= ( LayoutEdgeData &&  )
delete
LayoutEdgeData& operator= ( LayoutEdgeData const &  )
protecteddefault
virtual std::unique_ptr< BaseEdgeData > recreate ( ) const
inlineoverridevirtual

Polymorphically create a default-constructed instance of this class with the same derived type as it was called on.

Reimplemented from DefaultEdgeData.

Definition at line 191 of file layout_tree.hpp.

Member Data Documentation

utils::SvgStroke distance_stroke

Definition at line 208 of file layout_tree.hpp.

Definition at line 210 of file layout_tree.hpp.

utils::SvgStroke spreading_stroke

Definition at line 207 of file layout_tree.hpp.


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