ROOT logo
ROOT » GRAF3D » GL » TGLOutput

class TGLOutput


TGLOutput

Wrapper class for GL capture & output routines

Function Members (Methods)

public:
TGLOutput()
TGLOutput(const TGLOutput&)
virtual~TGLOutput()
static voidCapture(TGLViewer& viewer)
static Bool_tCapture(TGLViewer& viewer, TGLOutput::EFormat format, const char* filePath = 0)
static TClass*Class()
static voidCloseEmbeddedPS()
virtual TClass*IsA() const
TGLOutput&operator=(const TGLOutput&)
virtual voidShowMembers(TMemberInspector& insp)
static voidStartEmbeddedPS()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
private:
static Bool_tCapturePostscript(TGLViewer& viewer, TGLOutput::EFormat format, const char* filePath)

Data Members

public:
enum EFormat { kEPS_SIMPLE
kEPS_BSP
kPDF_SIMPLE
kPDF_BSP
};

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Bool_t Capture(TGLViewer& viewer, TGLOutput::EFormat format, const char* filePath = 0)
 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
Bool_t CapturePostscript(TGLViewer& viewer, TGLOutput::EFormat format, const char* filePath)
 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
void StartEmbeddedPS()
this function used by gl-in-pad
void CloseEmbeddedPS()
this function used by gl-in-pad
 Restore the gVirtualPS output stream
void Capture(TGLViewer& viewer)
this function used by gl-viewer, embedded into pad
virtual ~TGLOutput()
{ }