Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10: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 class StepDimTol_GeometricToleranceWithDefinedAreaUnit;
0031 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricToleranceWithDefinedAreaUnit, StepDimTol_GeometricToleranceWithDefinedUnit)
0032 //! Representation of STEP entity GeometricToleranceWithDefinedAreaUnit
0033 class StepDimTol_GeometricToleranceWithDefinedAreaUnit : public StepDimTol_GeometricToleranceWithDefinedUnit
0034 {
0035 
0036 public:
0037 
0038   
0039   //! Empty constructor
0040   Standard_EXPORT StepDimTol_GeometricToleranceWithDefinedAreaUnit();
0041   
0042   //! Initialize all fields (own and inherited)
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   //! Returns field AreaType
0052   inline StepDimTol_AreaUnitType AreaType () const
0053   {
0054     return myAreaType;
0055   }
0056 
0057   //! Set field AreaType
0058   inline void SetAreaType (const StepDimTol_AreaUnitType theAreaType)
0059   {
0060     myAreaType = theAreaType;
0061   }
0062 
0063   //! Returns field SecondUnitSize
0064   inline Handle(StepBasic_LengthMeasureWithUnit) SecondUnitSize () const
0065   {
0066     return mySecondUnitSize;
0067   }
0068 
0069   //! Set field SecondUnitSize
0070   inline void SetSecondUnitSize (const Handle(StepBasic_LengthMeasureWithUnit) &theSecondUnitSize)
0071   {
0072     mySecondUnitSize = theSecondUnitSize;
0073   }
0074 
0075   //! Indicates if SecondUnitSize field exist
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 // _StepDimTol_GeometricToleranceWithDefinedAreaUnit_HeaderFile