#include <Locator.h>

Public Types | |
| enum | LocatorStyleEnum { HORIZONTAL_LOCATOR = 0x0001, VERTICAL_LOCATOR = 0x0002, CROSSHAIR_LOCATOR = HORIZONTAL_LOCATOR | VERTICAL_LOCATOR } |
| typedef EnumWrapper < LocatorStyleEnum > | LocatorStyle |
Public Member Functions | |
| virtual void | setLocation (const LocationType &location, bool updateText=true)=0 |
| virtual LocationType | getLocation () const =0 |
| virtual void | setText (const std::string &xText, const std::string &yText)=0 |
| virtual void | getText (std::string &xText, std::string &yText) const =0 |
| virtual void | setStyle (LocatorStyle style)=0 |
| virtual LocatorStyle | getStyle () const =0 |
| virtual void | setColor (const ColorType &locatorColor)=0 |
| virtual ColorType | getColor () const =0 |
| virtual void | setLineWidth (int iWidth)=0 |
| virtual int | getLineWidth () const =0 |
| virtual void | setLineStyle (LineStyle lineStyle)=0 |
| virtual LineStyle | getLineStyle () const =0 |
Static Public Member Functions | |
| static const std::string & | signalLocationChanged () |
| static const std::string & | signalStyleChanged () |
| static const std::string & | signalTextChanged () |
Protected Member Functions | |
| virtual | ~Locator () |
The locator object can be used to pinpoint a particular location on a plot. A combination of a horizontal line and vertical line are used to mark the location. A single horizontal line or a single vertical line can also be drawn to mark a particular value along a single plot axis.
This subclass of Subject will notify upon the following conditions:
Definition at line 36 of file Locator.h.
| typedef EnumWrapper<LocatorStyleEnum> Locator::LocatorStyle |
The EnumWrapper contains a given enum value and provides a isValid() method which returns true if the contained enum value is valid.
Please see How To Use EnumWrapper for more information. The wrapped enum values are Locator::LocatorStyleEnum.
| virtual Locator::~Locator | ( | ) | [protected, virtual] |
This should be destroyed by calling PlotView::deleteObject.
| static const std::string& Locator::signalLocationChanged | ( | ) | [static] |
| static const std::string& Locator::signalStyleChanged | ( | ) | [static] |
| static const std::string& Locator::signalTextChanged | ( | ) | [static] |
| virtual void Locator::setLocation | ( | const LocationType & | location, | |
| bool | updateText = true | |||
| ) | [pure virtual] |
Sets the locator location.
| location | The new locator location. | |
| updateText | If true, the locator will update its text strings to reflect the position of the locator. If false, it will leave them unchanged. |
| virtual LocationType Locator::getLocation | ( | ) | const [pure virtual] |
Returns the locator location.
| virtual void Locator::setText | ( | const std::string & | xText, | |
| const std::string & | yText | |||
| ) | [pure virtual] |
Sets the locator text.
| xText | The new x text string. | |
| yText | The new y text string. |
| virtual void Locator::getText | ( | std::string & | xText, | |
| std::string & | yText | |||
| ) | const [pure virtual] |
Retrieves the locator text strings.
| xText | The x text string. | |
| yText | The y text string. |
| virtual void Locator::setStyle | ( | LocatorStyle | style | ) | [pure virtual] |
Sets the locator style.
| style | The new locator style. |
| virtual LocatorStyle Locator::getStyle | ( | ) | const [pure virtual] |
Returns the locator style.
| virtual void Locator::setColor | ( | const ColorType & | locatorColor | ) | [pure virtual] |
Sets the locator color.
| locatorColor | The new locator color. Must be a valid color. |
| virtual ColorType Locator::getColor | ( | ) | const [pure virtual] |
Returns the locator color.
| virtual void Locator::setLineWidth | ( | int | iWidth | ) | [pure virtual] |
Sets the locator line width.
| iWidth | The new locator line width. Cannot be zero. |
| virtual int Locator::getLineWidth | ( | ) | const [pure virtual] |
Returns the locator line width.
| virtual void Locator::setLineStyle | ( | LineStyle | lineStyle | ) | [pure virtual] |
Sets the locator line style.
| lineStyle | The new locator line style. |
| virtual LineStyle Locator::getLineStyle | ( | ) | const [pure virtual] |
Returns the locator line style.