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

Arak::QueryPointIndex::RecolorTriangleFunction Class Reference

#include <query_point.hpp>

List of all members.


Detailed Description

This functor is used to recolor all query points inside a triangular region.

Definition at line 203 of file query_point.hpp.

Public Member Functions

 RecolorTriangleFunction (const Geometry::Triangle &t)
 Constructor.

void operator() (const QueryPoint &q)
 Recolors the supplied query point if it lies in the closure of the triangle.


Private Attributes

const Geometry::Trianglet
 A pointer to the triangle.


Constructor & Destructor Documentation

Arak::QueryPointIndex::RecolorTriangleFunction::RecolorTriangleFunction const Geometry::Triangle t  )  [inline]
 

Constructor.

Parameters:
t the triangle whose closure is the recolored region

Definition at line 222 of file query_point.hpp.

References Arak::Geometry::Triangle.


Member Function Documentation

void Arak::QueryPointIndex::RecolorTriangleFunction::operator() const QueryPoint q  )  [inline]
 

Recolors the supplied query point if it lies in the closure of the triangle.

Parameters:
q the query point

Definition at line 230 of file query_point.hpp.

References Arak::QueryPoint::recolor().


Member Data Documentation

const Geometry::Triangle* Arak::QueryPointIndex::RecolorTriangleFunction::t [private]
 

A pointer to the triangle.

We use a pointer here so the default assignment operator works for objects of this type; this is required to use this functor in combination with the boost::function_output_iterator adaptor.

Definition at line 213 of file query_point.hpp.


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