#include <layer.h>
Inheritance diagram for synfig::Layer:
Public Types | |
typedef Layer *(* | Factory )() |
Type that represents a pointer to a layer's constructor. | |
typedef std::map< String, BookEntry > | Book |
typedef std::map< String, ValueBase > | ParamList |
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 |
typedef ParamVocab | Vocab |
A list type which describes all the parameters that a layer has. | |
Public Member Functions | |
sigc::signal< void > & | signal_status_changed () |
Status Changed. | |
sigc::signal< void, String > & | signal_param_changed () |
Parameter changed. | |
sigc::signal< void > & | signal_description_changed () |
Description Changed. | |
sigc::signal< void, int, etl::handle< Canvas > > & | signal_moved () |
Moved. | |
sigc::signal< void, String > & | signal_added_to_group () |
sigc::signal< void, String > & | signal_removed_from_group () |
virtual | ~Layer () |
virtual void | on_canvas_set () |
void | add_to_group (const String &) |
Adds this layer to the given layer group. | |
void | remove_from_group (const String &) |
Removes this layer from the given layer group. | |
void | remove_from_all_groups () |
Removes this layer from all layer groups. | |
String | get_group () const |
Gets the name of the group that this layer belongs to. | |
const DynamicParamList & | dynamic_param_list () const |
bool | connect_dynamic_param (const String ¶m, etl::loose_handle< ValueNode >) |
bool | disconnect_dynamic_param (const String ¶m) |
void | enable () |
Enables the layer for rendering (Making it active). | |
void | disable () |
Disables the layer for rendering. (Making it inactive). | |
void | set_active (bool x) |
Sets the 'active' flag for the Layer to the state described by x. | |
bool | active () const |
Returns that status of the 'active' flag. | |
int | get_depth () const |
Returns the position of the layer in the canvas. | |
float | get_z_depth () const |
float | get_z_depth (const synfig::Time &t) const |
void | set_z_depth (float x) |
void | set_canvas (etl::loose_handle< Canvas > canvas) |
Sets the Canvas that this Layer is a part of. | |
etl::loose_handle< Canvas > | get_canvas () const |
Returns a handle to the Canvas to which this Layer belongs. | |
const String & | get_description () const |
void | set_description (const String &x) |
virtual Rect | get_bounding_rect () const |
virtual Rect | get_full_bounding_rect (Context context) const |
virtual String | get_name () const |
Returns a string containing the name of the Layer. | |
virtual String | get_local_name () const |
Returns a string containing the localized name of the Layer. | |
virtual Vocab | get_param_vocab () const |
Gets the paramater vocabulary. | |
virtual String | get_version () const |
Gets the version string for this layer. | |
virtual etl::handle< Transform > | get_transform () 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. | |
virtual bool | set_param (const String ¶m, const ValueBase &value) |
Sets the parameter described by param to value. | |
virtual bool | set_param_list (const ParamList &) |
Sets a list of parameters. | |
virtual ValueBase | get_param (const String ¶m) const |
Get the value of the specified parameter. | |
virtual ParamList | get_param_list () const |
Get a list of all of the parameters and their values. | |
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, const Point &point) const |
Sets the time for the selected Layer and those under it for a specific point. | |
virtual Color | get_color (Context context, const Point &point) const |
Gets the color of the Canvas at point. | |
virtual bool | accelerated_render (Context context, Surface *surface, int quality, const RendDesc &rend_desc, ProgressCallback *callback) const |
Renders the Canvas to the given Surface in an accelerated manner. | |
virtual Handle | hit_check (Context context, const Point &point) const |
Checks to see if a part of the layer is directly under point. | |
virtual Handle | clone (const GUID &deriv_guid=GUID()) const |
Duplicates the Layer. | |
virtual Layer * | simple_clone () const |
Duplicates the Layer without duplicating the value nodes. | |
Static Public Member Functions | |
static void | register_in_book (const BookEntry &) |
static Book & | book () |
static bool | subsys_init () |
static bool | subsys_stop () |
static Layer::LooseHandle | create (const String &type) |
Creates a Layer of type type. | |
Protected Member Functions | |
Layer () | |
virtual void | on_changed () |
This is called whenever a parameter is changed. | |
virtual void | get_times_vfunc (Node::time_set &set) const |
Called to figure out the animation time information. | |
Friends | |
class | ValueNode |
class | Context |
Classes | |
struct | BookEntry |
|
Type that represents a pointer to a layer's constructor.
|
|
|
|
|
|
Reimplemented in synfig::Layer_Bitmap. |
|
|
|
|
|
|
|
A list type which describes all the parameters that a layer has.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Status Changed.
|
|
Parameter changed.
|
|
Description Changed.
|
|
Moved.
|
|
|
|
|
|
Reimplemented in synfig::Layer_PasteCanvas. |
|
Adds this layer to the given layer group.
|
|
Removes this layer from the given layer group.
|
|
Removes this layer from all layer groups.
|
|
Gets the name of the group that this layer belongs to.
|
|
xrefitem todo 55 |
|
|
|
|
|
Enables the layer for rendering (Making it active).
|
|
Disables the layer for rendering. (Making it inactive). When a layer is disabled, it will be skipped when the canvas is rendered. |
|
Sets the 'active' flag for the Layer to the state described by x. When a layer is disabled, it will be skipped when the canvas is rendered. |
|
Returns that status of the 'active' flag.
|
|
Returns the position of the layer in the canvas. Returns negative on error |
|
|
|
|
|
|
|
Sets the Canvas that this Layer is a part of.
|
|
Returns a handle to the Canvas to which this Layer belongs.
|
|
|
|
|
|
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_PasteCanvas, and synfig::Layer_Shape. |
|
Reimplemented in synfig::Layer_Composite. |
|
Returns a string containing the name of the Layer.
|
|
Returns a string containing the localized name of the Layer.
Reimplemented in synfig::Layer_Mime, and synfig::Layer_PasteCanvas. |
|
Gets the paramater vocabulary.
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_Composite, synfig::Layer_Mime, synfig::Layer_MotionBlur, synfig::Layer_PasteCanvas, synfig::Layer_Polygon, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Gets the version string for this layer.
Reimplemented in synfig::Layer_Mime. |
|
|
|
Sets the virtual version to use for backwards-compatibility.
Reimplemented in synfig::Layer_Mime. |
|
Resets the virtual version.
|
|
Sets the parameter described by param to value.
Reimplemented in synfig::Layer_Composite, synfig::Layer_Mime, synfig::Layer_MotionBlur, synfig::Layer_PasteCanvas, synfig::Layer_Polygon, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Sets a list of parameters.
|
|
Get the value of the specified parameter.
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_Composite, synfig::Layer_Mime, synfig::Layer_MotionBlur, synfig::Layer_PasteCanvas, synfig::Layer_Polygon, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Get a list of all of the parameters and their values.
|
|
Sets the time for the selected Layer and those under it.
Reimplemented in synfig::Layer_MotionBlur, and synfig::Layer_PasteCanvas. |
|
Sets the time for the selected Layer and those under it for a specific point.
Reimplemented in synfig::Layer_MotionBlur. |
|
Gets the color of the Canvas at point.
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_Mime, synfig::Layer_MotionBlur, synfig::Layer_PasteCanvas, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Renders the Canvas to the given Surface in an accelerated manner.
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_Composite, synfig::Layer_Mime, synfig::Layer_MotionBlur, synfig::Layer_PasteCanvas, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Checks to see if a part of the layer is directly under point.
Reimplemented in synfig::Layer_Bitmap, synfig::Layer_PasteCanvas, synfig::Layer_Shape, and synfig::Layer_SolidColor. |
|
Duplicates the Layer.
|
|
Duplicates the Layer without duplicating the value nodes.
|
|
This is called whenever a parameter is changed.
Reimplemented from synfig::Node. |
|
Called to figure out the animation time information.
Implements synfig::Node. Reimplemented in synfig::Layer_PasteCanvas. |
|
Creates a Layer of type type. If the Layer type is unknown, then a Mime layer is created in its place.
|
|
|
|
|