1 // Created on: 2015-08-06
2 // Created by: Ilya Novikov
3 // Copyright (c) 2004-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
17 #ifndef _XCAFDimTolObjects_Tool_HeaderFile
18 #define _XCAFDimTolObjects_Tool_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <XCAFDoc_DimTolTool.hxx>
24 #include <TDocStd_Document.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <XCAFDimTolObjects_DimensionObjectSequence.hxx>
27 #include <XCAFDimTolObjects_GeomToleranceObjectSequence.hxx>
28 #include <XCAFDimTolObjects_DatumObjectSequence.hxx>
29 #include <XCAFDimTolObjects_DataMapOfToleranceDatum.hxx>
30 #include <XCAFDimTolObjects_DatumObject.hxx>
31 class TDocStd_Document;
35 class XCAFDimTolObjects_Tool
42 Standard_EXPORT XCAFDimTolObjects_Tool(const Handle(TDocStd_Document)& theDoc);
44 //! Returns a sequence of Dimensions currently stored
46 Standard_EXPORT void GetDimensions (XCAFDimTolObjects_DimensionObjectSequence& theDimensionObjectSequence) const;
48 //! Returns all Dimensions defined for Shape
49 Standard_EXPORT Standard_Boolean GetRefDimensions (const TopoDS_Shape& theShape, XCAFDimTolObjects_DimensionObjectSequence& theDimensions) const;
51 //! Returns a sequence of Tolerancess currently stored
53 Standard_EXPORT void GetGeomTolerances (XCAFDimTolObjects_GeomToleranceObjectSequence& theGeomToleranceObjectSequence, XCAFDimTolObjects_DatumObjectSequence& theDatumObjectSequence, XCAFDimTolObjects_DataMapOfToleranceDatum& theMap) const;
55 //! Returns all GeomTolerances defined for Shape
56 Standard_EXPORT Standard_Boolean GetRefGeomTolerances (const TopoDS_Shape& theShape, XCAFDimTolObjects_GeomToleranceObjectSequence& theGeomToleranceObjectSequence, XCAFDimTolObjects_DatumObjectSequence& theDatumObjectSequence, XCAFDimTolObjects_DataMapOfToleranceDatum& theMap) const;
58 //! Returns DatumObject defined for Shape
59 Standard_EXPORT Standard_Boolean GetRefDatum (const TopoDS_Shape& theShape, Handle(XCAFDimTolObjects_DatumObject)& theDatum) const;
63 Handle(XCAFDoc_DimTolTool) myDimTolTool;
67 #endif // _XCAFDimTolObjects_Tool_HeaderFile