Logo ROOT   6.10/09
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 #include "Rtypes.h"
16 
17 class TGLViewer;
18 
19 //////////////////////////////////////////////////////////////////////////
20 // //
21 // TGLOutput //
22 // //
23 // Wrapper class for GL capture & output routines //
24 //////////////////////////////////////////////////////////////////////////
25 
26 class TGLOutput {
27 public:
29  static Bool_t Capture(TGLViewer & viewer, EFormat format,
30  const char * filePath = 0);
31 
32  static void StartEmbeddedPS();//gl to ps in pad, "embedded" does not mean eps format here
33  static void CloseEmbeddedPS();
34  static void Capture(TGLViewer & viewer);
35 
36  virtual ~TGLOutput() { }
37 
38 private:
39  static Bool_t CapturePostscript(TGLViewer & viewer, EFormat format,
40  const char * filePath);
41 
42  ClassDef(TGLOutput,0) // Wrapper class for GL capture & output routines
43 };
44 
45 #endif
virtual ~TGLOutput()
Definition: TGLOutput.h:36
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:68
Wrapper class for GL capture & output routines.
Definition: TGLOutput.h:26
#define ClassDef(name, id)
Definition: Rtypes.h:297
static void StartEmbeddedPS()
this function used by gl-in-pad
Definition: TGLOutput.cxx:137
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:42
static void CloseEmbeddedPS()
this function used by gl-in-pad Restore the gVirtualPS output stream
Definition: TGLOutput.cxx:181