Commit 305cfd0a authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

BUG: Fixes bug #10985 - update representations.

The representations were not being updated for the charts, this is due
to the StillRender() function not being called. Calling
UpdateAllRepresentations() before render in CaptureWindow in the context
view proxy fixes the immediate issue. Later work should improve the
logic as ParaView transitions to use vtkRenderViewBase.
parent 69f65f5b
...@@ -109,6 +109,11 @@ vtkChart* vtkSMContextViewProxy::GetChart() ...@@ -109,6 +109,11 @@ vtkChart* vtkSMContextViewProxy::GetChart()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
vtkImageData* vtkSMContextViewProxy::CaptureWindow(int magnification) vtkImageData* vtkSMContextViewProxy::CaptureWindow(int magnification)
{ {
// Now update all representation pipelines - should not be necessary once
// ParaView is ported to use vtkRenderViewBase, and handle the logic
// centrally for all views derived from the base view.
this->UpdateAllRepresentations();
this->GetChartView()->Render(); this->GetChartView()->Render();
vtkWindowToImageFilter* w2i = vtkWindowToImageFilter::New(); vtkWindowToImageFilter* w2i = vtkWindowToImageFilter::New();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment