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

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

Inherits LayoutNodeData.

Detailed Description

Data class for RectangularTreeNodes.

Definition at line 72 of file rectangular_tree.hpp.

Public Member Functions

 RectangularNodeData (RectangularNodeData &&)=delete
 
virtual ~RectangularNodeData ()=default
 
virtual std::unique_ptr
< BaseNodeData
clone () const override
 Polymorphically copy an instance of this class. Use instead of copy constructor. More...
 
RectangularNodeDataoperator= (RectangularNodeData &&)=delete
 
virtual std::unique_ptr
< BaseNodeData
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 LayoutNodeData
 LayoutNodeData (LayoutNodeData &&)=delete
 
virtual ~LayoutNodeData ()=default
 
LayoutNodeDataoperator= (LayoutNodeData &&)=delete
 
- Public Member Functions inherited from DefaultNodeData
 DefaultNodeData (DefaultNodeData &&)=delete
 
virtual ~DefaultNodeData ()=default
 
DefaultNodeDataoperator= (DefaultNodeData &&)=delete
 
- Public Member Functions inherited from BaseNodeData
 BaseNodeData (BaseNodeData &&)=delete
 Deleted move constructor. More...
 
virtual ~BaseNodeData ()=default
 Virtual destructor. Needed for polymorphism. More...
 
BaseNodeDataoperator= (BaseNodeData &&)=delete
 Deleted move assignment. More...
 

Static Public Member Functions

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

Public Attributes

double children_max_y = -1.0
 
double children_min_y = -1.0
 
int parent_index = -1
 
double x
 
double y
 
- Public Attributes inherited from LayoutNodeData
utils::SvgGroup shape
 
- Public Attributes inherited from DefaultNodeData
std::string name
 Name of the node. More...
 

Protected Member Functions

 RectangularNodeData ()=default
 
 RectangularNodeData (RectangularNodeData const &)=default
 
RectangularNodeDataoperator= (RectangularNodeData const &)=default
 
- Protected Member Functions inherited from LayoutNodeData
 LayoutNodeData ()=default
 
 LayoutNodeData (LayoutNodeData const &)=default
 
LayoutNodeDataoperator= (LayoutNodeData const &)=default
 
- Protected Member Functions inherited from DefaultNodeData
 DefaultNodeData ()=default
 
 DefaultNodeData (DefaultNodeData const &)=default
 
DefaultNodeDataoperator= (DefaultNodeData const &)=default
 
- Protected Member Functions inherited from BaseNodeData
 BaseNodeData ()=default
 Protected default constructor. Called from the create() function. More...
 
 BaseNodeData (BaseNodeData const &)=default
 Protected copy constructor. Called from the clone() function. More...
 
BaseNodeDataoperator= (BaseNodeData const &)=default
 Protected copy assignment. Not used right now. More...
 

Constructor & Destructor Documentation

virtual ~RectangularNodeData ( )
virtualdefault
RectangularNodeData ( )
protecteddefault
RectangularNodeData ( RectangularNodeData const &  )
protecteddefault

Member Function Documentation

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

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

Reimplemented from LayoutNodeData.

Definition at line 106 of file rectangular_tree.hpp.

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

Definition at line 96 of file rectangular_tree.hpp.

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

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

Reimplemented from LayoutNodeData.

Definition at line 101 of file rectangular_tree.hpp.

Member Data Documentation

double children_max_y = -1.0

Definition at line 123 of file rectangular_tree.hpp.

double children_min_y = -1.0

Definition at line 122 of file rectangular_tree.hpp.

int parent_index = -1

Definition at line 120 of file rectangular_tree.hpp.

double x

Definition at line 117 of file rectangular_tree.hpp.

double y

Definition at line 118 of file rectangular_tree.hpp.


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