4269bd1b |
1 | // Created on: 2013-07-25 |
2 | // Created by: Anton POLETAEV |
d5f74e42 |
3 | // Copyright (c) 2013-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
4269bd1b |
16 | #ifndef _OpenGl_RenderFilter_H__ |
17 | #define _OpenGl_RenderFilter_H__ |
7fd59977 |
18 | |
ec357c5c |
19 | #include <Standard_Type.hxx> |
4269bd1b |
20 | #include <Standard_Transient.hxx> |
7fd59977 |
21 | |
4269bd1b |
22 | DEFINE_STANDARD_HANDLE (OpenGl_RenderFilter, Standard_Transient) |
23 | |
24 | class OpenGl_Element; |
25 | |
26 | //! Base class for defining element rendering filters. |
27 | //! This class can be used in pair with advance rendering passes, and for |
28 | //! disabling rendering (setting up) graphical aspects. |
29 | class OpenGl_RenderFilter : public Standard_Transient |
7fd59977 |
30 | { |
4269bd1b |
31 | public: |
32 | |
33 | //! Checks whether the element can be rendered or not. |
34 | //! @param theElement [in] the element to check. |
35 | //! @return True if element can be rendered. |
36 | virtual Standard_Boolean CanRender (const OpenGl_Element* theElement) = 0; |
37 | |
38 | public: |
39 | |
ec357c5c |
40 | DEFINE_STANDARD_RTTI(OpenGl_RenderFilter, Standard_Transient) |
4269bd1b |
41 | }; |
42 | |
43 | #endif |