Changeset 1196 for trunk/source/visualization/OpenInventor/src
- Timestamp:
- Nov 25, 2009, 5:13:58 PM (15 years ago)
- Location:
- trunk/source/visualization/OpenInventor/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenInventor/src/G4OpenInventorViewer.cc
r1051 r1196 477 477 478 478 void G4OpenInventorViewer::WritePostScript(const G4String& aFile) { 479 #ifdef G4DEBUG_VIS_OI480 printf("G4OpenInventorViewer::WritePostScript %s\n",aFile.c_str());481 #endif482 479 if(!fGL2PSAction) return; 483 480 fGL2PSAction->setFileName(aFile.c_str()); 484 481 G4cout << "Produce " << aFile << "..." << G4endl; 485 482 if (fGL2PSAction->enableFileWriting()) { 486 #ifdef G4DEBUG_VIS_OI487 printf("G4OpenInventorViewer::WritePostScript produce OK\n");488 #endif489 483 ViewerRender(); 490 484 fGL2PSAction->disableFileWriting(); … … 493 487 494 488 void G4OpenInventorViewer::WritePixmapPostScript(const G4String& aFile) { 495 #ifdef G4DEBUG_VIS_OI496 printf("G4OpenInventorViewer::WritePixmapPostScript %s\n",aFile.c_str());497 #endif498 499 489 fSoImageWriter->fileName.setValue(aFile.c_str()); 500 490 //imageWriter->format.setValue(SoImageWriter::POST_SCRIPT); … … 511 501 << G4endl; 512 502 } 513 #ifdef G4DEBUG_VIS_OI514 printf("G4OpenInventorViewer::WritePixmapPostScript END\n");515 #endif516 503 } 517 504 -
trunk/source/visualization/OpenInventor/src/G4OpenInventorWin.cc
r1136 r1196 52 52 53 53 SetInteractorManager (G4Win32::getInstance()); 54 GetInteractorManager () -> RemoveDispatcher((G4DispatchFunction)G4Win32:: DispatchWin32Event);54 GetInteractorManager () -> RemoveDispatcher((G4DispatchFunction)G4Win32::dispatchWin32Event); 55 55 56 56 // GetInteractorManager () -> AddDispatcher((G4DispatchFunction)SoWin::dispatchEvent); -
trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc
r1051 r1196 71 71 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 72 72 { 73 #ifdef G4DEBUG_VIS_OI74 printf("SoGL2PSAction::enableFileWriting\n");75 #endif76 73 fFile = ::fopen(fFileName,"w"); 77 74 if(!fFile) { -
trunk/source/visualization/OpenInventor/src/SoMarkerSet.cc
r1023 r1196 717 717 w = h = 5; 718 718 xorig = yorig = 2; 719 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]); 720 glBitmap(w,h,xorig,yorig,0.,0.,bitmap); 721 delete bitmap; 719 722 } else if((aStyle>=18)&&(aStyle<36)) { 720 723 w = h = 7; 721 724 xorig = yorig = 3; 725 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]); 726 glBitmap(w,h,xorig,yorig,0.,0.,bitmap); 727 delete bitmap; 722 728 } else if((aStyle>=36)&&(aStyle<54)) { 723 729 w = h = 9; 724 730 xorig = yorig = 4; 731 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]); 732 glBitmap(w,h,xorig,yorig,0.,0.,bitmap); 733 delete bitmap; 725 734 } else { 726 735 return; 727 736 } 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_OI734 printf("DM %d %d %f %f",w,h,xorig,yorig);735 #endif736 737 737 738 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); 742 740 } 743 741
Note: See TracChangeset
for help on using the changeset viewer.