1 /* EXTRAITS DE LA LICENCE 2 Copyright CEA, contributeurs : Luc BILLARD et Damien 3 CALISTE, laboratoire L_Sim, (2001-2005) 4 5 Adresse mèl : 6 BILLARD, non joignable par mèl ; 7 CALISTE, damien P caliste AT cea P fr. 8 9 Ce logiciel est un programme informatique servant à visualiser des 10 structures atomiques dans un rendu pseudo-3D. 11 12 Ce logiciel est régi par la licence CeCILL soumise au droit français et 13 respectant les principes de diffusion des logiciels libres. Vous pouvez 14 utiliser, modifier et/ou redistribuer ce programme sous les conditions 15 de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA 16 sur le site "http://www.cecill.info". 17 18 Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 19 pris connaissance de la licence CeCILL, et que vous en avez accepté les 20 termes (cf. le fichier Documentation/licence.fr.txt fourni avec ce logiciel). 21 */ 22 23 /* LICENCE SUM UP 24 Copyright CEA, contributors : Luc BILLARD et Damien 25 CALISTE, laboratoire L_Sim, (2001-2005) 26 27 E-mail address: 28 BILLARD, not reachable any more ; 29 CALISTE, damien P caliste AT cea P fr. 30 31 This software is a computer program whose purpose is to visualize atomic 32 configurations in 3D. 33 34 This software is governed by the CeCILL license under French law and 35 abiding by the rules of distribution of free software. You can use, 36 modify and/ or redistribute the software under the terms of the CeCILL 37 license as circulated by CEA, CNRS and INRIA at the following URL 38 "http://www.cecill.info". 39 40 The fact that you are presently reading this means that you have had 41 knowledge of the CeCILL license and that you accept its terms. You can 42 find a copy of this licence shipped with this software at Documentation/licence.en.txt. 43 */ 44 #ifndef IFACE_POINTSET_H 45 #define IFACE_POINTSET_H 46 47 #include <glib.h> 48 #include <glib-object.h> 49 50 #include "iface_boxed.h" 51 52 G_BEGIN_DECLS 53 54 /* Pointset interface. */ 55 #define VISU_TYPE_POINTSET (visu_pointset_get_type ()) 56 #define VISU_POINTSET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VISU_TYPE_POINTSET, VisuPointset)) 57 #define VISU_IS_POINTSET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VISU_TYPE_POINTSET)) 58 #define VISU_POINTSET_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), VISU_TYPE_POINTSET, VisuPointsetInterface)) 59 60 typedef struct _VisuPointsetInterface VisuPointsetInterface; 61 typedef struct _VisuPointset VisuPointset; /* dummy object */ 62 63 /** 64 * VisuPointset: 65 * 66 * Interface object. 67 * 68 * Since: 3.8 69 */ 70 71 /** 72 * VisuPointsetInterface: 73 * @parent: yet, its parent. 74 * @set_inTheBox: a routine to translate every content in the box. 75 * @set_translationActive: a routine to activate or not the translation. 76 * @get_translation: a routine to get the current translation status. 77 * @set_translation: a routine to set the translation status. 78 * @apply_translation: a routine to apply the stored translations. 79 * 80 * The different routines common to objects implementing a #VisuPointset interface. 81 * 82 * Since: 3.8 83 */ 84 struct _VisuPointsetInterface 85 { 86 VisuBoxedInterface parent; 87 88 gboolean (*set_inTheBox) (VisuPointset *self, gboolean status); 89 90 gboolean (*set_translationActive) (VisuPointset *self, gboolean status); 91 void (*get_translation) (VisuPointset *self, float translation[3]); 92 gboolean (*set_translation) (VisuPointset *self, float translation[3], gboolean withModulo); 93 94 void (*apply_translation) (VisuPointset *set); 95 }; 96 97 GType visu_pointset_get_type (void); 98 99 gboolean visu_pointset_setInTheBox(VisuPointset *self, gboolean status); 100 gboolean visu_pointset_setTranslationActive(VisuPointset *self, gboolean status); 101 void visu_pointset_applyTranslation(VisuPointset *self); 102 103 void visu_pointset_getTranslation(VisuPointset *self, float trans[3]); 104 gboolean visu_pointset_setTranslation(VisuPointset *self, float trans[3], 105 gboolean withModulo); 106 gboolean visu_pointset_setTranslationPeriodic(VisuPointset* self, float trans[3], 107 gboolean withModulo); 108 gboolean visu_pointset_setBoxTranslation(VisuPointset* self, float boxTrans[3], 109 gboolean withModulo); 110 gboolean visu_pointset_shift(VisuPointset *self, const gfloat delta[3], 111 gboolean withModulo); 112 gboolean visu_pointset_getTranslationPeriodicStatus(VisuPointset *self); 113 114 G_END_DECLS 115 116 #endif 117