]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Improvement 0020020: SetShrink method
authorvsv <vsv@opencascade.com>
Wed, 12 Nov 2008 14:02:25 +0000 (14:02 +0000)
committervsv <vsv@opencascade.com>
Wed, 12 Nov 2008 14:02:25 +0000 (14:02 +0000)
src/VISUGUI/VisuGUI_Tools.cxx
src/VISU_I/VISU_Mesh_i.cc

index 73a6d4a8cc43ce2b6ee77efa34ce2a77e94a6887..65535af7fb5b3b140405c40cc0461dab319426db 100644 (file)
@@ -597,10 +597,13 @@ namespace VISU
     switch (theType) {
     case VISU::SHRINK:
       if (aPrs3d) {
-      if (anActor->IsShrunk())
-       anActor->UnShrink();
-      else
-       anActor->SetShrink();
+       if (anActor->IsShrunk())
+         anActor->UnShrink();
+       else
+         anActor->SetShrink();
+       if (VISU::Mesh_i* aMesh = dynamic_cast<VISU::Mesh_i*>(aPrs3d)) {
+         aMesh->SetShrink(true);
+       }
       } else if (aTable) {
        if (anActorBase->IsShrunk())
          anActorBase->UnShrink();
index 40676398367616e87fddee8e2d0dcd2369e90be6..a4a67ff3f1408c4f27eba663dcbba745013a3812 100644 (file)
@@ -403,7 +403,9 @@ VISU::Mesh_i
     return;
 
   VISU::TSetModified aModified(this);
-  
+  if (theType == VISU::SHRINK) {
+    myIsShrank = true;
+  }
   myPresentType = theType;
   myParamsTime.Modified();
 }