19204e2739962a70b74f63a9415ceee6e82a2817
[occt.git] / src / STEPConstruct / STEPConstruct_GDTProperty.hxx
1 // Created on: 1999-09-08
2 // Created by: Andrey BETENEV
3 // Copyright (c) 1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _STEPConstruct_GDTProperty_HeaderFile
18 #define _STEPConstruct_GDTProperty_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <STEPConstruct_Tool.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_CString.hxx>
27 #include <StepRepr_CompoundRepresentationItem.hxx>
28 #include <XCAFDimTolObjects_DimensionModifiersSequence.hxx>
29 #include <StepShape_LimitsAndFits.hxx>
30 #include <XCAFDimTolObjects_DimensionFormVariance.hxx>
31 #include <XCAFDimTolObjects_DimensionGrade.hxx>
32 #include <XCAFDimTolObjects_DimensionType.hxx>
33 #include <XCAFDimTolObjects_DatumTargetType.hxx>
34 #include <XCAFDimTolObjects_DimensionQualifier.hxx>
35 #include <XCAFDimTolObjects_GeomToleranceTypeValue.hxx>
36
37 //! This class provides tools for access (read)
38 //! the GDT properties.
39 class STEPConstruct_GDTProperty
40 {
41 public:
42
43   DEFINE_STANDARD_ALLOC
44
45   Standard_EXPORT STEPConstruct_GDTProperty();
46   Standard_EXPORT static void GetDimModifiers(const Handle(StepRepr_CompoundRepresentationItem)& theCRI,
47                                               XCAFDimTolObjects_DimensionModifiersSequence& theModifiers);
48
49   Standard_EXPORT static void GetDimClassOfTolerance(const Handle(StepShape_LimitsAndFits)& theLAF,
50                                                      Standard_Boolean& theHolle,
51                                                      XCAFDimTolObjects_DimensionFormVariance& theFV,
52                                                      XCAFDimTolObjects_DimensionGrade& theG);
53
54   Standard_EXPORT static Standard_Boolean GetDimType(const Handle(TCollection_HAsciiString)& theName,
55                                                      XCAFDimTolObjects_DimensionType& theType);
56
57   Standard_EXPORT static Standard_Boolean GetDatumTargetType(const Handle(TCollection_HAsciiString)& theDescription,
58                                                      XCAFDimTolObjects_DatumTargetType& theType);
59
60   Standard_EXPORT static Standard_Boolean GetDimQualifierType(const Handle(TCollection_HAsciiString)& theDescription,
61                                                      XCAFDimTolObjects_DimensionQualifier& theType);
62
63   Standard_EXPORT static Standard_Boolean GetTolValueType(const Handle(TCollection_HAsciiString)& theDescription,
64                                                      XCAFDimTolObjects_GeomToleranceTypeValue& theType);
65
66 };
67
68 #endif // _STEPConstruct_GDTProperty_HeaderFile