Changeset 941 for trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
- Timestamp:
- Mar 5, 2009, 5:37:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r940 r941 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.cc,v 1.3 7 2009/03/05 11:04:20lgarnier Exp $27 // $Id: G4OpenGLQtViewer.cc,v 1.38 2009/03/05 16:36:13 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 1324 1324 if ((exportDialog->getWidth() !=fWindow->width()) || 1325 1325 (exportDialog->getHeight() !=fWindow->height())) { 1326 fPrintSizeX = exportDialog->getWidth(); 1327 fPrintSizeY = exportDialog->getHeight(); 1326 1328 if ((format != QString("eps")) && (format != QString("ps"))) { 1327 1329 G4cerr << "Export->Change Size : This function is not implemented, to export in another size, please resize your frame to what you need" << G4endl; … … 1347 1349 } 1348 1350 if (format == QString("eps")) { 1349 if (exportDialog->getVectorEPS()) { 1350 res = printVectoredEPS(); 1351 } else { 1352 res = printNonVectoredEPS(exportDialog->getNbColor(),(unsigned int)image.width(),(unsigned int)image.height()); 1353 } 1351 fVectoredPs = exportDialog->getVectorEPS(); 1352 printEPS(); 1354 1353 } else if (format == "ps") { 1355 if ((exportDialog->getWidth() !=fWindow->width()) || 1356 (exportDialog->getHeight() !=fWindow->height())) { 1357 res = printGl2PS(exportDialog->getWidth(),exportDialog->getHeight()); 1358 } else { 1359 res = printGl2PS(fWindow->width(),fWindow->height()); 1360 } 1354 fVectoredPs = true; 1355 printEPS(); 1361 1356 } else if (format == "pdf") { 1362 1357 … … 1382 1377 G4cerr << "This version of G4UI Could not generate the selected format" << G4endl; 1383 1378 } 1384 if (res == false) { 1385 G4cerr << "Error while saving file... "<<fPrintFilename.c_str()<< G4endl; 1386 } else { 1387 G4cout << "File "<<fPrintFilename.c_str()<<" has been saved " << G4endl; 1379 if ((format == QString("eps")) && (format == QString("ps"))) { 1380 if (res == false) { 1381 G4cerr << "Error while saving file... "<<fPrintFilename.c_str()<< G4endl; 1382 } else { 1383 G4cout << "File "<<fPrintFilename.c_str()<<" has been saved " << G4endl; 1384 } 1388 1385 } 1389 1386
Note: See TracChangeset
for help on using the changeset viewer.