Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-30 09:28:38

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 void Render(const occ::handle<OpenGl_Workspace>& theWorkspace) const override;
0029 
0030   Standard_EXPORT void Release(OpenGl_Context* theContext) override;
0031 
0032   Standard_EXPORT void SetOptions(const bool theIsEnabled);
0033 
0034   //! Dumps the content of me into the stream
0035   Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const override;
0036 
0037 protected:
0038   //! Destructor
0039   Standard_EXPORT ~OpenGl_StencilTest() override;
0040 
0041 private:
0042   bool myIsEnabled;
0043 
0044 public:
0045   DEFINE_STANDARD_ALLOC
0046 };
0047 
0048 #endif // OpenGl_StencilOptions_Header