b311480e |
1 | // Created by: NW,JPB,CAL |
2 | // Copyright (c) 1991-1999 Matra Datavision |
3 | // Copyright (c) 1999-2012 OPEN CASCADE SAS |
4 | // |
5 | // The content of this file is subject to the Open CASCADE Technology Public |
6 | // License Version 6.5 (the "License"). You may not use the content of this file |
7 | // except in compliance with the License. Please obtain a copy of the License |
8 | // at http://www.opencascade.org and read it completely before using this file. |
9 | // |
10 | // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | // |
13 | // The Original Code and all software distributed under the License is |
14 | // distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | // Initial Developer hereby disclaims all such warranties, including without |
16 | // limitation, any warranties of merchantability, fitness for a particular |
17 | // purpose or non-infringement. Please see the License for the specific terms |
18 | // and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
7fd59977 |
21 | |
7fd59977 |
22 | |
23 | //-Version |
24 | |
81bba717 |
25 | //-Design Declaration of variables specific to the context |
26 | // of tracing of lines 3d |
7fd59977 |
27 | |
81bba717 |
28 | //-Warning Context of tracing of lines 3d inherits the context |
29 | // defined by : |
30 | // - the color |
31 | // - the type of trait |
32 | // - the thickness |
7fd59977 |
33 | |
34 | //-References |
35 | |
36 | //-Language C++ 2.0 |
37 | |
38 | //-Declarations |
39 | |
40 | // for the class |
41 | #include <Graphic3d_AspectLine3d.ixx> |
42 | |
43 | //-Aliases |
44 | |
45 | //-Global data definitions |
46 | |
47 | //-Constructors |
48 | |
49 | //-Destructors |
50 | |
51 | //-Methods, in order |
52 | |
53 | Graphic3d_AspectLine3d::Graphic3d_AspectLine3d () { |
54 | } |
55 | |
81bba717 |
56 | // (AColor, AType, AWidth) |
57 | // because AspectLine3d inherits AspectLine and it is necessary to call |
58 | // initialisation of AspectLine with AColor, AType, AWidth. |
7fd59977 |
59 | |
60 | Graphic3d_AspectLine3d::Graphic3d_AspectLine3d (const Quantity_Color& AColor, const Aspect_TypeOfLine AType, const Standard_Real AWidth):Aspect_AspectLine (AColor, AType, AWidth) {} |
30f0ad28 |
61 | |
62 | void Graphic3d_AspectLine3d::SetShaderProgram (const Handle(Graphic3d_ShaderProgram)& theProgram) |
63 | { |
64 | MyShaderProgram = theProgram; |
65 | } |
66 | |
67 | const Handle(Graphic3d_ShaderProgram)& Graphic3d_AspectLine3d::ShaderProgram() const |
68 | { |
69 | return MyShaderProgram; |
70 | } |