Initial revision
[gpiv.git] / src / piveval.h
blobaf65f5ad9bf1428fd0ceb10172c84f40f2218bae
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4 c-style: "K&R" -*- */
3 /*----------------------------------------------------------------------
5 gpiv - Graphic program for Particle Image Velocimetry, based on gtk/gnome
6 libraries.
8 Copyright (C) 2002 Gerber van der Graaf
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)
15 any later version.
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 ----------------------------------------------------------------------*/
29 * (callback) functions for Piv evaluation window/tabulator
30 * $Log: piveval.h,v $
31 * Revision 1.1 2003-06-17 17:10:52 gerber
32 * Initial revision
36 #ifndef PIVEVAL_H
37 #define PIVEVAL_H
40 void
41 on_radiobutton_piv_mouse(GtkWidget *widget,
42 gpointer data);
44 void
45 on_radiobutton_piv_mouse1_enter(GtkWidget *widget,
46 gpointer data);
47 void
48 on_radiobutton_piv_mouse2_enter(GtkWidget *widget,
49 gpointer data);
50 void
51 on_radiobutton_piv_mouse3_enter(GtkWidget *widget,
52 gpointer data);
53 void
54 on_radiobutton_piv_mouse4_enter(GtkWidget *widget,
55 gpointer data);
56 void
57 on_radiobutton_piv_mouse5_enter(GtkWidget *widget,
58 gpointer data);
59 void
60 on_radiobutton_piv_mouse6_enter(GtkWidget *widget,
61 gpointer data);
62 void
63 on_radiobutton_piv_mouse7_enter(GtkWidget *widget,
64 gpointer data);
67 /*--------------------------------------------------------------------
68 entries for first, last, and pre-shift columns and rows */
70 void
71 on_spinbutton_piv_int(GtkSpinButton *widget,
72 GtkWidget *entry);
75 /*--------------------------------------------------------------------
76 radio buttons of first, second interrogation sizes and shift (adjacent
77 distances */
79 void
80 on_radiobutton_piv_int(GtkWidget *widget,
81 gpointer data);
83 void
84 on_toggle_piv(GtkWidget *widget,
85 gpointer data);
87 void
88 on_button_piv(GtkWidget *widget,
89 gpointer data);
91 void
92 on_toolbar_chackbutton_piv(GtkWidget *widget,
93 gpointer data);
95 /*--------------------------------------------------------------------
96 showing interrogation area's, covariance function and
97 displacement vector*/
98 gboolean
99 on_darea_piv_disprocess_int1_expose (GtkWidget *widget,
100 GdkEventExpose *event,
101 gpointer user_data);
103 gboolean
104 on_darea_piv_disprocess_int2_expose (GtkWidget *widget,
105 GdkEventExpose *event,
106 gpointer user_data);
107 gboolean
108 on_darea_piv_disprocess_cov_expose (GtkWidget *widget,
109 GdkEventExpose *event,
110 gpointer user_data);
112 void
113 on_checkbutton_piv_disprocess_enter(GtkWidget *widget,
114 gpointer data);
116 void
117 on_checkbutton_piv_disprocess(GtkWidget *widget,
118 gpointer data);
120 void
121 on_button_piv_enter(GtkWidget *widget,
122 gpointer data);
124 void
125 adjust_radiobutton_piv_int(PivEval * piveval,
126 int int_size_1);
130 * Other evaluation functions
132 void
133 exec_piv(GpivConsole * gpiv);
135 void
136 interrogate(PivData * piv_data, /* output piv data from image analysis */
137 unsigned char **img_1, /* raw (binary) image data of first piv image */
138 unsigned char **img_2, /* raw (binary) image data of second piv image */
139 GpivConsole *gpiv); /* console widgets structure */
141 void
142 display_piv_vector(gint i,
143 gint j,
144 PivData piv_data,
145 PivEval * piveval);
147 void
148 display_img_intreg1(float **intreg1,
149 int int_size,
150 PivEval * piveval);
152 void
153 display_img_intreg2(float **intreg2,
154 int int_size,
155 PivEval * piveval);
157 void
158 display_img_cov(Covariance * cov,
159 int int_size,
160 PivEval * piveval);
162 #endif /* PIVEVAL_H */