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;
36 class TDF_RelocationTable;
39 //! store the arguments of Naming.
47 Standard_EXPORT TNaming_Name();
49 Standard_EXPORT void Type (const TNaming_NameType aType);
51 Standard_EXPORT void ShapeType (const TopAbs_ShapeEnum aType);
53 Standard_EXPORT void Shape (const TopoDS_Shape& theShape);
55 Standard_EXPORT void Append (const Handle(TNaming_NamedShape)& arg);
57 Standard_EXPORT void StopNamedShape (const Handle(TNaming_NamedShape)& arg);
59 Standard_EXPORT void Index (const Standard_Integer I);
61 Standard_EXPORT void ContextLabel (const TDF_Label& theLab);
63 Standard_EXPORT void Orientation (const TopAbs_Orientation theOrientation);
65 Standard_EXPORT TNaming_NameType Type() const;
67 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
69 Standard_EXPORT TopoDS_Shape Shape() const;
71 Standard_EXPORT const TNaming_ListOfNamedShape& Arguments() const;
73 Standard_EXPORT Handle(TNaming_NamedShape) StopNamedShape() const;
75 Standard_EXPORT Standard_Integer Index() const;
77 Standard_EXPORT const TDF_Label& ContextLabel() const;
79 TopAbs_Orientation Orientation() const
84 Standard_EXPORT Standard_Boolean Solve (const TDF_Label& aLab, const TDF_LabelMap& Valid) const;
86 Standard_EXPORT void Paste (TNaming_Name& into, const Handle(TDF_RelocationTable)& RT) const;
89 TNaming_NameType myType;
90 TopAbs_ShapeEnum myShapeType;
91 TNaming_ListOfNamedShape myArgs;
92 Handle(TNaming_NamedShape) myStop;
93 Standard_Integer myIndex;
95 TDF_Label myContextLabel;
96 TopAbs_Orientation myOrientation;
99 #endif // _TNaming_Name_HeaderFile