0024129: Eliminate remaining compiler warnings in MSVC++ 2008 32 bit with warning...
[occt.git] / src / HLRBRep / HLRBRep_Data.lxx
1 // Created on: 1997-04-17
2 // Created by: Christophe MARION
3 // Copyright (c) 1997-1999 Matra Datavision
4 // Copyright (c) 1999-2012 OPEN CASCADE SAS
5 //
6 // The content of this file is subject to the Open CASCADE Technology Public
7 // License Version 6.5 (the "License"). You may not use the content of this file
8 // except in compliance with the License. Please obtain a copy of the License
9 // at http://www.opencascade.org and read it completely before using this file.
10 //
11 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 //
14 // The Original Code and all software distributed under the License is
15 // distributed on an "AS IS" basis, without warranty of any kind, and the
16 // Initial Developer hereby disclaims all such warranties, including without
17 // limitation, any warranties of merchantability, fitness for a particular
18 // purpose or non-infringement. Please see the License for the specific terms
19 // and conditions governing the rights and limitations under the License.
20
21
22 //=======================================================================
23 //function : EDataArray
24 //purpose  : 
25 //=======================================================================
26
27 inline HLRBRep_Array1OfEData & HLRBRep_Data::EDataArray ()
28 { return myEData; }
29
30 //=======================================================================
31 //function : FDataArray
32 //purpose  : 
33 //=======================================================================
34
35 inline HLRBRep_Array1OfFData & HLRBRep_Data::FDataArray ()
36 { return myFData; }
37
38 //=======================================================================
39 //function : Tolerance
40 //purpose  : 
41 //=======================================================================
42
43 inline void HLRBRep_Data::Tolerance (const Standard_ShortReal tol)
44 { myToler = tol; }
45
46 //=======================================================================
47 //function : Tolerance
48 //purpose  : 
49 //=======================================================================
50
51 inline Standard_ShortReal HLRBRep_Data::Tolerance () const
52 { return myToler; }
53
54 //=======================================================================
55 //function : Projector
56 //purpose  : 
57 //=======================================================================
58
59 inline HLRAlgo_Projector & HLRBRep_Data::Projector ()
60 { return myProj; }
61
62 //=======================================================================
63 //function : NbVertices
64 //purpose  : 
65 //=======================================================================
66
67 inline Standard_Integer HLRBRep_Data::NbVertices () const
68 { return myNbVertices; }
69
70 //=======================================================================
71 //function : NbEdges
72 //purpose  : 
73 //=======================================================================
74
75 inline Standard_Integer HLRBRep_Data::NbEdges () const
76 { return myNbEdges; }
77
78 //=======================================================================
79 //function : NbFaces
80 //purpose  : 
81 //=======================================================================
82
83 inline Standard_Integer HLRBRep_Data::NbFaces () const
84 { return myNbFaces; }
85
86 //=======================================================================
87 //function : EdgeMap
88 //purpose  : 
89 //=======================================================================
90
91 inline TopTools_IndexedMapOfShape & HLRBRep_Data::EdgeMap ()
92 { return myEMap; }
93
94 //=======================================================================
95 //function : FaceMap
96 //purpose  : 
97 //=======================================================================
98
99 inline TopTools_IndexedMapOfShape & HLRBRep_Data::FaceMap ()
100 { return myFMap; }
101
102 //=======================================================================
103 //function : SimpleHidingFace
104 //purpose  : 
105 //=======================================================================
106        
107 inline Standard_Boolean HLRBRep_Data::SimpleHidingFace () const
108 { return iFaceSimp; }
109
110 //=======================================================================
111 //function : HidingTheFace
112 //purpose  : 
113 //=======================================================================
114        
115 inline Standard_Boolean HLRBRep_Data::HidingTheFace () const
116 { return iFaceTest; }
117
118 //=======================================================================
119 //function : MoreInterference
120 //purpose  : 
121 //=======================================================================
122        
123 inline Standard_Boolean HLRBRep_Data::MoreInterference () const
124 { return (iInterf <= myNbPoints + 2*myNbSegments); }
125
126 //=======================================================================
127 //function : Interference
128 //purpose  : 
129 //=======================================================================
130
131 inline HLRAlgo_Interference & HLRBRep_Data::Interference ()
132 { return myIntf; }
133
134 //=======================================================================
135 //function :EdgeOfTheHidingFace
136 //purpose  : 
137 //=======================================================================
138
139 inline Standard_Boolean 
140 HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer,
141                                    const HLRBRep_EdgeData& ED) const
142 { return ED.HideCount() == myHideCount-1; }