Gwyfile Library
|
Functions | |
int * | gwyfile_object_container_enumerate_channels (const GwyfileObject *object, unsigned int *nchannels) |
Enumerates channels in a Gwyddion GWY file. More... | |
int * | gwyfile_object_container_enumerate_volume (const GwyfileObject *object, unsigned int *nvolume) |
Enumerates volume data in a Gwyddion GWY file. More... | |
int * | gwyfile_object_container_enumerate_graphs (const GwyfileObject *object, unsigned int *ngraphs) |
Enumerates graphs in a Gwyddion GWY file. More... | |
int * | gwyfile_object_container_enumerate_xyz (const GwyfileObject *object, unsigned int *nxyz) |
Enumerates XYZ data in a Gwyddion GWY file. More... | |
int * | gwyfile_object_container_enumerate_curvemaps (const GwyfileObject *object, unsigned int *nxyz) |
Enumerates curve map data in a Gwyddion GWY file. More... | |
int * | gwyfile_object_container_enumerate_spectra (const GwyfileObject *object, unsigned int *nspectra) |
Enumerates spectra in a Gwyddion GWY file. More... | |
High-level functions help with gathering information about specific data types in Gwyddion GWY files. In particular, functions for enumeration of all channels, graphs or volume data in a file are provided. These function also carry out some basic sanity checks, ensuring for instance that if ‘something’ is present at "/0/data"
it also actually looks like a valid GwyDataField object.
int* gwyfile_object_container_enumerate_channels | ( | const GwyfileObject * | object, |
unsigned int * | nchannels | ||
) |
Enumerates channels in a Gwyddion GWY file.
A channel is considered valid and returned in the list if its primary data field exists. The presence of auxiliary channel data (masks, presentations, selections, colour mapping settings, etc.) is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
nchannels | Return location for the number of channels. |
NULL
is returned when the number of channels found is zero (this does not mean any exception in the freeing rule though). int* gwyfile_object_container_enumerate_curvemaps | ( | const GwyfileObject * | object, |
unsigned int * | ncurvemaps | ||
) |
Enumerates curve map data in a Gwyddion GWY file.
Curve map data are considered valid and returned in the list if the map is well-formed. It may be empty and the presence of auxiliary data is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
ncurvemaps | Return location for the number of curve map data. |
NULL
is returned when the number of curve map data found is zero (this does not mean any exception in the freeing rule though). int* gwyfile_object_container_enumerate_graphs | ( | const GwyfileObject * | object, |
unsigned int * | ngraphs | ||
) |
Enumerates graphs in a Gwyddion GWY file.
Graphs are considered valid and returned in the list if the graph model object exists. The presence of auxiliary data is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
ngraphs | Return location for the number of graphs. |
NULL
is returned when the number of graphs found is zero (this does not mean any exception in the freeing rule though). int* gwyfile_object_container_enumerate_spectra | ( | const GwyfileObject * | object, |
unsigned int * | nspectra | ||
) |
Enumerates spectra in a Gwyddion GWY file.
A spectra object is considered valid and returned in the list if it looks sane. The presence of auxiliary spectra data is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
nspectra | Return location for the number of spectra. |
NULL
is returned when the number of spectra found is zero (this does not mean any exception in the freeing rule though). int* gwyfile_object_container_enumerate_volume | ( | const GwyfileObject * | object, |
unsigned int * | nvolume | ||
) |
Enumerates volume data in a Gwyddion GWY file.
Volume data are considered valid and returned in the list if the data brick exists. The presence of auxiliary data is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
nvolume | Return location for the number of volume data. |
NULL
is returned when the number of volume data found is zero (this does not mean any exception in the freeing rule though). int* gwyfile_object_container_enumerate_xyz | ( | const GwyfileObject * | object, |
unsigned int * | nxyz | ||
) |
Enumerates XYZ data in a Gwyddion GWY file.
XYZ data are considered valid and returned in the list if its primary surface object exists. The presence of auxiliary data is not checked.
object | A GWY file data object, presumably the main GwyContainer . |
nxyz | Return location for the number of XYZ data. |
NULL
is returned when the number of XYZ data found is zero (this does not mean any exception in the freeing rule though).