Logo ROOT  
Reference Guide
TImageDump.h
Go to the documentation of this file.
1// @(#)root/postscript:$Id$
2// Author: Valeriy Onuchin 29/04/2005
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TImageDump
13#define ROOT_TImageDump
14
15
16#include "TVirtualPS.h"
17
18class TImage;
19class TColor;
20class TPoint;
21
22class TImageDump : public TVirtualPS {
23protected:
24 TImage *fImage; ///< Image
25 Int_t fType; ///< PostScript workstation type
26
29 void DrawDashPolyLine(Int_t npoints, TPoint *pt, UInt_t nDash,
30 const char* pDash, const char* col, UInt_t thick);
31
32public:
33 TImageDump();
34 TImageDump(const char *filename, Int_t type = -111);
35 virtual ~TImageDump();
36
39 void CellArrayEnd();
40 void Close(Option_t *opt = "");
42 void DrawFrame(Double_t xl, Double_t yl, Double_t xt, Double_t yt,
43 Int_t mode, Int_t border, Int_t dark, Int_t light);
46 void DrawPS(Int_t n, Float_t *xw, Float_t *yw);
47 void DrawPS(Int_t n, Double_t *xw, Double_t *yw);
48 void NewPage();
49 void Open(const char *filename, Int_t type = -111);
50 void Text(Double_t x, Double_t y, const char *string);
51 void Text(Double_t x, Double_t y, const wchar_t *string);
53 void *GetStream() const { return (void*)fImage; }
54 void SetType(Int_t type = -111) { fType = type; }
55 Int_t GetType() const { return fType; }
56 TImage *GetImage() const { return fImage; }
57
58 ClassDef(TImageDump,0) // create image in batch mode
59};
60
61#endif
float Float_t
Definition: RtypesCore.h:57
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:335
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t b
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char mode
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t g
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char y1
The color creation and management class.
Definition: TColor.h:19
Save canvas as an image (GIF, JPEG, PNG, XPM, TIFF etc.).
Definition: TImageDump.h:22
void DrawBox(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Draw a Box.
Definition: TImageDump.cxx:120
virtual ~TImageDump()
destructor
Definition: TImageDump.cxx:93
void NewPage()
new page
Definition: TImageDump.cxx:831
void Text(Double_t x, Double_t y, const char *string)
Draw text.
Definition: TImageDump.cxx:847
void DrawDashPolyLine(Int_t npoints, TPoint *pt, UInt_t nDash, const char *pDash, const char *col, UInt_t thick)
draw dashed polyline
Definition: TImageDump.cxx:809
TImageDump()
Default constructor.
Definition: TImageDump.cxx:53
Int_t YtoPixel(Double_t y)
y to pixel
Definition: TImageDump.cxx:989
TImage * fImage
Image.
Definition: TImageDump.h:24
void SetColor(Float_t r, Float_t g, Float_t b)
Set color with its R G B components.
Definition: TImageDump.cxx:974
void CellArrayFill(Int_t r, Int_t g, Int_t b)
Cell array fill.
Definition: TImageDump.cxx:931
void Close(Option_t *opt="")
Close a image file.
Definition: TImageDump.cxx:106
void Open(const char *filename, Int_t type=-111)
Open a image file.
Definition: TImageDump.cxx:82
void DrawPS(Int_t n, Float_t *xw, Float_t *yw)
not used
Definition: TImageDump.cxx:799
void CellArrayEnd()
Cell array end.
Definition: TImageDump.cxx:944
void DrawPolyMarker(Int_t n, Float_t *x, Float_t *y)
not used
Definition: TImageDump.cxx:275
void SetType(Int_t type=-111)
Definition: TImageDump.h:54
TImage * GetImage() const
Definition: TImageDump.h:56
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)
Draw a Frame around a box.
Definition: TImageDump.cxx:194
void CellArrayBegin(Int_t W, Int_t H, Double_t x1, Double_t x2, Double_t y1, Double_t y2)
cell array begin
Definition: TImageDump.cxx:902
Int_t fType
PostScript workstation type.
Definition: TImageDump.h:25
Int_t GetType() const
Definition: TImageDump.h:55
Int_t XtoPixel(Double_t x)
x to pixel
Definition: TImageDump.cxx:981
void * GetStream() const
Definition: TImageDump.h:53
An abstract interface to image processing library.
Definition: TImage.h:29
Definition: TPoint.h:31
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
Definition: TVirtualPS.h:30
TPaveText * pt
Double_t y[n]
Definition: legend1.C:17
Double_t x[n]
Definition: legend1.C:17
const Int_t n
Definition: legend1.C:16
#define H(x, y, z)