1 // Created on: 1997-03-19
2 // Created by: Yves FRICAUD
3 // Copyright (c) 1997-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 _TNaming_Name_HeaderFile
18 #define _TNaming_Name_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
24 #include <TNaming_NameType.hxx>
25 #include <TopAbs_ShapeEnum.hxx>
26 #include <TNaming_ListOfNamedShape.hxx>
27 #include <Standard_Integer.hxx>
28 #include <TopoDS_Shape.hxx>
29 #include <TDF_Label.hxx>
30 #include <TopAbs_Orientation.hxx>
31 #include <Standard_Boolean.hxx>
32 #include <TDF_LabelMap.hxx>
33 class TNaming_NamedShape;
34 class TDF_RelocationTable;
37 //! store the arguments of Naming.
45 Standard_EXPORT TNaming_Name();
47 Standard_EXPORT void Type (const TNaming_NameType aType);
49 Standard_EXPORT void ShapeType (const TopAbs_ShapeEnum aType);
51 Standard_EXPORT void Shape (const TopoDS_Shape& theShape);
53 Standard_EXPORT void Append (const Handle(TNaming_NamedShape)& arg);
55 Standard_EXPORT void StopNamedShape (const Handle(TNaming_NamedShape)& arg);
57 Standard_EXPORT void Index (const Standard_Integer I);
59 Standard_EXPORT void ContextLabel (const TDF_Label& theLab);
61 Standard_EXPORT void Orientation (const TopAbs_Orientation theOrientation);
63 Standard_EXPORT TNaming_NameType Type() const;
65 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
67 Standard_EXPORT TopoDS_Shape Shape() const;
69 Standard_EXPORT const TNaming_ListOfNamedShape& Arguments() const;
71 Standard_EXPORT Handle(TNaming_NamedShape) StopNamedShape() const;
73 Standard_EXPORT Standard_Integer Index() const;
75 Standard_EXPORT const TDF_Label& ContextLabel() const;
77 TopAbs_Orientation Orientation() const
82 Standard_EXPORT Standard_Boolean Solve (const TDF_Label& aLab, const TDF_LabelMap& Valid) const;
84 Standard_EXPORT void Paste (TNaming_Name& into, const Handle(TDF_RelocationTable)& RT) const;
86 //! Dumps the content of me into the stream
87 Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
90 TNaming_NameType myType;
91 TopAbs_ShapeEnum myShapeType;
92 TNaming_ListOfNamedShape myArgs;
93 Handle(TNaming_NamedShape) myStop;
94 Standard_Integer myIndex;
96 TDF_Label myContextLabel;
97 TopAbs_Orientation myOrientation;
100 #endif // _TNaming_Name_HeaderFile