Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes
qSlicerDataModuleWidget Class Reference

#include <Modules/Loadable/Data/qSlicerDataModuleWidget.h>

Inheritance diagram for qSlicerDataModuleWidget:
Inheritance graph
Collaboration diagram for qSlicerDataModuleWidget:
Collaboration graph

Public Types

enum  { TabIndexSubjectHierarchy = 0, TabIndexTransformHierarchy, TabIndexAllNodes }
typedef qSlicerAbstractModuleWidget Superclass
- Public Types inherited from qSlicerAbstractModuleRepresentation
typedef qSlicerObject Superclass

Public Slots

void hardenTransformOnCurrentNode ()
 Harden transform on current node. More...
void insertTransformNode ()
 Insert new transform node. More...
void onSubjectHierarchyItemModified (vtkIdType itemID)
 Handle subject hierarchy item modified event (update item info label if needed) More...
void setDataNodeFromSubjectHierarchyItem (vtkIdType itemID)
 Set data node associated to the selected subject hierarchy item to the data node inspector. More...
void setInfoLabelFromSubjectHierarchyItem (vtkIdType itemID)
 Set subject hierarchy item information to the label. More...
void setMRMLIDsVisible (bool visible)
 Change visibility of the MRML node ID columns. More...
void setMRMLScene (vtkMRMLScene *scene) override
 Reimplemented for internal reasons. More...
void setTransformsVisible (bool visible)
 Show or hide transforms. More...
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override

Public Member Functions

void enter () override
 qSlicerDataModuleWidget (QWidget *parentWidget=nullptr)
Q_INVOKABLE qMRMLSubjectHierarchyModelsubjectHierarchySceneModel () const
 Assessor function for subject hierarchy model (for python) More...
 ~qSlicerDataModuleWidget () override
- Public Member Functions inherited from qSlicerAbstractModuleWidget
virtual Q_INVOKABLE void exit ()
bool isEntered () const
Q_INVOKABLE double nodeEditable (vtkMRMLNode *node) override
 qSlicerAbstractModuleWidget (QWidget *parent=nullptr)
Q_INVOKABLE bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
 Node editing. More...
 ~qSlicerAbstractModuleWidget () override
- Public Member Functions inherited from qSlicerWidget
vtkSlicerApplicationLogicappLogic () const
vtkMRMLAbstractLogicmoduleLogic (const QString &moduleName) const
 qSlicerWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 ~qSlicerWidget () override
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 qSlicerObject ()
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
virtual ~qSlicerObject ()
- Public Member Functions inherited from qSlicerAbstractModuleRepresentation
qSlicerAbstractCoreModulemodule () const
QString moduleName () const
 Set/Get module name. More...
 qSlicerAbstractModuleRepresentation ()
 ~qSlicerAbstractModuleRepresentation () override

Protected Slots

void onCurrentNodeChanged (vtkMRMLNode *newCurrentNode)
void onCurrentTabChanged (int tabIndex)
void onHelpButtonClicked ()

Protected Member Functions

void setup () override
- Protected Member Functions inherited from qSlicerAbstractModuleRepresentation
vtkMRMLAbstractLogiclogic () const

Static Protected Member Functions

static void onSubjectHierarchyItemEvent (vtkObject *caller, unsigned long event, void *clientData, void *callData)

Protected Attributes

QScopedPointer< qSlicerDataModuleWidgetPrivate > d_ptr
- Protected Attributes inherited from qSlicerAbstractModuleWidget
QScopedPointer< qSlicerAbstractModuleWidgetPrivate > d_ptr
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
- Protected Attributes inherited from qSlicerAbstractModuleRepresentation
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > d_ptr

Additional Inherited Members

- Properties inherited from qSlicerAbstractModuleWidget
bool isEntered
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)

Detailed Description

Definition at line 32 of file qSlicerDataModuleWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 37 of file qSlicerDataModuleWidget.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Definition at line 43 of file qSlicerDataModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerDataModuleWidget()

qSlicerDataModuleWidget::qSlicerDataModuleWidget ( QWidget *  parentWidget = nullptr)

◆ ~qSlicerDataModuleWidget()

qSlicerDataModuleWidget::~qSlicerDataModuleWidget ( )

Member Function Documentation

◆ enter()

void qSlicerDataModuleWidget::enter ( )

The enter and exit methods are called when the module panel changes. These give the module a chance to do any setup or shutdown operations as it becomes active and inactive. It is the responsibility of the module's manager to call the methods. enter() and exit() must be called when reimplementing these methods in order to have isEntered() valid.

Reimplemented from qSlicerAbstractModuleWidget.

◆ hardenTransformOnCurrentNode

void qSlicerDataModuleWidget::hardenTransformOnCurrentNode ( )

Harden transform on current node.

◆ insertTransformNode

void qSlicerDataModuleWidget::insertTransformNode ( )

Insert new transform node.

◆ onCurrentNodeChanged

void qSlicerDataModuleWidget::onCurrentNodeChanged ( vtkMRMLNode newCurrentNode)

◆ onCurrentTabChanged

void qSlicerDataModuleWidget::onCurrentTabChanged ( int  tabIndex)

◆ onHelpButtonClicked

void qSlicerDataModuleWidget::onHelpButtonClicked ( )

◆ onSubjectHierarchyItemEvent()

static void qSlicerDataModuleWidget::onSubjectHierarchyItemEvent ( vtkObject *  caller,
unsigned long  event,
void *  clientData,
void *  callData 

◆ onSubjectHierarchyItemModified

void qSlicerDataModuleWidget::onSubjectHierarchyItemModified ( vtkIdType  itemID)

Handle subject hierarchy item modified event (update item info label if needed)

◆ setDataNodeFromSubjectHierarchyItem

void qSlicerDataModuleWidget::setDataNodeFromSubjectHierarchyItem ( vtkIdType  itemID)

Set data node associated to the selected subject hierarchy item to the data node inspector.

◆ setInfoLabelFromSubjectHierarchyItem

void qSlicerDataModuleWidget::setInfoLabelFromSubjectHierarchyItem ( vtkIdType  itemID)

Set subject hierarchy item information to the label.

◆ setMRMLIDsVisible

void qSlicerDataModuleWidget::setMRMLIDsVisible ( bool  visible)

Change visibility of the MRML node ID columns.

◆ setMRMLScene

void qSlicerDataModuleWidget::setMRMLScene ( vtkMRMLScene scene)

Reimplemented for internal reasons.

◆ setTransformsVisible

void qSlicerDataModuleWidget::setTransformsVisible ( bool  visible)

Show or hide transforms.

◆ setup()

void qSlicerDataModuleWidget::setup ( )

All initialization code (typically setupUi()) must be done in setup() The module and the logic are accessible.

Reimplemented from qSlicerAbstractModuleWidget.

◆ subjectHierarchySceneModel()

Q_INVOKABLE qMRMLSubjectHierarchyModel* qSlicerDataModuleWidget::subjectHierarchySceneModel ( ) const

Assessor function for subject hierarchy model (for python)

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerDataModuleWidgetPrivate> qSlicerDataModuleWidget::d_ptr

Definition at line 88 of file qSlicerDataModuleWidget.h.

The documentation for this class was generated from the following file: