vtkSMViewProxyInteractorHelper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
35 #ifndef vtkSMViewProxyInteractorHelper_h
36 #define vtkSMViewProxyInteractorHelper_h
37 
38 #include "vtkObject.h"
39 #include "vtkRemotingViewsModule.h" //needed for exports
40 #include "vtkWeakPointer.h" //needed for vtkWeakPointer
41 
42 class vtkCommand;
44 class vtkSMViewProxy;
45 
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent) override;
52 
54 
59  void SetViewProxy(vtkSMViewProxy* proxy);
60  vtkSMViewProxy* GetViewProxy();
62 
64 
69  void SetupInteractor(vtkRenderWindowInteractor* iren);
70  vtkRenderWindowInteractor* GetInteractor();
71  void CleanupInteractor() { this->SetupInteractor(nullptr); }
73 
74 protected:
77 
79 
82  void Execute(vtkObject* caller, unsigned long event, void* calldata);
83  void Render();
84  void CleanupTimer();
85  void Resize();
87 
93  bool Interacted;
94 
95 private:
97  void operator=(const vtkSMViewProxyInteractorHelper&) = delete;
98 };
99 
100 #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 &)