Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Controls the visibility of a layer according to the scale. More...
#include <ilviews/maps/scalefilter.h>
Public Member Functions | |
IlvScaleVisibilityFilter (IlDouble minScale, IlDouble maxScale) | |
Initializes an IlvScaleVisibilityFilter object. | |
IlDouble | getMaxScale () const |
Returns the maximum scale at which the layer is visible. | |
IlDouble | getMinScale () const |
Returns the minimum scale at which the layer is visible. | |
void | setMaxScale (IlDouble maxScale) |
Sets the maximum scale at which the layer is visible. | |
void | setMinScale (IlDouble minScale) |
Sets the minimum scale at which the layer is visible. | |
Static Public Member Functions | |
static IlDouble | NoLimit () |
The value meaning that a scale limit is undefined. |
Controls the visibility of a layer according to the scale.
A scale visibility filter allows a layer to be visible between a minimum scale and a maximum scale. Both limit scales can have the IlvScaleVisibilityFilter::NoLimit()
value if the layer should be visible for any scale smaller than a minimum scale (this could be the case for layers containing low-resolution map data), or conversely, for any scale larger than a maximum scale (this could be the case for layers containing high-resolution map data). Library: ilvmaps
Initializes an IlvScaleVisibilityFilter
object.
The layer will be visible if its scale is between minScale and maxScale.
minScale | The minimum scale at which the layer will be visible (for instance, 1/100000). If no minimum scale is required, you must pass the value IlvScaleVisibilityFilter::NoLimit() . | |
maxScale | The maximum scale at which the layer will be visible (for instance, 1/20000). If no maximum scale is required, you must pass the value IlvScaleVisibilityFilter::NoLimit() . |
IlDouble IlvScaleVisibilityFilter::getMaxScale | ( | ) | const |
Returns the maximum scale at which the layer is visible.
IlDouble IlvScaleVisibilityFilter::getMinScale | ( | ) | const |
Returns the minimum scale at which the layer is visible.
void IlvScaleVisibilityFilter::setMaxScale | ( | IlDouble | maxScale | ) |
Sets the maximum scale at which the layer is visible.
maxScale | The maximum scale. |
void IlvScaleVisibilityFilter::setMinScale | ( | IlDouble | minScale | ) |
Sets the minimum scale at which the layer is visible.
minScale | The minimum scale. |
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.