blob: 06f8fb5ff9c6fde5d23cc4eb93f08db58d2ce106 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _TDataXtd_Position_HeaderFile
#define _TDataXtd_Position_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_TDataXtd_Position_HeaderFile
#include <Handle_TDataXtd_Position.hxx>
#endif
#ifndef _gp_Pnt_HeaderFile
#include <gp_Pnt.hxx>
#endif
#ifndef _TDF_Attribute_HeaderFile
#include <TDF_Attribute.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_TDF_Attribute_HeaderFile
#include <Handle_TDF_Attribute.hxx>
#endif
#ifndef _Handle_TDF_RelocationTable_HeaderFile
#include <Handle_TDF_RelocationTable.hxx>
#endif
class TDF_Label;
class gp_Pnt;
class Standard_GUID;
class TDF_Attribute;
class TDF_RelocationTable;
//! Position of a Label <br>
class TDataXtd_Position : public TDF_Attribute {
public:
//! Create if not found the TDataXtd_Position attribute set its position to <aPos> <br>
Standard_EXPORT static void Set(const TDF_Label& aLabel,const gp_Pnt& aPos) ;
//! Find an existing, or create an empty, Position. <br>
//! the Position attribute is returned. <br>
Standard_EXPORT static Handle_TDataXtd_Position Set(const TDF_Label& aLabel) ;
//! Search label <aLabel) for the TDataXtd_Position attribute and get its position <br>
//! if found returns True <br>
Standard_EXPORT static Standard_Boolean Get(const TDF_Label& aLabel,gp_Pnt& aPos) ;
Standard_EXPORT TDataXtd_Position();
//! Returns the ID of the attribute. <br>
Standard_EXPORT const Standard_GUID& ID() const;
//! Returns the ID of the attribute. <br>
Standard_EXPORT static const Standard_GUID& GetID() ;
//! Restores the contents from <anAttribute> into this <br>
//! one. It is used when aborting a transaction. <br>
//! <br>
Standard_EXPORT virtual void Restore(const Handle(TDF_Attribute)& anAttribute) ;
//! Returns an new empty attribute from the good end <br>
//! type. It is used by the copy algorithm. <br>
Standard_EXPORT virtual Handle_TDF_Attribute NewEmpty() const;
//! This method is different from the "Copy" one, <br>
//! because it is used when copying an attribute from <br>
//! a source structure into a target structure. This <br>
//! method pastes the current attribute to the label <br>
//! corresponding to the insertor. The pasted <br>
//! attribute may be a brand new one or a new version <br>
//! of the previous one. <br>
Standard_EXPORT virtual void Paste(const Handle(TDF_Attribute)& intoAttribute,const Handle(TDF_RelocationTable)& aRelocTationable) const;
Standard_EXPORT const gp_Pnt& GetPosition() const;
Standard_EXPORT void SetPosition(const gp_Pnt& aPos) ;
DEFINE_STANDARD_RTTI(TDataXtd_Position)
protected:
private:
gp_Pnt myPosition;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|