render effect segv, drag chkbox track coords, check mask active,
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / maskauto.h
index 31a11b92bccb3b2ee32c6085ce97dce539aef96c..847b18a7f2ff0acf639936ea4d7e69350ea3971c 100644 (file)
@@ -57,11 +57,11 @@ public:
        void copy_from(SubMask& ptr);
        void load(FileXML *file);
        void copy(FileXML *file);
-       void dump();
+       void dump(FILE *fp);
 
        char name[BCSTRLEN];
-       float fader; // 0 - 100
-       float feather; // 0 - 100
+       float fader; // -100 - 100
+       float feather; // -100 - 100
        ArrayList<MaskPoint*> points;
        MaskAuto *keyframe;
 };
@@ -74,6 +74,7 @@ public:
 
        int operator==(Auto &that);
        int operator==(MaskAuto &that);
+       bool is_maskauto() { return true; }
        int identical(MaskAuto *src);
        void load(FileXML *file);
        void copy(int64_t start, int64_t end, FileXML *file, int default_auto);
@@ -90,17 +91,16 @@ public:
 // Copy parameters to this which differ between ref & src
        void update_parameter(MaskAuto *ref, MaskAuto *src);
 
-       void dump();
+       void dump(FILE *fp);
 // Retrieve submask with clamping
        SubMask* get_submask(int number);
 // Translates all submasks
        void translate_submasks(float translate_x, float translate_y);
 // scale all submasks
        void scale_submasks(int orig_scale, int new_scale);
-
+       int has_active_mask();
 
        ArrayList<SubMask*> masks;
-// These are constant for the entire track
        int apply_before_plugins;
        int disable_opengl_masking;
 };