![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class is used to configure the visibility of S57 scale bands for the TSLS63DataLayer.
An S57 scale band can have two threshold values associated with it; the lower threshold to define the lowest Map Unit per Pixel value that the band will be visible and the upper threshold to define the highest Map Unit per Pixel value that the band will be visible.
The thresholds can overlap between scale bands, as it may be desirable to have multiple scale bands visible at the same time. Therefore the order in which a scale band is added to this class is significate. When two or more scale bands are defined to be visible at a particular zoom level, then the scale band added first will be drawn first while the band added last will be drawn last. It would usually be the case therefore that the user would add the lowest resolution band to this class first and the highest resolution band last.
NOTE: A scale band may only be added once; re-adding the scale band will cause the existing entry to be removed.
Public Member Functions | |
TSLS63DataLayerScaleBands () | |
void | addBand (TSLS63ScaleBandEnum scaleBand, double lowerThreshold, double upperThreshold) |
int | count () const |
void | destroy () |
void | insertBandAt (int index, TSLS63ScaleBandEnum scaleBand, double lowerThreshold, double upperThreshold) |
bool | getBand (TSLS63ScaleBandEnum scaleBand, double &lowerThreshold, double &upperThreshold) const |
bool | getBandAt (int index, TSLS63ScaleBandEnum &scaleBand, double &lowerThreshold, double &upperThreshold) const |
bool | removeBand (TSLS63ScaleBandEnum scaleBand) |
bool | removeBandAt (int index) |
void * | operator new (size_t size) TSL_NO_THROW |
void * | operator new (size_t size, char *filename, int line) |
TSLS63DataLayerScaleBands::TSLS63DataLayerScaleBands | ( | ) |
void TSLS63DataLayerScaleBands::addBand | ( | TSLS63ScaleBandEnum | scaleBand, |
double | lowerThreshold, | ||
double | upperThreshold ) |
Adds a scale band to the TSLS63DataLayerScaleBands class. If that scale band has already been added, then it will be removed first
scaleBand | The S57 scale band to add |
lowerThreshold | The lower threshold value in Map Units per Pixel. |
upperThreshold | The upper threshold value in Map Units per Pixel. |
int TSLS63DataLayerScaleBands::count | ( | ) | const |
Returns the number of scale band that this class contains
void TSLS63DataLayerScaleBands::destroy | ( | ) |
Used to destroy instances of this class.
bool TSLS63DataLayerScaleBands::getBand | ( | TSLS63ScaleBandEnum | scaleBand, |
double & | lowerThreshold, | ||
double & | upperThreshold ) const |
Queries the threshold values for the specified scale band.
scaleBand | The S57 scale band to query |
lowerThreshold | Storage for the lower threshold value in Map Units per Pixel. |
upperThreshold | Storage for the upper threshold value in Map Units per Pixel. |
bool TSLS63DataLayerScaleBands::getBandAt | ( | int | index, |
TSLS63ScaleBandEnum & | scaleBand, | ||
double & | lowerThreshold, | ||
double & | upperThreshold ) const |
Queries the scale band and threshold values at the specified index
index | The index to query at |
scaleBand | Storage for theS57 scale band |
lowerThreshold | Storage for the lower threshold value in Map Units per Pixel. |
upperThreshold | Storage for the upper threshold value in Map Units per Pixel. |
void TSLS63DataLayerScaleBands::insertBandAt | ( | int | index, |
TSLS63ScaleBandEnum | scaleBand, | ||
double | lowerThreshold, | ||
double | upperThreshold ) |
Inserts a scale band at a particular index to the TSLS63DataLayerScaleBands class. If that scale band has already been added, then it will be removed first
index | The index to insert the scale band at. |
scaleBand | The S57 scale band to add |
lowerThreshold | The lower threshold value in Map Units per Pixel. |
upperThreshold | The upper threshold value in Map Units per Pixel. |
Should the index passed be invalid, then the scale band will be added to the back.
void * TSLS63DataLayerScaleBands::operator new | ( | size_t | size | ) |
Allocation override for API redirection.
void * TSLS63DataLayerScaleBands::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 TSLS63DataLayerScaleBands::removeBand | ( | TSLS63ScaleBandEnum | scaleBand | ) |
Removes the scale band specified from this class.
scaleBand | The scale band to remove |
bool TSLS63DataLayerScaleBands::removeBandAt | ( | int | index | ) |
Removes the scale band at specified index from this class.
index | The index of the scale band to remove |