synfig-core
1.0.3
|
#include <region.h>
Public Member Functions | |
Region () | |
void | sync () |
Updates the polygon data to match the parameters. | |
virtual bool | set_param (const String ¶m, const synfig::ValueBase &value) |
Sets the value for the given parameter. | |
virtual ValueBase | get_param (const String ¶m) const |
Gets the value of the given parameter. | |
virtual Vocab | get_param_vocab () const |
Gets the parameter vocabulary. To be overrided by the derived. | |
virtual void | set_time (IndependentContext context, Time time) const |
Sets the time for the Layer and those under it. | |
virtual void | set_time (IndependentContext context, Time time, Vector pos) const |
Additional Inherited Members | |
Protected Types inherited from synfig::Layer | |
typedef Layer *(* | Factory )() |
Type that represents a pointer to a Layer's constructor. | |
typedef std::map< String, BookEntry > | Book |
Book of types of layers indexed by layer type name. | |
typedef std::map< String, ValueBase > | ParamList |
Map of Value Base parameters indexed by name. | |
typedef etl::handle< Layer > | Handle |
typedef etl::loose_handle< Layer > | LooseHandle |
typedef etl::handle< const Layer > | ConstHandle |
typedef std::map< String, etl::rhandle< ValueNode > > | DynamicParamList |
Map of parameters that are animated Value Nodes indexed by the param name. | |
typedef ParamVocab | Vocab |
A list type which describes all the parameters that a layer has. | |
Protected Member Functions inherited from synfig::Layer_Polygon | |
~Layer_Polygon () | |
void | add_polygon (const std::vector< Point > &point_list) |
Adds a polygon to the layer. | |
void | upload_polygon (const std::vector< Point > &point_list) |
void | clear () |
Clears out any polygon data. | |
Layer_Polygon () | |
Static Protected Member Functions inherited from synfig::Layer | |
static void | register_in_book (const BookEntry &) |
static Book & | book () |
static bool | subsys_init () |
static bool | subsys_stop () |
Stops the layer system by deleting the book of registered layers. | |
static bool | render_transformed (const Layer *layer, Context context, Surface *surface, int quality, const RendDesc &renddesc, ProgressCallback *cb, const char *file, int line) |
static Layer::LooseHandle | create (const String &type) |
Creates a Layer of type type. | |
Protected Attributes inherited from synfig::Node | |
std::set< Node * > | parent_set |
Region::Region | ( | ) |
References f, SET_INTERPOLATION_DEFAULTS, and SET_STATIC_DEFAULTS.
void Region::sync | ( | ) |
Updates the polygon data to match the parameters.
Reimplemented from synfig::Layer_Polygon.
References bline, synfig::convert_bline_to_segment_list(), synfig::ValueBase::get_contained_type(), synfig::ValueBase::get_list_of(), synfig::ValueBase::get_loop(), SAMPLES, synfig::type_bline_point, synfig::type_segment, and synfig::warning().
|
virtual |
Sets the value for the given parameter.
Reimplemented from synfig::Layer_Polygon.
References synfig::ValueBase::get_type(), synfig::type_list, and synfig::warning().
Gets the value of the given parameter.
If it is unknown then call the ancestor's get param member to see if it can handle that parameter's string.
Reimplemented from synfig::Layer_Polygon.
References EXPORT_NAME, EXPORT_VALUE, and EXPORT_VERSION.
|
virtual |
Gets the parameter vocabulary. To be overrided by the derived.
First fills the returning vocabulary with the ancestor class
Now inserts the two parameters that this layer knows.
Reimplemented from synfig::Layer_Polygon.
References _.
|
virtual |
Sets the time for the Layer and those under it.
context | Context iterator referring to next Layer. |
time | writeme |
Reimplemented from synfig::Layer.
References synfig::IndependentContext::set_time().
|
virtual |
References synfig::IndependentContext::set_time().