MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / FindFirstSensitiveShape

Method FindFirstSensitiveShape

ogl/canvas.cpp:341–354  ·  view source on GitHub ↗

* Try to find a sensitive object, working up the hierarchy of composites. * */

Source from the content-addressed store, hash-verified

339 *
340 */
341wxShape *wxShapeCanvas::FindFirstSensitiveShape(double x, double y, int *new_attachment, int op)
342{
343 wxShape *image = FindShape(x, y, new_attachment);
344 if (!image) return NULL;
345
346 wxShape *actualImage = FindFirstSensitiveShape1(image, op);
347 if (actualImage)
348 {
349 double dist;
350 // Find actual attachment
351 actualImage->HitTest(x, y, new_attachment, &dist);
352 }
353 return actualImage;
354}
355
356wxShape *wxShapeCanvas::FindFirstSensitiveShape1(wxShape *image, int op)
357{

Callers

nothing calls this directly

Calls 1

HitTestMethod · 0.45

Tested by

no test coverage detected