summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/clear_selection.h6
-rw-r--r--src/controller/clear_selection.sqc45
-rw-r--r--src/controller/keyboard.c28
-rw-r--r--src/controller/keyboard.h6
-rw-r--r--src/controller/selection_from_db.h9
-rw-r--r--src/controller/selection_from_db.sqc21
-rw-r--r--src/controller/selection_to_db.h9
-rw-r--r--src/controller/selection_to_db.sqc38
-rw-r--r--src/model/exp004base.sqc144
-rw-r--r--src/util/pick_convert.c50
-rw-r--r--src/util/pick_convert.h29
11 files changed, 385 insertions, 0 deletions
diff --git a/src/util/pick_convert.h b/src/util/pick_convert.h
new file mode 100644
index 0000000..a532b6e
--- a/dev/null
+++ b/src/util/pick_convert.h
@@ -0,0 +1,29 @@
1#ifndef PICK_CONVERT_H
2#define PICK_CONVERT_H
3
4/*
5 * Convert bounding box coordinates to a center point and delta x and
6 * y coordinates. This function initially designed to convert a
7 * two-point mouse selection to the parameters needed for
8 * gluPickMatrix.
9 *
10 * select_x: X coordinate of point used to begin selection.
11 *
12 * select_y: Y coordinate of point used to begin selection.
13 *
14 * x: X coordinate of point used to end selection.
15 *
16 * y: Y coordinate of point used to end selection.
17 *
18 * c_x: X coordinate in the center of the picking region.
19 *
20 * c_y: Y coordinate in the center of the picking region.
21 *
22 * w: Width of the picking region.
23 *
24 * h: Height of the picking region.
25 */
26void pick_convert (int select_x, int select_y, int x, int y,
27 double *c_x, double *c_y, double *w, double *h);
28
29#endif // PICK_CONVERT_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.