Integration of OCCT 6.5.0 from SVN
[occt.git] / src / AIS / AIS_Relation.lxx
CommitLineData
7fd59977 1// File: AIS_Relation.lxx
2// Created: Tue Dec 5 15:09:04 1996
3// Author: Odile Olivier
4// <ODL>
5
6#define BUC60915 //GG 05/06/01 Enable to compute the requested arrow size
7// if any in all dimensions.
8
9//=======================================================================
10//function : FirstShape
11//purpose :
12//=======================================================================
13
14inline const TopoDS_Shape& AIS_Relation::FirstShape() const
15{
16 return myFShape;
17}
18
19
20//=======================================================================
21//function : SecondShape
22//purpose :
23//=======================================================================
24
25inline const TopoDS_Shape& AIS_Relation::SecondShape() const
26{
27 return mySShape;
28}
29
30
31//=======================================================================
32//function : SetBndBox
33//purpose :
34//=======================================================================
35
36inline void AIS_Relation::SetBndBox( const Standard_Real Xmin,
37 const Standard_Real Ymin,
38 const Standard_Real Zmin,
39 const Standard_Real Xmax,
40 const Standard_Real Ymax,
41 const Standard_Real Zmax )
42{
43 myBndBox.Update( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax );
44 myIsSetBndBox = Standard_True;
45}
46
47inline void AIS_Relation::UnsetBndBox()
48{
49 myIsSetBndBox = Standard_False;
50}
51
52//=======================================================================
53//function : :Plane
54//purpose :
55//=======================================================================
56
57inline const Handle(Geom_Plane)& AIS_Relation::Plane() const
58{
59 return myPlane;
60}
61
62//=======================================================================
63//function : SetPlane
64//purpose :
65//=======================================================================
66
67inline void AIS_Relation::SetPlane(const Handle(Geom_Plane)& aPlane)
68{
69 myPlane = aPlane;
70}
71
72//=======================================================================
73//function : Value
74//purpose :
75//=======================================================================
76
77inline Standard_Real AIS_Relation::Value() const
78{
79 return myVal;
80}
81
82//=======================================================================
83//function : SetValue
84//purpose :
85//=======================================================================
86
87inline void AIS_Relation::SetValue(const Standard_Real aVal)
88{
89 myVal = aVal;
90}
91
92//=======================================================================
93//function : Position
94//purpose :
95//=======================================================================
96
97inline const gp_Pnt& AIS_Relation::Position() const
98{
99 return myPosition;
100}
101
102
103//=======================================================================
104//function : SetPosition
105//purpose :
106//=======================================================================
107
108inline void AIS_Relation::SetPosition(const gp_Pnt& aPosition)
109{
110 myPosition = aPosition;
111 myAutomaticPosition = Standard_False;
112}
113
114//=======================================================================
115//function : Text
116//purpose :
117//=======================================================================
118
119inline const TCollection_ExtendedString& AIS_Relation::Text() const
120{
121 return myText;
122}
123
124//=======================================================================
125//function : SetText
126//purpose :
127//=======================================================================
128
129inline void AIS_Relation::SetText(const TCollection_ExtendedString& aText)
130{
131 myText = aText;
132}
133
134//=======================================================================
135//function : ArrowSize
136//purpose :
137//=======================================================================
138
139inline Standard_Real AIS_Relation::ArrowSize() const
140{
141 return myArrowSize;
142}
143
144//=======================================================================
145//function : SetArrowSize
146//purpose :
147//=======================================================================
148
149inline void AIS_Relation::SetArrowSize(const Standard_Real anArrowSize)
150{
151 myArrowSize = anArrowSize;
152#ifdef BUC60915
153 myArrowSizeIsDefined = Standard_True;
154#endif
155}
156
157//=======================================================================
158//function : SymbolPrs
159//purpose :
160//=======================================================================
161
162inline DsgPrs_ArrowSide AIS_Relation::SymbolPrs() const
163{
164 return mySymbolPrs;
165}
166
167//=======================================================================
168//function : SetSymbolPrs
169//purpose :
170//=======================================================================
171inline void AIS_Relation::SetSymbolPrs(const DsgPrs_ArrowSide aSymbolPrs)
172{
173 mySymbolPrs = aSymbolPrs;
174}
175
176
177
178//=======================================================================
179//function : KindOfInteractive
180//purpose :
181//=======================================================================
182inline AIS_KindOfInteractive AIS_Relation::Type() const
183{return AIS_KOI_Relation;}
184
185
186//=======================================================================
187//function : SetExtShape
188//purpose :
189//=======================================================================
190inline void AIS_Relation::SetExtShape(const Standard_Integer ExtSh)
191{myExtShape = ExtSh;}
192
193
194//=======================================================================
195//function : ExtShape
196//purpose :
197//=======================================================================
198inline Standard_Integer AIS_Relation::ExtShape() const
199{return myExtShape;}
200
201
202//=======================================================================
203//function : SetAutomaticPosition
204//purpose :
205//=======================================================================
206inline void AIS_Relation::SetAutomaticPosition ( const Standard_Boolean aStatus )
207{
208 myAutomaticPosition = aStatus ;
209}
210
211//=======================================================================
212//function : AutomaticPosition
213//purpose :
214//=======================================================================
215inline Standard_Boolean AIS_Relation::AutomaticPosition () const
216{
217 return myAutomaticPosition;
218}