#include "VISU_ActorBase.h"
#include "VISU_ActorFactory.h"
#include "VTKViewer_ShrinkFilter.h"
+#include "VTKViewer_Transform.h"
#include <vtkObjectFactory.h>
#include <vtkProperty.h>
}
}
+//----------------------------------------------------------------------------
+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
virtual void UpdateFromFactory();
//----------------------------------------------------------------------------
+ virtual void SetTransform(VTKViewer_Transform* theTransform);
virtual void SetLineWidth(vtkFloatingPointType theLineWidth);
virtual vtkFloatingPointType GetLineWidth();