rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvScaleVisibilityFilter Class Reference

Controls the visibility of a layer according to the scale. More...

#include <ilviews/maps/scalefilter.h>

Inheritance diagram for IlvScaleVisibilityFilter:
IlvLayerVisibilityFilter

List of all members.

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.

Detailed Description

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


Constructor & Destructor Documentation

IlvScaleVisibilityFilter::IlvScaleVisibilityFilter ( IlDouble  minScale,
IlDouble  maxScale 
)

Initializes an IlvScaleVisibilityFilter object.

The layer will be visible if its scale is between minScale and maxScale.

Parameters:
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().
See also:
IlvScaleVisibilityFilter::NoLimit()

Member Function Documentation

IlDouble IlvScaleVisibilityFilter::getMaxScale (  )  const

Returns the maximum scale at which the layer is visible.

Returns:
The maximum scale.
IlDouble IlvScaleVisibilityFilter::getMinScale (  )  const

Returns the minimum scale at which the layer is visible.

Returns:
The minimum scale.
void IlvScaleVisibilityFilter::setMaxScale ( IlDouble  maxScale  ) 

Sets the maximum scale at which the layer is visible.

Parameters:
maxScale The maximum scale.
void IlvScaleVisibilityFilter::setMinScale ( IlDouble  minScale  ) 

Sets the minimum scale at which the layer is visible.

Parameters:
minScale The minimum scale.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.