Top | ![]() |
![]() |
![]() |
![]() |
VisuDataSpinVisuDataSpin — a class of nodes representing spin data and providing associated loading methods. |
VisuDataSpin * | visu_data_spin_new () |
VisuDataSpin * | visu_data_spin_new_withFiles () |
const gchar * | visu_data_spin_getFile () |
void | visu_data_spin_setFile () |
void | visu_data_spin_class_addLoader () |
GList * | visu_data_spin_class_getLoaders () |
const gchar * | visu_data_spin_class_getFileDescription () |
void | visu_data_spin_setAt () |
void | visu_data_spin_setAtSpherical () |
gfloat | visu_data_spin_getMaxModulus () |
const VisuNodeValuesVector * | visu_data_spin_get () |
void | visu_data_spin_class_finalize () |
GObject ╰── ToolDbgObj ╰── VisuNodeArray ╰── VisuData ╰── VisuDataLoadable ╰── VisuDataAtomic ╰── VisuDataSpin
VisuDataSpin *
visu_data_spin_new (void
);
Creates a VisuDataSpin object.
Since: 3.8
VisuDataSpin * visu_data_spin_new_withFiles (const gchar *atomic
,const gchar *spin
);
Creates a VisuDataSpin object and set atomic
as its atomic file
source and file
for the spin source.
Since: 3.8
const gchar * visu_data_spin_getFile (VisuDataSpin *data
,VisuDataLoader **format
);
Retrieve the spin filename. Optionally provides also the format of this file. If the file has been parsed this is the detected format. If not, this is the supposed format, as proposed by user.
data |
a VisuDataSpin object. |
|
format |
a location to store the format. |
[out caller-allocates] |
Since: 3.8
void visu_data_spin_setFile (VisuDataSpin *data
,const gchar *filename
,VisuDataLoader *format
);
Set the spin source for data
and possibly provide a
VisuDataLoader for this file.
data |
a VisuDataSpin object. |
|
filename |
a filename. |
|
format |
a possible VisuDataLoader format. |
[allow-none] |
Since: 3.8
void
visu_data_spin_class_addLoader (VisuDataLoader *loader
);
Add loader
to the list of VisuDataLoader to be used when
visu_data_loadable_load()
is called.
Since: 3.8
GList *
visu_data_spin_class_getLoaders (void
);
Returns a list of available VisuDataLoader.
Since: 3.8
const gchar *
visu_data_spin_class_getFileDescription
(void
);
Returns a translated string describing what is files loaded by VisuDataSpin objects.
Since: 3.8
void visu_data_spin_setAt (VisuDataSpin *dataObj
,const VisuNode *node
,const gfloat vals[3]
);
Store vals
as the spin representation for node
in dataObj
.
dataObj |
a VisuDataSpin object. |
|
node |
a VisuNode object. |
|
vals |
a vector in cartesian coordinates. |
[array fixed-size=3] |
Since: 3.8
void visu_data_spin_setAtSpherical (VisuDataSpin *dataObj
,const VisuNode *node
,const gfloat vals[3]
);
Store vals
as the spin representation for node
in dataObj
.
dataObj |
a VisuDataSpin object. |
|
node |
a VisuNode object. |
|
vals |
a vector in spherical coordinates. |
[array fixed-size=3] |
Since: 3.8
gfloat visu_data_spin_getMaxModulus (const VisuDataSpin *dataObj
,guint iElement
);
Inquires the max spin modulous from dataObj
for the given
VisuElement represented by iElement
.
Since: 3.8
const VisuNodeValuesVector *
visu_data_spin_get (const VisuDataSpin *dataObj
);
Retrieve the VisuNodeValuesVector object stroing the spin components per VisuNode.
Since: 3.8
void
visu_data_spin_class_finalize (void
);
Empty the list of known loaders.
Since: 3.8
struct VisuDataSpinClass { VisuDataAtomicClass parent; };
A short way to identify _VisuDataSpinClass structure.