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),
60 float ZClipFrontPlane;
63 float DepthFrontPlane;
71 Graphic3d_CLight* ActiveLight;
73 Handle(Graphic3d_TextureEnv) TextureEnv;
76 Graphic3d_SequenceOfHClipPlane ClipPlanes;
78 Handle(Graphic3d_Camera) Camera;
102 memset(&DefWindow,0,sizeof(DefWindow));
116 CALL_DEF_VIEWCONTEXT Context;
118 CALL_DEF_WINDOW DefWindow;
125 Aspect_RenderingContext GContext;
126 Aspect_GraphicCallbackProc GDisplayCB;
131 //! Was the window redrawn by standard OpenGL?
132 mutable int WasRedrawnGL;
134 //! Specifies rendering parameters and effects.
135 Graphic3d_RenderingParams RenderParams;
139 #endif // Graphic3d_CView_HeaderFile