Ignore:
Timestamp:
Nov 25, 2009, 5:13:58 PM (15 years ago)
Author:
garnier
Message:

update CVS release candidate geant4.9.3.01

Location:
trunk/source/visualization/OpenInventor
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenInventor/History

    r1136 r1196  
    1 $Id: History,v 1.101 2009/09/18 12:48:43 lgarnier Exp $
     1$Id: History,v 1.102 2009/09/29 21:23:36 allison Exp $
    22-------------------------------------------------------------------
    33
     
    2020History file for visualization/OpenInventor
    2121-------------------------------------------
     22
     2329 September 2009  John Allison  (openinventor-V09-02-02)
     24- Tagged.
    2225
    232618 August 2009 Laurent Garnier
  • trunk/source/visualization/OpenInventor/src/G4OpenInventorViewer.cc

    r1051 r1196  
    477477
    478478void G4OpenInventorViewer::WritePostScript(const G4String& aFile) {
    479 #ifdef G4DEBUG_VIS_OI
    480   printf("G4OpenInventorViewer::WritePostScript %s\n",aFile.c_str());
    481 #endif
    482479  if(!fGL2PSAction) return;
    483480  fGL2PSAction->setFileName(aFile.c_str());
    484481  G4cout << "Produce " << aFile << "..." << G4endl;
    485482  if (fGL2PSAction->enableFileWriting()) {
    486 #ifdef G4DEBUG_VIS_OI
    487     printf("G4OpenInventorViewer::WritePostScript produce OK\n");
    488 #endif
    489483    ViewerRender();
    490484    fGL2PSAction->disableFileWriting();
     
    493487
    494488void G4OpenInventorViewer::WritePixmapPostScript(const G4String& aFile) {
    495 #ifdef G4DEBUG_VIS_OI
    496   printf("G4OpenInventorViewer::WritePixmapPostScript %s\n",aFile.c_str());
    497 #endif
    498 
    499489  fSoImageWriter->fileName.setValue(aFile.c_str());
    500490  //imageWriter->format.setValue(SoImageWriter::POST_SCRIPT);
     
    511501           << G4endl;
    512502  }
    513 #ifdef G4DEBUG_VIS_OI
    514   printf("G4OpenInventorViewer::WritePixmapPostScript END\n");
    515 #endif
    516503
    517504
  • trunk/source/visualization/OpenInventor/src/G4OpenInventorWin.cc

    r1136 r1196  
    5252
    5353  SetInteractorManager (G4Win32::getInstance());
    54   GetInteractorManager () -> RemoveDispatcher((G4DispatchFunction)G4Win32::DispatchWin32Event); 
     54  GetInteractorManager () -> RemoveDispatcher((G4DispatchFunction)G4Win32::dispatchWin32Event); 
    5555
    5656  //  GetInteractorManager () -> AddDispatcher((G4DispatchFunction)SoWin::dispatchEvent);
  • trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc

    r1051 r1196  
    7171//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    7272{
    73 #ifdef G4DEBUG_VIS_OI
    74     printf("SoGL2PSAction::enableFileWriting\n");
    75 #endif
    7673  fFile = ::fopen(fFileName,"w");
    7774  if(!fFile) {
  • trunk/source/visualization/OpenInventor/src/SoMarkerSet.cc

    r1023 r1196  
    717717    w = h = 5;
    718718    xorig = yorig = 2;
     719    GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);
     720    glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
     721    delete bitmap;
    719722  } else if((aStyle>=18)&&(aStyle<36)) {
    720723    w = h = 7;
    721724    xorig = yorig = 3;
     725    GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);
     726    glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
     727    delete bitmap;
    722728  } else if((aStyle>=36)&&(aStyle<54)) {
    723729    w = h = 9;
    724730    xorig = yorig = 4;
     731    GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);
     732    glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
     733    delete bitmap;
    725734  } else {
    726735    return;
    727736  }
    728   if (w != 0) {
    729     GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);
    730     glBitmap(w,h,xorig,yorig,0.,0.,bitmap);
    731     delete bitmap;
    732   }
    733 #ifdef G4DEBUG_VIS_OI
    734   printf("DM %d %d %f %f",w,h,xorig,yorig);
    735 #endif
    736737
    737738  if(aAction->isOfType(SoGL2PSAction::getClassTypeId())) {
    738 #ifdef G4DEBUG_VIS_OI
    739     printf(" GL2PS ");
    740 #endif
    741     ((SoGL2PSAction*)aAction)->addBitmap(w-2,h-2,xorig,yorig,xmove,ymove);
     739    ((SoGL2PSAction*)aAction)->addBitmap(w,h,xorig,yorig,xmove,ymove);
    742740  }
    743741
Note: See TracChangeset for help on using the changeset viewer.