Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:07

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 StepBasic_MeasureWithUnit;
0026 class StepRepr_ShapeAspect;
0027 
0028 
0029 class StepDimTol_GeometricTolerance;
0030 DEFINE_STANDARD_HANDLE(StepDimTol_GeometricTolerance, Standard_Transient)
0031 
0032 //! Representation of STEP entity GeometricTolerance
0033 class StepDimTol_GeometricTolerance : public Standard_Transient
0034 {
0035 
0036 public:
0037 
0038   
0039   //! Empty constructor
0040   Standard_EXPORT StepDimTol_GeometricTolerance();
0041   
0042   //! Initialize all fields (own and inherited) AP214
0043   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theName, 
0044                             const Handle(TCollection_HAsciiString)& theDescription, 
0045                             const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
0046                             const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect);
0047 
0048     //! Initialize all fields (own and inherited) AP242
0049   Standard_EXPORT void Init(const Handle(TCollection_HAsciiString)& theName, 
0050                             const Handle(TCollection_HAsciiString)& theDescription, 
0051                             const Handle(StepBasic_MeasureWithUnit)& theMagnitude, 
0052                             const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect);
0053   
0054   //! Returns field Name
0055   Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
0056   
0057   //! Set field Name
0058   Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& theName);
0059   
0060   //! Returns field Description
0061   Standard_EXPORT Handle(TCollection_HAsciiString) Description() const;
0062   
0063   //! Set field Description
0064   Standard_EXPORT void SetDescription (const Handle(TCollection_HAsciiString)& theDescription);
0065   
0066   //! Returns field Magnitude
0067   Standard_EXPORT Handle(StepBasic_MeasureWithUnit) Magnitude() const;
0068   
0069   //! Set field Magnitude
0070   Standard_EXPORT void SetMagnitude (const Handle(StepBasic_MeasureWithUnit)& theMagnitude);
0071   
0072   //! Returns field TolerancedShapeAspect
0073   //! Note: in AP214(203) type of this attribute can be only StepRepr_ShapeAspect
0074   Standard_EXPORT StepDimTol_GeometricToleranceTarget TolerancedShapeAspect() const;
0075   
0076   //! Set field TolerancedShapeAspect AP214
0077   Standard_EXPORT void SetTolerancedShapeAspect (const Handle(StepRepr_ShapeAspect)& theTolerancedShapeAspect);
0078 
0079   //! Set field TolerancedShapeAspect AP242
0080   Standard_EXPORT void SetTolerancedShapeAspect (const StepDimTol_GeometricToleranceTarget& theTolerancedShapeAspect);
0081 
0082 
0083 
0084 
0085   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricTolerance,Standard_Transient)
0086 
0087 protected:
0088 
0089 
0090 
0091 
0092 private:
0093 
0094 
0095   Handle(TCollection_HAsciiString) myName;
0096   Handle(TCollection_HAsciiString) myDescription;
0097   Handle(StepBasic_MeasureWithUnit) myMagnitude;
0098   StepDimTol_GeometricToleranceTarget myTolerancedShapeAspect;
0099 
0100 
0101 };
0102 
0103 
0104 
0105 
0106 
0107 
0108 
0109 #endif // _StepDimTol_GeometricTolerance_HeaderFile