// Set own free boundaries aspect in order to have free
// and unfree boundaries with different colors
Handle(Prs3d_Drawer) aDrawer = Attributes();
- //aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
aDrawer->SetUnFreeBoundaryAspect(
new Prs3d_LineAspect(Quantity_NOC_YELLOW, Aspect_TOL_SOLID, 1));
aDrawer->SetFreeBoundaryAspect(new Prs3d_LineAspect(Quantity_NOC_GREEN, Aspect_TOL_SOLID, 1));
SetDynamicHilightAttributes(aDrawer);
}
}
- //if (!aDrawer.IsNull())
- // aDrawer->SetTypeOfDeflection(Aspect_TOD_ABSOLUTE);
myHiddenSubShapesDrawer = new AIS_ColoredDrawer(myDrawer);
Handle(Prs3d_ShadingAspect) aShadingAspect = new Prs3d_ShadingAspect();
// Define colors for wireframe mode
setEdgesDefaultColor();
+
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
}
//********************************************************************
}
}
// change deviation coefficient to provide more precise circle
- ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
- ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
try {
AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
}
SetAutoHilight(anOwner.get() == NULL);
ModuleBase_Tools::setPointBallHighlighting(this);
+
+ // change deviation coefficient to provide more precise circle
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
+ ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
}
void PartSet_ResultSketchPrs::Compute(
setAuxiliaryPresentationStyle(false);
- // change deviation coefficient to provide more precise circle
- ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), DynamicHilightAttributes());
- ModuleBase_Tools::setDefaultDeviationCoefficient(Shape(), Attributes());
try {
AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
}
virtual bool eventFilter(QObject *theObject, QEvent *theEvent)
{
bool isAccepted = false;
- if (myIsActive) {
+ if (myIsActive && (!qApp->modalWindow())) {
if (theEvent->type() == QEvent::KeyRelease) {
QKeyEvent* aKeyEvent = dynamic_cast<QKeyEvent*>(theEvent);
if (aKeyEvent) {
}
}
else if (theEvent->type() == QEvent::KeyPress) {
- if (!qApp->modalWindow()) {
- if (myOperationMgr->hasOperation()) {
- QKeyEvent* aKeyEvent = dynamic_cast<QKeyEvent*>(theEvent);
- myOperationMgr->setSHIFTPressed(aKeyEvent->modifiers() & Qt::ShiftModifier);
- isAccepted = myOperationMgr->onKeyPressed(theObject, aKeyEvent);
- }
+ if (myOperationMgr->hasOperation()) {
+ QKeyEvent* aKeyEvent = dynamic_cast<QKeyEvent*>(theEvent);
+ myOperationMgr->setSHIFTPressed(aKeyEvent->modifiers() & Qt::ShiftModifier);
+ isAccepted = myOperationMgr->onKeyPressed(theObject, aKeyEvent);
}
}
}