|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_DRAWING_LAYOUT_TREE_H_
2 #define GENESIS_TREE_DRAWING_LAYOUT_TREE_H_
104 static std::unique_ptr< LayoutNodeData >
create()
109 virtual std::unique_ptr< BaseNodeData >
recreate()
const override
114 virtual std::unique_ptr< BaseNodeData >
clone()
const override
116 return std::unique_ptr< LayoutNodeData >(
new LayoutNodeData( *
this ));
187 static std::unique_ptr< LayoutEdgeData >
create()
192 virtual std::unique_ptr< BaseEdgeData >
recreate()
const override
197 virtual std::unique_ptr< BaseEdgeData >
clone()
const override
199 return std::unique_ptr< LayoutEdgeData >(
new LayoutEdgeData( *
this ));
218 #endif // include guard
double spreading
Position of the node along the second axis.
virtual ~LayoutNodeData() override=default
utils::SvgStroke distance_stroke
static std::unique_ptr< LayoutEdgeData > create()
Data class for LayoutTreeEdges.
static std::unique_ptr< LayoutNodeData > create()
Class for representing phylogenetic trees.
virtual std::unique_ptr< BaseNodeData > clone() const override
Polymorphically copy an instance of this class. Use instead of copy constructor.
double distance
Distance of the node to the root.
utils::SvgStroke spreading_stroke
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
virtual ~LayoutEdgeData() override=default
virtual std::unique_ptr< BaseEdgeData > clone() const override
Polymorphically copy an instance of this class. Use instead of copy constructor.
virtual std::unique_ptr< BaseNodeData > recreate() const override
Polymorphically create a default-constructed instance of this class with the same derived type as it ...
Common class containing the commonly needed data for tree edges.
Common class containing the commonly needed data for tree nodes.
virtual std::unique_ptr< BaseEdgeData > recreate() const override
Polymorphically create a default-constructed instance of this class with the same derived type as it ...
LayoutEdgeData & operator=(LayoutEdgeData &&)=delete
Data class for LayoutTreeNodes.
utils::SvgStroke spacer_stroke
LayoutNodeData & operator=(LayoutNodeData &&)=delete