#include <djv_renderer.h>
This class provides helper methods for Renderer instanciation.
Dictionary factory function definition.
A dictionary factory function is a function which instanciates an instance of Dictionary from the specified chunk.
- Parameters
-
inChunk | The chunk which contains data. |
Renderer factory function definition.
A renderer factory function is a function which instanciates an instance of Renderer from the specified chunk.
- Parameters
-
inChunk | The chunk which contains data. |
inDictionary | Optional data which contains some data which is shared between pages; some renderer never uses dictionary so this may be NULL . |
This enumeration is used to describe the types of a chunk.
Enumerator |
---|
citUnknown |
Unknown.
|
citDictionary |
Dictionary.
|
citMask |
Image data for mask.
|
citForeground |
Image data for foreground.
|
citBackground |
Image data for background.
|
This enumeration is used to specify a layer which a renderer renders.
Enumerator |
---|
rlMask |
Mask Layer.
|
rlForeground |
Foreground Layer.
|
rlBackground |
Background Layer.
|
static ChunkType Celartem::DjVu::RendererHelper::determineChunkType |
( |
const String & |
inChunkId | ) |
|
|
static |
Determines the type of a chunk.
- Parameters
-
inChunkId | A chunk identifier. |
- Returns
- The type of the chunk. This is one of ChunkType enumeration.
static String Celartem::DjVu::RendererHelper::getCorrespondingDictionaryId |
( |
const String & |
inChunkId | ) |
|
|
static |
Gets the corresponding dictionary chunk Id.
- Parameters
-
inChunkId | A chunk identifier of image/mask chunk. |
- Returns
- The corresponding dictionary chunk Id if available; otherwise, if no such chunk, NullString.
Registers a new renderer factory function.
This method allows you to develop a new internal chunk format support for Page class.
- Parameters
-
inRendererFactoryFunc | A renderer factory function. |
inRenderingLayer | A layer which the renderers will render. |
inPrimaryId | An identifier which starts instanciation of the Renderer instance. |
inDictionaryFactoryFunc | An optional dictionary factory function. If no dictionary is used, this should be NULL . |
inDictId | An optional chunk identifier which identifies dictionaries for this renderers. If no dictionary is used, this should be NullString. |
inChunkIDs | An array of the chunks identifiers which the renderers consumes after instanciation. It can be NULL . |
inCountChunkIDs | The number of entries in the array specified by inChunkIDs. |
The documentation for this class was generated from the following file: