![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPolygon.h>
Public Types | |
| typedef cPolygonT< TYPE, TYPE_RECT > | SUPER_t |
| typedef SUPER_t::DVALUE_t | DVALUE_t |
| typedef SUPER_t::POINT_t | POINT_t |
| typedef SUPER_t::RECT_t | RECT_t |
Public Types inherited from GrayLib::cPolygonT< float, cRectFT< float > > | |
| typedef float | DVALUE_t |
| Dimension value type. More... | |
| typedef cVecT2< float > | POINT_t |
| typedef cRectFT< float > | RECT_t |
| cRectNT<TYPE> More... | |
Public Member Functions | |
| cPolygonFT () | |
| ~cPolygonFT () | |
| ITERATE_t _cdecl | CreatePolygonValuesF (ITERATE_t nCount,...) |
| bool | FixPolygon () |
| bool | PtInPoly (DVALUE_t x, DVALUE_t y) const |
| bool | PtInPoly (const POINT_t &pt) const |
| HRESULT | v_SetPoly (const cVariant &vVal, ITERATE_t iStart=0) |
| void | v_GetPoly (cVariant &vVal) const |
| bool | IsRectIntersect (const RECT_t &rect) const |
| cString | toString (void) const |
| ITERATE_t | FindClosestVert (const POINT_t &pt) const |
Public Member Functions inherited from GrayLib::cPolygonT< float, cRectFT< float > > | |
| cPolygonT () | |
| const cRectFT< float > & | get_BoundingRect (void) const |
| ITERATE_t | get_NumVerts () const |
| bool | isPolyEmpty () const |
| const POINT_t & | GetVert (ITERATE_t i) const |
| POINT_t & | RefVert (ITERATE_t i) |
| bool | IsEqual (const THIS_t &p) const |
| ITERATE_t | CreatePolygonPoints (const POINT_t *pPoints, ITERATE_t nCount) |
| void | SetEmpty () |
| void | DeleteVert (ITERATE_t i) |
| void | InsertVert (ITERATE_t i, const POINT_t &pt) |
| ITERATE_t | AddVert (const POINT_t &pt) |
| ITERATE_t | AddVert (float x, float y) |
| void | UnionPolyRect (cRectFT< float > &rect) const |
| void | SetCopy (const THIS_t &poly) |
| void | put_PolyRect (const cRectFT< float > &rect) |
| void | put_PolyRect (float fSizeX, float fSizeY) |
| void | OffsetPoly (float dx, float dy) |
Additional Inherited Members | |
Static Public Attributes inherited from GrayLib::cPolygonT< float, cRectFT< float > > | |
| static const ITERATE_t | k_MAX_VERTS |
| arbitrary max. More... | |
Protected Attributes inherited from GrayLib::cPolygonT< float, cRectFT< float > > | |
| cRectFT< float > | m_rectUnion |
| The union rectangle m_aPoints. inclusive if float, non-inclusive if int. More... | |
| cArrayStruct< POINT_t > | m_aPoints |
| k_MAX_VERTS More... | |
| typedef SUPER_t::DVALUE_t GrayLib::cPolygonFT< TYPE, TYPE_RECT >::DVALUE_t |
| typedef SUPER_t::POINT_t GrayLib::cPolygonFT< TYPE, TYPE_RECT >::POINT_t |
| typedef SUPER_t::RECT_t GrayLib::cPolygonFT< TYPE, TYPE_RECT >::RECT_t |
| typedef cPolygonT<TYPE, TYPE_RECT> GrayLib::cPolygonFT< TYPE, TYPE_RECT >::SUPER_t |
|
inline |
|
inline |
| ITERATE_t _cdecl GrayLib::cPolygonFT< TYPE, TYPE_RECT >::CreatePolygonValuesF | ( | ITERATE_t | nCount, |
| ... | |||
| ) |
| ITERATE_t GrayLib::cPolygonFT< TYPE, TYPE_RECT >::FindClosestVert | ( | const POINT_t & | pt | ) | const |
| bool GrayLib::cPolygonFT< TYPE, TYPE_RECT >::FixPolygon |
| bool GrayLib::cPolygonFT< TYPE, TYPE_RECT >::IsRectIntersect | ( | const RECT_t & | rect | ) | const |
Check if any point of the rect is in the poly.
|
inline |
| bool GrayLib::cPolygonFT< TYPE, TYPE_RECT >::PtInPoly | ( | DVALUE_t | x, |
| DVALUE_t | y | ||
| ) | const |
DVALUE_t pnpoly(int npol, DVALUE_t *xp, DVALUE_t *yp, DVALUE_t x, DVALUE_t y)
| cString GrayLib::cPolygonFT< TYPE, TYPE_RECT >::toString | ( | void | ) | const |
store polygon data as a string.
| void GrayLib::cPolygonFT< TYPE, TYPE_RECT >::v_GetPoly | ( | cVariant & | vVal | ) | const |
| HRESULT GrayLib::cPolygonFT< TYPE, TYPE_RECT >::v_SetPoly | ( | const cVariant & | vVal, |
| ITERATE_t | iStart = 0 |
||
| ) |