Warnings on vc14 were eliminated
[occt.git] / src / QANewBRepNaming / QANewBRepNaming_ImportShape.hxx
1 // Created on: 1999-10-01
2 // Created by: Vladislav ROMASHKO
3 // Copyright (c) 1999-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 _QANewBRepNaming_ImportShape_HeaderFile
18 #define _QANewBRepNaming_ImportShape_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <QANewBRepNaming_TopNaming.hxx>
25 #include <Standard_Integer.hxx>
26 #include <TDF_LabelMap.hxx>
27 class TDF_Label;
28 class TopoDS_Shape;
29 class TDF_TagSource;
30
31
32 //! This class provides a topological naming
33 //! of a Shape
34 class QANewBRepNaming_ImportShape  : public QANewBRepNaming_TopNaming
35 {
36 public:
37
38   DEFINE_STANDARD_ALLOC
39
40   
41   Standard_EXPORT QANewBRepNaming_ImportShape();
42   
43   Standard_EXPORT QANewBRepNaming_ImportShape(const TDF_Label& ResultLabel);
44   
45   Standard_EXPORT void Init (const TDF_Label& ResultLabel);
46   
47   //! Use this method for a topological naming of a Shape
48   Standard_EXPORT void Load (const TopoDS_Shape& S) const;
49   
50   Standard_EXPORT void LoadPrime (const TopoDS_Shape& S) const;
51   
52   Standard_EXPORT void LoadFirstLevel (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
53   
54   Standard_EXPORT void LoadNextLevels (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
55   
56   //! Method for internal use. It is used by Load().
57   //! It loads the edges which couldn't be uniquely identified as
58   //! an intersection of two faces.
59   Standard_EXPORT void LoadC0Edges (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
60   
61   Standard_EXPORT void LoadC0Vertices (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
62   
63   Standard_EXPORT Standard_Integer NamedFaces (TDF_LabelMap& theNamedFaces) const;
64   
65   Standard_EXPORT Standard_Integer NamedEdges (TDF_LabelMap& theNamedEdges) const;
66   
67   Standard_EXPORT Standard_Integer NamedVertices (TDF_LabelMap& theNamedVertices) const;
68
69
70
71
72 protected:
73
74
75
76
77
78 private:
79
80
81
82
83
84 };
85
86
87
88
89
90
91
92 #endif // _QANewBRepNaming_ImportShape_HeaderFile