- Timestamp:
- Jan 5, 2011, 12:19:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc
r1346 r1348 25 25 // 26 26 // 27 // $Id: G4OpenGLSceneHandler.cc,v 1. 59 2010/05/30 09:53:05allison Exp $27 // $Id: G4OpenGLSceneHandler.cc,v 1.60 2010/12/11 17:04:07 allison Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 488 488 G4ViewParameters::DrawingStyle drawing_style = GetDrawingStyle (pVA); 489 489 490 //Get colour, etc... 491 G4bool transparency_enabled = true; 490 // Get colour, etc... 491 // Need access to data in G4OpenGLViewer. static_cast doesn't work 492 // with a virtual base class, so use dynamic_cast. No need to test 493 // the outcome since viewer is guaranteed to be a G4OpenGLViewer. 492 494 G4OpenGLViewer* pViewer = dynamic_cast<G4OpenGLViewer*>(fpViewer); 493 if (pViewer)transparency_enabled = pViewer->transparency_enabled;495 const G4bool& transparency_enabled = pViewer->transparency_enabled; 494 496 const G4Colour& c = pVA->GetColour(); 495 497 GLfloat materialColour [4];
Note: See TracChangeset
for help on using the changeset viewer.