1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #ifndef _Graphic3d_CView_HeaderFile
15 #define _Graphic3d_CView_HeaderFile
17 #include <InterfaceGraphic_Graphic3d.hxx>
18 #include <InterfaceGraphic_Visual3d.hxx>
19 #include <Graphic3d_RenderingParams.hxx>
20 #include <Graphic3d_TextureEnv.hxx>
21 #include <Graphic3d_Camera.hxx>
23 #include <Graphic3d_CLight.hxx>
24 #include <Graphic3d_SequenceOfHClipPlane.hxx>
26 class CALL_DEF_VIEWCONTEXT
31 CALL_DEF_VIEWCONTEXT()
36 ZClipFrontPlane (0.0f),
37 ZClipBackPlane (0.0f),
38 DepthFrontPlane (0.0f),
39 DepthBackPlane (0.0f),
59 float ZClipFrontPlane;
62 float DepthFrontPlane;
69 Graphic3d_CLight* ActiveLight;
71 Handle(Graphic3d_TextureEnv) TextureEnv;
74 Graphic3d_SequenceOfHClipPlane ClipPlanes;
76 Handle(Graphic3d_Camera) Camera;
99 IsCullingEnabled (Standard_True)
101 memset (&DefWindow, 0, sizeof(DefWindow));
115 CALL_DEF_VIEWCONTEXT Context;
117 CALL_DEF_WINDOW DefWindow;
124 Aspect_RenderingContext GContext;
125 Aspect_GraphicCallbackProc GDisplayCB;
130 //! Was the window redrawn by standard OpenGL?
131 mutable int WasRedrawnGL;
133 //! Specifies rendering parameters and effects.
134 Graphic3d_RenderingParams RenderParams;
136 //! Enables/disables frustum culling.
137 Standard_Boolean IsCullingEnabled;
141 #endif // Graphic3d_CView_HeaderFile