1 /* EXTRAITS DE LA LICENCE 2 Copyright CEA, contributeurs : Luc BILLARD, Damien 3 CALISTE, Olivier D'Astier, laboratoire L_Sim, (2001-2005) 4 5 Adresses mèl : 6 BILLARD, non joignable par mèl ; 7 CALISTE, damien P caliste AT cea P fr. 8 D'ASTIER, dastier AT iie P cnam P fr. 9 10 Ce logiciel est un programme informatique servant à visualiser des 11 structures atomiques dans un rendu pseudo-3D. 12 13 Ce logiciel est régi par la licence CeCILL soumise au droit français et 14 respectant les principes de diffusion des logiciels libres. Vous pouvez 15 utiliser, modifier et/ou redistribuer ce programme sous les conditions 16 de la licence CeCILL telle que diffusée par le CEA, le CNRS et l'INRIA 17 sur le site "http://www.cecill.info". 18 19 Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 20 pris connaissance de la licence CeCILL, et que vous en avez accepté les 21 termes (cf. le fichier Documentation/licence.fr.txt fourni avec ce logiciel). 22 */ 23 24 /* LICENCE SUM UP 25 Copyright CEA, contributors : Luc BILLARD and Damien 26 CALISTE and Olivier D'Astier, laboratoire L_Sim, (2001-2005) 27 28 E-mail addresses : 29 BILLARD, not reachable any more ; 30 CALISTE, damien P caliste AT cea P fr. 31 D'ASTIER, dastier AT iie P cnam P fr. 32 33 This software is a computer program whose purpose is to visualize atomic 34 configurations in 3D. 35 36 This software is governed by the CeCILL license under French law and 37 abiding by the rules of distribution of free software. You can use, 38 modify and/ or redistribute the software under the terms of the CeCILL 39 license as circulated by CEA, CNRS and INRIA at the following URL 40 "http://www.cecill.info". 41 42 The fact that you are presently reading this means that you have had 43 knowledge of the CeCILL license and that you accept its terms. You can 44 find a copy of this licence shipped with this software at Documentation/licence.en.txt. 45 */ 46 #ifndef PANELSURFACES_H 47 #define PANELSURFACES_H 48 49 #include <gtk/gtk.h> 50 #include <visu_data.h> 51 #include <coreTools/toolOptions.h> 52 #include <extraFunctions/planeset.h> 53 #include <extraFunctions/surfaces.h> 54 #include <extraFunctions/sfielddata.h> 55 #include <extraGtkFunctions/gtk_toolPanelWidget.h> 56 57 VisuUiPanel* visu_ui_panel_surfaces_init(); 58 59 gboolean visu_ui_panel_surfaces_loadFile(const char* file_name, 60 GtkTreeIter *iter, 61 GHashTable *table, 62 VisuScalarFieldMethod *meth); 63 void visu_ui_panel_surfaces_addSurfaces(GList *surfs, const gchar *name, 64 GtkTreeIter *iter); 65 void visu_ui_panel_surfaces_addSurface(VisuSurface *surf, 66 GtkTreeIter *root, GtkTreeIter *iter); 67 68 gboolean visu_ui_panel_surfaces_parseXMLFile(const gchar *filename, GError **error); 69 gboolean visu_ui_panel_surfaces_exportXMLFile(const gchar *filename, GError **error); 70 gboolean visu_ui_panel_surfaces_showAll(gboolean show); 71 void visu_ui_panel_surfaces_editProperties(GtkTreeIter *iter); 72 73 /** 74 * VisuUiSurfacesFieldId: 75 * @VISU_UI_SURFACES_FIELD_LABEL: a string, the description of the scalar field. 76 * @VISU_UI_SURFACES_FIELD_ROW: a column storing internal pointers. 77 * @VISU_UI_SURFACES_FIELD_N_COLUMNS: the number of columns. 78 * 79 * Thesse are the description of the columns stored in the #GtkListStore 80 * of this panel. See visu_ui_panel_surfaces_getFields() to access this liststore. 81 */ 82 typedef enum 83 { 84 VISU_UI_SURFACES_FIELD_LABEL, 85 VISU_UI_SURFACES_FIELD_ROW, 86 VISU_UI_SURFACES_FIELD_N_COLUMNS 87 } VisuUiSurfacesFieldId; 88 89 GtkListStore* visu_ui_panel_surfaces_getFields(); 90 VisuScalarField* visu_ui_panel_surfaces_fieldsAt(GtkTreeModel *model, GtkTreeIter *iter); 91 92 /** 93 * VISU_UI_SURFACE_NAME_STR: 94 * 95 * The default string used to name surfaces that are not associated to 96 * any public surface ressource. 97 */ 98 #define VISU_UI_SURFACE_NAME_STR "Choose an id name" 99 /** 100 * VISU_UI_SURFACE_NAME_CHOOSE: 101 * 102 * The string used in the tree view to represent the surfaces that 103 * don't share surface resources. 104 */ 105 #define VISU_UI_SURFACE_NAME_CHOOSE "<span size=\"smaller\"><i>"VISU_UI_SURFACE_NAME_STR"</i></span>" 106 107 GtkWidget* visu_ui_panel_surfaces_generateValues(int *nbValues, float **values, 108 gchar **name, float minVal, 109 float maxVal); 110 111 #endif 112