4 // Automation point that takes floating point values
7 #include "bezierautos.inc"
10 class BezierAuto
: public Auto
14 BezierAuto(EDL
*edl
, BezierAutos
*autos
);
17 int operator==(Auto
&that
);
18 int operator==(BezierAuto
&that
);
19 void copy_from(Auto
*that
);
20 void copy_from(BezierAuto
*that
);
21 void load(FileXML
*file
);
22 void copy(int64_t start
, int64_t end
, FileXML
*file
, int default_only
);
23 int draw(BC_SubWindow
*canvas
,
30 // return a selection type if selected
37 // 6 - control_in_zoom
38 // 7 - control_out_zoom
39 int select(BC_SubWindow
*canvas
,
50 // Z is no longer used
51 float center_x
, center_y
, center_z
;
52 // ***control points are relative to center points***
53 float control_in_x
, control_in_y
;
54 float control_out_x
, control_out_y
;
55 float control_in_z
, control_out_z
;
58 int identical(BezierAuto
*src
);
60 int value_to_str(char *string
, float value
) {};
61 int value_to_str(char *string
);
62 int get_control_points(int x
, int center_pixel
, float scale
, int *control_x
, int *control_y
, int vertical
);
63 int test_control_point(int center_x
, int center_y
, int x
, int y
, int cursor_x
, int cursor_y
);
64 float get_distance(int x1
, int y1
, int x2
, int y2
);