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 //=======================================================================
18 //function : FirstShape
20 //=======================================================================
22 inline const TopoDS_Shape& AIS_Relation::FirstShape() const
28 //=======================================================================
29 //function : SecondShape
31 //=======================================================================
33 inline const TopoDS_Shape& AIS_Relation::SecondShape() const
39 //=======================================================================
40 //function : SetBndBox
42 //=======================================================================
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 )
51 myBndBox.Update( Xmin, Ymin, Zmin, Xmax, Ymax, Zmax );
52 myIsSetBndBox = Standard_True;
55 inline void AIS_Relation::UnsetBndBox()
57 myIsSetBndBox = Standard_False;
60 //=======================================================================
63 //=======================================================================
65 inline const Handle(Geom_Plane)& AIS_Relation::Plane() const
70 //=======================================================================
73 //=======================================================================
75 inline void AIS_Relation::SetPlane(const Handle(Geom_Plane)& aPlane)
80 //=======================================================================
83 //=======================================================================
85 inline Standard_Real AIS_Relation::Value() const
90 //=======================================================================
93 //=======================================================================
95 inline void AIS_Relation::SetValue(const Standard_Real aVal)
100 //=======================================================================
101 //function : Position
103 //=======================================================================
105 inline const gp_Pnt& AIS_Relation::Position() const
111 //=======================================================================
112 //function : SetPosition
114 //=======================================================================
116 inline void AIS_Relation::SetPosition(const gp_Pnt& aPosition)
118 myPosition = aPosition;
119 myAutomaticPosition = Standard_False;
122 //=======================================================================
125 //=======================================================================
127 inline const TCollection_ExtendedString& AIS_Relation::Text() const
132 //=======================================================================
135 //=======================================================================
137 inline void AIS_Relation::SetText(const TCollection_ExtendedString& aText)
142 //=======================================================================
143 //function : ArrowSize
145 //=======================================================================
147 inline Standard_Real AIS_Relation::ArrowSize() const
152 //=======================================================================
153 //function : SetArrowSize
155 //=======================================================================
157 inline void AIS_Relation::SetArrowSize(const Standard_Real anArrowSize)
159 myArrowSize = anArrowSize;
160 myArrowSizeIsDefined = Standard_True;
163 //=======================================================================
164 //function : SymbolPrs
166 //=======================================================================
168 inline DsgPrs_ArrowSide AIS_Relation::SymbolPrs() const
173 //=======================================================================
174 //function : SetSymbolPrs
176 //=======================================================================
177 inline void AIS_Relation::SetSymbolPrs(const DsgPrs_ArrowSide aSymbolPrs)
179 mySymbolPrs = aSymbolPrs;
184 //=======================================================================
185 //function : KindOfInteractive
187 //=======================================================================
188 inline AIS_KindOfInteractive AIS_Relation::Type() const
189 {return AIS_KOI_Relation;}
192 //=======================================================================
193 //function : SetExtShape
195 //=======================================================================
196 inline void AIS_Relation::SetExtShape(const Standard_Integer ExtSh)
197 {myExtShape = ExtSh;}
200 //=======================================================================
201 //function : ExtShape
203 //=======================================================================
204 inline Standard_Integer AIS_Relation::ExtShape() const
208 //=======================================================================
209 //function : SetAutomaticPosition
211 //=======================================================================
212 inline void AIS_Relation::SetAutomaticPosition ( const Standard_Boolean aStatus )
214 myAutomaticPosition = aStatus ;
217 //=======================================================================
218 //function : AutomaticPosition
220 //=======================================================================
221 inline Standard_Boolean AIS_Relation::AutomaticPosition () const
223 return myAutomaticPosition;