src
paraview-5.12
Remoting
Views
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
;
48
class
vtkRenderWindowInteractor
;
49
class
vtkSMViewProxy
;
50
51
class
VTKREMOTINGVIEWS_EXPORT
vtkSMViewProxyInteractorHelper
:
public
vtkObject
52
{
53
public
:
54
static
vtkSMViewProxyInteractorHelper
*
New
();
55
vtkTypeMacro(
vtkSMViewProxyInteractorHelper
,
vtkObject
);
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
:
80
vtkSMViewProxyInteractorHelper
();
81
~
vtkSMViewProxyInteractorHelper
()
override
;
82
84
87
void
Execute(
vtkObject
* caller,
unsigned
long
event,
void
* calldata);
88
void
Render();
89
void
CleanupTimer();
90
void
Resize();
92
93
vtkCommand
*
Observer
;
94
vtkWeakPointer<vtkSMViewProxy>
ViewProxy
;
95
vtkWeakPointer<vtkRenderWindowInteractor>
Interactor
;
96
int
DelayedRenderTimerId
;
97
bool
Interacting
;
98
bool
Interacted
;
99
100
int
EndWindowResizeTimerId
;
101
102
private
:
103
vtkSMViewProxyInteractorHelper
(
const
vtkSMViewProxyInteractorHelper
&) =
delete
;
104
void
operator=
(
const
vtkSMViewProxyInteractorHelper
&) =
delete
;
105
};
106
107
#endif
vtkSMViewProxyInteractorHelper::Interacted
bool Interacted
Definition:
vtkSMViewProxyInteractorHelper.h:98
vtkCommand
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkSMViewProxyInteractorHelper::DelayedRenderTimerId
int DelayedRenderTimerId
Definition:
vtkSMViewProxyInteractorHelper.h:96
vtkObject::New
static vtkObject * New()
vtkSMViewProxyInteractorHelper::CleanupInteractor
void CleanupInteractor()
Set the interactor to "help" the view with.
Definition:
vtkSMViewProxyInteractorHelper.h:76
vtkSMViewProxyInteractorHelper::Interacting
bool Interacting
Definition:
vtkSMViewProxyInteractorHelper.h:97
vtkObject
vtkSMViewProxyInteractorHelper::EndWindowResizeTimerId
int EndWindowResizeTimerId
Definition:
vtkSMViewProxyInteractorHelper.h:100
vtkIndent
vtkWeakPointer.h
vtkSMViewProxyInteractorHelper::ViewProxy
vtkWeakPointer< vtkSMViewProxy > ViewProxy
Definition:
vtkSMViewProxyInteractorHelper.h:94
vtkRenderWindowInteractor
vtkObject.h
vtkSMViewProxy
Superclass for all view proxies.
Definition:
vtkSMViewProxy.h:42
vtkSMViewProxyInteractorHelper
helper class that make it easier to hook vtkRenderWindowInteractor and vtkSMViewProxy.
Definition:
vtkSMViewProxyInteractorHelper.h:51
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkSMViewProxyInteractorHelper::Observer
vtkCommand * Observer
Definition:
vtkSMViewProxyInteractorHelper.h:93
vtkSMViewProxyInteractorHelper::Interactor
vtkWeakPointer< vtkRenderWindowInteractor > Interactor
Definition:
vtkSMViewProxyInteractorHelper.h:95
vtkWeakPointer< vtkSMViewProxy >
Generated by
1.8.17 on Wed Mar 27 2024