31 #ifdef G4VIS_BUILD_OPENGL_DRIVER
32 #define G4VIS_BUILD_OPENGL_GL2PS
34 #ifdef G4VIS_BUILD_OI_DRIVER
35 #define G4VIS_BUILD_OPENGL_GL2PS
38 #ifdef G4VIS_BUILD_OPENGL_GL2PS
79 gl2psLineWidth( width );
89 gl2psPointSize( size );
110 const char* aFileName
115 fFileName = (strncpy((
char*)malloc((
unsigned)strlen(aFileName) + 1), aFileName, (
unsigned)strlen(aFileName) + 1));
129 setvbuf (
fFile , NULL , _IONBF , 2048 );
138 int state = gl2psEndPage();
140 if (state == GL2PS_OVERFLOW) {
174 return (
fFile?
true:
false);
182 if(!
fFile)
return false;
184 GL2PS_BEST_ROOT | GL2PS_DRAW_BACKGROUND |GL2PS_USE_CURRENT_VIEWPORT;
185 int sort = GL2PS_BSP_SORT;
188 GLint res = gl2psBeginPage(
"Geant4 output",
"Geant4",
193 GL_RGBA,0, NULL,0,0,0,
196 if (res == GL2PS_ERROR) {
200 gl2psEnable(GL2PS_BLEND);
bool disableFileWriting()
void setFileName(const char *)
unsigned int fExportImageFormat
void setExportImageFormat(unsigned int)
void resetBufferSizeParameters()
void setViewport(int, int, int, int)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
bool fileWritingEnabled() const