TImageDump Class Reference

#include <TImageDump.h>

Inheritance diagram for TImageDump:

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

 TImageDump ()
 TImageDump (const char *filename, Int_t type=-111)
virtual ~TImageDump ()
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="")
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 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 NewPage ()
void Open (const char *filename, Int_t type=-111)
void Text (Double_t x, Double_t y, const char *string)
void SetColor (Float_t r, Float_t g, Float_t b)
void * GetStream () const
void SetType (Int_t type=-111)
Int_t GetType () const
TImageGetImage () const
 TImageDump ()
 TImageDump (const char *filename, Int_t type=-111)
virtual ~TImageDump ()
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="")
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 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 NewPage ()
void Open (const char *filename, Int_t type=-111)
void Text (Double_t x, Double_t y, const char *string)
void SetColor (Float_t r, Float_t g, Float_t b)
void * GetStream () const
void SetType (Int_t type=-111)
Int_t GetType () const
TImageGetImage () const

Protected Member Functions

Int_t XtoPixel (Double_t x)
Int_t YtoPixel (Double_t y)
void DrawDashPolyLine (Int_t npoints, TPoint *pt, UInt_t nDash, const char *pDash, const char *col, UInt_t thick)
Int_t XtoPixel (Double_t x)
Int_t YtoPixel (Double_t y)
void DrawDashPolyLine (Int_t npoints, TPoint *pt, UInt_t nDash, const char *pDash, const char *col, UInt_t thick)

Protected Attributes

TImagefImage
Int_t fType
TImagefImage

Detailed Description

Definition at line 33 of file TImageDump.h.


Constructor & Destructor Documentation

TImageDump::TImageDump (  ) 

Referenced by G__G__PostScript_120_0_5().

TImageDump::TImageDump ( const char *  filename,
Int_t  type = -111 
)

Definition at line 66 of file TImageDump.cxx.

References gVirtualPS, and Open().

TImageDump::~TImageDump (  )  [virtual]

Definition at line 93 of file TImageDump.cxx.

References Close(), fImage, and gVirtualPS.

TImageDump::TImageDump (  ) 

TImageDump::TImageDump ( const char *  filename,
Int_t  type = -111 
)

virtual TImageDump::~TImageDump (  )  [virtual]


Member Function Documentation

Int_t TImageDump::XtoPixel ( Double_t  x  )  [protected]

Definition at line 759 of file TImageDump.cxx.

References gPad.

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

Int_t TImageDump::YtoPixel ( Double_t  y  )  [protected]

Definition at line 767 of file TImageDump.cxx.

References gPad.

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

void TImageDump::DrawDashPolyLine ( Int_t  npoints,
TPoint pt,
UInt_t  nDash,
const char *  pDash,
const char *  col,
UInt_t  thick 
) [protected]

Definition at line 610 of file TImageDump.cxx.

References TImage::DrawDashLine(), fImage, i, x, x0, xy, and y.

Referenced by DrawPS().

void TImageDump::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 680 of file TImageDump.cxx.

References TImage::BeginPaint(), fImage, gCellArrayColors, gCellArrayH, gCellArrayIdx, gCellArrayN, gCellArrayW, gCellArrayX1, gCellArrayX2, gCellArrayY1, gCellArrayY2, gPad, XtoPixel(), and YtoPixel().

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

Implements TVirtualPS.

Definition at line 709 of file TImageDump.cxx.

References TImage::BeginPaint(), fImage, gCellArrayColors, gCellArrayIdx, and gCellArrayN.

void TImageDump::CellArrayEnd (  )  [virtual]

Implements TVirtualPS.

Definition at line 722 of file TImageDump.cxx.

References TImage::BeginPaint(), TImage::DrawCellArray(), fImage, gCellArrayColors, gCellArrayH, gCellArrayIdx, gCellArrayN, gCellArrayW, gCellArrayX1, gCellArrayX2, gCellArrayY1, and gCellArrayY2.

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

Implements TVirtualPS.

Definition at line 106 of file TImageDump.cxx.

References fImage, fType, TNamed::GetName(), and TImage::WriteImage().

Referenced by ~TImageDump().

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

Implements TVirtualPS.

Definition at line 120 of file TImageDump.cxx.

References TMath::Abs(), TColor::AsHexString(), TImage::BeginPaint(), TImage::DrawBox(), DrawPS(), TAttFill::fFillColor, TAttFill::fFillStyle, fImage, TAttLine::fLineColor, TAttLine::fLineWidth, TROOT::GetColor(), gPad, gROOT, TVirtualX::kFilled, TVirtualX::kHollow, x, XtoPixel(), y, and YtoPixel().

void TImageDump::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 183 of file TImageDump.cxx.

References TColor::AsHexString(), TImage::BeginPaint(), TImage::DrawBox(), TImage::DrawFillArea(), fImage, TAttLine::fLineColor, TPoint::fX, TPoint::fY, TROOT::GetColor(), gPad, gROOT, hi, TImage::IsValid(), TVirtualX::kFilled, XtoPixel(), and YtoPixel().

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

Implements TVirtualPS.

Definition at line 270 of file TImageDump.cxx.

References fImage, and gPad.

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

Implements TVirtualPS.

Definition at line 280 of file TImageDump.cxx.

