00001 // @(#)root/gl:$Id: TGLOutput.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Richard Maunder, Olivier Couet 02/07/2005 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TGLOutput 00013 #define ROOT_TGLOutput 00014 00015 #ifndef ROOT_Rtypes 00016 #include "Rtypes.h" 00017 #endif 00018 00019 class TGLViewer; 00020 00021 ////////////////////////////////////////////////////////////////////////// 00022 // // 00023 // TGLOutput // 00024 // // 00025 // Wrapper class for GL capture & output routines // 00026 ////////////////////////////////////////////////////////////////////////// 00027 00028 class TGLOutput { 00029 public: 00030 enum EFormat { kEPS_SIMPLE, kEPS_BSP, kPDF_SIMPLE, kPDF_BSP }; 00031 static Bool_t Capture(TGLViewer & viewer, EFormat format, 00032 const char * filePath = 0); 00033 00034 static void StartEmbeddedPS();//gl to ps in pad, "embedded" does not mean eps format here 00035 static void CloseEmbeddedPS(); 00036 static void Capture(TGLViewer & viewer); 00037 00038 virtual ~TGLOutput() { } 00039 00040 private: 00041 static Bool_t CapturePostscript(TGLViewer & viewer, EFormat format, 00042 const char * filePath); 00043 00044 ClassDef(TGLOutput,0) // Wrapper class for GL capture & output routines 00045 }; 00046 00047 #endif