b311480e |
1 | // Created on: 1996-12-05 |
2 | // Created by: Odile Olivier |
3 | // Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
7fd59977 |
17 | //======================================================================= |
18 | //function : FirstShape |
19 | //purpose : |
20 | //======================================================================= |
21 | |
22 | inline const TopoDS_Shape& AIS_Relation::FirstShape() const |
23 | { |
24 | return myFShape; |
25 | } |
26 | |
27 | |
28 | //======================================================================= |
29 | //function : SecondShape |
30 | //purpose : |
31 | //======================================================================= |
32 | |
33 | inline const TopoDS_Shape& AIS_Relation::SecondShape() const |
34 | { |
35 | return mySShape; |
36 | } |
37 | |
38 | |
39 | //======================================================================= |
40 | //function : SetBndBox |
41 | //purpose : |
42 | //======================================================================= |
43 | |
44 | inline void AIS_Relation::SetBndBox( const Standard_Real Xmin, |
45 | const Standard_Real Ymin, |
46 | const Standard_Real Zmin, |
47 | const Standard_Real Xmax, |
48 | const Standard_Real Ymax, |
49 | const Standard_Real Zmax ) |
50 | { |
51 | myBndBox.Update( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax ); |
52 | myIsSetBndBox = Standard_True; |
53 | } |
54 | |
55 | inline void AIS_Relation::UnsetBndBox() |
56 | { |
57 | myIsSetBndBox = Standard_False; |
58 | } |
59 | |
60 | //======================================================================= |
61 | //function : :Plane |
62 | //purpose : |
63 | //======================================================================= |
64 | |
65 | inline const Handle(Geom_Plane)& AIS_Relation::Plane() const |
66 | { |
67 | return myPlane; |
68 | } |
69 | |
70 | //======================================================================= |
71 | //function : SetPlane |
72 | //purpose : |
73 | //======================================================================= |
74 | |
75 | inline void AIS_Relation::SetPlane(const Handle(Geom_Plane)& aPlane) |
76 | { |
77 | myPlane = aPlane; |
78 | } |
79 | |
80 | //======================================================================= |
81 | //function : Value |
82 | //purpose : |
83 | //======================================================================= |
84 | |
85 | inline Standard_Real AIS_Relation::Value() const |
86 | { |
87 | return myVal; |
88 | } |
89 | |
90 | //======================================================================= |
91 | //function : SetValue |
92 | //purpose : |
93 | //======================================================================= |
94 | |
95 | inline void AIS_Relation::SetValue(const Standard_Real aVal) |
96 | { |
97 | myVal = aVal; |
98 | } |
99 | |
100 | //======================================================================= |
101 | //function : Position |
102 | //purpose : |
103 | //======================================================================= |
104 | |
105 | inline const gp_Pnt& AIS_Relation::Position() const |
106 | { |
107 | return myPosition; |
108 | } |
109 | |
110 | |
111 | //======================================================================= |
112 | //function : SetPosition |
113 | //purpose : |
114 | //======================================================================= |
115 | |
116 | inline void AIS_Relation::SetPosition(const gp_Pnt& aPosition) |
117 | { |
118 | myPosition = aPosition; |
119 | myAutomaticPosition = Standard_False; |
120 | } |
121 | |
122 | //======================================================================= |
123 | //function : Text |
124 | //purpose : |
125 | //======================================================================= |
126 | |
127 | inline const TCollection_ExtendedString& AIS_Relation::Text() const |
128 | { |
129 | return myText; |
130 | } |
131 | |
132 | //======================================================================= |
133 | //function : SetText |
134 | //purpose : |
135 | //======================================================================= |
136 | |
137 | inline void AIS_Relation::SetText(const TCollection_ExtendedString& aText) |
138 | { |
139 | myText = aText; |
140 | } |
141 | |
142 | //======================================================================= |
143 | //function : ArrowSize |
144 | //purpose : |
145 | //======================================================================= |
146 | |
147 | inline Standard_Real AIS_Relation::ArrowSize() const |
148 | { |
149 | return myArrowSize; |
150 | } |
151 | |
152 | //======================================================================= |
153 | //function : SetArrowSize |
154 | //purpose : |
155 | //======================================================================= |
156 | |
157 | inline void AIS_Relation::SetArrowSize(const Standard_Real anArrowSize) |
158 | { |
159 | myArrowSize = anArrowSize; |
7fd59977 |
160 | myArrowSizeIsDefined = Standard_True; |
7fd59977 |
161 | } |
162 | |
163 | //======================================================================= |
164 | //function : SymbolPrs |
165 | //purpose : |
166 | //======================================================================= |
167 | |
168 | inline DsgPrs_ArrowSide AIS_Relation::SymbolPrs() const |
169 | { |
170 | return mySymbolPrs; |
171 | } |
172 | |
173 | //======================================================================= |
174 | //function : SetSymbolPrs |
175 | //purpose : |
176 | //======================================================================= |
177 | inline void AIS_Relation::SetSymbolPrs(const DsgPrs_ArrowSide aSymbolPrs) |
178 | { |
179 | mySymbolPrs = aSymbolPrs; |
180 | } |
181 | |
182 | |
183 | |
184 | //======================================================================= |
185 | //function : KindOfInteractive |
186 | //purpose : |
187 | //======================================================================= |
188 | inline AIS_KindOfInteractive AIS_Relation::Type() const |
189 | {return AIS_KOI_Relation;} |
190 | |
191 | |
192 | //======================================================================= |
193 | //function : SetExtShape |
194 | //purpose : |
195 | //======================================================================= |
196 | inline void AIS_Relation::SetExtShape(const Standard_Integer ExtSh) |
197 | {myExtShape = ExtSh;} |
198 | |
199 | |
200 | //======================================================================= |
201 | //function : ExtShape |
202 | //purpose : |
203 | //======================================================================= |
204 | inline Standard_Integer AIS_Relation::ExtShape() const |
205 | {return myExtShape;} |
206 | |
207 | |
208 | //======================================================================= |
209 | //function : SetAutomaticPosition |
210 | //purpose : |
211 | //======================================================================= |
212 | inline void AIS_Relation::SetAutomaticPosition ( const Standard_Boolean aStatus ) |
213 | { |
214 | myAutomaticPosition = aStatus ; |
215 | } |
216 | |
217 | //======================================================================= |
218 | //function : AutomaticPosition |
219 | //purpose : |
220 | //======================================================================= |
221 | inline Standard_Boolean AIS_Relation::AutomaticPosition () const |
222 | { |
223 | return myAutomaticPosition; |
224 | } |