0022048: Visualization, AIS_InteractiveContext - single object selection should alway...
[occt.git] / src / HLRBRep / HLRBRep_Data.lxx
CommitLineData
b311480e 1// Created on: 1997-04-17
2// Created by: Christophe MARION
3// Copyright (c) 1997-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
17//=======================================================================
18//function : EDataArray
19//purpose :
20//=======================================================================
21
22inline HLRBRep_Array1OfEData & HLRBRep_Data::EDataArray ()
23{ return myEData; }
24
25//=======================================================================
26//function : FDataArray
27//purpose :
28//=======================================================================
29
30inline HLRBRep_Array1OfFData & HLRBRep_Data::FDataArray ()
31{ return myFData; }
32
33//=======================================================================
34//function : Tolerance
35//purpose :
36//=======================================================================
37
38inline void HLRBRep_Data::Tolerance (const Standard_ShortReal tol)
39{ myToler = tol; }
40
41//=======================================================================
42//function : Tolerance
43//purpose :
44//=======================================================================
45
46inline Standard_ShortReal HLRBRep_Data::Tolerance () const
47{ return myToler; }
48
49//=======================================================================
50//function : Projector
51//purpose :
52//=======================================================================
53
54inline HLRAlgo_Projector & HLRBRep_Data::Projector ()
55{ return myProj; }
56
57//=======================================================================
58//function : NbVertices
59//purpose :
60//=======================================================================
61
62inline Standard_Integer HLRBRep_Data::NbVertices () const
63{ return myNbVertices; }
64
65//=======================================================================
66//function : NbEdges
67//purpose :
68//=======================================================================
69
70inline Standard_Integer HLRBRep_Data::NbEdges () const
71{ return myNbEdges; }
72
73//=======================================================================
74//function : NbFaces
75//purpose :
76//=======================================================================
77
78inline Standard_Integer HLRBRep_Data::NbFaces () const
79{ return myNbFaces; }
80
81//=======================================================================
82//function : EdgeMap
83//purpose :
84//=======================================================================
85
86inline TopTools_IndexedMapOfShape & HLRBRep_Data::EdgeMap ()
87{ return myEMap; }
88
89//=======================================================================
90//function : FaceMap
91//purpose :
92//=======================================================================
93
94inline TopTools_IndexedMapOfShape & HLRBRep_Data::FaceMap ()
95{ return myFMap; }
96
97//=======================================================================
98//function : SimpleHidingFace
99//purpose :
100//=======================================================================
101
102inline Standard_Boolean HLRBRep_Data::SimpleHidingFace () const
103{ return iFaceSimp; }
104
105//=======================================================================
106//function : HidingTheFace
107//purpose :
108//=======================================================================
109
110inline Standard_Boolean HLRBRep_Data::HidingTheFace () const
111{ return iFaceTest; }
112
113//=======================================================================
114//function : MoreInterference
115//purpose :
116//=======================================================================
117
118inline Standard_Boolean HLRBRep_Data::MoreInterference () const
119{ return (iInterf <= myNbPoints + 2*myNbSegments); }
120
121//=======================================================================
122//function : Interference
123//purpose :
124//=======================================================================
125
126inline HLRAlgo_Interference & HLRBRep_Data::Interference ()
127{ return myIntf; }
128
129//=======================================================================
130//function :EdgeOfTheHidingFace
131//purpose :
132//=======================================================================
133
134inline Standard_Boolean
498ce76b 135HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer,
7fd59977 136 const HLRBRep_EdgeData& ED) const
137{ return ED.HideCount() == myHideCount-1; }