0027304: Implemetation of descriptions for Dimensions
[occt.git] / src / XCAFDimTolObjects / XCAFDimTolObjects_Tool.hxx
CommitLineData
9ebaae37 1// Created on: 2015-08-06
2// Created by: Ilya Novikov
3// Copyright (c) 2004-2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16
17#ifndef _XCAFDimTolObjects_Tool_HeaderFile
18#define _XCAFDimTolObjects_Tool_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
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>
31class TDocStd_Document;
32class TopoDS_Shape;
33
34
35class XCAFDimTolObjects_Tool
36{
37public:
38
39 DEFINE_STANDARD_ALLOC
40
41
42 Standard_EXPORT XCAFDimTolObjects_Tool(const Handle(TDocStd_Document)& theDoc);
43
44 //! Returns a sequence of Dimensions currently stored
45 //! in the DGTtable
46 Standard_EXPORT void GetDimensions (XCAFDimTolObjects_DimensionObjectSequence& theDimensionObjectSequence) const;
47
48 //! Returns all Dimensions defined for Shape
49 Standard_EXPORT Standard_Boolean GetRefDimensions (const TopoDS_Shape& theShape, XCAFDimTolObjects_DimensionObjectSequence& theDimensions) const;
50
51 //! Returns a sequence of Tolerancess currently stored
52 //! in the DGTtable
53 Standard_EXPORT void GetGeomTolerances (XCAFDimTolObjects_GeomToleranceObjectSequence& theGeomToleranceObjectSequence, XCAFDimTolObjects_DatumObjectSequence& theDatumObjectSequence, XCAFDimTolObjects_DataMapOfToleranceDatum& theMap) const;
54
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;
57
58 //! Returns DatumObject defined for Shape
59 Standard_EXPORT Standard_Boolean GetRefDatum (const TopoDS_Shape& theShape, Handle(XCAFDimTolObjects_DatumObject)& theDatum) const;
60
61private:
62
63 Handle(XCAFDoc_DimTolTool) myDimTolTool;
64
65};
66
67#endif // _XCAFDimTolObjects_Tool_HeaderFile