MeshLib
 
Loading...
Searching...
No Matches
MR::SelectScreenLasso Class Reference

#include <MRSelectScreenLasso.h>

Public Member Functions

MRVIEWER_API void addPoint (int mouseX, int mouseY)
 add point to contour
 
const Contour2fgetScreenPoints () const
 get current points in contour
 
void cleanScreenPoints ()
 clean contour
 
MRVIEWER_API BitSet calculateSelectedPixelsInsidePolygon ()
 
MRVIEWER_API BitSet calculateSelectedPixelsNearPolygon (float radiusPix)
 

Detailed Description

Class for selection area on screen

Member Function Documentation

◆ addPoint()

MRVIEWER_API void MR::SelectScreenLasso::addPoint ( int mouseX,
int mouseY )

add point to contour

◆ calculateSelectedPixelsInsidePolygon()

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

◆ calculateSelectedPixelsNearPolygon()

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

◆ cleanScreenPoints()

void MR::SelectScreenLasso::cleanScreenPoints ( )
inline

clean contour

◆ getScreenPoints()

const Contour2f & MR::SelectScreenLasso::getScreenPoints ( ) const
inline

get current points in contour


The documentation for this class was generated from the following file: