Ignore:
Timestamp:
May 27, 2010, 10:36:45 AM (16 years ago)
Author:
garnier
Message:

update...

Location:
trunk/source/visualization/OpenGL/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r1259 r1274  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.cc,v 1.50 2010/05/20 08:13:37 allison Exp $
     27// $Id: G4OpenGLQtViewer.cc,v 1.51 2010/05/26 14:50:56 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc

    r1253 r1274  
    2525//
    2626//
    27 // $Id: G4OpenGLSceneHandler.cc,v 1.57 2010/04/30 13:18:32 lgarnier Exp $
     27// $Id: G4OpenGLSceneHandler.cc,v 1.58 2010/05/11 10:17:32 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    138138}
    139139
    140 const G4Polyhedron* G4OpenGLSceneHandler::CreateSectionPolyhedron ()
     140G4VSolid* G4OpenGLSceneHandler::CreateSectionSolid ()
    141141{
    142142  // Clipping done in G4OpenGLViewer::SetView.
    143   return 0;
     143  // return 0;
    144144
    145145  // But...OpenGL no longer seems to reconstruct clipped edges, so,
    146146  // when the BooleanProcessor is up to it, abandon this and use
    147   // generic clipping in G4VSceneHandler::CreateSectionPolyhedron...
    148   // return G4VSceneHandler::CreateSectionPolyhedron();
    149 }
    150 
    151 const G4Polyhedron* G4OpenGLSceneHandler::CreateCutawayPolyhedron ()
     147  // generic clipping in G4VSceneHandler::CreateSectionSolid...
     148  return G4VSceneHandler::CreateSectionSolid();
     149}
     150
     151G4VSolid* G4OpenGLSceneHandler::CreateCutawaySolid ()
    152152{
    153153  // Cutaway done in G4OpenGLViewer::SetView.
    154   return 0;
     154  // return 0;
    155155
    156156  // But...if not, when the BooleanProcessor is up to it...
    157   // return G4VSceneHandler::CreateCutawayPolyhedron();
     157  return G4VSceneHandler::CreateCutawaySolid();
    158158}
    159159
  • trunk/source/visualization/OpenGL/src/G4OpenGLViewer.cc

    r1245 r1274  
    2525//
    2626//
    27 // $Id: G4OpenGLViewer.cc,v 1.61 2010/04/27 15:59:10 lgarnier Exp $
     27// $Id: G4OpenGLViewer.cc,v 1.62 2010/05/11 10:22:37 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    271271  // force kernel visit on change of clipping plane in
    272272  // 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.
    274275    const G4Plane3D& s = fVP.GetSectionPlane ();
    275276    double sArray[4];
     
    293294  const G4Planes& cutaways = fVP.GetCutawayPlanes();
    294295  size_t nPlanes = cutaways.size();
    295   if (fVP.IsCutaway() &&
     296  //if (fVP.IsCutaway() &&
     297  if (false &&
    296298      fVP.GetCutawayMode() == G4ViewParameters::cutawayIntersection &&
    297299      nPlanes > 0) {
     
    384386  GLint hits = glRenderMode(GL_RENDER);
    385387  if (hits < 0)
    386     G4cout << "Too many hits.  Zoom in to reduce overlaps." << G4cout;
     388    G4cout << "Too many hits.  Zoom in to reduce overlaps." << G4endl;
    387389  else if (hits > 0) {
    388390    //G4cout << hits << " hit(s)" << G4endl;
     
    390392    for (GLint i = 0; i < hits; ++i) {
    391393      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++;
    394396      //G4cout << "Hit " << i << ": " << nnames << " names"
    395397      //     << "\nzmin: " << zmin << ", zmax: " << zmax << G4endl;
     
    478480  // Change the LC_NUMERIC value in order to have "." separtor and not ","
    479481  // 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));
    481484  setlocale(LC_NUMERIC,"C");
    482485
Note: See TracChangeset for help on using the changeset viewer.