synfig-core  1.0.3
Public Member Functions | List of all members
synfig::ListImporter Class Reference

#include <listimporter.h>

Inheritance diagram for synfig::ListImporter:
synfig::Importer

Public Member Functions

 ListImporter (const FileSystem::Identifier &identifier)
 ~ListImporter ()
virtual bool get_frame (Surface &surface, const RendDesc &renddesc, Time time, ProgressCallback *callback=NULL)
 Gets a frame and puts it into surface.
virtual bool is_animated ()
 Returns true if the importer pays attention to the time parameter of get_frame()
- Public Member Functions inherited from synfig::Importer
Gammagamma ()
const Gammagamma () const
virtual ~Importer ()
virtual bool get_frame (Surface &surface, const RendDesc &renddesc, Time time, bool &trimmed __attribute__((unused)), unsigned int &width __attribute__((unused)), unsigned int &height __attribute__((unused)), unsigned int &top __attribute__((unused)), unsigned int &left __attribute__((unused)), ProgressCallback *callback=NULL)

Additional Inherited Members

- Public Types inherited from synfig::Importer
typedef Importer *(* Factory )(const FileSystem::Identifier &identifier)
typedef std::map< std::string,
BookEntry
Book
typedef etl::handle< ImporterHandle
typedef etl::loose_handle
< Importer
LooseHandle
typedef etl::handle< const
Importer
ConstHandle
- Static Public Member Functions inherited from synfig::Importer
static Bookbook ()
static bool subsys_init ()
static bool subsys_stop ()
static Handle open (const FileSystem::Identifier &identifier)
 Attempts to open filename, and returns a handle to the associated Importer.
- Public Attributes inherited from synfig::Importer
const FileSystem::Identifier identifier
- Static Public Attributes inherited from synfig::Importer
static Bookbook_
- Protected Member Functions inherited from synfig::Importer
 Importer (const FileSystem::Identifier &identifier)

Detailed Description

Todo:
Write more detailed description

Constructor & Destructor Documentation

ListImporter::ListImporter ( const FileSystem::Identifier identifier)

! read first line and check whether it is a Papagayo lip sync file

it is a Papagayo lipsync file

find space position. The format is "frame phoneme-name".

If we have a framerate, then use it

References synfig::error(), f, synfig::FileSystem::Identifier::filename, synfig::info(), and synfig::FileSystem::safeGetline().

ListImporter::~ListImporter ( )

Member Function Documentation

bool ListImporter::get_frame ( Surface surface,
const RendDesc renddesc,
Time  time,
ProgressCallback callback = NULL 
)
virtual

Gets a frame and puts it into surface.

Parameters
surfaceReference to surface to put frame into
timeFor animated importers, determines which frame to get. For static importers, this parameter is unused.
callbackPointer to callback class for progress, errors, etc.
Returns
true on success, false on error
See Also
ProgressCallback, Surface

Implements synfig::Importer.

References _, synfig::ProgressCallback::error(), synfig::error(), synfig::RendDesc::get_frame_rate(), synfig::FileSystemNative::instance(), LIST_IMPORTER_CACHE_SIZE, and synfig::Importer::open().

bool ListImporter::is_animated ( )
virtual

Returns true if the importer pays attention to the time parameter of get_frame()

Reimplemented from synfig::Importer.


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