Changeset 925 for trunk/source/visualization/OpenInventor
- Timestamp:
- Feb 17, 2009, 10:42:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc
r924 r925 33 33 /*--------------------------------------------------------------------------*/ 34 34 35 #define G4DEBUG_VIS_OGL 1 36 35 37 // this : 36 38 #include <HEPVis/actions/SoGL2PSAction.h> … … 51 53 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 52 54 { 55 #ifdef G4DEBUG_VIS_OGL 56 printf("SoGL2PSAction::initClass\n"); 57 #endif 53 58 SO_ACTION_INIT_CLASS(SoGL2PSAction,SoGLRenderAction); 54 59 } … … 59 64 :SoGLRenderAction(aViewPortRegion) 60 65 ,G4OpenGL2PSAction() 61 ,fFileName("out.ps")62 ,fFile(0)63 66 ////////////////////////////////////////////////////////////////////////////// 64 67 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 65 68 { 69 #ifdef G4DEBUG_VIS_OGL 70 printf("SoGL2PSAction::SoGL2PSAction\n"); 71 #endif 72 setFileName("out.ps"); 66 73 SO_ACTION_CONSTRUCTOR(SoGL2PSAction); 67 74 } … … 72 79 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 73 80 { 74 // Useful ?? L.Garnier 02/2009 81 #ifdef G4DEBUG_VIS_OGL 82 printf("SoGL2PSAction::setViewport\n"); 83 #endif 84 // Useful ? L.Garnier 02/2009 85 75 86 #ifdef __COIN__ 76 87 #else //SGI … … 92 103 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 93 104 { 105 #ifdef G4DEBUG_VIS_OGL 106 printf("SoGL2PSAction::beginTraversal\n"); 107 #endif 94 108 if(fFile) { 95 109 #ifdef __COIN__ 96 110 const SbViewportRegion& vpr = getViewportRegion(); 97 111 SoViewportRegionElement::set(getState(),vpr); 112 #ifdef G4DEBUG_VIS_OGL 113 printf("SoGL2PSAction::beginTraversal 1\n"); 114 #endif 98 115 G4gl2psBegin(); 116 #ifdef G4DEBUG_VIS_OGL 117 printf("SoGL2PSAction::beginTraversal 2\n"); 118 #endif 99 119 traverse(aNode); 120 #ifdef G4DEBUG_VIS_OGL 121 printf("SoGL2PSAction::beginTraversal 3\n"); 122 #endif 100 123 gl2psEndPage(); 124 #ifdef G4DEBUG_VIS_OGL 125 printf("SoGL2PSAction::beginTraversal 4\n"); 126 #endif 101 127 #else //SGI 102 128 SoGLRenderAction::beginTraversal(aNode); … … 105 131 SoGLRenderAction::beginTraversal(aNode); 106 132 } 133 #ifdef G4DEBUG_VIS_OGL 134 printf("SoGL2PSAction::beginTraversal 5\n"); 135 #endif 107 136 } 108 137
Note: See TracChangeset
for help on using the changeset viewer.