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 =========================================================================*/
47 #ifndef vtkSMViewProxyInteractorHelper_h
48 #define vtkSMViewProxyInteractorHelper_h
49 
50 #include "vtkObject.h"
51 #include "vtkRemotingViewsModule.h" //needed for exports
52 #include "vtkWeakPointer.h" //needed for vtkWeakPointer
53 
54 class vtkCommand;
56 class vtkSMViewProxy;
57 
58 class VTKREMOTINGVIEWS_EXPORT vtkSMViewProxyInteractorHelper : public vtkObject
59 {
60 public:
63  void PrintSelf(ostream& os, vtkIndent indent) override;
64 
66 
71  void SetViewProxy(vtkSMViewProxy* proxy);
72  vtkSMViewProxy* GetViewProxy();
74 
76 
81  void SetupInteractor(vtkRenderWindowInteractor* iren);
82  vtkRenderWindowInteractor* GetInteractor();
83  void CleanupInteractor() { this->SetupInteractor(NULL); }
85 
86 protected:
89 
91 
94  void Execute(vtkObject* caller, unsigned long event, void* calldata);
95  void Render();
96  void CleanupTimer();
97  void Resize();
99 
106 
107 private:
109  void operator=(const vtkSMViewProxyInteractorHelper&) = delete;
110 };
111 
112 #endif
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 &)