0030748: Visualization - Marker displayed in immediate layer ruins QT Quick view...
[occt.git] / src / OpenGl / OpenGl_CappingAlgo.hxx
CommitLineData
4269bd1b 1// Created on: 2013-09-05
2// Created by: Anton POLETAEV
d5f74e42 3// Copyright (c) 2013-2014 OPEN CASCADE SAS
4269bd1b 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
4269bd1b 6//
d5f74e42 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
973c2be1 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.
4269bd1b 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
4269bd1b 15
16#ifndef _OpenGl_CappingAlgo_H__
17#define _OpenGl_CappingAlgo_H__
18
4269bd1b 19#include <OpenGl_Group.hxx>
20
21// Forward declaration
3e05329c 22class OpenGl_CappingPlaneResource;
cc6852f3 23class OpenGl_Structure;
3e05329c 24
4269bd1b 25//! Capping surface rendering algorithm.
26class OpenGl_CappingAlgo
27{
28public:
29
cc6852f3 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);
4269bd1b 36
4269bd1b 37};
38
4269bd1b 39#endif