mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-06 05:44:18 +05:00
0021020: EDF 1590 GEOM: No "Set presentation parameters and subshapes from arguments" in multi- translation/rotation
This commit is contained in:
parent
3fa5e045bf
commit
9bf18f0325
@ -153,6 +153,8 @@ void TransformationGUI_MultiRotationDlg::Init()
|
|||||||
|
|
||||||
myBase = myVector = GEOM::GEOM_Object::_nil();
|
myBase = myVector = GEOM::GEOM_Object::_nil();
|
||||||
|
|
||||||
|
mainFrame()->GroupBoxPublish->show();
|
||||||
|
|
||||||
// signals and slots connections
|
// signals and slots connections
|
||||||
connect(buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
connect(buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
||||||
connect(buttonApply(), SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
connect(buttonApply(), SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
||||||
@ -620,3 +622,24 @@ void TransformationGUI_MultiRotationDlg::addSubshapesToStudy()
|
|||||||
}
|
}
|
||||||
addSubshapesToFather(objMap);
|
addSubshapesToFather(objMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : restoreSubShapes
|
||||||
|
// purpose :
|
||||||
|
//=================================================================================
|
||||||
|
void TransformationGUI_MultiRotationDlg::restoreSubShapes (SALOMEDS::Study_ptr theStudy,
|
||||||
|
SALOMEDS::SObject_ptr theSObject)
|
||||||
|
{
|
||||||
|
if (mainFrame()->CheckBoxRestoreSS->isChecked()) {
|
||||||
|
// we pass here the first operation argument (object) through the list of arguments
|
||||||
|
// because the rotation operation place its arguments in the data structure in another order,
|
||||||
|
// and we need to point the first argument directly
|
||||||
|
GEOM::ListOfGO_var anArgs = new GEOM::ListOfGO;
|
||||||
|
anArgs->length(1);
|
||||||
|
anArgs[0] = myBase;
|
||||||
|
getGeomEngine()->RestoreSubShapesSO(theStudy, theSObject, anArgs,
|
||||||
|
/*theFindMethod=*/GEOM::FSM_Transformed,
|
||||||
|
/*theInheritFirstArg=*/true,
|
||||||
|
mainFrame()->CheckBoxAddPrefix->isChecked());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
@ -160,6 +160,8 @@ void TransformationGUI_MultiTranslationDlg::Init()
|
|||||||
|
|
||||||
myBase = myVectorU = myVectorV = GEOM::GEOM_Object::_nil();
|
myBase = myVectorU = myVectorV = GEOM::GEOM_Object::_nil();
|
||||||
|
|
||||||
|
mainFrame()->GroupBoxPublish->show();
|
||||||
|
|
||||||
// signals and slots connections
|
// signals and slots connections
|
||||||
connect(buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
connect(buttonOk(), SIGNAL(clicked()), this, SLOT(ClickOnOk()));
|
||||||
connect(buttonApply(), SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
connect(buttonApply(), SIGNAL(clicked()), this, SLOT(ClickOnApply()));
|
||||||
@ -731,3 +733,24 @@ void TransformationGUI_MultiTranslationDlg::addSubshapesToStudy()
|
|||||||
}
|
}
|
||||||
addSubshapesToFather(objMap);
|
addSubshapesToFather(objMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//=================================================================================
|
||||||
|
// function : restoreSubShapes
|
||||||
|
// purpose :
|
||||||
|
//=================================================================================
|
||||||
|
void TransformationGUI_MultiTranslationDlg::restoreSubShapes (SALOMEDS::Study_ptr theStudy,
|
||||||
|
SALOMEDS::SObject_ptr theSObject)
|
||||||
|
{
|
||||||
|
if (mainFrame()->CheckBoxRestoreSS->isChecked()) {
|
||||||
|
// we pass here the first operation argument (object) through the list of arguments
|
||||||
|
// because the rotation operation place its arguments in the data structure in another order,
|
||||||
|
// and we need to point the first argument directly
|
||||||
|
GEOM::ListOfGO_var anArgs = new GEOM::ListOfGO;
|
||||||
|
anArgs->length(1);
|
||||||
|
anArgs[0] = myBase;
|
||||||
|
getGeomEngine()->RestoreSubShapesSO(theStudy, theSObject, anArgs,
|
||||||
|
/*theFindMethod=*/GEOM::FSM_Transformed,
|
||||||
|
/*theInheritFirstArg=*/true,
|
||||||
|
mainFrame()->CheckBoxAddPrefix->isChecked());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -51,6 +51,7 @@ protected:
|
|||||||
virtual bool isValid( QString& );
|
virtual bool isValid( QString& );
|
||||||
virtual bool execute( ObjectList& );
|
virtual bool execute( ObjectList& );
|
||||||
virtual void addSubshapesToStudy();
|
virtual void addSubshapesToStudy();
|
||||||
|
virtual void restoreSubShapes( SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
Loading…
Reference in New Issue
Block a user