mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-15 15:00:33 +05:00
Mantis issue 0021865: Adding tangency in Spline creation
This commit is contained in:
parent
6a75f2c870
commit
8357ffed81
@ -207,6 +207,7 @@ void BasicGUI_CurveDlg::Init()
|
|||||||
|
|
||||||
connect(myGroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
|
connect(myGroupPoints->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
|
||||||
connect(myGroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
|
connect(myGroupPoints->CheckButton2, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
|
||||||
|
connect(myGroupTangents, SIGNAL(toggled(bool)), this, SLOT(CheckButtonToggled()));
|
||||||
|
|
||||||
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
connect(myGeomGUI->getApp()->selectionMgr(), SIGNAL(currentSelectionChanged()),
|
||||||
this, SLOT(SelectionIntoArgument()));
|
this, SLOT(SelectionIntoArgument()));
|
||||||
@ -304,12 +305,20 @@ void BasicGUI_CurveDlg::SetEditCurrentArgument()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
void BasicGUI_CurveDlg::CheckButtonToggled()
|
void BasicGUI_CurveDlg::CheckButtonToggled()
|
||||||
{
|
{
|
||||||
|
if (sender() == myGroupTangents) {
|
||||||
|
if (myGroupTangents->isChecked())
|
||||||
|
myPushBtnV1->click();
|
||||||
|
else
|
||||||
|
myGroupPoints->PushButton1->click();
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (getConstructorId() == 2) { // Interpolation
|
if (getConstructorId() == 2) { // Interpolation
|
||||||
bool disableTangents = (myGroupPoints->CheckButton1->isChecked() ||
|
bool disableTangents = (myGroupPoints->CheckButton1->isChecked() ||
|
||||||
myGroupPoints->CheckButton2->isChecked());
|
myGroupPoints->CheckButton2->isChecked());
|
||||||
myGroupTangents->setEnabled(!disableTangents);
|
myGroupTangents->setEnabled(!disableTangents);
|
||||||
}
|
}
|
||||||
processPreview();
|
processPreview();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user