synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
lyr_std
rotate.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_ROTATE_H
29
#define __SYNFIG_ROTATE_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
37
/* === M A C R O S ========================================================= */
38
39
/* === T Y P E D E F S ===================================================== */
40
41
/* === C L A S S E S & S T R U C T S ======================================= */
42
43
using namespace
synfig;
44
using namespace
std;
45
using namespace
etl;
46
class
Rotate_Trans;
47
48
class
Rotate
:
public
Layer
49
{
50
SYNFIG_LAYER_MODULE_EXT
51
friend
class
Rotate_Trans;
52
private
:
54
ValueBase
param_origin;
56
ValueBase
param_amount;
57
58
Real
sin_val;
59
Real
cos_val;
60
public
:
61
Rotate
();
62
~
Rotate
();
63
64
virtual
bool
set_param(
const
synfig::String
& param,
const
synfig::ValueBase
&value);
65
virtual
ValueBase
get_param(
const
synfig::String
& param)
const
;
66
virtual
Color
get_color(
Context
context,
const
Point
&pos)
const
;
67
virtual
bool
accelerated_render(
Context
context,
Surface
*surface,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
68
virtual
bool
accelerated_cairorender(
Context
context, cairo_t *cr,
int
quality,
const
RendDesc
&renddesc,
ProgressCallback
*cb)
const
;
69
synfig::Layer::Handle
hit_check(
synfig::Context
context,
const
synfig::Point
&point)
const
;
70
virtual
Vocab
get_param_vocab()
const
;
71
virtual
Rect
get_full_bounding_rect(
Context
context)
const
;
72
73
virtual
etl::handle<synfig::Transform> get_transform()
const
;
74
};
75
76
/* === E N D =============================================================== */
77
78
#endif
Generated on Mon Nov 16 2015 15:33:49 for synfig-core by
1.8.1.2