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