0030748: Visualization - Marker displayed in immediate layer ruins QT Quick view...
[occt.git] / src / OpenGl / OpenGl_RenderFilter.hxx
index b179c8e..69344d0 100755 (executable)
@@ -1,11 +1,11 @@
 // Created on: 2013-07-25
 // Created by: Anton POLETAEV
-// Copyright (c) 2013 OPEN CASCADE SAS
+// Copyright (c) 2013-2014 OPEN CASCADE SAS
 //
 // This file is part of Open CASCADE Technology software library.
 //
-// This library is free software; you can redistribute it and / or modify it
-// under the terms of the GNU Lesser General Public version 2.1 as published
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
 // by the Free Software Foundation, with special exception defined in the file
 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
 // distribution for complete text of the license and disclaimer of any warranty.
 #ifndef _OpenGl_RenderFilter_H__
 #define _OpenGl_RenderFilter_H__
 
-#include <Standard_DefineHandle.hxx>
-#include <Standard_Transient.hxx>
-
-DEFINE_STANDARD_HANDLE (OpenGl_RenderFilter, Standard_Transient)
-
-class OpenGl_Element;
-
-//! Base class for defining element rendering filters.
-//! This class can be used in pair with advance rendering passes, and for 
-//! disabling rendering (setting up) graphical aspects.
-class OpenGl_RenderFilter : public Standard_Transient
+//! Filter for rendering elements.
+enum OpenGl_RenderFilter
 {
-public:
-
-  //! Checks whether the element can be rendered or not.
-  //! @param theElement [in] the element to check.
-  //! @return True if element can be rendered.
-  virtual Standard_Boolean CanRender (const OpenGl_Element* theElement) = 0;
+  OpenGl_RenderFilter_Empty               = 0x000, //!< disabled filter
 
-public:
+  OpenGl_RenderFilter_OpaqueOnly          = 0x001, //!< render only opaque elements and any non-filling elements   (conflicts with OpenGl_RenderFilter_TransparentOnly)
+  OpenGl_RenderFilter_TransparentOnly     = 0x002, //!< render only semitransparent elements and OpenGl_AspectFace (conflicts with OpenGl_RenderFilter_OpaqueOnly)
 
-  DEFINE_STANDARD_RTTI(OpenGl_RenderFilter)
+  OpenGl_RenderFilter_NonRaytraceableOnly = 0x004, //!< render only non-raytraceable elements
+  OpenGl_RenderFilter_FillModeOnly        = 0x008, //!< render only filled elements
 };
 
 #endif