![]() |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
The default scale bar used by IlvMapScale when none is provided by the user.
More...
#include <ilviews/maps/gui/scale.h>
Public Member Functions | |
| IlvMapDefaultScaleBar (IlvDisplay *display, const IlvRect &rect, IlUInt divs, IlvMapDefaultScaleBarStyle style, IlvColor *altColor=0, IlvPalette *palette=0) | |
| Constructor. More... | |
| const IlvColor * | getAlternateColor () |
| 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... | |
The default scale bar used by IlvMapScale when none is provided by the user.
Library: ilvmaps
| IlvMapDefaultScaleBar::IlvMapDefaultScaleBar | ( | IlvDisplay * | display, |
| const IlvRect & | rect, | ||
| IlUInt | divs, | ||
| IlvMapDefaultScaleBarStyle | style, | ||
| IlvColor * | altColor = 0, |
||
| IlvPalette * | palette = 0 |
||
| ) |
Constructor.
| display | The IlvDisplay. |
| rect | The initial size of the bar. |
| divs | The number of divisions. |
| style | The style of the scale. |
| altColor | The alternate color used in filled styles. |
| palette | The palette. |
| const IlvColor* IlvMapDefaultScaleBar::getAlternateColor | ( | ) |
Gets the alternate color.
| IlInt IlvMapDefaultScaleBar::getDivisions | ( | ) |
Retrieves the number of divisions.
| IlvMapDefaultScaleBarStyle IlvMapDefaultScaleBar::getStyle | ( | ) |
Retrieves the style of the bar.
| void IlvMapDefaultScaleBar::setAlternateColor | ( | IlvColor * | color | ) |
Sets the alternate color.
| color | The 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.
| divs | The number of divisions. |
| void IlvMapDefaultScaleBar::setStyle | ( | IlvMapDefaultScaleBarStyle | style | ) |
Changes the style of the bar.
| style | The 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.