VTK
9.2.6
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Common
Core
vtkEventForwarderCommand.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkEventForwarderCommand.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm 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
=========================================================================*/
28
#ifndef vtkEventForwarderCommand_h
29
#define vtkEventForwarderCommand_h
30
31
#include "
vtkCommand.h
"
32
#include "vtkCommonCoreModule.h"
// For export macro
33
34
class
VTKCOMMONCORE_EXPORT
vtkEventForwarderCommand
:
public
vtkCommand
35
{
36
public
:
37
vtkTypeMacro(
vtkEventForwarderCommand
,
vtkCommand
);
38
39
static
vtkEventForwarderCommand
*
New
() {
return
new
vtkEventForwarderCommand
; }
40
47
void
Execute
(
vtkObject
* caller,
unsigned
long
eid,
void
* callData)
override
;
48
53
virtual
void
SetTarget
(
vtkObject
* obj) { this->
Target
= obj; }
54
virtual
void
*
GetTarget
() {
return
this->
Target
; }
55
56
protected
:
57
vtkObject
*
Target
;
58
59
vtkEventForwarderCommand
();
60
~
vtkEventForwarderCommand
()
override
=
default
;
61
};
62
63
#endif
/* vtkEventForwarderCommand_h */
64
65
// VTK-HeaderTest-Exclude: vtkEventForwarderCommand.h
vtkEventForwarderCommand
a simple event forwarder command
Definition:
vtkEventForwarderCommand.h:34
vtkCommand::Execute
virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData)=0
All derived classes of vtkCommand must implement this method.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkEventForwarderCommand::GetTarget
virtual void * GetTarget()
Definition:
vtkEventForwarderCommand.h:54
vtkEventForwarderCommand::New
static vtkEventForwarderCommand * New()
Definition:
vtkEventForwarderCommand.h:39
vtkCommand.h
vtkPolyData_detail::Target
Target
Definition:
vtkPolyDataInternals.h:78
vtkCommand
superclass for callback/observer methods
Definition:
vtkCommand.h:394
vtkEventForwarderCommand::Target
vtkObject * Target
Definition:
vtkEventForwarderCommand.h:57
vtkEventForwarderCommand::SetTarget
virtual void SetTarget(vtkObject *obj)
Methods to set and get client and callback information, and the callback function.
Definition:
vtkEventForwarderCommand.h:53
Generated on Mon Oct 16 2023 12:11:46 for VTK by
1.8.10