|
||||
File indexing completed on 2025-01-18 10:03:49
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 Standard_ShortReal Factor; 0026 Standard_ShortReal Units; 0027 0028 //! Empty constructor. 0029 Graphic3d_PolygonOffset() : Mode(Aspect_POM_Fill), Factor (1.0f), Units (1.0f) {} 0030 0031 //! Equality comparison. 0032 bool operator== (const Graphic3d_PolygonOffset& theOther) const 0033 { 0034 return Mode == theOther.Mode 0035 && Factor == theOther.Factor 0036 && Units == theOther.Units; 0037 } 0038 0039 //! Dumps the content of me into the stream 0040 Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; 0041 0042 }; 0043 0044 #endif // _Graphic3d_PolygonOffset_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |