Setting scalar bar position causes unwanted changes in other scalar bars
When we have multiple scalar bars in a view, changing the position of one of them leads to inconsistency in the others. All the others (except first scalar bar) are moved to upper right corner.
Ex pseudo code:
viewProxy: vtkSMViewProxy
controller: vtkSMParaViewPipelineControllerWithRendering
sourceProxy1: vtkSMSourceProxy
sourceProxy2: vtkSMSourceProxy
sourceProxy3: vtkSMSourceProxy
vtkSMPVRepresentationProxy* rep1 = controller->Show(sourceProxy1, 0, viewProxy);
vtkSMPVRepresentationProxy* rep2 = controller->Show(sourceProxy2, 0, viewProxy);
vtkSMPVRepresentationProxy* rep3 = controller->Show(sourceProxy3, 0, viewProxy);
rep1->SetScalarBarVisibility(viewProxy, visible);
// set position of scalar bar for rep1
rep1->UpdateVTKObjects();
rep2->SetScalarBarVisibility(viewProxy, visible);
// set position of scalar bar for rep2
rep2->UpdateVTKObjects();
rep3->SetScalarBarVisibility(viewProxy, visible);
// set position of scalar bar for rep3
rep3->UpdateVTKObjects();
//--------------------------------------------------------
viewProxy->StillRender();
// set position of scalar bar for rep1
rep1->UpdateVTKObjects(); // ok
rep2->UpdateVTKObjects(); // <-- this moves the scalar bar to upper right even though the code never changed it.
viewProxy->StillRender(); // scalar bar for rep2 is in upper right!