aSketcherDlg->OnPointSelected( modifiers, aPnt ); // "feed" the point to point construction dialog
} // acceptMouseEvent()
}
+#ifdef WITH_OPENCV
if ( QString( aDlg->metaObject()->className() ).compare( "EntityGUI_FeatureDetectorDlg" ) == 0 )
{
EntityGUI_FeatureDetectorDlg* aCornerDlg = (EntityGUI_FeatureDetectorDlg*) aDlg;
} // acceptMouseEvent()
}
+#endif
}
+
return false;
}
{
MESSAGE("EntityGUI::OnMouseRelease")
QDialog* aDlg = getGeometryGUI()->GetActiveDialogBox();
+#ifdef WITH_OPENCV
if ( aDlg && ( QString( aDlg->metaObject()->className() ).compare( "EntityGUI_FeatureDetectorDlg" ) == 0 ) &&
theViewWindow->getViewManager()->getType() == OCCViewer_Viewer::Type() &&
pe->modifiers() != Qt::ControlModifier )
aCornerDlg->setEndPnt( aPnt );
}
}
+#endif
return false;
}
+
//=======================================================================
// function : ConvertClickToPoint()
// purpose : Returns the point clicked in 3D view