4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5 * Copyright (C) 2003-2016 Cinelerra CV contributors
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30 class MasterLayer : public BC_PopupMenu
33 MasterLayer(MotionCVMain *plugin, MotionCVWindow *gui, int x, int y);
35 void create_objects();
36 static int calculate_w(MotionCVWindow *gui);
37 static int from_text(char *text);
38 static const char* to_text(int mode);
43 class Mode1 : public BC_PopupMenu
46 Mode1(MotionCVMain *plugin, MotionCVWindow *gui, int x, int y);
48 void create_objects();
49 static int calculate_w(MotionCVWindow *gui);
50 static int from_text(char *text);
51 static const char* to_text(int mode);
56 class Mode2 : public BC_PopupMenu
59 Mode2(MotionCVMain *plugin, MotionCVWindow *gui, int x, int y);
61 void create_objects();
62 static int calculate_w(MotionCVWindow *gui);
63 static int from_text(char *text);
64 static const char* to_text(int mode);
69 class Mode3 : public BC_PopupMenu
72 Mode3(MotionCVMain *plugin, MotionCVWindow *gui, int x, int y);
74 void create_objects();
75 static int calculate_w(MotionCVWindow *gui);
76 static void from_text(int *horizontal_only, int *vertical_only, char *text);
77 static const char* to_text(int horizontal_only, int vertical_only);
83 class TrackSingleFrame : public BC_Radial
86 TrackSingleFrame(MotionCVMain *plugin,
95 class TrackFrameNumber : public BC_TextBox
98 TrackFrameNumber(MotionCVMain *plugin,
103 MotionCVMain *plugin;
107 class TrackPreviousFrame : public BC_Radial
110 TrackPreviousFrame(MotionCVMain *plugin,
115 MotionCVMain *plugin;
119 class PreviousFrameSameBlock : public BC_Radial
122 PreviousFrameSameBlock(MotionCVMain *plugin,
127 MotionCVMain *plugin;
131 class GlobalRange : public BC_IPot
134 GlobalRange(MotionCVMain *plugin,
139 MotionCVMain *plugin;
143 class RotationRange : public BC_IPot
146 RotationRange(MotionCVMain *plugin,
150 MotionCVMain *plugin;
153 class BlockSize : public BC_IPot
156 BlockSize(MotionCVMain *plugin,
161 MotionCVMain *plugin;
165 class MotionCVBlockX : public BC_FPot
168 MotionCVBlockX(MotionCVMain *plugin,
174 MotionCVMain *plugin;
177 class MotionCVBlockY : public BC_FPot
180 MotionCVBlockY(MotionCVMain *plugin,
186 MotionCVMain *plugin;
189 class MotionCVBlockXText : public BC_TextBox
192 MotionCVBlockXText(MotionCVMain *plugin,
198 MotionCVMain *plugin;
201 class MotionCVBlockYText : public BC_TextBox
204 MotionCVBlockYText(MotionCVMain *plugin,
210 MotionCVMain *plugin;
213 class GlobalSearchPositions : public BC_PopupMenu
216 GlobalSearchPositions(MotionCVMain *plugin,
220 void create_objects();
222 MotionCVMain *plugin;
225 class RotationSearchPositions : public BC_PopupMenu
228 RotationSearchPositions(MotionCVMain *plugin,
232 void create_objects();
234 MotionCVMain *plugin;
237 class MotionCVMagnitude : public BC_IPot
240 MotionCVMagnitude(MotionCVMain *plugin,
244 MotionCVMain *plugin;
247 class MotionCVReturnSpeed : public BC_IPot
250 MotionCVReturnSpeed(MotionCVMain *plugin,
254 MotionCVMain *plugin;
259 class MotionCVDrawVectors : public BC_CheckBox
262 MotionCVDrawVectors(MotionCVMain *plugin,
267 MotionCVMain *plugin;
271 class AddTrackedFrameOffset : public BC_CheckBox
274 AddTrackedFrameOffset(MotionCVMain *plugin,
280 MotionCVMain *plugin;
283 class MotionCVTrackingFile : public BC_TextBox
286 MotionCVTrackingFile(MotionCVMain *plugin, const char *filename,
287 MotionCVWindow *gui, int x, int y);
289 MotionCVMain *plugin;
293 class MotionCVGlobal : public BC_CheckBox
296 MotionCVGlobal(MotionCVMain *plugin,
302 MotionCVMain *plugin;
305 class MotionCVRotate : public BC_CheckBox
308 MotionCVRotate(MotionCVMain *plugin,
314 MotionCVMain *plugin;
319 class MotionCVWindow : public PluginClientWindow
322 MotionCVWindow(MotionCVMain *plugin);
325 void create_objects();
327 char* get_radius_title();
329 GlobalRange *global_range_w;
330 GlobalRange *global_range_h;
331 RotationRange *rotation_range;
332 BlockSize *global_block_w;
333 BlockSize *global_block_h;
334 BlockSize *rotation_block_w;
335 BlockSize *rotation_block_h;
336 MotionCVBlockX *block_x;
337 MotionCVBlockY *block_y;
338 MotionCVBlockXText *block_x_text;
339 MotionCVBlockYText *block_y_text;
340 GlobalSearchPositions *global_search_positions;
341 RotationSearchPositions *rotation_search_positions;
342 MotionCVMagnitude *magnitude;
343 MotionCVReturnSpeed *return_speed;
345 MotionCVDrawVectors *vectors;
346 MotionCVTrackingFile *tracking_file;
347 MotionCVGlobal *global;
348 MotionCVRotate *rotate;
349 AddTrackedFrameOffset *addtrackedframeoffset;
350 TrackSingleFrame *track_single;
351 TrackFrameNumber *track_frame_number;
352 TrackPreviousFrame *track_previous;
353 PreviousFrameSameBlock *previous_same;
354 MasterLayer *master_layer;
359 MotionCVMain *plugin;