#include <MRSelectScreenLasso.h>
Public Member Functions | |
MRVIEWER_API void | addPoint (int mouseX, int mouseY) |
add point to contour | |
const Contour2f & | getScreenPoints () const |
get current points in contour | |
void | cleanScreenPoints () |
clean contour | |
MRVIEWER_API BitSet | calculateSelectedPixelsInsidePolygon () |
MRVIEWER_API BitSet | calculateSelectedPixelsNearPolygon (float radiusPix) |
Class for selection area on screen
MRVIEWER_API void MR::SelectScreenLasso::addPoint | ( | int | mouseX, |
int | mouseY ) |
add point to contour
MRVIEWER_API BitSet MR::SelectScreenLasso::calculateSelectedPixelsInsidePolygon | ( | ) |
calculate area on screen that are inside of closed contour.
return the matrix of pixels (in local space of active viewport) belonging selected area
MRVIEWER_API BitSet MR::SelectScreenLasso::calculateSelectedPixelsNearPolygon | ( | float | radiusPix | ) |
calculate area on screen that near open contour.
return the matrix of pixels (in local space of active viewport) belonging selected area
|
inline |
clean contour
|
inline |
get current points in contour