projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add layout_scale preference, scaling cleanup, rework init bc_resources, init tip_info...
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
plugins
/
sketcher
/
sketcher.h
diff --git
a/cinelerra-5.1/plugins/sketcher/sketcher.h
b/cinelerra-5.1/plugins/sketcher/sketcher.h
index a40b17b068163faf9936572a0f1d665efe472867..1ddd5a478635d795b1dc3d441e861cce29078100 100644
(file)
--- a/
cinelerra-5.1/plugins/sketcher/sketcher.h
+++ b/
cinelerra-5.1/plugins/sketcher/sketcher.h
@@
-35,7
+35,7
@@
class Sketcher;
enum { PT_ID, PT_TY, PT_X, PT_Y, PT_SZ };
enum { CV_ID, CV_RAD, CV_PEN, CV_CLR, CV_ALP, CV_SZ };
enum { PT_ID, PT_TY, PT_X, PT_Y, PT_SZ };
enum { CV_ID, CV_RAD, CV_PEN, CV_CLR, CV_ALP, CV_SZ };
-enum {
PTY_OFF, PTY_LINE, PTY_CURVE, PTY_FILL, PTY
_SZ };
+enum {
ARC_OFF, ARC_LINE, ARC_CURVE, ARC_FILL, ARC
_SZ };
enum { PEN_OFF, PEN_SQUARE, PEN_PLUS, PEN_SLANT, PEN_XLANT, PEN_SZ };
typedef float coord;
enum { PEN_OFF, PEN_SQUARE, PEN_PLUS, PEN_SLANT, PEN_XLANT, PEN_SZ };
typedef float coord;
@@
-97,11
+97,11
@@
public:
class SketcherPoint
{
public:
class SketcherPoint
{
public:
- int id,
pty
;
+ int id,
arc
;
coord x, y;
coord x, y;
- void init(int id, int
pty
, coord x, coord y);
- SketcherPoint(int id, int
pty
, coord x, coord y);
+ void init(int id, int
arc
, coord x, coord y);
+ SketcherPoint(int id, int
arc
, coord x, coord y);
SketcherPoint(int id=-1);
SketcherPoint(SketcherPoint &pt);
~SketcherPoint();
SketcherPoint(int id=-1);
SketcherPoint(SketcherPoint &pt);
~SketcherPoint();
@@
-109,7
+109,7
@@
public:
void copy_from(SketcherPoint &that);
void save_data(FileXML &output);
void read_data(FileXML &input);
void copy_from(SketcherPoint &that);
void save_data(FileXML &output);
void read_data(FileXML &input);
- static const char *types[
PTY
_SZ];
+ static const char *types[
ARC
_SZ];
};
class SketcherPoints : public ArrayList<SketcherPoint *>
{
};
class SketcherPoints : public ArrayList<SketcherPoint *>
{
@@
-176,13
+176,14
@@
public:
~Sketcher();
PLUGIN_CLASS_MEMBERS2(SketcherConfig)
int is_realtime();
~Sketcher();
PLUGIN_CLASS_MEMBERS2(SketcherConfig)
int is_realtime();
+ int is_synthesis();
void update_gui();
void save_data(KeyFrame *keyframe);
void read_data(KeyFrame *keyframe);
int new_curve(int pen, int width, int color);
int new_curve();
void update_gui();
void save_data(KeyFrame *keyframe);
void read_data(KeyFrame *keyframe);
int new_curve(int pen, int width, int color);
int new_curve();
- int new_point(SketcherCurve *cv, int
pty
, coord x, coord y, int idx=-1);
- int new_point(int idx
=-1
);
+ int new_point(SketcherCurve *cv, int
arc
, coord x, coord y, int idx=-1);
+ int new_point(int idx
, int arc
);
int process_realtime(VFrame *input, VFrame *output);
static void draw_point(VFrame *vfrm, SketcherPoint *pt, int color, int d);
void draw_point(VFrame *vfrm, SketcherPoint *pt, int color);
int process_realtime(VFrame *input, VFrame *output);
static void draw_point(VFrame *vfrm, SketcherPoint *pt, int color, int d);
void draw_point(VFrame *vfrm, SketcherPoint *pt, int color);