Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-29 09:20:25

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_GeometricToleranceWithDefinedUnit_HeaderFile
0017 #define _StepDimTol_GeometricToleranceWithDefinedUnit_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 
0021 #include <StepDimTol_GeometricTolerance.hxx>
0022 
0023 class StepBasic_LengthMeasureWithUnit;
0024 class TCollection_HAsciiString;
0025 class StepBasic_MeasureWithUnit;
0026 class StepDimTol_GeometricToleranceTarget;
0027 class StepRepr_ShapeAspect;
0028 
0029 //! Representation of STEP entity GeometricToleranceWithDefinedUnit
0030 class StepDimTol_GeometricToleranceWithDefinedUnit : public StepDimTol_GeometricTolerance
0031 {
0032 
0033 public:
0034   //! Empty constructor
0035   Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedUnit();
0036 
0037   //! Initialize all fields (own and inherited) AP214
0038   Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0039                             const occ::handle<TCollection_HAsciiString>& theDescription,
0040                             const occ::handle<Standard_Transient>&       theMagnitude,
0041                             const occ::handle<StepRepr_ShapeAspect>&     theTolerancedShapeAspect,
0042                             const occ::handle<StepBasic_LengthMeasureWithUnit>& theUnitSize);
0043 
0044   //! Initialize all fields (own and inherited) AP242
0045   Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0046                             const occ::handle<TCollection_HAsciiString>& theDescription,
0047                             const occ::handle<Standard_Transient>&       theMagnitude,
0048                             const StepDimTol_GeometricToleranceTarget&   theTolerancedShapeAspect,
0049                             const occ::handle<StepBasic_LengthMeasureWithUnit>& theUnitSize);
0050 
0051   //! Returns field UnitSize
0052   inline occ::handle<StepBasic_LengthMeasureWithUnit> UnitSize() const { return myUnitSize; }
0053 
0054   //! Set field UnitSize
0055   inline void SetUnitSize(const occ::handle<StepBasic_LengthMeasureWithUnit>& theUnitSize)
0056   {
0057     myUnitSize = theUnitSize;
0058   }
0059 
0060   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithDefinedUnit,
0061                           StepDimTol_GeometricTolerance)
0062 
0063 private:
0064   occ::handle<StepBasic_LengthMeasureWithUnit> myUnitSize;
0065 };
0066 #endif // _StepDimTol_GeometricToleranceWithDefinedUnit_HeaderFile