00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 10709 $ 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 MITKDISPLAYPOINTSETINTERACTOR_H_HEADER_INCLUDED_C11202FF 00020 #define MITKDISPLAYPOINTSETINTERACTOR_H_HEADER_INCLUDED_C11202FF 00021 00022 #include "mitkCommon.h" 00023 #include "MitkExtExports.h" 00024 #include "mitkVector.h" 00025 #include <mitkInteractor.h> 00026 #include "mitkPointSetInteractor.h" 00027 #include <mitkBaseRenderer.h> 00028 00029 namespace mitk 00030 { 00031 class DataNode; 00032 00039 class MitkExt_EXPORT DisplayPointSetInteractor : public PointSetInteractor 00040 { 00041 public: 00042 mitkClassMacro(DisplayPointSetInteractor, PointSetInteractor); 00043 mitkNewMacro3Param(Self, const char*, DataNode*, int); 00044 mitkNewMacro2Param(Self, const char*, DataNode*); 00045 00046 Point2D GetLastDisplayCoordinates(); 00047 00048 BaseRenderer* GetLastRenderer(); 00049 00050 00051 protected: 00057 DisplayPointSetInteractor(const char * type, 00058 DataNode* dataNode, int n = -1); 00059 00063 virtual ~DisplayPointSetInteractor(); 00064 00065 virtual bool ExecuteAction( Action* action, 00066 mitk::StateEvent const* stateEvent ); 00067 00071 Point2D m_LastDisplayCoordinates; 00072 00073 00074 mitk::BaseRenderer* m_LastRenderer; 00075 00076 00077 }; 00078 } 00079 #endif /* MITKDisplayPointSetInteractor_H_HEADER_INCLUDED_C11202FF */