synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
sphere_distort.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
22
/* ========================================================================= */
23
24
/* === S T A R T =========================================================== */
25
26
#ifndef __SYNFIG_SPHERE_DISTORT_H
27
#define __SYNFIG_SPHERE_DISTORT_H
28
29
/* === H E A D E R S ======================================================= */
30
31
#include <
synfig/layers/layer_composite.h
>
32
#include <
synfig/vector.h
>
33
#include <
synfig/rect.h
>
34
35
/* === M A C R O S ========================================================= */
36
37
/* === T Y P E D E F S ===================================================== */
38
39
/* === C L A S S E S & S T R U C T S ======================================= */
40
namespace
synfig
41
{
42
class
Spherize_Trans;
43
44
class
Layer_SphereDistort
:
public
Layer
45
{
46
SYNFIG_LAYER_MODULE_EXT
47
friend
class
Spherize_Trans
;
48
49
private
:
50
52
ValueBase
param_center;
54
ValueBase
param_radius;
56
ValueBase
param_amount;
58
ValueBase
param_type;
60
ValueBase
param_clip;
61
62
Rect
bounds;
63
64
void
sync();
65
66
public
:
67
68
Layer_SphereDistort
();
69
70
virtual
bool
set_param
(
const
String
& param,
const
ValueBase
&value);
71
72
virtual
ValueBase
get_param
(
const
String
& param)
const
;
73
74
virtual
Color
get_color
(
Context
context,
const
Point
&pos)
const
;
75
76
virtual
bool
accelerated_render
(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
77
virtual
bool
accelerated_cairorender
(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
78
Layer::Handle
hit_check
(
Context
context,
const
Point
&point)
const
;
79
80
virtual
Rect
get_bounding_rect
()
const
;
81
82
virtual
Vocab
get_param_vocab
()
const
;
83
virtual
etl::handle<Transform>
get_transform
()
const
;
84
};
// END of class Layer_SphereDistort
85
86
}
87
88
/* === E N D =============================================================== */
89
90
#endif
Generated on Mon Nov 16 2015 15:33:50 for synfig-core by
1.8.1.2