VTK  9.4.20241226
vtkEventForwarderCommand.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
16#ifndef vtkEventForwarderCommand_h
17#define vtkEventForwarderCommand_h
18
19#include "vtkCommand.h"
20#include "vtkCommonCoreModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKCOMMONCORE_EXPORT vtkEventForwarderCommand : public vtkCommand
24{
25public:
27
29
36 void Execute(vtkObject* caller, unsigned long eid, void* callData) override;
37
42 virtual void SetTarget(vtkObject* obj) { this->Target = obj; }
43 virtual void* GetTarget() { return this->Target; }
44
45protected:
47
49 ~vtkEventForwarderCommand() override = default;
50};
51
52VTK_ABI_NAMESPACE_END
53#endif /* vtkEventForwarderCommand_h */
54
55// VTK-HeaderTest-Exclude: vtkEventForwarderCommand.h
superclass for callback/observer methods
Definition vtkCommand.h:384
a simple event forwarder command
static vtkEventForwarderCommand * New()
virtual void SetTarget(vtkObject *obj)
Methods to set and get client and callback information, and the callback function.
~vtkEventForwarderCommand() override=default
void Execute(vtkObject *caller, unsigned long eid, void *callData) override
Satisfy the superclass API for callbacks.
abstract base class for most VTK objects
Definition vtkObject.h:162