|
Open CASCADE Technology 6.5.2
|
This class is used to model construction geometry.
The specific geometric construction of the
attribute is defined by an element of the
enumeration TDataXtd_GeometryEnum.
This attribute may also be used to qualify underlying
geometry of the associated NamedShape. for
Constructuion element by example.
#include <TDataXtd_Geometry.hxx>

Public Member Functions | |
| TDataXtd_Geometry () | |
| This and the next methods are used to retrieve underlying geometry of the NamedShape, even if noone Geometry Attribute is associated . if not found or not compliant geometry return False. | |
| void | SetType (const TDataXtd_GeometryEnum T) |
| Returns the type of geometric construction T of this attribute. T will be a value of the enumeration TDataXtd_GeometryEnum. | |
| TDataXtd_GeometryEnum | GetType () const |
| Returns the type of geometric construction. | |
| 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 Handle_TDataXtd_Geometry | Set (const TDF_Label &label) |
| API class methods ================= //! Finds, or creates, a Geometry attribute defined by the label label. The default type of geometry is the value ANY_GEOM of the enumeration TDataXtd_GeometryEnum. To specify another value of this enumeration, use the function SetType. | |
| static TDataXtd_GeometryEnum | Type (const TDF_Label &L) |
| Returns the label L used to define the type of geometric construction for the geometry attribute. | |
| static TDataXtd_GeometryEnum | Type (const Handle< TNaming_NamedShape > &S) |
| Returns the topological attribute S used to define the type of geometric construction for the geometry attribute. | |
| static Standard_Boolean | Point (const TDF_Label &L, gp_Pnt &G) |
| Returns the point attribute defined by the label L and the point G. | |
| static Standard_Boolean | Point (const Handle< TNaming_NamedShape > &S, gp_Pnt &G) |
| Returns the point attribute defined by the topological attribute S and the point G. | |
| static Standard_Boolean | Axis (const TDF_Label &L, gp_Ax1 &G) |
| Returns the axis attribute defined by the label L and the axis G. | |
| static Standard_Boolean | Axis (const Handle< TNaming_NamedShape > &S, gp_Ax1 &G) |
| Returns the axis attribute defined by the topological attribute S and the axis G. | |
| static Standard_Boolean | Line (const TDF_Label &L, gp_Lin &G) |
| Returns the line attribute defined by the label L and the line G. | |
| static Standard_Boolean | Line (const Handle< TNaming_NamedShape > &S, gp_Lin &G) |
| Returns the line attribute defined by the topological attribute S and the line G. | |
| static Standard_Boolean | Circle (const TDF_Label &L, gp_Circ &G) |
| Returns the circle attribute defined by the label L and the circle G. | |
| static Standard_Boolean | Circle (const Handle< TNaming_NamedShape > &S, gp_Circ &G) |
| Returns the circle attribute defined by the topological attribute S and the circle G. | |
| static Standard_Boolean | Ellipse (const TDF_Label &L, gp_Elips &G) |
| Returns the ellipse attribute defined by the label L and the ellipse G. | |
| static Standard_Boolean | Ellipse (const Handle< TNaming_NamedShape > &S, gp_Elips &G) |
| Returns the ellipse attribute defined by the topological attribute S and the ellipse G. | |
| static Standard_Boolean | Plane (const TDF_Label &L, gp_Pln &G) |
| Returns the plane attribute defined by the label L and the plane G. | |
| static Standard_Boolean | Plane (const Handle< TNaming_NamedShape > &S, gp_Pln &G) |
| Returns the plane attribute defined by the topological attribute S and the plane G. | |
| static Standard_Boolean | Cylinder (const TDF_Label &L, gp_Cylinder &G) |
| Returns the cylinder attribute defined by the label L and the cylinder G. | |
| static Standard_Boolean | Cylinder (const Handle< TNaming_NamedShape > &S, gp_Cylinder &G) |
| Returns the cylinder attribute defined by the topological attribute S and the cylinder G. | |
| static const Standard_GUID & | GetID () |
| Returns the GUID for geometry attributes. | |
| TDataXtd_Geometry::TDataXtd_Geometry | ( | ) |
| static Standard_Boolean TDataXtd_Geometry::Axis | ( | const TDF_Label & | L, |
| gp_Ax1 & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Axis | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Ax1 & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Circle | ( | const TDF_Label & | L, |
| gp_Circ & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Circle | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Circ & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Cylinder | ( | const TDF_Label & | L, |
| gp_Cylinder & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Cylinder | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Cylinder & | G | ||
| ) | [static] |
| virtual Standard_OStream& TDataXtd_Geometry::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
| static Standard_Boolean TDataXtd_Geometry::Ellipse | ( | const TDF_Label & | L, |
| gp_Elips & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Ellipse | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Elips & | G | ||
| ) | [static] |
| static const Standard_GUID& TDataXtd_Geometry::GetID | ( | ) | [static] |
| TDataXtd_GeometryEnum TDataXtd_Geometry::GetType | ( | ) | const |
| const Standard_GUID& TDataXtd_Geometry::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
| static Standard_Boolean TDataXtd_Geometry::Line | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Lin & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Line | ( | const TDF_Label & | L, |
| gp_Lin & | G | ||
| ) | [static] |
| Handle_TDF_Attribute TDataXtd_Geometry::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
| void TDataXtd_Geometry::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
| const Handle< TDF_RelocationTable > & | aRelocationTable | ||
| ) | const [virtual] |
Implements TDF_Attribute.
| static Standard_Boolean TDataXtd_Geometry::Plane | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Pln & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Plane | ( | const TDF_Label & | L, |
| gp_Pln & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Point | ( | const Handle< TNaming_NamedShape > & | S, |
| gp_Pnt & | G | ||
| ) | [static] |
| static Standard_Boolean TDataXtd_Geometry::Point | ( | const TDF_Label & | L, |
| gp_Pnt & | G | ||
| ) | [static] |
| void TDataXtd_Geometry::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
| static Handle_TDataXtd_Geometry TDataXtd_Geometry::Set | ( | const TDF_Label & | label | ) | [static] |
| void TDataXtd_Geometry::SetType | ( | const TDataXtd_GeometryEnum | T | ) |
| static TDataXtd_GeometryEnum TDataXtd_Geometry::Type | ( | const TDF_Label & | L | ) | [static] |
| static TDataXtd_GeometryEnum TDataXtd_Geometry::Type | ( | const Handle< TNaming_NamedShape > & | S | ) | [static] |
1.7.4