13 #ifndef QmitkNodeSelectionDialog_h
14 #define QmitkNodeSelectionDialog_h
18 #include <ui_QmitkNodeSelectionDialog.h>
28 #include <QPushButton>
62 using NodeList = QList<mitk::DataNode::Pointer>;
A customized QDialog that displays different data storage inspectors and allows to set and get a curr...
void SetCurrentSelection(NodeList selectedNodes)
Set the currently selected nodes given a list of data nodes. The function iterates over the dialog's ...
Ui_QmitkNodeSelectionDialog m_Controls
bool GetSelectOnlyVisibleNodes() const
void SetErrorText(const std::string &checkResponse)
NodeList GetSelectedNodes() const
void SetDataStorage(mitk::DataStorage *dataStorage)
Set the data storage that will be used. The function iterates over the dialog's panels and sets the d...
QList< mitk::DataNode::Pointer > NodeList
void SetSelectionMode(SelectionMode mode)
Set the Qt selection mode (e.g. Single selection, multi selection). The function iterates over the di...
QAbstractItemView::SelectionMode SelectionMode
void OnDoubleClicked(const QModelIndex &index)
SelectionCheckFunctionType m_CheckFunction
QPushButton * m_FavoriteNodesButton
std::function< std::string(const NodeList &)> SelectionCheckFunctionType
Helper function that is used to check the given selection for consistency. Returning an empty string ...
void OnSelectionChanged(NodeList selectedNodes)
bool m_SelectOnlyVisibleNodes
void AddPanel(const mitk::IDataStorageInspectorProvider *provider, const mitk::IDataStorageInspectorProvider::InspectorIDType &preferredID, bool &preferredFound, int &preferredIndex)
const mitk::NodePredicateBase * GetNodePredicate() const
QmitkNodeSelectionDialog(QWidget *parent=nullptr, QString caption="", QString hint="")
SelectionMode m_SelectionMode
mitk::NodePredicateBase::ConstPointer m_NodePredicate
std::vector< QmitkAbstractDataStorageInspector * > PanelVectorType
void OnFavoriteNodesButtonClicked()
void SetSelectionCheckFunction(const SelectionCheckFunctionType &checkFunction)
A selection check function can be set. If set the dialog uses this function to check the made/set sel...
SelectionMode GetSelectionMode() const
void SetSelectOnlyVisibleNodes(bool selectOnlyVisibleNodes)
Set the selection modus to (not) include invisible nodes in the selection. The function iterates over...
mitk::WeakPointer< mitk::DataStorage > m_DataStorage
virtual void SetNodePredicate(const mitk::NodePredicateBase *nodePredicate)
Set the node predicate that will be used. The function iterates over the dialog's panels and sets the...
void CurrentSelectionChanged(NodeList nodes)
A signal that will be emitted if the selected node has changed.
Data management class that handles 'was created by' relations.
Interface for evaluation conditions used in the DataStorage class GetSubset() method.
The common interface for all DataStorage inspector providers.
std::string InspectorIDType