| Top |
VisuNodeValuesFarrayVisuNodeValuesFarray — define a VisuNodeValues object to handle any array of floats. |
| GArray * | data-min-max | Read |
| gfloat | maximum | Read |
| gfloat | minimum | Read |
| gchar * | source-file | Read |
| gfloat | square-norm | Read |
GObject ╰── ToolDbgObj ╰── VisuNodeValues ╰── VisuNodeValuesFarray ├── VisuNodeValuesVector ├── VisuNodeValuesCoord ╰── VisuNodeValuesPole
Defines a VisuNodeValues object to store floating point arrays on every nodes and get notification for them.
gfloat (*VisuNodeValuesFarrayNrm2) (const VisuNodeValuesFarray *vect,const GValue *value);
Prototype of method used to compute the square norm of value
.
Since: 3.8
VisuNodeValuesFarray * visu_node_values_farray_new (VisuNodeArray *arr,const gchar *label,guint dimension);
Create a new farray field located on nodes, storing dimension
floats per node.
Since: 3.8
VisuNodeValuesFarray * visu_node_values_farray_new_fromFile (VisuNodeArray *arr,const gchar *label,const gchar *filename,GError **error);
Parse filename
to read floating point values and creates a new
VisuNodeValuesFarray object based on arr
. If an error occurs, an
empty VisuNodeValuesFarray object is created.
Since: 3.8
gfloat
visu_node_values_farray_min (VisuNodeValuesFarray *vect);
Computes and returns the smallest farray in the field.
Since: 3.8
gfloat
visu_node_values_farray_max (VisuNodeValuesFarray *vect);
Computes and returns the longest farray in the field.
Since: 3.8
gfloat
visu_node_values_farray_nrm2 (VisuNodeValuesFarray *vect);
Computes and returns the sum of square norm all farrays in the field.
Since: 3.8
gboolean visu_node_values_farray_getColumnMinMax (VisuNodeValuesFarray *vect,float minMax[2],guint column);
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.
vect |
the VisuNodeValuesFarray object. |
|
minMax |
an allocated array of two floating point values ;. |
[array fixed-size=2][out] |
column |
an integer. |
const gfloat * visu_node_values_farray_getAt (VisuNodeValuesFarray *vect,const VisuNode *node);
Retrieves the float array hosted on node
.
Since: 3.8
gfloat visu_node_values_farray_getFloatAtIter (const VisuNodeValuesFarray *vect,const VisuNodeValuesIter *iter,guint column);
Retrieves the float value stored for the current iteration of iter
for the column column
. iter
must be running on vect
.
vect |
a VisuNodeValuesFarray object. |
|
iter |
a VisuNodeValuesIter object. |
|
column |
a column id. |
Since: 3.8
gboolean visu_node_values_farray_setAt (VisuNodeValuesFarray *vect,const VisuNode *node,const float *vals,guint ln);
Changes the float array hosted at node
for one of values defined
by vals
.
vect |
a VisuNodeValuesFarray object. |
|
node |
a VisuNode object. |
|
vals |
farray coordinates. |
[array length=ln] |
ln |
a length. |
Since: 3.8
gboolean visu_node_values_farray_setAtDbl (VisuNodeValuesFarray *vect,const VisuNode *node,const double *vals,guint ln);
Same as visu_node_values_farray_setAt() but for double values.
vect |
a VisuNodeValuesFarray object. |
|
node |
a VisuNode object. |
|
vals |
farray coordinates. |
[array fixed-size=3] |
ln |
a length. |
Since: 3.8
gboolean visu_node_values_farray_set (VisuNodeValuesFarray *vect,const GArray *data);
Assigns the coordinates stored in data
to each nodes in vect
.
Since: 3.8
void visu_node_values_farray_scale (VisuNodeValuesFarray *vect,gfloat factor);
Multiply every element of vect
by factor
.
Since: 3.8
const gchar *
visu_node_values_farray_getFile (const VisuNodeValuesFarray *vect);
Retrieve the filename from which the values have been read, if any.
Since: 3.8
struct VisuNodeValuesFarray;
Common name to refer to a _VisuNodeValuesFarray.
struct VisuNodeValuesFarrayClass {
VisuNodeValuesClass parent;
VisuNodeValuesFarrayNrm2 nrm2;
};
Common name to refer to a _VisuNodeValuesFarrayClass.
VisuNodeValuesClass |
private. |
|
VisuNodeValuesFarrayNrm2 |
the function used to compute the squared norm of the float array. |
“maximum” property“maximum” gfloat
maximum norm.
Flags: Read
Allowed values: >= 0
Default value: 0
“minimum” property“minimum” gfloat
minimum norm.
Flags: Read
Allowed values: >= 0
Default value: 0
“source-file” property“source-file” gchar *
Source file if any.
Flags: Read
Default value: NULL
“square-norm” property“square-norm” gfloat
Square norm.
Flags: Read
Allowed values: >= 0
Default value: 0