7fd59977 |
1 | // File: PXCAFDoc_DimTol.cxx |
2 | // Created: 10.12.08 11:46:02 |
3 | // Author: Pavel TELKOV |
4 | // Copyright: Open CASCADE 2008 |
5 | |
6 | #include <PXCAFDoc_DimTol.ixx> |
7 | |
8 | //======================================================================= |
9 | //function : PXCAFDoc_DimTol |
10 | //purpose : |
11 | //======================================================================= |
12 | |
13 | PXCAFDoc_DimTol::PXCAFDoc_DimTol () |
14 | {} |
15 | |
16 | //======================================================================= |
17 | //function : PXCAFDoc_DimTol |
18 | //purpose : |
19 | //======================================================================= |
20 | |
21 | PXCAFDoc_DimTol::PXCAFDoc_DimTol |
22 | (const Standard_Integer theKind, |
23 | const Handle(PColStd_HArray1OfReal)& theVal, |
24 | const Handle(PCollection_HAsciiString)& theName, |
25 | const Handle(PCollection_HAsciiString)& theDescr) |
26 | : myKind(theKind), |
27 | myVal(theVal), |
28 | myName(theName), |
29 | myDescr(theDescr) |
30 | {} |
31 | |
32 | //======================================================================= |
33 | //function : Set |
34 | //purpose : |
35 | //======================================================================= |
36 | |
37 | void PXCAFDoc_DimTol::Set (const Standard_Integer theKind, |
38 | const Handle(PColStd_HArray1OfReal)& theVal, |
39 | const Handle(PCollection_HAsciiString)& theName, |
40 | const Handle(PCollection_HAsciiString)& theDescr) |
41 | { |
42 | myKind = theKind; |
43 | myVal = theVal; |
44 | myName = theName; |
45 | myDescr = theDescr; |
46 | } |
47 | |
48 | //======================================================================= |
49 | //function : GetKind |
50 | //purpose : |
51 | //======================================================================= |
52 | |
53 | Standard_Integer PXCAFDoc_DimTol::GetKind () const |
54 | { |
55 | return myKind; |
56 | } |
57 | |
58 | //======================================================================= |
59 | //function : GetVal |
60 | //purpose : |
61 | //======================================================================= |
62 | |
63 | Handle(PColStd_HArray1OfReal) PXCAFDoc_DimTol::GetVal () const |
64 | { |
65 | return myVal; |
66 | } |
67 | |
68 | //======================================================================= |
69 | //function : GetName |
70 | //purpose : |
71 | //======================================================================= |
72 | |
73 | Handle(PCollection_HAsciiString) PXCAFDoc_DimTol::GetName () const |
74 | { |
75 | return myName; |
76 | } |
77 | |
78 | //======================================================================= |
79 | //function : GetDescription |
80 | //purpose : |
81 | //======================================================================= |
82 | |
83 | Handle(PCollection_HAsciiString) PXCAFDoc_DimTol::GetDescription () const |
84 | { |
85 | return myDescr; |
86 | } |