| Gwyddion Data Processing Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <libprocess/gwyprocess.h>
GwyCalibration;
GwyCalibrationClass;
GwyCalibration* gwy_calibration_new (const gchar *name,
const char *filename);
const gchar* gwy_calibration_get_filename (GwyCalibration *calibration);
gint gwy_calibration_get_ndata (GwyCalibration *calibration);
GwyInventory* gwy_calibrations (void);
GwyCalibration* gwy_calibrations_get_calibration (const gchar *name);
GwyCalData* gwy_calibration_get_data (GwyCalibration *calibration);
GwyCalibration is a resource used for managing calibration data. These resources are stored separately from calibration data and contain namely filename of connected calibration data file.
typedef struct _GwyCalibration GwyCalibration;
The GwyCalibration struct contains private data only and should be accessed using the functions below.
Since 2.23
typedef struct {
GwyResourceClass parent_class;
void (*reserved1)(void);
void (*reserved2)(void);
} GwyCalibrationClass;
GwyCalibration* gwy_calibration_new (const gchar *name,const char *filename);
Creates new calibration resource.
|
Name of resource |
|
Filename of associated calibration data |
Returns : |
A newly created calibration resource. |
Since 2.23
const gchar* gwy_calibration_get_filename (GwyCalibration *calibration);
Get filename of associated calibration data.
|
Calibration resource |
Returns : |
Filename of associated calibration data. |
Since 2.23
gint gwy_calibration_get_ndata (GwyCalibration *calibration);
|
|
Returns : |
GwyInventory* gwy_calibrations (void);
Gets inventory with all the calibrations.
Returns : |
Calibration inventory. |
Since 2.23
GwyCalibration* gwy_calibrations_get_calibration (const gchar *name);
Convenience function to get a calibration from gwy_calibrations() by name.
|
Calibration name. May be NULL to get the default calibration.
|
Returns : |
Calibration identified by name or the default calibration if name
does not exist.
|
Since 2.23
GwyCalData* gwy_calibration_get_data (GwyCalibration *calibration);
Obtains the data related to calibration.
|
A calibration. |
Returns : |
The data related to calibration.
|
Since 2.23