synfig-core
1.0.3
|
A target which renders to nothing using tiles. Useful for benchmarks and other tests. More...
#include <target_null_tile.h>
Public Member Functions | |
~Target_Null_Tile () | |
virtual bool | add_tile (const synfig::Surface &, int, int) |
Adds the tile at x , y contained in surface. | |
virtual bool | start_frame (ProgressCallback *=NULL) |
Marks the start of a frame. | |
virtual void | end_frame () |
Marks the end of a frame. | |
Public Member Functions inherited from synfig::Target_Tile | |
Target_Tile () | |
virtual bool | render (ProgressCallback *cb=NULL) |
Renders the canvas to the target. | |
virtual int | next_tile (int &x, int &y) |
Determines which tile needs to be rendered next. | |
virtual int | next_frame (Time &time) |
virtual int | total_tiles () const |
Returns the total tiles of the imaged rounded to integer number of tiles. | |
void | set_threads (int x) |
Sets the number of threads. | |
int | get_threads () const |
Gets the number of threads. | |
void | set_tile_w (int w) |
Sets the tile widht. | |
int | get_tile_w () const |
Gets the tile widht. | |
void | set_tile_h (int h) |
Sets the tile height. | |
int | get_tile_h () const |
Gets the tile height. | |
bool | get_clipping () const |
Gets clipping. | |
void | set_clipping (bool x) |
Sets clipping. | |
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. | |
Gamma & | gamma () |
const Gamma & | gamma () 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. | |
RendDesc & | rend_desc () |
Gets the target particular render description. | |
const RendDesc & | rend_desc () const |
Gets the target particular render description. | |
virtual bool | set_rend_desc (RendDesc *d) |
Sets the RendDesc for the Target to desc. | |
virtual bool | init (ProgressCallback *cb=NULL) |
Initialization tasks of the derived target. |
Static Public Member Functions | |
static Target * | create (const char *=0) |
Additional Inherited Members | |
Public Types inherited from synfig::Target_Tile | |
typedef etl::handle< Target_Tile > | Handle |
typedef etl::loose_handle < Target_Tile > | LooseHandle |
typedef etl::handle< const Target_Tile > | ConstHandle |
Public Attributes inherited from synfig::Target | |
RendDesc | desc |
Adjusted Render description set by set_rend_desc() | |
etl::handle< Canvas > | canvas |
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 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 inherited from synfig::Target | |
Target () | |
Default constructor. |
A target which renders to nothing using tiles. Useful for benchmarks and other tests.
|
inline |
|
inlinevirtual |
Adds the tile at x , y contained in surface.
Implements synfig::Target_Tile.
|
inlinevirtual |
Marks the start of a frame.
true
on success, false
upon an error. Implements synfig::Target_Tile.
|
inlinevirtual |
|
inlinestatic |
Referenced by synfig::Target::subsys_init().