Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:25:43

0001 // Created on: 2013-09-26
0002 // Created by: Dmitry BOBYLEV
0003 // Copyright (c) 2013-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef OpenGl_StencilTest_HeaderFile
0017 #define OpenGl_StencilTest_HeaderFile
0018 
0019 #include <OpenGl_Element.hxx>
0020 
0021 class OpenGl_StencilTest : public OpenGl_Element
0022 {
0023 public:
0024   //! Default constructor
0025   Standard_EXPORT OpenGl_StencilTest();
0026 
0027   //! Render primitives to the window
0028   Standard_EXPORT virtual void Render(const Handle(OpenGl_Workspace)& theWorkspace) const
0029     Standard_OVERRIDE;
0030 
0031   Standard_EXPORT virtual void Release(OpenGl_Context* theContext) Standard_OVERRIDE;
0032 
0033   Standard_EXPORT void SetOptions(const Standard_Boolean theIsEnabled);
0034 
0035   //! Dumps the content of me into the stream
0036   Standard_EXPORT virtual void DumpJson(Standard_OStream& theOStream,
0037                                         Standard_Integer  theDepth = -1) const Standard_OVERRIDE;
0038 
0039 protected:
0040   //! Destructor
0041   Standard_EXPORT virtual ~OpenGl_StencilTest();
0042 
0043 private:
0044   Standard_Boolean myIsEnabled;
0045 
0046 public:
0047   DEFINE_STANDARD_ALLOC
0048 };
0049 
0050 #endif // OpenGl_StencilOptions_Header