|
void | AddCtrl (double x, double y, int ctrlIndex) |
|
int | CtrlCount () |
|
void | GetCtrl (int ctrlIndex, double *x, double *y) |
|
void | RemoveCtrl (int ctrlIndex) |
|
void | SetCtrl (double x, double y, int ctrlIndex) |
|
void | SetPlacement (LArray< double > xs, LArray< double > ys) |
|
ILCompoundRegion * | Add (ILRegion *other) |
|
void | Drag (LPVRoiHandle roiHandle, int x, int y, double zoomX, double zoomY, double panX, double panY) |
|
void | Draw (HDC hdc, BOOL drawHandles, double zoomX, double zoomY, double panX, double panY) |
|
void | EnableHandle (LPVRoiHandle roiHandle, BOOL enabled) |
|
LPVRoiHandle | HitTest (int x, int y, double zoomX, double zoomY, double panX, double panY) |
|
ILCompoundRegion * | Intersect (ILRegion *other) |
|
ILCompoundRegion * | Invert () |
|
void | MapFromImage (double imagePointX, double imagePointY, double *regionPointX, double *regionPointY) |
|
ILObject * | MapObjectFromImage (ILObject *imageObject) |
|
ILObject * | MapObjectToImage (ILObject *regionObject) |
|
void | MapToImage (double regionPointX, double regionPointY, double *imagePointX, double *imagePointY) |
|
void | ReduceImage (ILImage *image, ILImage **newImage, ILImage **newMask) |
|
ILRegion * | Rotate (double da) |
|
ILRegion * | RotateAndTranslate (double x, double y, double newX, double newY, double da) |
|
ILRegion * | Scale (double factorX, double factorY) |
|
ILCompoundRegion * | Subtract (ILRegion *other) |
|
ILImage * | ToMask (int w, int h) |
|
ILRegion * | Translate (double offsetX, double offsetY) |
|
ILCompoundRegion * | Union (ILRegion *other) |
|
ILCompoundRegion * | XOR (ILRegion *other) |
|
ILObject * | Copy () |
|
LPVErrorCode | Load (LString filename) |
|
void | Reset () |
|
LPVErrorCode | Save (LString filename) |
|
BOOL | Valid () |
|
This interface expose APIs to create/modify a polygon region object.
To use this interface, you should create a LPolyRegion object.
Example Code
C++
ILPolyRegionPtr polyRoi = LPolyRegion::Create();
polyRoi->SetPlacement(20, 20, 100);
C#
LPolyRegion polyRoi = new LPolyRegion();
polyRoi.SetPlacement(20, 20, 100);
COM
ILPolyRegionPtr polyRoi = LPolyRegion::Create();
polyRoi->SetPlacement(20, 20, 100);