mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-19 10:53:08 +05:00
To remove switching of the EntityMode and RepresentationMode of the mesh during working with the dialog
This commit is contained in:
parent
5309d564cb
commit
a73de8d678
@ -398,8 +398,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
|||||||
{
|
{
|
||||||
if ( myActor ){
|
if ( myActor ){
|
||||||
myActor->SetPointRepresentation(true);
|
myActor->SetPointRepresentation(true);
|
||||||
myActor->SetEntityMode(SMESH_Actor::eVolumes);
|
|
||||||
myActor->SetRepresentation(SMESH_Actor::eSurface);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
SMESH::SetPointRepresentation(true);
|
SMESH::SetPointRepresentation(true);
|
||||||
@ -421,9 +419,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ConstructorsClicked(int constructorId)
|
|||||||
{
|
{
|
||||||
if( myActor ){
|
if( myActor ){
|
||||||
myActor->SetPointRepresentation(false);
|
myActor->SetPointRepresentation(false);
|
||||||
myActor->SetEntityMode(SMESH_Actor::eFaces);
|
|
||||||
myActor->SetEntityMode(SMESH_Actor::eVolumes);
|
|
||||||
myActor->SetRepresentation(SMESH_Actor::eSurface);
|
|
||||||
} else {
|
} else {
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
}
|
}
|
||||||
@ -528,8 +523,11 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::ClickOnApply()
|
|||||||
|
|
||||||
//SALOME_ListIO aList;
|
//SALOME_ListIO aList;
|
||||||
//mySelectionMgr->setSelectedObjects( aList );
|
//mySelectionMgr->setSelectedObjects( aList );
|
||||||
mySimulation->SetVisibility(false);
|
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
|
if( myActor ){
|
||||||
|
unsigned int anEntityMode = myActor->GetEntityMode();
|
||||||
|
myActor->SetEntityMode(SMESH_Actor::eVolumes | anEntityMode);
|
||||||
|
}
|
||||||
ConstructorsClicked( GetConstructorId() );
|
ConstructorsClicked( GetConstructorId() );
|
||||||
busy = false;
|
busy = false;
|
||||||
}
|
}
|
||||||
@ -742,8 +740,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::displaySimulation()
|
|||||||
SMESH::TPolySimulation::TVTKIds aVTKIds;
|
SMESH::TPolySimulation::TVTKIds aVTKIds;
|
||||||
vtkIdType aType = VTK_CONVEX_POINT_SET ;
|
vtkIdType aType = VTK_CONVEX_POINT_SET ;
|
||||||
if (GetConstructorId() == 0){
|
if (GetConstructorId() == 0){
|
||||||
if(!Preview->isChecked()) myActor->SetEntityMode(SMESH_Actor::eFaces);
|
|
||||||
else myActor->SetEntityMode(SMESH_Actor::eVolumes);
|
|
||||||
if (!AddButton->isEnabled()){
|
if (!AddButton->isEnabled()){
|
||||||
QListBoxItem* anItem;
|
QListBoxItem* anItem;
|
||||||
mySimulation->ResetGrid(true);
|
mySimulation->ResetGrid(true);
|
||||||
@ -771,7 +767,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::displaySimulation()
|
|||||||
} else {
|
} else {
|
||||||
// add ids from edit line
|
// add ids from edit line
|
||||||
QStringList anEditIds = QStringList::split( " ", myEditCurrentArgument->text(), false);
|
QStringList anEditIds = QStringList::split( " ", myEditCurrentArgument->text(), false);
|
||||||
myActor->SetEntityMode(SMESH_Actor::eFaces);
|
|
||||||
for ( int i = 0; i < anEditIds.count(); i++ )
|
for ( int i = 0; i < anEditIds.count(); i++ )
|
||||||
aVTKIds.push_back( myActor->GetObject()->GetNodeVTKId( anEditIds[ i ].toInt() ));
|
aVTKIds.push_back( myActor->GetObject()->GetNodeVTKId( anEditIds[ i ].toInt() ));
|
||||||
aType = VTK_POLYGON;
|
aType = VTK_POLYGON;
|
||||||
@ -781,10 +776,6 @@ void SMESHGUI_CreatePolyhedralVolumeDlg::displaySimulation()
|
|||||||
SMDS_Mesh* aMesh = 0;
|
SMDS_Mesh* aMesh = 0;
|
||||||
if ( myActor ){
|
if ( myActor ){
|
||||||
aMesh = myActor->GetObject()->GetMesh();
|
aMesh = myActor->GetObject()->GetMesh();
|
||||||
if (Preview->isChecked())
|
|
||||||
myActor->SetEntityMode(SMESH_Actor::eVolumes);
|
|
||||||
else
|
|
||||||
myActor->SetEntityMode(SMESH_Actor::eFaces);
|
|
||||||
}
|
}
|
||||||
if ( aMesh ) {
|
if ( aMesh ) {
|
||||||
QStringList aListId = QStringList::split( " ", myEditCurrentArgument->text(), false);
|
QStringList aListId = QStringList::split( " ", myEditCurrentArgument->text(), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user