//
#include "OCCViewer_ViewModel.h"
-#include "OCCViewer.h"
#include "OCCViewer_ViewFrame.h"
#include "OCCViewer_VService.h"
#include "OCCViewer_ViewPort3d.h"
myAISContext->HighlightStyle(Prs3d_TypeOfHighlight_LocalSelected)->SetColor( Quantity_NOC_WHITE );
myAISContext->HighlightStyle(Prs3d_TypeOfHighlight_Selected)->SetColor( Quantity_NOC_WHITE );
- // Set overlap detection for common behaviour of Rect selection and Polygon selection
- // (both selects an object with partial overlap)
- myAISContext->MainSelector()->AllowOverlapDetection(true);
-
// display isoline on planar faces (box for ex.)
myAISContext->IsoOnPlane( true );
myEndPnt.setX(theEvent->x()); myEndPnt.setY(theEvent->y());
bool aHasShift = (theEvent->modifiers() & Qt::ShiftModifier);
-
if (myStartPnt == myEndPnt)
{
if (!aHasShift) {
myAISContext->ShiftSelect( Standard_True );
else
myAISContext->Select( Standard_True );
+ emit selectionChanged();
}
+
//else
//{
// if (aHasShift && myMultiSelectionEnabled)
// myAISContext->UpdateCurrentViewer();
//}
- emit selectionChanged();
}
/*!