File indexing completed on 2026-09-27 09:19:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _StepDimTol_ToleranceZoneDefinition_HeaderFile
0017 #define _StepDimTol_ToleranceZoneDefinition_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Standard_Transient.hxx>
0022 #include <Standard_Integer.hxx>
0023 #include <StepRepr_ShapeAspect.hxx>
0024 #include <NCollection_Array1.hxx>
0025 #include <NCollection_HArray1.hxx>
0026 #include <StepDimTol_ToleranceZone.hxx>
0027
0028
0029 class StepDimTol_ToleranceZoneDefinition : public Standard_Transient
0030 {
0031
0032 public:
0033
0034 Standard_EXPORT StepDimTol_ToleranceZoneDefinition();
0035
0036
0037 Standard_EXPORT void Init(
0038 const occ::handle<StepDimTol_ToleranceZone>& theZone,
0039 const occ::handle<NCollection_HArray1<occ::handle<StepRepr_ShapeAspect>>>& theBoundaries);
0040
0041
0042 inline occ::handle<NCollection_HArray1<occ::handle<StepRepr_ShapeAspect>>> Boundaries() const
0043 {
0044 return myBoundaries;
0045 }
0046
0047
0048 inline void SetBoundaries(
0049 const occ::handle<NCollection_HArray1<occ::handle<StepRepr_ShapeAspect>>>& theBoundaries)
0050 {
0051 myBoundaries = theBoundaries;
0052 }
0053
0054
0055 inline int NbBoundaries() const { return (myBoundaries.IsNull() ? 0 : myBoundaries->Length()); }
0056
0057
0058 inline occ::handle<StepRepr_ShapeAspect> BoundariesValue(const int theNum) const
0059 {
0060 return myBoundaries->Value(theNum);
0061 }
0062
0063
0064 inline void SetBoundariesValue(const int theNum, const occ::handle<StepRepr_ShapeAspect>& theItem)
0065 {
0066 myBoundaries->SetValue(theNum, theItem);
0067 }
0068
0069
0070 inline occ::handle<StepDimTol_ToleranceZone> Zone() { return myZone; }
0071
0072
0073 inline void SetZone(const occ::handle<StepDimTol_ToleranceZone>& theZone) { myZone = theZone; }
0074
0075 DEFINE_STANDARD_RTTIEXT(StepDimTol_ToleranceZoneDefinition, Standard_Transient)
0076
0077 private:
0078 occ::handle<NCollection_HArray1<occ::handle<StepRepr_ShapeAspect>>> myBoundaries;
0079 occ::handle<StepDimTol_ToleranceZone> myZone;
0080 };
0081 #endif