Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGLOutput Class Reference

Wrapper class for GL capture & output routines.

Definition at line 26 of file TGLOutput.h.

Public Types

enum  EFormat { kEPS_SIMPLE , kEPS_BSP , kPDF_SIMPLE , kPDF_BSP }
 

Public Member Functions

virtual ~TGLOutput ()
 
virtual TClassIsA () const
 
virtual void Streamer (TBuffer &)
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static void Capture (TGLViewer &viewer)
 this function used by gl-viewer, embedded into pad
 
static Bool_t Capture (TGLViewer &viewer, EFormat format, const char *filePath=nullptr)
 Capture viewer to file.
 
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static void CloseEmbeddedPS ()
 this function used by gl-in-pad Restore the gVirtualPS output stream
 
static const char * DeclFileName ()
 
static void StartEmbeddedPS ()
 this function used by gl-in-pad
 

Static Private Member Functions

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

#include <TGLOutput.h>

Member Enumeration Documentation

◆ EFormat

Enumerator
kEPS_SIMPLE 
kEPS_BSP 
kPDF_SIMPLE 
kPDF_BSP 

Definition at line 28 of file TGLOutput.h.

Constructor & Destructor Documentation

◆ ~TGLOutput()

virtual TGLOutput::~TGLOutput ( )
inlinevirtual

Definition at line 36 of file TGLOutput.h.

Member Function Documentation

◆ Capture() [1/2]

void TGLOutput::Capture ( TGLViewer viewer)
static

this function used by gl-viewer, embedded into pad

Definition at line 198 of file TGLOutput.cxx.

◆ Capture() [2/2]

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

Capture viewer to file.

Arguments are:

  • 'viewer' - viewer object to capture from
  • 'format' - output format - only postscript types presently. One of kEPS_SIMPLE, kEPS_BSP, kPDF_SIMPLE or kPDF_BSP See TGLOutput::CapturePostscript() for meanings
  • 'filePath' - file output name. If null defaults to './viewer.eps' or './viewer.pdf' depending on format requested

Note : Output files can be large and take considerable time (up to mins) to generate

Definition at line 43 of file TGLOutput.cxx.

◆ CapturePostscript()

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 69 of file TGLOutput.cxx.

◆ Class()

static TClass * TGLOutput::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGLOutput::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGLOutput::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 42 of file TGLOutput.h.

◆ CloseEmbeddedPS()

void TGLOutput::CloseEmbeddedPS ( )
static

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

Definition at line 182 of file TGLOutput.cxx.

◆ DeclFileName()

static const char * TGLOutput::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 42 of file TGLOutput.h.

◆ IsA()

virtual TClass * TGLOutput::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 42 of file TGLOutput.h.

◆ StartEmbeddedPS()

void TGLOutput::StartEmbeddedPS ( )
static

this function used by gl-in-pad

Definition at line 138 of file TGLOutput.cxx.

◆ Streamer()

virtual void TGLOutput::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TGLOutput::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 42 of file TGLOutput.h.


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