TSVG Class Reference

#include <TSVG.h>

Inheritance diagram for TSVG:

TVirtualPS TVirtualPS TAttText TAttMarker TAttFill TAttLine TNamed TAttText TAttMarker TAttFill TAttLine TNamed TAttText TAttMarker TAttFill TAttLine TNamed TAttText TAttMarker TAttFill TAttLine TNamed List of all members.

Public Member Functions

 TSVG ()
 TSVG (const char *filename, Int_t type=-113)
virtual ~TSVG ()
void CellArrayBegin (Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2)
void CellArrayFill (Int_t r, Int_t g, Int_t b)
void CellArrayEnd ()
void Close (Option_t *opt="")
Int_t CMtoSVG (Double_t u)
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void DrawFrame (Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t mode, Int_t border, Int_t dark, Int_t light)
void DrawPolyLine (Int_t n, TPoints *xy)
void DrawPolyLineNDC (Int_t n, TPoints *uv)
void DrawPolyMarker (Int_t n, Float_t *x, Float_t *y)
void DrawPolyMarker (Int_t n, Double_t *x, Double_t *y)
void DrawPS (Int_t n, Float_t *xw, Float_t *yw)
void DrawPS (Int_t n, Double_t *xw, Double_t *yw)
void Initialize ()
void MovePS (Int_t x, Int_t y)
void NewPage ()
void Off ()
void On ()
void Open (const char *filename, Int_t type=-111)
void Range (Float_t xrange, Float_t yrange)
void SetColor (Int_t color=1)
void SetColor (Float_t r, Float_t g, Float_t b)
void SetFillColor (Color_t cindex=1)
void SetLineColor (Color_t cindex=1)
void SetLineStyle (Style_t linestyle=1)
void SetLineWidth (Width_t linewidth=1)
void SetLineScale (Float_t=3)
void SetMarkerColor (Color_t cindex=1)
void SetTextColor (Color_t cindex=1)
void Text (Double_t x, Double_t y, const char *string)
void TextNDC (Double_t u, Double_t v, const char *string)
Int_t UtoSVG (Double_t u)
Int_t VtoSVG (Double_t v)
Int_t XtoSVG (Double_t x)
Int_t YtoSVG (Double_t y)
 TSVG ()
 TSVG (const char *filename, Int_t type=-113)
virtual ~TSVG ()
void CellArrayBegin (Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2)
void CellArrayFill (Int_t r, Int_t g, Int_t b)
void CellArrayEnd ()
void Close (Option_t *opt="")
Int_t CMtoSVG (Double_t u)
void DrawBox (Double_t x1, Double_t y1, Double_t x2, Double_t y2)
void DrawFrame (Double_t xl, Double_t yl, Double_t xt, Double_t yt, Int_t mode, Int_t border, Int_t dark, Int_t light)
void DrawPolyLine (Int_t n, TPoints *xy)
void DrawPolyLineNDC (Int_t n, TPoints *uv)
void DrawPolyMarker (Int_t n, Float_t *x, Float_t *y)
void DrawPolyMarker (Int_t n, Double_t *x, Double_t *y)
void DrawPS (Int_t n, Float_t *xw, Float_t *yw)
void DrawPS (Int_t n, Double_t *xw, Double_t *yw)
void Initialize ()
void MovePS (Int_t x, Int_t y)
void NewPage ()
void Off ()
void On ()
void Open (const char *filename, Int_t type=-111)
void Range (Float_t xrange, Float_t yrange)
void SetColor (Int_t color=1)
void SetColor (Float_t r, Float_t g, Float_t b)
void SetFillColor (Color_t cindex=1)
void SetLineColor (Color_t cindex=1)
void SetLineStyle (Style_t linestyle=1)
void SetLineWidth (Width_t linewidth=1)
void SetLineScale (Float_t=3)
void SetMarkerColor (Color_t cindex=1)
void SetTextColor (Color_t cindex=1)
void Text (Double_t x, Double_t y, const char *string)
void TextNDC (Double_t u, Double_t v, const char *string)
Int_t UtoSVG (Double_t u)
Int_t VtoSVG (Double_t v)
Int_t XtoSVG (Double_t x)
Int_t YtoSVG (Double_t y)

Protected Attributes

Float_t fXsize
Float_t fYsize
Int_t fType
Bool_t fBoundingBox
Bool_t fRange
Int_t fYsizeSVG

Detailed Description

Definition at line 30 of file TSVG.h.


Constructor & Destructor Documentation

TSVG::TSVG (  ) 

TSVG::TSVG ( const char *  filename,
Int_t  type = -113 
)

Definition at line 92 of file TSVG.cxx.

References TVirtualPS::fStream, and Open().

TSVG::~TSVG (  )  [virtual]

Definition at line 157 of file TSVG.cxx.

References Close().

TSVG::TSVG (  ) 

TSVG::TSVG ( const char *  filename,
Int_t  type = -113 
)

virtual TSVG::~TSVG (  )  [virtual]


Member Function Documentation

void TSVG::CellArrayBegin ( Int_t  W,
Int_t  H,
Double_t  x1,
Double_t  x2,
Double_t  y1,
Double_t  y2 
) [virtual]

Implements TVirtualPS.

Definition at line 1652 of file TSVG.cxx.

References TObject::Warning().

void TSVG::CellArrayFill ( Int_t  r,
Int_t  g,
Int_t  b 
) [virtual]

Implements TVirtualPS.

Definition at line 1661 of file TSVG.cxx.

References TObject::Warning().

void TSVG::CellArrayEnd (  )  [virtual]

Implements TVirtualPS.

Definition at line 1669 of file TSVG.cxx.

References TObject::Warning().

void TSVG::Close ( Option_t opt = ""  )  [virtual]

Implements TVirtualPS.

Definition at line 166 of file TSVG.cxx.

References TVirtualPS::fStream, gPad, gVirtualPS, and TVirtualPS::PrintStr().

Referenced by ~TSVG().

Int_t TSVG::CMtoSVG ( Double_t  u  )  [inline]

Definition at line 49 of file TSVG.h.

Referenced by DrawPolyMarker(), NewPage(), and Text().

void TSVG::DrawBox ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
) [virtual]

Implements TVirtualPS.

Definition at line 208 of file TSVG.cxx.

References DrawPS(), TAttFill::fFillColor, TAttFill::fFillStyle, TAttLine::fLineColor, TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), SetColor(), TVirtualPS::WriteInteger(), x, XtoSVG(), y, and YtoSVG().

void TSVG::DrawFrame ( Double_t  xl,
Double_t  yl,
Double_t  xt,
Double_t  yt,
Int_t  mode,
Int_t  border,
Int_t  dark,
Int_t  light 
) [virtual]

Implements TVirtualPS.

Definition at line 282 of file TSVG.cxx.

References i, MovePS(), TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), SetColor(), TVirtualPS::WriteInteger(), XtoSVG(), and YtoSVG().

void TSVG::DrawPolyLine ( Int_t  n,
TPoints xy 
)

Definition at line 428 of file TSVG.cxx.

References i, MovePS(), n, TVirtualPS::PrintFast(), XtoSVG(), xy, and YtoSVG().

void TSVG::DrawPolyLineNDC ( Int_t  n,
TPoints uv 
)

Definition at line 514 of file TSVG.cxx.

References i, MovePS(), n, TVirtualPS::PrintFast(), UtoSVG(), VtoSVG(), and xy.

void TSVG::DrawPolyMarker ( Int_t  n,
Float_t x,
Float_t y 
) [virtual]

Implements TVirtualPS.

Definition at line 600 of file TSVG.cxx.

References CMtoSVG(), TAttLine::fLineWidth, TAttMarker::fMarkerColor, TAttMarker::fMarkerSize, TAttMarker::fMarkerStyle, fXsize, gPad, i, m, TVirtualPS::PrintStr(), SetColor(), TVirtualPS::WriteInteger(), TVirtualPS::WriteReal(), XtoSVG(), and YtoSVG().

