r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / floatautos.h
blob76e641cd9a5b879e3ce29bdb9019bedf64079fb3
1 #ifndef FLOATAUTOS_H
2 #define FLOATAUTOS_H
4 #include "autos.h"
5 #include "edl.inc"
6 #include "guicast.h"
7 #include "filexml.inc"
8 #include "floatauto.inc"
10 class FloatAutos : public Autos
12 public:
13 FloatAutos(EDL *edl,
14 Track *track,
15 int color,
16 float min,
17 float max,
18 float default_,
19 int virtual_h = AUTOS_VIRTUAL_HEIGHT,
20 int use_floats = 0);
21 ~FloatAutos();
23 int get_track_pixels(int zoom_track, int pixel, int &center_pixel, float &yscale);
24 int draw_joining_line(BC_SubWindow *canvas, int vertical, int center_pixel, int x1, int y1, int x2, int y2);
25 float fix_value(float value);
26 int get_testy(float slope, int cursor_x, int ax, int ay);
27 int automation_is_constant(int64_t start,
28 int64_t length,
29 int direction,
30 double &constant);
31 double get_automation_constant(int64_t start, int64_t end);
32 // Get value at a specific point
33 float get_value(int64_t position,
34 int direction,
35 FloatAuto* &previous,
36 FloatAuto* &next);
37 void get_fade_automation(double &slope,
38 double &intercept,
39 int64_t input_position,
40 int64_t &slope_len,
41 int direction);
42 float value_to_percentage(float value);
44 int dump();
45 Auto* add_auto(int64_t position, float value);
46 Auto* append_auto();
47 Auto* new_auto();
48 int use_floats;
52 #endif