#include <query_point.hpp>
This class is designed so that it may be treated as a lightweight scalar type (i.e., the default assignment operator works) and therefore used in template structures.
Definition at line 49 of file query_point.hpp.
Public Member Functions | |
QueryPoint (const Geometry::Point &p, QueryPointListenerList *listeners, Color *color) | |
Constructor. | |
QueryPoint (const Geometry::Point p=CGAL::ORIGIN) | |
Default constructor. | |
Color | color () const |
Returns the current color of this query point. | |
void | setColor (Color color) const |
Sets the color of this query point and informs all listeners for this query point that its color has changed. | |
void | recolor () const |
Recolors this point and informs all listeners for this query point that its color has changed. | |
void | addListener (QueryPointListener *listener) const |
Adds an additional listener to this query point. | |
Protected Attributes | |
QueryPointListenerList * | listeners |
A pointer to a list of listeners for this point. | |
Color * | c |
A pointer to the current color of this query point. |
|
Constructor.
Definition at line 73 of file query_point.hpp. References Arak::Geometry::Point, and Arak::QueryPointListenerList. |
|
Default constructor. This constructor is used to build anonymous query points used in searching the query point index.
Definition at line 84 of file query_point.hpp. References Arak::Geometry::Point. |
|
Adds an additional listener to this query point.
Definition at line 121 of file query_point.hpp. References Arak::QueryPointListener::recolor(). Referenced by Arak::QueryPointIndex::QueryPointIndex(). |
|
Returns the current color of this query point.
Definition at line 90 of file query_point.hpp. References Arak::Color. Referenced by Arak::Coloring::color(), Arak::PointSetColorEstimator::create(), Arak::Coloring::getPointWithColor(), Arak::Coloring::read(), Arak::Coloring::readBinary(), Arak::Coloring::test(), and Arak::Coloring::visualize(). |
|
Recolors this point and informs all listeners for this query point that its color has changed.
Definition at line 107 of file query_point.hpp. References Arak::opposite(), and Arak::QueryPointListener::recolor(). Referenced by Arak::QueryPointIndex::RecolorQuadrilateralFunction::operator()(), Arak::QueryPointIndex::RecolorTriangleFunction::operator()(), and setColor(). |
|
Sets the color of this query point and informs all listeners for this query point that its color has changed.
Definition at line 96 of file query_point.hpp. References Arak::opposite(), and recolor(). Referenced by Arak::Coloring::addQueryPoints(), Arak::Coloring::initialize(), Arak::Coloring::read(), and Arak::Coloring::readBinary(). |
|
A pointer to the current color of this query point.
Definition at line 61 of file query_point.hpp. |
|
A pointer to a list of listeners for this point.
Definition at line 56 of file query_point.hpp. |