void TSVG::DrawPolyMarker ( Int_t  n,
Double_t x,
Double_t y 
) [virtual]

Implements TVirtualPS.

Definition at line 833 of file TSVG.cxx.

References CMtoSVG(), TAttLine::fLineWidth, TAttMarker::fMarkerColor, TAttMarker::fMarkerSize, TAttMarker::fMarkerStyle, fXsize, gPad, i, m, TVirtualPS::PrintStr(), SetColor(), TVirtualPS::WriteInteger(), TVirtualPS::WriteReal(), XtoSVG(), and YtoSVG().

void TSVG::DrawPS ( Int_t  n,
Float_t xw,
Float_t yw 
) [virtual]

Implements TVirtualPS.

Definition at line 1677 of file TSVG.cxx.

References TObject::Warning().

Referenced by DrawBox().

void TSVG::DrawPS ( Int_t  n,
Double_t xw,
Double_t yw 
) [virtual]

Implements TVirtualPS.

Definition at line 1064 of file TSVG.cxx.

References TObjArray::At(), TObject::Error(), TAttFill::fFillColor, TAttFill::fFillStyle, TAttLine::fLineColor, TAttLine::fLineStyle, TAttLine::fLineWidth, TObjArray::GetEntries(), TStyle::GetLineStyleString(), TNamed::GetName(), gStyle, i, j, MovePS(), n, TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), SetColor(), TMath::Sign(), TString::Tokenize(), TVirtualPS::WriteInteger(), XtoSVG(), and YtoSVG().

void TSVG::Initialize (  ) 

Definition at line 1179 of file TSVG.cxx.

References TStyle::GetHeaderPS(), TNamed::GetName(), TROOT::GetVersion(), gROOT, gStyle, nh, TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), and t.

Referenced by NewPage().

void TSVG::MovePS ( Int_t  x,
Int_t  y 
)

Definition at line 1214 of file TSVG.cxx.

References TVirtualPS::PrintFast(), and TVirtualPS::WriteInteger().

Referenced by DrawFrame(), DrawPolyLine(), DrawPolyLineNDC(), and DrawPS().

void TSVG::NewPage (  )  [virtual]

Implements TVirtualPS.

Definition at line 1237 of file TSVG.cxx.

References CMtoSVG(), fBoundingBox, fXsize, fYsize, fYsizeSVG, gPad, Initialize(), kTRUE, TVirtualPS::PrintStr(), and TVirtualPS::WriteInteger().

Referenced by Open().

void TSVG::Off (  ) 

Definition at line 199 of file TSVG.cxx.

References gVirtualPS.

Referenced by On().

void TSVG::On (  ) 

Definition at line 182 of file TSVG.cxx.

References TObject::Error(), fType, gVirtualPS, and Off().

void TSVG::Open ( const char *  filename,
Int_t  type = -111 
) [virtual]

Implements TVirtualPS.

Definition at line 108 of file TSVG.cxx.

References fBoundingBox, TVirtualPS::fBuffer, TVirtualPS::fLenBuffer, fRange, TVirtualPS::fSizBuffer, TVirtualPS::fStream, fType, fXsize, fYsize, TStyle::GetLineScalePS(), TStyle::GetPaperSize(), gPad, gStyle, gVirtualPS, i, kFALSE, NewPage(), out, Range(), ratio, SetLineScale(), and TObject::Warning().

Referenced by TSVG().

void TSVG::Range ( Float_t  xrange,
Float_t  yrange 
)

Definition at line 1272 of file TSVG.cxx.

References fRange, fXsize, fYsize, and kTRUE.

Referenced by Open().

void TSVG::SetColor ( Int_t  color = 1  ) 

Definition at line 1377 of file TSVG.cxx.

References TColor::GetBlue(), TROOT::GetColor(), TColor::GetGreen(), TColor::GetRed(), and gROOT.

