File indexing completed on 2026-09-10 09:18:40
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _XCAFDimTolObjects_Tool_HeaderFile
0017 #define _XCAFDimTolObjects_Tool_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <XCAFDoc_DimTolTool.hxx>
0023 #include <TDocStd_Document.hxx>
0024 #include <Standard_Boolean.hxx>
0025 #include <XCAFDimTolObjects_DimensionObjectSequence.hxx>
0026 #include <XCAFDimTolObjects_GeomToleranceObjectSequence.hxx>
0027 #include <XCAFDimTolObjects_DatumObjectSequence.hxx>
0028 #include <XCAFDimTolObjects_DataMapOfToleranceDatum.hxx>
0029 #include <XCAFDimTolObjects_DatumObject.hxx>
0030 class TDocStd_Document;
0031 class TopoDS_Shape;
0032
0033 class XCAFDimTolObjects_Tool
0034 {
0035 public:
0036 DEFINE_STANDARD_ALLOC
0037
0038 Standard_EXPORT XCAFDimTolObjects_Tool(const Handle(TDocStd_Document)& theDoc);
0039
0040
0041
0042 Standard_EXPORT void GetDimensions(
0043 XCAFDimTolObjects_DimensionObjectSequence& theDimensionObjectSequence) const;
0044
0045
0046 Standard_EXPORT Standard_Boolean
0047 GetRefDimensions(const TopoDS_Shape& theShape,
0048 XCAFDimTolObjects_DimensionObjectSequence& theDimensions) const;
0049
0050
0051
0052 Standard_EXPORT void GetGeomTolerances(
0053 XCAFDimTolObjects_GeomToleranceObjectSequence& theGeomToleranceObjectSequence,
0054 XCAFDimTolObjects_DatumObjectSequence& theDatumObjectSequence,
0055 XCAFDimTolObjects_DataMapOfToleranceDatum& theMap) const;
0056
0057
0058 Standard_EXPORT Standard_Boolean GetRefGeomTolerances(
0059 const TopoDS_Shape& theShape,
0060 XCAFDimTolObjects_GeomToleranceObjectSequence& theGeomToleranceObjectSequence,
0061 XCAFDimTolObjects_DatumObjectSequence& theDatumObjectSequence,
0062 XCAFDimTolObjects_DataMapOfToleranceDatum& theMap) const;
0063
0064
0065 Standard_EXPORT Standard_Boolean
0066 GetRefDatum(const TopoDS_Shape& theShape,
0067 Handle(XCAFDimTolObjects_DatumObject)& theDatum) const;
0068
0069 private:
0070 Handle(XCAFDoc_DimTolTool) myDimTolTool;
0071 };
0072
0073 #endif