class
FieldData
FieldData represents multiple fields of data. Each field is implemented as an ValueArray object, that has a unique name, and can have complex components (such as scalars, vectors, quaternions, tensors or matrices). All fields are assumed to be of the same length. IFieldData can be seen as an array with complex tuples, where the component can be of different types.
Properties
Property | Description |
Name | The name of the FieldData object. (Inherited from Object) |
TupleCount | Resizes/Gets the list to the specified tuple count. If the list is enlarged, the new tuples will contain unspecified data. |
Methods
Method | Description |
AddBaseTypeField | Adds a field based on a base type. Only ValueArray objects are allowed. The created and added object is returned. |
AddField | Adds a field. The field must have a unique name set. |
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
AddTupleCount | Adds a number of tuples to the current tuple count. |
AppendTuples | Appends another field data object to this object. The fields are allowed to be setup differently, but then comes at a significant performance penalty. If fields in the other field data object is missing in this object, these will be added, and the items in the old tuples will be set to 0. |
Clear | Clears all tuples from the fields. The fields, however, are not removed. |
CopyCombine3Tuples | CopyCombine3Tuples combines the data from three tuples into a destination tuple. The call works like CombineTuples, but there is three source tuples, and two alpha values. the destination will be weighted by the values: alpha_3 = 1-(alpha_1 + alpha_2) dest = src_1*alpha_1 + src_2*alpha_2 + src_3*alpha_3 This field data object can be used as the source field data object to copy within the object. |
CopyCombineTuples | CopyCombineTuples() combines the data from two tuples into a destination tuple. This field data object can be used as the source field data object to copy within the object. |
CopyRange | CopyRange() copies a range of tuples from a source field object into this field object. The field objects must have the same field setup. This field object must be resized to hold the tuples before copying. |
CopyTuple | CopyTuple() copies one tuple to another. Both the dest_id and the source_id must exist in the array. This field data object can be used as the source field data object to copy within the object. |
DeepCopy | Copies the field setup and data from another object. To only copy the setup, set copy_data to false. |
ExtractTuples | Extracts a range of tuples from this object. The receiving object is assumed to have exactly the same data fields as this object. |
GetClass | Get the name of the FieldData class. (Inherited from Object) |
GetField | Retrieves a field. If the field was not found, null is returned. |
GetFieldCount | Returns the number of fields in the field data object. The ids of the fields range from 0 through (GetFieldCount()-1). |
GetFieldWithHandle | Returns the field associated with the specified handle. |
GetFieldWithId | Retrieves a field from its index in the field data. |
GetFirstFieldHandle | Returns the handle of the first field, or null if no fields are added to the object. |
GetMaxFieldId | Returns the id of the field with the highest id. NOTE! If no fields exist in the field data object, the return is undefined. |
GetMaxTupleId | Returns the id of the last tuple in the array. If the array is empty, the value is undefined. |
GetNextFieldHandle | Returns the next handle, or null if no more fields exist in the object. |
IndexedCombine | Works like IndexedCopy, but uses two consecutive ids in the idtable, and a blend value from the blendtable. The idtable contains (idtable_cnt*2) indices and blendtable contains idtable_cnt blend values. Does the blend: dest = src1*(1-blend) + src2*blend The FieldData must have enough tuples to hold the new data. |
IndexedCombine3 | Works like IndexedCombine(), but with three ids that are combined through two blend values in the blendtable. The idtable contains (idtable_cnt*3) indices and blendtable contains (idtable_cnt*2) blend values. Does the blend: dest = src1*blend1 + src2*blend2 + src3*(1-(blend1+blend2)) The FieldData must have enough tuples to hold the new data. |
IndexedCopy | Copies tuples from a source field data object through an id table. The id table dictates the order in which the tuples are to be copied. E.g. If the first item in the id table has the value 14, then the tuple with id 14 in the source array will be copied to the first tuple in this array. Note! All ids in the id table must be valid ids of tuples in the source field data object. The id table is assumed to have a tuple size of 1. The source and this field data object must have the same underlying data fields, of the same type and the same tuple sizes. The FieldData must have enough tuples to hold the new data. |
IsA | Returns true if FieldData is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsEmpty | Returns 1 if no tuples exist in the field data. |
IsNull | Returns true if the FieldData object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the FieldData object is valid. (Inherited from Object) |
IsSetupIdenticalTo | Compares the field setup of this field data object to another field data object. If the setups are not identical, false is returned. Note! IsSetupIdenticalTo will return false even if the same fields exist in both field data objects, but are not in the same order. |
NewCopy | Creates another field data object with the same field setup. To also copy the data to the new object, set copy_data to true. |
NewPackedCopy | Like NewCopy, NewPackedCopy creates a field data object with the same underlying data and tuple settings as the source field data object. However, NewPackedCopy only copies unique tuples, and if the index_array parameter is set, this index array will contain the same number of tuples as the source field data object, and with the ids of a specific tuples within the new copy of the field data object. |
NonNull | Returns true if the FieldData object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the FieldData object to the log. (Inherited from Object) |
RemoveAllFields | Clears all fields from the object. Releases all data in the object. |
RemoveField | Removes a field. Removing a field causes the remaining fields to be remapped to new ids. Note that the field must exist. If not, the method will return error. To remove a field that may not exist, use SafeRemoveField. |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
SafeRemoveField | Removes a field. Removing a field causes the remaining fields to be remapped to new ids. |
Static methods
Method | Description |
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spFieldData, and if this is the case, returns the object cast into spFieldData. (Inherited from Object) |
Properties details
Name
The name of the FieldData object. (Inherited from Object)
Syntax
SetName parameters
Type | Name | Min | Max | Description |
const char * | name | | | New name of the object. |
GetName return value
Type: spString
Syntax
SetName parameters
Type | Name | Min | Max | Description |
string | name | | | New name of the object. |
GetName return value
Type: string
Syntax
SetName parameters
Name | Type | Min | Max | Description |
name | str | | | New name of the object. |
GetName return value
Type: str
TupleCount
Resizes/Gets the list to the specified tuple count. If the list is enlarged, the new tuples will contain unspecified data.
Syntax
SetTupleCount parameters
Type | Name | Min | Max | Description |
unsigned int | tuplecount | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: unsigned int
Syntax
SetTupleCount parameters
Type | Name | Min | Max | Description |
uint | tuplecount | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: uint
Syntax
SetTupleCount parameters
Name | Type | Min | Max | Description |
tuplecount | int | 0 | INT_MAX | The desired tuple count. |
GetTupleCount return value
Type: int
Methods details
AddBaseTypeField
Adds a field based on a base type. Only ValueArray objects are allowed. The created and added object is returned.
Syntax
Parameters
Type | Name | Min | Max | Description |
EBaseTypes | baseType | | | Should be a base type listed in BaseTypes. |
unsigned int | tupleSize | | | The desired tuple size. |
const char * | name | | | The name of the new field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
EBaseTypes | baseType | | | Should be a base type listed in BaseTypes. |
uint | tupleSize | | | The desired tuple size. |
string | name | | | The name of the new field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
baseType | EBaseTypes | | | Should be a base type listed in BaseTypes. |
tupleSize | int | | | The desired tuple size. |
name | str | | | The name of the new field. |
Return value
Type: ValueArray
AddField
Adds a field. The field must have a unique name set.
Syntax
Parameters
Type | Name | Min | Max | Description |
ValueArray | field | | | The array to add to the field data. |
Syntax
Parameters
Type | Name | Min | Max | Description |
ValueArray | field | | | The array to add to the field data. |
Syntax
Parameters
Name | Type | Min | Max | Description |
field | ValueArray | | | The array to add to the field data. |
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
Observer | observer | | | Observer is the object that will receive events. |
Return value
Type: rid
Syntax
Parameters
Type | Name | Min | Max | Description |
Observer | observer | | | Observer is the object that will receive events. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
observer | Observer | | | Observer is the object that will receive events. |
Return value
Type: int
AddTupleCount
Adds a number of tuples to the current tuple count.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | tuplecount | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | tuplecount | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
Syntax
Parameters
Name | Type | Min | Max | Description |
tuplecount | int | 0 | INT_MAX | The desired number of tuples to add. Note that the total TupleCount cannot exceed INT_MAX. |
AppendTuples
Appends another field data object to this object. The fields are allowed to be setup differently, but then comes at a significant performance penalty. If fields in the other field data object is missing in this object, these will be added, and the items in the old tuples will be set to 0.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The field data object that is appended. |
bool | addMissingFields | | | If set to true, missing fields will be added to this field data object. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The field data object that is appended. |
bool | addMissingFields | | | If set to true, missing fields will be added to this field data object. |
Syntax
Parameters
Name | Type | Min | Max | Description |
other | FieldData | | | The field data object that is appended. |
addMissingFields | bool | | | If set to true, missing fields will be added to this field data object. |
Clear
Clears all tuples from the fields. The fields, however, are not removed.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
Syntax
Parameters
Clear takes no parameters.
CopyCombine3Tuples
CopyCombine3Tuples combines the data from three tuples into a destination tuple. The call works like CombineTuples, but there is three source tuples, and two alpha values. the destination will be weighted by the values: alpha_3 = 1-(alpha_1 + alpha_2) dest = src_1*alpha_1 + src_2*alpha_2 + src_3*alpha_3 This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | destId | | | The tuple index to put the combined results into in this field data. |
rid | srcId1 | | | The first tuple index to use for combining from the field data source. |
rid | srcId2 | | | The second tuple index to use for combining from the field data source. |
rid | srcId3 | | | The third tuple index to use for combining from the field data source. |
real | alpha1 | | | The first interpolation value used for combining the source tuples. |
real | alpha2 | | | The second interpolation value used for combining the source tuples. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
int | destId | | | The tuple index to put the combined results into in this field data. |
int | srcId1 | | | The first tuple index to use for combining from the field data source. |
int | srcId2 | | | The second tuple index to use for combining from the field data source. |
int | srcId3 | | | The third tuple index to use for combining from the field data source. |
float | alpha1 | | | The first interpolation value used for combining the source tuples. |
float | alpha2 | | | The second interpolation value used for combining the source tuples. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data source to combine from. |
destId | int | | | The tuple index to put the combined results into in this field data. |
srcId1 | int | | | The first tuple index to use for combining from the field data source. |
srcId2 | int | | | The second tuple index to use for combining from the field data source. |
srcId3 | int | | | The third tuple index to use for combining from the field data source. |
alpha1 | float | | | The first interpolation value used for combining the source tuples. |
alpha2 | float | | | The second interpolation value used for combining the source tuples. |
CopyCombineTuples
CopyCombineTuples() combines the data from two tuples into a destination tuple. This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
rid | destId | | | The tuple index to put the combined results into in this field data. |
rid | srcId1 | | | The first tuple index to use for combining from the field data source. |
rid | srcId2 | | | The second tuple index to use for combining from the field data source. |
real | alpha | | | The interpolation value used for combining the source tuples. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data source to combine from. |
int | destId | | | The tuple index to put the combined results into in this field data. |
int | srcId1 | | | The first tuple index to use for combining from the field data source. |
int | srcId2 | | | The second tuple index to use for combining from the field data source. |
float | alpha | | | The interpolation value used for combining the source tuples. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data source to combine from. |
destId | int | | | The tuple index to put the combined results into in this field data. |
srcId1 | int | | | The first tuple index to use for combining from the field data source. |
srcId2 | int | | | The second tuple index to use for combining from the field data source. |
alpha | float | | | The interpolation value used for combining the source tuples. |
CopyRange
CopyRange() copies a range of tuples from a source field object into this field object. The field objects must have the same field setup. This field object must be resized to hold the tuples before copying.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field object to copy from. |
rid | startDestId | | | The first destination tuple id. |
rid | startSrcId | | | The first source tuple id. |
unsigned int | count | | | The number of tuples to copy. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field object to copy from. |
int | startDestId | | | The first destination tuple id. |
int | startSrcId | | | The first source tuple id. |
uint | count | | | The number of tuples to copy. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field object to copy from. |
startDestId | int | | | The first destination tuple id. |
startSrcId | int | | | The first source tuple id. |
count | int | | | The number of tuples to copy. |
CopyTuple
CopyTuple() copies one tuple to another. Both the dest_id and the source_id must exist in the array. This field data object can be used as the source field data object to copy within the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data to copy from. |
rid | destId | | | The tuple index to copy into in this field data. |
rid | srcId | | | The tuple index to copy from in the source field data. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data to copy from. |
int | destId | | | The tuple index to copy into in this field data. |
int | srcId | | | The tuple index to copy from in the source field data. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field data to copy from. |
destId | int | | | The tuple index to copy into in this field data. |
srcId | int | | | The tuple index to copy from in the source field data. |
DeepCopy
Copies the field setup and data from another object. To only copy the setup, set copy_data to false.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source array to copy from. |
bool | copyData | | | True if the data should be copied along with the field data properties. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source array to copy from. |
bool | copyData | | | True if the data should be copied along with the field data properties. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source array to copy from. |
copyData | bool | | | True if the data should be copied along with the field data properties. |
Extracts a range of tuples from this object. The receiving object is assumed to have exactly the same data fields as this object.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | dest | | | The destination object. |
rid | start | | | The id of the first tuple that is extracted. |
unsigned int | count | | | The number of tuples to extract. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | dest | | | The destination object. |
int | start | | | The id of the first tuple that is extracted. |
uint | count | | | The number of tuples to extract. |
Syntax
Parameters
Name | Type | Min | Max | Description |
dest | FieldData | | | The destination object. |
start | int | | | The id of the first tuple that is extracted. |
count | int | | | The number of tuples to extract. |
GetClass
Get the name of the FieldData class. (Inherited from Object)
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: spString
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: string
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: str
GetField
Retrieves a field. If the field was not found, null is returned.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field to fetch. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field to fetch. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field to fetch. |
Return value
Type: ValueArray
GetFieldCount
Returns the number of fields in the field data object. The ids of the fields range from 0 through (GetFieldCount()-1).
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetFieldCount takes no parameters.
Return value
Type: int
GetFieldWithHandle
Returns the field associated with the specified handle.
Syntax
Parameters
Type | Name | Min | Max | Description |
rhandle | hand | | | The handle to the requested field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
System.IntPtr | hand | | | The handle to the requested field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
hand | PyObject* | | | The handle to the requested field. |
Return value
Type: ValueArray
GetFieldWithId
Retrieves a field from its index in the field data.
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | id | | | The id of the field. |
Return value
Type: ValueArray
Syntax
Parameters
Type | Name | Min | Max | Description |
int | id | | | The id of the field. |
Return value
Type: ValueArray
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The id of the field. |
Return value
Type: ValueArray
GetFirstFieldHandle
Returns the handle of the first field, or null if no fields are added to the object.
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: rhandle
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: System.IntPtr
Syntax
Parameters
GetFirstFieldHandle takes no parameters.
Return value
Type: PyObject*
GetMaxFieldId
Returns the id of the field with the highest id. NOTE! If no fields exist in the field data object, the return is undefined.
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: int
Syntax
Parameters
GetMaxFieldId takes no parameters.
Return value
Type: int
GetMaxTupleId
Returns the id of the last tuple in the array. If the array is empty, the value is undefined.
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: rid
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: int
Syntax
Parameters
GetMaxTupleId takes no parameters.
Return value
Type: int
GetNextFieldHandle
Returns the next handle, or null if no more fields exist in the object.
Syntax
Parameters
Type | Name | Min | Max | Description |
rhandle | hand | | | The current handle. |
Return value
Type: rhandle
Syntax
Parameters
Type | Name | Min | Max | Description |
System.IntPtr | hand | | | The current handle. |
Return value
Type: System.IntPtr
Syntax
Parameters
Name | Type | Min | Max | Description |
hand | PyObject* | | | The current handle. |
Return value
Type: PyObject*
IndexedCombine
Works like IndexedCopy, but uses two consecutive ids in the idtable, and a blend value from the blendtable. The idtable contains (idtable_cnt*2) indices and blendtable contains idtable_cnt blend values. Does the blend: dest = src1*(1-blend) + src2*blend The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
int | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data to combine from. |
idtable | RidArray | | | Array containing the tuple indices to combine. |
blendtable | RealArray | | | Array containing the blend weights. |
startId | int | | | The tuple to begin putting the combinations into. |
IndexedCombine3
Works like IndexedCombine(), but with three ids that are combined through two blend values in the blendtable. The idtable contains (idtable_cnt*3) indices and blendtable contains (idtable_cnt*2) blend values. Does the blend: dest = src1*blend1 + src2*blend2 + src3*(1-(blend1+blend2)) The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
rid | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The field data to combine from. |
RidArray | idtable | | | Array containing the tuple indices to combine. |
RealArray | blendtable | | | Array containing the blend weights. |
int | startId | | | The tuple to begin putting the combinations into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The field data to combine from. |
idtable | RidArray | | | Array containing the tuple indices to combine. |
blendtable | RealArray | | | Array containing the blend weights. |
startId | int | | | The tuple to begin putting the combinations into. |
IndexedCopy
Copies tuples from a source field data object through an id table. The id table dictates the order in which the tuples are to be copied. E.g. If the first item in the id table has the value 14, then the tuple with id 14 in the source array will be copied to the first tuple in this array. Note! All ids in the id table must be valid ids of tuples in the source field data object. The id table is assumed to have a tuple size of 1. The source and this field data object must have the same underlying data fields, of the same type and the same tuple sizes. The FieldData must have enough tuples to hold the new data.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data object to copy from. |
RidArray | idtable | | | Array containing the tuple indices to copy. |
rid | startId | | | The first tuple to begin copy into. |
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | source | | | The source field data object to copy from. |
RidArray | idtable | | | Array containing the tuple indices to copy. |
int | startId | | | The first tuple to begin copy into. |
Syntax
Parameters
Name | Type | Min | Max | Description |
source | FieldData | | | The source field data object to copy from. |
idtable | RidArray | | | Array containing the tuple indices to copy. |
startId | int | | | The first tuple to begin copy into. |
IsA
Returns true if FieldData is a or is a descendant of the class named as the type parameter. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if FieldData is, or is a descendant of. |
Return value
Type: bool
IsEmpty
Returns 1 if no tuples exist in the field data.
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
Syntax
Parameters
IsEmpty takes no parameters.
Return value
Type: int
IsNull
Returns true if the FieldData object is invalid. (Inherited from Object)
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
IsSameObjectAs
Returns true if the FieldData object is valid. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to compare with. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to compare with. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
object | Object | | | Object to compare with. |
Return value
Type: bool
IsSetupIdenticalTo
Compares the field setup of this field data object to another field data object. If the setups are not identical, false is returned. Note! IsSetupIdenticalTo will return false even if the same fields exist in both field data objects, but are not in the same order.
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The other field data object used for comparison. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
FieldData | other | | | The other field data object used for comparison. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
other | FieldData | | | The other field data object used for comparison. |
Return value
Type: bool
NewCopy
Creates another field data object with the same field setup. To also copy the data to the new object, set copy_data to true.
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | copyData | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | copyData | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
copyData | bool | | | True if data should be copied along with the field properties. |
Return value
Type: FieldData
NewPackedCopy
Like NewCopy, NewPackedCopy creates a field data object with the same underlying data and tuple settings as the source field data object. However, NewPackedCopy only copies unique tuples, and if the index_array parameter is set, this index array will contain the same number of tuples as the source field data object, and with the ids of a specific tuples within the new copy of the field data object.
Syntax
Parameters
Type | Name | Min | Max | Description |
RidArray | indexArray | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
RidArray | indexArray | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
indexArray | RidArray | | | Will contain indices to the new packed field data values. |
Return value
Type: FieldData
NonNull
Returns true if the FieldData object is valid. (Inherited from Object)
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
NonNull takes no parameters.
Return value
Type: bool
PrintInfo
Prints the content/info of the FieldData object to the log. (Inherited from Object)
Syntax
Parameters
PrintInfo takes no parameters.
Syntax
Parameters
PrintInfo takes no parameters.
Syntax
Parameters
PrintInfo takes no parameters.
RemoveAllFields
Clears all fields from the object. Releases all data in the object.
Syntax
Parameters
RemoveAllFields takes no parameters.
Syntax
Parameters
RemoveAllFields takes no parameters.
Syntax
Parameters
RemoveAllFields takes no parameters.
RemoveField
Removes a field. Removing a field causes the remaining fields to be remapped to new ids. Note that the field must exist. If not, the method will return error. To remove a field that may not exist, use SafeRemoveField.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field. |
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field. |
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field. |
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
rid | observerId | | | ObserverId is the id returned by AddObserver when the observer was added. |
Syntax
Parameters
Type | Name | Min | Max | Description |
int | observerId | | | ObserverId is the id returned by AddObserver when the observer was added. |
Syntax
Parameters
Name | Type | Min | Max | Description |
observerId | int | | | ObserverId is the id returned by AddObserver when the observer was added. |
SafeRemoveField
Removes a field. Removing a field causes the remaining fields to be remapped to new ids.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | name | | | The name of the field. |
Syntax
Parameters
Type | Name | Min | Max | Description |
string | name | | | The name of the field. |
Syntax
Parameters
Name | Type | Min | Max | Description |
name | str | | | The name of the field. |
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spFieldData, and if this is the case, returns the object cast into spFieldData. (Inherited from Object)
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: FieldData
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: FieldData
Syntax
Parameters
Name | Type | Min | Max | Description |
object | Object | | | Object to cast. |
Return value
Type: FieldData