File indexing completed on 2025-01-18 10:05:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TNaming_Name_HeaderFile
0018 #define _TNaming_Name_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TNaming_NameType.hxx>
0025 #include <TopAbs_ShapeEnum.hxx>
0026 #include <TNaming_ListOfNamedShape.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <TopoDS_Shape.hxx>
0029 #include <TDF_Label.hxx>
0030 #include <TopAbs_Orientation.hxx>
0031 #include <TDF_LabelMap.hxx>
0032 class TNaming_NamedShape;
0033 class TDF_RelocationTable;
0034
0035
0036
0037 class TNaming_Name
0038 {
0039 public:
0040
0041 DEFINE_STANDARD_ALLOC
0042
0043
0044 Standard_EXPORT TNaming_Name();
0045
0046 Standard_EXPORT void Type (const TNaming_NameType aType);
0047
0048 Standard_EXPORT void ShapeType (const TopAbs_ShapeEnum aType);
0049
0050 Standard_EXPORT void Shape (const TopoDS_Shape& theShape);
0051
0052 Standard_EXPORT void Append (const Handle(TNaming_NamedShape)& arg);
0053
0054 Standard_EXPORT void StopNamedShape (const Handle(TNaming_NamedShape)& arg);
0055
0056 Standard_EXPORT void Index (const Standard_Integer I);
0057
0058 Standard_EXPORT void ContextLabel (const TDF_Label& theLab);
0059
0060 Standard_EXPORT void Orientation (const TopAbs_Orientation theOrientation);
0061
0062 Standard_EXPORT TNaming_NameType Type() const;
0063
0064 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
0065
0066 Standard_EXPORT TopoDS_Shape Shape() const;
0067
0068 Standard_EXPORT const TNaming_ListOfNamedShape& Arguments() const;
0069
0070 Standard_EXPORT Handle(TNaming_NamedShape) StopNamedShape() const;
0071
0072 Standard_EXPORT Standard_Integer Index() const;
0073
0074 Standard_EXPORT const TDF_Label& ContextLabel() const;
0075
0076 TopAbs_Orientation Orientation() const
0077 {
0078 return myOrientation;
0079 }
0080
0081 Standard_EXPORT Standard_Boolean Solve (const TDF_Label& aLab, const TDF_LabelMap& Valid) const;
0082
0083 Standard_EXPORT void Paste (TNaming_Name& into, const Handle(TDF_RelocationTable)& RT) const;
0084
0085
0086 Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const;
0087
0088 private:
0089 TNaming_NameType myType;
0090 TopAbs_ShapeEnum myShapeType;
0091 TNaming_ListOfNamedShape myArgs;
0092 Handle(TNaming_NamedShape) myStop;
0093 Standard_Integer myIndex;
0094 TopoDS_Shape myShape;
0095 TDF_Label myContextLabel;
0096 TopAbs_Orientation myOrientation;
0097 };
0098
0099 #endif