0030675: Visualization - remove redundant proxy classes in hierarchy of PrsMgr_Presen...
[occt.git] / src / StepShape / StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem.hxx
1 // Created on: 2001-04-24
2 // Created by: Christian CAILLET
3 // Copyright (c) 2001-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem_HeaderFile
17 #define _StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_Type.hxx>
21
22 #include <StepShape_HArray1OfValueQualifier.hxx>
23 #include <StepRepr_RepresentationItem.hxx>
24 #include <Standard_Integer.hxx>
25 class StepBasic_MeasureWithUnit;
26 class TCollection_HAsciiString;
27 class StepBasic_MeasureValueMember;
28 class StepBasic_Unit;
29 class StepShape_ValueQualifier;
30
31
32 class StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem;
33 DEFINE_STANDARD_HANDLE(StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem, StepRepr_RepresentationItem)
34
35 //! Added for Dimensional Tolerances
36 //! Complex Type between MeasureRepresentationItem and
37 //! QualifiedRepresentationItem
38 class StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem : public StepRepr_RepresentationItem
39 {
40
41 public:
42
43   
44   Standard_EXPORT StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem();
45   
46   Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(StepBasic_MeasureValueMember)& aValueComponent, const StepBasic_Unit& aUnitComponent, const Handle(StepShape_HArray1OfValueQualifier)& qualifiers);
47   
48   Standard_EXPORT void SetMeasure (const Handle(StepBasic_MeasureWithUnit)& Measure);
49   
50   Standard_EXPORT Handle(StepBasic_MeasureWithUnit) Measure() const;
51   
52   Standard_EXPORT Handle(StepShape_HArray1OfValueQualifier) Qualifiers() const;
53   
54   Standard_EXPORT Standard_Integer NbQualifiers() const;
55   
56   Standard_EXPORT void SetQualifiers (const Handle(StepShape_HArray1OfValueQualifier)& qualifiers);
57   
58   Standard_EXPORT StepShape_ValueQualifier QualifiersValue (const Standard_Integer num) const;
59   
60   Standard_EXPORT void SetQualifiersValue (const Standard_Integer num, const StepShape_ValueQualifier& aqualifier);
61
62
63
64
65   DEFINE_STANDARD_RTTIEXT(StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem,StepRepr_RepresentationItem)
66
67 protected:
68
69
70
71
72 private:
73
74
75   Handle(StepBasic_MeasureWithUnit) myMeasure;
76   Handle(StepShape_HArray1OfValueQualifier) theQualifiers;
77
78
79 };
80
81
82
83
84
85
86
87 #endif // _StepShape_MeasureRepresentationItemAndQualifiedRepresentationItem_HeaderFile