0030635: Visualization - move OpenGl_Layer to Graphic3d_Layer
[occt.git] / src / Graphic3d / Graphic3d_AspectFillArea3d.cxx
CommitLineData
b311480e 1// Created by: NW,JPB,CAL
2// Copyright (c) 1991-1999 Matra Datavision
973c2be1 3// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
b311480e 15
42cf5bc1 16#include <Graphic3d_AspectFillArea3d.hxx>
7fd59977 17
bf5f0ca2 18IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_AspectFillArea3d, Graphic3d_Aspects)
b6472664 19
20// =======================================================================
21// function : Graphic3d_AspectFillArea3d
22// purpose :
23// =======================================================================
24Graphic3d_AspectFillArea3d::Graphic3d_AspectFillArea3d()
63bcc448 25{
bf5f0ca2 26 myInteriorStyle = Aspect_IS_EMPTY;
b6472664 27}
28
29// =======================================================================
30// function : Graphic3d_AspectFillArea3d
31// purpose :
32// =======================================================================
33Graphic3d_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)
30f0ad28 40{
bf5f0ca2 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);
cc8cbabe 49}