0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / src / OpenGl / OpenGl_CappingAlgo.hxx
1 // Created on: 2013-09-05
2 // Created by: Anton POLETAEV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _OpenGl_CappingAlgo_H__
17 #define _OpenGl_CappingAlgo_H__
18
19 #include <OpenGl_Group.hxx>
20
21 // Forward declaration
22 class OpenGl_CappingPlaneResource;
23 class OpenGl_Structure;
24
25 //! Capping surface rendering algorithm.
26 class OpenGl_CappingAlgo
27 {
28 public:
29
30   //! Draw capping surfaces by OpenGl for the clipping planes enabled in current context state.
31   //! Depth buffer must be generated  for the passed groups.
32   //! @param theWorkspace [in] the GL workspace, context state
33   //! @param theStructure [in] the structure to be capped
34   Standard_EXPORT static void RenderCapping (const Handle(OpenGl_Workspace)& theWorkspace,
35                                              const OpenGl_Structure&         theStructure);
36
37 };
38
39 #endif