2 /*----------------------------------------------------------------------
4 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
7 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
8 Gerber van der Graaf <gerber_graaf@users.sourceforge.net>
10 This file is part of gpiv.
12 Gpiv is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2, or (at your option)
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 ----------------------------------------------------------------------*/
30 * $Log: dac_interface.h,v $
31 * Revision 1.2 2008-09-16 11:17:42 gerber
32 * Updated because of cvs conflict
34 * Revision 1.1 2005/01/19 15:53:41 gerber
35 * Initiation of Data Acquisition (DAC); trigerring of lasers and camera
36 * by using RTAI and Realtime Linux, recording images from IEEE1394
37 * (Firewire) IIDC compliant camera's
40 #ifndef GPIV_DAC_INTERFACE_H
41 #define GPIV_DAC_INTERFACE_H
45 /* #undef ENABLE_CAM */
47 typedef struct _DacDraw DacDraw
;
55 create_dacdraw(GpivCamVar
*cam_var
,
59 typedef struct _Cam Cam
;
64 /* GtkWidget *label_cam; */
65 GtkWidget
*camera_select
;
66 GtkWidget
*camera_select_menu
;
69 GtkWidget
*format_menu
;
70 GtkWidget
*format_menu_menu
;
71 /* GtkWidget *format0_menu_menu; */
74 GtkWidget
*fps_menu_menu
;
76 /* GtkWidget *frame_trigger; */
77 /* GtkWidget *vbox_trigger; */
78 GtkWidget
*hbox_trigger
;
79 GtkWidget
*trigger_external
;
80 GtkWidget
*trigger_polarity
;
81 GtkWidget
* trigger_mode
;
82 GtkWidget
* trigger_mode_menu
;
84 GtkWidget
*checkbutton_camera_trigger
;
85 GtkWidget
*camera_exposure
;
86 GtkWidget
*camera_exposure_menu
;
87 GtkWidget
*menu_item_camera_exposure_man
;
88 GtkWidget
*menu_item_camera_exposure_auto
;
89 GtkWidget
*menu_item_camera_exposure_na
;
90 GtkObject
*adj_exposure_scale
;
91 GtkWidget
*exposure_scale
;
93 GtkWidget
*camera_iris
;
94 GtkWidget
*camera_iris_menu
;
95 GtkWidget
*menu_item_camera_iris_man
;
96 GtkWidget
*menu_item_camera_iris_auto
;
97 GtkWidget
*menu_item_camera_iris_na
;
98 GtkObject
*adj_iris_scale
;
99 GtkWidget
*iris_scale
;
101 GtkWidget
*camera_shutter
;
102 GtkWidget
*camera_shutter_menu
;
103 GtkWidget
*menu_item_camera_shutter_man
;
104 GtkWidget
*menu_item_camera_shutter_auto
;
105 GtkWidget
*menu_item_camera_shutter_na
;
106 GtkObject
*adj_shutter_scale
;
107 GtkWidget
*shutter_scale
;
109 GtkWidget
*camera_gain
;
110 GtkWidget
*camera_gain_menu
;
111 GtkWidget
*menu_item_camera_gain_man
;
112 GtkWidget
*menu_item_camera_gain_auto
;
113 GtkWidget
*menu_item_camera_gain_na
;
114 GtkObject
*adj_gain_scale
;
115 GtkWidget
*gain_scale
;
117 GtkWidget
*camera_temp
;
118 GtkWidget
*camera_temp_menu
;
119 GtkWidget
*menu_item_camera_temp_man
;
120 GtkWidget
*menu_item_camera_temp_auto
;
121 GtkWidget
*menu_item_camera_temp_na
;
122 GtkObject
*adj_temp_scale
;
123 GtkWidget
*temp_scale
;
125 GtkWidget
*label_temp
;
126 GtkWidget
*label_label_temp
;
128 GtkWidget
*camera_zoom
;
129 GtkWidget
*camera_zoom_menu
;
130 GtkWidget
*menu_item_camera_zoom_man
;
131 GtkWidget
*menu_item_camera_zoom_auto
;
132 GtkWidget
*menu_item_camera_zoom_na
;
133 GtkObject
*adj_zoom_scale
;
134 GtkWidget
*zoom_scale
;
136 GtkWidget
*camera_pan
;
137 GtkWidget
*camera_pan_menu
;
138 GtkWidget
*menu_item_camera_pan_man
;
139 GtkWidget
*menu_item_camera_pan_auto
;
140 GtkWidget
*menu_item_camera_pan_na
;
141 GtkObject
*adj_pan_scale
;
142 GtkWidget
*pan_scale
;
144 GtkWidget
*camera_tilt
;
145 GtkWidget
*camera_tilt_menu
;
146 GtkWidget
*menu_item_camera_tilt_man
;
147 GtkWidget
*menu_item_camera_tilt_auto
;
148 GtkWidget
*menu_item_camera_tilt_na
;
149 GtkObject
*adj_tilt_scale
;
150 GtkWidget
*tilt_scale
;
153 GtkWidget
*button_cam_start
;
154 GtkWidget
*button_cam_stop
;
156 #endif /* ENABLE_CAM */
159 typedef struct _Trig Trig
;
161 GtkWidget
*frame_trigger
;
162 GtkWidget
*table_trigger
;
163 /* GtkWidget *label_trigger; */
164 GtkWidget
*vbox_trigger
;
165 GSList
*mouse_trigger_group
;
166 GtkWidget
*radiobutton_mouse_1
;
167 GtkWidget
*radiobutton_mouse_2
;
169 GtkWidget
*radiobutton_mouse_3
;
170 GtkWidget
*radiobutton_mouse_4
;
171 GtkWidget
*radiobutton_mouse_5
;
172 GtkWidget
*radiobutton_mouse_6
;
173 GtkWidget
*label_trigger_dt
;
174 GtkObject
*spinbutton_adj_trigger_dt
;
175 GtkWidget
*spinbutton_trigger_dt
;
176 GtkWidget
*label_trigger_incrdt
;
177 GtkObject
*spinbutton_adj_trigger_incrdt
;
178 GtkWidget
*spinbutton_trigger_incrdt
;
179 GtkWidget
*label_trigger_cap
;
180 GtkObject
*spinbutton_adj_trigger_cap
;
181 GtkWidget
*spinbutton_trigger_cap
;
182 #endif /* ENABLE_TRIG */
183 GtkWidget
*label_trigger_nf
;
184 GtkObject
*spinbutton_adj_trigger_nf
;
185 GtkWidget
*spinbutton_trigger_nf
;
187 GtkWidget
*button_trigger_start
;
188 GtkWidget
*button_trigger_stop
;
189 #endif /* ENABLE_TRIG */
194 typedef struct _Dac Dac
;
196 GtkWidget
*vbox_label
;
197 GtkWidget
*label_title
;
199 GtkWidget
*vbox_scroll
;
200 GtkWidget
*scrolledwindow
;
204 GtkWidget
*frame_fname
;
205 GtkWidget
*table_fname
;
206 GtkWidget
*label_fname
;
207 GtkWidget
*entry_fname
;
208 GtkWidget
*combo_fname
;
209 GList
*combo_fname_items
;
210 GtkWidget
*checkbutton_fname_date
;
211 GtkWidget
*checkbutton_fname_time
;
216 #endif /* ENABLE_CAM */
221 /* create_camera_exposure_menu(GtkWidget *main_window, */
224 /* create_camera_iris_menu(GtkWidget *main_window, */
228 /* create_camera_shutter_menu(GtkWidget *main_window, */
232 /* create_camera_gain_menu(GtkWidget *main_window, */
236 /* create_camera_menu(GtkWidget *main_window, */
240 create_dac(GnomeApp
*main_window
,
241 GtkWidget
*container
);
244 #endif /* GPIV_DAC_INTERFACE_H */