Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkDataNodeToggleVisibilityAction.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 QmitkDataNodeToggleVisibilityAction_h
14 #define QmitkDataNodeToggleVisibilityAction_h
15 
17 
19 
20 // qt
21 #include <QAction>
22 
24 {
25  MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite,
26  mitk::DataStorage::Pointer dataStorage,
27  const QList<mitk::DataNode::Pointer>& selectedNodes = QList<mitk::DataNode::Pointer>(),
28  mitk::BaseRenderer* baseRenderer = nullptr);
29 }
30 
32 {
33  Q_OBJECT
34 
35 public:
36 
38  QmitkDataNodeToggleVisibilityAction(QWidget* parent, berry::IWorkbenchPartSite* workbenchPartSite);
39 
40 private Q_SLOTS:
41 
42  void OnActionTriggered(bool);
43 
44 protected:
45 
46  void InitializeAction() override;
47 
48 };
49 
50 #endif
QmitkAbstractDataNodeAction.h
ToggleVisibilityAction
Definition: QmitkDataNodeToggleVisibilityAction.h:23
berry::SmartPointer< Self >
itk::SmartPointer
Definition: mitkIFileReader.h:30
QmitkAbstractDataNodeAction
Definition: QmitkAbstractDataNodeAction.h:34
QmitkDataNodeToggleVisibilityAction
Definition: QmitkDataNodeToggleVisibilityAction.h:31
ToggleVisibilityAction::Run
MITK_QT_APP void Run(berry::IWorkbenchPartSite::Pointer workbenchPartSite, mitk::DataStorage::Pointer dataStorage, const QList< mitk::DataNode::Pointer > &selectedNodes=QList< mitk::DataNode::Pointer >(), mitk::BaseRenderer *baseRenderer=nullptr)
berry::IWorkbenchPartSite
Definition: berryIWorkbenchPartSite.h:31
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
MITK_QT_APP
#define MITK_QT_APP
Definition: org_mitk_gui_qt_application_Export.h:26
QmitkAbstractDataNodeAction::InitializeAction
virtual void InitializeAction()=0
org_mitk_gui_qt_application_Export.h