0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[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-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
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.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 //=======================================================================
18 //function : EDataArray
19 //purpose  : 
20 //=======================================================================
21
22 inline HLRBRep_Array1OfEData & HLRBRep_Data::EDataArray ()
23 { return myEData; }
24
25 //=======================================================================
26 //function : FDataArray
27 //purpose  : 
28 //=======================================================================
29
30 inline HLRBRep_Array1OfFData & HLRBRep_Data::FDataArray ()
31 { return myFData; }
32
33 //=======================================================================
34 //function : Tolerance
35 //purpose  : 
36 //=======================================================================
37
38 inline void HLRBRep_Data::Tolerance (const Standard_ShortReal tol)
39 { myToler = tol; }
40
41 //=======================================================================
42 //function : Tolerance
43 //purpose  : 
44 //=======================================================================
45
46 inline Standard_ShortReal HLRBRep_Data::Tolerance () const
47 { return myToler; }
48
49 //=======================================================================
50 //function : Projector
51 //purpose  : 
52 //=======================================================================
53
54 inline HLRAlgo_Projector & HLRBRep_Data::Projector ()
55 { return myProj; }
56
57 //=======================================================================
58 //function : NbVertices
59 //purpose  : 
60 //=======================================================================
61
62 inline Standard_Integer HLRBRep_Data::NbVertices () const
63 { return myNbVertices; }
64
65 //=======================================================================
66 //function : NbEdges
67 //purpose  : 
68 //=======================================================================
69
70 inline Standard_Integer HLRBRep_Data::NbEdges () const
71 { return myNbEdges; }
72
73 //=======================================================================
74 //function : NbFaces
75 //purpose  : 
76 //=======================================================================
77
78 inline Standard_Integer HLRBRep_Data::NbFaces () const
79 { return myNbFaces; }
80
81 //=======================================================================
82 //function : EdgeMap
83 //purpose  : 
84 //=======================================================================
85
86 inline TopTools_IndexedMapOfShape & HLRBRep_Data::EdgeMap ()
87 { return myEMap; }
88
89 //=======================================================================
90 //function : FaceMap
91 //purpose  : 
92 //=======================================================================
93
94 inline TopTools_IndexedMapOfShape & HLRBRep_Data::FaceMap ()
95 { return myFMap; }
96
97 //=======================================================================
98 //function : SimpleHidingFace
99 //purpose  : 
100 //=======================================================================
101        
102 inline Standard_Boolean HLRBRep_Data::SimpleHidingFace () const
103 { return iFaceSimp; }
104
105 //=======================================================================
106 //function : HidingTheFace
107 //purpose  : 
108 //=======================================================================
109        
110 inline Standard_Boolean HLRBRep_Data::HidingTheFace () const
111 { return iFaceTest; }
112
113 //=======================================================================
114 //function : MoreInterference
115 //purpose  : 
116 //=======================================================================
117        
118 inline Standard_Boolean HLRBRep_Data::MoreInterference () const
119 { return (iInterf <= myNbPoints + 2*myNbSegments); }
120
121 //=======================================================================
122 //function : Interference
123 //purpose  : 
124 //=======================================================================
125
126 inline HLRAlgo_Interference & HLRBRep_Data::Interference ()
127 { return myIntf; }
128
129 //=======================================================================
130 //function :EdgeOfTheHidingFace
131 //purpose  : 
132 //=======================================================================
133
134 inline Standard_Boolean 
135 HLRBRep_Data::EdgeOfTheHidingFace (const Standard_Integer,
136                                    const HLRBRep_EdgeData& ED) const
137 { return ED.HideCount() == myHideCount-1; }