0024855: Revision of parameters of standard materials
[occt.git] / src / Graphic3d / Graphic3d_AspectLine3d.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.
7fd59977 15
16//-Version
17
81bba717 18//-Design Declaration of variables specific to the context
19// of tracing of lines 3d
7fd59977 20
81bba717 21//-Warning Context of tracing of lines 3d inherits the context
22// defined by :
23// - the color
24// - the type of trait
25// - the thickness
7fd59977 26
27//-References
28
29//-Language C++ 2.0
30
31//-Declarations
32
33// for the class
34#include <Graphic3d_AspectLine3d.ixx>
35
36//-Aliases
37
38//-Global data definitions
39
40//-Constructors
41
42//-Destructors
43
44//-Methods, in order
45
46Graphic3d_AspectLine3d::Graphic3d_AspectLine3d () {
47}
48
81bba717 49// (AColor, AType, AWidth)
50// because AspectLine3d inherits AspectLine and it is necessary to call
51// initialisation of AspectLine with AColor, AType, AWidth.
7fd59977 52
53Graphic3d_AspectLine3d::Graphic3d_AspectLine3d (const Quantity_Color& AColor, const Aspect_TypeOfLine AType, const Standard_Real AWidth):Aspect_AspectLine (AColor, AType, AWidth) {}
30f0ad28 54
55void Graphic3d_AspectLine3d::SetShaderProgram (const Handle(Graphic3d_ShaderProgram)& theProgram)
56{
57 MyShaderProgram = theProgram;
58}
59
60const Handle(Graphic3d_ShaderProgram)& Graphic3d_AspectLine3d::ShaderProgram() const
61{
62 return MyShaderProgram;
63}