Commit f2655aba authored by Sebastien Jourdain's avatar Sebastien Jourdain
Browse files

ENH: Add accessor to RenderWindow for Context/ChartView

parent 3ab7aa6c
......@@ -89,6 +89,12 @@ QVTKWidget* vtkSMContextViewProxy::GetChartWidget()
return this->Storage->Widget;
}
//----------------------------------------------------------------------------
vtkRenderWindow* vtkSMContextViewProxy::GetRenderWindow()
{
return this->ChartView->GetRenderWindow();
}
//----------------------------------------------------------------------------
vtkContextView* vtkSMContextViewProxy::GetChartView()
{
......
......@@ -25,6 +25,7 @@
class vtkContextView;
class vtkChart;
class vtkImageData;
class vtkRenderWindow;
//BTX
class QVTKWidget;
//ETX
......@@ -58,6 +59,11 @@ public:
// Capture the contents of the window at the specified magnification level.
vtkImageData* CaptureWindow(int magnification);
// Description:
// Return the render window from which offscreen rendering and interactor can
// be accessed
vtkRenderWindow* GetRenderWindow();
//BTX
protected:
vtkSMContextViewProxy();
......
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