Ignore:
Timestamp:
Mar 5, 2009, 5:37:00 PM (15 years ago)
Author:
garnier
Message:

print methods renaming. See History file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r940 r941  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.37 2009/03/05 11:04:20 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.cc,v 1.38 2009/03/05 16:36:13 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    13241324    if ((exportDialog->getWidth() !=fWindow->width()) ||
    13251325        (exportDialog->getHeight() !=fWindow->height())) {
     1326      fPrintSizeX = exportDialog->getWidth();
     1327      fPrintSizeY = exportDialog->getHeight();
    13261328      if ((format != QString("eps")) && (format != QString("ps"))) {
    13271329      G4cerr << "Export->Change Size : This function is not implemented, to export in another size, please resize your frame to what you need" << G4endl;
     
    13471349    }   
    13481350    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();
    13541353    } 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();
    13611356    } else if (format == "pdf") {
    13621357
     
    13821377      G4cerr << "This version of G4UI Could not generate the selected format" << G4endl;
    13831378    }
    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      }
    13881385    }
    13891386   
Note: See TracChangeset for help on using the changeset viewer.