Commit | Line | Data |
---|---|---|
733a0e55 S |
1 | // File: HLRAlgo_PolyData.lxx |
2 | // Created: Mon Jan 11 13:58:26 1993 | |
3 | // Author: Christophe MARION | |
4 | // Copyright: OPEN CASCADE 2000 | |
7fd59977 | 5 | |
6 | #include <TColgp_HArray1OfXYZ.hxx> | |
7 | #include <HLRAlgo_HArray1OfTData.hxx> | |
8 | #include <HLRAlgo_HArray1OfPHDat.hxx> | |
9 | ||
10 | //======================================================================= | |
11 | //function : FaceIndex | |
12 | //purpose : | |
13 | //======================================================================= | |
14 | ||
15 | inline void | |
16 | HLRAlgo_PolyData::FaceIndex (const Standard_Integer I) | |
17 | { myIndices[0] = I; } | |
18 | ||
19 | //======================================================================= | |
20 | //function : FaceIndex | |
21 | //purpose : | |
22 | //======================================================================= | |
23 | ||
24 | inline Standard_Integer | |
25 | HLRAlgo_PolyData::FaceIndex () const | |
26 | { return myIndices[0]; } | |
27 | ||
28 | //======================================================================= | |
29 | //function : Nodes | |
30 | //purpose : | |
31 | //======================================================================= | |
32 | ||
33 | inline TColgp_Array1OfXYZ & | |
34 | HLRAlgo_PolyData::Nodes () const | |
35 | { return myHNodes->ChangeArray1(); } | |
36 | ||
37 | //======================================================================= | |
38 | //function : TData | |
39 | //purpose : | |
40 | //======================================================================= | |
41 | ||
42 | inline HLRAlgo_Array1OfTData & | |
43 | HLRAlgo_PolyData::TData () const | |
44 | { return myHTData->ChangeArray1(); } | |
45 | ||
46 | //======================================================================= | |
47 | //function : PHDat | |
48 | //purpose : | |
49 | //======================================================================= | |
50 | ||
51 | inline HLRAlgo_Array1OfPHDat & | |
52 | HLRAlgo_PolyData::PHDat () const | |
53 | { return myHPHDat->ChangeArray1(); } | |
54 | ||
55 | //======================================================================= | |
56 | //function : Hiding | |
57 | //purpose : | |
58 | //======================================================================= | |
59 | ||
60 | inline Standard_Boolean HLRAlgo_PolyData::Hiding () const | |
61 | { return !myHPHDat.IsNull(); } | |
62 | ||
63 | //======================================================================= | |
64 | //function : Indices | |
65 | //purpose : | |
66 | //======================================================================= | |
67 | ||
68 | inline Standard_Address HLRAlgo_PolyData::Indices () | |
69 | { return (Standard_Address)myIndices; } |