1 // Created on: 1996-12-05
2 // Created by: Odile Olivier
3 // Copyright (c) 1996-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #define BUC60915 //GG 05/06/01 Enable to compute the requested arrow size
18 // if any in all dimensions.
20 //=======================================================================
21 //function : FirstShape
23 //=======================================================================
25 inline const TopoDS_Shape& AIS_Relation::FirstShape() const
31 //=======================================================================
32 //function : SecondShape
34 //=======================================================================
36 inline const TopoDS_Shape& AIS_Relation::SecondShape() const
42 //=======================================================================
43 //function : SetBndBox
45 //=======================================================================
47 inline void AIS_Relation::SetBndBox( const Standard_Real Xmin,
48 const Standard_Real Ymin,
49 const Standard_Real Zmin,
50 const Standard_Real Xmax,
51 const Standard_Real Ymax,
52 const Standard_Real Zmax )
54 myBndBox.Update( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax );
55 myIsSetBndBox = Standard_True;
58 inline void AIS_Relation::UnsetBndBox()
60 myIsSetBndBox = Standard_False;
63 //=======================================================================
66 //=======================================================================
68 inline const Handle(Geom_Plane)& AIS_Relation::Plane() const
73 //=======================================================================
76 //=======================================================================
78 inline void AIS_Relation::SetPlane(const Handle(Geom_Plane)& aPlane)
83 //=======================================================================
86 //=======================================================================
88 inline Standard_Real AIS_Relation::Value() const
93 //=======================================================================
96 //=======================================================================
98 inline void AIS_Relation::SetValue(const Standard_Real aVal)
103 //=======================================================================
104 //function : Position
106 //=======================================================================
108 inline const gp_Pnt& AIS_Relation::Position() const
114 //=======================================================================
115 //function : SetPosition
117 //=======================================================================
119 inline void AIS_Relation::SetPosition(const gp_Pnt& aPosition)
121 myPosition = aPosition;
122 myAutomaticPosition = Standard_False;
125 //=======================================================================
128 //=======================================================================
130 inline const TCollection_ExtendedString& AIS_Relation::Text() const
135 //=======================================================================
138 //=======================================================================
140 inline void AIS_Relation::SetText(const TCollection_ExtendedString& aText)
145 //=======================================================================
146 //function : ArrowSize
148 //=======================================================================
150 inline Standard_Real AIS_Relation::ArrowSize() const
155 //=======================================================================
156 //function : SetArrowSize
158 //=======================================================================
160 inline void AIS_Relation::SetArrowSize(const Standard_Real anArrowSize)
162 myArrowSize = anArrowSize;
164 myArrowSizeIsDefined = Standard_True;
168 //=======================================================================
169 //function : SymbolPrs
171 //=======================================================================
173 inline DsgPrs_ArrowSide AIS_Relation::SymbolPrs() const
178 //=======================================================================
179 //function : SetSymbolPrs
181 //=======================================================================
182 inline void AIS_Relation::SetSymbolPrs(const DsgPrs_ArrowSide aSymbolPrs)
184 mySymbolPrs = aSymbolPrs;
189 //=======================================================================
190 //function : KindOfInteractive
192 //=======================================================================
193 inline AIS_KindOfInteractive AIS_Relation::Type() const
194 {return AIS_KOI_Relation;}
197 //=======================================================================
198 //function : SetExtShape
200 //=======================================================================
201 inline void AIS_Relation::SetExtShape(const Standard_Integer ExtSh)
202 {myExtShape = ExtSh;}
205 //=======================================================================
206 //function : ExtShape
208 //=======================================================================
209 inline Standard_Integer AIS_Relation::ExtShape() const
213 //=======================================================================
214 //function : SetAutomaticPosition
216 //=======================================================================
217 inline void AIS_Relation::SetAutomaticPosition ( const Standard_Boolean aStatus )
219 myAutomaticPosition = aStatus ;
222 //=======================================================================
223 //function : AutomaticPosition
225 //=======================================================================
226 inline Standard_Boolean AIS_Relation::AutomaticPosition () const
228 return myAutomaticPosition;