0029570: Visualization, Graphic3d_Aspect - merge Graphic3d_Group aspects
[occt.git] / src / Graphic3d / Graphic3d_AspectFillArea3d.hxx
CommitLineData
42cf5bc1 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
bf5f0ca2 20#include <Graphic3d_Aspects.hxx>
42cf5bc1 21
b6472664 22//! This class defines graphic attributes for opaque 3d primitives (polygons, triangles, quadrilaterals).
bf5f0ca2 23class Graphic3d_AspectFillArea3d : public Graphic3d_Aspects
b6472664 24{
bf5f0ca2 25 DEFINE_STANDARD_RTTIEXT(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
42cf5bc1 26public:
27
b6472664 28 //! Creates a context table for fill area primitives defined with the following default values:
42cf5bc1 29 //!
b6472664 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
ec7c343f 37 //! HatchStyle : Aspect_HS_SOLID
42cf5bc1 38 //!
39 //! Display of back-facing filled polygons.
b6472664 40 //! No distinction between external and internal faces of FillAreas.
42cf5bc1 41 //! The edges are not drawn.
42 //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0.
43 Standard_EXPORT Graphic3d_AspectFillArea3d();
44
b6472664 45 //! Creates a context table for fill area primitives defined with the specified values.
42cf5bc1 46 //! Display of back-facing filled polygons.
b6472664 47 //! No distinction between external and internal faces of FillAreas.
42cf5bc1 48 //! The edges are not drawn.
49 //! Polygon offset parameters: mode = Aspect_POM_None, factor = 1., units = 0.
b6472664 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
b6472664 58public:
42cf5bc1 59
bf5f0ca2 60 Standard_DEPRECATED("Deprecated method, ToDrawEdges() should be used instead")
2a332745 61 bool Edge() const { return ToDrawEdges(); }
42cf5bc1 62
b6472664 63};
42cf5bc1 64
bf5f0ca2 65DEFINE_STANDARD_HANDLE(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
42cf5bc1 66
67#endif // _Graphic3d_AspectFillArea3d_HeaderFile