v_sim.NodeValuesFarray¶
- Subclasses:
v_sim.NodeValuesCoord,v_sim.NodeValuesPole,v_sim.NodeValuesVector
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
min / max values of data |
||
r |
maximum norm |
||
r |
minimum norm |
||
r |
Source file if any |
||
r |
Square norm |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.NodeValuesFarray(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a #_VisuNodeValuesFarray.
- classmethod new(arr, label, dimension)¶
- Parameters:
arr (
v_sim.NodeArray) – av_sim.NodeArrayobject.label (
str) – a translatable label.dimension (
int) – a integer value.
- Returns:
a newly created
v_sim.NodeValuesFarrayobject.- Return type:
Create a new farray field located on nodes, storing dimension floats per node.
New in version 3.8.
- classmethod new_fromFile(arr, label, filename)¶
- Parameters:
arr (
v_sim.NodeArray) – av_sim.NodeArrayobject.label (
str) – a label.filename (
str) – a filename.
- Raises:
- Returns:
a newly created
v_sim.NodeValuesFarrayobject.- Return type:
Parse filename to read floating point values and creates a new
v_sim.NodeValuesFarrayobject based on arr. If an error occurs, an emptyv_sim.NodeValuesFarrayobject is created.New in version 3.8.
- getAt(node)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodeobject.- Returns:
the coordinates of float array for node.
- Return type:
Retrieves the float array hosted on node.
New in version 3.8.
- getAtIter(iter)¶
- Parameters:
iter (
v_sim.NodeValuesIter) – an iterator on self.- Returns:
a pointer to the float array.
- Return type:
Provide the floats stored in self at iter.
New in version 3.8.
- getColumnMinMax(column)¶
- Parameters:
column (
int) – an integer.- Returns:
Falseif column < 0 or if column is greater than the number of read column or if no file has been set.- minMax:
an allocated array of two floating point values ;
- Return type:
This method is used to retrieve the minimum and the maximum values of the column designed by the column argument. Column are numbered beginning at 0.
- getFile()¶
- Returns:
a filename.
- Return type:
Retrieve the filename from which the values have been read, if any.
New in version 3.8.
- getFloatAt(node, column)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodepointer.column (
int) – a column id.
- Returns:
a float value.
- Return type:
Retrieves the float value stored for node at column, if any.
New in version 3.8.
- getFloatAtIter(iter, column)¶
- Parameters:
iter (
v_sim.NodeValuesIter) – av_sim.NodeValuesIterobject.column (
int) – a column id.
- Returns:
a float value.
- Return type:
Retrieves the float value stored for the current iteration of iter for the column column. iter must be running on self.
New in version 3.8.
- max()¶
- Returns:
the maximum farray norm.
- Return type:
Computes and returns the longest farray in the field.
New in version 3.8.
- min()¶
- Returns:
the minimum farray norm.
- Return type:
Computes and returns the smallest farray in the field.
New in version 3.8.
- nrm2()¶
- Returns:
the square norm of the farray field.
- Return type:
Computes and returns the sum of square norm all farrays in the field.
New in version 3.8.
- scale(factor)¶
- Parameters:
factor (
float) – a factor.
Multiply every element of self by factor.
New in version 3.8.
- set(data)¶
- Parameters:
data ([
float]) – some farray coordinates.- Returns:
Trueif data has the same size as self.- Return type:
Assigns the coordinates stored in data to each nodes in self.
New in version 3.8.
- setAt(node, vals)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodeobject.vals ([
float]) – farray coordinates.
- Returns:
Trueif farray for node is indeed changed.- Return type:
Changes the float array hosted at node for one of values defined by vals.
New in version 3.8.
- setAtDbl(node, vals, ln)¶
- Parameters:
node (
v_sim.Node) – av_sim.Nodeobject.vals ([
float]) – farray coordinates.ln (
int) – a length.
- Returns:
Trueif farray for node is indeed changed.- Return type:
Same as
v_sim.NodeValuesFarray.setAt() but for double values.New in version 3.8.
- do_nrm2(value) virtual¶
- Parameters:
value (
GObject.Value) – a value.- Return type:
the function used to compute the squared norm of the float array.
Property Details¶
- v_sim.NodeValuesFarray.props.data_min_max¶
- Name:
data-min-max- Type:
- Default Value:
- Flags:
min / max values of data
- v_sim.NodeValuesFarray.props.maximum¶
-
maximum norm
- v_sim.NodeValuesFarray.props.minimum¶
-
minimum norm
- v_sim.NodeValuesFarray.props.source_file¶
-
Source file if any