TDataStd
OCCT package TDataStd: TDataStd, TDataStd_AsciiString, TDataStd_BooleanArray, TDataStd_BooleanList, and 39 more bound classes.
TDataStd
This package defines standard attributes for modelling. These allow you to create and modify labels and attributes for many basic data types. Standard topological and visualization attributes have also been created. To find an attribute attached to a specific label, you use the GUID of the type of attribute you are looking for.
To do this, first find this information using the method GetID as follows: Standard_GUID anID = MyAttributeClass::GetID(); Then, use the method Find for the label as follows: bool HasAttribute = aLabel.Find(anID,anAttribute); Note For information on the relations between this component of OCAF and the others, refer to the OCAF User's Guide.
Constructors(1)
Static methods(1)
- IDList(anIDList: NCollection_List_Standard_GUID): void
Appends to <anIDList> the list of the attributes IDs of this package. CAUTION: <anIDList> is NOT cleared before use.
Parameters (1)anIDList—Mutated in place; read the updated value from this argument after the call.
TDataStd_AsciiString
Used to define an AsciiString attribute containing a TCollection_AsciiString.
Constructors(1)
Static methods(5)
class methods
Returns the GUID of the attribute.- Set(label: TDF_Label, string_: TCollection_AsciiString): TDataStd_AsciiString
Finds, or creates an AsciiString attribute and sets the string. the AsciiString attribute is returned.
AsciiString methodsParameters (2)labelstring_
- Set(label: TDF_Label, guid: Standard_GUID, string_: TCollection_AsciiString): TDataStd_AsciiString
Finds, or creates, an AsciiString attribute with explicit user defined <guid> and sets <string>. The Name attribute is returned.
Parameters (3)labelguidstring_
- get_type_name(): string
Instance methods(10)
- Set(S: TCollection_AsciiString): voidParameters (1)
S
- SetID(argNo0: Standard_GUID): void
Sets the explicit user defined GUID to the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- IsEmpty(): boolean
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_BooleanArray
An array of boolean values.
Constructors(1)
Static methods(5)
Static methods
Returns an ID for array.- Set(label: TDF_Label, lower: number, upper: number): TDataStd_BooleanArray
Finds or creates an attribute with internal boolean array.
Parameters (3)labellowerupper
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number): TDataStd_BooleanArray
Finds or creates an attribute with the array using explicit user defined <guid>.
Parameters (4)labeltheGuidlowerupper
- get_type_name(): string
Instance methods(15)
- Init(lower: number, upper: number): void
Initialize the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
- SetValue(index: number, value: boolean): void
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)indexvalue
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Value(Index: number): boolean
Return the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Returns the lower boundary of the array.
- Upper(): number
Returns the upper boundary of the array.
- Length(): number
Returns the number of elements in the array.
- InternalArray(): TColStd_HArray1OfByte
- SetInternalArray(values: TColStd_HArray1OfByte): voidParameters (1)
values
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_BooleanList
Contains a list of bolleans.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the list of booleans attribute.- Set(label: TDF_Label): TDataStd_BooleanList
Finds or creates a list of boolean values attribute.
Parameters (1)label
- Set(label: TDF_Label, theGuid: Standard_GUID): TDataStd_BooleanList
Finds or creates a list of boolean values attribute with explicit user defined <guid>.
Parameters (2)labeltheGuid
- get_type_name(): string
Instance methods(18)
- IsEmpty(): boolean
- Extent(): number
- Prepend(value: boolean): voidParameters (1)
value
- Append(value: boolean): voidParameters (1)
value
- Clear(): void
- First(): boolean
- Last(): boolean
- List(): TDataStd_ListOfByte
1 - means TRUE, 0 - means FALSE.
- InsertBefore(index: number, before_value: boolean): boolean
Inserts the before the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexbefore_value
- InsertAfter(index: number, after_value: boolean): boolean
Inserts the after the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexafter_value
- Remove(index: number): boolean
Removes a value at <index> position.
Parameters (1)index
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_ByteArray
An array of Byte (unsigned char) values.
Constructors(1)
Static methods(5)
- get_type_name(): string
Static methods
Returns an ID for array.- Set(label: TDF_Label, lower: number, upper: number, isDelta: boolean): TDataStd_ByteArray
Finds or creates an attribute with the array on the specified label. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, all input parameters are refused and the found attribute is returned.
Parameters (4)labellowerupperisDelta
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number, isDelta: boolean): TDataStd_ByteArray
Finds or creates an attribute with byte array and explicit user defined <guid> on the specified label.
Parameters (5)labeltheGuidlowerupperisDelta
Instance methods(19)
- Init(lower: number, upper: number): void
Initialize the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
- SetValue(index: number, value: number): void
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)indexvalue
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Value(Index: number): number
Return the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Returns the lower boundary of the array.
- Upper(): number
Returns the upper boundary of the array.
- Length(): number
Returns the number of elements in the array.
- InternalArray(): TColStd_HArray1OfByte
- ChangeArray(newArray: TColStd_HArray1OfByte, isCheckItems?: boolean): void
Sets the inner array <myValue> of the attribute to <newArray>. If value of <newArray> differs from <myValue>, Backup performed and myValue refers to new instance of HArray1OfInteger that holds <newArray> values. If <isCheckItems> equal True each item of <newArray> will be checked with each item of <myValue> for coincidence (to avoid backup).
Parameters (2)newArrayisCheckItems
- GetDelta(): boolean
- SetDelta(isDelta: boolean): void
for internal use only!
Parameters (1)isDelta
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- DeltaOnModification(anOldAttribute: TDF_Attribute): TDF_DeltaOnModification
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)anOldAttribute
- DeltaOnModification(aDelta: TDF_DeltaOnModification): void
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)aDelta
TDataStd_ChildNodeIterator
Iterates on the ChildStepren step of a step, at the first level only. It is possible to ask the iterator to explore all the sub step levels of the given one, with the option "allLevels".
Constructors(2)
Creates an empty iterator.
- constructor(aTreeNode: TDataStd_TreeNode, allLevels?: boolean): TDataStd_ChildNodeIterator
Iterates on the ChildStepren of the given Step. If <allLevels> option is set to true, it explores not only the first, but all the sub Step levels.
Parameters (2)aTreeNodeallLevels
Instance methods(5)
- Initialize(aTreeNode: TDataStd_TreeNode, allLevels?: boolean): void
Initializes the iteration on the Children Step of the given Step. If <allLevels> option is set to true, it explores not only the first, but all the sub Step levels.
Parameters (2)aTreeNodeallLevels
- More(): boolean
Returns True if there is a current Item in the iteration.
- Next(): void
Move to the next Item.
- NextBrother(): void
Move to the next Brother. If there is none, go up etc. This method is interesting only with "allLevels" behavior, because it avoids to explore the current Step ChildStepren.
Returns the current item; a null Step if there is no one.
TDataStd_Comment
Comment attribute. may be associated to any label to store user comment.
Constructors(1)
Static methods(5)
class methods
Returns the GUID for comments.- Set(label: TDF_Label): TDataStd_Comment
Find, or create a Comment attribute. the Comment attribute is returned.
Parameters (1)label
- Set(label: TDF_Label, string_: TCollection_ExtendedString): TDataStd_Comment
Finds, or creates a Comment attribute and sets the string. the Comment attribute is returned.
Comment methodsParameters (2)labelstring_
- get_type_name(): string
Instance methods(5)
- Set(S: TCollection_ExtendedString): void
Sets as name. Raises if is not a valid name.
Parameters (1)S
- SetID(argNo0: Standard_GUID): void
Sets the explicit user defined GUID to the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
TDataStd_Current
this attribute, located at root label, manage an access to a current label.
Constructors(1)
Static methods(6)
class methods
Set <L> as current of <L> Framework.
Parameters (1)L
returns current of <acces> Framework. raise if (!Has)
Parameters (1)acces
returns True if a current label is managed in <acces> Framework.
class methodsParameters (1)acces
- get_type_name(): string
Instance methods(7)
- Parameters (1)
current
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_DeltaOnModificationOfByteArray
This class provides default services for an AttributeDelta on a MODIFICATION action.
Constructors(1)
Initializes a
TDF_DeltaOnModification.Parameters (1)Arr
Static methods(2)
- get_type_name(): string
Instance methods(2)
- Apply(): void
Applies the delta to the attribute.
TDataStd_DeltaOnModificationOfExtStringArray
This class provides default services for an AttributeDelta on a MODIFICATION action.
Constructors(1)
Initializes a
TDF_DeltaOnModification.Parameters (1)Arr
Static methods(2)
- get_type_name(): string
Instance methods(2)
- Apply(): void
Applies the delta to the attribute.
TDataStd_DeltaOnModificationOfIntArray
This class provides default services for an AttributeDelta on a MODIFICATION action.
Constructors(1)
Initializes a
TDF_DeltaOnModification.Parameters (1)Arr
Static methods(2)
- get_type_name(): string
Instance methods(2)
- Apply(): void
Applies the delta to the attribute.
TDataStd_DeltaOnModificationOfIntPackedMap
This class provides default services for an AttributeDelta on a MODIFICATION action.
Constructors(1)
Initializes a
TDF_DeltaOnModification.Parameters (1)Arr
Static methods(2)
- get_type_name(): string
Instance methods(2)
- Apply(): void
Applies the delta to the attribute.
TDataStd_DeltaOnModificationOfRealArray
This class provides default services for an AttributeDelta on a MODIFICATION action.
Constructors(1)
Initializes a
TDF_DeltaOnModification.Parameters (1)Arr
Static methods(2)
- get_type_name(): string
Instance methods(2)
- Apply(): void
Applies the delta to the attribute.
TDataStd_Directory
Associates a directory in the data framework with a TDataStd_TagSource attribute. You can create a new directory label and add sub-directory or object labels to it,.
Constructors(1)
Static methods(7)
- Find(current: TDF_Label): { returnValue: boolean; D: TDataStd_Directory; [Symbol.dispose](): void }
class methods
Searches for a directory attribute on the label current, or on one of the father labels of current. If a directory attribute is found, true is returned, and the attribute found is set as D.Parameters (1)current
ReturnsA result object with fields:
returnValue: the C++ return valueD: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- New(label: TDF_Label): TDataStd_Directory
Creates an empty Directory attribute, located at <label>. Raises if <label> has attribute.
Parameters (1)label
Creates a new sub-label and sets the sub-directory dir on that label.
Parameters (1)dir
Makes new label and returns it to insert other object attributes (sketch,part...etc...).
Parameters (1)dir
Directory methods
- get_type_name(): string
Instance methods(3)
- ID(): Standard_GUID
Returns the ID of the attribute.
TDataStd_Expression
Expression attribute.
- Data Structure of the Expression is stored in a string and references to variables used by the string
Warning: To be consistent, each Variable referenced by the expression must have its equivalent in the string
Constructors(1)
Static methods(4)
class methods
- Set(label: TDF_Label): TDataStd_Expression
Find, or create, an Expression attribute.
ExpressionmethodsParameters (1)label
- get_type_name(): string
Instance methods(9)
build and return the expression name
- SetExpression(E: TCollection_ExtendedString): voidParameters (1)
E
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_ExtStringArray
ExtStringArray Attribute. Handles an array of UNICODE strings (represented by the TCollection_ExtendedString class).
Constructors(1)
Static methods(5)
- get_type_name(): string
class methods
Returns the GUID for the attribute.- Set(label: TDF_Label, lower: number, upper: number, isDelta: boolean): TDataStd_ExtStringArray
Finds, or creates, an ExtStringArray attribute with <lower> and <upper> bounds on the specified label. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, all input parameters are refused and the found attribute is returned.
Parameters (4)labellowerupperisDelta
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number, isDelta: boolean): TDataStd_ExtStringArray
Finds, or creates, an ExtStringArray attribute with explicit user defined <guid>. The ExtStringArray attribute is returned.
Parameters (5)labeltheGuidlowerupperisDelta
Instance methods(19)
- Init(lower: number, upper: number): void
Initializes the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
- SetValue(Index: number, Value: TCollection_ExtendedString): void
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)IndexValue
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Value(Index: number): TCollection_ExtendedString
Returns the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Return the lower bound.
- Upper(): number
Return the upper bound.
- Length(): number
Return the number of elements of <me>.
- ChangeArray(newArray: NCollection_HArray1_TCollection_ExtendedString, isCheckItems?: boolean): void
Sets the inner array <myValue> of the ExtStringArray attribute to <newArray>. If value of <newArray> differs from <myValue>, Backup performed and myValue refers to new instance of HArray1OfExtendedString that holds <newArray> values If <isCheckItems> equal True each item of <newArray> will be checked with each item of <myValue> for coincidence (to avoid backup).
Parameters (2)newArrayisCheckItems
Return the inner array of the ExtStringArray attribute.
- GetDelta(): boolean
- SetDelta(isDelta: boolean): void
for internal use only!
Parameters (1)isDelta
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- DeltaOnModification(anOldAttribute: TDF_Attribute): TDF_DeltaOnModification
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)anOldAttribute
- DeltaOnModification(aDelta: TDF_DeltaOnModification): void
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)aDelta
TDataStd_ExtStringList
Contains a list of ExtendedString.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the list of strings attribute.- Set(label: TDF_Label): TDataStd_ExtStringList
Finds or creates a list of string values attribute with explicit user defined <guid>.
Parameters (1)label
- Set(label: TDF_Label, theGuid: Standard_GUID): TDataStd_ExtStringList
Finds or creates a list of string values attribute.
Parameters (2)labeltheGuid
- get_type_name(): string
Instance methods(21)
- IsEmpty(): boolean
- Extent(): number
- Prepend(value: TCollection_ExtendedString): voidParameters (1)
value
- Append(value: TCollection_ExtendedString): voidParameters (1)
value
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- InsertBefore(value: TCollection_ExtendedString, before_value: TCollection_ExtendedString): boolean
Inserts the before the first meet of <before_value>.
Parameters (2)valuebefore_value
- InsertBefore(index: number, before_value: TCollection_ExtendedString): boolean
Inserts the before the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexbefore_value
- InsertAfter(value: TCollection_ExtendedString, after_value: TCollection_ExtendedString): boolean
Inserts the after the first meet of <after_value>.
Parameters (2)valueafter_value
- InsertAfter(index: number, after_value: TCollection_ExtendedString): boolean
Inserts the after the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexafter_value
- Remove(value: TCollection_ExtendedString): boolean
Removes the first meet of the .
Parameters (1)value
- Remove(index: number): boolean
Removes a value at <index> position.
Parameters (1)index
- Clear(): void
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_GenericEmpty
An ancestor attribute for all attributes which have no fields. If an attribute inherits this one it should not have drivers for persistence.
Static methods(2)
- get_type_name(): string
Instance methods(3)
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_GenericExtString
An ancestor attribute for all attributes which have TCollection_ExtendedString field. If an attribute inherits this one it should not have drivers for persistence. Also this attribute provides functionality to have on the same label same attributes with different IDs.
Static methods(2)
- get_type_name(): string
Instance methods(8)
- Set(S: TCollection_ExtendedString): void
Sets as name. Raises if is not a valid name.
Parameters (1)S
- SetID(argNo0: Standard_GUID): void
Sets the explicit user defined GUID to the attribute.
Parameters (1)argNo0
- SetID(): void
Sets the explicit user defined GUID to the attribute.
Returns the name contained in this name attribute.
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_HDataMapOfStringByte
Extension of NCollection_DataMap<TCollection_ExtendedString, uint8_t> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringByteParameters (1)
NbBuckets
- constructor(theOther: any): TDataStd_HDataMapOfStringByteParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_HDataMapOfStringHArray1OfInteger
Extension of NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<int>>> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringHArray1OfIntegerParameters (1)
NbBuckets
- constructor(theOther: NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_int): TDataStd_HDataMapOfStringHArray1OfIntegerParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_HDataMapOfStringHArray1OfReal
Extension of NCollection_DataMap<TCollection_ExtendedString, occ::handle<NCollection_HArray1<double>>> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringHArray1OfRealParameters (1)
NbBuckets
- constructor(theOther: NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_double): TDataStd_HDataMapOfStringHArray1OfRealParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_HDataMapOfStringInteger
Extension of NCollection_DataMap<TCollection_ExtendedString, int> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringIntegerParameters (1)
NbBuckets
- constructor(theOther: NCollection_DataMap_TCollection_ExtendedString_int): TDataStd_HDataMapOfStringIntegerParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_HDataMapOfStringReal
Extension of NCollection_DataMap<TCollection_ExtendedString, double> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringRealParameters (1)
NbBuckets
- constructor(theOther: NCollection_DataMap_TCollection_ExtendedString_double): TDataStd_HDataMapOfStringRealParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_HDataMapOfStringString
Extension of NCollection_DataMap<TCollection_ExtendedString, TCollection_ExtendedString> class to be manipulated by handle.
Constructors(2)
- constructor(NbBuckets?: number): TDataStd_HDataMapOfStringStringParameters (1)
NbBuckets
- constructor(theOther: NCollection_DataMap_TCollection_ExtendedString_TCollection_ExtendedString): TDataStd_HDataMapOfStringStringParameters (1)
theOther
Static methods(2)
- get_type_name(): string
Instance methods(3)
TDataStd_Integer
The basis to define an integer attribute.
Constructors(1)
Static methods(5)
class methods
Returns the GUID for integers.- Set(label: TDF_Label, value: number): TDataStd_Integer
Finds, or creates, an Integer attribute and sets the Integer attribute is returned.
Parameters (2)labelvalue
- Set(label: TDF_Label, guid: Standard_GUID, value: number): TDataStd_Integer
Finds, or creates, an Integer attribute with explicit user defined <guid> and sets . The Integer attribute is returned.
Parameters (3)labelguidvalue
- get_type_name(): string
Instance methods(10)
- Set(V: number): void
Integer methods
Parameters (1)V
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Get(): number
Returns the integer value contained in the attribute.
- IsCaptured(): boolean
Returns True if there is a reference on the same label.
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_IntegerArray
Contains an array of integers.
Constructors(1)
Static methods(5)
- get_type_name(): string
class methods
Returns the GUID for arrays of integers.- Set(label: TDF_Label, lower: number, upper: number, isDelta: boolean): TDataStd_IntegerArray
Finds or creates on the <label> an integer array attribute with the specified <lower> and <upper> boundaries. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, all input parameters are refused and the found attribute is returned.
Parameters (4)labellowerupperisDelta
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number, isDelta: boolean): TDataStd_IntegerArray
Finds, or creates, an IntegerArray attribute with explicit user defined <guid>. The IntegerArray attribute is returned.
Parameters (5)labeltheGuidlowerupperisDelta
Instance methods(19)
- Init(lower: number, upper: number): void
Initialize the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
- SetValue(Index: number, Value: number): void
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)IndexValue
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Value(Index: number): number
Return the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Returns the lower boundary of this array of integers.
- Upper(): number
Return the upper boundary of this array of integers.
- Length(): number
Returns the length of this array of integers in terms of the number of elements it contains.
- ChangeArray(newArray: NCollection_HArray1_int, isCheckItems?: boolean): void
Sets the inner array <myValue> of the IntegerArray attribute to <newArray>. If value of <newArray> differs from <myValue>, Backup performed and myValue refers to new instance of HArray1OfInteger that holds <newArray> values If <isCheckItems> equal True each item of <newArray> will be checked with each item of <myValue> for coincidence (to avoid backup).
Parameters (2)newArrayisCheckItems
Return the inner array of the IntegerArray attribute.
- GetDelta(): boolean
- SetDelta(isDelta: boolean): void
for internal use only!
Parameters (1)isDelta
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
Note. Uses inside
ChangeArray()method.Parameters (2)intoAttributeaRelocationTable
- DeltaOnModification(anOldAttribute: TDF_Attribute): TDF_DeltaOnModification
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)anOldAttribute
- DeltaOnModification(aDelta: TDF_DeltaOnModification): void
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)aDelta
TDataStd_IntegerList
Contains a list of integers.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the list of integer attribute.- Set(label: TDF_Label): TDataStd_IntegerList
Finds or creates a list of integer values attribute.
Parameters (1)label
- Set(label: TDF_Label, theGuid: Standard_GUID): TDataStd_IntegerList
Finds or creates a list of integer values attribute with explicit user defined <guid>.
Parameters (2)labeltheGuid
- get_type_name(): string
Instance methods(21)
- IsEmpty(): boolean
- Extent(): number
- Prepend(value: number): voidParameters (1)
value
- Append(value: number): voidParameters (1)
value
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- InsertBefore(value: number, before_value: number): boolean
Inserts the before the first meet of <before_value>.
Parameters (2)valuebefore_value
- InsertBeforeByIndex(index: number, before_value: number): boolean
Inserts the before the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexbefore_value
- InsertAfter(value: number, after_value: number): boolean
Inserts the after the first meet of <after_value>.
Parameters (2)valueafter_value
- InsertAfterByIndex(index: number, after_value: number): boolean
Inserts the after the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexafter_value
- Remove(value: number): boolean
Removes the first meet of the .
Parameters (1)value
- RemoveByIndex(index: number): boolean
Removes a value at <index> position.
Parameters (1)index
- Clear(): void
- First(): number
- Last(): number
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_IntPackedMap
Attribute for storing TColStd_PackedMapOfInteger.
Constructors(1)
Static methods(4)
- get_type_name(): string
class methods
Returns the GUID of the attribute.- Set(label: TDF_Label, isDelta?: boolean): TDataStd_IntPackedMap
Finds or creates an integer map attribute on the given label. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, input parameter <isDelta> is refused and the found attribute returned.
Attribute methodsParameters (2)labelisDelta
Instance methods(19)
- ChangeMap(theMap: TColStd_HPackedMapOfInteger): booleanParameters (1)
theMap
- ChangeMap(theMap: TColStd_PackedMapOfInteger): booleanParameters (1)
theMap
- GetMap(): TColStd_PackedMapOfInteger
- Clear(): boolean
- Add(theKey: number): booleanParameters (1)
theKey
- Remove(theKey: number): booleanParameters (1)
theKey
- Contains(theKey: number): booleanParameters (1)
theKey
- Extent(): number
- IsEmpty(): boolean
- GetDelta(): boolean
- SetDelta(isDelta: boolean): void
for internal use only!
Parameters (1)isDelta
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- DeltaOnModification(anOldAttribute: TDF_Attribute): TDF_DeltaOnModification
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)anOldAttribute
- DeltaOnModification(aDelta: TDF_DeltaOnModification): void
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)aDelta
TDataStd_Name
Used to define a name attribute containing a string which specifies the name.
Constructors(1)
Static methods(5)
class methods working on the name itself
Returns the GUID for name attributes.- Set(label: TDF_Label, string_: TCollection_ExtendedString): TDataStd_Name
Creates (if does not exist) and sets the name in the name attribute. from any label <L> search in father labels (L is not concerned) the first name attribute. if found set it in <father>.
class methods working on the name tree
Search in the wholeTDF_Datathe Name attribute which fit with <fullPath>. Returns True if found. Search under <currentLabel> a label which fit with <name>. Returns True if found. Shortcut which avoids building a ListOfExtendedStrin. Search in the wholeTDF_Datathe label which fit with name Returns True if found.
tools methods to translate path <-> pathlist
move to draw For Draw test we may provide this tool method which convert a path in a sequence of string to call after the FindLabel methods. Example: if it's given "Assembly:Part_1:Sketch_5" it will return in <pathlist> the list of 3 strings: "Assembly","Part_1","Sketch_5". move to draw from <pathlist> build the string path
Name methodsParameters (2)labelstring_
- Set(label: TDF_Label, guid: Standard_GUID, string_: TCollection_ExtendedString): TDataStd_Name
Finds, or creates, a Name attribute with explicit user defined <guid> and sets <string>. The Name attribute is returned.
Parameters (3)labelguidstring_
- get_type_name(): string
Instance methods(5)
- Set(S: TCollection_ExtendedString): void
Sets as name. Raises if is not a valid name.
Parameters (1)S
- SetID(argNo0: Standard_GUID): void
Sets the explicit user defined GUID to the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
TDataStd_NamedData
Contains a named data.
Constructors(1)
Empty constructor.
Static methods(4)
Returns the ID of the named data attribute.
- Set(label: TDF_Label): TDataStd_NamedData
Finds or creates a named data attribute.
Parameters (1)label
- get_type_name(): string
Instance methods(52)
- HasIntegers(): boolean
Returns true if at least one named integer value is kept in the attribute.
- HasInteger(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains specified by Name integer value.
Parameters (1)theName
- GetInteger(theName: TCollection_ExtendedString): number
Returns the integer value specified by the Name. It returns 0 if internal map doesn't contain the specified integer (use
HasInteger()to check before).Parameters (1)theName
- SetInteger(theName: TCollection_ExtendedString, theInteger: number): void
Defines a named integer. If the integer already exists, it changes its value to <theInteger>.
Parameters (2)theNametheInteger
Returns the internal container of named integers.
- ChangeIntegers(theIntegers: NCollection_DataMap_TCollection_ExtendedString_int): void
Replace the container content by new content of the <theIntegers>.
Parameters (1)theIntegers
- HasReals(): boolean
Returns true if at least one named real value is kept in the attribute.
- HasReal(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains a real specified by Name.
Parameters (1)theName
- GetReal(theName: TCollection_ExtendedString): number
Returns the named real. It returns 0.0 if there is no such a named real (use
HasReal()).Parameters (1)theName
- SetReal(theName: TCollection_ExtendedString, theReal: number): void
Defines a named real. If the real already exists, it changes its value to <theReal>.
Parameters (2)theNametheReal
Returns the internal container of named reals.
- ChangeReals(theReals: NCollection_DataMap_TCollection_ExtendedString_double): void
Replace the container content by new content of the <theReals>.
Parameters (1)theReals
- HasStrings(): boolean
Returns true if there are some named strings in the attribute.
- HasString(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains this named string.
Parameters (1)theName
Returns the named string. It returns an empty string if there is no such a named string (use
HasString()).Parameters (1)theName
- SetString(theName: TCollection_ExtendedString, theString: TCollection_ExtendedString): void
Defines a named string. If the string already exists, it changes its value to <theString>.
Parameters (2)theNametheString
Returns the internal container of named strings.
- ChangeStrings(theStrings: NCollection_DataMap_TCollection_ExtendedString_TCollection_ExtendedString): void
Replace the container content by new content of the <theStrings>.
Parameters (1)theStrings
- HasBytes(): boolean
Returns true if there are some named bytes in the attribute.
- HasByte(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains this named byte.
Parameters (1)theName
- GetByte(theName: TCollection_ExtendedString): number
Returns the named byte. It returns 0 if there is no such a named byte (use
HasByte()).Parameters (1)theName
- SetByte(theName: TCollection_ExtendedString, theByte: number): void
Defines a named byte. If the byte already exists, it changes its value to <theByte>.
Parameters (2)theNametheByte
- GetBytesContainer(): any
Returns the internal container of named bytes.
- ChangeBytes(theBytes: any): void
Replace the container content by new content of the <theBytes>.
Parameters (1)theBytes
- HasArraysOfIntegers(): boolean
Returns true if there are some named arrays of integer values in the attribute.
- HasArrayOfIntegers(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains this named array of integer values.
Parameters (1)theName
Returns the named array of integer values. It returns a NULL Handle if there is no such a named array of integers (use
HasArrayOfIntegers()).Parameters (1)theName
- SetArrayOfIntegers(theName: TCollection_ExtendedString, theArrayOfIntegers: NCollection_HArray1_int): void
Defines a named array of integer values.
Parameters (2)theName—keytheArrayOfIntegers—new value, overrides existing (passed array will be copied by value!)
- GetArraysOfIntegersContainer(): NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_int
Returns the internal container of named arrays of integer values.
- ChangeArraysOfIntegers(theArraysOfIntegers: NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_int): void
Replace the container content by new content of the <theArraysOfIntegers>.
Parameters (1)theArraysOfIntegers
- HasArraysOfReals(): boolean
Returns true if there are some named arrays of real values in the attribute.
- HasArrayOfReals(theName: TCollection_ExtendedString): boolean
Returns true if the attribute contains this named array of real values.
Parameters (1)theName
Returns the named array of real values. It returns a NULL Handle if there is no such a named array of reals (use
HasArrayOfReals()).Parameters (1)theName
- SetArrayOfReals(theName: TCollection_ExtendedString, theArrayOfReals: NCollection_HArray1_double): void
Defines a named array of real values.
Parameters (2)theName—keytheArrayOfReals—new value, overrides existing (passed array will be copied by value!)
- GetArraysOfRealsContainer(): NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_double
Returns the internal container of named arrays of real values.
- ChangeArraysOfReals(theArraysOfReals: NCollection_DataMap_TCollection_ExtendedString_handle_NCollection_HArray1_double): void
Replace the container content by new content of the <theArraysOfReals>.
Parameters (1)theArraysOfReals
- Clear(): void
Clear data.
- HasDeferredData(): boolean
- LoadDeferredData(theToKeepDeferred?: boolean): booleanParameters (1)
theToKeepDeferred
- UnloadDeferredData(): boolean
- clear(): void
- setInteger(theName: TCollection_ExtendedString, theInteger: number): voidParameters (2)
theNametheInteger
- setReal(theName: TCollection_ExtendedString, theReal: number): voidParameters (2)
theNametheReal
- setString(theName: TCollection_ExtendedString, theString: TCollection_ExtendedString): voidParameters (2)
theNametheString
- setByte(theName: TCollection_ExtendedString, theByte: number): voidParameters (2)
theNametheByte
- setArrayOfIntegers(theName: TCollection_ExtendedString, theArrayOfIntegers: NCollection_HArray1_int): voidParameters (2)
theNametheArrayOfIntegers
- setArrayOfReals(theName: TCollection_ExtendedString, theArrayOfReals: NCollection_HArray1_double): voidParameters (2)
theNametheArrayOfReals
- ID(): Standard_GUID
- Restore(anAttribute: TDF_Attribute): voidParameters (1)
anAttribute
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): voidParameters (2)
intoAttributeaRelocationTable
TDataStd_NoteBook
NoteBook Object attribute.
Constructors(1)
Static methods(5)
- Find(current: TDF_Label): { returnValue: boolean; N: TDataStd_NoteBook; [Symbol.dispose](): void }
class methods
try to retrieve a NoteBook attribute at <current> label or in fathers label of <current>. Returns True if found and set <N>.Parameters (1)current
ReturnsA result object with fields:
returnValue: the C++ return valueN: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
- New(label: TDF_Label): TDataStd_NoteBook
Create an enpty NoteBook attribute, located at <label>. Raises if <label> has attribute.
Parameters (1)label
NoteBook methods
- get_type_name(): string
Instance methods(5)
- Append(value: number, isExported: boolean): TDataStd_Real
Tool to Create an Integer attribute from , Insert it in a new son label of <me>. The Real attribute is returned.
Parameters (2)valueisExported
- Append(value: number, isExported: boolean): TDataStd_Integer
Tool to Create an Real attribute from , Insert it in a new son label of <me>. The Integer attribute is returned.
Parameters (2)valueisExported
- ID(): Standard_GUID
Returns the ID of the attribute.
TDataStd_Real
The basis to define a real number attribute.
Constructors(1)
Static methods(5)
class methods
Returns the default GUID for real numbers.- Set(label: TDF_Label, value: number): TDataStd_Real
Finds, or creates, a Real attribute with default GUID and sets . The Real attribute is returned. The Real dimension is Scalar by default. Use SetDimension to overwrite.
Real methodsParameters (2)labelvalue
- Set(label: TDF_Label, guid: Standard_GUID, value: number): TDataStd_Real
Finds, or creates, a Real attribute with explicit GUID and sets . The Real attribute is returned.
Real methodsParameters (3)labelguidvalue
- get_type_name(): string
Instance methods(12)
- Set(V: number): void
Sets the real number V.
Parameters (1)V
- SetDimension(DIM: TDataStd_RealEnum): void
Obsolete method that will be removed in next versions. This field is not supported in the persistence mechanism.
DeprecatedParameters (1)DIM
Obsolete method that will be removed in next versions. This field is not supported in the persistence mechanism.
Deprecated- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- Get(): number
Returns the real number value contained in the attribute.
- IsCaptured(): boolean
Returns True if there is a reference on the same label.
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_RealArray
A framework for an attribute composed of a real number array.
Constructors(1)
Static methods(5)
- get_type_name(): string
class methods
Returns the GUID for arrays of reals.- Set(label: TDF_Label, lower: number, upper: number, isDelta: boolean): TDataStd_RealArray
Finds or creates on the <label> a real array attribute with the specified <lower> and <upper> boundaries. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, input parameter <isDelta> is refused and the found attribute returned.
Parameters (4)labellowerupperisDelta
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number, isDelta: boolean): TDataStd_RealArray
Finds, or creates, an RealArray attribute with explicit user defined <guid>. The RealArray attribute is returned.
Parameters (5)labeltheGuidlowerupperisDelta
Instance methods(19)
- Init(lower: number, upper: number): void
Initialize the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- SetValue(Index: number, Value: number): void
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)IndexValue
- Value(Index: number): number
Return the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Returns the lower boundary of the array.
- Upper(): number
Returns the upper boundary of the array.
- Length(): number
Returns the number of elements of the array of reals in terms of the number of elements it contains.
- ChangeArray(newArray: NCollection_HArray1_double, isCheckItems?: boolean): void
Sets the inner array <myValue> of the RealArray attribute to <newArray>. If value of <newArray> differs from <myValue>, Backup performed and myValue refers to new instance of HArray1OfReal that holds <newArray> values If <isCheckItems> equal True each item of <newArray> will be checked with each item of <myValue> for coincidence (to avoid backup).
Parameters (2)newArrayisCheckItems
Returns the handle of this array of reals.
- GetDelta(): boolean
- SetDelta(isDelta: boolean): void
for internal use only!
Parameters (1)isDelta
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
Note. Uses inside
ChangeArray()method.Parameters (2)intoAttributeaRelocationTable
- DeltaOnModification(anOldAttribute: TDF_Attribute): TDF_DeltaOnModification
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)anOldAttribute
- DeltaOnModification(aDelta: TDF_DeltaOnModification): void
Makes a DeltaOnModification between <me> and <anOldAttribute>.
Parameters (1)aDelta
TDataStd_RealEnum
Properties(3)
TDataStd_RealList
Contains a list of doubles.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the list of doubles attribute.- Set(label: TDF_Label): TDataStd_RealList
Finds or creates a list of double values attribute.
Parameters (1)label
- Set(label: TDF_Label, theGuid: Standard_GUID): TDataStd_RealList
Finds or creates a list of double values attribute with explicit user defined <guid>.
Parameters (2)labeltheGuid
- get_type_name(): string
Instance methods(21)
- IsEmpty(): boolean
- Extent(): number
- Prepend(value: number): voidParameters (1)
value
- Append(value: number): voidParameters (1)
value
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- InsertBefore(value: number, before_value: number): boolean
Inserts the before the first meet of <before_value>.
Parameters (2)valuebefore_value
- InsertBeforeByIndex(index: number, before_value: number): boolean
Inserts the before the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexbefore_value
- InsertAfter(value: number, after_value: number): boolean
Inserts the after the first meet of <after_value>.
Parameters (2)valueafter_value
- InsertAfterByIndex(index: number, after_value: number): boolean
Inserts the after the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexafter_value
- Remove(value: number): boolean
Removes the first meet of the .
Parameters (1)value
- RemoveByIndex(index: number): boolean
Removes a value at <index> position.
Parameters (1)index
- Clear(): void
- First(): number
- Last(): number
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
TDataStd_ReferenceArray
Contains an array of references to the labels.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the array of references (labels) attribute.- Set(label: TDF_Label, lower: number, upper: number): TDataStd_ReferenceArray
Finds or creates an array of reference values (labels) attribute.
Parameters (3)labellowerupper
- Set(label: TDF_Label, theGuid: Standard_GUID, lower: number, upper: number): TDataStd_ReferenceArray
Finds or creates an array of reference values (labels) attribute with explicit user defined <guid>.
Parameters (4)labeltheGuidlowerupper
- get_type_name(): string
Instance methods(16)
- Init(lower: number, upper: number): void
Initialize the inner array with bounds from <lower> to <upper>.
Parameters (2)lowerupper
Sets the <Index>th element of the array to OutOfRange exception is raised if <Index> doesn't respect Lower and Upper bounds of the internal array.
Parameters (2)indexvalue
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
Returns the value of the <Index>th element of the array.
Parameters (1)Index
- Lower(): number
Returns the lower boundary of the array.
- Upper(): number
Returns the upper boundary of the array.
- Length(): number
Returns the number of elements in the array.
- SetInternalArray(values: NCollection_HArray1_TDF_Label, isCheckItems?: boolean): voidParameters (2)
valuesisCheckItems
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- References(aDataSet: TDF_DataSet): void
Adds the first level referenced attributes and labels to <aDataSet>.
For this, use the AddLabel or AddAttribute of DataSet.
If there is none, do not implement the method.Parameters (1)aDataSet
TDataStd_ReferenceList
Contains a list of references.
Constructors(1)
Static methods(5)
Static methods
Returns the ID of the list of references (labels) attribute.- Set(label: TDF_Label): TDataStd_ReferenceList
Finds or creates a list of reference values (labels) attribute.
Parameters (1)label
- Set(label: TDF_Label, theGuid: Standard_GUID): TDataStd_ReferenceList
Finds or creates a list of reference values (labels) attribute with explicit user defined <guid>.
Parameters (2)labeltheGuid
- get_type_name(): string
Instance methods(22)
- IsEmpty(): boolean
- Extent(): number
- Parameters (1)
value
- Parameters (1)
value
- SetID(argNo0: Standard_GUID): void
Sets the explicit GUID (user defined) for the attribute.
Parameters (1)argNo0
- SetID(): void
Sets default GUID for the attribute.
- InsertBefore(value: TDF_Label, before_value: TDF_Label): boolean
Inserts the before the first meet of <before_value>.
Parameters (2)valuebefore_value
- InsertBefore(index: number, before_value: TDF_Label): boolean
Inserts the label before the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexbefore_value
- InsertAfter(value: TDF_Label, after_value: TDF_Label): boolean
Inserts the after the first meet of <after_value>.
Parameters (2)valueafter_value
- InsertAfter(index: number, after_value: TDF_Label): boolean
Inserts the label after the <index> position. The indices start with 1 ..
Extent().Parameters (2)indexafter_value
Removes the first meet of the .
Parameters (1)value
- Remove(index: number): boolean
Removes a label at "index" position.
Parameters (1)index
- Clear(): void
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- References(aDataSet: TDF_DataSet): void
Adds the first level referenced attributes and labels to <aDataSet>.
For this, use the AddLabel or AddAttribute of DataSet.
If there is none, do not implement the method.Parameters (1)aDataSet
TDataStd_Relation
Relation attribute.
- Data Structure of the Expression is stored in a string and references to variables used by the string
Warning: To be consistent, each Variable referenced by the relation must have its equivalent in the string
Constructors(1)
Static methods(4)
class methods
- Set(label: TDF_Label): TDataStd_Relation
Find, or create, an Relation attribute.
Real methodsParameters (1)label
- get_type_name(): string
Instance methods(5)
- SetRelation(E: TCollection_ExtendedString): voidParameters (1)
E
- ID(): Standard_GUID
Returns the ID of the attribute.
TDataStd_Tick
Defines a boolean attribute. If it exists at a label - true, Otherwise - false.
Constructors(1)
Static methods(4)
Static methods
- Set(label: TDF_Label): TDataStd_Tick
Find, or create, a Tick attribute.
Tick methodsParameters (1)label
- get_type_name(): string
Instance methods(3)
- ID(): Standard_GUID
Returns the ID of the attribute.
TDataStd_TreeNode
Allows you to define an explicit tree of labels which you can also edit. Without this class, the data structure cannot be fully edited. This service is required if for presentation purposes, you want to create an application with a tree which allows you to organize and link data as a function of application features.
Constructors(1)
Static methods(6)
- Find(L: TDF_Label): { returnValue: boolean; T: TDataStd_TreeNode; [Symbol.dispose](): void }
class methods working on the node
Returns true if the tree node T is found on the label L. Otherwise, false is returned.Parameters (1)L
ReturnsA result object with fields:
returnValue: the C++ return valueT: owned by the returned envelope.
Dispose the returned envelope to release owned Handle fields.
Finds or Creates a TreeNode attribute on the label <L> with the default tree ID, returned by the method <GetDefaultTreeID>. Returns the created/found TreeNode attribute.
Parameters (1)L
- Set(L: TDF_Label, ExplicitTreeID: Standard_GUID): TDataStd_TreeNode
Finds or Creates a TreeNode attribute on the label <L>, with an explicit tree ID. <ExplicitTreeID> is the ID returned by <
TDF_Attribute::ID> method. Returns the found/created TreeNode attribute.Parameters (2)LExplicitTreeID
returns a default tree ID. this ID is used by the <Set> method without explicit tree ID.
Instance methods:- get_type_name(): string
Instance methods(41)
- Append(Child: TDataStd_TreeNode): boolean
Insert the TreeNode <Child> as last child of <me>. If the insertion is successful <me> becomes the Father of <Child>.
Parameters (1)Child
- Prepend(Child: TDataStd_TreeNode): boolean
Insert the the TreeNode <Child> as first child of <me>. If the insertion is successful <me> becomes the Father of <Child>.
Parameters (1)Child
- InsertBefore(Node: TDataStd_TreeNode): boolean
Inserts the TreeNode <Node> before <me>. If insertion is successful <me> and <Node> belongs to the same Father.
Parameters (1)Node
- InsertAfter(Node: TDataStd_TreeNode): boolean
Inserts the TreeNode <Node> after <me>. If insertion is successful <me> and <Node> belongs to the same Father.
Parameters (1)Node
- Remove(): boolean
Removes this tree node attribute from its father node. The result is that this attribute becomes a root node.
- Depth(): number
Returns the depth of this tree node in the overall tree node structure. In other words, the number of father tree nodes of this one is returned.
- NbChildren(allLevels?: boolean): number
Returns the number of child nodes. If <allLevels> is true, the method counts children of all levels (children of children ...).
Parameters (1)allLevels
- IsAscendant(of_: TDataStd_TreeNode): boolean
Returns true if this tree node attribute is an ascendant of of. In other words, if it is a father or the father of a father of of.
Parameters (1)of_
- IsDescendant(of_: TDataStd_TreeNode): boolean
Returns true if this tree node attribute is a descendant of of. In other words, if it is a child or the child of a child of of.
Parameters (1)of_
- IsRoot(): boolean
Returns true if this tree node attribute is the ultimate father in the tree.
Returns the ultimate father of this tree node attribute.
- IsFather(of_: TDataStd_TreeNode): boolean
Returns true if this tree node attribute is a father of of.
Parameters (1)of_
- IsChild(of_: TDataStd_TreeNode): boolean
Returns true if this tree node attribute is a child of of.
Parameters (1)of_
- HasFather(): boolean
Returns true if this tree node attribute has a father tree node.
Returns the father TreeNode of <me>. Null if root.
- HasNext(): boolean
Returns true if this tree node attribute has a next tree node.
Returns the next tree node in this tree node attribute. Warning This tree node is null if it is the last one in this tree node attribute.Returns the next TreeNode of <me>. Null if last.
- HasPrevious(): boolean
Returns true if this tree node attribute has a previous tree node.
Returns the previous tree node of this tree node attribute. Warning This tree node is null if it is the first one in this tree node attribute.
- HasFirst(): boolean
Returns true if this tree node attribute has a first child tree node.
Returns the first child tree node in this tree node object.
- HasLast(): boolean
Returns true if this tree node attribute has a last child tree node.
Returns the last child tree node in this tree node object.
Returns the last child tree node in this tree node object.
to set fields- SetTreeID(explicitID: Standard_GUID): voidParameters (1)
explicitID
- SetFather(F: TDataStd_TreeNode): voidParameters (1)
F
- SetNext(F: TDataStd_TreeNode): voidParameters (1)
F
- SetPrevious(F: TDataStd_TreeNode): voidParameters (1)
F
- SetFirst(F: TDataStd_TreeNode): voidParameters (1)
F
- SetLast(F: TDataStd_TreeNode): void
TreeNode callback:
Parameters (1)F
- AfterAddition(): void
Connect the TreeNode to its father child list.
- BeforeForget(): void
Disconnect the TreeNode from its Father child list.
- AfterResume(): void
Reconnect the TreeNode to its father child list.
- BeforeUndo(anAttDelta: TDF_AttributeDelta, forceIt?: boolean): boolean
Disconnect the TreeNode, if necessary.
Parameters (2)anAttDeltaforceIt
- AfterUndo(anAttDelta: TDF_AttributeDelta, forceIt?: boolean): boolean
Reconnect the TreeNode, if necessary.
Implementation of Attribute methods:Parameters (2)anAttDeltaforceIt
- ID(): Standard_GUID
Returns the tree ID (default or explicit one depending on the Set method used).
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- References(aDataSet: TDF_DataSet): void
Adds the first level referenced attributes and labels to <aDataSet>.
For this, use the AddLabel or AddAttribute of DataSet.
If there is none, do not implement the method.Parameters (1)aDataSet
TDataStd_UAttribute
Constructors(1)
Static methods(3)
- Set(label: TDF_Label, LocalID: Standard_GUID): TDataStd_UAttribute
api class methods
Find, or create, a UAttribute attribute with <LocalID> as Local GUID. The UAttribute attribute is returned.
UAttribute methodsParameters (2)labelLocalID
- get_type_name(): string
Instance methods(8)
- SetID(argNo0: Standard_GUID): void
Sets specific ID of the attribute (supports several attributes of one type at the same label feature).
Parameters (1)argNo0
- SetID(): void
Sets specific ID of the attribute (supports several attributes of one type at the same label feature).
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- References(aDataSet: TDF_DataSet): void
Adds the first level referenced attributes and labels to <aDataSet>.
For this, use the AddLabel or AddAttribute of DataSet.
If there is none, do not implement the method.Parameters (1)aDataSet
TDataStd_Variable
Variable attribute.
- A variable is associated to a
TDataStd_Real(which contains its current value) and aTDataStd_Nameattribute (which contains its name). It contains a constant flag, and a Unit - An expression may be assigned to a variable. In thatcase the expression is handled by the associated Expression Attribute and the Variable returns True to the method <IsAssigned>.
Constructors(1)
Static methods(4)
class methods
- Set(label: TDF_Label): TDataStd_Variable
Find, or create, a Variable attribute.
Real methodsParameters (1)label
- get_type_name(): string
Instance methods(22)
- Set(value: number): void
retrieve or create the associated real attribute and set the value .
Parameters (1)value
- Set(value: number, dimension: TDataStd_RealEnum): void
Find, or create, a Variable attribute.
Real methodsParameters (2)valuedimension
- Name(string_: TCollection_ExtendedString): void
set or change the name of the variable, in myUnknown and my associated Name attribute.
Parameters (1)string_
returns string stored in the associated Name attribute.
- IsValued(): boolean
returns True if a Real attribute is associated.
- Get(): number
returns value stored in associated Real attribute.
returns associated Real attribute.
- IsAssigned(): boolean
returns True if an Expression attribute is associated. create(if doesn't exist), set and returns the assigned expression attribute.
create(if doesn't exist) and returns the assigned expression attribute. fill it after.
- Desassign(): void
if <me> is assigned delete the associated expression attribute.
if <me> is assigned, returns associated Expression attribute.
- IsCaptured(): boolean
shortcut for <
Real()->IsCaptured()> - IsConstant(): boolean
A constant value is not modified by regeneration.
- Unit(unit: TCollection_AsciiString): voidParameters (1)
unit
to read/write fields
- Constant(status: boolean): void
if <status> is True, this variable will not be modified by the solver.
Parameters (1)status
- ID(): Standard_GUID
Returns the ID of the attribute.
- Restore(anAttribute: TDF_Attribute): void
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction.
Parameters (1)anAttribute
Returns an new empty attribute from the good end type. It is used by the copy algorithm.
- Paste(intoAttribute: TDF_Attribute, aRelocationTable: TDF_RelocationTable): void
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.Parameters (2)intoAttributeaRelocationTable
- References(aDataSet: TDF_DataSet): void
to export reference to the associated Name attribute.
Parameters (1)aDataSet