rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
List of all members | Public Member Functions
IlvMapDefaultScaleBar Class Reference

The default scale bar used by IlvMapScale when none is provided by the user. More...

#include <ilviews/maps/gui/scale.h>

Inheritance diagram for IlvMapDefaultScaleBar:
IlvSimpleGraphic IlvGraphic

Public Member Functions

 IlvMapDefaultScaleBar (IlvDisplay *display, const IlvRect &rect, IlUInt divs, IlvMapDefaultScaleBarStyle style, IlvColor *altColor=0, IlvPalette *palette=0)
 Constructor. More...
 
const IlvColorgetAlternateColor ()
 Gets the alternate color. More...
 
IlInt getDivisions ()
 Retrieves the number of divisions. More...
 
IlvMapDefaultScaleBarStyle getStyle ()
 Retrieves the style of the bar. More...
 
void setAlternateColor (IlvColor *color)
 Sets the alternate color. More...
 
void setDivisions (IlInt divs)
 Sets the number of divisions. More...
 
void setStyle (IlvMapDefaultScaleBarStyle style)
 Changes the style of the bar. More...
 

Detailed Description

The default scale bar used by IlvMapScale when none is provided by the user.

Library: ilvmaps

Constructor & Destructor Documentation

IlvMapDefaultScaleBar::IlvMapDefaultScaleBar ( IlvDisplay display,
const IlvRect rect,
IlUInt  divs,
IlvMapDefaultScaleBarStyle  style,
IlvColor altColor = 0,
IlvPalette palette = 0 
)

Constructor.

Parameters
displayThe IlvDisplay.
rectThe initial size of the bar.
divsThe number of divisions.
styleThe style of the scale.
altColorThe alternate color used in filled styles.
paletteThe palette.

Member Function Documentation

const IlvColor* IlvMapDefaultScaleBar::getAlternateColor ( )

Gets the alternate color.

Returns
The alternate color.
IlInt IlvMapDefaultScaleBar::getDivisions ( )

Retrieves the number of divisions.

Returns
The number of divisions.
IlvMapDefaultScaleBarStyle IlvMapDefaultScaleBar::getStyle ( )

Retrieves the style of the bar.

Returns
The style of the bar.
void IlvMapDefaultScaleBar::setAlternateColor ( IlvColor color)

Sets the alternate color.

Parameters
colorThe new alternate color. The previous alternate color (if any) is unlocked and the new supplied color is locked.
void IlvMapDefaultScaleBar::setDivisions ( IlInt  divs)

Sets the number of divisions.

Parameters
divsThe number of divisions.
void IlvMapDefaultScaleBar::setStyle ( IlvMapDefaultScaleBarStyle  style)

Changes the style of the bar.

Parameters
styleThe new style.

© Copyright 2015, 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.