0029929: Visualization, V3d_View - make method ::FitMinMax() public
[occt.git] / src / OpenGl / OpenGl_RenderFilter.hxx
4269bd1b 1// Created on: 2013-07-25
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_RenderFilter_H__
17#define _OpenGl_RenderFilter_H__
ec357c5c 19#include <Standard_Type.hxx>
4269bd1b 20#include <Standard_Transient.hxx>
c04c30b3 22class OpenGl_RenderFilter;
4269bd1b 23DEFINE_STANDARD_HANDLE (OpenGl_RenderFilter, Standard_Transient)
25class OpenGl_Element;
a1073ae2 26class OpenGl_Workspace;
4269bd1b 27
28//! Base class for defining element rendering filters.
29//! This class can be used in pair with advance rendering passes, and for
30//! disabling rendering (setting up) graphical aspects.
31class OpenGl_RenderFilter : public Standard_Transient
35 //! Checks whether the element can be rendered or not.
a1073ae2 36 //! @param theWorkspace [in] the current workspace.
4269bd1b 37 //! @param theElement [in] the element to check.
38 //! @return True if element can be rendered.
a1073ae2 39 virtual Standard_Boolean ShouldRender (const Handle(OpenGl_Workspace)& theWorkspace, const OpenGl_Element* theElement) = 0;
4269bd1b 40
a1073ae2 43 DEFINE_STANDARD_RTTIEXT(OpenGl_RenderFilter, Standard_Transient)
4269bd1b 44};