![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class contains general options that provide an application with control over the behaviour of the TSLOpenGLDataOptimiser.
Public Types | |
enum | RasterCompressionQuality { RasterCompressionBest , RasterCompressionBalanced , RasterCompressionFastest } |
Public Member Functions | |
TSLOpenGLDataOptimiserOptions () | |
~TSLOpenGLDataOptimiserOptions () | |
void | etcPackLocation (const TSLSimpleString &location) |
const TSLSimpleString & | etcPackLocation () const |
void | numWorkerThreads (unsigned int numThreads) |
unsigned int | numWorkerThreads () const |
void | rasterCompressionQuality (RasterCompressionQuality quality) |
RasterCompressionQuality | rasterCompressionQuality () const |
void | saveAsVersion (TSLMapLinkVersion version) |
TSLMapLinkVersion | saveAsVersion () const |
void | temporaryDirectory (const TSLSimpleString &tempDir) |
const TSLSimpleString & | temporaryDirectory () const |
Enumeration defining the quality settings available when converting rasters to compressed formats via the TSLOpenGLDataOptimiser.
TSLOpenGLDataOptimiserOptions::TSLOpenGLDataOptimiserOptions | ( | ) |
TSLOpenGLDataOptimiserOptions::~TSLOpenGLDataOptimiserOptions | ( | ) |
|
inline |
Returns the full path that the TSLOpenGLDataOptimiser will use to invoke the ETCpack executable for creating ETC1 and ETC2 compressed rasters.
By default this path is empty and the TSLOpenGLDataOptimiser will attempt to automatically locate the ETCpack executable in the following places: 1) The bin64 directory of the MapLink installation as defined by the path returned from TSLUtilityFunctions::getMapLinkHome(). 2) The current process's PATH environment variable.
|
inline |
Sets the full path of the ETCpack executable that the TSLOpenGLDataOptimiser will use to create ETC1 and ETC2 compressed rasters.
|
inline |
Returns the number of threads that the TSLOpenGLDataOptimiser will use to perform processing.
The default value is 0, which means the TSLOpenGLDataOptimiser will select a suitable number of threads based on the number of processors in the machine.
|
inline |
Sets the number of threads that the TSLOpenGLDataOptimiser will use to perform processing.
If set to 0 (the default) the TSLOpenGLDataOptimiser will select a suitable number of threads based on the number of processors in the machine.
|
inline |
Returns the quality factor to use when converting rasters into compressed formats. Higher quality settings results in better image quality at the expense of longer processing times.
The default quality setting is RasterCompressionBalanced.
See the documentation for the RasterCompressionQuality enumeration for more information.
|
inline |
Sets the quality factor to use when converting rasters into compressed formats. Higher quality settings results in better image quality at the expense of longer processing times.
See the documentation for the RasterCompressionQuality enumeration for more information.
|
inline |
Returns the version that files written by the TSLOpenGLDataOptimiser will be written as.
By default files are written out in the version for the current MapLink release.
|
inline |
Sets the version that files written by the TSLOpenGLDataOptimiser will be written as. This can be used to generate processed maps compatible with older releases of MapLink.
The version must be at least TSL_MAPLINK_8_0.
|
inline |
Sets the directory that the TSLOpenGLDataOptimiser will use for temporary files created during processing.
By default this method returns an empty string, which means that the TSLOpen GLDataOptimiser will use the current user's default temporary directory as defined by the operating system.
|
inline |
Sets the directory that the TSLOpenGLDataOptimiser will use for temporary files created during processing. Subdirectories will be automatically created in this directory to allow simultaneous use of the TSLOpenGLData Optimiser from different threads and/or processes.