VTK
|
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 "vtkCommonCoreModule.h" // For export macro 00031 #include "vtkCommand.h" 00032 00033 class VTKCOMMONCORE_EXPORT vtkEventForwarderCommand : public vtkCommand 00034 { 00035 public: 00036 vtkTypeMacro(vtkEventForwarderCommand,vtkCommand); 00037 00038 static vtkEventForwarderCommand *New() 00039 {return new vtkEventForwarderCommand;}; 00040 00045 void Execute(vtkObject *caller, unsigned long eid, void *callData); 00046 00048 00050 virtual void SetTarget(vtkObject *obj) 00051 { this->Target = obj; } 00052 virtual void* GetTarget() 00053 { return this->Target; } 00055 00056 protected: 00057 00058 vtkObject *Target; 00059 00060 vtkEventForwarderCommand(); 00061 ~vtkEventForwarderCommand() {}; 00062 }; 00063 00064 #endif /* __vtkEventForwarderCommand_h */ 00065 00066 // VTK-HeaderTest-Exclude: vtkEventForwarderCommand.h