0024023: Revamp the OCCT Handle -- general
[occt.git] / src / OpenGl / OpenGl_RenderFilter.hxx
1 // Created on: 2013-07-25
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_RenderFilter_H__
17 #define _OpenGl_RenderFilter_H__
18
19 #include <Standard_Type.hxx>
20 #include <Standard_Transient.hxx>
21
22 class OpenGl_RenderFilter;
23 DEFINE_STANDARD_HANDLE (OpenGl_RenderFilter, Standard_Transient)
24
25 class OpenGl_Element;
26
27 //! Base class for defining element rendering filters.
28 //! This class can be used in pair with advance rendering passes, and for 
29 //! disabling rendering (setting up) graphical aspects.
30 class OpenGl_RenderFilter : public Standard_Transient
31 {
32 public:
33
34   //! Checks whether the element can be rendered or not.
35   //! @param theElement [in] the element to check.
36   //! @return True if element can be rendered.
37   virtual Standard_Boolean CanRender (const OpenGl_Element* theElement) = 0;
38
39 public:
40
41   DEFINE_STANDARD_RTTI(OpenGl_RenderFilter, Standard_Transient)
42 };
43
44 #endif