Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-30 09:05:07

0001 // Created on: 2015-07-07
0002 // Created by: Irina KRYLOVA
0003 // Copyright (c) 2015 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
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 //! Representation of STEP entity GeometricToleranceWithDefinedAreaUnit
0031 class StepDimTol_GeometricToleranceWithDefinedAreaUnit
0032     : public StepDimTol_GeometricToleranceWithDefinedUnit
0033 {
0034 
0035 public:
0036   //! Empty constructor
0037   Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedAreaUnit();
0038 
0039   //! Initialize all fields (own and inherited)
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   //! Returns field AreaType
0050   inline StepDimTol_AreaUnitType AreaType() const { return myAreaType; }
0051 
0052   //! Set field AreaType
0053   inline void SetAreaType(const StepDimTol_AreaUnitType theAreaType) { myAreaType = theAreaType; }
0054 
0055   //! Returns field SecondUnitSize
0056   inline occ::handle<StepBasic_LengthMeasureWithUnit> SecondUnitSize() const
0057   {
0058     return mySecondUnitSize;
0059   }
0060 
0061   //! Set field SecondUnitSize
0062   inline void SetSecondUnitSize(
0063     const occ::handle<StepBasic_LengthMeasureWithUnit>& theSecondUnitSize)
0064   {
0065     mySecondUnitSize = theSecondUnitSize;
0066   }
0067 
0068   //! Indicates if SecondUnitSize field exist
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 // _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile