Ignore:
Timestamp:
Jul 5, 2007, 6:28:09 PM (17 years ago)
Author:
garnier
Message:

r684@mac-90108: laurentgarnier | 2007-07-05 18:31:37 +0200
mise a jour de la visu OpenGl. Ne marche pas encore

Location:
trunk/geant4/visualization/OpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/include/G4OpenGLQtViewer.hh

    r539 r540  
    5252  virtual ~G4OpenGLQtViewer ();
    5353  void SetView ();
    54   void ClearView ();
    55   void DrawView ();
    5654  void ShowView ();
    5755protected:
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r539 r540  
    140140  printf("G4OpenGLImmediateQtViewer::paintGL \n");
    141141  // FIXME
    142   //  DrawView();
     142  //  FinishView();
    143143  //  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    144144  //  glLoadIdentity();
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r539 r540  
    6464//   if(!fHGLRC) return;
    6565//   ::wglMakeCurrent(fHDC,fHGLRC);
    66 //   G4OpenGLViewer::SetView (); 
    67 }
    68 
    69 //////////////////////////////////////////////////////////////////////////////
    70 /**
    71   Implementation of virtual method of G4VViewer
    72  */
    73 void G4OpenGLQtViewer::ClearView (
    74 )
    75 //////////////////////////////////////////////////////////////////////////////
    76 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    77 {
    78   printf("G4OpenGLQtViewer::ClearView \n");
    79 }
    80 
    81 
    82 //////////////////////////////////////////////////////////////////////////////
    83 /**
    84   Implementation of virtual method of G4VViewer
    85  */
    86 void G4OpenGLQtViewer::DrawView (
    87 )
    88 //////////////////////////////////////////////////////////////////////////////
    89 //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
    90 {
    91   printf("G4OpenGLQtViewer::DrawView \n");
    92 }
     66  fWindow->makeCurrent();
     67  G4OpenGLViewer::SetView (); 
     68}
     69
     70
    9371
    9472//////////////////////////////////////////////////////////////////////////////
     
    10280{
    10381  printf("G4OpenGLQtViewer::ShowView \n");
    104 //   if(!fHDC) return;
    105 //   glFlush ();
     82  //   if(!fHDC) return;
     83  glFlush ();
    10684//   // Empty the Windows message queue :
    10785//   MSG event;
     
    202180//                         ::GetModuleHandle(NULL),
    203181//                         NULL);
    204 //   if(!fWindow) return;
     182   if(!fWindow) return;
    205183
    206184//   ::SetWindowLong(fWindow,GWL_USERDATA,LONG(this));
     
    291269//                         ::GetModuleHandle(NULL),
    292270//                         NULL);
    293 //   if(!fWindow) return;
     271   if(!fWindow) return;
    294272
    295273//   ::SetWindowLong(fWindow,GWL_USERDATA,LONG(this));
Note: See TracChangeset for help on using the changeset viewer.