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

#include <region.h>

Inheritance diagram for Region:
synfig::Layer_Polygon synfig::Layer_Shape synfig::Layer_Composite synfig::Layer_NoDeform synfig::Layer synfig::Node

Public Member Functions

 Region ()
void sync ()
 Updates the polygon data to match the parameters.
virtual bool set_param (const String &param, const synfig::ValueBase &value)
 Sets the value for the given parameter.
virtual ValueBase get_param (const String &param) 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< 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.
- 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 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.
- Protected Attributes inherited from synfig::Node
std::set< Node * > parent_set

Constructor & Destructor Documentation

Region::Region ( )

Member Function Documentation

void Region::sync ( )
bool Region::set_param ( const String param,
const synfig::ValueBase value 
)
virtual

Sets the value for the given parameter.

Reimplemented from synfig::Layer_Polygon.

References synfig::ValueBase::get_type(), synfig::type_list, and synfig::warning().

ValueBase Region::get_param ( const String param) const
virtual

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.

Layer::Vocab Region::get_param_vocab ( void  ) const
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 _.

void Region::set_time ( IndependentContext  context,
Time  time 
) const
virtual

Sets the time for the Layer and those under it.

Parameters
contextContext iterator referring to next Layer.
timewriteme
See Also
Context::set_time()

Reimplemented from synfig::Layer.

References synfig::IndependentContext::set_time().

void Region::set_time ( IndependentContext  context,
Time  time,
Vector  pos 
) const
virtual

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