Slicer  5.1
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 | Protected Attributes
qSlicerModelsModuleWidget Class Reference

#include <Modules/Loadable/Models/qSlicerModelsModuleWidget.h>

Inheritance diagram for qSlicerModelsModuleWidget:
Inheritance graph
[legend]
Collaboration diagram for qSlicerModelsModuleWidget:
Collaboration graph
[legend]

Public Types

typedef qSlicerAbstractModuleWidget Superclass
 
- Public Types inherited from qSlicerAbstractModuleRepresentation
typedef qSlicerObject Superclass
 

Public Slots

void hideAllModels ()
 hide/show all the models in the scene More...
 
void onClippingConfigurationButtonClicked ()
 
void onClipSelectedModelToggled (bool)
 
void onColorLegendCollapsibleGroupBoxToggled (bool)
 Create or get first color legend if group box is expanded. More...
 
void onDisplayNodeChanged ()
 
static void onMRMLSceneEvent (vtkObject *vtk_obj, unsigned long event, void *client_data, void *call_data)
 
void setDisplaySelectionFromSubjectHierarchyItems (QList< vtkIdType > itemIDs)
 
void setMRMLScene (vtkMRMLScene *scene) override
 
void showAllModels ()
 
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override
 

Public Member Functions

void enter () override
 
void exit () override
 
 qSlicerModelsModuleWidget (QWidget *parent=nullptr)
 
bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
 Node editing. More...
 
 ~qSlicerModelsModuleWidget () override
 
- Public Member Functions inherited from qSlicerAbstractModuleWidget
bool isEntered () const
 
Q_INVOKABLE double nodeEditable (vtkMRMLNode *node) override
 
 qSlicerAbstractModuleWidget (QWidget *parent=nullptr)
 
 ~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 onInformationSectionCollapsed (bool)
 Called when the information collapsible button collapsed state is changed. More...
 
void onSubjectHierarchyItemModified (vtkObject *caller, void *callData)
 

Protected Member Functions

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

Protected Attributes

QScopedPointer< qSlicerModelsModuleWidgetPrivate > 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 37 of file qSlicerModelsModuleWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 43 of file qSlicerModelsModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerModelsModuleWidget()

qSlicerModelsModuleWidget::qSlicerModelsModuleWidget ( QWidget *  parent = nullptr)

◆ ~qSlicerModelsModuleWidget()

qSlicerModelsModuleWidget::~qSlicerModelsModuleWidget ( )
override

Member Function Documentation

◆ enter()

void qSlicerModelsModuleWidget::enter ( )
overridevirtual

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.

◆ exit()

void qSlicerModelsModuleWidget::exit ( )
overridevirtual

Reimplemented from qSlicerAbstractModuleWidget.

◆ hideAllModels

void qSlicerModelsModuleWidget::hideAllModels ( )
slot

hide/show all the models in the scene

◆ onClippingConfigurationButtonClicked

void qSlicerModelsModuleWidget::onClippingConfigurationButtonClicked ( )
slot

◆ onClipSelectedModelToggled

void qSlicerModelsModuleWidget::onClipSelectedModelToggled ( bool  )
slot

◆ onColorLegendCollapsibleGroupBoxToggled

void qSlicerModelsModuleWidget::onColorLegendCollapsibleGroupBoxToggled ( bool  )
slot

Create or get first color legend if group box is expanded.

◆ onDisplayNodeChanged

void qSlicerModelsModuleWidget::onDisplayNodeChanged ( )
slot

◆ onInformationSectionCollapsed

void qSlicerModelsModuleWidget::onInformationSectionCollapsed ( bool  )
protectedslot

Called when the information collapsible button collapsed state is changed.

◆ onMRMLSceneEvent

static void qSlicerModelsModuleWidget::onMRMLSceneEvent ( vtkObject *  vtk_obj,
unsigned long  event,
void *  client_data,
void *  call_data 
)
staticslot

◆ onSubjectHierarchyItemModified

void qSlicerModelsModuleWidget::onSubjectHierarchyItemModified ( vtkObject *  caller,
void *  callData 
)
protectedslot

Called when a subject hierarchy item is modified. Updates current item selection to reflect changes in item (such as display node creation)

◆ setDisplaySelectionFromSubjectHierarchyItems

void qSlicerModelsModuleWidget::setDisplaySelectionFromSubjectHierarchyItems ( QList< vtkIdType >  itemIDs)
slot

Set current subject hierarchy item IDs. The current node (the properties of which the widget displays) will be the one associated to the first selected subject hierarchy item. When a property changes, then it is applied to all the models in the selection

◆ setEditedNode()

bool qSlicerModelsModuleWidget::setEditedNode ( vtkMRMLNode node,
QString  role = QString(),
QString  context = QString() 
)
overridevirtual

Node editing.

Reimplemented from qSlicerAbstractModuleWidget.

◆ setMRMLScene

void qSlicerModelsModuleWidget::setMRMLScene ( vtkMRMLScene scene)
overrideslot

◆ setup()

void qSlicerModelsModuleWidget::setup ( )
overrideprotectedvirtual

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

Reimplemented from qSlicerAbstractModuleWidget.

◆ showAllModels

void qSlicerModelsModuleWidget::showAllModels ( )
slot

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerModelsModuleWidgetPrivate> qSlicerModelsModuleWidget::d_ptr
protected

Definition at line 85 of file qSlicerModelsModuleWidget.h.


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