v_sim.ScalarFieldData

g GObject.GInterface GObject.GInterface v_sim.Boxed v_sim.Boxed GObject.GInterface->v_sim.Boxed v_sim.Pointset v_sim.Pointset GObject.GInterface->v_sim.Pointset GObject.Object GObject.Object v_sim.ScalarField v_sim.ScalarField GObject.Object->v_sim.ScalarField v_sim.Boxed->v_sim.ScalarField v_sim.Pointset->v_sim.ScalarField v_sim.ScalarFieldData v_sim.ScalarFieldData v_sim.ScalarField->v_sim.ScalarFieldData

Subclasses:

None

Methods

Inherited:

v_sim.ScalarField (19), GObject.Object (37), v_sim.Boxed (2), v_sim.Pointset (9)

Structs:

GObject.ObjectClass (5)

class

new_fromFile (filename, table, cancel, callback, *user_data)

class

new_fromFileSync (filename, table, cancel)

getArray ()

set (data, xyzOrder)

Virtual Methods

Inherited:

v_sim.ScalarField (6), GObject.Object (7), v_sim.Boxed (1), v_sim.Pointset (5)

Properties

Inherited:

v_sim.ScalarField (2), v_sim.Boxed (2), v_sim.Pointset (4)

Signals

Inherited:

v_sim.ScalarField (1), GObject.Object (1), v_sim.Boxed (1)

Fields

Inherited:

v_sim.ScalarField (1), GObject.Object (1), v_sim.Boxed (1)

Name

Type

Access

Description

parent

v_sim.ScalarField

r

Class Details

class v_sim.ScalarFieldData(**kwargs)
Bases:

v_sim.ScalarField

Abstract:

No

Structure:

v_sim.ScalarFieldDataClass

An opaque structure for the scalar field.

classmethod new_fromFile(filename, table, cancel, callback, *user_data)
Parameters:
Returns:

a GLib.List to store read field(s).

Return type:

[v_sim.ScalarField]

Read the given file and try to load it as a scalar field file. If succeed, all read fields are appended to the fieldList argument. If an error occurs, it is stored into error. When entering the routine, error must be None. If table is given, it means that the caller routine gives some options to the loader routine. These options are a set of names and values.

If the file contains several fields, they must be loaded and added to fieldList.

classmethod new_fromFileSync(filename, table, cancel)
Parameters:
Raises:

GLib.Error

Returns:

a GLib.List to store read field(s).

Return type:

[v_sim.ScalarField]

Like v_sim.ScalarFieldData.new_fromFile(), but synchronous.

New in version 3.8.

getArray()
Returns:

a pointer on the allocated data array.

Return type:

[float]

The data are stored z first in a flatten array.

New in version 3.7.

set(data, xyzOrder)
Parameters:

Set the data of the given self. The array data should be stored in z direction first, followed by y and x if xyzOrder is False, or in the other order when True. The number of elements in the x, y and z directions are read from field->priv->nElements. Then use v_sim.ScalarField.setGridSize() before using this method.