synfig-core
1.0.3
|
#include <layer.h>
Classes | |
struct | BookEntry |
Public Types | |
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. | |
Public Types inherited from synfig::Node | |
typedef TimePointSet | time_set |
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 |
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. | |
bool | optimized () const |
flag to prevent re-apply optimization features | |
void | set_optimized (bool x) |
set flag to prevent re-apply optimization features | |
void | set_exclude_from_rendering (bool x) |
Sets the 'exclude_from_rendering' flag for the Layer. | |
bool | get_exclude_from_rendering () const |
Returns that status of the 'exclude_from_rendering' flag. | |
int | get_depth () const |
Returns the position of the layer in the canvas. | |
float | get_z_depth () const |
Gets the non animated z depth of the layer. | |
float | get_z_depth (const synfig::Time &t) const |
Gets the z depth of the layer at a time t. | |
float | get_true_z_depth (const synfig::Time &t=Time(0)) const |
Gets the true z depth of the layer (index + parameter) | |
void | set_z_depth (float x) |
Sets the z depth of the layer (non animated) | |
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 |
Returns the description of the layer. | |
String | get_string () const |
void | set_description (const String &x) |
Sets the description of the layer. | |
const String | get_non_empty_description () const |
Returns the layer's description if it's not empty, else its local name. | |
const String | get_param_local_name (const String ¶m_name) const |
Returns the localised version of the given layer parameter. | |
Layer::LooseHandle | get_parent_paste_canvas_layer () const |
Returns a handle to the Parent PasteCanvas layer or NULL if layer belongs to root canvas. | |
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 parameter 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 (IndependentContext context, Time time) const |
Sets the time for the Layer and those under it. | |
virtual void | set_time (IndependentContext 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 &pos) const |
Gets the blend color of the Layer in the context at pos. | |
virtual CairoColor | get_cairocolor (Context context, const Point &pos) const |
virtual void | set_render_method (Context context, RenderMethod x) |
Sets the render method to the layer. Not all layers uses this virtual member. | |
virtual bool | accelerated_render (Context context, Surface *surface, int quality, const RendDesc &renddesc, ProgressCallback *cb) const |
Renders the Canvas to the given Surface in an accelerated manner. | |
virtual bool | accelerated_cairorender (Context context, cairo_t *cr, int quality, const RendDesc &renddesc, ProgressCallback *cb) const |
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 (etl::loose_handle< Canvas > canvas, const GUID &deriv_guid=GUID()) const |
Duplicates the Layer. | |
virtual bool | reads_context () const |
Returns true if the layer needs to be able to examine its context. | |
virtual Handle | simple_clone () const |
Duplicates the Layer without duplicating the value nodes. | |
virtual bool | connect_dynamic_param (const String ¶m, etl::loose_handle< ValueNode >) |
Connects the parameter to another Value Node. | |
virtual bool | disconnect_dynamic_param (const String ¶m) |
Disconnects the parameter from any Value Node. | |
Real | get_parent_canvas_grow_value () const |
Retrieves the grow value from its parent canvas. | |
virtual void | fill_sound_processor (SoundProcessor &soundProcessor) const |
Public Member Functions inherited from synfig::Node | |
sigc::signal< void > & | signal_deleted () |
sigc::signal< void > & | signal_changed () |
sigc::signal< void, GUID > & | signal_guid_changed () |
GUID Changed. | |
virtual | ~Node () |
void | changed () |
const GUID & | get_guid () const |
Gets the GUID for this Node. | |
virtual void | set_guid (const GUID &x) |
Sets the GUID for this Node. | |
int | get_time_last_changed () const |
Gets the time when the Node was changed. | |
void | add_child (Node *x) |
Adds the parameter as the child of the current Node. | |
void | remove_child (Node *x) |
Removes the parameter as a child of the current Node. | |
int | parent_count () const |
Returns how many parenst has the current Node. | |
const time_set & | get_times () const |
Returns the cached times values for all the children. | |
RWLock & | get_rw_lock () const |
Writeme! |
Static Public Member Functions | |
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 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. | |
Protected Member Functions inherited from synfig::Node | |
Node () | |
void | begin_delete () |
virtual void | on_guid_changed (GUID guid) |
Friends | |
class | ValueNode |
class | IndependentContext |
class | Context |
Additional Inherited Members | |
Public Attributes inherited from synfig::Node | |
std::set< Node * > | parent_set |
typedef Layer*(* synfig::Layer::Factory)() |
typedef std::map<String,BookEntry> synfig::Layer::Book |
Book of types of layers indexed by layer type name.
While the sifz file is read, each time a new layer entry is found, the factory constructor that the "factory" pointer member of the "BookEntry" struct points to, is called, and a new layer of that type is created.
typedef std::map<String,ValueBase> synfig::Layer::ParamList |
Map of Value Base parameters indexed by name.
typedef etl::handle<Layer> synfig::Layer::Handle |
typedef etl::loose_handle<Layer> synfig::Layer::LooseHandle |
typedef etl::handle<const Layer> synfig::Layer::ConstHandle |
typedef std::map<String,etl::rhandle<ValueNode> > synfig::Layer::DynamicParamList |
Map of parameters that are animated Value Nodes indexed by the param name.
typedef ParamVocab synfig::Layer::Vocab |
A list type which describes all the parameters that a layer has.
|
protected |
References f, SET_INTERPOLATION_DEFAULTS, and SET_STATIC_DEFAULTS.
|
virtual |
|
static |
References synfig::Layer::BookEntry::name.
|
static |
References _layer_book.
Referenced by clone(), OptionsProcessor::process_info_options(), and simple_clone().
|
static |
Inits the book of layers and inserts in it the basic layers that doesn't depend on modules
References _layer_book, INCLUDE_LAYER, and LAYER_ALIAS.
Referenced by synfig::Main::Main().
|
static |
Stops the layer system by deleting the book of registered layers.
References _layer_book.
Referenced by synfig::Main::Main(), and synfig::Main::~Main().
|
inline |
Status Changed.
|
inline |
Parameter changed.
|
inline |
Description Changed.
|
inline |
Moved.
|
inline |
Referenced by add_to_group().
|
inline |
Referenced by remove_from_all_groups().
|
virtual |
Reimplemented in synfig::Layer_PasteCanvas, and Import.
void Layer::add_to_group | ( | const String & | x | ) |
Adds this layer to the given layer group.
References remove_from_all_groups(), and signal_added_to_group().
void Layer::remove_from_group | ( | const String & | x | ) |
Removes this layer from the given layer group.
References remove_from_all_groups().
void Layer::remove_from_all_groups | ( | ) |
Removes this layer from all layer groups.
References signal_removed_from_group().
Referenced by add_to_group(), and remove_from_group().
String Layer::get_group | ( | ) | const |
Gets the name of the group that this layer belongs to.
|
inline |
Retrieves the dynamic param list member
Referenced by synfig::Layer_Duplicate::clone(), clone(), Advanced_Outline::connect_dynamic_param(), disconnect_dynamic_param(), synfig::Layer_Duplicate::get_duplicate_param(), get_z_depth(), synfig::optimize_layers(), and simple_clone().
|
inline |
Enables the layer for rendering (Making it active)
References set_active().
|
inline |
Disables the layer for rendering. (Making it inactive)
When a layer is disabled, it will be skipped when the canvas is rendered.
References set_active().
void Layer::set_active | ( | bool | x | ) |
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.
References on_changed().
|
inline |
Returns that status of the 'active' flag.
Referenced by synfig::Context::active(), clone(), synfig::Layer_PasteCanvas::fill_sound_processor(), and simple_clone().
|
inline |
flag to prevent re-apply optimization features
Referenced by clone(), and simple_clone().
|
inline |
set flag to prevent re-apply optimization features
void Layer::set_exclude_from_rendering | ( | bool | x | ) |
Sets the 'exclude_from_rendering' flag for the Layer.
When set, layer will skipped while final rendering but will still present onto work view.
References on_changed().
Referenced by synfig::Layer_Skeleton::Layer_Skeleton().
|
inline |
Returns that status of the 'exclude_from_rendering' flag.
Referenced by synfig::Context::active(), clone(), and simple_clone().
int Layer::get_depth | ( | ) | const |
Returns the position of the layer in the canvas.
Returns negative on error
References get_canvas().
Referenced by get_true_z_depth().
|
inline |
Gets the non animated z depth of the layer.
References synfig::ValueBase::get().
Referenced by get_true_z_depth().
float Layer::get_z_depth | ( | const synfig::Time & | t | ) | const |
Gets the z depth of the layer at a time t.
References dynamic_param_list(), and synfig::ValueBase::get().
float Layer::get_true_z_depth | ( | const synfig::Time & | t = Time(0) | ) | const |
Gets the true z depth of the layer (index + parameter)
References get_depth(), and get_z_depth().
Referenced by synfig::Context::z_depth_visibility().
|
inline |
Sets the z depth of the layer (non animated)
void synfig::Layer::set_canvas | ( | etl::loose_handle< Canvas > | canvas | ) |
etl::loose_handle< synfig::Canvas > synfig::Layer::get_canvas | ( | ) | const |
Returns a handle to the Canvas to which this Layer belongs.
Referenced by connect_dynamic_param(), get_depth(), synfig::Layer_PasteCanvas::get_local_name(), Import::get_param(), get_parent_canvas_grow_value(), get_parent_paste_canvas_layer(), Import::on_canvas_set(), synfig::Layer_PasteCanvas::on_canvas_set(), svg_layer::set_param(), Import::set_param(), synfig::Layer_Composite::set_param(), synfig::Layer_PasteCanvas::set_sub_canvas(), Import::set_time(), and synfig::Layer_PasteCanvas::update_renddesc().
|
inline |
Returns the description of the layer.
Referenced by clone(), get_non_empty_description(), simple_clone(), and Advanced_Outline::sync().
|
virtual |
Implements synfig::Node.
References get_non_empty_description().
void Layer::set_description | ( | const String & | x | ) |
Sets the description of the layer.
Referenced by synfig::Layer_Sound::get_param_vocab(), synfig::Layer_Duplicate::get_param_vocab(), Blur_Layer::get_param_vocab(), synfig::Layer_SolidColor::get_param_vocab(), Zoom::get_param_vocab(), InsideOut::get_param_vocab(), Translate::get_param_vocab(), synfig::Layer_Skeleton::get_param_vocab(), XORPattern::get_param_vocab(), CheckerBoard::get_param_vocab(), SuperSample::get_param_vocab(), Layer_Shade::get_param_vocab(), synfig::Layer_MotionBlur::get_param_vocab(), RadialBlur::get_param_vocab(), synfig::Layer_Stretch::get_param_vocab(), Rotate::get_param_vocab(), Import::get_param_vocab(), synfig::Layer_Clamp::get_param_vocab(), SimpleCircle::get_param_vocab(), Star::get_param_vocab(), synfig::Layer_Bitmap::get_param_vocab(), Rectangle::get_param_vocab(), Twirl::get_param_vocab(), synfig::Layer_SkeletonDeformation::get_param_vocab(), SpiralGradient::get_param_vocab(), FilledRect::get_param_vocab(), Layer_Bevel::get_param_vocab(), ConicalGradient::get_param_vocab(), RadialGradient::get_param_vocab(), synfig::Layer_SphereDistort::get_param_vocab(), CurveWarp::get_param_vocab(), synfig::Layer_Composite::get_param_vocab(), NoiseDistort::get_param_vocab(), LinearGradient::get_param_vocab(), CurveGradient::get_param_vocab(), synfig::Layer_Polygon::get_param_vocab(), Advanced_Outline::get_param_vocab(), Warp::get_param_vocab(), Noise::get_param_vocab(), Mandelbrot::get_param_vocab(), Julia::get_param_vocab(), synfig::Layer_Shape::get_param_vocab(), Circle::get_param_vocab(), Plant::get_param_vocab(), synfig::Layer_PasteCanvas::get_param_vocab(), and get_param_vocab().
|
inline |
Returns the layer's description if it's not empty, else its local name.
References get_description(), and get_local_name().
Referenced by get_string(), and synfig::Layer_Composite::set_param().
Returns the localised version of the given layer parameter.
References get_param_vocab().
synfig::Layer::LooseHandle synfig::Layer::get_parent_paste_canvas_layer | ( | ) | const |
Returns a handle to the Parent PasteCanvas layer or NULL if layer belongs to root canvas.
Notice that it could return the wrong handle to PasteCanvas if the layer
belongs to a exported canvas (canvas can be referenced multiple times)
References get_canvas(), synfig::Layer_PasteCanvas::get_sub_canvas(), and synfig::warning().
|
virtual |
Returns the rectangle that includes the layer
Reimplemented in Layer_Freetype, Circle, synfig::Layer_Shape, Warp, synfig::Layer_SphereDistort, synfig::Layer_Bitmap, and Rectangle.
References synfig::Rect::full_plane().
Referenced by synfig::Layer_Composite::get_full_bounding_rect(), and get_full_bounding_rect().
Returns the rectangle that includes the context of the layer
Reimplemented in synfig::Layer_PasteCanvas, Circle, synfig::Layer_Composite, Warp, Layer_Bevel, Rectangle, synfig::Layer_ColorCorrect, Rotate, synfig::Layer_Stretch, synfig::Layer_MeshTransform, synfig::Layer_Clamp, Layer_Shade, Translate, Zoom, and Blur_Layer.
References get_bounding_rect(), and synfig::Context::get_full_bounding_rect().
Referenced by render_transformed().
|
virtual |
Returns a string containing the name of the Layer.
References synfig::ValueBase::get(), and get_param().
Referenced by clone(), synfig::Layer_Mime::get_local_name(), synfig::optimize_layers(), and simple_clone().
|
virtual |
Returns a string containing the localized name of the Layer.
Reimplemented in synfig::Layer_PasteCanvas, synfig::Layer_SkeletonDeformation, synfig::Layer_Mime, synfig::Layer_Group, and synfig::Layer_Switch.
References synfig::ValueBase::get(), and get_param().
Referenced by get_non_empty_description().
|
virtual |
Gets the parameter vocabulary.
Reimplemented in synfig::Layer_PasteCanvas, Layer_Freetype, Plant, Circle, synfig::Layer_Shape, Julia, Mandelbrot, Noise, Warp, Advanced_Outline, synfig::Layer_Polygon, Halftone3, CurveGradient, LinearGradient, Halftone2, Outline, NoiseDistort, CurveWarp, synfig::Layer_Composite, synfig::Layer_SphereDistort, RadialGradient, Layer_Bevel, FilledRect, ConicalGradient, SpiralGradient, synfig::Layer_ColorCorrect, synfig::Layer_SkeletonDeformation, Twirl, Metaballs, Rectangle, synfig::Layer_Bitmap, Layer_TimeLoop, Star, SimpleCircle, synfig::Layer_Group, synfig::Layer_Clamp, Import, Rotate, synfig::Layer_Stretch, Layer_Shade, RadialBlur, Region, synfig::Layer_MotionBlur, synfig::BooleanCurve, SuperSample, CheckerBoard, synfig::Layer_Mime, Layer_Stroboscope, Translate, XORPattern, synfig::Layer_Skeleton, InsideOut, Zoom, Blur_Layer, synfig::Layer_SolidColor, synfig::Layer_Switch, LumaKey, synfig::Layer_Duplicate, svg_layer, and synfig::Layer_Sound.
References _, and set_description().
Referenced by get_param_list(), get_param_local_name(), synfig::Layer_Sound::get_param_vocab(), synfig::Layer_Skeleton::get_param_vocab(), Layer_Stroboscope::get_param_vocab(), Layer_TimeLoop::get_param_vocab(), and synfig::Layer_Composite::get_param_vocab().
|
virtual |
Gets the version string for this layer.
Reimplemented in synfig::Layer_Mime.
References synfig::ValueBase::get(), and get_param().
|
virtual |
Returns a handle to the Transform class of the layer
Reimplemented in Warp, synfig::Layer_SphereDistort, Twirl, Rotate, synfig::Layer_Stretch, synfig::Layer_MeshTransform, Translate, Zoom, and InsideOut.
|
virtual |
Sets the virtual version to use for backwards-compatibility.
Reimplemented in Layer_Freetype, Plant, Advanced_Outline, Outline, Layer_TimeLoop, and synfig::Layer_Mime.
|
virtual |
Resets the virtual version.
Reimplemented in Layer_Freetype, Outline, and Layer_TimeLoop.
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 in synfig::Layer_PasteCanvas, Layer_Freetype, Plant, Circle, synfig::Layer_Shape, Julia, Mandelbrot, Advanced_Outline, Warp, synfig::Layer_Polygon, Noise, synfig::Layer_Composite, Halftone3, Outline, CurveGradient, Halftone2, LinearGradient, NoiseDistort, synfig::Layer_SkeletonDeformation, CurveWarp, Layer_TimeLoop, FilledRect, RadialGradient, Layer_Bevel, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Metaballs, Star, synfig::Layer_Bitmap, synfig::Layer_ColorCorrect, Twirl, synfig::Layer_Group, Import, Rotate, Region, synfig::BooleanCurve, RadialBlur, Rectangle, XORPattern, SimpleCircle, synfig::Layer_Clamp, Layer_Stroboscope, synfig::Layer_MotionBlur, synfig::Layer_Skeleton, Translate, CheckerBoard, InsideOut, Layer_Shade, synfig::Layer_Stretch, synfig::Layer_Mime, synfig::Layer_Switch, Zoom, SuperSample, svg_layer, LumaKey, synfig::Layer_SolidColor, synfig::Layer_Duplicate, Blur_Layer, and synfig::Layer_Sound.
References IMPORT_VALUE.
Referenced by Layer_Stroboscope::set_param(), Layer_TimeLoop::set_param(), and set_param_list().
|
virtual |
Sets a list of parameters.
References set_param().
Get the value of the specified parameter.
const String &
Reimplemented in synfig::Layer_PasteCanvas, Layer_Freetype, Plant, Circle, synfig::Layer_Shape, Julia, Mandelbrot, Advanced_Outline, Warp, synfig::Layer_Polygon, synfig::Layer_Composite, Noise, Outline, Halftone3, CurveGradient, Halftone2, LinearGradient, NoiseDistort, synfig::Layer_SkeletonDeformation, CurveWarp, Layer_TimeLoop, FilledRect, RadialGradient, Layer_Bevel, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Metaballs, Star, synfig::Layer_Bitmap, synfig::Layer_ColorCorrect, Twirl, synfig::Layer_Group, Import, Region, Rotate, Rectangle, synfig::BooleanCurve, SimpleCircle, RadialBlur, synfig::Layer_Clamp, Layer_Stroboscope, XORPattern, synfig::Layer_Skeleton, CheckerBoard, synfig::Layer_MotionBlur, Layer_Shade, synfig::Layer_Stretch, Translate, synfig::Layer_Mime, synfig::Layer_Switch, InsideOut, SuperSample, Zoom, svg_layer, LumaKey, synfig::Layer_SolidColor, Blur_Layer, synfig::Layer_Duplicate, and synfig::Layer_Sound.
References EXPORT_VALUE.
Referenced by get_local_name(), get_name(), Layer_Stroboscope::get_param(), Layer_TimeLoop::get_param(), get_param_list(), get_version(), and synfig::optimize_layers().
|
virtual |
Get a list of all of the parameters and their values.
References get_param(), and get_param_vocab().
Referenced by clone(), synfig::optimize_layers(), and simple_clone().
|
virtual |
Sets the time for the Layer and those under it.
Reimplemented in synfig::Layer_PasteCanvas, Advanced_Outline, Noise, Outline, NoiseDistort, Layer_TimeLoop, Import, Region, synfig::Layer_Skeleton, Layer_Stroboscope, synfig::Layer_MotionBlur, and synfig::Layer_Duplicate.
References synfig::IndependentContext::set_time().
|
virtual |
Sets the time for the selected Layer and those under it for a specific point.
const Point &
Reimplemented in Noise, NoiseDistort, Import, synfig::Layer_Skeleton, synfig::Layer_MotionBlur, and synfig::Layer_Duplicate.
References synfig::IndependentContext::set_time().
Gets the blend color of the Layer in the context at pos.
context | Context iterator referring to next Layer. |
pos | Point which indicates where the Color should come from |
Reimplemented in synfig::Layer_PasteCanvas, Layer_Freetype, synfig::Layer_Shape, Circle, Julia, Mandelbrot, Warp, Noise, Halftone3, CurveGradient, Halftone2, LinearGradient, Layer_TimeLoop, NoiseDistort, CurveWarp, FilledRect, RadialGradient, Layer_Bevel, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Metaballs, synfig::Layer_Bitmap, synfig::Layer_ColorCorrect, Twirl, Rectangle, synfig::BooleanCurve, synfig::Layer_MeshTransform, Rotate, Layer_Stroboscope, SimpleCircle, synfig::Layer_Clamp, RadialBlur, XORPattern, CheckerBoard, Layer_Shade, synfig::Layer_Stretch, synfig::Layer_Mime, synfig::Layer_MotionBlur, Translate, InsideOut, Zoom, LumaKey, synfig::Layer_SolidColor, Blur_Layer, and synfig::Layer_Duplicate.
References synfig::Context::get_color().
Referenced by get_cairocolor().
|
virtual |
Reimplemented in Noise, NoiseDistort, Metaballs, synfig::Layer_Bitmap, Twirl, and InsideOut.
References get_color().
|
virtual |
Sets the render method to the layer. Not all layers uses this virtual member.
Reimplemented in synfig::Layer_PasteCanvas, synfig::Layer_Bitmap, and Import.
References synfig::Context::set_render_method().
|
static |
References accelerated_render(), synfig::ProgressCallback::amount_complete(), synfig::Surface::clear(), synfig::RendDesc::clear_flags(), get_full_bounding_rect(), synfig::RendDesc::get_h(), synfig::RendDesc::get_ph(), synfig::RendDesc::get_pw(), synfig::RendDesc::get_rect(), synfig::RendDesc::get_tl(), synfig::RendDesc::get_transformation_matrix(), synfig::RendDesc::get_w(), synfig::RendDesc::set_br(), synfig::RendDesc::set_flags(), synfig::RendDesc::set_h(), synfig::RendDesc::set_tl(), synfig::RendDesc::set_transformation_matrix(), synfig::RendDesc::set_w(), and synfig::warning().
|
virtual |
Renders the Canvas to the given Surface in an accelerated manner.
context | Context iterator referring to next Layer. |
surface | Pointer to Surface to render to. |
quality | The requested quality-level to render at. |
renddesc | The associated RendDesc. |
cb | Pointer to callback object. May be NULL if there is no callback. |
true
on success, false
on failure Reimplemented in synfig::Layer_PasteCanvas, Layer_Freetype, Plant, Circle, synfig::Layer_Shape, synfig::Layer_Composite, Warp, Noise, Halftone3, CurveGradient, Halftone2, LinearGradient, Layer_TimeLoop, synfig::Layer_Bitmap, CurveWarp, FilledRect, RadialGradient, Layer_Bevel, Metaballs, synfig::Layer_ColorCorrect, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Rectangle, synfig::Layer_MeshTransform, CheckerBoard, synfig::BooleanCurve, synfig::Layer_Clamp, Layer_Stroboscope, LumaKey, Rotate, RadialBlur, synfig::Layer_MotionBlur, Layer_Shade, synfig::Layer_Stretch, synfig::Layer_Mime, Translate, SuperSample, Zoom, synfig::Layer_SolidColor, synfig::Layer_Duplicate, and Blur_Layer.
References _, synfig::ProgressCallback::error(), synfig::render(), RENDER_TRANSFORMED_IF_NEED, and synfig::surface_target().
Referenced by render_transformed().
|
virtual |
Reimplemented in synfig::Layer_PasteCanvas, Layer_Freetype, Plant, Circle, synfig::Layer_Shape, synfig::Layer_Composite, Warp, Halftone3, CurveGradient, Halftone2, LinearGradient, Layer_TimeLoop, synfig::Layer_Bitmap, CurveWarp, FilledRect, RadialGradient, Layer_Bevel, synfig::Layer_ColorCorrect, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Rectangle, CheckerBoard, Layer_Stroboscope, SimpleCircle, LumaKey, Rotate, RadialBlur, synfig::Layer_MotionBlur, Layer_Shade, synfig::Layer_Stretch, Translate, SuperSample, Zoom, synfig::Layer_SolidColor, synfig::Layer_Duplicate, and Blur_Layer.
References synfig::cairorender().
|
virtual |
Checks to see if a part of the layer is directly under point.
Reimplemented in synfig::Layer_PasteCanvas, Circle, synfig::Layer_Shape, Warp, Noise, Halftone3, CurveGradient, LinearGradient, Halftone2, synfig::Layer_Bitmap, FilledRect, NoiseDistort, CurveWarp, Metaballs, RadialGradient, ConicalGradient, SpiralGradient, synfig::Layer_SphereDistort, Twirl, Rectangle, SimpleCircle, Rotate, CheckerBoard, synfig::Layer_Stretch, Translate, synfig::Layer_MeshTransform, XORPattern, synfig::Layer_SolidColor, LumaKey, InsideOut, and Zoom.
References synfig::Context::hit_check().
|
virtual |
Duplicates the Layer.
Reimplemented in synfig::Layer_Duplicate.
References active(), book(), synfig::ValueNode_Const::create(), create(), dynamic_param_list(), get_description(), get_exclude_from_rendering(), synfig::Node::get_guid(), get_name(), get_param_list(), optimized(), and synfig::type_canvas.
Referenced by synfig::Layer_Duplicate::clone().
|
virtual |
Returns true if the layer needs to be able to examine its context.
context to render itself, other than for simple blending. For example, the blur layer will return true - it can't do its job if it can't see its context, and the circle layer will return false - rendering a circle doesn't depend on the underlying context until the final blend operation.
Reimplemented in Halftone3, Halftone2, NoiseDistort, Layer_Bevel, Twirl, LumaKey, Layer_Shade, RadialBlur, synfig::Layer_MotionBlur, Blur_Layer, and synfig::Layer_Duplicate.
Referenced by synfig::Layer_Composite::set_param().
|
virtual |
Duplicates the Layer without duplicating the value nodes.
References active(), book(), create(), dynamic_param_list(), get_description(), get_exclude_from_rendering(), get_name(), get_param_list(), and optimized().
|
virtual |
Connects the parameter to another Value Node.
Reimplemented in Advanced_Outline.
References synfig::Node::add_child(), synfig::Node::changed(), get_canvas(), and synfig::Node::remove_child().
Referenced by synfig::Layer_Duplicate::Layer_Duplicate().
|
virtual |
Disconnects the parameter from any Value Node.
References synfig::Node::changed(), dynamic_param_list(), and synfig::Node::remove_child().
Real Layer::get_parent_canvas_grow_value | ( | ) | const |
Retrieves the grow value from its parent canvas.
References get_canvas().
Referenced by synfig::Layer_PasteCanvas::accelerated_cairorender(), synfig::Layer_PasteCanvas::accelerated_render(), synfig::optimize_layers(), and Advanced_Outline::sync().
|
virtual |
Reimplemented in synfig::Layer_PasteCanvas, and synfig::Layer_Sound.
|
protectedvirtual |
This is called whenever a parameter is changed.
Reimplemented from synfig::Node.
References synfig::Time::end().
Referenced by set_active(), and set_exclude_from_rendering().
|
protectedvirtual |
Called to figure out the animation time information.
Implements synfig::Node.
Reimplemented in synfig::Layer_PasteCanvas.
References synfig::TimePointSet::insert().
|
static |
Creates a Layer of type type.
If the Layer type is unknown, then a Mime layer is created in its place.
type | A string describing the name of the layer to construct. |
Referenced by clone(), synfig::Layer_Duplicate::Layer_Duplicate(), synfig::optimize_layers(), OptionsProcessor::process_info_options(), and simple_clone().
|
friend |
|
friend |
|
friend |