ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
TGLOutput Class Reference

Wrapper class for GL capture & output routines.

Definition at line 28 of file TGLOutput.h.

Public Types

enum  EFormat { kEPS_SIMPLE, kEPS_BSP, kPDF_SIMPLE, kPDF_BSP }
 

Public Member Functions

virtual ~TGLOutput ()
 

Static Public Member Functions

static Bool_t Capture (TGLViewer &viewer, EFormat format, const char *filePath=0)
 
static void StartEmbeddedPS ()
 this function used by gl-in-pad More...
 
static void CloseEmbeddedPS ()
 this function used by gl-in-pad Restore the gVirtualPS output stream More...
 
static void Capture (TGLViewer &viewer)
 this function used by gl-viewer, embedded into pad More...
 

Static Private Member Functions

static Bool_t CapturePostscript (TGLViewer &viewer, EFormat format, const char *filePath)
 Capture viewer to postscript file. More...
 

#include <TGLOutput.h>

Member Enumeration Documentation

Enumerator
kEPS_SIMPLE 
kEPS_BSP 
kPDF_SIMPLE 
kPDF_BSP 

Definition at line 30 of file TGLOutput.h.

Constructor & Destructor Documentation

virtual TGLOutput::~TGLOutput ( )
inlinevirtual

Definition at line 38 of file TGLOutput.h.

Member Function Documentation

static Bool_t TGLOutput::Capture ( TGLViewer viewer,
EFormat  format,
const char *  filePath = 0 
)
static
void TGLOutput::Capture ( TGLViewer viewer)
static

this function used by gl-viewer, embedded into pad

Definition at line 196 of file TGLOutput.cxx.

Bool_t TGLOutput::CapturePostscript ( TGLViewer viewer,
EFormat  format,
const char *  filePath 
)
staticprivate

Capture viewer to postscript file.

Arguments are:

  • 'viewer' - viewer object to capture from
  • 'format' - output format
    • kEPS_SIMPLE - lower quality EPS
    • kEPS_BSP - higher quality EPS
    • kPDF_SIMPLE - lower quality PDF
    • kPDF_BSP - higher quality PDF
  • 'filePath' - file output name. If null defaults to './viewer.eps' or './viewer.pdf' depending on format requested

Definition at line 67 of file TGLOutput.cxx.

void TGLOutput::CloseEmbeddedPS ( )
static

this function used by gl-in-pad Restore the gVirtualPS output stream

Definition at line 180 of file TGLOutput.cxx.

Referenced by Capture(), and TGLPlotPainter::PrintPlot().

void TGLOutput::StartEmbeddedPS ( )
static

this function used by gl-in-pad

Definition at line 136 of file TGLOutput.cxx.

Referenced by Capture(), and TGLPlotPainter::PrintPlot().


The documentation for this class was generated from the following files: