vtkSMPythonViewProxy.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkSMPythonViewProxy_h
11 #define vtkSMPythonViewProxy_h
12 
13 #include "vtkRemotingViewsPythonModule.h" //needed for exports
14 
15 #include "vtkNew.h" // needed for vtkNew.
16 #include "vtkSMViewProxy.h"
17 
18 class vtkImageData;
19 class vtkRenderer;
20 class vtkSMProxy;
22 
24 {
25 public:
26  static vtkSMPythonViewProxy* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
33  vtkRenderer* GetRenderer();
34 
38  vtkRenderWindow* GetRenderWindow() override;
39 
46 
56  void SetupInteractor(vtkRenderWindowInteractor* iren) override;
57 
58 protected:
60  ~vtkSMPythonViewProxy() override;
61 
66  vtkTypeUInt32 PreRender(bool interactive) override;
67 
71  vtkImageData* CaptureWindowInternal(int magX, int magY) override;
72 
73 private:
75  void operator=(const vtkSMPythonViewProxy&) = delete;
76 
78 };
79 
80 #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:140
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