Referenced by DrawBox(), DrawFrame(), DrawPolyMarker(), DrawPS(), and Text().

void TSVG::SetColor ( Float_t  r,
Float_t  g,
Float_t  b 
) [virtual]

Implements TVirtualPS.

Definition at line 1392 of file TSVG.cxx.

References TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), snprintf, and str.

void TSVG::SetFillColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttFill.

Definition at line 1326 of file TSVG.cxx.

References TAttFill::fFillColor, TAttFill::GetFillColor(), and gStyle.

void TSVG::SetLineColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttLine.

Definition at line 1336 of file TSVG.cxx.

References TAttLine::fLineColor.

void TSVG::SetLineStyle ( Style_t  linestyle = 1  )  [virtual]

Reimplemented from TAttLine.

Definition at line 1345 of file TSVG.cxx.

References TAttLine::fLineStyle.

void TSVG::SetLineWidth ( Width_t  linewidth = 1  )  [virtual]

Reimplemented from TAttLine.

Definition at line 1359 of file TSVG.cxx.

References TAttLine::fLineWidth.

void TSVG::SetLineScale ( Float_t  = 3  )  [inline]

Definition at line 72 of file TSVG.h.

Referenced by Open().

void TSVG::SetMarkerColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttMarker.

Definition at line 1368 of file TSVG.cxx.

References TAttMarker::fMarkerColor.

void TSVG::SetTextColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttText.

Definition at line 1415 of file TSVG.cxx.

References TAttText::fTextColor.

void TSVG::Text ( Double_t  x,
Double_t  y,
const char *  string 
) [virtual]

Implements TVirtualPS.

Definition at line 1424 of file TSVG.cxx.

References CMtoSVG(), Form(), TAttText::fTextAlign, TAttText::fTextAngle, TAttText::fTextColor, TAttText::fTextFont, TAttText::fTextSize, fXsize, fYsize, gPad, i, len, TVirtualPS::PrintFast(), TVirtualPS::PrintStr(), SetColor(), TVirtualPS::WriteInteger(), XtoSVG(), and YtoSVG().

Referenced by TextNDC().

void TSVG::TextNDC ( Double_t  u,
Double_t  v,
const char *  string 
)

Definition at line 1601 of file TSVG.cxx.

References gPad, Text(), x, and y.

Int_t TSVG::UtoSVG ( Double_t  u  ) 

Definition at line 1612 of file TSVG.cxx.

References fXsize, and gPad.

Referenced by DrawPolyLineNDC(), and XtoSVG().

Int_t TSVG::VtoSVG ( Double_t  v  ) 

Definition at line 1622 of file TSVG.cxx.

References fYsize, and gPad.

Referenced by DrawPolyLineNDC(), and YtoSVG().

Int_t TSVG::XtoSVG ( Double_t  x  ) 

Definition at line 1632 of file TSVG.cxx.

References gPad, u, and UtoSVG().

Referenced by DrawBox(), DrawFrame(), DrawPolyLine(), DrawPolyMarker(), DrawPS(), and Text().

Int_t TSVG::YtoSVG ( Double_t  y  ) 

Definition at line 1642 of file TSVG.cxx.

References fYsizeSVG, gPad, and VtoSVG().

Referenced by DrawBox(), DrawFrame(), DrawPolyLine(), DrawPolyMarker(), DrawPS(), and Text().

void TSVG::CellArrayBegin ( Int_t  W,
Int_t  H,
Double_t  x1,
Double_t  x2,
Double_t  y1,
Double_t  y2 
) [virtual]

Implements TVirtualPS.

void TSVG::CellArrayFill ( Int_t  r,
Int_t  g,
Int_t  b 
) [virtual]

Implements TVirtualPS.

void TSVG::CellArrayEnd (  )  [virtual]

Implements TVirtualPS.

void TSVG::Close ( Option_t opt = ""  )  [virtual]

Implements TVirtualPS.

Int_t TSVG::CMtoSVG ( Double_t  u  )  [inline]

