forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TGLOutput.h
45 lines (34 loc) · 1.74 KB
/
TGLOutput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// @(#)root/gl:$Id$
// Author: Richard Maunder, Olivier Couet 02/07/2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TGLOutput
#define ROOT_TGLOutput
#include "Rtypes.h"
class TGLViewer;
//////////////////////////////////////////////////////////////////////////
// //
// TGLOutput //
// //
// Wrapper class for GL capture & output routines //
//////////////////////////////////////////////////////////////////////////
class TGLOutput {
public:
enum EFormat { kEPS_SIMPLE, kEPS_BSP, kPDF_SIMPLE, kPDF_BSP };
static Bool_t Capture(TGLViewer & viewer, EFormat format,
const char * filePath = 0);
static void StartEmbeddedPS();//gl to ps in pad, "embedded" does not mean eps format here
static void CloseEmbeddedPS();
static void Capture(TGLViewer & viewer);
virtual ~TGLOutput() { }
private:
static Bool_t CapturePostscript(TGLViewer & viewer, EFormat format,
const char * filePath);
ClassDef(TGLOutput,0) // Wrapper class for GL capture & output routines
};
#endif