Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-18 09:21:56

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_GeometricToleranceWithDatumReference_HeaderFile
0017 #define _StepDimTol_GeometricToleranceWithDatumReference_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <StepDimTol_DatumReference.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <NCollection_HArray1.hxx>
0025 #include <StepDimTol_DatumSystemOrReference.hxx>
0026 #include <StepDimTol_GeometricTolerance.hxx>
0027 class TCollection_HAsciiString;
0028 class StepDimTol_GeometricToleranceTarget;
0029 class StepRepr_ShapeAspect;
0030 
0031 //! Representation of STEP entity GeometricToleranceWithDatumReference
0032 class StepDimTol_GeometricToleranceWithDatumReference : public StepDimTol_GeometricTolerance
0033 {
0034 
0035 public:
0036   //! Empty constructor
0037   Standard_EXPORT StepDimTol_GeometricToleranceWithDatumReference();
0038 
0039   //! Initialize all fields (own and inherited) AP214
0040   Standard_EXPORT void Init(
0041     const occ::handle<TCollection_HAsciiString>& theGeometricTolerance_Name,
0042     const occ::handle<TCollection_HAsciiString>& theGeometricTolerance_Description,
0043     const occ::handle<Standard_Transient>&       theGeometricTolerance_Magnitude,
0044     const occ::handle<StepRepr_ShapeAspect>&     theGeometricTolerance_TolerancedShapeAspect,
0045     const occ::handle<NCollection_HArray1<occ::handle<StepDimTol_DatumReference>>>& theDatumSystem);
0046 
0047   //! Initialize all fields (own and inherited) AP242
0048   Standard_EXPORT void Init(
0049     const occ::handle<TCollection_HAsciiString>& theGeometricTolerance_Name,
0050     const occ::handle<TCollection_HAsciiString>& theGeometricTolerance_Description,
0051     const occ::handle<Standard_Transient>&       theGeometricTolerance_Magnitude,
0052     const StepDimTol_GeometricToleranceTarget&   theGeometricTolerance_TolerancedShapeAspect,
0053     const occ::handle<NCollection_HArray1<StepDimTol_DatumSystemOrReference>>& theDatumSystem);
0054 
0055   //! Returns field DatumSystem AP214
0056   Standard_EXPORT occ::handle<NCollection_HArray1<occ::handle<StepDimTol_DatumReference>>>
0057                   DatumSystem() const;
0058 
0059   //! Returns field DatumSystem AP242
0060   Standard_EXPORT occ::handle<NCollection_HArray1<StepDimTol_DatumSystemOrReference>>
0061                   DatumSystemAP242() const;
0062 
0063   //! Set field DatumSystem AP214
0064   Standard_EXPORT void SetDatumSystem(
0065     const occ::handle<NCollection_HArray1<occ::handle<StepDimTol_DatumReference>>>& theDatumSystem);
0066 
0067   //! Set field DatumSystem AP242
0068   Standard_EXPORT void SetDatumSystem(
0069     const occ::handle<NCollection_HArray1<StepDimTol_DatumSystemOrReference>>& theDatumSystem);
0070 
0071   DEFINE_STANDARD_RTTIEXT(StepDimTol_GeometricToleranceWithDatumReference,
0072                           StepDimTol_GeometricTolerance)
0073 
0074 private:
0075   occ::handle<NCollection_HArray1<StepDimTol_DatumSystemOrReference>> myDatumSystem;
0076 };
0077 
0078 #endif // _StepDimTol_GeometricToleranceWithDatumReference_HeaderFile