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 OBJECTLIST_H
45 #define OBJECTLIST_H
46 
47 #include <glib.h>
48 #include <GL/glu.h>
49 
50 #include <renderingMethods/elementRenderer.h>
51 
52 int visu_gl_objectlist_new(int size);
53 void visu_gl_objectlist_init(void);
54 
55 /**
56  * VisuGlArrowCentering:
57  * @VISU_GL_ARROW_ORIGIN_CENTERED: the arrows are positioned with respect to the
58  * point between tail and hat.
59  * @VISU_GL_ARROW_BOTTOM_CENTERED: the arrows are positioned with respect to the bottom
60  * of the arrow ;
61  * @VISU_GL_ARROW_TAIL_CENTERED: the arrows are positioned with respect to the
62  * center of the tail part ;
63  * @VISU_GL_ARROW_CENTERED: the arrows are centered.
64  *
65  * The way to draw arrows (see visu_gl_drawSmoothArrow() for instance).
66  */
67 typedef enum
68   {
69     VISU_GL_ARROW_ORIGIN_CENTERED,
70     VISU_GL_ARROW_BOTTOM_CENTERED,
71     VISU_GL_ARROW_TAIL_CENTERED,
72     VISU_GL_ARROW_CENTERED
73   } VisuGlArrowCentering;
74 
75 void visu_gl_drawSmoothArrow(GLUquadricObj *obj, VisuGlArrowCentering centering,
76                              float tailLength, float tailRadius, float tailN,
77                              const VisuElementRenderer *tailRenderer,
78                              float hatLength, float hatRadius, float hatN,
79                              const VisuElementRenderer *hatRenderer);
80 void visu_gl_drawEdgeArrow(VisuGlArrowCentering centering,
81                            float tailLength, float tailRadius,
82                            const VisuElementRenderer *tailRenderer, float hatLength,
83                            float hatRadius, const VisuElementRenderer *hatRenderer);
84 void visu_gl_drawEllipsoid(GLUquadricObj *obj,
85                            float aAxis, float bAxis,
86                            float n,const  VisuElementRenderer *renderer);
87 void visu_gl_drawTorus(GLUquadricObj *obj, float radius,
88                        float ratio, int nA, int nB, const VisuElementRenderer *renderer);
89 void visu_gl_drawDistance(float xyzRef[3], float xyz[3], gboolean drawLength);
90 void visu_gl_drawAngle(float xyzRef[3], float xyzRef2[3],
91                        float xyz[3], guint id, gboolean drawLength);
92 
93 #endif
94