Changeset 1274 for trunk/source/visualization/OpenGL/src
- Timestamp:
- May 27, 2010, 10:36:45 AM (16 years ago)
- Location:
- trunk/source/visualization/OpenGL/src
- Files:
-
- 3 edited
-
G4OpenGLQtViewer.cc (modified) (1 diff)
-
G4OpenGLSceneHandler.cc (modified) (2 diffs)
-
G4OpenGLViewer.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r1259 r1274 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.cc,v 1.5 0 2010/05/20 08:13:37 allisonExp $27 // $Id: G4OpenGLQtViewer.cc,v 1.51 2010/05/26 14:50:56 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc
r1253 r1274 25 25 // 26 26 // 27 // $Id: G4OpenGLSceneHandler.cc,v 1.5 7 2010/04/30 13:18:32 lgarnierExp $27 // $Id: G4OpenGLSceneHandler.cc,v 1.58 2010/05/11 10:17:32 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 138 138 } 139 139 140 const G4Polyhedron* G4OpenGLSceneHandler::CreateSectionPolyhedron()140 G4VSolid* G4OpenGLSceneHandler::CreateSectionSolid () 141 141 { 142 142 // Clipping done in G4OpenGLViewer::SetView. 143 return 0;143 // return 0; 144 144 145 145 // But...OpenGL no longer seems to reconstruct clipped edges, so, 146 146 // when the BooleanProcessor is up to it, abandon this and use 147 // generic clipping in G4VSceneHandler::CreateSection Polyhedron...148 // return G4VSceneHandler::CreateSectionPolyhedron();149 } 150 151 const G4Polyhedron* G4OpenGLSceneHandler::CreateCutawayPolyhedron()147 // generic clipping in G4VSceneHandler::CreateSectionSolid... 148 return G4VSceneHandler::CreateSectionSolid(); 149 } 150 151 G4VSolid* G4OpenGLSceneHandler::CreateCutawaySolid () 152 152 { 153 153 // Cutaway done in G4OpenGLViewer::SetView. 154 return 0;154 // return 0; 155 155 156 156 // But...if not, when the BooleanProcessor is up to it... 157 // return G4VSceneHandler::CreateCutawayPolyhedron();157 return G4VSceneHandler::CreateCutawaySolid(); 158 158 } 159 159 -
trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc
r1245 r1274 25 25 // 26 26 // 27 // $Id: G4OpenGLViewer.cc,v 1.6 1 2010/04/27 15:59:10 lgarnierExp $27 // $Id: G4OpenGLViewer.cc,v 1.62 2010/05/11 10:22:37 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 271 271 // force kernel visit on change of clipping plane in 272 272 // G4OpenGLStoredViewer::CompareForKernelVisit. 273 if (fVP.IsSection () ) { // pair of back to back clip planes. 273 //if (fVP.IsSection () ) { // pair of back to back clip planes. 274 if (false) { // pair of back to back clip planes. 274 275 const G4Plane3D& s = fVP.GetSectionPlane (); 275 276 double sArray[4]; … … 293 294 const G4Planes& cutaways = fVP.GetCutawayPlanes(); 294 295 size_t nPlanes = cutaways.size(); 295 if (fVP.IsCutaway() && 296 //if (fVP.IsCutaway() && 297 if (false && 296 298 fVP.GetCutawayMode() == G4ViewParameters::cutawayIntersection && 297 299 nPlanes > 0) { … … 384 386 GLint hits = glRenderMode(GL_RENDER); 385 387 if (hits < 0) 386 G4cout << "Too many hits. Zoom in to reduce overlaps." << G4 cout;388 G4cout << "Too many hits. Zoom in to reduce overlaps." << G4endl; 387 389 else if (hits > 0) { 388 390 //G4cout << hits << " hit(s)" << G4endl; … … 390 392 for (GLint i = 0; i < hits; ++i) { 391 393 GLuint nnames = *p++; 392 *p++; //OR GLuint zmin = *p++;393 *p++; //OR GLuint zmax = *p++;394 p++; //OR GLuint zmin = *p++; 395 p++; //OR GLuint zmax = *p++; 394 396 //G4cout << "Hit " << i << ": " << nnames << " names" 395 397 // << "\nzmin: " << zmin << ", zmax: " << zmax << G4endl; … … 478 480 // Change the LC_NUMERIC value in order to have "." separtor and not "," 479 481 // This case is only useful for French, Canadien... 480 char *oldLocale = strdup(setlocale(LC_NUMERIC,NULL)); 482 char* oldLocale = (char*)(malloc(strlen(setlocale(LC_NUMERIC,NULL))+1)); 483 if(oldLocale!=NULL) strcpy(oldLocale,setlocale(LC_NUMERIC,NULL)); 481 484 setlocale(LC_NUMERIC,"C"); 482 485
Note:
See TracChangeset
for help on using the changeset viewer.
