0024624: Lost word in license statement in source files
[occt.git] / src / Prs3d / Prs3d_PlaneAspect.cxx
1 // Copyright (c) 1995-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
3 //
4 // This file is part of Open CASCADE Technology software library.
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
11 //
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
14
15 #include <Prs3d_PlaneAspect.ixx>
16
17 Prs3d_PlaneAspect::Prs3d_PlaneAspect()
18 {
19   myEdgesAspect = new Prs3d_LineAspect(Quantity_NOC_GREEN,Aspect_TOL_SOLID,1.);
20   myIsoAspect = new Prs3d_LineAspect(Quantity_NOC_GRAY75,Aspect_TOL_SOLID,0.5);
21   myArrowAspect = new Prs3d_LineAspect(Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.);
22   myDrawCenterArrow = Standard_False;
23   myDrawEdgesArrows = Standard_False;
24   myDrawEdges = Standard_True;
25   myDrawIso = Standard_False;
26   myIsoDistance = 0.5;
27   myPlaneXLength= 1.;
28   myPlaneYLength= 1.;
29   myArrowsLength= 0.02;
30   myArrowsSize=0.1;
31   myArrowsAngle=M_PI/8.;
32 }
33
34 Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::EdgesAspect() const
35 {
36   return myEdgesAspect;
37 }
38
39 Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::IsoAspect() const
40 {
41   return myIsoAspect;
42 }
43
44 Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::ArrowAspect() const
45 {
46   return myArrowAspect;
47 }
48
49 void Prs3d_PlaneAspect::SetDisplayCenterArrow(const Standard_Boolean draw)
50 {
51   myDrawCenterArrow = draw;
52 }
53
54 void Prs3d_PlaneAspect::SetDisplayEdgesArrows(const Standard_Boolean draw)
55 {
56   myDrawEdgesArrows = draw;
57 }
58
59 void Prs3d_PlaneAspect::SetDisplayEdges(const Standard_Boolean draw)
60 {
61   myDrawEdges = draw;
62 }
63
64 void Prs3d_PlaneAspect::SetDisplayIso(const Standard_Boolean draw)
65 {
66   myDrawIso = draw;
67 }
68
69 Standard_Boolean Prs3d_PlaneAspect::DisplayCenterArrow() const
70 {
71   return myDrawCenterArrow;
72 }
73
74 Standard_Boolean Prs3d_PlaneAspect::DisplayEdgesArrows() const
75 {
76   return myDrawEdgesArrows;
77 }
78
79 Standard_Boolean Prs3d_PlaneAspect::DisplayEdges() const
80 {
81   return myDrawEdges;
82 }
83
84 Standard_Boolean Prs3d_PlaneAspect::DisplayIso() const
85 {
86   return myDrawIso;
87 }
88
89 void Prs3d_PlaneAspect::SetPlaneLength(const Quantity_Length lX,
90                                        const Quantity_Length lY)
91 {
92   myPlaneXLength = lX;
93   myPlaneYLength = lY;
94 }
95
96 Quantity_Length Prs3d_PlaneAspect::PlaneXLength() const
97 {
98   return myPlaneXLength;
99 }
100
101 Quantity_Length Prs3d_PlaneAspect::PlaneYLength() const
102 {
103   return myPlaneYLength;
104 }
105
106 void Prs3d_PlaneAspect::SetIsoDistance(const Quantity_Length l) 
107 {
108   myIsoDistance = l;
109 }
110
111 Quantity_Length Prs3d_PlaneAspect::IsoDistance() const
112 {
113   return myIsoDistance;
114 }
115
116 void Prs3d_PlaneAspect::SetArrowsLength(const Quantity_Length L)
117 {
118   myArrowsLength = L;
119 }
120
121 Quantity_Length Prs3d_PlaneAspect::ArrowsLength() const
122 {
123   return myArrowsLength;
124 }
125
126 void Prs3d_PlaneAspect::SetArrowsSize(const Quantity_Length L)
127 {
128   myArrowsSize = L;
129 }
130
131 Quantity_Length Prs3d_PlaneAspect::ArrowsSize() const
132 {
133   return myArrowsSize;
134 }
135
136 void Prs3d_PlaneAspect::SetArrowsAngle(const Quantity_PlaneAngle ang)
137 {
138   myArrowsAngle = ang;
139 }
140
141 Quantity_Length Prs3d_PlaneAspect::ArrowsAngle() const
142 {
143   return myArrowsAngle;
144 }
145
146
147
148
149
150
151
152
153
154
155
156