AddPolyPoint(); Add Polygon Points |
|
AllocPolyHandle(); Allocate a Poly Handle |
|
ClonePolyHandle(); Clone a Poly Handle |
|
ClosePolyHandle(); Close a Poly Handle |
|
dump_PolyHandle(); Output information about a polygon |
|
FreePolyHandle(); Free Poly Handle |
|
GetPolyBounds(); Get Polygon Bounds |
|
GetPolyPoint(); Get Polygon Point |
|
GetPolyPointCount(); Get Polygon Point Count |
|
GetPolyPtrBounds(); Get Polygon Point Bounds |
|
GetPolyPtrPointCount(); Get Polygon Point Count |
|
LockPolyHandle(); Lock a polygon handle |
|
Points2Poly(); Put points into a polygon |
|
UnlockPolyHandle(); Unlock polygon handle |
This function creates a point in the polygon (pPolyHdl). For non-Windows implementations, the flag isFirstPoint indicates whether the point being created is the first point in the polygon. (1 = it is the first point). |
||
Syntax: |
INT16 PUBLIC |
|
Input: |
hPoly: A polygon handle created by the AllocPolyHandle() function |
|
x/y: Two INT16 values indicating the X,Y coordinates of a point |
||
isFirstPoint: 0/1 |
||
0= |
this is not the first point in the polygon |
|
1= |
this is the first point in the polygon |
|
Return: |
INT16: 0/1 |
|
0= |
Error |
|
1= |
No Error (new point created) |
|
Also See: |
GetPolyPoint(), GetPolyPointCount(), GetPolyPtrBounds(), GetPolyPtrPointCount() |
|
This function allocates memory to define a polygon the size of nPoints and returns a handle/pointer to the polygon data structure |
|
Syntax: |
_PolyHandle PUBLIC |
Input: |
nPoints: INT16 Value indicating the number of points in the polygon. |
Return: |
_PolyHandle: Pointer to a polygon data structure |
Also See: |
ClonePolyHandle(), ClosePolyHandle(), dump_PolyHandle(), FreePolyHandle(), LockPolyHandle(), UnlockPolyHandle() |
This function copies the polygon information structure at phPoly to a new memory location. |
||
Syntax: |
BOOLEAN16 PUBLIC |
|
Input: |
phPoly: A polygon handle created by the AllocPolyHandle() function |
|
Return: |
BOOLEAN16: TRUE/FALSE |
|
TRUE= |
polygon handle successfully cloned/copied |
|
FALSE= |
memory error occurred |
|
Notes: |
Your application must have previously called AllocPolyHandle() to allocate the polygon information structure and obtain the handle that is required as input to this function. |
|
Also See: |
AllocPolyHandle(), ClosePolyHandle(), dump_PolyHandle(), Duplicate(), FreePolyHandle() |
|
This function closes the polygon handle (hPoly). |
|
Syntax: |
void PUBLIC |
Input: |
hPoly: A polygon handle created by the AllocPolyHandle() function |
Return: |
None |
Example: |
hPoly = AllocPolyHandle ( 0 ); |
Also See: |
AllocPolyHandle(), ClonePolyHandle(), dump_PolyHandle(), Duplicate(), FreePolyHandle() |
This is a debugging function that outputs information about the polygon identified by hPoly. |
|
Syntax: |
void PUBLIC |
Input: |
hPoly: Polygon handle |
Return: |
None |
This function frees the memory allocated for the polygon handle identified by hpoly. |
|
Syntax: |
void PUBLIC |
Input: |
hPoly: A polygon handle created by the AllocPolyHandle() function |
Return: |
None |
Example: |
switch (pNode->nNodeType) |
Also See: |
|
This function stores the polygon boundary information (x,y coordinates) in the rectangle data structure identified by pRect. |
|
Syntax: |
void PUBLIC |
Input: |
hPoly: A polygon handle created by the AllocPolyHandle() function |
pRect: Pointer to a rectangle data structure. See the Rect structure in Appendix A. |
|
Return: |
None |
Also See: |
This function sets pnX and pnY to the polygon point at nIndex. |
||
Syntax: |
INT16 PUBLIC |
|
Input: |
pPolyHdl: Pointer to a polygon handle |
|
nIndex: Index number of polygon point |
||
pnX: Place to store x-coordinate of point. Will be -1 if nIndex is invalid |
||
pnY: Place to store y-coordinate of point. Will be -1 if nIndex is invalid. |
||
Return: |
INT16; 0/1 |
|
Value |
Description |
|
One = |
OK |
|
Zero = |
nIndex was invalid |
|
Example: |
if ( |
|
Also See: |
||
This function returns the number of points defined in the polygon identified by hPoly. |
|
Syntax: |
INT16 PUBLIC |
Input: |
hPoly: A polygon handle created by the AllocPolyHandle() function |
Return: |
INT16 value indicating the number of points in the polygon |
Example: |
INT16 ulPoints; |
Also See: |
This function sets the rectangle pRect to the boundaries of the polygon identified by pPoly. |
|
Syntax: |
void PUBLIC |
Input: |
pPoly: Pointer to a polygon returned by LockPolyHandle() |
pRect: Pointer to a rectangle data structure. See the Rect structure in Appendix A. |
|
Return: |
None |
Also See: |
|
This function returns the number of points in the polygon identified by pPoly. |
|
Syntax: |
INT16 PUBLIC |
Input: |
pPoly: Pointer to a polygon returned by LockPolyHandle() |
Return: |
INT16 : Number of points defined in the polygon |
Also See: |
|
This function locks the polygon handle specified by the input parameter hPoly. |
|
Syntax: |
_PolyPtr PUBLIC |
Input: |
hPoly: Polygon handle |
Return: |
PolyPtr: Pointer to the locked polygon handle |
Example: |
pNode = (AnodeInfoPtr) |
Also See: |
|
This function puts nCount points at ptData into a polygon. |
|
Syntax: |
_PolyHandle PUBLIC |
Input: |
ptData: Place where points are stored |
nCount: Number of points |
|
Return: |
PolyHandle: Polygon handle |
Example: |
/*** put data points into a Mac polygon ***/ |
Also See: |
|
This function unlocks a polygon handle previous locked by LockPolyHandle(). |
|
Syntax: |
void PUBLIC |
Input: |
hPoly: Polygon handle |
Return: |
None |
Example: |
/* Unlock the anode handle and poly handle */ |
Also See: |
|