synfig::Target Class Reference

Render-target. More...

#include <target.h>

Inheritance diagram for synfig::Target:

synfig::Target_Scanline synfig::Target_Tile synfig::Target_Multi synfig::Target_Null synfig::Target_Null_Tile List of all members.

Public Types

typedef etl::handle< TargetHandle
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)
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, outputing 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
 

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
 


Constructor & Destructor Documentation

Target::Target  )  [protected]
 

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


Member Function Documentation

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]
 

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 it's 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.


Member Data Documentation

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.

RendDesc synfig::Target::desc
 

Adjusted Render description set by set_rend_desc().

etl::handle<Canvas> synfig::Target::canvas
 

int synfig::Target::quality_
 

Gamma synfig::Target::gamma_
 

bool synfig::Target::remove_alpha
 

bool synfig::Target::avoid_time_sync_
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 23 15:20:51 2006 for synfig by  doxygen 1.4.6