4 * Copyright (C) 1997-2012 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef __FINDOBJWINDOW_H__
24 #define __FINDOBJWINDOW_H__
27 #include "findobj.inc"
30 class FindObjScanFloat;
31 class FindObjScanFloatText;
32 class FindObjDrawBorder;
33 class FindObjDrawKeypoints;
35 class FindObjDrawObjectBorder;
36 class FindObjAlgorithm;
40 class FindObjLayer : public BC_TumbleTextBox
43 FindObjLayer(FindObjMain *plugin, FindObjWindow *gui,
44 int x, int y, int *value);
46 static int calculate_w(FindObjWindow *gui);
52 class FindObjScanFloat : public BC_FPot
55 FindObjScanFloat(FindObjMain *plugin, FindObjWindow *gui, int x, int y, float *value);
59 FindObjScanFloatText *center_text;
63 class FindObjScanFloatText : public BC_TextBox
66 FindObjScanFloatText(FindObjMain *plugin, FindObjWindow *gui, int x, int y, float *value);
70 FindObjScanFloat *center;
75 class FindObjDrawBorder : public BC_CheckBox
78 FindObjDrawBorder(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
84 class FindObjDrawKeypoints : public BC_CheckBox
87 FindObjDrawKeypoints(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
93 class FindObjReplace : public BC_CheckBox
96 FindObjReplace(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
102 class FindObjDrawObjectBorder : public BC_CheckBox
105 FindObjDrawObjectBorder(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
111 class FindObjAlgorithm : public BC_PopupMenu
114 FindObjAlgorithm(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
116 void create_objects();
117 static int calculate_w(FindObjWindow *gui);
118 static int from_text(char *text);
119 static char* to_text(int mode);
124 class FindObjUseFlann : public BC_CheckBox
127 FindObjUseFlann(FindObjMain *plugin, FindObjWindow *gui, int x, int y);
133 class FindObjBlend : public BC_IPot
136 FindObjBlend(FindObjMain *plugin, int x, int y, int *value);
142 class FindObjWindow : public PluginClientWindow
145 FindObjWindow(FindObjMain *plugin);
147 void create_objects();
149 FindObjAlgorithm *algorithm;
150 FindObjUseFlann *use_flann;
151 FindObjScanFloat *object_x, *object_y, *object_w, *object_h;
152 FindObjScanFloatText *object_x_text, *object_y_text, *object_w_text, *object_h_text;
153 FindObjScanFloat *scene_x, *scene_y, *scene_w, *scene_h;
154 FindObjScanFloatText *scene_x_text, *scene_y_text, *scene_w_text, *scene_h_text;
155 FindObjDrawKeypoints *draw_keypoints;
156 FindObjDrawBorder *draw_border;
157 FindObjReplace *replace_object;
158 FindObjDrawObjectBorder *draw_object_border;
159 FindObjLayer *object_layer;
160 FindObjLayer *scene_layer;
161 FindObjLayer *replace_layer;