|
Open CASCADE Technology 6.5.2
|
The basis to define a point attribute.
The topological attribute must contain a vertex.
You use this class to create reference points in a design.
Warning: Use TDataXtd_Geometry attribute to retrieve the
gp_Pnt of the Point attribute
#include <TDataXtd_Point.hxx>

Public Member Functions | |
| TDataXtd_Point () | |
| const Standard_GUID & | ID () const |
| Returns the ID of the attribute. | |
| void | Restore (const Handle< TDF_Attribute > &With) |
| Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction. | |
| Handle_TDF_Attribute | NewEmpty () const |
| Returns an new empty attribute from the good end type. It is used by the copy algorithm. | |
| void | Paste (const Handle< TDF_Attribute > &Into, const Handle< TDF_RelocationTable > &RT) const |
| This method is different from the "Copy" one, because it is used when copying an attribute from a source structure into a target structure. This method may paste the contents of <me> into <intoAttribute>. The given pasted attribute can be full or empty of its contents. But don't make a NEW! Just set the contents! It is possible to use <aRelocationTable> to get/set the relocation value of a source attribute. | |
| virtual Standard_OStream & | Dump (Standard_OStream &anOS) const |
| Dumps the minimum information about <me> on <aStream>. | |
Static Public Member Functions | |
| static const Standard_GUID & | GetID () |
| class methods ============= Returns the GUID for point attributes. | |
| static Handle_TDataXtd_Point | Set (const TDF_Label &label) |
| Sets the label Label as a point attribute. If no object is found, a point attribute is created. | |
| static Handle_TDataXtd_Point | Set (const TDF_Label &label, const gp_Pnt &P) |
| Sets the label Label as a point attribute containing the point P. If no object is found, a point attribute is created. //! Point methods ============= | |
| TDataXtd_Point::TDataXtd_Point | ( | ) |
| virtual Standard_OStream& TDataXtd_Point::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
| static const Standard_GUID& TDataXtd_Point::GetID | ( | ) | [static] |
| const Standard_GUID& TDataXtd_Point::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
| Handle_TDF_Attribute TDataXtd_Point::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
| void TDataXtd_Point::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
| const Handle< TDF_RelocationTable > & | aRelocationTable | ||
| ) | const [virtual] |
Implements TDF_Attribute.
| void TDataXtd_Point::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
| static Handle_TDataXtd_Point TDataXtd_Point::Set | ( | const TDF_Label & | label, |
| const gp_Pnt & | P | ||
| ) | [static] |
| static Handle_TDataXtd_Point TDataXtd_Point::Set | ( | const TDF_Label & | label | ) | [static] |
1.7.4