Changeset 589 for trunk/geant4/visualization/OpenGL/src
- Timestamp:
- Sep 28, 2007, 5:16:34 PM (17 years ago)
- Location:
- trunk/geant4/visualization/OpenGL/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog.cc
r587 r589 87 87 } 88 88 89 if(nomFich.endsWith(".eps") || 90 nomFich.endsWith(".jpg")) { 89 if(nomFich.endsWith(".eps")) { 91 90 QGroupBox *EPSGroupBox = new QGroupBox(tr("EPS options")); 92 91 QVBoxLayout *EPSGroupBoxLayout = new QVBoxLayout; 93 92 94 transparencyEPS = new QCheckBox( "transparencyEPS" );95 transparencyEPS->setText( "save background" );96 transparencyEPS->setChecked( true );93 // transparencyEPS = new QCheckBox( "transparencyEPS" ); 94 // transparencyEPS->setText( "save background" ); 95 // transparencyEPS->setChecked( true ); 97 96 98 97 color = new QRadioButton("Color"); … … 102 101 103 102 104 EPSGroupBoxLayout->addWidget(transparencyEPS);103 // EPSGroupBoxLayout->addWidget(transparencyEPS); 105 104 EPSGroupBoxLayout->addWidget(color); 106 105 EPSGroupBoxLayout->addWidget(BW); … … 241 240 if (!color->isChecked()) 242 241 return 1; 243 // rgb color with alpha244 if (color->isChecked() && transparencyEPS->isChecked())245 return 4;246 242 // rgb color 247 243 return 3; -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r588 r589 871 871 872 872 FILE* fp; 873 aInColor = 3; 874 873 874 if ((!aImage.isGrayscale ()) &&(aInColor ==1 )) { 875 aImage.convertToFormat ( aImage.format(), Qt::MonoOnly); 876 } 875 877 const uchar * pixels = aImage.bits (); 876 878
Note: See TracChangeset
for help on using the changeset viewer.