Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

floatauto.h

Go to the documentation of this file.
00001 #ifndef FLOATAUTO_H
00002 #define FLOATAUTO_H
00003 
00004 // Automation point that takes floating point values
00005 
00006 class FloatAuto;
00007 
00008 #include "auto.h"
00009 #include "edl.inc"
00010 #include "floatautos.inc"
00011 
00012 class FloatAuto : public Auto
00013 {
00014 public:
00015         FloatAuto() {};
00016         FloatAuto(EDL *edl, FloatAutos *autos);
00017         ~FloatAuto();
00018 
00019         int operator==(Auto &that);
00020         int operator==(FloatAuto &that);
00021         int identical(FloatAuto *src);
00022         void copy_from(Auto *that);
00023         void copy_from(FloatAuto *that);
00024         void copy(int64_t start, int64_t end, FileXML *file, int default_only);
00025         void load(FileXML *xml);
00026 
00027         float value_to_percentage();
00028         float invalue_to_percentage();
00029         float outvalue_to_percentage();
00030 /*      float percentage_to_value(float percentage);
00031  *      float percentage_to_invalue(float percentage);
00032  *      float percentage_to_outvalue(float percentage);
00033  */
00034 
00035 // Control values are relative to value
00036         float value, control_in_value, control_out_value;
00037 // Control positions relative to value position for drawing
00038         int64_t control_in_position, control_out_position;
00039 
00040 private:
00041         int value_to_str(char *string, float value);
00042 };
00043 
00044 
00045 
00046 #endif

Generated on Sun Jan 8 13:38:55 2006 for Cinelerra-svn by  doxygen 1.4.4