Definition at line 49 of file TSVG.h.

void TSVG::DrawBox ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2 
) [virtual]

Implements TVirtualPS.

void TSVG::DrawFrame ( Double_t  xl,
Double_t  yl,
Double_t  xt,
Double_t  yt,
Int_t  mode,
Int_t  border,
Int_t  dark,
Int_t  light 
) [virtual]

Implements TVirtualPS.

void TSVG::DrawPolyLine ( Int_t  n,
TPoints xy 
)

void TSVG::DrawPolyLineNDC ( Int_t  n,
TPoints uv 
)

void TSVG::DrawPolyMarker ( Int_t  n,
Float_t x,
Float_t y 
) [virtual]

Implements TVirtualPS.

void TSVG::DrawPolyMarker ( Int_t  n,
Double_t x,
Double_t y 
) [virtual]

Implements TVirtualPS.

void TSVG::DrawPS ( Int_t  n,
Float_t xw,
Float_t yw 
) [virtual]

Implements TVirtualPS.

void TSVG::DrawPS ( Int_t  n,
Double_t xw,
Double_t yw 
) [virtual]

Implements TVirtualPS.

void TSVG::Initialize (  ) 

void TSVG::MovePS ( Int_t  x,
Int_t  y 
)

void TSVG::NewPage (  )  [virtual]

Implements TVirtualPS.

void TSVG::Off (  ) 

void TSVG::On (  ) 

void TSVG::Open ( const char *  filename,
Int_t  type = -111 
) [virtual]

Implements TVirtualPS.

void TSVG::Range ( Float_t  xrange,
Float_t  yrange 
)

void TSVG::SetColor ( Int_t  color = 1  ) 

void TSVG::SetColor ( Float_t  r,
Float_t  g,
Float_t  b 
) [virtual]

Implements TVirtualPS.

void TSVG::SetFillColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttFill.

void TSVG::SetLineColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttLine.

void TSVG::SetLineStyle ( Style_t  linestyle = 1  )  [virtual]

Reimplemented from TAttLine.

void TSVG::SetLineWidth ( Width_t  linewidth = 1  )  [virtual]

Reimplemented from TAttLine.

void TSVG::SetLineScale ( Float_t  = 3  )  [inline]

Definition at line 72 of file TSVG.h.

void TSVG::SetMarkerColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttMarker.

void TSVG::SetTextColor ( Color_t  cindex = 1  )  [virtual]

Reimplemented from TAttText.

void TSVG::Text ( Double_t  x,
Double_t  y,
const char *  string 
) [virtual]

Implements TVirtualPS.

void TSVG::TextNDC ( Double_t  u,
Double_t  v,
const char *  string 
)

Int_t TSVG::UtoSVG ( Double_t  u  ) 

Int_t TSVG::VtoSVG ( Double_t  v  ) 

Int_t TSVG::XtoSVG ( Double_t  x  ) 

Int_t TSVG::YtoSVG ( Double_t  y  ) 


Member Data Documentation

Float_t TSVG::fXsize [protected]

Definition at line 33 of file TSVG.h.

Referenced by DrawPolyMarker(), NewPage(), Open(), Range(), Text(), and UtoSVG().

Float_t TSVG::fYsize [protected]

Definition at line 34 of file TSVG.h.

Referenced by NewPage(), Open(), Range(), Text(), and VtoSVG().

Int_t TSVG::fType [protected]

Definition at line 35 of file TSVG.h.

Referenced by On(), and Open().

Bool_t TSVG::fBoundingBox [protected]

Definition at line 36 of file TSVG.h.

Referenced by NewPage(), and Open().

Bool_t TSVG::fRange [protected]

Definition at line 37 of file TSVG.h.

Referenced by Open(), and Range().

Int_t TSVG::fYsizeSVG [protected]

Definition at line 38 of file TSVG.h.

Referenced by NewPage(), and YtoSVG().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:47:30 2011 for ROOT_528-00b_version by  doxygen 1.5.1