References TMath::Abs(), TColor::AsHexString(), TImage::BeginPaint(), TImage::DrawCircle(), TImage::DrawFillArea(), TImage::DrawLine(), TImage::DrawPolyLine(), TImage::DrawRectangle(), TImage::FillPolygon(), TImage::FillRectangle(), fImage, TAttMarker::fMarkerColor, TAttMarker::fMarkerSize, TAttMarker::fMarkerStyle, TPoint::fX, TPoint::fY, TROOT::GetColor(), gPad, gROOT, i, m, TImage::PutPixel(), XtoPixel(), and YtoPixel().

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

Implements TVirtualPS.

Definition at line 601 of file TImageDump.cxx.

References fImage, and gPad.

Referenced by DrawBox().

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

Implements TVirtualPS.

Definition at line 440 of file TImageDump.cxx.

References TMath::Abs(), TColor::AsHexString(), TObjArray::At(), TImage::BeginPaint(), TImage::DrawDashLine(), DrawDashPolyLine(), TImage::DrawFillArea(), TImage::DrawLine(), TImage::DrawPolyLine(), TAttFill::fFillColor, TAttFill::fFillStyle, TImage::FillPolygon(), fImage, TAttLine::fLineColor, TAttLine::fLineStyle, TAttLine::fLineWidth, TPoint::fX, TPoint::fY, TROOT::GetColor(), TObjArray::GetEntries(), TStyle::GetLineStyleString(), TNamed::GetName(), gPad, gROOT, gStipples, gStyle, i, j, kFALSE, kTRUE, line, TMath::Min(), n, TImage::PutPixel(), TString::Tokenize(), XtoPixel(), and YtoPixel().

void TImageDump::NewPage (  )  [virtual]

Implements TVirtualPS.

Definition at line 632 of file TImageDump.cxx.

References TImage::DrawRectangle(), fImage, gPad, h, and w.

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

Implements TVirtualPS.

Definition at line 82 of file TImageDump.cxx.

References TImage::Create(), fImage, TVirtualPS::fStream, fType, and TNamed::SetName().

Referenced by TImageDump().

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

Implements TVirtualPS.

Definition at line 645 of file TImageDump.cxx.

References TImage::BeginPaint(), TImage::DrawText(), fImage, TAttText::fTextAlign, TAttText::fTextAngle, TAttText::fTextColor, TAttText::fTextFont, TAttText::fTextSize, gPad, t, XtoPixel(), and YtoPixel().

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

Implements TVirtualPS.

Definition at line 748 of file TImageDump.cxx.

Referenced by G__G__PostScript_122_0_30(), G__G__PostScript_123_0_37(), and G__G__PostScript_124_0_23().

void* TImageDump::GetStream (  )  const [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 63 of file TImageDump.h.

References fImage.

void TImageDump::SetType ( Int_t  type = -111  )  [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 64 of file TImageDump.h.

References fType, and type.

Int_t TImageDump::GetType (  )  const [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 65 of file TImageDump.h.

References fType.

TImage* TImageDump::GetImage (  )  const [inline]

Definition at line 66 of file TImageDump.h.

References fImage.

Referenced by G__G__PostScript_120_0_23(), and trans_graph().

Int_t TImageDump::XtoPixel ( Double_t  x  )  [protected]

Int_t TImageDump::YtoPixel ( Double_t  y  )  [protected]

void TImageDump::DrawDashPolyLine ( Int_t  npoints,
TPoint pt,
UInt_t  nDash,
const char *  pDash,
const char *  col,
UInt_t  thick 
) [protected]

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

Implements TVirtualPS.

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

Implements TVirtualPS.

void TImageDump::CellArrayEnd (  )  [virtual]

Implements TVirtualPS.

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

Implements TVirtualPS.

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

Implements TVirtualPS.

void TImageDump::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 TImageDump::DrawPolyMarker ( Int_t  n,
Float_t x,
Float_t y 
) [virtual]

Implements TVirtualPS.

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

Implements TVirtualPS.

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

Implements TVirtualPS.

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

Implements TVirtualPS.

void TImageDump::NewPage (  )  [virtual]

Implements TVirtualPS.

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

Implements TVirtualPS.

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

Implements TVirtualPS.

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

Implements TVirtualPS.

void* TImageDump::GetStream (  )  const [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 63 of file TImageDump.h.

References fImage.

void TImageDump::SetType ( Int_t  type = -111  )  [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 64 of file TImageDump.h.

References fType, and type.

Int_t TImageDump::GetType (  )  const [inline, virtual]

Reimplemented from TVirtualPS.

Definition at line 65 of file TImageDump.h.

References fType.

TImage* TImageDump::GetImage (  )  const [inline]

Definition at line 66 of file TImageDump.h.

References fImage.


Member Data Documentation

TImage* TImageDump::fImage [protected]

Definition at line 35 of file TImageDump.h.

Referenced by CellArrayBegin(), CellArrayEnd(), CellArrayFill(), Close(), DrawBox(), DrawDashPolyLine(), DrawFrame(), DrawPolyMarker(), DrawPS(), GetImage(), GetStream(), NewPage(), Open(), Text(), and ~TImageDump().

Int_t TImageDump::fType [protected]

Definition at line 36 of file TImageDump.h.

Referenced by Close(), GetType(), Open(), and SetType().

TImage* TImageDump::fImage [protected]

Definition at line 35 of file TImageDump.h.


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