Changeset 928 for trunk/source/visualization/OpenInventor/src
- Timestamp:
- Feb 17, 2009, 3:34:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenInventor/src/SoGL2PSAction.cc
r927 r928 89 89 const SbViewportRegion& vpr = getViewportRegion(); 90 90 SoViewportRegionElement::set(getState(),vpr); 91 gl2psBegin();91 G4gl2psBegin(); 92 92 #endif 93 93 return true; 94 94 } 95 96 95 ////////////////////////////////////////////////////////////////////////////// 97 void SoGL2PSAction:: setViewport(96 void SoGL2PSAction::disableFileWriting( 98 97 ) 99 98 ////////////////////////////////////////////////////////////////////////////// 100 99 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 101 100 { 102 #ifdef G4DEBUG_VIS_OGL103 printf("SoGL2PSAction::setViewport\n");104 #endif105 // Useful ? L.Garnier 02/2009106 107 101 #ifdef __COIN__ 108 102 #else //SGI 109 const SbViewportRegion& vpr = getViewportRegion(); 110 SoViewportRegionElement::set(getState(),vpr); 111 112 const SbVec2s& win = vpr.getWindowSize(); 113 fViewport[0] = 0; 114 fViewport[1] = 0; 115 fViewport[2] = win[0]; 116 fViewport[3] = win[1]; 103 gl2psEndPage(); 117 104 #endif 105 ::fclose(fFile); 106 fFile = 0; 118 107 } 108 119 109 ////////////////////////////////////////////////////////////////////////////// 120 110 void SoGL2PSAction::beginTraversal( … … 124 114 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// 125 115 { 126 #ifdef G4DEBUG_VIS_OGL127 printf("SoGL2PSAction::beginTraversal\n");128 #endif129 116 if(fFile) { 130 117 #ifdef __COIN__ 131 118 const SbViewportRegion& vpr = getViewportRegion(); 132 119 SoViewportRegionElement::set(getState(),vpr); 133 #ifdef G4DEBUG_VIS_OGL134 printf("SoGL2PSAction::beginTraversal 1\n");135 #endif136 120 G4gl2psBegin(); 137 #ifdef G4DEBUG_VIS_OGL138 printf("SoGL2PSAction::beginTraversal 2\n");139 #endif140 121 traverse(aNode); 141 #ifdef G4DEBUG_VIS_OGL 142 printf("SoGL2PSAction::beginTraversal 3\n"); 143 #endif 144 gl2psEndPage(); 145 #ifdef G4DEBUG_VIS_OGL 146 printf("SoGL2PSAction::beginTraversal 4\n"); 147 #endif 122 gl2psEndPage(); 148 123 #else //SGI 124 // Should have already do G4gl2psBegin() before 149 125 SoGLRenderAction::beginTraversal(aNode); 126 // Should do gl2psEndPage() after 150 127 #endif 151 128 } else { 152 129 SoGLRenderAction::beginTraversal(aNode); 153 130 } 154 #ifdef G4DEBUG_VIS_OGL155 printf("SoGL2PSAction::beginTraversal 5\n");156 #endif157 131 } 158 132
Note: See TracChangeset
for help on using the changeset viewer.