1 // Created by: NW,JPB,CAL
2 // Copyright (c) 1991-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #include <Graphic3d_AspectFillArea3d.hxx>
18 IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
20 // =======================================================================
21 // function : Graphic3d_AspectFillArea3d
23 // =======================================================================
24 Graphic3d_AspectFillArea3d::Graphic3d_AspectFillArea3d()
26 myInteriorStyle = Aspect_IS_EMPTY;
29 // =======================================================================
30 // function : Graphic3d_AspectFillArea3d
32 // =======================================================================
33 Graphic3d_AspectFillArea3d::Graphic3d_AspectFillArea3d (const Aspect_InteriorStyle theInteriorStyle,
34 const Quantity_Color& theInteriorColor,
35 const Quantity_Color& theEdgeColor,
36 const Aspect_TypeOfLine theEdgeLineType,
37 const Standard_Real theEdgeLineWidth,
38 const Graphic3d_MaterialAspect& theFrontMaterial,
39 const Graphic3d_MaterialAspect& theBackMaterial)
41 myFrontMaterial = theFrontMaterial;
42 myBackMaterial = theBackMaterial;
43 myInteriorColor.SetRGB (theInteriorColor);
44 myBackInteriorColor.SetRGB (theInteriorColor);
45 myEdgeColor.SetRGB (theEdgeColor);
46 myInteriorStyle = theInteriorStyle;
47 myLineType = theEdgeLineType;
48 SetEdgeWidth ((float )theEdgeLineWidth);