Top | ![]() |
![]() |
![]() |
![]() |
VisuNodeValuesVectorVisuNodeValuesVector — define a VisuNodeValues object to handle vectorial node information. |
GObject ╰── ToolDbgObj ╰── VisuNodeValues ╰── VisuNodeValuesFarray ╰── VisuNodeValuesVector ├── VisuDataDiff ╰── VisuVibration
Defines a VisuNodeValues object to store a vector
information on nodes. One can set and retrieve vector on each node
as cartesian (see visu_node_values_vector_setAt()
or
visu_node_values_vector_getAt()
functions) or spherical coordinates
(see visu_node_values_vector_setAtSpherical()
and
visu_node_values_vector_getAtSpherical()
functions).
void (*VisuNodeValuesVectorShift) (const VisuNodeValuesVector *vect
,const VisuNode *node
,gfloat dxyz[3]
);
Prototype of functions used to define a shift between the centre of
node
and the origin of the stored vector for this node.
vect |
a VisuNodeValuesVector object. |
|
node |
a VisuNode pointer: |
|
dxyz |
a shift in cartesian coordinates. |
[array fixed-size=3] |
VisuNodeValuesVector * visu_node_values_vector_new (VisuNodeArray *arr
,const gchar *label
);
Create a new vector field located on nodes.
Since: 3.8
const gfloat * visu_node_values_vector_getAt (const VisuNodeValuesVector *vect
,const VisuNode *node
);
Retrieves the vector hosted on node
.
Since: 3.8
const gfloat * visu_node_values_vector_getAtSpherical (const VisuNodeValuesVector *vect
,const VisuNode *node
);
Retrieves the vector hosted on node
in spherical coordinates.
Since: 3.8
const gfloat * visu_node_values_vector_getAtIterSpherical (const VisuNodeValuesVector *vect
,const VisuNodeValuesIter *iter
);
Retrieves the vector hosted on iter
in spherical coordinates.
Since: 3.8
void visu_node_values_vector_getShift (const VisuNodeValuesVector *vect
,const VisuNode *node
,gfloat dxyz[3]
);
Get the shift value that is applied to every vector of vect
.
vect |
a VisuNodeValuesVector object. |
|
node |
a VisuNode pointer. |
|
dxyz |
a vector location. |
[out caller-allocates][array fixed-size=3] |
Since: 3.8
gboolean visu_node_values_vector_setAt (VisuNodeValuesVector *vect
,const VisuNode *node
,const gfloat dxyz[3]
);
Changes the vector hosted at node
for one of coordinates defined
by dxyz
.
vect |
a VisuNodeValuesVector object. |
|
node |
a VisuNode object. |
|
dxyz |
vector coordinates. |
[array fixed-size=3] |
Since: 3.8
gboolean visu_node_values_vector_setAtSpherical (VisuNodeValuesVector *vect
,const VisuNode *node
,const gfloat sph[3]
);
Same as visu_node_values_vector_setAt()
but using a spherical
coordinate description.
vect |
a VisuNodeValuesVector object. |
|
node |
a VisuNode object. |
|
sph |
spherical coordinates. |
[array fixed-size=3] |
Since: 3.8
gboolean visu_node_values_vector_setAtDbl (VisuNodeValuesVector *vect
,const VisuNode *node
,const double dxyz[3]
);
Same as visu_node_values_vector_setAt()
but for double values.
vect |
a VisuNodeValuesVector object. |
|
node |
a VisuNode object. |
|
dxyz |
vector coordinates. |
[array fixed-size=3] |
Since: 3.8
gboolean visu_node_values_vector_set (VisuNodeValuesVector *vect
,const GArray *data
);
Assigns the coordinates stored in data
to each nodes in vect
.
Since: 3.8
struct VisuNodeValuesVector;
Common name to refer to a _VisuNodeValuesVector.
struct VisuNodeValuesVectorClass { VisuNodeValuesFarrayClass parent; VisuNodeValuesVectorShift shift; };
Common name to refer to a _VisuNodeValuesVectorClass.
VisuNodeValuesFarrayClass |
private. |
|
VisuNodeValuesVectorShift |
a routine to add a shift on each node. |