00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef _MITK_DISPLAY_INTERACTOR_H_ 00020 #define _MITK_DISPLAY_INTERACTOR_H_ 00021 00022 #include "mitkOperationActor.h" 00023 //#include "mitkBaseRenderer.h" 00024 00025 namespace mitk { 00026 class BaseRenderer; 00027 00028 //##Documentation 00029 //## @brief The class handles zooming and panning events 00030 //## 00031 //## One can connect it via itk::GlobalInteraction->AddStateMachine(new mitk::DisplayVectorInteractor("move", new DisplayInterActor())); 00032 //## to the global state machine. 00033 //## @ingroup Interaction 00034 class MITK_CORE_EXPORT DisplayInteractor : public mitk::OperationActor 00035 { 00036 public: 00037 00043 DisplayInteractor(mitk::BaseRenderer *ren = 0); 00044 00049 virtual void ExecuteOperation(mitk::Operation* operation); 00050 00051 private: 00052 00056 mitk::BaseRenderer * m_ParentRenderer; 00057 00058 }; 00059 00060 } // end of namespace mitk 00061 00062 #endif //_MITK_DISPLAY_INTERACTOR_H_