Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-18 08:29:45

0001 // Created on: 1991-11-04
0002 // Created by: NW,JPB,CAL
0003 // Copyright (c) 1991-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _Graphic3d_AspectFillArea3d_HeaderFile
0018 #define _Graphic3d_AspectFillArea3d_HeaderFile
0019 
0020 #include <Graphic3d_Aspects.hxx>
0021 
0022 //! This class defines graphic attributes for opaque 3d primitives (polygons, triangles,
0023 //! quadrilaterals).
0024 class Graphic3d_AspectFillArea3d : public Graphic3d_Aspects
0025 {
0026   DEFINE_STANDARD_RTTIEXT(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
0027 public:
0028   //! Creates a context table for fill area primitives defined with the following default values:
0029   //!
0030   //! InteriorStyle : Aspect_IS_EMPTY
0031   //! InteriorColor : Quantity_NOC_CYAN1
0032   //! EdgeColor     : Quantity_NOC_WHITE
0033   //! EdgeLineType  : Aspect_TOL_SOLID
0034   //! EdgeWidth     : 1.0
0035   //! FrontMaterial : NOM_BRASS
0036   //! BackMaterial  : NOM_BRASS
0037   //! HatchStyle    : Aspect_HS_SOLID
0038   //!
0039   //! Display of back-facing filled polygons.
0040   //! No distinction between external and internal faces of FillAreas.
0041   //! The edges are not drawn.
0042   //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0.
0043   Standard_EXPORT Graphic3d_AspectFillArea3d();
0044 
0045   //! Creates a context table for fill area primitives defined with the specified values.
0046   //! Display of back-facing filled polygons.
0047   //! No distinction between external and internal faces of FillAreas.
0048   //! The edges are not drawn.
0049   //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0.
0050   Standard_EXPORT Graphic3d_AspectFillArea3d(const Aspect_InteriorStyle      theInterior,
0051                                              const Quantity_Color&           theInteriorColor,
0052                                              const Quantity_Color&           theEdgeColor,
0053                                              const Aspect_TypeOfLine         theEdgeLineType,
0054                                              const Standard_Real             theEdgeWidth,
0055                                              const Graphic3d_MaterialAspect& theFrontMaterial,
0056                                              const Graphic3d_MaterialAspect& theBackMaterial);
0057 
0058 public:
0059   Standard_DEPRECATED("Deprecated method, ToDrawEdges() should be used instead")
0060 
0061   bool Edge() const { return ToDrawEdges(); }
0062 };
0063 
0064 DEFINE_STANDARD_HANDLE(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
0065 
0066 #endif // _Graphic3d_AspectFillArea3d_HeaderFile