# ApplicationFramework
TKLCAF
TDataStd

# TDataStd_Geometry Class Reference

This class is used to model construction geometry.
The specific geometric construction of the
attribute is defined by an element of the
enumeration TDataStd_GeometryEnum.
This attribute may also be used to qualify underlying
geometry of the associated NamedShape. for
Constructuion element by example.
.

`#include <TDataStd_Geometry.hxx>`

Inheritance diagram for TDataStd_Geometry:

[legend]

## Public Member Functions

Standard_EXPORT | TDataStd_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. .
Standard_EXPORT void | SetType (const TDataStd_GeometryEnum T)
| Returns the type of geometric construction T of this attribute. T will be a value of the enumeration TDataStd_GeometryEnum. .
Standard_EXPORT TDataStd_GeometryEnum | GetType () const
| Returns the type of geometric construction. .
Standard_EXPORT const Standard_GUID & | ID () const
| Returns the ID of the attribute. .
Standard_EXPORT void | Restore (const Handle(TDF_Attribute)&with)
| Restores the backuped contents from <anattribute> into this one. It is used when aborting a transaction. .
Standard_EXPORT Handle_TDF_Attribute | NewEmpty () const
| Returns an new empty attribute from the good end type. It is used by the copy algorithm. .
Standard_EXPORT 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_EXPORT Standard_OStream & | Dump (Standard_OStream &anOS) const
| Dumps the minimum information about <me> on <astream>. .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Static Public Member Functions

static Standard_EXPORT Handle_TDataStd_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 TDataStd_GeometryEnum. To specify another value of this enumeration, use the function SetType. .
static Standard_EXPORT TDataStd_GeometryEnum | Type (const TDF_Label &L)
| Returns the label L used to define the type of geometric construction for the geometry attribute. .
static Standard_EXPORT TDataStd_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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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_EXPORT 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 Standard_EXPORT const Standard_GUID & | GetID ()
| Returns the GUID for geometry attributes. .

## Private Attributes

TDataStd_GeometryEnum | myType

## Constructor & Destructor Documentation

Standard_EXPORT TDataStd_Geometry::TDataStd_Geometry | ( |  | ) |

## Member Function Documentation

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Axis | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Ax1 & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Axis | ( | const TDF_Label & | L,
|  | gp_Ax1 & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Circle | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Circ & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Circle | ( | const TDF_Label & | L,
|  | gp_Circ & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Cylinder | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Cylinder & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Cylinder | ( | const TDF_Label & | L,
|  | gp_Cylinder & | G
| ) | `[static]`

virtual Standard_EXPORT Standard_OStream& TDataStd_Geometry::Dump | ( | Standard_OStream & | anOS | ) | const`[virtual]`

| Reimplemented from TDF_Attribute.

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Ellipse | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Elips & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Ellipse | ( | const TDF_Label & | L,
|  | gp_Elips & | G
| ) | `[static]`

static Standard_EXPORT const Standard_GUID& TDataStd_Geometry::GetID | ( |  | ) | `[static]`

Standard_EXPORT TDataStd_GeometryEnum TDataStd_Geometry::GetType | ( |  | ) | const

Standard_EXPORT const TDataStd_Geometry::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from TDF_Attribute.

Standard_EXPORT const Standard_GUID& TDataStd_Geometry::ID | ( |  | ) | const`[virtual]`

| Implements TDF_Attribute.

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Line | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Lin & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Line | ( | const TDF_Label & | L,
|  | gp_Lin & | G
| ) | `[static]`

Standard_EXPORT Handle_TDF_Attribute TDataStd_Geometry::NewEmpty | ( |  | ) | const`[virtual]`

| Implements TDF_Attribute.

Standard_EXPORT void TDataStd_Geometry::Paste | ( | const Handle(TDF_Attribute)& | into,
|  | const Handle(TDF_RelocationTable)& | RT
| ) | const`[virtual]`

| Implements TDF_Attribute.

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Plane | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Pln & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Plane | ( | const TDF_Label & | L,
|  | gp_Pln & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Point | ( | const Handle(TNaming_NamedShape)& | S,
|  | gp_Pnt & | G
| ) | `[static]`

static Standard_EXPORT Standard_Boolean TDataStd_Geometry::Point | ( | const TDF_Label & | L,
|  | gp_Pnt & | G
| ) | `[static]`

Standard_EXPORT void TDataStd_Geometry::Restore | ( | const Handle(TDF_Attribute)& | with | ) | `[virtual]`

| Implements TDF_Attribute.

static Standard_EXPORT Handle_TDataStd_Geometry TDataStd_Geometry::Set | ( | const TDF_Label & | label | ) | `[static]`

Standard_EXPORT void TDataStd_Geometry::SetType | ( | const TDataStd_GeometryEnum | T | ) |

static Standard_EXPORT TDataStd_GeometryEnum TDataStd_Geometry::Type | ( | const Handle(TNaming_NamedShape)& | S | ) | `[static]`

static Standard_EXPORT TDataStd_GeometryEnum TDataStd_Geometry::Type | ( | const TDF_Label & | L | ) | `[static]`

## Field Documentation

TDataStd_GeometryEnum TDataStd_Geometry::myType`[private]`

The documentation for this class was generated from the following file:

- TDataStd_Geometry.hxx