00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkEventForwarderCommand.h,v $ 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 static vtkEventForwarderCommand *New() 00036 {return new vtkEventForwarderCommand;}; 00037 00042 void Execute(vtkObject *caller, unsigned long eid, void *callData); 00043 00045 00047 virtual void SetTarget(vtkObject *obj) 00048 { this->Target = obj; } 00049 virtual void* GetTarget() 00050 { return this->Target; } 00052 00053 protected: 00054 00055 vtkObject *Target; 00056 00057 vtkEventForwarderCommand(); 00058 ~vtkEventForwarderCommand() {}; 00059 }; 00060 00061 #endif /* __vtkEventForwarderCommand_h */ 00062