Scroom  0.14
SourcePresentation Class Referenceabstract

#include <tiledbitmapinterface.hh>

Inheritance diagram for SourcePresentation:
Inheritance graph
Collaboration diagram for SourcePresentation:
Collaboration graph

Public Types

using Ptr = boost::shared_ptr< SourcePresentation >
 

Public Member Functions

virtual void fillTiles (int startLine, int lineCount, int tileWidth, int firstTile, std::vector< Tile::Ptr > &tiles)=0
 
virtual void done ()=0
 
virtual std::string getName ()=0
 

Additional Inherited Members

- Private Member Functions inherited from Interface
 Interface ()=default
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
 Interface (const Interface &&)=delete
 
Interfaceoperator= (const Interface &&)=delete
 
virtual ~Interface ()=default
 

Detailed Description

Provide bitmap data

Member Typedef Documentation

◆ Ptr

using SourcePresentation::Ptr = boost::shared_ptr<SourcePresentation>

Member Function Documentation

◆ done()

virtual void SourcePresentation::done ( )
pure virtual

Done reading bitmap data

Any open files can be closed now

Implemented in Source8Bpp, Source4Bpp, Source2Bpp, Source1Bpp, and Scroom::Tiff::Source.

◆ fillTiles()

virtual void SourcePresentation::fillTiles ( int  startLine,
int  lineCount,
int  tileWidth,
int  firstTile,
std::vector< Tile::Ptr > &  tiles 
)
pure virtual

Provide bitmap data

While the TiledBitmap is loaded, this function will be called several times. Each time, this function has to fill the provided tiles with bitmap data.

The given tiles are horizontally adjacent.

Parameters
startLiney coordinate of the first line in the set of tiles
lineCountThe number of lines that are to be filled. This equals the height of the tiles
tileWidthThe width of one tile
firstTileIndex of the first tile provided. This means that the first x coordinate is firsttile * tileWidth
tilesThe tiles that are to be filled.

Implemented in Source8Bpp, Source4Bpp, Source2Bpp, Source1Bpp, and Scroom::Tiff::Source.

◆ getName()

virtual std::string SourcePresentation::getName ( )
pure virtual

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