Hi,
I need to find index of all points that are into the area of a selected area by a picker. I could find index of an only one point index by this code:
connect( picker,
SIGNAL( selected
( const QPolygon & ),
SLOT(UpdVizir
( const QPolygon & )));
connect( picker, SIGNAL( selected( const QPolygon & ), SLOT(UpdVizir( const QPolygon & )));
To copy to clipboard, switch view to plain text mode
void TrendTop
::UpdVizir( const QPolygon &points
) {
if ( points.size() != 1 )
return;
double dist;
int index = curv1->closestPoint( points[0], &dist );
}
void TrendTop::UpdVizir( const QPolygon &points )
{
if ( points.size() != 1 )
return;
double dist;
int index = curv1->closestPoint( points[0], &dist );
}
To copy to clipboard, switch view to plain text mode
How all points into a selected area can be obtained?
Bookmarks