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
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)
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 * widgets prototypes of display
30 * $Log: display_interface.h,v $
31 * Revision 1.1 2003-06-17 17:10:52 gerber
36 #ifndef DISPLAY_INTERFACE_H
37 #define DISPLAY_INTERFACE_H
39 #include "console_interface.h"
42 typedef struct _Image Image
;
44 GtkWidget
*img_display1
;
45 GtkWidget
*img_display2
;
51 * when image is displayed at gdk window
53 /* guchar rgbbuf_img[IMAGE_WIDTH_MAX * IMAGE_HEIGHT_MAX * 3]; */
58 * when image is displayed at gnome canvas
60 /* GnomeCanvasItem *gci_img1; */
61 /* GnomeCanvasItem *gci_img2; */
66 typedef struct _Intreg Intreg
;
81 GnomeCanvasItem
*gci_intreg1
[MAX_DATA
][MAX_DATA
];
82 GnomeCanvasItem
*gci_intreg2
[MAX_DATA
][MAX_DATA
];
86 typedef struct _GpivData GpivData
;
88 PivEvalPar piv_eval_par
;
90 PivData piv_data_scaled
;
94 GnomeCanvasItem
*gci_vector
[MAX_DATA
][MAX_DATA
];
97 Covariance cov
[MAX_DATA
][MAX_DATA
];
100 float **intreg1
[MAX_DATA
][MAX_DATA
];
101 float **intreg2
[MAX_DATA
][MAX_DATA
];
103 PivValidPar piv_valid_par
;
104 gboolean exist_valid
;
106 PivPostPar piv_post_par
;
108 ScalarData vor_data_scaled
;
110 gboolean exist_vor_scaled
;
112 GnomeCanvasItem
*gci_scalar_vor
[MAX_DATA
][MAX_DATA
];
114 ScalarData sstrain_data
;
115 ScalarData sstrain_data_scaled
;
116 gboolean exist_sstrain
;
117 gboolean exist_sstrain_scaled
;
118 gboolean saved_sstrain
;
119 GnomeCanvasItem
*gci_scalar_sstrain
[MAX_DATA
][MAX_DATA
];
121 ScalarData nstrain_data
;
122 ScalarData nstrain_data_scaled
;
123 gboolean exist_nstrain
;
124 gboolean exist_nstrain_scaled
;
125 gboolean saved_nstrain
;
126 GnomeCanvasItem
*gci_scalar_nstrain
[MAX_DATA
][MAX_DATA
];
130 typedef struct _Display Display
;
132 char fname_base
[MAX_CHARS
];
135 GtkWidget
*mwin
; /* main window for display */
137 GtkWidget
*button_origin
;
138 GtkWidget
*arrow_origin
;
139 GtkWidget
*scrolledwindow
;
140 GtkObject
*scrolledwindow_hadj
;
141 GtkObject
*scrolledwindow_vadj
;
143 GtkWidget
*view_options
;
151 gboolean stretch_window
;
153 gchar msg_display_default
[MAX_CHARS
];
155 GtkWidget
*display_menu
;
156 GnomeCanvasItem
*gci_bg
;
163 gboolean display_img1
;
164 gboolean display_img2
;
165 gboolean display_intregs
;
166 gboolean display_piv
;
167 gboolean display_vor
;
168 gboolean display_sstrain
;
169 gboolean display_nstrain
;
180 create_display (gchar
*fname
,
185 * widget for display menu
188 *create_display_menu (Display
* disp
);
192 * widgets for create_img_display
194 GtkWidget
*create_img_display (gchar
*fname
,
196 GtkWidget
*img_display_window
;
200 #endif /* DISPLAY_INTERFACE_H */