1 // Created on: 2013-09-05
2 // Created by: Anton POLETAEV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _OpenGl_CappingAlgo_H__
17 #define _OpenGl_CappingAlgo_H__
19 #include <OpenGl_Group.hxx>
21 // Forward declaration
22 class OpenGl_CappingPlaneResource;
23 class OpenGl_Structure;
25 //! Capping surface rendering algorithm.
26 class OpenGl_CappingAlgo
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);