35#ifdef G4VIS_BUILD_OPENGL_DRIVER
40G4OpenGLImmediateViewer::G4OpenGLImmediateViewer (G4OpenGLImmediateSceneHandler& scene):
45void 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< G4Plane3D > G4Planes