A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( )
default
~SvgGroup ( )
default
SvgGroup ( SvgGroup const &  )
default
SvgGroup ( SvgGroup &&  )
default

Member Function Documentation

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.

SvgGroup & add ( SvgObject &&  object)

Definition at line 87 of file group.cpp.

SvgBox bounding_box ( ) const

Definition at line 50 of file group.cpp.

void clear ( )
inline

Definition at line 107 of file group.hpp.

bool empty ( ) const
inline

Definition at line 102 of file group.hpp.

SvgGroup & operator<< ( SvgObject const &  object)

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

Definition at line 99 of file group.cpp.

SvgGroup & operator<< ( SvgObject &&  object)

Definition at line 104 of file group.cpp.

SvgGroup& operator= ( SvgGroup const &  )
default
SvgGroup& operator= ( SvgGroup &&  )
default
SvgGroup & reverse ( )

Reverse the order to the stored SvgObjects.

Definition at line 93 of file group.cpp.

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

Definition at line 56 of file group.hpp.

Member Data Documentation

std::vector< SvgObject > content_

Definition at line 119 of file group.hpp.

std::string id

Definition at line 118 of file group.hpp.

SvgTransform transform

Definition at line 120 of file group.hpp.


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