VisuDataDiff

VisuDataDiff — a VisuNodeValues object to store displacements between to VisuData objects.

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ToolDbgObj
        ╰── VisuNodeValues
            ╰── VisuNodeValuesFarray
                ╰── VisuNodeValuesVector
                    ╰── VisuDataDiff

Description

Functions

visu_data_diff_new ()

VisuDataDiff *
visu_data_diff_new (const VisuData *dataRef,
                    VisuData *data,
                    gboolean reorder,
                    const gchar *label);

Compute the node per node position differences between dataRef and data . If reorder is TRUE, the node in data are reordered to minimize the distance with dataRef . If dataRef and data are incompatible, the returned object will be empty, see visu_data_diff_isEmpty().

Parameters

dataRef

a VisuData object.

 

data

a VisuData object.

 

reorder

a boolean.

 

label

a label.

 

Returns

a newly created VisuDataDiff object.

[transfer full]

Since: 3.8


visu_data_diff_isEmpty ()

gboolean
visu_data_diff_isEmpty (const VisuDataDiff *self);

When creating a VisuDataDiff, if the reference and the data don't have the same number of types or atoms, the difference cannot be computed and the created object is empty.

Parameters

self

a VisuDataDiff object.

 

Returns

TRUE if there is no difference data stored.

Since: 3.8


visu_data_diff_export ()

gchar *
visu_data_diff_export (const VisuDataDiff *self);

Create a string with differences of coordinates stored in self in cartesian coordinates.

Parameters

self

a VisuDataDiff object.

 

Returns

a new string that should be freed after use.

Since: 3.6


visu_data_diff_applyWithFinder ()

void
visu_data_diff_applyWithFinder (const VisuDataDiff *geodiff,
                                VisuNodeFinder *finder,
                                gfloat tol);

For each node displacement of geodiff , if a matching node in finder is found within the tolerance tol , then the displacement is applied.

Parameters

geodiff

a VisuDataDiff object with a displacement field.

 

finder

a VisuNodeFinder to apply the displacement on.

 

tol

a tolerance.

 

Since: 3.8

Types and Values

struct VisuDataDiff

struct VisuDataDiff;

Common name to refer to a VisuDataDiff.


struct VisuDataDiffClass

struct VisuDataDiffClass {
  VisuNodeValuesVectorClass parent;
};

Common name to refer to a VisuDataDiffClass.

Members

VisuNodeValuesVectorClass parent;

private.

 

VISU_DATA_DIFF_DEFAULT_ID

#define VISU_DATA_DIFF_DEFAULT_ID "geometry_diff"

A default label that is used to store a VisuDataDiff in a VisuData.

Since: 3.8