Changeset 636 for trunk/geant4
- Timestamp:
- Dec 5, 2007, 10:50:44 AM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r635 r636 76 76 77 77 if (nomFich.endsWith(".jpg") || 78 nomFich.endsWith(".j epg")) {78 nomFich.endsWith(".jpeg")) { 79 79 80 80 QGroupBox *imageGroupBox = new QGroupBox(tr("Image quality"),this); … … 111 111 } 112 112 113 if (nomFich.endsWith(".eps")) {113 if ((nomFich.endsWith(".ps")) || (nomFich.endsWith(".pdf")) || (nomFich.endsWith(".eps"))) { 114 114 115 115 // transparencyEPS = new QCheckBox( "transparencyEPS" ); … … 157 157 nomFich.endsWith(".tiff") || 158 158 nomFich.endsWith(".jpg") || 159 nomFich.endsWith(".jpeg") || 159 160 nomFich.endsWith(".png") || 160 161 nomFich.endsWith(".xpm")) { -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r635 r636 1120 1120 } 1121 1121 // 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")) { 1130 1123 generateEPS(nomFich,exportDialog->getNbColor(),image); 1131 1124 } else if (nomFich.endsWith(".ps") ||nomFich.endsWith(".pdf")) { … … 1134 1127 nomFich.endsWith(".tiff") || 1135 1128 nomFich.endsWith(".jpg") || 1129 nomFich.endsWith(".jpeg") || 1136 1130 nomFich.endsWith(".png") || 1137 1131 nomFich.endsWith(".bmp") || -
trunk/geant4/visualization/OpenGL/src/G4OpenGLStoredViewer.cc
r635 r636 126 126 void G4OpenGLStoredViewer::DrawDisplayLists () { 127 127 128 printf("*************************** CASE AA ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");129 128 const G4Planes& cutaways = fVP.GetCutawayPlanes(); 130 129 G4bool cutawayUnion = fVP.IsCutaway() && … … 132 131 size_t nPasses = cutawayUnion? cutaways.size(): 1; 133 132 for (size_t i = 0; i < nPasses; ++i) { 134 printf("*************************** CASE A ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");135 133 136 134 if (cutawayUnion) { … … 146 144 if (fG4OpenGLStoredSceneHandler.fTopPODL) { 147 145 glCallList (fG4OpenGLStoredSceneHandler.fTopPODL); 148 printf("*************************** CASE A1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");149 146 } 150 147 for (size_t i = 0; i < fG4OpenGLStoredSceneHandler.fTOList.size(); ++i) { 151 printf("*************************** CASE B1 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");152 148 G4OpenGLStoredSceneHandler::TO& to = 153 149 fG4OpenGLStoredSceneHandler.fTOList[i]; 154 150 if (to.fEndTime >= fStartTime && to.fStartTime <= fEndTime) { 155 printf("*************************** CASE B2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");156 151 glPushMatrix(); 157 152 G4OpenGLTransform3D oglt (to.fTransform); … … 166 161 glCallList (to.fDisplayListId); 167 162 glPopMatrix(); 168 printf("*************************** CASE B3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ \n");169 163 } 170 164 }
Note: See TracChangeset
for help on using the changeset viewer.