Project
Loading...
Searching...
No Matches
o2::mch::contour::SVGWriter Class Reference

#include <SVGWriter.h>

Public Member Functions

 SVGWriter (o2::mch::contour::BBox< double > viewingBox, int size=1024)
 
template<typename T >
SVGWriteroperator<< (T a)
 
void svgGroupStart (const std::string &classname)
 
void svgGroupEnd ()
 
void box (double x, double y, double w, double h)
 
void text (const std::string &text, double x, double y)
 
template<typename T >
void polygon (const o2::mch::contour::Polygon< T > &p)
 
template<typename T >
void contour (const o2::mch::contour::Contour< T > &c)
 
template<typename T >
void polygon (const o2::mch::contour::Polygon< T > &p, const std::string &fillColor)
 
template<typename T >
void contour (const o2::mch::contour::Contour< T > &c, const std::string &color)
 
void points (const std::vector< std::pair< double, double > > &pts, double radius=0.05)
 
void addStyle (const std::string &style)
 
void writeStyle (std::ostream &os)
 
void writeSVG (std::ostream &os)
 
void writeHTML (std::ostream &os)
 

Detailed Description

Definition at line 34 of file SVGWriter.h.

Constructor & Destructor Documentation

◆ SVGWriter()

o2::mch::contour::SVGWriter::SVGWriter ( o2::mch::contour::BBox< double >  viewingBox,
int  size = 1024 
)
inline

Definition at line 38 of file SVGWriter.h.

Member Function Documentation

◆ addStyle()

void o2::mch::contour::SVGWriter::addStyle ( const std::string &  style)
inline

Definition at line 123 of file SVGWriter.h.

◆ box()

void o2::mch::contour::SVGWriter::box ( double  x,
double  y,
double  w,
double  h 
)
inline

Definition at line 62 of file SVGWriter.h.

◆ contour() [1/2]

template<typename T >
void o2::mch::contour::SVGWriter::contour ( const o2::mch::contour::Contour< T > &  c)
inline

Definition at line 86 of file SVGWriter.h.

◆ contour() [2/2]

template<typename T >
void o2::mch::contour::SVGWriter::contour ( const o2::mch::contour::Contour< T > &  c,
const std::string &  color 
)
inline

Definition at line 108 of file SVGWriter.h.

◆ operator<<()

template<typename T >
SVGWriter & o2::mch::contour::SVGWriter::operator<< ( a)
inline

Definition at line 48 of file SVGWriter.h.

◆ points()

void o2::mch::contour::SVGWriter::points ( const std::vector< std::pair< double, double > > &  pts,
double  radius = 0.05 
)
inline

Definition at line 116 of file SVGWriter.h.

◆ polygon() [1/2]

template<typename T >
void o2::mch::contour::SVGWriter::polygon ( const o2::mch::contour::Polygon< T > &  p)
inline

Definition at line 73 of file SVGWriter.h.

◆ polygon() [2/2]

template<typename T >
void o2::mch::contour::SVGWriter::polygon ( const o2::mch::contour::Polygon< T > &  p,
const std::string &  fillColor 
)
inline

Definition at line 94 of file SVGWriter.h.

◆ svgGroupEnd()

void o2::mch::contour::SVGWriter::svgGroupEnd ( )
inline

Definition at line 60 of file SVGWriter.h.

◆ svgGroupStart()

void o2::mch::contour::SVGWriter::svgGroupStart ( const std::string &  classname)
inline

Definition at line 54 of file SVGWriter.h.

◆ text()

void o2::mch::contour::SVGWriter::text ( const std::string &  text,
double  x,
double  y 
)
inline

Definition at line 67 of file SVGWriter.h.

◆ writeHTML()

void o2::mch::contour::SVGWriter::writeHTML ( std::ostream &  os)
inline

Definition at line 138 of file SVGWriter.h.

◆ writeStyle()

void o2::mch::contour::SVGWriter::writeStyle ( std::ostream &  os)
inline

Definition at line 125 of file SVGWriter.h.

◆ writeSVG()

void o2::mch::contour::SVGWriter::writeSVG ( std::ostream &  os)
inline

Definition at line 128 of file SVGWriter.h.


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