Logo ROOT   6.08/07
Reference Guide
TGLOutput.h
Go to the documentation of this file.
1 // @(#)root/gl:$Id$
2 // Author: Richard Maunder, Olivier Couet 02/07/2005
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2005, 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_TGLOutput
13 #define ROOT_TGLOutput
14 
15 #ifndef ROOT_Rtypes
16 #include "Rtypes.h"
17 #endif
18 
19 class TGLViewer;
20 
21 //////////////////////////////////////////////////////////////////////////
22 // //
23 // TGLOutput //
24 // //
25 // Wrapper class for GL capture & output routines //
26 //////////////////////////////////////////////////////////////////////////
27 
28 class TGLOutput {
29 public:
31  static Bool_t Capture(TGLViewer & viewer, EFormat format,
32  const char * filePath = 0);
33 
34  static void StartEmbeddedPS();//gl to ps in pad, "embedded" does not mean eps format here
35  static void CloseEmbeddedPS();
36  static void Capture(TGLViewer & viewer);
37 
38  virtual ~TGLOutput() { }
39 
40 private:
41  static Bool_t CapturePostscript(TGLViewer & viewer, EFormat format,
42  const char * filePath);
43 
44  ClassDef(TGLOutput,0) // Wrapper class for GL capture & output routines
45 };
46 
47 #endif
virtual ~TGLOutput()
Definition: TGLOutput.h:38
bool Bool_t
Definition: RtypesCore.h:59
static std::string format(double x, double y, int digits, int width)
static Bool_t CapturePostscript(TGLViewer &viewer, EFormat format, const char *filePath)
Capture viewer to postscript file.
Definition: TGLOutput.cxx:72
Wrapper class for GL capture & output routines.
Definition: TGLOutput.h:28
#define ClassDef(name, id)
Definition: Rtypes.h:254
static void StartEmbeddedPS()
this function used by gl-in-pad
Definition: TGLOutput.cxx:141
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
static Bool_t Capture(TGLViewer &viewer, EFormat format, const char *filePath=0)
Capture viewer to file.
Definition: TGLOutput.cxx:46
static void CloseEmbeddedPS()
this function used by gl-in-pad Restore the gVirtualPS output stream
Definition: TGLOutput.cxx:185