projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replace spash/about bg img, fix transition strip, include olaf de.po+neophyte, update...
[goodguy/history.git]
/
cinelerra-5.1
/
plugins
/
perspective
/
perspective.h
diff --git
a/cinelerra-5.1/plugins/perspective/perspective.h
b/cinelerra-5.1/plugins/perspective/perspective.h
index 18e54584990bc1c50af3df8becbab0a84014b29c..074e20ba043e156ed2481b49102f5663d07007a5 100644
(file)
--- a/
cinelerra-5.1/plugins/perspective/perspective.h
+++ b/
cinelerra-5.1/plugins/perspective/perspective.h
@@
-27,6
+27,7
@@
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
#include "clip.h"
#include "bchash.h"
#include "filexml.h"
+#include "guicast.h"
#include "keyframe.h"
#include "loadbalance.h"
#include "pluginvclient.h"
#include "keyframe.h"
#include "loadbalance.h"
#include "pluginvclient.h"
@@
-41,6
+42,7
@@
class PerspectiveMode;
class PerspectiveDirection;
class PerspectiveAffine;
class PerspectiveAffineItem;
class PerspectiveDirection;
class PerspectiveAffine;
class PerspectiveAffineItem;
+class PerspectiveZoomView;
class PerspectiveWindow;
class PerspectiveMain;
class PerspectiveWindow;
class PerspectiveMain;
@@
-55,6
+57,7
@@
public:
int64_t prev_frame, int64_t next_frame, int64_t current_frame);
float x1, y1, x2, y2, x3, y3, x4, y4;
int64_t prev_frame, int64_t next_frame, int64_t current_frame);
float x1, y1, x2, y2, x3, y3, x4, y4;
+ float view_x, view_y, view_zoom;
int mode, smoothing;
int window_w, window_h;
int current_point;
int mode, smoothing;
int window_w, window_h;
int current_point;
@@
-66,60
+69,58
@@
public:
class PerspectiveCanvas : public BC_SubWindow
{
public:
class PerspectiveCanvas : public BC_SubWindow
{
public:
- PerspectiveCanvas(Perspective
Main *plugin
,
+ PerspectiveCanvas(Perspective
Window *gui
,
int x, int y, int w, int h);
int button_press_event();
int button_release_event();
int cursor_motion_event();
int state;
int x, int y, int w, int h);
int button_press_event();
int button_release_event();
int cursor_motion_event();
int state;
- enum { NONE, DRAG, DRAG_FULL, ZOOM };
+ enum { NONE, DRAG, DRAG_FULL, ZOOM
, DRAG_VIEW
};
- int start_
cursor_x, start_cursor
_y;
+ int start_
x, start
_y;
float start_x1, start_y1;
float start_x2, start_y2;
float start_x3, start_y3;
float start_x4, start_y4;
float start_x1, start_y1;
float start_x2, start_y2;
float start_x3, start_y3;
float start_x4, start_y4;
- Perspective
Main *plugin
;
+ Perspective
Window *gui
;
};
class PerspectiveCoord : public BC_TumbleTextBox
{
public:
PerspectiveCoord(PerspectiveWindow *gui,
};
class PerspectiveCoord : public BC_TumbleTextBox
{
public:
PerspectiveCoord(PerspectiveWindow *gui,
- PerspectiveMain *plugin,
int x, int y, float value, int is_x);
int handle_event();
int x, int y, float value, int is_x);
int handle_event();
- Perspective
Main *plugin
;
+ Perspective
Window *gui
;
int is_x;
};
class PerspectiveReset : public BC_GenericButton
{
public:
int is_x;
};
class PerspectiveReset : public BC_GenericButton
{
public:
- PerspectiveReset(PerspectiveMain *plugin,
- int x, int y);
+ PerspectiveReset(PerspectiveWindow *gui, int x, int y);
int handle_event();
int handle_event();
- Perspective
Main *plugin
;
+ Perspective
Window *gui
;
};
class PerspectiveMode : public BC_Radial
{
public:
};
class PerspectiveMode : public BC_Radial
{
public:
- PerspectiveMode(Perspective
Main *plugin
,
+ PerspectiveMode(Perspective
Window *gui
,
int x, int y, int value, char *text);
int handle_event();
int x, int y, int value, char *text);
int handle_event();
- Perspective
Main *plugin
;
+ Perspective
Window *gui
;
int value;
};
class PerspectiveDirection : public BC_Radial
{
public:
int value;
};
class PerspectiveDirection : public BC_Radial
{
public:
- PerspectiveDirection(Perspective
Main *plugin
,
+ PerspectiveDirection(Perspective
Window *gui
,
int x, int y, int value, char *text);
int handle_event();
int x, int y, int value, char *text);
int handle_event();
- Perspective
Main *plugin
;
+ Perspective
Window *gui
;
int value;
};
int value;
};
@@
-151,6
+152,19
@@
public:
int id;
};
int id;
};
+class PerspectiveZoomView : public BC_FSlider
+{
+public:
+ PerspectiveZoomView(PerspectiveWindow *gui,
+ int x, int y, int w);
+ ~PerspectiveZoomView();
+
+ int handle_event();
+ char *get_caption();
+ void update(float zoom);
+
+ PerspectiveWindow *gui;
+};
class PerspectiveWindow : public PluginClientWindow
class PerspectiveWindow : public PluginClientWindow
@@
-163,6
+177,8
@@
public:
int resize_event(int x, int y);
void update_canvas();
void update_mode();
int resize_event(int x, int y);
void update_canvas();
void update_mode();
+ void update_view_zoom();
+ void reset_view();
void update_coord();
void calculate_canvas_coords(
int &x1, int &y1, int &x2, int &y2,
void update_coord();
void calculate_canvas_coords(
int &x1, int &y1, int &x2, int &y2,
@@
-171,6
+187,7
@@
public:
PerspectiveCanvas *canvas;
PerspectiveCoord *x, *y;
PerspectiveReset *reset;
PerspectiveCanvas *canvas;
PerspectiveCoord *x, *y;
PerspectiveReset *reset;
+ PerspectiveZoomView *zoom_view;
PerspectiveMode *mode_perspective, *mode_sheer, *mode_stretch;
PerspectiveAffine *affine;
PerspectiveMain *plugin;
PerspectiveMode *mode_perspective, *mode_sheer, *mode_stretch;
PerspectiveAffine *affine;
PerspectiveMain *plugin;