Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-24 09:17:19

0001 // Created on: 2003-06-04
0002 // Created by: Galina KULIKOVA
0003 // Copyright (c) 2003-2014 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_GeometricTolerance_HeaderFile
0017 #define _StepDimTol_GeometricTolerance_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <Standard_Transient.hxx>
0023 #include <StepDimTol_GeometricToleranceTarget.hxx>
0024 class TCollection_HAsciiString;
0025 class StepRepr_ShapeAspect;
0026 
0027 //! Representation of STEP entity GeometricTolerance
0028 class StepDimTol_GeometricTolerance : public Standard_Transient
0029 {
0030 
0031 public:
0032   //! Empty constructor
0033   Standard_EXPORT StepDimTol_GeometricTolerance();
0034 
0035   //! Initialize all fields (own and inherited) AP214
0036   Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0037                             const occ::handle<TCollection_HAsciiString>& theDescription,
0038                             const occ::handle<Standard_Transient>&       theMagnitude,
0039                             const occ::handle<StepRepr_ShapeAspect>&     theTolerancedShapeAspect);
0040 
0041   //! Initialize all fields (own and inherited) AP242
0042   Standard_EXPORT void Init(const occ::handle<TCollection_HAsciiString>& theName,
0043                             const occ::handle<TCollection_HAsciiString>& theDescription,
0044                             const occ::handle<Standard_Transient>&       theMagnitude,
0045                             const StepDimTol_GeometricToleranceTarget&   theTolerancedShapeAspect);
0046 
0047   //! Returns field Name
0048   Standard_EXPORT occ::handle<TCollection_HAsciiString> Name() const;
0049 
0050   //! Set field Name
0051   Standard_EXPORT void SetName(const occ::handle<TCollection_HAsciiString>& theName);
0052 
0053   //! Returns field Description
0054   Standard_EXPORT occ::handle<TCollection_HAsciiString> Description() const;
0055 
0056   //! Set field Description
0057   Standard_EXPORT void SetDescription(const occ::handle<TCollection_HAsciiString>& theDescription);
0058 
0059   //! Returns field Magnitude
0060   Standard_EXPORT occ::handle<Standard_Transient> Magnitude() const;
0061 
0062   //! Set field Magnitude
0063   Standard_EXPORT void SetMagnitude(const occ::handle<Standard_Transient>& theMagnitude);
0064 
0065   //! Returns field TolerancedShapeAspect
0066   //! Note: in AP214(203) type of this attribute can be only StepRepr_ShapeAspect
0067   Standard_EXPORT StepDimTol_GeometricToleranceTarget TolerancedShapeAspect() const;
0068 
0069   //! Set field TolerancedShapeAspect AP214
0070   Standard_EXPORT void SetTolerancedShapeAspect(
0071     const occ::handle<StepRepr_ShapeAspect>& theTolerancedShapeAspect);
0072 
0073   //! Set field TolerancedShapeAspect AP242
0074   Standard_EXPORT void SetTolerancedShapeAspect(
0075     const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect);
0076 
0077   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance, Standard_Transient)
0078 
0079 private:
0080   occ::handle<TCollection_HAsciiString> myName;
0081   occ::handle<TCollection_HAsciiString> myDescription;
0082   occ::handle<Standard_Transient>       myMagnitude;
0083   StepDimTol_GeometricToleranceTarget   myTolerancedShapeAspect;
0084 };
0085 
0086 #endif // _StepDimTol_GeometricTolerance_HeaderFile