From: apl Date: Fri, 7 Oct 2016 18:35:07 +0000 (+0300) Subject: Temporary enable global selection for test of interactivity X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d95aebd2b3e54e2feb4a0accdf98c3d35cecba75;p=modules%2Fgeom.git Temporary enable global selection for test of interactivity --- diff --git a/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx b/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx index 2afd00811..baf3a0efb 100755 --- a/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx +++ b/src/MeasureGUI/MeasureGUI_AnnotationDlg.cxx @@ -222,7 +222,7 @@ void MeasureGUI_AnnotationDlg::Init() myEditCurrentArgument = myShapeName; // default presentation values - myAnnotationProperties.Position = gp_Pnt(50, 50, 50); + myAnnotationProperties.Position = gp_Pnt(250, 250, 250); myAnnotationProperties.Text = tr("ANNOTATION_PREFIX"); myAnnotationProperties.IsVisible = true; myAnnotationProperties.IsScreenFixed = false; @@ -242,7 +242,7 @@ void MeasureGUI_AnnotationDlg::Init() connect(mySubShapeTypeCombo, SIGNAL(currentIndexChanged(int)), this, SLOT(onSubShapeTypeChange())); - SelectionIntoArgument(); + //SelectionIntoArgument(); } else { // edition @@ -256,10 +256,10 @@ void MeasureGUI_AnnotationDlg::Init() //================================================================================= void MeasureGUI_AnnotationDlg::activateSelection() { - globalSelection(GEOM_ALLSHAPES); - if (!myShape->_is_nil() && mySelectionMode != TopAbs_SHAPE) { - localSelection(myShape.get(), mySelectionMode); - } + //globalSelection(GEOM_ALLSHAPES); + //if (!myShape->_is_nil() && mySelectionMode != TopAbs_SHAPE) { + // localSelection(myShape.get(), mySelectionMode); + //} } //================================================================================= @@ -597,7 +597,7 @@ void MeasureGUI_AnnotationDlg::redisplayPreview() //================================================================================= gp_Pnt MeasureGUI_AnnotationDlg::getAttachPoint(const TopoDS_Shape& theShape) { - gp_Pnt aPoint = gp_Pnt(300, 300, 300); + gp_Pnt aPoint = gp_Pnt(0, 0, 0); return aPoint; }