Import Geant4 10.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 14:11:04 +02:00
parent c9b32a6c0a
commit d4af681f38
4886 changed files with 420149 additions and 1023309 deletions
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4OpenInventorViewer.cc 66373 2012-12-18 09:41:34Z gcosmo $
// $Id: G4OpenInventorViewer.cc 88190 2015-02-02 17:24:54Z gcosmo $
#ifdef G4VIS_BUILD_OI_DRIVER
@@ -482,11 +482,29 @@ void G4OpenInventorViewer::Escape(){
void G4OpenInventorViewer::WritePostScript(const G4String& aFile) {
if(!fGL2PSAction) return;
fGL2PSAction->setFileName(aFile.c_str());
fGL2PSAction->setExportImageFormat(GL2PS_EPS);
// Use gl2ps default buffer (2048*2048)
fGL2PSAction->setBufferSize(0);
G4cout << "Produce " << aFile << "..." << G4endl;
if (fGL2PSAction->enableFileWriting()) {
ViewerRender();
fGL2PSAction->disableFileWriting();
}
fGL2PSAction->resetBufferSizeParameters();
}
void G4OpenInventorViewer::WritePDF(const G4String& aFile) {
if(!fGL2PSAction) return;
fGL2PSAction->setFileName(aFile.c_str());
fGL2PSAction->setExportImageFormat(GL2PS_PDF);
// Use gl2ps default buffer (2048*2048)
fGL2PSAction->setBufferSize(0);
G4cout << "Produce " << aFile << "..." << G4endl;
if (fGL2PSAction->enableFileWriting()) {
ViewerRender();
fGL2PSAction->disableFileWriting();
}
fGL2PSAction->resetBufferSizeParameters();
}
void G4OpenInventorViewer::WritePixmapPostScript(const G4String& aFile) {