Public Member Functions | Public Attributes | List of all members
Printer Struct Reference

#include <raygrid_draw.h>

Public Member Functions

 Printer (std::string fn)
 
 ~Printer ()
 
void operator() ()
 

Public Attributes

TCanvas canvas
 
std::string fname
 
int count
 

Detailed Description

Definition at line 169 of file raygrid_draw.h.

Constructor & Destructor Documentation

Printer::Printer ( std::string  fn)
inline

Definition at line 173 of file raygrid_draw.h.

174  : canvas("test_raytiling", "Ray Tiling", 500, 500)
175  , fname(fn)
176  , count(0)
177  {
178  canvas.Print((fname + ".pdf[").c_str(), "pdf");
179  }
QAsciiDict< Entry > fn
TCanvas canvas
Definition: raygrid_draw.h:170
std::string fname
Definition: raygrid_draw.h:171
Printer::~Printer ( )
inline

Definition at line 180 of file raygrid_draw.h.

180 { canvas.Print((fname+".pdf]").c_str(), "pdf"); }
TCanvas canvas
Definition: raygrid_draw.h:170
std::string fname
Definition: raygrid_draw.h:171

Member Function Documentation

void Printer::operator() ( void  )
inline

Definition at line 181 of file raygrid_draw.h.

181  {
182  canvas.Print((fname+".pdf").c_str(), "pdf");
183  canvas.Print(Form("%s-%02d.png", fname.c_str(), count), "png");
184  canvas.Print(Form("%s-%02d.svg", fname.c_str(), count), "svg");
185  ++count;
186  }
TCanvas canvas
Definition: raygrid_draw.h:170
std::string fname
Definition: raygrid_draw.h:171

Member Data Documentation

TCanvas Printer::canvas

Definition at line 170 of file raygrid_draw.h.

int Printer::count

Definition at line 172 of file raygrid_draw.h.

std::string Printer::fname

Definition at line 171 of file raygrid_draw.h.


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