Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-13 09:16:36

0001 // Copyright (c) 2016 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _Graphic3d_PolygonOffset_HeaderFile
0015 #define _Graphic3d_PolygonOffset_HeaderFile
0016 
0017 #include <Aspect_PolygonOffsetMode.hxx>
0018 #include <Standard_OStream.hxx>
0019 #include <Standard_Integer.hxx>
0020 
0021 //! Polygon offset parameters.
0022 struct Graphic3d_PolygonOffset
0023 {
0024   Aspect_PolygonOffsetMode Mode;
0025   float                    Factor;
0026   float                    Units;
0027 
0028   //! Empty constructor.
0029   Graphic3d_PolygonOffset()
0030       : Mode(Aspect_POM_Fill),
0031         Factor(1.0f),
0032         Units(1.0f)
0033   {
0034   }
0035 
0036   //! Equality comparison.
0037   bool operator==(const Graphic3d_PolygonOffset& theOther) const
0038   {
0039     return Mode == theOther.Mode && Factor == theOther.Factor && Units == theOther.Units;
0040   }
0041 
0042   //! Dumps the content of me into the stream
0043   Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const;
0044 };
0045 
0046 #endif // _Graphic3d_PolygonOffset_HeaderFile