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 #include <mitkDataNodeSelection.h> 00019 #include <mitkDataNode.h> 00020 00021 #include <berryQtItemSelection.h> 00022 00023 #include <vector> 00024 00025 class QmitkDataNodeSelection: public mitk::DataNodeSelection, public berry::QtItemSelection 00026 { 00027 public: 00028 00029 berryObjectMacro(QmitkDataNodeSelection); 00030 00031 QmitkDataNodeSelection(); 00032 QmitkDataNodeSelection(const QItemSelection& sel); 00033 00034 virtual berry::Object::Pointer GetFirstElement() const; 00035 virtual iterator Begin() const; 00036 virtual iterator End() const; 00037 00038 virtual int Size() const; 00039 00040 virtual ContainerType::Pointer ToVector() const; 00041 00045 bool IsEmpty() const; 00046 00047 bool operator==(const berry::Object* obj) const; 00048 00049 };