Ignore:
Timestamp:
Mar 19, 2009, 11:04:17 AM (15 years ago)
Author:
garnier
Message:

en OGLIX ca marche...

File:
1 edited

Legend:

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

    r941 r946  
    177177  fpCommandFade->SetDefaultValue(0.);
    178178
     179
    179180  fpCommandPrintMode = new G4UIcmdWithAString
    180181    ("/vis/ogl/set/printMode",this);
     
    228229(G4UIcommand* command, G4String newValue)
    229230{
     231 
    230232  G4VisManager* pVisManager = G4VisManager::GetInstance();
     233
    231234
    232235  G4VViewer* pVViewer = pVisManager->GetCurrentViewer();
     
    250253  }
    251254
    252   if (command == fpCommandPrintEPS)
     255  if (command == fpCommandPrintEPS)  
    253256    {
    254257      // Keep copy of fPrintFilename to preserve Xm behaviour...
     
    261264      pOGLViewer->fPrintFilename = std::string(oss.str().c_str());
    262265      // Print eps file...
     266      printf("G4OpenGLViewerMessenger : Call printEPS \n");
    263267      pOGLViewer->printEPS();
    264268      // Restore fPrintFilename for Xm...
    265269      pOGLViewer->fPrintFilename = tmp_string;
    266270      return;
     271    }
     272
     273  if (command == fpCommandPrintMode)
     274    {
     275      if (newValue == "vectored") pOGLViewer->fVectoredPs = true;
     276      if (newValue == "pixmap") pOGLViewer->fVectoredPs = false;
    267277    }
    268278
     
    343353    }
    344354
    345   if (command == fpCommandPrintMode)
    346     {
    347       if (newValue == "vectored") pViewer->fVectoredPs = true;
    348       if (newValue == "pixmap") pViewer->fVectoredPs = false;
    349     }
    350 
    351355  if (command == fpCommandStartTime)
    352356    {
Note: See TracChangeset for help on using the changeset viewer.