#include <PointSet.h>

Public Member Functions | |
| virtual Point * | addPoint ()=0 |
| virtual Point * | addPoint (double dX, double dY)=0 |
| virtual bool | insertPoint (Point *pPoint)=0 |
| virtual void | setPoints (const std::vector< Point * > &points)=0 |
| virtual std::vector< Point * > | getPoints () const =0 |
| virtual unsigned int | getNumPoints () const =0 |
| virtual bool | hasPoint (Point *pPoint) const =0 |
| virtual bool | removePoint (Point *pPoint, bool bDelete)=0 |
| virtual void | clear (bool bDelete)=0 |
| virtual bool | areSymbolsDisplayed () const =0 |
| virtual void | displaySymbols (bool bDisplay)=0 |
| virtual bool | isLineDisplayed () const =0 |
| virtual ColorType | getLineColor () const =0 |
| virtual int | getLineWidth () const =0 |
| virtual LineStyle | getLineStyle () const =0 |
| virtual void | displayLine (bool bDisplay)=0 |
| virtual Point * | hitPoint (LocationType point) const =0 |
| virtual bool | hit (LocationType point) const =0 |
| virtual bool | getExtents (double &dMinX, double &dMinY, double &dMaxX, double &dMaxY)=0 |
| virtual void | setLineColor (const ColorType &clrLine)=0 |
| virtual void | setLineWidth (int iWidth)=0 |
| virtual void | setLineStyle (const LineStyle &eStyle)=0 |
| virtual void | setInteractive (bool interactive)=0 |
| virtual bool | getInteractive ()=0 |
Static Public Member Functions | |
| static const std::string & | signalPointAdded () |
| static const std::string & | signalPointsSet () |
Protected Member Functions | |
| virtual | ~PointSet () |
This subclass of Subject will notify upon the following conditions:
Definition at line 32 of file PointSet.h.
| virtual PointSet::~PointSet | ( | ) | [protected, virtual] |
This should be destroyed by calling PlotView::deleteObject.
Definition at line 264 of file PointSet.h.
| static const std::string& PointSet::signalPointAdded | ( | ) | [static] |
Emitted with any<Point*> when a point is added to the PointSet.
Definition at line 38 of file PointSet.h.
| static const std::string& PointSet::signalPointsSet | ( | ) | [static] |
Emitted with any<vector<Point*> > when the PointSet's points are replaced.
Definition at line 42 of file PointSet.h.
| virtual Point* PointSet::addPoint | ( | ) | [pure virtual] |
| virtual Point* PointSet::addPoint | ( | double | dX, | |
| double | dY | |||
| ) | [pure virtual] |
Creates a Point plot object and adds it to the pointset.
| dX | The points x value | |
| dY | The points y value |
| virtual bool PointSet::insertPoint | ( | Point * | pPoint | ) | [pure virtual] |
Inserts an existing Point plot object into the pointset.
| pPoint | The point to insert |
| virtual void PointSet::setPoints | ( | const std::vector< Point * > & | points | ) | [pure virtual] |
Inserts a vector of existing Point plot objects into the pointset, replacing any existing points.
The existing points are removed but not destroyed.
| points | The new list of points |
| virtual std::vector<Point*> PointSet::getPoints | ( | ) | const [pure virtual] |
Returns the list of points in the pointset.
| virtual unsigned int PointSet::getNumPoints | ( | ) | const [pure virtual] |
Returns the number of points in the pointset.
| virtual bool PointSet::hasPoint | ( | Point * | pPoint | ) | const [pure virtual] |
Checks the pointsets list of points for the point object.
| pPoint | The point to look for |
| virtual bool PointSet::removePoint | ( | Point * | pPoint, | |
| bool | bDelete | |||
| ) | [pure virtual] |
Removes the point from the pointset.
| pPoint | The point to remove | |
| bDelete | True - deletes the point upon removal, False - just removes the point |
| virtual void PointSet::clear | ( | bool | bDelete | ) | [pure virtual] |
Clears the list of points from the pointset.
| bDelete | True - deletes the points upon removal, False - just removes the points |
| virtual bool PointSet::areSymbolsDisplayed | ( | ) | const [pure virtual] |
Checks to see if the symbols are displayed.
| virtual void PointSet::displaySymbols | ( | bool | bDisplay | ) | [pure virtual] |
Sets the symbol display attribute.
| bDisplay | True displays the symbols, false turns the display off |
| virtual bool PointSet::isLineDisplayed | ( | ) | const [pure virtual] |
Returns the state of the line display property.
| virtual ColorType PointSet::getLineColor | ( | ) | const [pure virtual] |
Returns the line color.
| virtual int PointSet::getLineWidth | ( | ) | const [pure virtual] |
Returns the line width.
| virtual LineStyle PointSet::getLineStyle | ( | ) | const [pure virtual] |
| virtual void PointSet::displayLine | ( | bool | bDisplay | ) | [pure virtual] |
Sets the line display property.
| bDisplay | True - display lines, False - do not display lines |
| virtual Point* PointSet::hitPoint | ( | LocationType | point | ) | const [pure virtual] |
Determines if this plot object resides at this point, most likely a mouse click.
| point | The location of the mouse click |
| virtual bool PointSet::hit | ( | LocationType | point | ) | const [pure virtual] |
Determines if this plot object resides at this point, most likely a mouse click.
| point | The location of the mouse click |
Implemented in PolygonPlotObject.
| virtual bool PointSet::getExtents | ( | double & | dMinX, | |
| double & | dMinY, | |||
| double & | dMaxX, | |||
| double & | dMaxY | |||
| ) | [pure virtual] |
Returns the extents of the pointset.
(Its bounds)
| dMinX | The minimum x value | |
| dMinY | The minimum y value | |
| dMaxX | The maximum x value | |
| dMaxY | The maximum y value |
Implements PlotObject.
| virtual void PointSet::setLineColor | ( | const ColorType & | clrLine | ) | [pure virtual] |
Sets the line color.
| clrLine | The new line color |
| virtual void PointSet::setLineWidth | ( | int | iWidth | ) | [pure virtual] |
Sets the line width.
| iWidth | The new line width |
| virtual void PointSet::setLineStyle | ( | const LineStyle & | eStyle | ) | [pure virtual] |
Sets the line style.
| eStyle | The new line style |
| virtual void PointSet::setInteractive | ( | bool | interactive | ) | [pure virtual] |
Set the current interactivity state.
Setting this to false will cause the PointSet to delay processing until set to interactive again. This is useful when making a large number of changes to the PointSet.
| interactive | The new interactive state. |
| virtual bool PointSet::getInteractive | ( | ) | [pure virtual] |
Get the current interactivity state.