4 * Copyright (C) 2008 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
26 class ShapeWipeWindow;
28 #include "overlayframe.inc"
29 #include "pluginvclient.h"
32 class ShapeWipeW2B : public BC_Radial
35 ShapeWipeW2B(ShapeWipeMain *plugin,
36 ShapeWipeWindow *window,
40 ShapeWipeMain *plugin;
41 ShapeWipeWindow *window;
44 class ShapeWipeB2W : public BC_Radial
47 ShapeWipeB2W(ShapeWipeMain *plugin,
48 ShapeWipeWindow *window,
52 ShapeWipeMain *plugin;
53 ShapeWipeWindow *window;
57 class ShapeWipeTumble : public BC_Tumbler
60 ShapeWipeTumble(ShapeWipeMain *client,
61 ShapeWipeWindow *window,
65 int handle_up_event();
66 int handle_down_event();
68 ShapeWipeMain *client;
69 ShapeWipeWindow *window;
72 class ShapeWipeShape : public BC_PopupTextBox
75 ShapeWipeShape(ShapeWipeMain *client,
76 ShapeWipeWindow *window,
82 ShapeWipeMain *client;
83 ShapeWipeWindow *window;
86 class ShapeWipeAntiAlias : public BC_CheckBox
89 ShapeWipeAntiAlias(ShapeWipeMain *plugin,
90 ShapeWipeWindow *window,
94 ShapeWipeMain *plugin;
95 ShapeWipeWindow *window;
99 class ShapeWipePreserveAspectRatio : public BC_CheckBox
102 ShapeWipePreserveAspectRatio(ShapeWipeMain *plugin,
103 ShapeWipeWindow *window,
107 ShapeWipeMain *plugin;
108 ShapeWipeWindow *window;
112 class ShapeWipeWindow : public PluginClientWindow
115 ShapeWipeWindow(ShapeWipeMain *plugin);
117 void create_objects();
121 ShapeWipeMain *plugin;
124 // ShapeWipeFilename *filename_widget;
125 ShapeWipeTumble *shape_tumbler;
126 ShapeWipeShape *shape_text;
127 ArrayList<BC_ListBoxItem*> shapes;
130 class ShapeWipeMain : public PluginVClient
133 ShapeWipeMain(PluginServer *server);
136 // required for all realtime plugins
137 int load_configuration();
138 int process_realtime(VFrame *incoming, VFrame *outgoing);
139 void save_data(KeyFrame *keyframe);
140 void read_data(KeyFrame *keyframe);
141 PluginClientWindow* new_window();
144 const char* plugin_title();
145 int read_pattern_image(int new_frame_width, int new_frame_height);
146 void reset_pattern_image();
149 ArrayList<char*> shape_paths;
150 ArrayList<char*> shape_titles;
152 int shapes_initialized;
154 char filename[BCTEXTLEN];
155 char last_read_filename[BCTEXTLEN];
156 char shape_name[BCTEXTLEN];
157 char current_name[BCTEXTLEN];
158 unsigned char **pattern_image;
159 unsigned char min_value;
160 unsigned char max_value;
165 int last_preserve_aspect;