VTK
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 =========================================================================*/
27 #ifndef vtkEventForwarderCommand_h
28 #define vtkEventForwarderCommand_h
29 
30 #include "vtkCommonCoreModule.h" // For export macro
31 #include "vtkCommand.h"
32 
34 {
35 public:
37 
39  {return new vtkEventForwarderCommand;};
40 
45  void Execute(vtkObject *caller, unsigned long eid, void *callData);
46 
48 
50  virtual void SetTarget(vtkObject *obj)
51  { this->Target = obj; }
52  virtual void* GetTarget()
53  { return this->Target; }
55 
56 protected:
57 
59 
62 };
63 
64 #endif /* vtkEventForwarderCommand_h */
65 
66 // VTK-HeaderTest-Exclude: vtkEventForwarderCommand.h
a simple event forwarder command
virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData)=0
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
static vtkEventForwarderCommand * New()
superclass for callback/observer methods
Definition: vtkCommand.h:328
virtual void SetTarget(vtkObject *obj)