#include <target.h>
Inheritance diagram for synfig::Target:
Public Types | |
typedef etl::handle< Target > | Handle |
typedef etl::loose_handle< Target > | LooseHandle |
typedef etl::handle< const Target > | ConstHandle |
typedef Target *(* | Factory )(const char *filename) |
typedef std::map< String, std::pair< Factory, String > > | Book |
A type for a map of targets, indexed by the name of the Target. | |
typedef std::map< String, String > | ExtBook |
Public Member Functions | |
virtual | ~Target () |
int | get_quality () const |
void | set_quality (int q) |
void | set_avoid_time_sync (bool x=true) |
bool | get_avoid_time_sync () const |
bool | get_remove_alpha () const |
void | set_remove_alpha (bool x=true) |
Gamma & | gamma () |
const Gamma & | gamma () const |
virtual void | set_canvas (etl::handle< Canvas > c) |
const etl::handle< Canvas > & | get_canvas () const |
RendDesc & | rend_desc () |
const RendDesc & | rend_desc () const |
virtual bool | render (ProgressCallback *cb=NULL)=0 |
Renders the canvas to the target. | |
virtual bool | set_rend_desc (RendDesc *d) |
Sets the RendDesc for the Target to desc. | |
virtual bool | init () |
Static Public Member Functions | |
static Book & | book () |
static ExtBook & | ext_book () |
static bool | subsys_init () |
static bool | subsys_stop () |
static Handle | create (const String &type, const String &filename) |
Creates a new Target described by type, outputing to a file described by filename. | |
Public Attributes | |
RendDesc | desc |
Adjusted Render description set by set_rend_desc(). | |
etl::handle< Canvas > | canvas |
int | quality_ |
Gamma | gamma_ |
bool | remove_alpha |
bool | avoid_time_sync_ |
Static Public Attributes | |
static Book * | book_ |
Target Book, indexed by the target's name. | |
static ExtBook * | ext_book_ |
Map of target names indexed by associated file extension. | |
Protected Member Functions | |
Target () |
|
Reimplemented in synfig::Target_Scanline, and synfig::Target_Tile. |
|
Reimplemented in synfig::Target_Scanline, and synfig::Target_Tile. |
|
Reimplemented in synfig::Target_Scanline, and synfig::Target_Tile. |
|
|
|
A type for a map of targets, indexed by the name of the Target.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in synfig::Target_Multi. |
|
|
|
|
|
|
|
Renders the canvas to the target.
Implemented in synfig::Target_Scanline, and synfig::Target_Tile. |
|
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 it's needs. Reimplemented in synfig::Target_Multi. |
|
Reimplemented in synfig::Target_Multi. |
|
Creates a new Target described by type, outputing to a file described by filename.
|
|
Target Book, indexed by the target's name.
|
|
Map of target names indexed by associated file extension.
|
|
Adjusted Render description set by set_rend_desc().
|
|
|
|
|
|
|
|
|
|
|