Ignore:
Timestamp:
Dec 5, 2007, 10:50:44 AM (17 years ago)
Author:
garnier
Message:

amelioration du ticket #66

Location:
trunk/geant4/visualization/OpenGL/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc

    r635 r636  
    7676 
    7777  if (nomFich.endsWith(".jpg") ||
    78       nomFich.endsWith(".jepg")) {
     78      nomFich.endsWith(".jpeg")) {
    7979   
    8080    QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this);
     
    111111  }
    112112 
    113   if(nomFich.endsWith(".eps")) {
     113  if ((nomFich.endsWith(".ps")) || (nomFich.endsWith(".pdf")) || (nomFich.endsWith(".eps"))) {
    114114
    115115    //    transparencyEPS = new QCheckBox( "transparencyEPS" );
     
    157157     nomFich.endsWith(".tiff") ||
    158158     nomFich.endsWith(".jpg") ||
     159     nomFich.endsWith(".jpeg") ||
    159160     nomFich.endsWith(".png") ||
    160161     nomFich.endsWith(".xpm")) {
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r635 r636  
    11201120    }   
    11211121    // jpeg format
    1122     if (nomFich.endsWith(".jpg") ||
    1123         nomFich.endsWith(".jpeg")) {
    1124       // grabFrameBuffer() :: Returns an image of the frame buffer. If withAlpha is true the alpha channel is included.
    1125       image.save(nomFich,0,exportDialog->getSliderValue());
    1126 #ifdef GEANT4_QT_DEBUG
    1127       printf("saving jpeg quality : %d\n",exportDialog->getSliderValue());
    1128 #endif
    1129     } else if (nomFich.endsWith(".eps")) {
     1122    if (nomFich.endsWith(".eps")) {
    11301123      generateEPS(nomFich,exportDialog->getNbColor(),image);
    11311124    } else if (nomFich.endsWith(".ps") ||nomFich.endsWith(".pdf")) {
     
    11341127               nomFich.endsWith(".tiff") ||
    11351128               nomFich.endsWith(".jpg") ||
     1129               nomFich.endsWith(".jpeg") ||
    11361130               nomFich.endsWith(".png") ||
    11371131               nomFich.endsWith(".bmp") ||
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredViewer.cc

    r635 r636  
    126126void G4OpenGLStoredViewer::DrawDisplayLists () {
    127127
    128   printf("***************************  CASE AA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    129128  const G4Planes& cutaways = fVP.GetCutawayPlanes();
    130129  G4bool cutawayUnion = fVP.IsCutaway() &&
     
    132131  size_t nPasses = cutawayUnion? cutaways.size(): 1;
    133132  for (size_t i = 0; i < nPasses; ++i) {
    134     printf("***************************  CASE A ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    135133
    136134    if (cutawayUnion) {
     
    146144    if (fG4OpenGLStoredSceneHandler.fTopPODL) {
    147145      glCallList (fG4OpenGLStoredSceneHandler.fTopPODL);
    148     printf("***************************  CASE A1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    149146    }
    150147    for (size_t i = 0; i < fG4OpenGLStoredSceneHandler.fTOList.size(); ++i) {
    151     printf("***************************  CASE B1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    152148      G4OpenGLStoredSceneHandler::TO& to =
    153149        fG4OpenGLStoredSceneHandler.fTOList[i];
    154150      if (to.fEndTime >= fStartTime && to.fStartTime <= fEndTime) {
    155     printf("***************************  CASE B2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    156151        glPushMatrix();
    157152        G4OpenGLTransform3D oglt (to.fTransform);
     
    166161        glCallList (to.fDisplayListId);
    167162        glPopMatrix();
    168     printf("***************************  CASE B3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");
    169163      }
    170164    }
Note: See TracChangeset for help on using the changeset viewer.