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) | |
Initializes a new IlvMapDefaultScaleBar instance. More... | |
| const IlvColor * | getAlternateColor () const |
| Gets the alternate color. More... | |
| IlInt | getDivisions () const |
| Retrieves the number of divisions. More... | |
| IlvMapDefaultScaleBarStyle | getStyle () const |
| 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 |
||
| ) |
Initializes a new IlvMapDefaultScaleBar instance.
| display | The display to draw this object with. |
| 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 | ( | ) | const |
Gets the alternate color.
| IlInt IlvMapDefaultScaleBar::getDivisions | ( | ) | const |
Retrieves the number of divisions.
| IlvMapDefaultScaleBarStyle IlvMapDefaultScaleBar::getStyle | ( | ) | const |
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. |