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

#include <trgt_cairo_png.h>

Inheritance diagram for cairo_png_trgt:
synfig::Target_Cairo synfig::Target

Public Member Functions

 cairo_png_trgt (const char *filename, const synfig::TargetParam &)
virtual ~cairo_png_trgt ()
virtual bool set_rend_desc (synfig::RendDesc *desc)
 Sets the RendDesc for the Target to desc.
virtual bool obtain_surface (cairo_surface_t *&surface)
virtual bool put_surface (cairo_surface_t *surface, synfig::ProgressCallback *cb=NULL)
 Puts the rendered surface onto the target.
- Public Member Functions inherited from synfig::Target_Cairo
 Target_Cairo ()
 Default constructor (current frame = 0)
virtual bool render (ProgressCallback *cb=NULL)
 Renders the canvas to the target.
virtual int next_frame (Time &time)
- Public Member Functions inherited from synfig::Target
sigc::signal< void > & signal_progress ()
virtual ~Target ()
int get_quality () const
 Gets the target quality.
void set_quality (int q)
 Sets the target quality.
void set_avoid_time_sync (bool x=true)
 Sets the target avoid time synchronization.
bool get_avoid_time_sync () const
 Gets the target avoid time synchronization.
TargetAlphaMode get_alpha_mode () const
 Tells how to handle alpha.
void set_alpha_mode (TargetAlphaMode x=TARGET_ALPHA_MODE_KEEP)
 Sets how to handle alpha.
Gammagamma ()
const Gammagamma () const
 Sets the target gamma.
virtual void set_canvas (etl::handle< Canvas > c)
 Sets the target canvas. Must be defined by derived targets.
const etl::handle< Canvas > & get_canvas () const
 Gets the target canvas.
RendDescrend_desc ()
 Gets the target particular render description.
const RendDescrend_desc () const
 Gets the target particular render description.
virtual bool init (ProgressCallback *cb=NULL)
 Initialization tasks of the derived target.

Additional Inherited Members

- Public Types inherited from synfig::Target_Cairo
typedef etl::handle< Target_CairoHandle
 Number of threads to use.
typedef etl::loose_handle
< Target_Cairo
LooseHandle
typedef etl::handle< const
Target_Cairo
ConstHandle
- Static Public Member Functions inherited from synfig::Target_Cairo
static void gamma_filter (cairo_surface_t *surface, const synfig::Gamma gamma)
 Filters the cairo surface based on gamma (hardcored for the moment to 2.2)
- Public Attributes inherited from synfig::Target
RendDesc desc
 Adjusted Render description set by set_rend_desc()
etl::handle< Canvascanvas
 Canvas being rendered in this target module.
int quality_
 Render quality used for the render process of the target.
Gamma gamma_
 Gamma value used for the render process of the target.
TargetAlphaMode alpha_mode
 Tells how to handle alpha. Used by non alpha supported targets to decide if the background must be filled or not.
bool avoid_time_sync_
 When set to true, the target doesn't sync to canvas time.
int curr_frame_
 The current frame being rendered.
- Static Public Attributes inherited from synfig::Target
static Bookbook_
 Target Book, indexed by the target's name.
static ExtBookext_book_
 Map of target names indexed by associated file extension.
- Protected Member Functions inherited from synfig::Target
 Target ()
 Default constructor.

Constructor & Destructor Documentation

cairo_png_trgt::cairo_png_trgt ( const char *  filename,
const synfig::TargetParam params 
)
cairo_png_trgt::~cairo_png_trgt ( )
virtual

Member Function Documentation

bool cairo_png_trgt::set_rend_desc ( synfig::RendDesc d)
virtual

Sets the RendDesc for the Target to desc.

If there are any parts of desc that the render target is not capable of doing, the render target will adjust desc to fit its needs.

Parameters
dan RendDesc pointer.
Returns
true on success

Reimplemented from synfig::Target.

References synfig::Target::desc, synfig::RendDesc::get_frame_end(), and synfig::RendDesc::get_frame_start().

bool cairo_png_trgt::obtain_surface ( cairo_surface_t *&  )
virtual

Obtain a surface pointer based on the render method this function has to be overrrided by the derived targets to create the proper Cairo backend surface for each target type.

Implements synfig::Target_Cairo.

References synfig::Target::desc, synfig::error(), synfig::RendDesc::get_h(), and synfig::RendDesc::get_w().

bool cairo_png_trgt::put_surface ( cairo_surface_t *  surface,
synfig::ProgressCallback cb = NULL 
)
virtual

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