![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cPolygon.h>
Public Types | |
typedef TYPE | DVALUE_t |
Dimension value type. More... | |
typedef cVecT2< TYPE > | POINT_t |
typedef TYPE_RECT | RECT_t |
cRectNT<TYPE> More... | |
Public Member Functions | |
cPolygonT () | |
const TYPE_RECT & | 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 (TYPE x, TYPE y) |
void | UnionPolyRect (TYPE_RECT &rect) const |
void | SetCopy (const THIS_t &poly) |
void | put_PolyRect (const TYPE_RECT &rect) |
void | put_PolyRect (TYPE fSizeX, TYPE fSizeY) |
void | OffsetPoly (TYPE dx, TYPE dy) |
Static Public Attributes | |
static const ITERATE_t | k_MAX_VERTS = 1024 |
arbitrary max. More... | |
Protected Attributes | |
TYPE_RECT | m_rectUnion |
The union rectangle m_aPoints. inclusive if float, non-inclusive if int. More... | |
cArrayStruct< POINT_t > | m_aPoints |
k_MAX_VERTS More... | |
a 2d polygon (Array of points) of arbitrary precision. (int,float,double)
typedef TYPE GrayLib::cPolygonT< TYPE, TYPE_RECT >::DVALUE_t |
Dimension value type.
typedef cVecT2<TYPE> GrayLib::cPolygonT< TYPE, TYPE_RECT >::POINT_t |
typedef TYPE_RECT GrayLib::cPolygonT< TYPE, TYPE_RECT >::RECT_t |
cRectNT<TYPE>
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
This polygon is just a rectangle.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
recalculate the union rectangle. NOT NORMALLY USED! should just use m_rectUnion ?? add the points to the rectangle.
|
static |
arbitrary max.
|
protected |
k_MAX_VERTS
|
protected |
The union rectangle m_aPoints. inclusive if float, non-inclusive if int.