summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--r/connect.R2
-rw-r--r--src/Makefile.am3
-rw-r--r--src/controller/exp004reshape.c11
-rw-r--r--src/model/density_legend_geometry.c81
-rw-r--r--src/model/density_legend_geometry.h9
-rw-r--r--src/model/display_list_index.h6
-rw-r--r--src/model/exp004state.h14
-rw-r--r--src/util/check_error.c6
-rw-r--r--src/view/exp004geometry.c7
-rw-r--r--src/view/exp004init.c8
-rw-r--r--src/view/exp004view.c4
11 files changed, 124 insertions, 27 deletions
diff --git a/src/model/exp004state.h b/src/model/exp004state.h
index 1af8a5b..5a9761a 100644
--- a/src/model/exp004state.h
+++ b/src/model/exp004state.h
@@ -16,14 +16,16 @@
#define DEFAULT_COLOR_R 0.00
#define DEFAULT_COLOR_G 0.00
#define DEFAULT_COLOR_B 0.01
-#define DEFAULT_COLOR_A 0.25
+#define DEFAULT_COLOR_A (1.0 / 7.0)
#define SELECT_COLOR_R 0.00
#define SELECT_COLOR_G 0.00
#define SELECT_COLOR_B 0.00
#define SELECT_COLOR_A 0.75
-typedef enum { PROTEIN_GEOMETRY } LISTS;
+typedef enum
+{ PROTEIN_GEOMETRY, DENSITY_LEGEND_GEOMETRY } LISTS;
+#define NUM_LISTS 2
/*
* Maintain state of the model.
@@ -61,10 +63,10 @@ typedef struct
*/
struct
{
- float min_x;
- float max_x;
- float min_y;
- float max_y;
+ double min_x;
+ double max_x;
+ double min_y;
+ double max_y;
} ortho;
/*

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.