00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkEventForwarderCommand.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00027 #ifndef __vtkEventForwarderCommand_h 00028 #define __vtkEventForwarderCommand_h 00029 00030 #include "vtkCommand.h" 00031 00032 class VTK_COMMON_EXPORT vtkEventForwarderCommand : public vtkCommand 00033 { 00034 public: 00035 vtkTypeMacro(vtkEventForwarderCommand,vtkCommand); 00036 00037 static vtkEventForwarderCommand *New() 00038 {return new vtkEventForwarderCommand;}; 00039 00044 void Execute(vtkObject *caller, unsigned long eid, void *callData); 00045 00047 00049 virtual void SetTarget(vtkObject *obj) 00050 { this->Target = obj; } 00051 virtual void* GetTarget() 00052 { return this->Target; } 00054 00055 protected: 00056 00057 vtkObject *Target; 00058 00059 vtkEventForwarderCommand(); 00060 ~vtkEventForwarderCommand() {}; 00061 }; 00062 00063 #endif /* __vtkEventForwarderCommand_h */ 00064