OCC.TDataXtd module¶
This package defines extension of standard attributes formodelling (mainly for work with geometry).- Category: GUID - AttributeID2a96b602-ec8b-11d0-bee7-080009dc3333 TDataXtd_Constraint2a96b618-ec8b-11d0-bee7-080009dc3333 TDataXtd_Pattern2a96b61b-ec8b-11d0-bee7-080009dc3333 TDataXtd_PatternStd2a96b620-ec8b-11d0-bee7-080009dc3333 TDataXtd_Shape2a96b60d-ec8b-11d0-bee7-080009dc3333 TDataXtd_Point2a96b601-ec8b-11d0-bee7-080009dc3333 TDataXtd_Axis2a96b60c-ec8b-11d0-bee7-080009dc3333 TDataXtd_Plane2a96b604-ec8b-11d0-bee7-080009dc3333 TDataXtd_Geometry2a96b60b-ec8b-11d0-bee7-080009dc3333 TDataXtd_Placement
-
class
Handle_TDataXtd_Axis
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Constraint
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Geometry
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_HArray1OfTrsf
(*args)¶ Bases:
OCC.MMgt.Handle_MMgt_TShared
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Pattern
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_PatternStd
(*args)¶ Bases:
OCC.TDataXtd.Handle_TDataXtd_Pattern
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Placement
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Plane
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Point
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Position
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
Handle_TDataXtd_Shape
(*args)¶ Bases:
OCC.TDF.Handle_TDF_Attribute
-
static
DownCast
()¶
-
GetObject
()¶
-
IsNull
()¶
-
Nullify
()¶
-
thisown
¶ The membership flag
-
static
-
class
SwigPyIterator
(*args, **kwargs)¶ Bases:
object
-
advance
()¶
-
copy
()¶
-
decr
()¶
-
distance
()¶
-
equal
()¶
-
incr
()¶
-
next
()¶
-
previous
()¶
-
thisown
¶ The membership flag
-
value
()¶
-
-
class
TDataXtd_Array1OfTrsf
(*args)¶ Bases:
object
Parameters: Return type: Return type: -
Assign
()¶ Parameters: Other (TDataXtd_Array1OfTrsf &) – Return type: TDataXtd_Array1OfTrsf
-
Set
()¶ Parameters: Other (TDataXtd_Array1OfTrsf &) – Return type: TDataXtd_Array1OfTrsf
-
thisown
¶ The membership flag
-
-
class
TDataXtd_Axis
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DumpToString
()¶ TDataXtd_Axis_DumpToString(TDataXtd_Axis self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - class methods ============= Returns the GUID for an axis.
Return type: Standard_GUID
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Axis¶ - Finds or creates an axis attribute defined by the label. In the case of a creation of an axis, a compatible named shape should already be associated with label. Exceptions Standard_NullObject if no compatible named shape is associated with the label.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Axis - Find, or create, an Axis attribute and set <P> as generated in the associated NamedShape. Axis methods ============
Parameters: - label (TDF_Label &) –
- L (gp_Lin) –
Return type:
-
thisown
¶ The membership flag
-
-
TDataXtd_Axis_GetID
()¶ - class methods ============= Returns the GUID for an axis.
Return type: Standard_GUID
-
TDataXtd_Axis_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Axis¶ - Finds or creates an axis attribute defined by the label. In the case of a creation of an axis, a compatible named shape should already be associated with label. Exceptions Standard_NullObject if no compatible named shape is associated with the label.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Axis - Find, or create, an Axis attribute and set <P> as generated in the associated NamedShape. Axis methods ============
Parameters: - label (TDF_Label &) –
- L (gp_Lin) –
Return type:
-
class
TDataXtd_Constraint
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
ClearGeometries
()¶ - Removes the geometries involved in the constraint or dimension from the array of topological attributes where they are stored.
Return type: None
-
static
CollectChildConstraints
()¶ - collects constraints on Childs for label <aLabel>
Parameters: - aLabel (TDF_Label &) –
- TheList (TDF_LabelList &) –
Return type: void
-
DumpToString
()¶ TDataXtd_Constraint_DumpToString(TDataXtd_Constraint self) -> std::string
-
GetGeometry
()¶ - Returns the integer index Index used to access the array of the constraint or stored geometries of a dimension Index has a value between 1 and 4. methods to write constraint fields (use builder) ==================================
Parameters: Index (int) – Return type: Handle_TNaming_NamedShape
-
GetHandle
()¶
-
static
GetID
()¶ - Returns the GUID for constraints.
Return type: Standard_GUID
-
GetPlane
()¶ - Returns the topological attribute of the plane used for planar - i.e., 2D - constraints. This plane is attached to another label. If the constraint is not planar, in other words, 3D, this function will return a null handle.
Return type: Handle_TNaming_NamedShape
-
GetType
()¶ - Returns the type of constraint. This will be an element of the TDataXtd_ConstraintEnum enumeration.
Return type: TDataXtd_ConstraintEnum
-
GetValue
()¶ - Returns the value of a dimension. This value is a reference to a TDataStd_Real attribute. If the attribute is not a dimension, this value will be 0. Use IsDimension to test this condition.
Return type: Handle_TDataStd_Real
-
IsDimension
()¶ - Returns true if this constraint attribute is a dimension, and therefore has a value.
Return type: bool
-
NbGeometries
()¶ - Returns the number of geometry attributes in this constraint attribute. This number will be between 1 and 4.
Return type: int
-
Set
()¶ - Finds or creates the 2D constraint attribute defined by the planar topological attribute plane and the label label. Constraint methods ==================
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Constraint - Finds or creates the constraint attribute defined by the topological attribute G1 and the constraint type type.
Parameters: - type (TDataXtd_ConstraintEnum) –
- G1 (Handle_TNaming_NamedShape &) –
Return type: - Finds or creates the constraint attribute defined by the topological attributes G1 and G2, and by the constraint type type.
Parameters: - type (TDataXtd_ConstraintEnum) –
- G1 (Handle_TNaming_NamedShape &) –
- G2 (Handle_TNaming_NamedShape &) –
Return type: - Finds or creates the constraint attribute defined by the topological attributes G1, G2 and G3, and by the constraint type type.
Parameters: - type (TDataXtd_ConstraintEnum) –
- G1 (Handle_TNaming_NamedShape &) –
- G2 (Handle_TNaming_NamedShape &) –
- G3 (Handle_TNaming_NamedShape &) –
Return type: - Finds or creates the constraint attribute defined by the topological attributes G1, G2, G3 and G4, and by the constraint type type. methods to read constraint fields =================================
Parameters: - type (TDataXtd_ConstraintEnum) –
- G1 (Handle_TNaming_NamedShape &) –
- G2 (Handle_TNaming_NamedShape &) –
- G3 (Handle_TNaming_NamedShape &) –
- G4 (Handle_TNaming_NamedShape &) –
Return type:
-
SetGeometry
()¶ - Finds or creates the underlying geometry of the constraint defined by the topological attribute G and the integer index Index.
Parameters: - Index (int) –
- G (Handle_TNaming_NamedShape &) –
Return type:
-
SetPlane
()¶ - Finds or creates the plane of the 2D constraint attribute, defined by the planar topological attribute plane.
Parameters: plane (Handle_TNaming_NamedShape &) – Return type: None
-
SetType
()¶ - Finds or creates the type of constraint CTR.
Parameters: CTR (TDataXtd_ConstraintEnum) – Return type: None
-
SetValue
()¶ - Finds or creates the real number value V of the dimension constraint attribute.
Parameters: V (Handle_TDataStd_Real &) – Return type: None
-
Verified
()¶ - Returns true if this constraint attribute is valid. By default, true is returned. When the value of a dimension is changed or when a geometry is moved, false is returned until the solver sets it back to true.
Return type: bool - Returns true if this constraint attribute defined by status is valid. By default, true is returned. When the value of a dimension is changed or when a geometry is moved, false is returned until the solver sets it back to true. If status is false, Verified is set to false.
Parameters: status (bool) – Return type: None
-
thisown
¶ The membership flag
-
-
TDataXtd_Constraint_CollectChildConstraints
()¶ - collects constraints on Childs for label <aLabel>
Parameters: - aLabel (TDF_Label &) –
- TheList (TDF_LabelList &) –
Return type: void
-
TDataXtd_Constraint_GetID
()¶ - Returns the GUID for constraints.
Return type: Standard_GUID
-
class
TDataXtd_Geometry
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
- 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.
Return type: None -
static
Axis
()¶ - Returns the axis attribute defined by the label L and the axis G.
Parameters: - L (TDF_Label &) –
- G (gp_Ax1) –
Return type: - Returns the axis attribute defined by the topological attribute S and the axis G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Ax1) –
Return type:
-
static
Circle
()¶ - Returns the circle attribute defined by the label L and the circle G.
Parameters: - L (TDF_Label &) –
- G (gp_Circ) –
Return type: - Returns the circle attribute defined by the topological attribute S and the circle G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Circ) –
Return type:
-
static
Cylinder
()¶ - Returns the cylinder attribute defined by the label L and the cylinder G.
Parameters: - L (TDF_Label &) –
- G (gp_Cylinder) –
Return type: - Returns the cylinder attribute defined by the topological attribute S and the cylinder G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Cylinder) –
Return type:
-
DumpToString
()¶ TDataXtd_Geometry_DumpToString(TDataXtd_Geometry self) -> std::string
-
static
Ellipse
()¶ - Returns the ellipse attribute defined by the label L and the ellipse G.
Parameters: - L (TDF_Label &) –
- G (gp_Elips) –
Return type: - Returns the ellipse attribute defined by the topological attribute S and the ellipse G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Elips) –
Return type:
-
GetHandle
()¶
-
static
GetID
()¶ - Returns the GUID for geometry attributes.
Return type: Standard_GUID
-
GetType
()¶ - Returns the type of geometric construction.
Return type: TDataXtd_GeometryEnum
-
static
Line
()¶ - Returns the line attribute defined by the label L and the line G.
Parameters: - L (TDF_Label &) –
- G (gp_Lin) –
Return type: - Returns the line attribute defined by the topological attribute S and the line G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Lin) –
Return type:
-
static
Plane
()¶ - Returns the plane attribute defined by the label L and the plane G.
Parameters: - L (TDF_Label &) –
- G (gp_Pln) –
Return type: - Returns the plane attribute defined by the topological attribute S and the plane G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Pln) –
Return type:
-
static
Point
()¶ - Returns the point attribute defined by the label L and the point G.
Parameters: - L (TDF_Label &) –
- G (gp_Pnt) –
Return type: - Returns the point attribute defined by the topological attribute S and the point G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Pnt) –
Return type:
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Geometry¶ - 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.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Geometry
-
SetType
()¶ - Returns the type of geometric construction T of this attribute. T will be a value of the enumeration TDataXtd_GeometryEnum.
Parameters: T (TDataXtd_GeometryEnum) – Return type: None
-
static
Type
()¶ - Returns the label L used to define the type of geometric construction for the geometry attribute.
Parameters: L (TDF_Label &) – Return type: TDataXtd_GeometryEnum - Returns the topological attribute S used to define the type of geometric construction for the geometry attribute.
Parameters: S (Handle_TNaming_NamedShape &) – Return type: TDataXtd_GeometryEnum
-
thisown
¶ The membership flag
-
TDataXtd_Geometry_Axis
()¶ - Returns the axis attribute defined by the label L and the axis G.
Parameters: - L (TDF_Label &) –
- G (gp_Ax1) –
Return type: - Returns the axis attribute defined by the topological attribute S and the axis G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Ax1) –
Return type:
-
TDataXtd_Geometry_Circle
()¶ - Returns the circle attribute defined by the label L and the circle G.
Parameters: - L (TDF_Label &) –
- G (gp_Circ) –
Return type: - Returns the circle attribute defined by the topological attribute S and the circle G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Circ) –
Return type:
-
TDataXtd_Geometry_Cylinder
()¶ - Returns the cylinder attribute defined by the label L and the cylinder G.
Parameters: - L (TDF_Label &) –
- G (gp_Cylinder) –
Return type: - Returns the cylinder attribute defined by the topological attribute S and the cylinder G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Cylinder) –
Return type:
-
TDataXtd_Geometry_Ellipse
()¶ - Returns the ellipse attribute defined by the label L and the ellipse G.
Parameters: - L (TDF_Label &) –
- G (gp_Elips) –
Return type: - Returns the ellipse attribute defined by the topological attribute S and the ellipse G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Elips) –
Return type:
-
TDataXtd_Geometry_GetID
()¶ - Returns the GUID for geometry attributes.
Return type: Standard_GUID
-
TDataXtd_Geometry_Line
()¶ - Returns the line attribute defined by the label L and the line G.
Parameters: - L (TDF_Label &) –
- G (gp_Lin) –
Return type: - Returns the line attribute defined by the topological attribute S and the line G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Lin) –
Return type:
-
TDataXtd_Geometry_Plane
()¶ - Returns the plane attribute defined by the label L and the plane G.
Parameters: - L (TDF_Label &) –
- G (gp_Pln) –
Return type: - Returns the plane attribute defined by the topological attribute S and the plane G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Pln) –
Return type:
-
TDataXtd_Geometry_Point
()¶ - Returns the point attribute defined by the label L and the point G.
Parameters: - L (TDF_Label &) –
- G (gp_Pnt) –
Return type: - Returns the point attribute defined by the topological attribute S and the point G.
Parameters: - S (Handle_TNaming_NamedShape &) –
- G (gp_Pnt) –
Return type:
-
TDataXtd_Geometry_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Geometry¶ - 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.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Geometry
-
TDataXtd_Geometry_Type
()¶ - Returns the label L used to define the type of geometric construction for the geometry attribute.
Parameters: L (TDF_Label &) – Return type: TDataXtd_GeometryEnum - Returns the topological attribute S used to define the type of geometric construction for the geometry attribute.
Parameters: S (Handle_TNaming_NamedShape &) – Return type: TDataXtd_GeometryEnum
-
class
TDataXtd_HArray1OfTrsf
(*args)¶ Bases:
OCC.MMgt.MMgt_TShared
Parameters: Return type: Return type: -
Array1
()¶ Return type: TDataXtd_Array1OfTrsf
-
ChangeArray1
()¶ Return type: TDataXtd_Array1OfTrsf
-
GetHandle
()¶
-
thisown
¶ The membership flag
-
-
class
TDataXtd_Pattern
(*args, **kwargs)¶ Bases:
OCC.TDF.TDF_Attribute
-
ComputeTrsfs
()¶ - Give the transformations
Parameters: Trsfs (TDataXtd_Array1OfTrsf &) – Return type: void
-
GetHandle
()¶
-
static
GetID
()¶ Return type: Standard_GUID
-
PatternID
()¶ - Returns the ID of the attribute.
Return type: Standard_GUID
-
thisown
¶ The membership flag
-
-
class
TDataXtd_PatternStd
(*args)¶ Bases:
OCC.TDataXtd.TDataXtd_Pattern
Return type: None -
Axis1
()¶ Parameters: Axis1 (Handle_TNaming_NamedShape &) – Return type: None Return type: Handle_TNaming_NamedShape
-
Axis2
()¶ Parameters: Axis2 (Handle_TNaming_NamedShape &) – Return type: None Return type: Handle_TNaming_NamedShape
-
DumpToString
()¶ TDataXtd_PatternStd_DumpToString(TDataXtd_PatternStd self) -> std::string
-
GetHandle
()¶
-
static
GetPatternID
()¶ Return type: Standard_GUID
-
Mirror
()¶ Parameters: plane (Handle_TNaming_NamedShape &) – Return type: None Return type: Handle_TNaming_NamedShape
-
NbInstances1
()¶ Parameters: NbInstances1 (Handle_TDataStd_Integer &) – Return type: None Return type: Handle_TDataStd_Integer
-
NbInstances2
()¶ Parameters: NbInstances2 (Handle_TDataStd_Integer &) – Return type: None Return type: Handle_TDataStd_Integer
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_PatternStd¶ - Find, or create, a PatternStd attribute
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_PatternStd
-
Value1
()¶ Parameters: value (Handle_TDataStd_Real &) – Return type: None Return type: Handle_TDataStd_Real
-
Value2
()¶ Parameters: value (Handle_TDataStd_Real &) – Return type: None Return type: Handle_TDataStd_Real
-
thisown
¶ The membership flag
-
-
TDataXtd_PatternStd_GetPatternID
()¶ Return type: Standard_GUID
-
TDataXtd_PatternStd_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_PatternStd¶ - Find, or create, a PatternStd attribute
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_PatternStd
-
TDataXtd_Pattern_GetID
()¶ Return type: Standard_GUID
-
class
TDataXtd_Placement
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DumpToString
()¶ TDataXtd_Placement_DumpToString(TDataXtd_Placement self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - class methods =============
Return type: Standard_GUID
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Placement¶ - Find, or create, an Placement attribute. the Placement attribute is returned. Placement methods =================
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Placement
-
thisown
¶ The membership flag
-
-
TDataXtd_Placement_GetID
()¶ - class methods =============
Return type: Standard_GUID
-
TDataXtd_Placement_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Placement¶ - Find, or create, an Placement attribute. the Placement attribute is returned. Placement methods =================
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Placement
-
class
TDataXtd_Plane
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DumpToString
()¶ TDataXtd_Plane_DumpToString(TDataXtd_Plane self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - class methods ============= //! Returns the GUID for plane attributes.
Return type: Standard_GUID
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Plane¶ - Finds or creates the plane attribute defined by the label label. Warning If you are creating the attribute with this syntax, a planar face should already be associated with label.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Plane - Finds, or creates, a Plane attribute and sets <P> as generated the associated NamedShape. Plane methods =============
Parameters: - label (TDF_Label &) –
- P (gp_Pln) –
Return type:
-
thisown
¶ The membership flag
-
-
TDataXtd_Plane_GetID
()¶ - class methods ============= //! Returns the GUID for plane attributes.
Return type: Standard_GUID
-
TDataXtd_Plane_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Plane¶ - Finds or creates the plane attribute defined by the label label. Warning If you are creating the attribute with this syntax, a planar face should already be associated with label.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Plane - Finds, or creates, a Plane attribute and sets <P> as generated the associated NamedShape. Plane methods =============
Parameters: - label (TDF_Label &) –
- P (gp_Pln) –
Return type:
-
class
TDataXtd_Point
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DumpToString
()¶ TDataXtd_Point_DumpToString(TDataXtd_Point self) -> std::string
-
GetHandle
()¶
-
static
GetID
()¶ - class methods ============= //! Returns the GUID for point attributes.
Return type: Standard_GUID
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Point¶ - Sets the label Label as a point attribute. If no object is found, a point attribute is created.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Point - Sets the label Label as a point attribute containing the point P. If no object is found, a point attribute is created. Point methods =============
Parameters: - label (TDF_Label &) –
- P (gp_Pnt) –
Return type:
-
thisown
¶ The membership flag
-
-
TDataXtd_Point_GetID
()¶ - class methods ============= //! Returns the GUID for point attributes.
Return type: Standard_GUID
-
TDataXtd_Point_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Point¶ - Sets the label Label as a point attribute. If no object is found, a point attribute is created.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Point - Sets the label Label as a point attribute containing the point P. If no object is found, a point attribute is created. Point methods =============
Parameters: - label (TDF_Label &) –
- P (gp_Pnt) –
Return type:
-
class
TDataXtd_Position
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
static
Get
()¶ - Search label <aLabel) for the TDataXtd_Position attribute and get its position if found returns True
Parameters: - aLabel (TDF_Label &) –
- aPos (gp_Pnt) –
Return type:
-
GetHandle
()¶
-
static
GetID
()¶ - Returns the ID of the attribute.
Return type: Standard_GUID
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Position¶ - Create if not found the TDataXtd_Position attribute set its position to <aPos>
Parameters: - aLabel (TDF_Label &) –
- aPos (gp_Pnt) –
Return type: void
- Find an existing, or create an empty, Position. the Position attribute is returned.
Parameters: aLabel (TDF_Label &) – Return type: Handle_TDataXtd_Position
-
thisown
¶ The membership flag
-
static
-
TDataXtd_Position_Get
()¶ - Search label <aLabel) for the TDataXtd_Position attribute and get its position if found returns True
Parameters: - aLabel (TDF_Label &) –
- aPos (gp_Pnt) –
Return type:
-
TDataXtd_Position_GetID
()¶ - Returns the ID of the attribute.
Return type: Standard_GUID
-
TDataXtd_Position_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Position¶ - Create if not found the TDataXtd_Position attribute set its position to <aPos>
Parameters: - aLabel (TDF_Label &) –
- aPos (gp_Pnt) –
Return type: void
- Find an existing, or create an empty, Position. the Position attribute is returned.
Parameters: aLabel (TDF_Label &) – Return type: Handle_TDataXtd_Position
-
class
TDataXtd_Shape
(*args)¶ Bases:
OCC.TDF.TDF_Attribute
Return type: None -
DumpToString
()¶ TDataXtd_Shape_DumpToString(TDataXtd_Shape self) -> std::string
-
static
Find
()¶ - class methods ============= try to retrieve a Shape attribute at <current> label or in fathers label of <current>. Returns True if found and set <S>.
Parameters: - current (TDF_Label &) –
- S (Handle_TDataXtd_Shape &) –
Return type:
-
static
Get
()¶ - the Shape from associated NamedShape attribute is returned.
Parameters: label (TDF_Label &) – Return type: TopoDS_Shape
-
GetHandle
()¶
-
static
GetID
()¶ - Shape methods ============
Return type: Standard_GUID
-
static
New
(*args) → OCC.TDataXtd.Handle_TDataXtd_Shape¶ - Find, or create, a Shape attribute. the Shape attribute is returned. Raises if <label> has attribute.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Shape
-
static
Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Shape¶ - Create or update associated NamedShape attribute. the Shape attribute is returned.
Parameters: - label (TDF_Label &) –
- shape (TopoDS_Shape &) –
Return type:
-
thisown
¶ The membership flag
-
-
TDataXtd_Shape_Find
()¶ - class methods ============= try to retrieve a Shape attribute at <current> label or in fathers label of <current>. Returns True if found and set <S>.
Parameters: - current (TDF_Label &) –
- S (Handle_TDataXtd_Shape &) –
Return type:
-
TDataXtd_Shape_Get
()¶ - the Shape from associated NamedShape attribute is returned.
Parameters: label (TDF_Label &) – Return type: TopoDS_Shape
-
TDataXtd_Shape_GetID
()¶ - Shape methods ============
Return type: Standard_GUID
-
TDataXtd_Shape_New
(*args) → OCC.TDataXtd.Handle_TDataXtd_Shape¶ - Find, or create, a Shape attribute. the Shape attribute is returned. Raises if <label> has attribute.
Parameters: label (TDF_Label &) – Return type: Handle_TDataXtd_Shape
-
TDataXtd_Shape_Set
(*args) → OCC.TDataXtd.Handle_TDataXtd_Shape¶ - Create or update associated NamedShape attribute. the Shape attribute is returned.
Parameters: - label (TDF_Label &) –
- shape (TopoDS_Shape &) –
Return type:
-
new_instancemethod
(func, inst, cls)¶
-
register_handle
(handle, base_object)¶ Inserts the handle into the base object to prevent memory corruption in certain cases
-
class
tdataxtd
¶ Bases:
object
-
static
IDList
()¶ - Appends to <anIDList> the list of the attributes IDs of this package. CAUTION: <anIDList> is NOT cleared before use. Print of TDataExt enumeration =============================
Parameters: anIDList (TDF_IDList &) – Return type: void
-
static
Print
()¶ - Prints the name of the geometry dimension <GEO> as a String on the Stream <S> and returns <S>.
Parameters: - GEO (TDataXtd_GeometryEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the constraint <CTR> as a String on the Stream <S> and returns <S>.
Parameters: - CTR (TDataXtd_ConstraintEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream
-
thisown
¶ The membership flag
-
static
-
tdataxtd_IDList
()¶ - Appends to <anIDList> the list of the attributes IDs of this package. CAUTION: <anIDList> is NOT cleared before use. Print of TDataExt enumeration =============================
Parameters: anIDList (TDF_IDList &) – Return type: void
-
tdataxtd_Print
()¶ - Prints the name of the geometry dimension <GEO> as a String on the Stream <S> and returns <S>.
Parameters: - GEO (TDataXtd_GeometryEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream
- Prints the name of the constraint <CTR> as a String on the Stream <S> and returns <S>.
Parameters: - CTR (TDataXtd_ConstraintEnum) –
- S (Standard_OStream &) –
Return type: Standard_OStream