GwyCalibration — Resource for managing calibrations
struct | GwyCalibration |
struct | GwyCalibrationClass |
GObject ╰── GwyResource ╰── GwyCalibration
#include <libprocess/gwyprocess.h>
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.
GwyCalibration * gwy_calibration_new (const gchar *name
,const char *filename
);
Creates new calibration resource.
name |
Name of resource |
|
filename |
Filename of associated calibration data |
A newly created calibration resource.
Since: 2.23
const gchar *
gwy_calibration_get_filename (GwyCalibration *calibration
);
Get filename of associated calibration data.
calibration |
Calibration resource |
Filename of associated calibration data.
Since: 2.23
gint
gwy_calibration_get_ndata (GwyCalibration *calibration
);
Returns the number of points in a calibration.
calibration |
A calibration. |
The number of points in calibration
.
Since: 2.23
GwyInventory *
gwy_calibrations (void
);
Gets inventory with all the calibrations.
Calibration inventory.
Since: 2.23
GwyCalibration *
gwy_calibrations_get_calibration (const gchar *name
);
Convenience function to get a calibration from gwy_calibrations()
by name.
name |
Calibration name. May be |
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.
calibration |
A calibration. |
The data related to calibration
.
Since: 2.23
struct GwyCalibration;
The GwyCalibration struct contains private data only and should be accessed using the functions below.
Since: 2.23
struct GwyCalibrationClass { GwyResourceClass parent_class; void (*reserved1)(void); void (*reserved2)(void); };