*/
void
SVTK_Renderer
-::AddActor(VTKViewer_Actor* theActor)
+::AddActor(VTKViewer_Actor* theActor, bool theIsAdjustActors)
{
if(SALOME_Actor* anActor = dynamic_cast<SALOME_Actor*>(theActor)){
anActor->SetInteractor(myInteractor);
anActor->AddToRender(GetDevice());
anActor->UpdateNameActors();
- AdjustActors();
+
+ if(theIsAdjustActors)
+ AdjustActors();
}
}
*/
void
SVTK_Renderer
-::RemoveActor(VTKViewer_Actor* theActor)
+::RemoveActor(VTKViewer_Actor* theActor, bool theIsAdjustActors)
{
if(SALOME_Actor* anActor = dynamic_cast<SALOME_Actor*>(theActor)){
// Order of the calls are important because VTKViewer_Actor::RemoveFromRender
anActor->SetHighlightProperty(NULL);
anActor->RemoveFromRender(GetDevice());
- AdjustActors();
+
+ if(theIsAdjustActors)
+ AdjustActors();
}
}
//! Publishes pointed actor into the renderer
virtual
void
- AddActor(VTKViewer_Actor* theActor);
+ AddActor(VTKViewer_Actor* theActor, bool theIsAdjustActors = true);
//! Removes pointed actor from the renderer
virtual
void
- RemoveActor(VTKViewer_Actor* theActor);
+ RemoveActor(VTKViewer_Actor* theActor, bool theIsAdjustActors = true);
//! Get special container that keeps scaling of the scene
VTKViewer_Transform*
Redirect the request to #SVTK_Renderer::AddActor
*/
void SVTK_ViewWindow::AddActor( VTKViewer_Actor* theActor,
- bool theUpdate )
+ bool theUpdate,
+ bool theIsAdjustActors )
{
- GetRenderer()->AddActor(theActor);
+ GetRenderer()->AddActor(theActor, theIsAdjustActors);
if(theUpdate)
Repaint();
emit actorAdded(theActor);
Redirect the request to #SVTK_Renderer::RemoveActor
*/
void SVTK_ViewWindow::RemoveActor( VTKViewer_Actor* theActor,
- bool theUpdate )
+ bool theUpdate,
+ bool theIsAdjustActors )
{
- GetRenderer()->RemoveActor(theActor);
+ GetRenderer()->RemoveActor(theActor, theIsAdjustActors);
if(theUpdate)
Repaint();
emit actorRemoved(theActor);
//! Redirect the request to #SVTK_Renderer::AddActor
virtual void AddActor(VTKViewer_Actor* theActor,
- bool theIsUpdate = false);
+ bool theIsUpdate = false,
+ bool theIsAdjustActors = true);
//! Redirect the request to #SVTK_Renderer::RemoveActor
virtual void RemoveActor(VTKViewer_Actor* theActor,
- bool theIsUpdate = false);
+ bool theIsUpdate = false,
+ bool theIsAdjustActors = true);
//----------------------------------------------------------------------------
//! Redirect the request to #SVTK_Renderer::AdjustActors