synfig-core  1.0.3
Public Member Functions | Friends | List of all members
Rotate Class Reference

#include <rotate.h>

Inheritance diagram for Rotate:
synfig::Layer synfig::Node

Public Member Functions

 Rotate ()
 ~Rotate ()
virtual bool set_param (const synfig::String &param, const synfig::ValueBase &value)
 Sets the parameter described by param to value.
virtual ValueBase get_param (const synfig::String &param) const
 Get the value of the specified parameter.
virtual Color get_color (Context context, const Point &pos) const
 Gets the blend color of the Layer in the context at pos.
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
synfig::Layer::Handle hit_check (synfig::Context context, const synfig::Point &point) const
 Checks to see if a part of the layer is directly under point.
virtual Vocab get_param_vocab () const
 Gets the parameter vocabulary.
virtual Rect get_full_bounding_rect (Context context) const
virtual etl::handle
< synfig::Transform
get_transform () const
- Public Member Functions inherited from synfig::Layer
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 DynamicParamListdynamic_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< Canvasget_canvas () const
 Returns a handle to the Canvas to which this Layer belongs.
const Stringget_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 &param_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 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 String get_version () const
 Gets the version string for this layer.
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_list (const ParamList &)
 Sets a list of parameters.
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 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 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 &param, etl::loose_handle< ValueNode >)
 Connects the parameter to another Value Node.
virtual bool disconnect_dynamic_param (const String &param)
 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 GUIDget_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_setget_times () const
 Returns the cached times values for all the children.
RWLockget_rw_lock () const
 Writeme!

Friends

class Rotate_Trans

Additional Inherited Members

- Public 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< LayerHandle
typedef etl::loose_handle< LayerLooseHandle
typedef etl::handle< const LayerConstHandle
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.
- Static Public Member Functions inherited from synfig::Layer
static void register_in_book (const BookEntry &)
static Bookbook ()
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.
- Public Attributes inherited from synfig::Node
std::set< Node * > parent_set
- Protected Member Functions inherited from synfig::Layer
 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.

Constructor & Destructor Documentation

Rotate::Rotate ( )
Rotate::~Rotate ( )

Member Function Documentation

bool Rotate::set_param ( const synfig::String param,
const synfig::ValueBase value 
)
virtual

Sets the parameter described by param to value.

Parameters
paramThe name of the parameter to set
valueWhat the parameter is to be set to.
Returns
true on success, false upon rejection or failure. If it returns false, then the Layer is assumed to remain unchanged.
See Also
get_param()
Todo:
param should be of the type const String &param

Reimplemented from synfig::Layer.

References synfig::ValueBase::get(), IMPORT_VALUE, IMPORT_VALUE_PLUS, and synfig::ValueBase::set().

ValueBase Rotate::get_param ( const synfig::String param) const
virtual

Get the value of the specified parameter.

Returns
The requested parameter value, or (upon failure) a NIL ValueBase.
See Also
set_param()
Todo:
param should be of the type const String &

Reimplemented from synfig::Layer.

References EXPORT_NAME, EXPORT_VALUE, and EXPORT_VERSION.

Color Rotate::get_color ( Context  context,
const Point pos 
) const
virtual

Gets the blend color of the Layer in the context at pos.

Parameters
contextContext iterator referring to next Layer.
posPoint which indicates where the Color should come from
See Also
Context::get_color()

Reimplemented from synfig::Layer.

References synfig::ValueBase::get(), and synfig::Context::get_color().

bool Rotate::accelerated_render ( Context  context,
Surface surface,
int  quality,
const RendDesc renddesc,
ProgressCallback cb 
) const
virtual

Renders the Canvas to the given Surface in an accelerated manner.

Parameters
contextContext iterator referring to next Layer.
surfacePointer to Surface to render to.
qualityThe requested quality-level to render at.
renddescThe associated RendDesc.
cbPointer to callback object. May be NULL if there is no callback.
Returns
true on success, false on failure
See Also
Context::accelerated_render()

Reimplemented from synfig::Layer.

References synfig::Context::accelerated_render(), synfig::RendDesc::clear_flags(), synfig::ValueBase::get(), synfig::RendDesc::get_transformation_matrix(), and synfig::RendDesc::set_transformation_matrix().

bool Rotate::accelerated_cairorender ( Context  context,
cairo_t *  cr,
int  quality,
const RendDesc renddesc,
ProgressCallback cb 
) const
virtual
synfig::Layer::Handle Rotate::hit_check ( synfig::Context  context,
const synfig::Point point 
) const
virtual

Checks to see if a part of the layer is directly under point.

Parameters
contextContext iterator referring to next Layer.
pointThe point to check
Returns
The handle of the layer under point. If there is not a layer under point, then returns an empty handle.
See Also
Context::hit_check

Reimplemented from synfig::Layer.

References synfig::ValueBase::get(), and synfig::Context::hit_check().

Layer::Vocab Rotate::get_param_vocab ( void  ) const
virtual

Gets the parameter vocabulary.

Reimplemented from synfig::Layer.

References _, and synfig::Layer::set_description().

Rect Rotate::get_full_bounding_rect ( Context  context) const
virtual

Returns the rectangle that includes the context of the layer

See Also
synfig::Rect synfig::Context

Reimplemented from synfig::Layer.

References synfig::Context::get_full_bounding_rect(), and get_transform().

etl::handle< Transform > Rotate::get_transform ( ) const
virtual

Returns a handle to the Transform class of the layer

See Also
synfig::Transform

Reimplemented from synfig::Layer.

References Rotate_Trans.

Referenced by get_full_bounding_rect().

Friends And Related Function Documentation

friend class Rotate_Trans
friend

Referenced by get_transform().


The documentation for this class was generated from the following files: