Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / floatauto.h
blob5aa8a7382176ad61410f37bd81896e002c29b0f7
1 #ifndef FLOATAUTO_H
2 #define FLOATAUTO_H
4 // Automation point that takes floating point values
6 class FloatAuto;
8 #include "auto.h"
9 #include "edl.inc"
10 #include "floatautos.inc"
12 class FloatAuto : public Auto
14 public:
15 FloatAuto() {};
16 FloatAuto(EDL *edl, FloatAutos *autos);
17 ~FloatAuto();
19 int operator==(Auto &that);
20 int operator==(FloatAuto &that);
21 int identical(FloatAuto *src);
22 void copy_from(Auto *that);
23 void copy_from(FloatAuto *that);
24 void copy(int64_t start, int64_t end, FileXML *file, int default_only);
25 void load(FileXML *xml);
27 float value_to_percentage();
28 float invalue_to_percentage();
29 float outvalue_to_percentage();
30 /* float percentage_to_value(float percentage);
31 * float percentage_to_invalue(float percentage);
32 * float percentage_to_outvalue(float percentage);
35 // Control values are relative to value
36 float value, control_in_value, control_out_value;
37 // X control positions relative to value position for drawing.
38 // In native units of the track.
39 int64_t control_in_position, control_out_position;
41 private:
42 int value_to_str(char *string, float value);
47 #endif
49 // Local Variables:
50 // mode: C++
51 // c-file-style: "linux"
52 // End: