mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Fix. Incorrect group of nodes representation
This commit is contained in:
parent
f1bd9084e0
commit
137c43b02f
@ -1038,7 +1038,6 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation){
|
|||||||
my1DExtActor->VisibilityOn();
|
my1DExtActor->VisibilityOn();
|
||||||
break;
|
break;
|
||||||
case eLength2D:
|
case eLength2D:
|
||||||
my1DExtActor->VisibilityOn();
|
|
||||||
case eMultiConnection2D:
|
case eMultiConnection2D:
|
||||||
my1DExtActor->VisibilityOn();
|
my1DExtActor->VisibilityOn();
|
||||||
default:
|
default:
|
||||||
@ -1049,15 +1048,21 @@ void SMESH_ActorDef::SetVisibility(int theMode, bool theIsUpdateRepersentation){
|
|||||||
|
|
||||||
if(myRepresentation != ePoint)
|
if(myRepresentation != ePoint)
|
||||||
myPickableActor->VisibilityOn();
|
myPickableActor->VisibilityOn();
|
||||||
|
else {
|
||||||
|
myNodeActor->VisibilityOn();
|
||||||
|
}
|
||||||
|
|
||||||
if(myEntityMode & eEdges)
|
if(myEntityMode & eEdges){
|
||||||
my1DActor->VisibilityOn();
|
my1DActor->VisibilityOn();
|
||||||
|
}
|
||||||
|
|
||||||
if(myEntityMode & eFaces)
|
if(myEntityMode & eFaces){
|
||||||
my2DActor->VisibilityOn();
|
my2DActor->VisibilityOn();
|
||||||
|
}
|
||||||
|
|
||||||
if(myEntityMode & eVolumes)
|
if(myEntityMode & eVolumes){
|
||||||
my3DActor->VisibilityOn();
|
my3DActor->VisibilityOn();
|
||||||
|
}
|
||||||
|
|
||||||
if(myIsPointsLabeled)
|
if(myIsPointsLabeled)
|
||||||
myPointLabels->VisibilityOn();
|
myPointLabels->VisibilityOn();
|
||||||
@ -1128,7 +1133,7 @@ void SMESH_ActorDef::SetRepresentation(int theMode){
|
|||||||
vtkProperty *aProp = NULL, *aBackProp = NULL;
|
vtkProperty *aProp = NULL, *aBackProp = NULL;
|
||||||
SMESH_DeviceActor::EReperesent aReperesent = SMESH_DeviceActor::EReperesent(-1);
|
SMESH_DeviceActor::EReperesent aReperesent = SMESH_DeviceActor::EReperesent(-1);
|
||||||
switch(myRepresentation){
|
switch(myRepresentation){
|
||||||
case ePoint:
|
case ePoint:
|
||||||
myPickableActor = myNodeActor;
|
myPickableActor = myNodeActor;
|
||||||
myNodeActor->SetVisibility(true);
|
myNodeActor->SetVisibility(true);
|
||||||
|
|
||||||
@ -1173,7 +1178,6 @@ void SMESH_ActorDef::SetRepresentation(int theMode){
|
|||||||
|
|
||||||
if(myIsPointsVisible)
|
if(myIsPointsVisible)
|
||||||
myPickableActor = myNodeActor;
|
myPickableActor = myNodeActor;
|
||||||
|
|
||||||
if(GetPointRepresentation())
|
if(GetPointRepresentation())
|
||||||
myNodeActor->SetVisibility(true);
|
myNodeActor->SetVisibility(true);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user