#include <GLViewer_Geom.h>
Class GLViewer_Poly Polygon for 2d detection
◆ GLViewer_Poly()
constructs a closed polygon from the given ordered list of points
◆ ~GLViewer_Poly()
GLViewer_Poly::~GLViewer_Poly |
( |
| ) |
|
|
virtual |
destructor, <myPoints> mustn't be deleted here!
◆ AddPoint()
◆ Count()
int GLViewer_Poly::Count |
( |
| ) |
const |
|
inline |
◆ HasIntersection()
bool GLViewer_Poly::HasIntersection |
( |
const GLViewer_Segment & |
theSegment | ) |
const |
|
virtual |
◆ IsCovers() [1/2]
bool GLViewer_Poly::IsCovers |
( |
const GLViewer_Poly & |
thePoly | ) |
const |
|
virtual |
Returns true if a other polygon covers this polygon
- Returns
- true if <thePnt> lies within this polygon
-
true if <thePoly> covers this polygon
References Count(), IsIn(), and myPoints.
◆ IsCovers() [2/2]
bool GLViewer_Poly::IsCovers |
( |
const GLViewer_Rect & |
theRect | ) |
const |
|
virtual |
◆ IsIn()
bool GLViewer_Poly::IsIn |
( |
const GLViewer_Pnt & |
thePnt | ) |
const |
|
virtual |
◆ myPoints
The documentation for this class was generated from the following files: