synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
mod_geometry
outline.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_OUTLINE_H
27
#define __SYNFIG_OUTLINE_H
28
29
/* === H E A D E R S ======================================================= */
30
31
#include <list>
32
#include <vector>
33
#include <
synfig/layers/layer_polygon.h
>
34
#include <
synfig/segment.h
>
35
#include <
synfig/value.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
47
class
Outline
:
public
synfig::Layer_Polygon
48
{
49
SYNFIG_LAYER_MODULE_EXT
50
private
:
52
ValueBase
param_bline;
54
ValueBase
param_round_tip[2];
56
ValueBase
param_sharp_cusps;
58
ValueBase
param_loop;
60
ValueBase
param_width;
62
ValueBase
param_expand;
64
ValueBase
param_loopyness;
66
ValueBase
param_homogeneous_width;
67
68
bool
old_version;
69
70
bool
needs_sync;
71
72
73
std::vector<synfig::Segment> segment_list;
74
std::vector<synfig::Real> width_list;
75
76
public
:
77
78
Outline
();
79
81
void
sync();
82
83
virtual
bool
set_param(
const
String
& param,
const
synfig::ValueBase
&value);
84
85
virtual
ValueBase
get_param(
const
String
& param)
const
;
86
87
virtual
Vocab
get_param_vocab()
const
;
88
using
Layer::set_time
;
89
virtual
void
set_time(
IndependentContext
context,
Time
time)
const
;
90
virtual
void
set_time(
IndependentContext
context,
Time
time,
Vector
pos)
const
;
91
virtual
bool
set_version
(
const
String
&ver){
if
(ver==
"0.1"
)old_version=
true
;
return
true
;}
92
virtual
void
reset_version
(){old_version=
false
;}
93
};
94
95
/* === E N D =============================================================== */
96
97
#endif
Generated on Mon Nov 16 2015 15:33:47 for synfig-core by
1.8.1.2