vtkSMViewProxyInteractorHelper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
40 #ifndef vtkSMViewProxyInteractorHelper_h
41 #define vtkSMViewProxyInteractorHelper_h
42 
43 #include "vtkObject.h"
44 #include "vtkRemotingViewsModule.h" //needed for exports
45 #include "vtkWeakPointer.h" //needed for vtkWeakPointer
46 
47 class vtkCommand;
49 class vtkSMViewProxy;
50 
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
59 
64  void SetViewProxy(vtkSMViewProxy* proxy);
65  vtkSMViewProxy* GetViewProxy();
67 
69 
74  void SetupInteractor(vtkRenderWindowInteractor* iren);
75  vtkRenderWindowInteractor* GetInteractor();
76  void CleanupInteractor() { this->SetupInteractor(nullptr); }
78 
79 protected:
82 
84 
87  void Execute(vtkObject* caller, unsigned long event, void* calldata);
88  void Render();
89  void CleanupTimer();
90  void Resize();
92 
98  bool Interacted;
99 
100  int EndWindowResizeTimerId = -1;
101 
102 private:
104  void operator=(const vtkSMViewProxyInteractorHelper&) = delete;
105 };
106 
107 #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 &)