13 #ifndef QmitkNodeSelectionDialog_h
14 #define QmitkNodeSelectionDialog_h
26 #include <QPushButton>
64 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 ...
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
std::unique_ptr< Ui::QmitkNodeSelectionDialog > m_Controls
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...
~QmitkNodeSelectionDialog() override
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.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
Abstract base class for predicates used to filter DataNode objects in DataStorage queries.
The common interface for all DataStorage inspector providers.
std::string InspectorIDType