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_ToleranceZone_HeaderFile
0017 #define _StepDimTol_ToleranceZone_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <StepRepr_ShapeAspect.hxx>
0022 #include <Standard_Integer.hxx>
0023 #include <StepDimTol_HArray1OfToleranceZoneTarget.hxx>
0024 #include <StepDimTol_ToleranceZoneForm.hxx>
0025 #include <StepDimTol_ToleranceZoneTarget.hxx>
0026
0027 class TCollection_HAsciiString;
0028
0029
0030 #ifdef SetForm
0031 #undef SetForm
0032 #endif
0033
0034 class StepDimTol_ToleranceZone;
0035 DEFINE_STANDARD_HANDLE(StepDimTol_ToleranceZone, StepRepr_ShapeAspect)
0036
0037 class StepDimTol_ToleranceZone : public StepRepr_ShapeAspect
0038 {
0039
0040 public:
0041
0042
0043 Standard_EXPORT StepDimTol_ToleranceZone();
0044
0045
0046 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
0047 const Handle(TCollection_HAsciiString)& theDescription,
0048 const Handle(StepRepr_ProductDefinitionShape)& theOfShape,
0049 const StepData_Logical theProductDefinitional,
0050 const Handle(StepDimTol_HArray1OfToleranceZoneTarget)& theDefiningTolerance,
0051 const Handle(StepDimTol_ToleranceZoneForm)& theForm);
0052
0053
0054 inline Handle(StepDimTol_HArray1OfToleranceZoneTarget) DefiningTolerance () const
0055 {
0056 return myDefiningTolerance;
0057 }
0058
0059
0060 inline void SetDefiningTolerance (const Handle(StepDimTol_HArray1OfToleranceZoneTarget) &theDefiningTolerance)
0061 {
0062 myDefiningTolerance = theDefiningTolerance;
0063 }
0064
0065
0066 inline Standard_Integer NbDefiningTolerances () const
0067 {
0068 return (myDefiningTolerance.IsNull() ? 0 : myDefiningTolerance->Length());
0069 }
0070
0071
0072 inline StepDimTol_ToleranceZoneTarget DefiningToleranceValue(const Standard_Integer theNum) const
0073 {
0074 return myDefiningTolerance->Value(theNum);
0075 }
0076
0077
0078 inline void SetDefiningToleranceValue(const Standard_Integer theNum, const StepDimTol_ToleranceZoneTarget& theItem)
0079 {
0080 myDefiningTolerance->SetValue (theNum, theItem);
0081 }
0082
0083
0084 inline Handle(StepDimTol_ToleranceZoneForm) Form()
0085 {
0086 return myForm;
0087 }
0088
0089
0090 inline void SetForm(const Handle(StepDimTol_ToleranceZoneForm)& theForm)
0091 {
0092 myForm = theForm;
0093 }
0094
0095 DEFINE_STANDARD_RTTIEXT(StepDimTol_ToleranceZone,StepRepr_ShapeAspect)
0096
0097 private:
0098 Handle(StepDimTol_HArray1OfToleranceZoneTarget) myDefiningTolerance;
0099 Handle(StepDimTol_ToleranceZoneForm) myForm;
0100 };
0101 #endif