#include <outline.h>
Public Member Functions | |
Outline () | |
void | sync () |
Updates the polygon data to match the parameters. | |
virtual bool | set_param (const String ¶m, const synfig::ValueBase &value) |
Sets the parameter described by param to value. | |
virtual ValueBase | get_param (const String ¶m) const |
Get the value of the specified parameter. | |
virtual Vocab | get_param_vocab () const |
Gets the parameter vocabulary. | |
virtual void | set_time (Context context, Time time) const |
Sets the time for the selected Layer and those under it. | |
virtual void | set_time (Context context, Time time, Vector pos) const |
virtual bool | set_version (const String &ver) |
Sets the virtual version to use for backwards-compatibility. | |
virtual void | reset_version () |
Resets the virtual version. |
Outline::Outline | ( | ) |
References synfig::Layer_Polygon::clear(), and f.
void Outline::sync | ( | ) |
Updates the polygon data to match the parameters.
The Sync() function takes the values and creates a polygon to be rendered with the polygon layer.
Reimplemented from synfig::Layer_Polygon.
References synfig::Layer_Polygon::add_polygon(), synfig::Layer_Polygon::clear(), synfig::convert_bline_to_segment_list(), synfig::convert_bline_to_width_list(), CUSP_TANGENT_ADJUST, CUSP_THRESHOLD, EPSILON, synfig::error(), f, synfig::ValueBase::get_contained_type(), synfig::Layer::get_description(), synfig::ValueBase::get_list(), synfig::ValueBase::get_loop(), synfig::Vector::is_equal_to(), line_intersection(), synfig::Vector::mag(), N_, NO_LOOP_COOKIE, synfig::Vector::norm(), synfig::Vector::perp(), ROUND_END_FACTOR, SAMPLES, synfig::ValueBase::set_loop(), SPIKE_AMOUNT, synfig::warning(), and zero().
Referenced by set_time().
bool Outline::set_param | ( | const String & | param, | |
const synfig::ValueBase & | value | |||
) | [virtual] |
Sets the parameter described by param to value.
param | The name of the parameter to set | |
value | What the parameter is to be set to. |
true
on success, false
upon rejection or failure. If it returns false
, then the Layer is assumed to remain unchanged. const String ¶m
Reimplemented from synfig::Layer_Polygon.
References synfig::Layer::connect_dynamic_param(), synfig::Layer::disconnect_dynamic_param(), synfig::Layer::dynamic_param_list(), synfig::ValueBase::get_type(), IMPORT, IMPORT_PLUS, and synfig::warning().
ValueBase Outline::get_param | ( | const String & | param | ) | const [virtual] |
Get the value of the specified parameter.
const String &
Reimplemented from synfig::Layer_Polygon.
References EXPORT, EXPORT_NAME, and EXPORT_VERSION.
Layer::Vocab Outline::get_param_vocab | ( | void | ) | const [virtual] |
Gets the parameter vocabulary.
Reimplemented from synfig::Layer_Polygon.
References _, and synfig::Layer::set_description().
Sets the time for the selected Layer and those under it.
context | Context iterator referring to next Layer. | |
time | writeme |
Reimplemented from synfig::Layer.
References synfig::Context::set_time(), and sync().
References synfig::Context::set_time(), and sync().
virtual bool Outline::set_version | ( | const String & | ver | ) | [inline, virtual] |
Sets the virtual version to use for backwards-compatibility.
Reimplemented from synfig::Layer.
virtual void Outline::reset_version | ( | ) | [inline, virtual] |