7fd59977 |
1 | #include <Prs3d_PlaneAspect.ixx> |
2 | |
3 | Prs3d_PlaneAspect::Prs3d_PlaneAspect() |
4 | { |
5 | myEdgesAspect = new Prs3d_LineAspect(Quantity_NOC_GREEN,Aspect_TOL_SOLID,1.); |
6 | myIsoAspect = new Prs3d_LineAspect(Quantity_NOC_GRAY75,Aspect_TOL_SOLID,0.5); |
7 | myArrowAspect = new Prs3d_LineAspect(Quantity_NOC_PEACHPUFF,Aspect_TOL_SOLID,1.); |
8 | myDrawCenterArrow = Standard_False; |
9 | myDrawEdgesArrows = Standard_False; |
10 | myDrawEdges = Standard_True; |
11 | myDrawIso = Standard_False; |
12 | myIsoDistance = 0.5; |
13 | myPlaneXLength= 1.; |
14 | myPlaneYLength= 1.; |
15 | myArrowsLength= 0.02; |
16 | myArrowsSize=0.1; |
17 | myArrowsAngle=PI/8.; |
18 | } |
19 | |
20 | Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::EdgesAspect() const |
21 | { |
22 | return myEdgesAspect; |
23 | } |
24 | |
25 | Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::IsoAspect() const |
26 | { |
27 | return myIsoAspect; |
28 | } |
29 | |
30 | Handle(Prs3d_LineAspect) Prs3d_PlaneAspect::ArrowAspect() const |
31 | { |
32 | return myArrowAspect; |
33 | } |
34 | |
35 | void Prs3d_PlaneAspect::SetDisplayCenterArrow(const Standard_Boolean draw) |
36 | { |
37 | myDrawCenterArrow = draw; |
38 | } |
39 | |
40 | void Prs3d_PlaneAspect::SetDisplayEdgesArrows(const Standard_Boolean draw) |
41 | { |
42 | myDrawEdgesArrows = draw; |
43 | } |
44 | |
45 | void Prs3d_PlaneAspect::SetDisplayEdges(const Standard_Boolean draw) |
46 | { |
47 | myDrawEdges = draw; |
48 | } |
49 | |
50 | void Prs3d_PlaneAspect::SetDisplayIso(const Standard_Boolean draw) |
51 | { |
52 | myDrawIso = draw; |
53 | } |
54 | |
55 | Standard_Boolean Prs3d_PlaneAspect::DisplayCenterArrow() const |
56 | { |
57 | return myDrawCenterArrow; |
58 | } |
59 | |
60 | Standard_Boolean Prs3d_PlaneAspect::DisplayEdgesArrows() const |
61 | { |
62 | return myDrawEdgesArrows; |
63 | } |
64 | |
65 | Standard_Boolean Prs3d_PlaneAspect::DisplayEdges() const |
66 | { |
67 | return myDrawEdges; |
68 | } |
69 | |
70 | Standard_Boolean Prs3d_PlaneAspect::DisplayIso() const |
71 | { |
72 | return myDrawIso; |
73 | } |
74 | |
75 | void Prs3d_PlaneAspect::SetPlaneLength(const Quantity_Length lX, |
76 | const Quantity_Length lY) |
77 | { |
78 | myPlaneXLength = lX; |
79 | myPlaneYLength = lY; |
80 | } |
81 | |
82 | Quantity_Length Prs3d_PlaneAspect::PlaneXLength() const |
83 | { |
84 | return myPlaneXLength; |
85 | } |
86 | |
87 | Quantity_Length Prs3d_PlaneAspect::PlaneYLength() const |
88 | { |
89 | return myPlaneYLength; |
90 | } |
91 | |
92 | void Prs3d_PlaneAspect::SetIsoDistance(const Quantity_Length l) |
93 | { |
94 | myIsoDistance = l; |
95 | } |
96 | |
97 | Quantity_Length Prs3d_PlaneAspect::IsoDistance() const |
98 | { |
99 | return myIsoDistance; |
100 | } |
101 | |
102 | void Prs3d_PlaneAspect::SetArrowsLength(const Quantity_Length L) |
103 | { |
104 | myArrowsLength = L; |
105 | } |
106 | |
107 | Quantity_Length Prs3d_PlaneAspect::ArrowsLength() const |
108 | { |
109 | return myArrowsLength; |
110 | } |
111 | |
112 | void Prs3d_PlaneAspect::SetArrowsSize(const Quantity_Length L) |
113 | { |
114 | myArrowsSize = L; |
115 | } |
116 | |
117 | Quantity_Length Prs3d_PlaneAspect::ArrowsSize() const |
118 | { |
119 | return myArrowsSize; |
120 | } |
121 | |
122 | void Prs3d_PlaneAspect::SetArrowsAngle(const Quantity_PlaneAngle ang) |
123 | { |
124 | myArrowsAngle = ang; |
125 | } |
126 | |
127 | Quantity_Length Prs3d_PlaneAspect::ArrowsAngle() const |
128 | { |
129 | return myArrowsAngle; |
130 | } |
131 | |
132 | |
133 | |
134 | |
135 | |
136 | |
137 | |
138 | |
139 | |
140 | |
141 | |
142 | |