Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkDataStorageFavoriteNodesInspector.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkDataStorageFavoriteNodesInspector_h
14 #define QmitkDataStorageFavoriteNodesInspector_h
15 
16 #include <MitkQtWidgetsExports.h>
17 
19 
22 
23 /*
24 * @brief This is an inspector that offers a simple list view on favorite nodes of a data storage.
25 */
27 {
28  Q_OBJECT
29 
30 public:
31 
32  QmitkDataStorageFavoriteNodesInspector(QWidget* parent = nullptr);
33 
42  void SetNodePredicate(const mitk::NodePredicateBase* nodePredicate) override;
43 
44  constexpr static const char* INSPECTOR_ID()
45  {
46  return "org.mitk.QmitkDataStorageFavoriteNodesInspector";
47  };
48 
49 protected Q_SLOTS:
50 
51  void OnFavoriteNodesButtonClicked();
52 
53 private:
54 
55  mitk::NodePredicateProperty::Pointer m_FavoriteNodeSelectionPredicate;
56 };
57 
58 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
itk::SmartPointer< Self >
mitk::NodePredicateBase
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
Definition: mitkNodePredicateBase.h:35
QmitkSimpleTextOverlayWidget.h
QmitkDataStorageFavoriteNodesInspector::INSPECTOR_ID
constexpr static const char * INSPECTOR_ID()
Definition: QmitkDataStorageFavoriteNodesInspector.h:44
mitkNodePredicateProperty.h
QmitkDataStorageFavoriteNodesInspector
Definition: QmitkDataStorageFavoriteNodesInspector.h:26
MitkQtWidgetsExports.h
QmitkDataStorageListInspector.h
QmitkAbstractDataStorageInspector::SetNodePredicate
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Sets the node predicate and updates the widget, according to the node predicate.
QmitkDataStorageListInspector
Definition: QmitkDataStorageListInspector.h:26