Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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:
28  enum EFormat { kEPS_SIMPLE, kEPS_BSP, kPDF_SIMPLE, kPDF_BSP };
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