Changeset 931 for trunk/source/visualization/OpenInventor/src
- Timestamp:
- Feb 25, 2009, 4:19:05 PM (16 years ago)
- Location:
- trunk/source/visualization/OpenInventor/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenInventor/src/G4OpenInventorSceneHandler.cc
r929 r931 25 25 // 26 26 // 27 // $Id: G4OpenInventorSceneHandler.cc,v 1.5 4 2008/04/04 13:40:04 allisonExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4OpenInventorSceneHandler.cc,v 1.55 2009/02/18 14:21:38 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 // … … 46 46 #include <Inventor/nodes/SoLineSet.h> 47 47 #include <Inventor/nodes/SoCube.h> 48 #include <Inventor/nodes/SoSphere.h>49 48 #include <Inventor/nodes/SoFont.h> 50 49 #include <Inventor/nodes/SoText2.h> … … 230 229 void G4OpenInventorSceneHandler::AddPrimitive (const G4Polymarker& polymarker) 231 230 { 232 printf("G4OpenInventorSceneHandler::AddPrimitive------ \n");233 234 231 AddProperties(polymarker.GetVisAttributes()); // Transformation, colour, etc. 235 232 -
trunk/source/visualization/OpenInventor/src/SoMarkerSet.cc
r930 r931 657 657 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 658 658 { 659 printf("HEPVis_SoMarkerSet::GLRender\n");659 // printf("HEPVis_SoMarkerSet::GLRender\n"); 660 660 SoState* state = aAction->getState(); 661 661 … … 711 711 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 712 712 { 713 // printf("drawMarker\n");714 713 GLsizei w = 0,h = 0; 715 714 GLfloat xorig = 0,yorig = 0; … … 719 718 w = h = 5; 720 719 xorig = yorig = 2; 720 } else if((aStyle>=18)&&(aStyle<36)) { 721 w = h = 7; 722 xorig = yorig = 3; 723 } else if((aStyle>=36)&&(aStyle<54)) { 724 w = h = 9; 725 xorig = yorig = 4; 726 } else { 727 return; 728 } 729 if (w != 0) { 721 730 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]); 722 731 glBitmap(w,h,xorig,yorig,0.,0.,bitmap); 723 732 delete bitmap; 724 } else if((aStyle>=18)&&(aStyle<36)) {725 w = h = 7;726 xorig = yorig = 3;727 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);728 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);729 delete bitmap;730 } else if((aStyle>=36)&&(aStyle<54)) {731 w = h = 9;732 xorig = yorig = 4;733 GLubyte* bitmap = getBitmap(w,h,sFigures[aStyle]);734 glBitmap(w,h,xorig,yorig,0.,0.,bitmap);735 delete bitmap;736 } else {737 return;738 733 } 734 printf("DM %d %d %f %f",w,h,xorig,yorig); 739 735 740 736 if(aAction->isOfType(SoGL2PSAction::getClassTypeId())) { 741 ((SoGL2PSAction*)aAction)->addBitmap(w,h,xorig,yorig,xmove,ymove); 737 printf(" GL2PS "); 738 ((SoGL2PSAction*)aAction)->addBitmap(w-2,h-2,xorig,yorig,xmove,ymove); 742 739 } 743 740
Note: See TracChangeset
for help on using the changeset viewer.