summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/Makefile.am14
-rw-r--r--src/controller/clear_selection.sqc2
-rw-r--r--src/controller/exp004processhits.c6
-rw-r--r--src/controller/exp004processhits.h2
-rw-r--r--src/controller/exp004reshape.c2
-rw-r--r--src/controller/selection_from_db.sqc2
-rw-r--r--src/model/exp004state.h3
-rw-r--r--src/model/geometry/density_legend_geometry.c (renamed from src/model/density_legend_geometry.c)4
-rw-r--r--src/model/geometry/density_legend_geometry.h (renamed from src/model/density_legend_geometry.h)0
-rw-r--r--src/model/geometry/map_geometry.c40
-rw-r--r--src/model/geometry/map_geometry.h (renamed from src/model/map_geometry.h)0
-rw-r--r--src/model/geometry/protein_geometry.c (renamed from src/model/protein_geometry.c)2
-rw-r--r--src/model/geometry/protein_geometry.h (renamed from src/model/protein_geometry.h)0
-rw-r--r--src/model/geometry/protein_selected_geometry.c30
-rw-r--r--src/model/geometry/protein_selected_geometry.h9
-rw-r--r--src/model/map_geometry.c27
-rw-r--r--src/model/selection_info_init.c2
-rw-r--r--src/view/exp004init.c8
18 files changed, 106 insertions, 47 deletions
diff --git a/src/model/geometry/protein_selected_geometry.c b/src/model/geometry/protein_selected_geometry.c
new file mode 100644
index 0000000..fb37085
--- a/dev/null
+++ b/src/model/geometry/protein_selected_geometry.c
@@ -0,0 +1,30 @@
1#include "protein_selected_geometry.h"
2#include "../../view/exp004state0.h"
3#include <GL/glut.h>
4
5#define S exp004state0
6
7void
8protein_selected_geometry (void)
9{
10 GLUquadricObj *obj = gluNewQuadric ();
11 gluQuadricDrawStyle (obj, GLU_FILL);
12
13 glNewList (S.list_offset + PROTEIN_SELECTED_GEOMETRY, GL_COMPILE);
14
15 glColor4f (255.0, 255.0, 0.0, 0.8);
16
17 /*
18 * The radius of this disk is relative to the radius of the sphere
19 * used for the protein geometry however this dependency is not captured
20 * in the code. Perhaps a variable radius for the proteins should be
21 * defined in the state object.
22 */
23 gluDisk (obj, 0.04, 0.05, 20, 20);
24
25 glEndList ();
26
27 gluDeleteQuadric (obj);
28
29 return;
30}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.