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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _QANewBRepNaming_ImportShape_HeaderFile
18 #define _QANewBRepNaming_ImportShape_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <QANewBRepNaming_TopNaming.hxx>
25 #include <Standard_Integer.hxx>
26 #include <TDF_LabelMap.hxx>
32 //! This class provides a topological naming
34 class QANewBRepNaming_ImportShape : public QANewBRepNaming_TopNaming
41 Standard_EXPORT QANewBRepNaming_ImportShape();
43 Standard_EXPORT QANewBRepNaming_ImportShape(const TDF_Label& ResultLabel);
45 Standard_EXPORT void Init (const TDF_Label& ResultLabel);
47 //! Use this method for a topological naming of a Shape
48 Standard_EXPORT void Load (const TopoDS_Shape& S) const;
50 Standard_EXPORT void LoadPrime (const TopoDS_Shape& S) const;
52 Standard_EXPORT void LoadFirstLevel (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
54 Standard_EXPORT void LoadNextLevels (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
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;
61 Standard_EXPORT void LoadC0Vertices (const TopoDS_Shape& S, const Handle(TDF_TagSource)& Tagger) const;
63 Standard_EXPORT Standard_Integer NamedFaces (TDF_LabelMap& theNamedFaces) const;
65 Standard_EXPORT Standard_Integer NamedEdges (TDF_LabelMap& theNamedEdges) const;
67 Standard_EXPORT Standard_Integer NamedVertices (TDF_LabelMap& theNamedVertices) const;
92 #endif // _QANewBRepNaming_ImportShape_HeaderFile