4 * Copyright (C) 1997-2011 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
22 #include "bcdisplayinfo.h"
23 #include "bcsignals.h"
26 #include "histogram.h"
27 #include "histogramconfig.h"
28 #include "histogramwindow.h"
31 #include "localsession.h"
33 #include "pluginserver.h"
41 HistogramWindow::HistogramWindow(HistogramMain *plugin)
42 : PluginClientWindow(plugin,
49 this->plugin = plugin;
53 HistogramWindow::~HistogramWindow()
58 void HistogramWindow::create_objects()
60 int margin = plugin->get_theme()->widget_border;
61 int x = margin, y = margin, x1 = margin;
63 add_subwindow(mode_v = new HistogramMode(plugin, x, y,
64 HISTOGRAM_VALUE, _("Value")));
65 x += mode_v->get_w() + margin;
66 add_subwindow(mode_r = new HistogramMode(plugin, x, y,
67 HISTOGRAM_RED, _("Red")));
68 x += mode_r->get_w() + margin;
69 add_subwindow(mode_g = new HistogramMode(plugin, x, y,
70 HISTOGRAM_GREEN, _("Green")));
71 x += mode_g->get_w() + margin;
72 add_subwindow(mode_b = new HistogramMode(plugin, x, y,
73 HISTOGRAM_BLUE, _("Blue")));
74 x = get_w() - margin - plugin->get_theme()->get_image_set("histogram_rgb_toggle")[0]->get_w();
75 add_subwindow(parade_on = new HistogramParade(plugin, this,
77 x -= parade_on->get_w() + margin;
78 add_subwindow(parade_off = new HistogramParade(plugin, this, x, y, 0));
81 y += parade_on->get_h() + margin;
82 add_subwindow(canvas_title1 = new BC_Title(margin, y, "-10%"));
83 x = get_w() - get_text_width(MEDIUMFONT, "110%") - margin;
84 add_subwindow(canvas_title2 = new BC_Title(x, y, "110%"));
86 y += canvas_title2->get_h() + margin;
88 canvas_h = get_h() - y - yS(210);
90 add_subwindow(low_input_carrot = new HistogramCarrot(plugin, this, x, y + canvas_h));
92 x = low_input_carrot->get_w() / 2 + x;
93 canvas_w = get_w() - x - x;
96 title2_x = x + (int)(canvas_w * -HIST_MIN_INPUT / FLOAT_RANGE);
97 title3_x = x + (int)(canvas_w * (1.0 - HIST_MIN_INPUT) / FLOAT_RANGE);
98 title4_x = x + (int)(canvas_w);
100 add_subwindow(canvas = new HistogramCanvas(plugin, this,
101 x, y, canvas_w, canvas_h));
104 draw_3d_border(x - 2, y - 2, canvas_w + 4, canvas_h + 4,
105 get_bg_color(), BLACK, MDGREY, get_bg_color());
107 // Calculate output curve with no value function
108 plugin->tabulate_curve(plugin->preview_lookup, plugin->mode, 0x10000, 0);
110 y += canvas->get_h();
113 add_subwindow(gamma_carrot = new HistogramCarrot(plugin, this,
114 canvas->get_x() + canvas->get_w() / 2 -
115 low_input_carrot->get_w() / 2 , y));
117 add_subwindow(high_input_carrot = new HistogramCarrot(plugin, this,
118 canvas->get_x() + canvas->get_w() -
119 low_input_carrot->get_w() / 2, y));
120 y += low_input_carrot->get_h() + margin;
122 // add_subwindow(title = new BC_Title(x, y, _("Input:")));
123 // x += title->get_w() + margin;
124 low_input = new HistogramText(plugin, this, x, y);
125 low_input->create_objects();
127 x = get_w() / 2 - low_input->get_w() / 2;
128 gamma = new HistogramText(plugin, this, x, y, 0.01, 100.);
129 gamma->create_objects();
131 x = get_w() - low_input->get_w() - margin;
132 high_input = new HistogramText(plugin, this, x, y);
133 high_input->create_objects();
135 y += high_input->get_h() + margin;
138 add_subwindow(output = new HistogramSlider(plugin, this,
139 canvas->get_x(), y, canvas->get_w(), yS(20), 0));
143 draw_3d_border(output->get_x() - 2, output->get_y() - 2,
144 output->get_w() + 4, output->get_h() + 4,
145 get_bg_color(), BLACK, MDGREY, get_bg_color());
146 y += output->get_h();
148 add_subwindow(low_output_carrot = new HistogramCarrot(plugin,
151 add_subwindow(high_output_carrot = new HistogramCarrot(plugin,
152 this, canvas->get_x() + canvas->get_w() -
153 low_output_carrot->get_w() / 2, y));
154 y += high_output_carrot->get_h() + margin;
157 // add_subwindow(title = new BC_Title(x, y, _("Output:")));
158 // x += title->get_w() + margin;
159 low_output = new HistogramText(plugin, this, x, y);
160 low_output->create_objects();
162 const char *linear_text = _("Linear");
163 int xs = get_w()/2 - xS(50);
164 x = xs - BC_Title::calculate_w(this, linear_text) - margin;
165 add_subwindow(log_title1 = new BC_Title(x, y, linear_text));
166 add_subwindow(log_slider = new HistogramLogSlider(plugin, this, xs, y));
167 xs += log_slider->get_w() + margin;
168 add_subwindow(log_title2 = new BC_Title(xs, y, _("Log")));
170 high_output = new HistogramText(plugin, this,
171 get_w() - low_output->get_w() - margin, y);
172 high_output->create_objects();
175 y += high_output->get_h() + margin;
177 add_subwindow(bar = new BC_Bar(x, y, get_w() - margin * 2));
178 y += bar->get_h() + margin;
180 add_subwindow(automatic = new HistogramAuto(plugin, x, y));
182 add_subwindow(threshold_title = new BC_Title(x2, y, _("Threshold:")));
184 threshold = new HistogramText(plugin, this, x3, y);
185 threshold->create_objects();
186 y += automatic->get_h() + margin;
188 add_subwindow(plot= new HistogramPlot(plugin, x, y));
189 add_subwindow(sum_frames = new HistogramSumFrames(plugin, x2, y));
190 y += plot->get_h() + margin;
193 add_subwindow(split = new HistogramSplit(plugin, x, y));
195 add_subwindow(reset = new HistogramReset(plugin, x, y + yS(5)));
205 int HistogramWindow::resize_event(int w, int h)
207 int xdiff = w - get_w();
208 int ydiff = h - get_h();
210 parade_on->reposition_window(parade_on->get_x() + xdiff,
212 parade_off->reposition_window(parade_off->get_x() + xdiff,
214 canvas_title2->reposition_window(canvas_title2->get_x() + xdiff,
215 canvas_title2->get_y());
217 // Canvas follows window size
218 canvas_w = canvas_w + xdiff;
219 canvas_h = canvas_h + ydiff;
220 canvas->reposition_window(canvas->get_x(), canvas->get_y(),
224 draw_3d_border(canvas->get_x() - 2, canvas->get_y() - 2,
225 canvas_w + 4, canvas_h + 4,
226 get_bg_color(), BLACK, MDGREY, get_bg_color());
228 low_input_carrot->reposition_window(low_input_carrot->get_x(),
229 low_input_carrot->get_y() + ydiff);
230 gamma_carrot->reposition_window(gamma_carrot->get_x(),
231 gamma_carrot->get_y() + ydiff);
232 high_input_carrot->reposition_window(high_input_carrot->get_x(),
233 high_input_carrot->get_y() + ydiff);
235 low_input->reposition_window(low_input->get_x(),
236 low_input->get_y() + ydiff);
237 gamma->reposition_window(w / 2 - gamma->get_w() / 2,
238 gamma->get_y() + ydiff);
239 high_input->reposition_window(high_input->get_x() + xdiff,
240 low_input->get_y() + ydiff);
242 output->reposition_window(output->get_x(),
243 output->get_y() + ydiff,
244 output->get_w() + xdiff,
249 draw_3d_border(output->get_x() - 2, output->get_y() - 2,
250 output->get_w() + 4, output->get_h() + 4,
251 get_bg_color(), BLACK, MDGREY, get_bg_color());
253 low_output_carrot->reposition_window(low_output_carrot->get_x(),
254 low_output_carrot->get_y() + ydiff);
255 high_output_carrot->reposition_window(high_output_carrot->get_x(),
256 high_output_carrot->get_y() + ydiff);
258 low_output->reposition_window(low_output->get_x(),
259 low_output->get_y() + ydiff);
260 int xs = (w - log_slider->get_w()) / 2;
261 int margin = plugin->get_theme()->widget_border;
262 log_title1->reposition_window(xs - log_title1->get_w() - margin,
263 log_title1->get_y() + ydiff);
264 log_slider->reposition_window(xs,
265 log_slider->get_y() + ydiff);
266 log_title2->reposition_window(xs + log_slider->get_w() + margin,
267 log_title2->get_y() + ydiff);
268 high_output->reposition_window(high_output->get_x() + xdiff,
269 high_output->get_y() + ydiff);
271 bar->reposition_window(bar->get_x(),
272 bar->get_y() + ydiff,
273 bar->get_w() + xdiff);
275 automatic->reposition_window(automatic->get_x(),
276 automatic->get_y() + ydiff);
277 threshold_title->reposition_window(threshold_title->get_x(),
278 threshold_title->get_y() + ydiff);
279 threshold->reposition_window(threshold->get_x(),
280 threshold->get_y() + ydiff);
281 plot->reposition_window(plot->get_x(),
282 plot->get_y() + ydiff);
283 sum_frames->reposition_window(sum_frames->get_x(),
284 sum_frames->get_y() + ydiff);
286 split->reposition_window(split->get_x(),
287 split->get_y() + ydiff);
288 reset->reposition_window(reset->get_x(),
289 reset->get_y() + ydiff);
301 int HistogramWindow::keypress_event()
308 for(int i = 0; i < HISTOGRAM_MODES; i++)
310 if(active_value == &plugin->config.gamma[i])
314 if(get_keypress() == RIGHT || get_keypress() == UP)
316 *active_value += sign * PRECISION;
317 plugin->config.boundaries();
319 plugin->send_configure_change();
323 if(get_keypress() == LEFT || get_keypress() == DOWN)
325 *active_value -= sign * PRECISION;
326 plugin->config.boundaries();
328 plugin->send_configure_change();
334 result = context_help_check_and_show();
339 void HistogramWindow::update(int do_canvases, int do_carrots, int do_text, int do_toggles)
342 automatic->update(plugin->config.automatic);
343 mode_v->update(plugin->mode == HISTOGRAM_VALUE ? 1 : 0);
344 mode_r->update(plugin->mode == HISTOGRAM_RED ? 1 : 0);
345 mode_g->update(plugin->mode == HISTOGRAM_GREEN ? 1 : 0);
346 mode_b->update(plugin->mode == HISTOGRAM_BLUE ? 1 : 0);
347 plot->update(plugin->config.plot);
348 sum_frames->update(plugin->config.sum_frames);
349 split->update(plugin->config.split);
350 parade_on->update(plugin->parade ? 1 : 0);
351 parade_off->update(plugin->parade ? 0 : 1);
352 log_slider->update(plugin->config.log_slider);
361 low_input_carrot->update();
362 high_input_carrot->update();
363 gamma_carrot->update();
364 low_output_carrot->update();
365 high_output_carrot->update();
371 high_input->update();
372 low_output->update();
373 high_output->update();
379 void HistogramWindow::draw_canvas_mode(int mode, int color, int y, int h)
383 int64_t *accum = plugin->accum[mode];
384 for( int k0=0,x=0; x<canvas_w; ++x ) {
385 int k1 = (HISTOGRAM_SLOTS * (x+1)) / canvas_w;
386 if( k0 == k1 ) continue;
387 int64_t m = accum[k0];
388 for( int k=k0; ++k<k1; ) {
389 if( m < accum[k] ) m = accum[k];
391 if( max < m ) max = m;
395 double log_slider = plugin->config.log_slider;
396 double lin_slider = 1. - log_slider;
397 double lin_max = (lin_slider * h) / max;
398 double log_max = (log_slider * h) / log(max);
399 for( int k0=0,x=0; x<canvas_w; ++x ) {
400 int k1 = (HISTOGRAM_SLOTS * (x+1)) / canvas_w;
401 if( k0 == k1 ) continue;
402 int64_t m = accum[k0];
403 for( int k=k0; ++k<k1; ) {
404 if( m < accum[k] ) m = accum[k];
407 double vv = m > 0 ? (double)m : 0;
408 m = vv > 0 ? vv*lin_max + log(vv)*log_max : 0;
409 canvas->set_color(BLACK);
411 canvas->draw_line(x, y, x, y0);
412 canvas->set_color(color);
413 canvas->draw_line(x, y0, x, y1);
418 canvas->set_color(BLACK);
419 canvas->draw_box(0, y, canvas_w, h);
423 canvas->set_color(WHITE);
424 canvas->set_line_width(2);
428 for( int x=0; x<canvas_w; ++x ) {
429 float input = (float)x / canvas_w * FLOAT_RANGE + HIST_MIN_INPUT;
430 float output = plugin->calculate_level(input, mode, 0);
431 int y2 = h - (int)(output * h);
433 canvas->draw_line(x-1, y+y1, x, y+y2);
437 canvas->set_line_width(1);
441 void HistogramWindow::update_canvas()
445 draw_canvas_mode(HISTOGRAM_RED, RED, 0, canvas_h / 3);
446 draw_canvas_mode(HISTOGRAM_GREEN, GREEN, canvas_h / 3, canvas_h / 3);
447 draw_canvas_mode(HISTOGRAM_BLUE, BLUE, canvas_h * 2 / 3, canvas_h - canvas_h * 2 / 3);
451 draw_canvas_mode(plugin->mode, MEGREY, 0, canvas_h);
455 // Draw 0 and 100% lines.
456 canvas->set_color(RED);
457 int x = (int)(canvas_w * -HIST_MIN_INPUT / FLOAT_RANGE);
458 canvas->draw_line(x, 0, x, canvas_h);
459 x = (int)(canvas_w * (1.0 - HIST_MIN_INPUT) / FLOAT_RANGE);
460 canvas->draw_line(x, 0, x, canvas_h);
465 HistogramParade::HistogramParade(HistogramMain *plugin, HistogramWindow *gui,
466 int x, int y, int value)
468 value ? plugin->get_theme()->get_image_set("histogram_rgb_toggle") :
469 plugin->get_theme()->get_image_set("histogram_toggle"),
472 this->plugin = plugin;
476 set_tooltip(_("RGB Parade on"));
478 set_tooltip(_("RGB Parade off"));
481 int HistogramParade::handle_event()
484 plugin->parade = value;
485 gui->update(1, 0, 0, 1);
489 HistogramCanvas::HistogramCanvas(HistogramMain *plugin, HistogramWindow *gui,
490 int x, int y, int w, int h)
491 : BC_SubWindow(x, y, w, h, BLACK)
493 this->plugin = plugin;
497 int HistogramCanvas::button_press_event()
500 if(is_event_win() && cursor_inside())
502 if(!plugin->dragging_point &&
503 (!plugin->config.automatic || plugin->mode == HISTOGRAM_VALUE))
511 int HistogramCanvas::cursor_motion_event()
513 if(is_event_win() && cursor_inside())
519 int HistogramCanvas::button_release_event()
525 HistogramReset::HistogramReset(HistogramMain *plugin, int x, int y)
526 : BC_GenericButton(x, y, _("Reset"))
528 this->plugin = plugin;
530 int HistogramReset::handle_event()
532 plugin->config.reset(0);
533 ((HistogramWindow*)plugin->thread->window)->update(1, 1, 1, 1);
534 plugin->send_configure_change();
539 HistogramLogSlider::HistogramLogSlider(HistogramMain *plugin, HistogramWindow *gui,
541 : BC_FSlider(x, y, 0, xS(100), xS(100), 0., 1., plugin->config.log_slider)
544 this->plugin = plugin;
548 int HistogramLogSlider::handle_event()
550 plugin->config.log_slider = get_value();
551 plugin->send_configure_change();
555 HistogramCarrot::HistogramCarrot(HistogramMain *plugin, HistogramWindow *gui, int x, int y)
556 : BC_Toggle(x, y, plugin->get_theme()->get_image_set("histogram_carrot"), 0)
558 this->plugin = plugin;
563 HistogramCarrot::~HistogramCarrot()
567 float* HistogramCarrot::get_value()
569 if( this == gui->low_input_carrot )
570 return &plugin->config.low_input[plugin->mode];
571 if( this == gui->high_input_carrot )
572 return &plugin->config.high_input[plugin->mode];
573 if( this == gui->gamma_carrot )
574 return &plugin->config.gamma[plugin->mode];
575 if( this == gui->low_output_carrot )
576 return &plugin->config.low_output[plugin->mode];
577 if( this == gui->high_output_carrot )
578 return &plugin->config.high_output[plugin->mode];
582 void HistogramCarrot::update()
585 float *value = get_value();
587 if(this != gui->gamma_carrot)
589 new_x = (int)(gui->canvas->get_x() +
590 (*value - HIST_MIN_INPUT) *
591 gui->canvas->get_w() /
592 (HIST_MAX_INPUT - HIST_MIN_INPUT) -
597 float min = plugin->config.low_input[plugin->mode];
598 float max = plugin->config.high_input[plugin->mode];
599 float delta = (max - min) / 2.0;
600 float mid = min + delta;
601 float tmp = log10(1.0 / *value);
602 tmp = mid + delta * tmp;
604 //printf("HistogramCarrot::update %d %f %f\n", __LINE__, *value, tmp);
606 new_x = gui->canvas->get_x() -
608 (int)(gui->canvas->get_w() *
609 (tmp - HIST_MIN_INPUT) /
610 (HIST_MAX_INPUT - HIST_MIN_INPUT));
613 reposition_window(new_x, get_y());
616 int HistogramCarrot::button_press_event()
618 if(is_event_win() && get_buttonpress() == 1)
622 set_status(BC_Toggle::TOGGLE_DOWN);
624 BC_Toggle::update(0);
625 gui->active_value = get_value();
626 // Disable the other toggles
627 if(this != gui->low_input_carrot) gui->low_input_carrot->BC_Toggle::update(0);
628 if(this != gui->high_input_carrot) gui->high_input_carrot->BC_Toggle::update(0);
629 if(this != gui->gamma_carrot) gui->gamma_carrot->BC_Toggle::update(0);
630 if(this != gui->low_output_carrot) gui->low_output_carrot->BC_Toggle::update(0);
631 if(this != gui->high_output_carrot) gui->high_output_carrot->BC_Toggle::update(0);
632 starting_x = get_x();
633 offset_x = gui->get_relative_cursor_x();
634 offset_y = gui->get_relative_cursor_y();
635 //printf("HistogramCarrot::button_press_event %d %d %d\n", __LINE__, starting_x, offset_x);
643 int HistogramCarrot::button_release_event()
645 int result = BC_Toggle::button_release_event();
651 int HistogramCarrot::cursor_motion_event()
653 int cursor_x = gui->get_relative_cursor_x();
657 //printf("HistogramCarrot::cursor_motion_event %d %d\n", __LINE__, cursor_x);
658 int new_x = starting_x + cursor_x - offset_x;
662 float *value = get_value();
663 if(this == gui->gamma_carrot)
665 float min = gui->low_input_carrot->get_x();
666 float max = gui->high_input_carrot->get_x();
667 float delta = (max - min) / 2.0;
670 float mid = min + delta;
671 float tmp = (float)(new_x - mid) /
673 tmp = 1.0 / pow(10, tmp);
674 CLAMP(tmp, MIN_GAMMA, MAX_GAMMA);
676 //printf("HistogramCarrot::update %d %f\n", __LINE__, tmp);
681 int min_x = gui->canvas->get_x() - get_w() / 2;
682 int max_x = gui->canvas->get_x() + gui->canvas->get_w() - get_w() / 2;
683 CLAMP(new_x, min_x, max_x);
684 *value = HIST_MIN_INPUT +
685 (HIST_MAX_INPUT - HIST_MIN_INPUT) *
690 reposition_window(new_x, get_y());
694 (this == gui->low_input_carrot || this == gui->high_input_carrot),
697 plugin->send_configure_change();
706 HistogramSlider::HistogramSlider(HistogramMain *plugin, HistogramWindow *gui,
707 int x, int y, int w, int h, int is_input)
708 : BC_SubWindow(x, y, w, h)
710 this->plugin = plugin;
712 this->is_input = is_input;
716 int HistogramSlider::input_to_pixel(float input)
718 return (int)((input - HIST_MIN_INPUT) / FLOAT_RANGE * get_w());
721 void HistogramSlider::update()
725 //int half_h = get_h() / 2;
726 //int quarter_h = get_h() / 4;
727 int mode = plugin->mode;
732 clear_box(0, 0, w, h);
738 case HISTOGRAM_GREEN:
746 for( int i = 0; i < w; i++ ) {
747 int color = (int)(i * 0xff / w);
748 set_color(((r * color / 0xff) << 16) |
749 ((g * color / 0xff) << 8) |
751 draw_line(i, 0, i, h);
757 HistogramAuto::HistogramAuto(HistogramMain *plugin, int x, int y)
758 : BC_CheckBox(x, y, plugin->config.automatic, _("Automatic"))
760 this->plugin = plugin;
763 int HistogramAuto::handle_event()
765 plugin->config.automatic = get_value();
766 plugin->send_configure_change();
771 HistogramPlot::HistogramPlot(HistogramMain *plugin, int x, int y)
772 : BC_CheckBox(x, y, plugin->config.plot, _("Plot histogram"))
774 this->plugin = plugin;
777 int HistogramPlot::handle_event()
779 plugin->config.plot = get_value();
780 plugin->send_configure_change();
785 HistogramSumFrames::HistogramSumFrames(HistogramMain *plugin, int x, int y)
786 : BC_CheckBox(x, y, plugin->config.sum_frames, _("Sum frames"))
788 this->plugin = plugin;
791 int HistogramSumFrames::handle_event()
793 plugin->config.sum_frames = get_value();
794 plugin->send_configure_change();
799 HistogramSplit::HistogramSplit(HistogramMain *plugin, int x, int y)
800 : BC_CheckBox(x, y, plugin->config.split, _("Split output"))
802 this->plugin = plugin;
805 int HistogramSplit::handle_event()
807 plugin->config.split = get_value();
808 plugin->send_configure_change();
813 HistogramMode::HistogramMode(HistogramMain *plugin,
814 int x, int y, int value, char *text)
815 : BC_Radial(x, y, plugin->mode == value, text)
817 this->plugin = plugin;
820 int HistogramMode::handle_event()
822 HistogramWindow *gui = (HistogramWindow*)plugin->thread->window;
823 plugin->mode = value;
824 plugin->current_point= -1;
825 gui->active_value = 0;
826 gui->low_input_carrot->BC_Toggle::update(0);
827 gui->gamma_carrot->BC_Toggle::update(0);
828 gui->high_input_carrot->BC_Toggle::update(0);
829 gui->low_output_carrot->BC_Toggle::update(0);
830 gui->high_output_carrot->BC_Toggle::update(0);
831 gui->update(1, 1, 1, 1);
832 // plugin->send_configure_change();
837 HistogramText::HistogramText(HistogramMain *plugin,
838 HistogramWindow *gui, int x, int y, float hist_min, float hist_max)
839 : BC_TumbleTextBox(gui, 0.0, hist_min, hist_max, x, y, xS(80))
841 this->plugin = plugin;
843 set_precision(DIGITS);
844 set_increment(PRECISION);
847 float* HistogramText::get_value()
849 if( this == gui->low_input )
850 return &plugin->config.low_input[plugin->mode];
851 if( this == gui->high_input )
852 return &plugin->config.high_input[plugin->mode];
853 if( this == gui->gamma )
854 return &plugin->config.gamma[plugin->mode];
855 if( this == gui->low_output )
856 return &plugin->config.low_output[plugin->mode];
857 if( this == gui->high_output )
858 return &plugin->config.high_output[plugin->mode];
859 if( this == gui->threshold )
860 return &plugin->config.threshold;
864 int HistogramText::handle_event()
866 float *output = get_value();
868 *output = atof(get_text());
870 gui->update(1, 1, 0, 0);
871 plugin->send_configure_change();
875 void HistogramText::update()
877 float *output = get_value();
879 BC_TumbleTextBox::update(*output);