File indexing completed on 2025-01-18 10:05:20
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _TDataXtd_Position_HeaderFile
0017 #define _TDataXtd_Position_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <gp_Pnt.hxx>
0023 #include <TDF_Attribute.hxx>
0024 class TDF_Label;
0025 class Standard_GUID;
0026 class TDF_RelocationTable;
0027
0028
0029 class TDataXtd_Position;
0030 DEFINE_STANDARD_HANDLE(TDataXtd_Position, TDF_Attribute)
0031
0032
0033 class TDataXtd_Position : public TDF_Attribute
0034 {
0035
0036 public:
0037
0038
0039
0040 Standard_EXPORT static void Set (const TDF_Label& aLabel, const gp_Pnt& aPos);
0041
0042
0043
0044 Standard_EXPORT static Handle(TDataXtd_Position) Set (const TDF_Label& aLabel);
0045
0046
0047
0048 Standard_EXPORT static Standard_Boolean Get (const TDF_Label& aLabel, gp_Pnt& aPos);
0049
0050 Standard_EXPORT TDataXtd_Position();
0051
0052
0053 Standard_EXPORT const Standard_GUID& ID() const Standard_OVERRIDE;
0054
0055
0056 Standard_EXPORT static const Standard_GUID& GetID();
0057
0058
0059
0060 Standard_EXPORT virtual void Restore (const Handle(TDF_Attribute)& anAttribute) Standard_OVERRIDE;
0061
0062
0063
0064 Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
0065
0066
0067
0068
0069
0070
0071
0072
0073 Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& intoAttribute, const Handle(TDF_RelocationTable)& aRelocTationable) const Standard_OVERRIDE;
0074
0075 Standard_EXPORT const gp_Pnt& GetPosition() const;
0076
0077 Standard_EXPORT void SetPosition (const gp_Pnt& aPos);
0078
0079
0080
0081
0082 DEFINE_STANDARD_RTTIEXT(TDataXtd_Position,TDF_Attribute)
0083
0084 protected:
0085
0086
0087
0088
0089 private:
0090
0091
0092 gp_Pnt myPosition;
0093
0094
0095 };
0096
0097
0098
0099
0100
0101
0102
0103 #endif