35 #ifdef G4VIS_BUILD_OPENGL_DRIVER
40 G4OpenGLImmediateViewer::G4OpenGLImmediateViewer (G4OpenGLImmediateSceneHandler& scene):
42 G4OpenGLViewer (scene)
45 void G4OpenGLImmediateViewer::ProcessView ()
47 const G4Planes& cutaways = fVP.GetCutawayPlanes();
48 G4bool cutawayUnion = fVP.IsCutaway() &&
50 size_t nPasses = cutawayUnion? cutaways.size(): 1;
51 for (
size_t i = 0; i < nPasses; ++i) {
55 a[0] = cutaways[i].a();
56 a[1] = cutaways[i].b();
57 a[2] = cutaways[i].c();
58 a[3] = cutaways[i].d();
59 glClipPlane (GL_CLIP_PLANE2, a);
60 glEnable (GL_CLIP_PLANE2);
66 if (cutawayUnion) glDisable (GL_CLIP_PLANE2);
std::vector< ExP01TrackerHit * > a
std::vector< G4Plane3D > G4Planes