File indexing completed on 2025-01-18 10:05:07
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_HArray1OfShapeAspect.hxx>
0024 #include <StepRepr_ShapeAspect.hxx>
0025 #include <StepDimTol_ToleranceZone.hxx>
0026
0027
0028 class StepDimTol_ToleranceZoneDefinition;
0029 DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZoneDefinition, Standard_Transient)
0030
0031 class StepDimTol_ToleranceZoneDefinition : public Standard_Transient
0032 {
0033
0034 public:
0035
0036
0037 Standard_EXPORT StepDimTol_ToleranceZoneDefinition();
0038
0039
0040 Standard_EXPORT void Init (const Handle(StepDimTol_ToleranceZone)& theZone,
0041 const Handle(StepRepr_HArray1OfShapeAspect)& theBoundaries);
0042
0043
0044 inline Handle(StepRepr_HArray1OfShapeAspect) Boundaries () const
0045 {
0046 return myBoundaries;
0047 }
0048
0049
0050 inline void SetBoundaries (const Handle(StepRepr_HArray1OfShapeAspect) &theBoundaries)
0051 {
0052 myBoundaries = theBoundaries;
0053 }
0054
0055
0056 inline Standard_Integer NbBoundaries () const
0057 {
0058 return (myBoundaries.IsNull() ? 0 : myBoundaries->Length());
0059 }
0060
0061
0062 inline Handle(StepRepr_ShapeAspect) BoundariesValue(const Standard_Integer theNum) const
0063 {
0064 return myBoundaries->Value(theNum);
0065 }
0066
0067
0068 inline void SetBoundariesValue(const Standard_Integer theNum, const Handle(StepRepr_ShapeAspect)& theItem)
0069 {
0070 myBoundaries->SetValue (theNum, theItem);
0071 }
0072
0073
0074 inline Handle(StepDimTol_ToleranceZone) Zone()
0075 {
0076 return myZone;
0077 }
0078
0079
0080 inline void SetZone(const Handle(StepDimTol_ToleranceZone)& theZone)
0081 {
0082 myZone = theZone;
0083 }
0084
0085 DEFINE_STANDARD_RTTIEXT(StepDimTol_ToleranceZoneDefinition,Standard_Transient)
0086
0087 private:
0088 Handle(StepRepr_HArray1OfShapeAspect) myBoundaries;
0089 Handle(StepDimTol_ToleranceZone) myZone;
0090 };
0091 #endif