1 // Created on: 1991-11-04 2 // Created by: NW,JPB,CAL 3 // Copyright (c) 1991-1999 Matra Datavision 4 // Copyright (c) 1999-2014 OPEN CASCADE SAS 5 // 6 // This file is part of Open CASCADE Technology software library. 7 // 8 // This library is free software; you can redistribute it and/or modify it under 9 // the terms of the GNU Lesser General Public License version 2.1 as published 10 // by the Free Software Foundation, with special exception defined in the file 11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 12 // distribution for complete text of the license and disclaimer of any warranty. 13 // 14 // Alternatively, this file may be used under the terms of Open CASCADE 15 // commercial license or contractual agreement. 16 17 #ifndef _Graphic3d_AspectFillArea3d_HeaderFile 18 #define _Graphic3d_AspectFillArea3d_HeaderFile 19 20 #include <Graphic3d_Aspects.hxx> 21 22 //! This class defines graphic attributes for opaque 3d primitives (polygons, triangles, quadrilaterals). 23 class Graphic3d_AspectFillArea3d : public Graphic3d_Aspects 24 { 25 DEFINE_STANDARD_RTTIEXT(Graphic3d_AspectFillArea3d, Graphic3d_Aspects) 26 public: 27 28 //! Creates a context table for fill area primitives defined with the following default values: 29 //! 30 //! InteriorStyle : Aspect_IS_EMPTY 31 //! InteriorColor : Quantity_NOC_CYAN1 32 //! EdgeColor : Quantity_NOC_WHITE 33 //! EdgeLineType : Aspect_TOL_SOLID 34 //! EdgeWidth : 1.0 35 //! FrontMaterial : NOM_BRASS 36 //! BackMaterial : NOM_BRASS 37 //! HatchStyle : Aspect_HS_SOLID 38 //! 39 //! Display of back-facing filled polygons. 40 //! No distinction between external and internal faces of FillAreas. 41 //! The edges are not drawn. 42 //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0. 43 Standard_EXPORT Graphic3d_AspectFillArea3d(); 44 45 //! Creates a context table for fill area primitives defined with the specified values. 46 //! Display of back-facing filled polygons. 47 //! No distinction between external and internal faces of FillAreas. 48 //! The edges are not drawn. 49 //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0. 50 Standard_EXPORT Graphic3d_AspectFillArea3d (const Aspect_InteriorStyle theInterior, 51 const Quantity_Color& theInteriorColor, 52 const Quantity_Color& theEdgeColor, 53 const Aspect_TypeOfLine theEdgeLineType, 54 const Standard_Real theEdgeWidth, 55 const Graphic3d_MaterialAspect& theFrontMaterial, 56 const Graphic3d_MaterialAspect& theBackMaterial); 57 58 public: 59 60 Standard_DEPRECATED("Deprecated method, ToDrawEdges() should be used instead") Edge() const61 bool Edge() const { return ToDrawEdges(); } 62 63 }; 64 65 DEFINE_STANDARD_HANDLE(Graphic3d_AspectFillArea3d, Graphic3d_Aspects) 66 67 #endif // _Graphic3d_AspectFillArea3d_HeaderFile 68