AnnGetNodes example for C++ Builder
void TForm1::AnnGetNodes(HANNOBJECT hPlgn)
{
L_UINT uNodes;
bool bShow;
L_UINT uFillPattern;
L_UINT uFillMode;
L_UINT uPolyFillMode;
L_UINT uLineStyle;
L_DOUBLE dLineWidth;
uNodes= 0;
bShow= True;
uFillPattern= 0;
uFillMode= 0;
uPolyFillMode= 0;
uLineStyle= 0;
dLineWidth= 0;
LEADAnn1->AnnGetFillPattern(hPlgn,
uFillPattern);
LEADAnn1->AnnSetFillPattern(hPlgn,
(uFillPattern+ 1) % 7, False);
LEADAnn1->AnnGetFillMode(hPlgn,
uFillMode);
LEADAnn1->AnnSetFillMode(hPlgn,
(uFillMode+ 1) % 3, False);
LEADAnn1->AnnGetPolyFillMode(hPlgn,
uPolyFillMode);
LEADAnn1->AnnSetPolyFillMode(hPlgn,
1 - uPolyFillMode, False);
LEADAnn1->AnnGetLineStyle(hPlgn,
uLineStyle);
LEADAnn1->AnnSetLineStyle(hPlgn,
(uLineStyle + 1) % 6, False);
LEADAnn1->AnnGetLineWidth(hPlgn,
dLineWidth);
LEADAnn1->AnnSetLineWidth(hPlgn,
(((int)dLineWidth % 4) + 1), False);
LEADAnn1->AnnGetNodes(hPlgn,
bShow, uNodes);
LEADAnn1->AnnSetNodes(hPlgn,
(bShow == false), (uNodes + 1) % LEADAnn1->AnnGetPointCount(hPlgn),
False);
}