File indexing completed on 2026-09-30 09:05:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile
0017 #define _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile
0018
0019 #include <Standard.hxx>
0020
0021 #include <Standard_Boolean.hxx>
0022 #include <StepDimTol_AreaUnitType.hxx>
0023 #include <StepDimTol_GeometricToleranceWithDefinedUnit.hxx>
0024
0025 class StepBasic_LengthMeasureWithUnit;
0026 class TCollection_HAsciiString;
0027 class StepBasic_MeasureWithUnit;
0028 class StepDimTol_GeometricToleranceTarget;
0029
0030
0031 class StepDimTol_GeometricToleranceWithDefinedAreaUnit
0032 : public StepDimTol_GeometricToleranceWithDefinedUnit
0033 {
0034
0035 public:
0036
0037 Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedAreaUnit();
0038
0039
0040 Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0041 const occ::handle<TCollection_HAsciiString>& theDescription,
0042 const occ::handle<Standard_Transient>& theMagnitude,
0043 const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect,
0044 const occ::handle<StepBasic_LengthMeasureWithUnit>& theUnitSize,
0045 const StepDimTol_AreaUnitType theAreaType,
0046 const bool theHasSecondUnitSize,
0047 const occ::handle<StepBasic_LengthMeasureWithUnit>& theSecondUnitSize);
0048
0049
0050 inline StepDimTol_AreaUnitType AreaType() const { return myAreaType; }
0051
0052
0053 inline void SetAreaType(const StepDimTol_AreaUnitType theAreaType) { myAreaType = theAreaType; }
0054
0055
0056 inline occ::handle<StepBasic_LengthMeasureWithUnit> SecondUnitSize() const
0057 {
0058 return mySecondUnitSize;
0059 }
0060
0061
0062 inline void SetSecondUnitSize(
0063 const occ::handle<StepBasic_LengthMeasureWithUnit>& theSecondUnitSize)
0064 {
0065 mySecondUnitSize = theSecondUnitSize;
0066 }
0067
0068
0069 inline bool HasSecondUnitSize() const { return mySecondUnitSize.IsNull(); }
0070
0071 DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithDefinedAreaUnit,
0072 StepDimTol_GeometricToleranceWithDefinedUnit)
0073
0074 private:
0075 StepDimTol_AreaUnitType myAreaType;
0076 occ::handle<StepBasic_LengthMeasureWithUnit> mySecondUnitSize;
0077 };
0078 #endif