Changeset 589


Ignore:
Timestamp:
Sep 28, 2007, 5:16:34 PM (17 years ago)
Author:
garnier
Message:

r618@mac-90108: laurentgarnier | 2007-09-26 18:45:28 +0200
eps ok couleur et BW

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

Legend:

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

    r587 r589  
    8787  }
    8888 
    89   if(nomFich.endsWith(".eps") ||
    90      nomFich.endsWith(".jpg")) {
     89  if(nomFich.endsWith(".eps")) {
    9190    QGroupBox *EPSGroupBox = new QGroupBox(tr("EPS options"));
    9291    QVBoxLayout *EPSGroupBoxLayout = new QVBoxLayout;
    9392
    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 );
    9796
    9897    color = new QRadioButton("Color");
     
    102101
    103102
    104     EPSGroupBoxLayout->addWidget(transparencyEPS);   
     103    //    EPSGroupBoxLayout->addWidget(transparencyEPS);   
    105104    EPSGroupBoxLayout->addWidget(color);   
    106105    EPSGroupBoxLayout->addWidget(BW);   
     
    241240  if (!color->isChecked())
    242241    return 1;
    243   // rgb color with alpha
    244   if (color->isChecked() && transparencyEPS->isChecked())
    245     return 4;
    246242  // rgb color
    247243  return 3;
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r588 r589  
    871871
    872872  FILE* fp;
    873   aInColor = 3;
    874 
     873
     874  if ((!aImage.isGrayscale ()) &&(aInColor ==1 )) {
     875    aImage.convertToFormat ( aImage.format(), Qt::MonoOnly);
     876  }
    875877  const uchar * pixels = aImage.bits ();
    876878   
Note: See TracChangeset for help on using the changeset viewer.