File indexing completed on 2025-11-03 09:54:57
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 class StepDimTol_GeometricToleranceWithDefinedAreaUnit;
0031 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithDefinedAreaUnit, StepDimTol_GeometricToleranceWithDefinedUnit)
0032 
0033 class StepDimTol_GeometricToleranceWithDefinedAreaUnit : public StepDimTol_GeometricToleranceWithDefinedUnit
0034 {
0035 
0036 public:
0037 
0038   
0039   
0040   Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedAreaUnit();
0041   
0042   
0043   Standard_EXPORT   void Init(const Handle(TCollection_HAsciiString)& theName, 
0044                               const Handle(TCollection_HAsciiString)& theDescription, 
0045                               const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
0046                               const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect, 
0047                               const Handle(StepBasic_LengthMeasureWithUnit)& theUnitSize, 
0048                               const StepDimTol_AreaUnitType theAreaType, const Standard_Boolean theHasSecondUnitSize, 
0049                               const Handle(StepBasic_LengthMeasureWithUnit)& theSecondUnitSize) ;
0050   
0051   
0052   inline StepDimTol_AreaUnitType AreaType () const
0053   {
0054     return myAreaType;
0055   }
0056 
0057   
0058   inline void SetAreaType (const StepDimTol_AreaUnitType theAreaType)
0059   {
0060     myAreaType = theAreaType;
0061   }
0062 
0063   
0064   inline Handle(StepBasic_LengthMeasureWithUnit) SecondUnitSize () const
0065   {
0066     return mySecondUnitSize;
0067   }
0068 
0069   
0070   inline void SetSecondUnitSize (const Handle(StepBasic_LengthMeasureWithUnit) &theSecondUnitSize)
0071   {
0072     mySecondUnitSize = theSecondUnitSize;
0073   }
0074 
0075   
0076   inline Standard_Boolean HasSecondUnitSize () const
0077   {
0078     return mySecondUnitSize.IsNull();
0079   }
0080 
0081   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithDefinedAreaUnit,StepDimTol_GeometricToleranceWithDefinedUnit)
0082 
0083 private: 
0084   StepDimTol_AreaUnitType myAreaType;
0085   Handle(StepBasic_LengthMeasureWithUnit) mySecondUnitSize;
0086 };
0087 #endif