Slicer  4.8
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
[legend]
Collaboration diagram for qSlicerDataModuleWidget:
Collaboration graph
[legend]

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...
 
virtual void setMRMLScene (vtkMRMLScene *scene)
 Reimplemented for internal reasons. More...
 
void setTransformsVisible (bool visible)
 Show or hide transforms. More...
 
- Public Slots inherited from qSlicerWidget
virtual void setMRMLScene (vtkMRMLScene *scene)
 

Public Member Functions

virtual void enter ()
 
 qSlicerDataModuleWidget (QWidget *parentWidget=0)
 
Q_INVOKABLE qMRMLSubjectHierarchyModelsubjectHierarchySceneModel () const
 Assessor function for subject hierarchy model (for python) More...
 
virtual ~qSlicerDataModuleWidget ()
 
- Public Member Functions inherited from qSlicerAbstractModuleWidget
virtual Q_INVOKABLE void exit ()
 
bool isEntered () const
 
virtual Q_INVOKABLE double nodeEditable (vtkMRMLNode *node)
 
 qSlicerAbstractModuleWidget (QWidget *parent=0)
 
virtual Q_INVOKABLE bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString())
 Node editing. More...
 
virtual ~qSlicerAbstractModuleWidget ()
 
- Public Member Functions inherited from qSlicerWidget
 qSlicerWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~qSlicerWidget ()
 
- 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 ()
 
virtual ~qSlicerAbstractModuleRepresentation ()
 

Protected Slots

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

Protected Member Functions

virtual void setup ()
 
- 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
Enumerator
TabIndexSubjectHierarchy 
TabIndexTransformHierarchy 
TabIndexAllNodes 

Definition at line 43 of file qSlicerDataModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerDataModuleWidget()

qSlicerDataModuleWidget::qSlicerDataModuleWidget ( QWidget *  parentWidget = 0)

◆ ~qSlicerDataModuleWidget()

virtual qSlicerDataModuleWidget::~qSlicerDataModuleWidget ( )
virtual

Member Function Documentation

◆ enter()

virtual void qSlicerDataModuleWidget::enter ( )
virtual

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 ( )
slot

Harden transform on current node.

◆ insertTransformNode

void qSlicerDataModuleWidget::insertTransformNode ( )
slot

Insert new transform node.

◆ onCurrentNodeChanged

void qSlicerDataModuleWidget::onCurrentNodeChanged ( vtkMRMLNode newCurrentNode)
protectedslot

◆ onCurrentTabChanged

void qSlicerDataModuleWidget::onCurrentTabChanged ( int  tabIndex)
protectedslot

◆ onHelpButtonClicked

void qSlicerDataModuleWidget::onHelpButtonClicked ( )
protectedslot

◆ onSubjectHierarchyItemEvent()

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

◆ onSubjectHierarchyItemModified

void qSlicerDataModuleWidget::onSubjectHierarchyItemModified ( vtkIdType  itemID)
slot

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

◆ setDataNodeFromSubjectHierarchyItem

void qSlicerDataModuleWidget::setDataNodeFromSubjectHierarchyItem ( vtkIdType  itemID)
slot

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

◆ setInfoLabelFromSubjectHierarchyItem

void qSlicerDataModuleWidget::setInfoLabelFromSubjectHierarchyItem ( vtkIdType  itemID)
slot

Set subject hierarchy item information to the label.

◆ setMRMLIDsVisible

void qSlicerDataModuleWidget::setMRMLIDsVisible ( bool  visible)
slot

Change visibility of the MRML node ID columns.

◆ setMRMLScene

virtual void qSlicerDataModuleWidget::setMRMLScene ( vtkMRMLScene scene)
virtualslot

Reimplemented for internal reasons.

◆ setTransformsVisible

void qSlicerDataModuleWidget::setTransformsVisible ( bool  visible)
slot

Show or hide transforms.

◆ setup()

virtual void qSlicerDataModuleWidget::setup ( )
protectedvirtual

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

Reimplemented from qSlicerAbstractModuleWidget.

◆ showContextMenuHint

void qSlicerDataModuleWidget::showContextMenuHint ( )
protectedslot

◆ 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
protected

Definition at line 90 of file qSlicerDataModuleWidget.h.


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