vtkSMPythonViewProxy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMViewProxy.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkSMPythonViewProxy_h
23 #define vtkSMPythonViewProxy_h
24 
25 #include "vtkRemotingViewsPythonModule.h" //needed for exports
26 
27 #include "vtkNew.h" // needed for vtkNew.
28 #include "vtkSMViewProxy.h"
29 
30 class vtkImageData;
31 class vtkRenderer;
32 class vtkSMProxy;
34 
36 {
37 public:
38  static vtkSMPythonViewProxy* New();
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  vtkRenderer* GetRenderer();
46 
50  vtkRenderWindow* GetRenderWindow() override;
51 
58 
68  void SetupInteractor(vtkRenderWindowInteractor* iren) override;
69 
70 protected:
72  ~vtkSMPythonViewProxy() override;
73 
78  vtkTypeUInt32 PreRender(bool interactive) override;
79 
83  vtkImageData* CaptureWindowInternal(int magX, int magY) override;
84 
85 private:
87  void operator=(const vtkSMPythonViewProxy&) = delete;
88 
90 };
91 
92 #endif // vtkSMPythonViewProxy_h
Superclass for all view proxies.
static vtkSMViewProxy * New()
virtual vtkRenderWindow * GetRenderWindow()
Return the vtkRenderWindow used by this view, if any.
virtual vtkImageData * CaptureWindowInternal(int magnificationX, int magnificationY)
Capture an image from the view's render window.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkRenderWindowInteractor * GetInteractor()
Returns the interactor.
virtual vtkTypeUInt32 PreRender(bool vtkNotUsed(interactive))
This method is called before executing code that could cause a render on the underlying vtkPVView...
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
virtual void SetupInteractor(vtkRenderWindowInteractor *iren)
A client process need to set the interactor to enable interactivity.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
Superclass for all view proxies.
#define VTKREMOTINGVIEWSPYTHON_EXPORT