ml::CSOPointInPolygonChecker Class Reference

Checks if a point is inside a planar, closed polygon in an arbitrary plane. More...

#include <CSOPointInPolygonChecker.h>

List of all members.

Classes

struct  BinnedLine

Public Member Functions

 CSOPointInPolygonChecker (CSO *cso)
 Sets the polygon based on a CSO.
 CSOPointInPolygonChecker (std::vector< Vector3 > &pathPoints, const Vector3 &normal, bool overwritePathPoints=false)
 Sets the polygon based on a list of points and a normal.
 ~CSOPointInPolygonChecker ()
 Destructor.
void set (CSO *cso)
 Sets the polygon based on a CSO.
void set (std::vector< Vector3 > &pathPoints, const Vector3 &normal, bool overwritePathPoints=false)
 Sets the polygon based on a list of points and a normal.
bool isPointInsidePolygon (const Vector3 &pos) const
 Checks if a given point is inside the polygon.


Detailed Description

Checks if a point is inside a planar, closed polygon in an arbitrary plane.

The algorithm uses a bounding box test and a binning along the y-axis of the line segments.

Definition at line 25 of file CSOPointInPolygonChecker.h.


Constructor & Destructor Documentation

ml::CSOPointInPolygonChecker::CSOPointInPolygonChecker ( CSO cso  ) 

Sets the polygon based on a CSO.

ml::CSOPointInPolygonChecker::CSOPointInPolygonChecker ( std::vector< Vector3 > &  pathPoints,
const Vector3 normal,
bool  overwritePathPoints = false 
)

Sets the polygon based on a list of points and a normal.

If overwritePathPoints is true the given pathPoints vector will be overwritten by the projected polygon points!

ml::CSOPointInPolygonChecker::~CSOPointInPolygonChecker (  )  [inline]

Destructor.

Definition at line 40 of file CSOPointInPolygonChecker.h.


Member Function Documentation

bool ml::CSOPointInPolygonChecker::isPointInsidePolygon ( const Vector3 pos  )  const

Checks if a given point is inside the polygon.

void ml::CSOPointInPolygonChecker::set ( std::vector< Vector3 > &  pathPoints,
const Vector3 normal,
bool  overwritePathPoints = false 
)

Sets the polygon based on a list of points and a normal.

If overwritePathPoints is true the given pathPoints vector will be overwritten by the projected polygon points!

void ml::CSOPointInPolygonChecker::set ( CSO cso  ) 

Sets the polygon based on a CSO.


The documentation for this class was generated from the following file:

Generated on Sat Sep 3 18:39:42 2011 for MeVisLab Toolbox Reference by  doxygen 1.5.8