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_GeometricToleranceWithModifiers_HeaderFile
0017 #define _StepDimTol_GeometricToleranceWithModifiers_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Standard_Integer.hxx>
0022 #include <StepDimTol_GeometricTolerance.hxx>
0023 #include <StepDimTol_HArray1OfGeometricToleranceModifier.hxx>
0024
0025 class TCollection_HAsciiString;
0026 class StepBasic_MeasureWithUnit;
0027 class StepDimTol_GeometricToleranceTarget;
0028
0029 class StepDimTol_GeometricToleranceWithModifiers;
0030 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithModifiers, StepDimTol_GeometricTolerance)
0031
0032 class StepDimTol_GeometricToleranceWithModifiers : public StepDimTol_GeometricTolerance
0033 {
0034
0035 public:
0036
0037
0038 Standard_EXPORT StepDimTol_GeometricToleranceWithModifiers();
0039
0040
0041 Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& theName,
0042 const Handle(TCollection_HAsciiString)& theDescription,
0043 const Handle(StepBasic_MeasureWithUnit)& theMagnitude,
0044 const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
0045 const Handle(StepDimTol_HArray1OfGeometricToleranceModifier)& theModifiers) ;
0046
0047
0048 inline Handle(StepDimTol_HArray1OfGeometricToleranceModifier) Modifiers () const
0049 {
0050 return myModifiers;
0051 }
0052
0053
0054 inline void SetModifiers (const Handle(StepDimTol_HArray1OfGeometricToleranceModifier) &theModifiers)
0055 {
0056 myModifiers = theModifiers;
0057 }
0058
0059
0060 inline Standard_Integer NbModifiers () const
0061 {
0062 return (myModifiers.IsNull() ? 0 : myModifiers->Length());
0063 }
0064
0065
0066 inline StepDimTol_GeometricToleranceModifier ModifierValue(const Standard_Integer theNum) const
0067 {
0068 return myModifiers->Value(theNum);
0069 }
0070
0071
0072 inline void SetModifierValue(const Standard_Integer theNum, const StepDimTol_GeometricToleranceModifier theItem)
0073 {
0074 myModifiers->SetValue (theNum, theItem);
0075 }
0076 DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithModifiers,StepDimTol_GeometricTolerance)
0077
0078 private:
0079 Handle(StepDimTol_HArray1OfGeometricToleranceModifier) myModifiers;
0080 };
0081 #endif