synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
warp.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
26
/* === S T A R T =========================================================== */
27
28
#ifndef __SYNFIG_WARP_H
29
#define __SYNFIG_WARP_H
30
31
/* === H E A D E R S ======================================================= */
32
33
#include <
synfig/vector.h
>
34
#include <
synfig/angle.h
>
35
#include <
synfig/layer.h
>
36
#include <
synfig/rect.h
>
37
38
/* === M A C R O S ========================================================= */
39
40
/* === T Y P E D E F S ===================================================== */
41
42
/* === C L A S S E S & S T R U C T S ======================================= */
43
44
using namespace
synfig;
45
using namespace
std;
46
using namespace
etl;
47
class
Warp_Trans;
48
49
class
Warp
:
public
Layer
50
{
51
SYNFIG_LAYER_MODULE_EXT
52
friend
class
Warp_Trans;
53
private
:
55
ValueBase
param_src_tl;
56
ValueBase
param_src_br;
57
ValueBase
param_dest_tl;
58
ValueBase
param_dest_tr;
59
ValueBase
param_dest_bl;
60
ValueBase
param_dest_br;
62
ValueBase
param_horizon;
64
ValueBase
param_clip;
65
66
//Real cache_a,cache_b,cache_c,cache_d,cache_e,cache_f,cache_i,cache_j;
67
68
Real
matrix
[3][3];
69
Real
inv_matrix[3][3];
70
71
Point
transform_forward(
const
Point
& p)
const
;
72
Point
transform_backward(
const
Point
& p)
const
;
73
74
Real
transform_forward_z(
const
Point
& p)
const
;
75
Real
transform_backward_z(
const
Point
& p)
const
;
76
77
78
public
:
79
void
sync();
80
81
Warp
();
82
~
Warp
();
83
84
virtual
synfig::Rect
get_full_bounding_rect(
synfig::Context
context)
const
;
85
virtual
synfig::Rect
get_bounding_rect()
const
;
86
87
virtual
bool
set_param(
const
synfig::String
& param,
const
synfig::ValueBase
&value);
88
virtual
ValueBase
get_param(
const
synfig::String
& param)
const
;
89
virtual
Color
get_color(
Context
context,
const
Point
&pos)
const
;
90
virtual
bool
accelerated_render(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
91
virtual
bool
accelerated_cairorender(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
92
synfig::Layer::Handle
hit_check(
synfig::Context
context,
const
synfig::Point
&point)
const
;
93
virtual
Vocab
get_param_vocab()
const
;
94
virtual
etl::handle<synfig::Transform> get_transform()
const
;
95
};
96
97
/* === E N D =============================================================== */
98
99
#endif
Generated on Mon Nov 16 2015 15:34:00 for synfig-core by
1.8.1.2