]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Issue IPAL22429: TC6.3.0: Incorrect frame representation for Cut Lines with Scale... V6_3_BR20110429
authorouv <ouv@opencascade.com>
Thu, 28 Apr 2011 10:54:26 +0000 (10:54 +0000)
committerouv <ouv@opencascade.com>
Thu, 28 Apr 2011 10:54:26 +0000 (10:54 +0000)
src/OBJECT/VISU_ActorBase.cxx
src/OBJECT/VISU_ActorBase.h

index 9598883c35413d0c2c0e86f61f65fbd10d50f149..20a52d7894f90a08813cf904f05c24298de7e568 100644 (file)
@@ -26,6 +26,7 @@
 #include "VISU_ActorBase.h"
 #include "VISU_ActorFactory.h"
 #include "VTKViewer_ShrinkFilter.h"
+#include "VTKViewer_Transform.h"
 
 #include <vtkObjectFactory.h>
 #include <vtkProperty.h>
@@ -96,6 +97,23 @@ VISU_ActorBase
   }
 }
 
+//----------------------------------------------------------------------------
+void
+VISU_ActorBase
+::SetTransform(VTKViewer_Transform* theTransform)
+{
+  Superclass::SetTransform( theTransform );
+
+  // Since the output of GetHighlightedDataSet() method (which is passed
+  // through transform filter) is used for calculation of bounds of the
+  // SALOME_Actor::myOutlineActor, we should remove transformation
+  // from the outline actor applied in SALOME_Actor::SetTransform().
+  // See issues IPAL22429, IPAL21936.
+  VTKViewer_Transform* aTransform = VTKViewer_Transform::New();
+  myOutlineActor->SetTransform( aTransform );
+  aTransform->Delete();
+}
+
 //--------------------------------------------------------------------------
 
 void
index 8651efda4af9d082f40d7ed217c7bc1999955055..55b18f9437403a0449c6298fce979f5ae6f7d599 100644 (file)
@@ -55,6 +55,7 @@ class VISU_OBJECT_EXPORT VISU_ActorBase: public SALOME_Actor,
   virtual void UpdateFromFactory();
 
   //----------------------------------------------------------------------------
+  virtual void SetTransform(VTKViewer_Transform* theTransform); 
 
   virtual void SetLineWidth(vtkFloatingPointType theLineWidth);
   virtual vtkFloatingPointType GetLineWidth();