synfig::Target Class Reference

Render-target. More...

#include <target.h>

Inheritance diagram for synfig::Target:

bsd_mpeg1 synfig::Target_Scanline synfig::Target_Tile bmp dv_trgt exr_trgt ffmpeg_trgt gif imagemagick_trgt jpeg_trgt magickpp_trgt mng_trgt png_trgt ppm synfig::Target_Multi synfig::Target_Null Target_LibAVCodec yuv synfig::Target_Null_Tile

List of all members.

Public Types

typedef etl::handle< TargetHandle
typedef etl::loose_handle< TargetLooseHandle
typedef etl::handle< const TargetConstHandle
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, StringExtBook

Public Member Functions

sigc::signal< void > & signal_progress ()
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)
Gammagamma ()
const Gammagamma () const
virtual void set_canvas (etl::handle< Canvas > c)
const etl::handle< Canvas > & get_canvas () const
RendDescrend_desc ()
const RendDescrend_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 Bookbook ()
static ExtBookext_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, outputting to a file described by filename.

Public Attributes

RendDesc desc
 Adjusted Render description set by set_rend_desc().
etl::handle< Canvascanvas
int quality_
Gamma gamma_
bool remove_alpha
bool avoid_time_sync_

Static Public Attributes

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

 Target ()


Detailed Description

Render-target.

Todo:
writeme

Member Typedef Documentation

typedef etl::handle<Target> synfig::Target::Handle

typedef etl::loose_handle<Target> synfig::Target::LooseHandle

typedef etl::handle<const Target> synfig::Target::ConstHandle

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.


Constructor & Destructor Documentation

Target::Target (  )  [protected]

virtual synfig::Target::~Target (  )  [inline, virtual]


Member Function Documentation

sigc::signal<void>& synfig::Target::signal_progress (  )  [inline]

Target::Book & Target::book (  )  [static]

References book_.

Referenced by create(), process_global_flags(), and subsys_init().

Target::ExtBook & Target::ext_book (  )  [static]

References ext_book_.

Referenced by subsys_init().

bool Target::subsys_init (  )  [static]

bool Target::subsys_stop (  )  [static]

References book_, and ext_book_.

Referenced by synfig::Main::Main(), and synfig::Main::~Main().

int synfig::Target::get_quality (  )  const [inline]

References quality_.

Referenced by gif::init(), and synfig::Target_Scanline::render().

void synfig::Target::set_quality ( int  q  )  [inline]

References quality_.

void synfig::Target::set_avoid_time_sync ( bool  x = true  )  [inline]

References avoid_time_sync_.

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]

References gamma_.

void synfig::Target::set_canvas ( etl::handle< Canvas c  )  [virtual]

Reimplemented in synfig::Target_Multi.

References canvas, desc, and set_rend_desc().

const etl::handle<Canvas>& synfig::Target::get_canvas (  )  const [inline]

RendDesc& synfig::Target::rend_desc (  )  [inline]

const RendDesc& synfig::Target::rend_desc (  )  const [inline]

References desc.

virtual bool synfig::Target::render ( ProgressCallback cb = NULL  )  [pure virtual]

Renders the canvas to the target.

Implemented in synfig::Target_Scanline, and synfig::Target_Tile.

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 bmp, dv_trgt, ffmpeg_trgt, gif, imagemagick_trgt, jpeg_trgt, Target_LibAVCodec, magickpp_trgt, mng_trgt, exr_trgt, png_trgt, bsd_mpeg1, ppm, yuv, and synfig::Target_Multi.

References desc.

Referenced by set_canvas(), and bsd_mpeg1::set_rend_desc().

virtual bool synfig::Target::init (  )  [inline, virtual]

Target::Handle Target::create ( const String type,
const String filename 
) [static]

Creates a new Target described by type, outputting to a file described by filename.

References book().

Referenced by main().


Member Data Documentation

Target Book, indexed by the target's name.

Referenced by book(), subsys_init(), and subsys_stop().

Map of target names indexed by associated file extension.

Referenced by ext_book(), subsys_init(), and subsys_stop().

Referenced by get_quality(), and set_quality().

Referenced by gamma().


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

Generated on Fri Jul 31 00:01:59 2009 for synfig-core by  doxygen 1.5.6