vtkSMViewProxyInteractorHelper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSMViewProxyInteractorHelper.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 =========================================================================*/
52 #ifndef vtkSMViewProxyInteractorHelper_h
53 #define vtkSMViewProxyInteractorHelper_h
54 
55 #include "vtkObject.h"
56 #include "vtkRemotingViewsModule.h" //needed for exports
57 #include "vtkWeakPointer.h" //needed for vtkWeakPointer
58 
59 class vtkCommand;
61 class vtkSMViewProxy;
62 
64 {
65 public:
68  void PrintSelf(ostream& os, vtkIndent indent) override;
69 
71 
76  void SetViewProxy(vtkSMViewProxy* proxy);
77  vtkSMViewProxy* GetViewProxy();
79 
81 
86  void SetupInteractor(vtkRenderWindowInteractor* iren);
87  vtkRenderWindowInteractor* GetInteractor();
88  void CleanupInteractor() { this->SetupInteractor(nullptr); }
90 
91 protected:
94 
96 
99  void Execute(vtkObject* caller, unsigned long event, void* calldata);
100  void Render();
101  void CleanupTimer();
102  void Resize();
104 
111 
113 
114 private:
116  void operator=(const vtkSMViewProxyInteractorHelper&) = delete;
117 };
118 
119 #endif
#define VTKREMOTINGVIEWS_EXPORT
vtkWeakPointer< vtkRenderWindowInteractor > Interactor
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Superclass for all view proxies.
void CleanupInteractor()
Set the interactor to "help" the view with.
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
vtkWeakPointer< vtkSMViewProxy > ViewProxy
static vtkObject * New()
void operator=(const vtkObjectBase &)