Changeset 1274 for trunk/source/visualization/OpenGL
- Timestamp:
- May 27, 2010, 10:36:45 AM (16 years ago)
- Location:
- trunk/source/visualization/OpenGL
- Files:
-
- 7 edited
-
GNUmakefile (modified) (1 diff)
-
History (modified) (2 diffs)
-
include/G4OpenGLQtViewer.hh (modified) (1 diff)
-
include/G4OpenGLSceneHandler.hh (modified) (2 diffs)
-
src/G4OpenGLQtViewer.cc (modified) (1 diff)
-
src/G4OpenGLSceneHandler.cc (modified) (2 diffs)
-
src/G4OpenGLViewer.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/GNUmakefile
r1254 r1274 11 11 12 12 # For debug mode 13 #CPPFLAGS += -DG4DEBUG_VIS_OGL13 CPPFLAGS += -DG4DEBUG_VIS_OGL 14 14 15 15 GLOBLIBS = libG4vis_management.lib libG4modeling.lib libG4gl2ps.lib -
trunk/source/visualization/OpenGL/History
r1254 r1274 1 $Id: History,v 1.1 69 2010/05/20 07:09:33lgarnier Exp $1 $Id: History,v 1.171 2010/05/26 14:50:56 lgarnier Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20th May 2010 Laurent Garnier 19 20 26th May 2010 Laurent Garnier 21 - G4OpenGLQtViewer : Some improvments with auto rotation mode. 22 23 20th May 2010 Laurent Garnier (opengl-V09-03-01) 20 24 Co-working tag : intercoms-V09-03-01, interfaces-V09-03-02 21 25 - GNUMakefile, G4OpenGLQtViewer : Better inclusion of new tabs in UI part -
trunk/source/visualization/OpenGL/include/G4OpenGLQtViewer.hh
r1260 r1274 25 25 // 26 26 // 27 // $Id: G4OpenGLQtViewer.hh,v 1.2 1 2010/01/06 15:05:29lgarnier Exp $27 // $Id: G4OpenGLQtViewer.hh,v 1.22 2010/05/26 14:50:56 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/source/visualization/OpenGL/include/G4OpenGLSceneHandler.hh
r1253 r1274 25 25 // 26 26 // 27 // $Id: G4OpenGLSceneHandler.hh,v 1.2 8 2010/04/30 13:18:32 lgarnierExp $27 // $Id: G4OpenGLSceneHandler.hh,v 1.29 2010/05/11 10:17:32 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 93 93 virtual ~G4OpenGLSceneHandler (); 94 94 95 const G4Polyhedron* CreateSectionPolyhedron();96 const G4Polyhedron* CreateCutawayPolyhedron();95 G4VSolid* CreateSectionSolid (); 96 G4VSolid* CreateCutawaySolid (); 97 97 98 98 void ClearAndDestroyAtts(); // Destroys att holders and clears pick map. -
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.
