A toolkit for working with phylogenetic data.
v0.24.0
SvgGroup Struct Reference

#include <genesis/utils/formats/svg/group.hpp>

Detailed Description

Definition at line 48 of file group.hpp.

Public Member Functions

 SvgGroup ()=default
 
 SvgGroup (SvgGroup const &)=default
 
 SvgGroup (SvgGroup &&)=default
 
 ~SvgGroup ()=default
 
self_typeadd (SvgObject const &object)
 Add an SvgObject to the document. More...
 
self_typeadd (SvgObject &&object)
 
SvgBox bounding_box () const
 
void clear ()
 
bool empty () const
 
self_typeoperator<< (SvgObject const &object)
 Shortcut operator for add(), which allows an even more fluent interface. More...
 
self_typeoperator<< (SvgObject &&object)
 
SvgGroupoperator= (SvgGroup const &)=default
 
SvgGroupoperator= (SvgGroup &&)=default
 
self_typereverse ()
 Reverse the order to the stored SvgObjects. More...
 
void write (std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
 

Public Types

using self_type = SvgGroup
 

Public Attributes

std::vector< SvgObjectcontent_
 
std::string id
 
SvgTransform transform
 

Constructor & Destructor Documentation

◆ SvgGroup() [1/3]

SvgGroup ( )
default

◆ ~SvgGroup()

~SvgGroup ( )
default

◆ SvgGroup() [2/3]

SvgGroup ( SvgGroup const &  )
default

◆ SvgGroup() [3/3]

SvgGroup ( SvgGroup &&  )
default

Member Function Documentation

◆ add() [1/2]

SvgGroup & add ( SvgObject const &  object)

Add an SvgObject to the document.

Returns the SvgDocument in order to allow for a fluent interface.

Definition at line 81 of file group.cpp.

◆ add() [2/2]

SvgGroup & add ( SvgObject &&  object)

Definition at line 87 of file group.cpp.

◆ bounding_box()

SvgBox bounding_box ( ) const

Definition at line 50 of file group.cpp.

◆ clear()

void clear ( )
inline

Definition at line 107 of file group.hpp.

◆ empty()

bool empty ( ) const
inline

Definition at line 102 of file group.hpp.

◆ operator<<() [1/2]

SvgGroup & operator<< ( SvgObject const &  object)

Shortcut operator for add(), which allows an even more fluent interface.

Definition at line 99 of file group.cpp.

◆ operator<<() [2/2]

SvgGroup & operator<< ( SvgObject &&  object)

Definition at line 104 of file group.cpp.

◆ operator=() [1/2]

SvgGroup& operator= ( SvgGroup const &  )
default

◆ operator=() [2/2]

SvgGroup& operator= ( SvgGroup &&  )
default

◆ reverse()

SvgGroup & reverse ( )

Reverse the order to the stored SvgObjects.

Definition at line 93 of file group.cpp.

◆ write()

void write ( std::ostream &  out,
size_t  indent = 0,
SvgDrawingOptions const &  options = SvgDrawingOptions() 
) const

Definition at line 60 of file group.cpp.

Member Typedef Documentation

◆ self_type

Definition at line 56 of file group.hpp.

Member Data Documentation

◆ content_

std::vector< SvgObject > content_

Definition at line 119 of file group.hpp.

◆ id

std::string id

Definition at line 118 of file group.hpp.

◆ transform

SvgTransform transform

Definition at line 120 of file group.hpp.


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