ctkDICOMObjectModel.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*=============================================================================
  2. Library: CTK
  3. Copyright (c) University of Sheffield
  4. Licensed under the Apache License, Version 2.0 (the "License");
  5. you may not use this file except in compliance with the License.
  6. You may obtain a copy of the License at
  7. http://www.apache.org/licenses/LICENSE-2.0
  8. Unless required by applicable law or agreed to in writing, software
  9. distributed under the License is distributed on an "AS IS" BASIS,
  10. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. See the License for the specific language governing permissions and
  12. limitations under the License.
  13. =============================================================================*/
  14. #ifndef __ctkDICOMObjectModel_h
  15. #define __ctkDICOMObjectModel_h
  16. // STD includes
  17. #include <string>
  18. // Qt includes
  19. #include <QMetaType>
  20. #include <QStandardItemModel>
  21. #include <QString>
  22. #include <QStringList>
  23. #include "ctkDICOMCoreExport.h"
  24. class ctkDICOMObjectModelPrivate;
  25. /// \ingroup DICOM_Core
  26. ///
  27. /// \brief .
  28. ///
  29. class CTK_DICOM_CORE_EXPORT ctkDICOMObjectModel
  30. : public QStandardItemModel
  31. {
  32. typedef QStandardItemModel Superclass;
  33. public:
  34. explicit ctkDICOMObjectModel(QObject* parent = 0);
  35. ctkDICOMObjectModel(const ctkDICOMObjectModel& other);
  36. virtual ~ctkDICOMObjectModel();
  37. void setFile (const QString& fileName);
  38. protected:
  39. QScopedPointer<ctkDICOMObjectModelPrivate> d_ptr;
  40. private:
  41. Q_DECLARE_PRIVATE(ctkDICOMObjectModel);
  42. };
  43. #endif // ctkDICOMObjectModel_h