minor changes; mostly for new Context Help feature
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / sketcher / sketcher.h
index dcf7a6ba34772c08e92312ed311c23ce4e43e4f0..3fb1afb1e27555c04f453ef98d62bccccc776de0 100644 (file)
@@ -109,6 +109,7 @@ public:
        void save_data(FileXML &output);
        void read_data(FileXML &input);
        static const char *types[ARC_SZ];
+       void update_parameter(SketcherPoint *the, SketcherPoint *src);
 };
 class SketcherPoints : public ArrayList<SketcherPoint *>
 {
@@ -140,6 +141,7 @@ public:
 
        SketcherVPen *new_vpen(VFrame *out);
        void draw(VFrame *img, int flags);
+       void update_parameter(SketcherCurve *the, SketcherCurve *src);
 };
 class SketcherCurves : public ArrayList<SketcherCurve *>
 {
@@ -154,6 +156,8 @@ class SketcherConfig
 public:
        SketcherConfig();
        ~SketcherConfig();
+       void read_data(KeyFrame *keyframe);
+       void save_data(KeyFrame *keyframe);
 
        SketcherCurves curves;
        int equivalent(SketcherConfig &that);
@@ -161,12 +165,11 @@ public:
        void interpolate(SketcherConfig &prev, SketcherConfig &next,
                long prev_frame, long next_frame, long current_frame);
        double nearest_point(int &ci, int &pi, coord x, coord y);
+       int new_curve(int pen, int width, int color);
        void limits();
        void dump();
 
-       int drag;
        int aliasing;
-       int cv_selected, pt_selected;
 };
 
 class Sketcher : public PluginVClient
@@ -178,8 +181,13 @@ public:
        int is_realtime();
        int is_synthesis();
        void update_gui();
+       void render_gui(void *data);
+       int is_dragging();
        void save_data(KeyFrame *keyframe);
        void read_data(KeyFrame *keyframe);
+       void span_keyframes(KeyFrame *src, int64_t start, int64_t end);
+       void update_parameter(SketcherConfig &prev_config, SketcherConfig &src_config,
+               KeyFrame *keyframe);
        int new_curve(int pen, int width, int color);
        int new_curve();
        int new_point(SketcherCurve *cv, int arc, coord x, coord y, int idx=-1);
@@ -193,6 +201,8 @@ public:
        OverlayFrame *overlay_frame;
        int w, h, color_model, bpp, comp;
        int is_yuv, is_float;
+       int drag;
+       int cv_selected, pt_selected;
 };
 
 #endif