![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Contains configuration attributes that are passed to the TSLSeamlessLayerManager on initialisation.
Note : this class has a private destructor, to destroy instances of this class call the public function destroy().
Public Member Functions | |
TSLSeamlessLayerConfig () | |
TSLSeamlessLayerConfig * | clone () const |
void | compressed (bool value) |
bool | compressed () const |
bool | destroy () |
void | directory (const char *value) |
const char * | directory () const |
void | gridOriginX (double value) |
double | gridOriginX () const |
void | gridOriginY (double value) |
double | gridOriginY () const |
bool | initialiseFromConfig (const char *config) |
void | layerTopRight (double x, double y) |
void | layerTopRight (double *x, double *y) const |
void | layerExtentFromData (bool definedByData) |
bool | layerExtentFromData () const |
void | layerName (const char *value) |
const char * | layerName () const |
void | maxZoomResolution (double highValue) |
double | maxZoomResolution () const |
void | minZoomResolution (double lowValue) |
double | minZoomResolution () const |
bool | operator!= (const TSLSeamlessLayerConfig &config) const |
bool | operator== (const TSLSeamlessLayerConfig &config) const |
void | stripSize (int value) |
int | stripSize () const |
void | tileExtentX (double value) |
double | tileExtentX () const |
void | tileExtentY (double value) |
double | tileExtentY () const |
void | TMCperMU (double value) |
double | TMCperMU () const |
void * | operator new (size_t size) TSL_NO_THROW |
void * | operator new (size_t size, char *filename, int line) |
TSLSeamlessLayerConfig::TSLSeamlessLayerConfig | ( | ) |
Default Constructor.
TSLSeamlessLayerConfig * TSLSeamlessLayerConfig::clone | ( | ) | const |
Clone a TSLSeamlessLayerConfig.
bool TSLSeamlessLayerConfig::compressed | ( | ) | const |
Returns the compressed flag, if set to true the seamless layer manager will save the TMSTile files in compressed format.
void TSLSeamlessLayerConfig::compressed | ( | bool | value | ) |
Sets the compressed flag, if set to true the seamless layer manager will save the TMSTile files in compressed format, defaults to false.
value | true/false value for the compression flag |
bool TSLSeamlessLayerConfig::destroy | ( | ) |
Deletes the object from memory, call this function instead of using delete.
const char * TSLSeamlessLayerConfig::directory | ( | ) | const |
Returns the pathname to the location of the directory where the layer is to be updated or created.
void TSLSeamlessLayerConfig::directory | ( | const char * | value | ) |
Sets the pathname to the location of the directory where the layer is to be updated or created.
value | full pathname of the layer directory to be created/updated |
double TSLSeamlessLayerConfig::gridOriginX | ( | ) | const |
Returns the X value for the origin of the grid in metres.
void TSLSeamlessLayerConfig::gridOriginX | ( | double | value | ) |
Sets the X value for the origin of the grid in metres, 0 by default.
value | the grid origin X value in metres |
double TSLSeamlessLayerConfig::gridOriginY | ( | ) | const |
Returns the Y value for the origin of the grid in metres.
void TSLSeamlessLayerConfig::gridOriginY | ( | double | value | ) |
Sets the Y value for the origin of the grid in metres, 0 by default.
value | the grid origin Y value in metres |
bool TSLSeamlessLayerConfig::initialiseFromConfig | ( | const char * | config | ) |
Initialise a TSLSeamlessLayerConfig from a given configuration file.
If the configuration file does not exist, or the initialisation fails, this method returns false.
config | full path of configuration file to load - the extension is NOT required |
bool TSLSeamlessLayerConfig::layerExtentFromData | ( | ) | const |
Returns whether the top-right corner of the layer is calculated from the data that it holds or explicitly specified by the user.
void TSLSeamlessLayerConfig::layerExtentFromData | ( | bool | definedByData | ) |
Determines whether the top-right corner of the layer is calculated from the data that it holds or explicitly specified by the user.
definedByData | If true, then the layer's top-right corner will be defined by the data it holds. |
const char * TSLSeamlessLayerConfig::layerName | ( | ) | const |
Returns the current layer name.
void TSLSeamlessLayerConfig::layerName | ( | const char * | value | ) |
Sets the layer name.
value | the name of the layer to be produced |
void TSLSeamlessLayerConfig::layerTopRight | ( | double * | x, |
double * | y ) const |
Return the top-right corner of the layer.
x,y | The top-right corner (Map units) |
void TSLSeamlessLayerConfig::layerTopRight | ( | double | x, |
double | y ) |
Set the top-right corner of the layer. This will automatically set the 'layerExtentFromData' flag to false.
x,y | The top-right corner (Map units) |
double TSLSeamlessLayerConfig::maxZoomResolution | ( | ) | const |
Returns the current maximum zoom resolution in metres per pixel.
Default value is 500.
void TSLSeamlessLayerConfig::maxZoomResolution | ( | double | highValue | ) |
Set the current maximum zoom resolution.
Default value is 500.
highValue | value to set in metres per pixel. |
double TSLSeamlessLayerConfig::minZoomResolution | ( | ) | const |
Returns the current minimum zoom resolution in metres per pixel.
Default value is 0.
void TSLSeamlessLayerConfig::minZoomResolution | ( | double | lowValue | ) |
Set the minimum zoom resolution.
Default value is 0.
lowValue | value to set in metres per pixel. |
void * TSLSeamlessLayerConfig::operator new | ( | size_t | size | ) |
These are here to avoid being documented Allocation redirection for API.
void * TSLSeamlessLayerConfig::operator new | ( | size_t | size, |
char * | filename, | ||
int | line ) |
When included in an MFC application in debug mode, the debug new expects this to be here. Override it and return the same as the normal one. The library must include it when compiled in release mode, since the user's application may be in debug mode.
bool TSLSeamlessLayerConfig::operator!= | ( | const TSLSeamlessLayerConfig & | config | ) | const |
Inequality operator.
config | TSLSeamlessLayerConfig to compare against |
bool TSLSeamlessLayerConfig::operator== | ( | const TSLSeamlessLayerConfig & | config | ) | const |
Equality operator.
config | the TSLSeamlessLayerConfig to compare against |
int TSLSeamlessLayerConfig::stripSize | ( | ) | const |
Returns the range of tiles in the X direction to be held in each subdirectory (strip).
Default value is 1.
void TSLSeamlessLayerConfig::stripSize | ( | int | value | ) |
Sets the range of tiles in the X direction to be held in each subdirectory. this is essential for storage of map layers with a high number of potential tiles.
Default value is 1.
value | number of tiles in each sub-directory (strip) |
double TSLSeamlessLayerConfig::tileExtentX | ( | ) | const |
Returns the extent of a tile in the X direction, in metres.
void TSLSeamlessLayerConfig::tileExtentX | ( | double | value | ) |
Sets the extent of a tile in the X direction, in metres.
value | tile extent in metres |
double TSLSeamlessLayerConfig::tileExtentY | ( | ) | const |
Returns the extent of a tile in the Y direction, in metres.
void TSLSeamlessLayerConfig::tileExtentY | ( | double | value | ) |
Sets the extent of a tile in the Y direction, in metres.
value | tile extent in metres |
double TSLSeamlessLayerConfig::TMCperMU | ( | ) | const |
Returns the number of internal MapLink coordinates (TMC) per Map Unit (MU).
Default value is 1000.
void TSLSeamlessLayerConfig::TMCperMU | ( | double | value | ) |
Sets the number of internal MapLink coordinates (TMC) per Map Unit (MU),
Default value is 1000.
value | the TMC per MU |