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