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

update...

Location:
trunk/source/visualization/OpenGL
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/GNUmakefile

    r1254 r1274  
    1111
    1212# For debug mode
    13 # CPPFLAGS += -DG4DEBUG_VIS_OGL
     13CPPFLAGS += -DG4DEBUG_VIS_OGL
    1414
    1515GLOBLIBS  = libG4vis_management.lib libG4modeling.lib libG4gl2ps.lib
  • trunk/source/visualization/OpenGL/History

    r1254 r1274  
    1 $Id: History,v 1.169 2010/05/20 07:09:33 lgarnier Exp $
     1$Id: History,v 1.171 2010/05/26 14:50:56 lgarnier Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
    19 20th May 2010 Laurent Garnier
     19
     2026th May 2010 Laurent Garnier
     21 - G4OpenGLQtViewer : Some improvments with auto rotation mode.
     22
     2320th May 2010 Laurent Garnier  (opengl-V09-03-01)
    2024 Co-working tag : intercoms-V09-03-01, interfaces-V09-03-02
    2125 - GNUMakefile, G4OpenGLQtViewer : Better inclusion of new tabs in UI part
  • trunk/source/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r1260 r1274  
    2525//
    2626//
    27 // $Id: G4OpenGLQtViewer.hh,v 1.21 2010/01/06 15:05:29 lgarnier Exp $
     27// $Id: G4OpenGLQtViewer.hh,v 1.22 2010/05/26 14:50:56 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
  • trunk/source/visualization/OpenGL/include/G4OpenGLSceneHandler.hh

    r1253 r1274  
    2525//
    2626//
    27 // $Id: G4OpenGLSceneHandler.hh,v 1.28 2010/04/30 13:18:32 lgarnier Exp $
     27// $Id: G4OpenGLSceneHandler.hh,v 1.29 2010/05/11 10:17:32 allison Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    9393  virtual ~G4OpenGLSceneHandler ();
    9494
    95   const G4Polyhedron* CreateSectionPolyhedron ();
    96   const G4Polyhedron* CreateCutawayPolyhedron ();
     95  G4VSolid* CreateSectionSolid ();
     96  G4VSolid* CreateCutawaySolid ();
    9797
    9898  void ClearAndDestroyAtts();  // Destroys att holders and clears pick map.
  • 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.