* add the liststore to contain all the diffractometers
[hkl.git] / hkl / hkl-pseudoaxis-k4cv-psi.c
blobe0c569e5c49223712878f14b12aa1af6925d59b2
1 /* This file is part of the hkl library.
3 * The hkl library is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * The hkl library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with the hkl library. If not, see <http://www.gnu.org/licenses/>.
16 * Copyright (C) 2003-2010 Synchrotron SOLEIL
17 * L'Orme des Merisiers Saint-Aubin
18 * BP 48 91192 GIF-sur-YVETTE CEDEX
20 * Authors: Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
22 #include <hkl/hkl-pseudoaxis-k4cv.h>
23 #include <hkl/hkl-pseudoaxis-common-psi.h>
25 HklPseudoAxisEngine *hkl_pseudo_axis_engine_k4cv_psi_new(void)
27 HklPseudoAxisEngine *self;
28 HklPseudoAxisEngineModePsi *mode;
30 self = hkl_pseudo_axis_engine_psi_new();
32 /* psi get/set */
33 char const *axes_names_psi[] = {"komega", "kappa", "kphi", "tth"};
34 mode = hkl_pseudo_axis_engine_mode_psi_new("psi", 4, axes_names_psi);
35 hkl_pseudo_axis_engine_add_mode(self, (HklPseudoAxisEngineMode *)mode);
37 hkl_pseudo_axis_engine_select_mode(self, 0);
39 return self;