0026885: Visualization - drop redundant aspects from structure level
[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
81bba717 17//-Design Declaration of variables specific to the context
18// of tracing of lines 3d
81bba717 19//-Warning Context of tracing of lines 3d inherits the context
20// defined by :
21// - the color
22// - the type of trait
23// - the thickness
7fd59977 24//-References
7fd59977 25//-Language C++ 2.0
7fd59977 26//-Declarations
7fd59977 27// for the class
7fd59977 28
42cf5bc1 29#include <Graphic3d_AspectLine3d.hxx>
30#include <Quantity_Color.hxx>
31#include <Standard_Type.hxx>
7fd59977 32
92efcf78 33IMPLEMENT_STANDARD_RTTIEXT(Graphic3d_AspectLine3d,Aspect_AspectLine)
34
42cf5bc1 35//-Aliases
7fd59977 36//-Global data definitions
7fd59977 37//-Constructors
7fd59977 38//-Destructors
7fd59977 39//-Methods, in order
7fd59977 40Graphic3d_AspectLine3d::Graphic3d_AspectLine3d () {
41}
42
81bba717 43// (AColor, AType, AWidth)
44// because AspectLine3d inherits AspectLine and it is necessary to call
45// initialisation of AspectLine with AColor, AType, AWidth.
7fd59977 46
47Graphic3d_AspectLine3d::Graphic3d_AspectLine3d (const Quantity_Color& AColor, const Aspect_TypeOfLine AType, const Standard_Real AWidth):Aspect_AspectLine (AColor, AType, AWidth) {}
30f0ad28 48
49void Graphic3d_AspectLine3d::SetShaderProgram (const Handle(Graphic3d_ShaderProgram)& theProgram)
50{
51 MyShaderProgram = theProgram;
52}
53
54const Handle(Graphic3d_ShaderProgram)& Graphic3d_AspectLine3d::ShaderProgram() const
55{
56 return MyShaderProgram;
57}