#include <query_point.hpp>
For efficiency this functor represents such quadrilaterals as the union or difference between two triangles.
Definition at line 241 of file query_point.hpp.
Public Member Functions | |
RecolorQuadrilateralFunction (const Geometry::Triangle &t1, const Geometry::Triangle &t2) | |
Constructor. | |
void | operator() (const QueryPoint &q) |
Recolors the supplied query point if it lies in the closure of the quadrilateral. | |
Private Attributes | |
const Geometry::Triangle * | t1 |
A pointer to the first triangle used to represent the quadrilateral; it must consist of any three of the quadrilateral's vertices. | |
const Geometry::Triangle * | t2 |
A pointer to the second triangle used to represent the quadrilateral; it must have two adjacent vertices of t1 and the quadrilateral vertex that is not in t1. |
|
Constructor.
Definition at line 278 of file query_point.hpp. References Arak::Geometry::Triangle. |
|
Recolors the supplied query point if it lies in the closure of the quadrilateral.
Definition at line 288 of file query_point.hpp. References Arak::QueryPoint::recolor(), t1, and t2. |
|
A pointer to the first triangle used to represent the quadrilateral; it must consist of any three of the quadrilateral's vertices. 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 253 of file query_point.hpp. Referenced by operator()(). |
|
A pointer to the second triangle used to represent the quadrilateral; it must have two adjacent vertices of t1 and the quadrilateral vertex that is not in t1. 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 263 of file query_point.hpp. Referenced by operator()(). |