old notebook functionality is temporary commented

This commit is contained in:
asl 2009-12-09 13:04:01 +00:00
parent 32e88840df
commit ab2b169f82
13 changed files with 29 additions and 29 deletions

View File

@ -311,7 +311,7 @@ bool SMESHGUI_BuildCompoundDlg::ClickOnApply()
CheckBoxMerge->isChecked(), CheckBoxMerge->isChecked(),
SpinBoxTol->GetValue()); SpinBoxTol->GetValue());
aCompoundMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: aCompoundMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
SMESH::SetName( SMESH::FindSObject( aCompoundMesh ), LineEditName->text() ); SMESH::SetName( SMESH::FindSObject( aCompoundMesh ), LineEditName->text() );
mySMESHGUI->updateObjBrowser(); mySMESHGUI->updateObjBrowser();

View File

@ -621,8 +621,8 @@ bool SMESHGUI_ExtrusionAlongPathDlg::ClickOnApply()
} }
if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK ) //asl: if( retVal == SMESH::SMESH_MeshEditor::EXTR_OK )
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
//wc.stop(); //wc.stop();
wc.suspend(); wc.suspend();

View File

@ -559,7 +559,7 @@ bool SMESHGUI_ExtrusionDlg::ClickOnApply()
aMeshEditor->ExtrusionSweep(myElementsId.inout(), aVector, aNbSteps); aMeshEditor->ExtrusionSweep(myElementsId.inout(), aVector, aNbSteps);
} }
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} catch (...) { } catch (...) {
} }

View File

@ -414,7 +414,7 @@ bool SMESHGUI_MakeNodeAtPointOp::onApply()
aParameters << myDlg->myX->text(); aParameters << myDlg->myX->text();
aParameters << myDlg->myY->text(); aParameters << myDlg->myY->text();
aParameters << myDlg->myZ->text(); aParameters << myDlg->myZ->text();
aMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: aMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
myDlg->myId->setText(""); myDlg->myId->setText("");

View File

@ -475,7 +475,7 @@ bool SMESHGUI_MeshPatternDlg::onApply()
aParameters << myNode1->text(); aParameters << myNode1->text();
if(myType == Type_3d ) if(myType == Type_3d )
aParameters << myNode2->text(); aParameters << myNode2->text();
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} else { // Applying a pattern to geometrical object } else { // Applying a pattern to geometrical object
if (myType == Type_2d) if (myType == Type_2d)

View File

@ -331,7 +331,7 @@ bool SMESHGUI_MoveNodesDlg::onApply()
aParameters << myX->text(); aParameters << myX->text();
aParameters << myY->text(); aParameters << myY->text();
aParameters << myZ->text(); aParameters << myZ->text();
aMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: aMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} catch (...) { } catch (...) {
} }

View File

@ -1186,7 +1186,7 @@ bool SMESHGUI_UnionOfTrianglesDlg::process (SMESH::SMESH_MeshEditor_ptr theEdito
if( ok ) { if( ok ) {
QStringList aParameters; QStringList aParameters;
aParameters << myMaxAngleSpin->text(); aParameters << myMaxAngleSpin->text();
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} }
return ok; return ok;
} }

View File

@ -95,7 +95,7 @@ namespace SMESH
_PTR(SObject) aSobj = SMESH::FindSObject( theMesh ); _PTR(SObject) aSobj = SMESH::FindSObject( theMesh );
SMESH::SMESH_MeshEditor_var aMeshEditor = theMesh->GetMeshEditor(); SMESH::SMESH_MeshEditor_var aMeshEditor = theMesh->GetMeshEditor();
aMeshEditor->AddNode( x, y, z ); aMeshEditor->AddNode( x, y, z );
theMesh->SetParameters( theParameters.join(":").toLatin1().constData() ); //asl: theMesh->SetParameters( theParameters.join(":").toLatin1().constData() );
_PTR(Study) aStudy = GetActiveStudyDocument(); _PTR(Study) aStudy = GetActiveStudyDocument();
CORBA::Long anId = aStudy->StudyId(); CORBA::Long anId = aStudy->StudyId();
if (TVisualObjPtr aVisualObj = SMESH::GetVisualObj( anId, aSobj->GetID().c_str() ) ) { if (TVisualObjPtr aVisualObj = SMESH::GetVisualObj( anId, aSobj->GetID().c_str() ) ) {

View File

@ -545,7 +545,7 @@ bool SMESHGUI_RevolutionDlg::ClickOnApply()
aMeshEditor->RotationSweep(anElementsId.inout(), anAxis, anAngle, aNbSteps, aTolerance); aMeshEditor->RotationSweep(anElementsId.inout(), anAxis, anAngle, aNbSteps, aTolerance);
} }
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} catch (...) { } catch (...) {
} }

View File

