1 /* hkl.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Hkl", gir_namespace = "Hkl", gir_version = "4.0", lower_case_cprefix = "hkl_")]
5 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_axis_get_type ()")]
9 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_detector_get_type ()")]
11 public class Detector {
12 [CCode (cname = "hkl_detector_factory_new", has_construct_function = false)]
13 public Detector.factory_new (Hkl.DetectorType type);
14 public void idx_set (int idx);
16 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_engine_get_type ()")]
19 public unowned Hkl.EngineList engines ();
20 public unowned Hkl.Mode mode ();
21 public GLib.SList<weak Hkl.Mode> modes_as_gslist ();
22 public unowned string name ();
23 public unowned Hkl.ParameterList pseudo_axes ();
24 public void select_mode (Hkl.Mode mode);
25 public void select_mode_by_name (string name);
26 public bool set_values_unit ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] double[] values) throws GLib.Error;
28 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_engine_list_get_type ()")]
30 public class EngineList {
31 public GLib.SList<weak Hkl.Engine> engines_as_gslist ();
32 public unowned Hkl.GeometryList geometries ();
33 public void geometry_set (Hkl.Geometry geometry);
35 public unowned Hkl.Engine get_by_name (string name);
36 public unowned Hkl.Parameter get_pseudo_axis_by_name (string name);
37 public void init (Hkl.Geometry geometry, Hkl.Detector detector, Hkl.Sample sample);
38 public void select_solution (uint idx);
40 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_error_get_type ()")]
43 public unowned string message_get ();
45 [CCode (cheader_filename = "hkl.h")]
47 public class Factory {
48 public Hkl.EngineList create_new_engine_list ();
49 public Hkl.Geometry create_new_geometry ();
50 public unowned string name ();
52 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_geometry_get_type ()")]
54 public class Geometry {
55 public GLib.SList<weak Hkl.Parameter> axes ();
56 public void axis_set (Hkl.Parameter axis);
57 [CCode (array_length_pos = 0.1, array_length_type = "guint")]
58 public double[] get_axes_values_unit ();
59 public unowned string name_get ();
60 public void @set (Hkl.Geometry src);
61 public void set_axes_values_unit ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] double[] values);
62 public double wavelength_get ();
63 public void wavelength_set (double wavelength);
65 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_geometry_list_get_type ()")]
67 public class GeometryList {
68 public GLib.SList<weak Hkl.GeometryListItem> items ();
70 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_geometry_list_item_get_type ()")]
72 public class GeometryListItem {
73 public unowned Hkl.Geometry geometry ();
75 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_lattice_get_type ()")]
77 public class Lattice {
78 [CCode (has_construct_function = false)]
79 public Lattice (double a, double b, double c, double alpha, double beta, double gamma);
80 public void @get (out double a, out double b, out double c, out double alpha, out double beta, out double gamma);
81 public int reciprocal (Hkl.Lattice reciprocal);
82 public int @set (double a, double b, double c, double alpha, double beta, double gamma);
84 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_matrix_get_type ()")]
87 public int cmp (Hkl.Matrix m);
88 [CCode (has_construct_function = false)]
89 public Matrix.euler (double euler_x, double euler_y, double euler_z);
90 public double @get (uint i, uint j);
91 public void init (double m11, double m12, double m13, double m21, double m22, double m23, double m31, double m32, double m33);
92 public void times_matrix (Hkl.Matrix m);
94 [CCode (cheader_filename = "hkl.h")]
97 public unowned string name ();
98 public unowned Hkl.ParameterList parameters ();
100 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_parameter_get_type ()")]
102 public class Parameter {
103 public int fit_get ();
104 public void fit_set (int fit);
105 public void min_max_unit_set (double min, double max);
106 public unowned string name_get ();
107 public double value_get ();
108 public double value_unit_get ();
109 public int value_unit_set (double value, Hkl.Error? error);
111 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_parameter_list_get_type ()")]
113 public class ParameterList {
115 public weak Hkl.Parameter item;
117 public GLib.SList<weak Hkl.Parameter> parameters ();
118 public uint values_set ([CCode (array_length_cname = "len", array_length_pos = 1.5, array_length_type = "guint")] double[] values, Hkl.Error error);
119 [CCode (array_length_pos = 0.1, array_length_type = "guint")]
120 public double[] values_unit_get ();
121 public bool values_unit_set_binding ([CCode (array_length_cname = "len", array_length_pos = 1.1, array_length_type = "guint")] double[] values) throws GLib.Error;
123 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_pseudo_axis_get_type ()")]
125 public class PseudoAxis {
127 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_sample_get_type ()")]
129 public class Sample {
130 [CCode (has_construct_function = false)]
131 public Sample (string name);
132 public unowned Hkl.Matrix UB_get ();
133 public double UB_set (Hkl.Matrix UB);
134 public unowned Hkl.Matrix U_get ();
135 public void U_set (Hkl.Matrix U);
136 public Hkl.SampleReflection add_reflection_binding (Hkl.Geometry geometry, Hkl.Detector detector, double h, double k, double l);
137 public double affine ();
138 public int compute_UB_busing_levy (Hkl.SampleReflection r1, Hkl.SampleReflection r2);
139 public void del_reflection (Hkl.SampleReflection reflection);
140 public double get_reflection_mesured_angle (Hkl.SampleReflection r1, Hkl.SampleReflection r2);
141 public double get_reflection_theoretical_angle (Hkl.SampleReflection r1, Hkl.SampleReflection r2);
142 public unowned Hkl.Lattice lattice_get ();
143 public void lattice_set (Hkl.Lattice lattice);
144 public unowned string name_get ();
145 public void name_set (string name);
146 public GLib.SList<weak Hkl.SampleReflection> reflections_get ();
147 public unowned Hkl.Parameter ux_get ();
148 public void ux_set (Hkl.Parameter ux);
149 public unowned Hkl.Parameter uy_get ();
150 public void uy_set (Hkl.Parameter uy);
151 public unowned Hkl.Parameter uz_get ();
152 public void uz_set (Hkl.Parameter uz);
154 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_sample_reflection_get_type ()")]
156 public class SampleReflection {
157 [CCode (has_construct_function = false)]
158 public SampleReflection (Hkl.Geometry geometry, Hkl.Detector detector, double h, double k, double l);
159 public void hkl_get (out double h, out double k, out double l);
160 public void hkl_set (double h, double k, double l);
162 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_unit_get_type ()")]
166 [CCode (cheader_filename = "hkl.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "hkl_vector_get_type ()")]
168 public class Vector {
170 [CCode (cheader_filename = "hkl.h", cprefix = "HKL_DETECTOR_TYPE_", type_id = "hkl_detector_type_get_type ()")]
171 public enum DetectorType {
174 [CCode (cheader_filename = "hkl.h", cname = "HKL_DEGTORAD")]
175 public const int DEGTORAD;
176 [CCode (cheader_filename = "hkl.h", cname = "HKL_EPSILON")]
177 public const double EPSILON;
178 [CCode (cheader_filename = "hkl.h", cname = "HKL_FALSE")]
179 public const int FALSE;
180 [CCode (cheader_filename = "hkl.h", cname = "HKL_RADTODEG")]
181 public const int RADTODEG;
182 [CCode (cheader_filename = "hkl.h", cname = "HKL_TAU")]
183 public const int TAU;
184 [CCode (cheader_filename = "hkl.h", cname = "HKL_TINY")]
185 public const double TINY;
186 [CCode (cheader_filename = "hkl.h", cname = "HKL_TRUE")]
187 public const int TRUE;
188 [CCode (cheader_filename = "hkl.h")]
189 public static GLib.HashTable<weak string,weak Hkl.Factory> factories ();