r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / floatauto.h
blobf42f6d0077661ba2695b0ba5e94c540029802381
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);
26 float value_to_percentage();
27 float invalue_to_percentage();
28 float outvalue_to_percentage();
29 float percentage_to_value(float percentage);
30 float percentage_to_invalue(float percentage);
31 float percentage_to_outvalue(float percentage);
33 // Control values relative to value
34 float value, control_in_value, control_out_value;
35 // Control positions relative to value position
36 int64_t control_in_position, control_out_position;
38 private:
39 int value_to_str(char *string, float value);
44 #endif