Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
17class TGLViewer;
18
19//////////////////////////////////////////////////////////////////////////
20// //
21// TGLOutput //
22// //
23// Wrapper class for GL capture & output routines //
24//////////////////////////////////////////////////////////////////////////
25
26class TGLOutput {
27public:
29 static Bool_t Capture(TGLViewer & viewer, EFormat format,
30 const char * filePath = nullptr);
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
38private:
40 const char * filePath);
41
42 ClassDef(TGLOutput,0) // Wrapper class for GL capture & output routines
43};
44
45#endif
bool Bool_t
Definition RtypesCore.h:63
#define ClassDef(name, id)
Definition Rtypes.h:342
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 format
Wrapper class for GL capture & output routines.
Definition TGLOutput.h:26
virtual ~TGLOutput()
Definition TGLOutput.h:36
static Bool_t Capture(TGLViewer &viewer, EFormat format, const char *filePath=nullptr)
Capture viewer to file.
Definition TGLOutput.cxx:43
static void CloseEmbeddedPS()
this function used by gl-in-pad Restore the gVirtualPS output stream
static void StartEmbeddedPS()
this function used by gl-in-pad
@ kEPS_SIMPLE
Definition TGLOutput.h:28
@ kPDF_SIMPLE
Definition TGLOutput.h:28
static Bool_t CapturePostscript(TGLViewer &viewer, EFormat format, const char *filePath)
Capture viewer to postscript file.
Definition TGLOutput.cxx:69
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition TGLViewer.h:55