@ -415,8 +415,8 @@ bool SMESHGUI_RotationDlg::ClickOnApply()
aMeshEditor->RotateObject(mySelectedObject, anAxis, anAngle, false); aMeshEditor->RotateObject(mySelectedObject, anAxis, anAngle, false);
else else
aMeshEditor->Rotate(anElementsId, anAxis, anAngle, false); aMeshEditor->Rotate(anElementsId, anAxis, anAngle, false);
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
case COPY_ELEMS_BUTTON: case COPY_ELEMS_BUTTON:
if ( makeGroups ) { if ( makeGroups ) {
@ -432,8 +432,8 @@ bool SMESHGUI_RotationDlg::ClickOnApply()
else else
aMeshEditor->Rotate(anElementsId, anAxis, anAngle, true); aMeshEditor->Rotate(anElementsId, anAxis, anAngle, true);
} }
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
case MAKE_MESH_BUTTON: case MAKE_MESH_BUTTON:
SMESH::SMESH_Mesh_var mesh; SMESH::SMESH_Mesh_var mesh;
@ -443,8 +443,8 @@ bool SMESHGUI_RotationDlg::ClickOnApply()
else else
mesh = aMeshEditor->RotateMakeMesh(anElementsId, anAxis, anAngle, makeGroups, mesh = aMeshEditor->RotateMakeMesh(anElementsId, anAxis, anAngle, makeGroups,
LineEditNewMesh->text().toLatin1().data()); LineEditNewMesh->text().toLatin1().data());
if( !mesh->_is_nil()) //asl: if( !mesh->_is_nil())
mesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: mesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} }
} catch (...) { } catch (...) {
} }

View File

@ -381,7 +381,7 @@ bool SMESHGUI_SmoothingDlg::ClickOnApply()
anIterationLimit, aMaxAspectRatio, aMethod); anIterationLimit, aMaxAspectRatio, aMethod);
} }
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} catch (...) { } catch (...) {
} }

View File

@ -500,8 +500,8 @@ bool SMESHGUI_SymmetryDlg::ClickOnApply()
else else
aMeshEditor->Mirror(anElementsId, aMirror, aMirrorType, false ); aMeshEditor->Mirror(anElementsId, aMirror, aMirrorType, false );
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
} }
case COPY_ELEMS_BUTTON: { case COPY_ELEMS_BUTTON: {
@ -518,8 +518,8 @@ bool SMESHGUI_SymmetryDlg::ClickOnApply()
else else
aMeshEditor->Mirror(anElementsId, aMirror, aMirrorType, true); aMeshEditor->Mirror(anElementsId, aMirror, aMirrorType, true);
} }
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
} }
case MAKE_MESH_BUTTON: { case MAKE_MESH_BUTTON: {
@ -530,8 +530,8 @@ bool SMESHGUI_SymmetryDlg::ClickOnApply()
else else
mesh = aMeshEditor->MirrorMakeMesh(anElementsId, aMirror, aMirrorType, makeGroups, mesh = aMeshEditor->MirrorMakeMesh(anElementsId, aMirror, aMirrorType, makeGroups,
LineEditNewMesh->text().toLatin1().data()); LineEditNewMesh->text().toLatin1().data());
if( !mesh->_is_nil()) //asl: if( !mesh->_is_nil())
mesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: mesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
} }
} }

View File

@ -488,8 +488,8 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
aMeshEditor->TranslateObject(mySelectedObject, aVector, false); aMeshEditor->TranslateObject(mySelectedObject, aVector, false);
else else
aMeshEditor->Translate(anElementsId, aVector, false); aMeshEditor->Translate(anElementsId, aVector, false);
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
case COPY_ELEMS_BUTTON: case COPY_ELEMS_BUTTON:
if ( makeGroups ) { if ( makeGroups ) {
@ -505,8 +505,8 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
else else
aMeshEditor->Translate(anElementsId, aVector, true); aMeshEditor->Translate(anElementsId, aVector, true);
} }
if( !myMesh->_is_nil()) //asl: if( !myMesh->_is_nil())
myMesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: myMesh->SetParameters( aParameters.join(":").toLatin1().constData() );
break; break;
case MAKE_MESH_BUTTON: case MAKE_MESH_BUTTON:
SMESH::SMESH_Mesh_var mesh; SMESH::SMESH_Mesh_var mesh;
@ -516,8 +516,8 @@ bool SMESHGUI_TranslationDlg::ClickOnApply()
else else
mesh = aMeshEditor->TranslateMakeMesh(anElementsId, aVector, makeGroups, mesh = aMeshEditor->TranslateMakeMesh(anElementsId, aVector, makeGroups,
LineEditNewMesh->text().toLatin1().data()); LineEditNewMesh->text().toLatin1().data());
if( !mesh->_is_nil()) //asl: if( !mesh->_is_nil())
mesh->SetParameters( aParameters.join(":").toLatin1().constData() ); //asl: mesh->SetParameters( aParameters.join(":").toLatin1().constData() );
} }
} catch (...) { } catch (...) {
} }