|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_FORMATS_SVG_ATTRIBUTES_H_
2 #define GENESIS_UTILS_FORMATS_SVG_ATTRIBUTES_H_
103 void write( std::ostream& out )
const;
176 void write( std::ostream& out )
const;
223 void write( std::ostream& out )
const;
283 void write( std::ostream& out )
const;
343 void write( std::ostream& out )
const;
391 void write( std::ostream& out )
const;
435 void write( std::ostream& out )
const;
478 void write( std::ostream& out )
const;
523 void write( std::ostream& out )
const;
560 template<
typename T >
568 : pimpl_( other.pimpl_->clone() )
587 return pimpl_->apply_( p );
590 void write( std::ostream& out )
const
592 pimpl_->write_( out );
603 virtual ~Concept() {}
606 virtual void write_( std::ostream& out )
const = 0;
608 virtual std::unique_ptr< Concept > clone()
const = 0;
611 template<
typename T >
612 struct Model : Concept
614 Model( T
const& value )
618 SvgPoint apply_( SvgPoint
const& p )
const override
620 return object_.apply( p );
623 void write_( std::ostream& out )
const override
625 object_.write( out );
628 std::unique_ptr< Concept > clone()
const override
632 return genesis::utils::make_unique< Model<T> >( object_ );
638 std::unique_ptr< Concept > pimpl_;
659 void append( Transformation&& t );
660 void append( Transformation
const& t );
665 SvgPoint
apply( SvgPoint
const& p )
const;
678 SvgBox
apply( SvgBox
const& b )
const;
680 void write( std::ostream& out )
const;
698 #endif // include guard
void swap(Sample &lhs, Sample &rhs)
SvgFont & operator=(SvgFont const &)=default
SvgFill(Type type=Type::kColor)
void offset(Histogram &h, double value)
Provides some valuable additions to STD.
std::vector< double > dash_array
SvgFont(double size=10, std::string const &family="Verdana")
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
SvgStroke(Type type=Type::kColor)
void write(std::ostream &out) const
std::unique_ptr< T > make_unique(Args &&... args)
Returns a std::unique_ptr for a given type.
SvgFill & operator=(SvgFill const &)=default
void write(std::ostream &out) const
SvgStroke & operator=(SvgStroke const &)=default
void write(std::ostream &out) const