Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Arak::QueryPoint Class Reference

#include <query_point.hpp>

List of all members.


Detailed Description

A query point is a point whose current color is maintained by a Coloring object.

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

QueryPointListenerListlisteners
 A pointer to a list of listeners for this point.

Colorc
 A pointer to the current color of this query point.


Constructor & Destructor Documentation

Arak::QueryPoint::QueryPoint const Geometry::Point p,
QueryPointListenerList listeners,
Color color
[inline]
 

Constructor.

Parameters:
p the location of the query point
listeners a pointer to a list of listeners for this point
color a pointer to the color of this query point, which may be modified by this object

Definition at line 73 of file query_point.hpp.

References Arak::Geometry::Point, and Arak::QueryPointListenerList.

Arak::QueryPoint::QueryPoint const Geometry::Point  p = CGAL::ORIGIN  )  [inline]
 

Default constructor.

This constructor is used to build anonymous query points used in searching the query point index.

Parameters:
p the location of the query point

Definition at line 84 of file query_point.hpp.

References Arak::Geometry::Point.


Member Function Documentation

void Arak::QueryPoint::addListener QueryPointListener listener  )  const [inline]
 

Adds an additional listener to this query point.

Parameters:
listener the new listener

Definition at line 121 of file query_point.hpp.

References Arak::QueryPointListener::recolor().

Referenced by Arak::QueryPointIndex::QueryPointIndex().

Color Arak::QueryPoint::color  )  const [inline]
 

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().

void Arak::QueryPoint::recolor  )  const [inline]
 

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().

void Arak::QueryPoint::setColor Color  color  )  const [inline]
 

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().


Member Data Documentation

Color* Arak::QueryPoint::c [protected]
 

A pointer to the current color of this query point.

Definition at line 61 of file query_point.hpp.

QueryPointListenerList* Arak::QueryPoint::listeners [protected]
 

A pointer to a list of listeners for this point.

Definition at line 56 of file query_point.hpp.


The documentation for this class was generated from the following file:
Generated on Wed May 25 14:41:28 2005 for Arak by doxygen 1.3.6