![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Base/QTCore/qSlicerAbstractModuleRepresentation.h>
Public Types | |
typedef qSlicerObject | Superclass |
Public Member Functions | |
qSlicerAbstractCoreModule * | module () const |
QString | moduleName () const |
Set/Get module name. | |
virtual double | nodeEditable (vtkMRMLNode *node) |
qSlicerAbstractModuleRepresentation () | |
virtual bool | setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) |
Select input or output nodes in the module's GUI. | |
~qSlicerAbstractModuleRepresentation () override | |
![]() | |
vtkMRMLScene * | mrmlScene () const |
Return a pointer on the MRML scene. | |
qSlicerObject () | |
virtual void | setMRMLScene (vtkMRMLScene *) |
Set the current MRML scene to the widget. | |
virtual | ~qSlicerObject () |
Protected Member Functions | |
vtkMRMLAbstractLogic * | logic () const |
virtual void | setup ()=0 |
Protected Attributes | |
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > | d_ptr |
![]() | |
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
Friends | |
class | qSlicerAbstractCoreModule |
Definition at line 42 of file qSlicerAbstractModuleRepresentation.h.
Definition at line 46 of file qSlicerAbstractModuleRepresentation.h.
qSlicerAbstractModuleRepresentation::qSlicerAbstractModuleRepresentation | ( | ) |
|
override |
|
protected |
Return the logic of the module The logic is available (not null) when setup() is called. So you can't access it in the constructor of your module widget.
qSlicerAbstractCoreModule * qSlicerAbstractModuleRepresentation::module | ( | ) | const |
Returns the module the representation belongs to. The module is set right before setup() is called.
QString qSlicerAbstractModuleRepresentation::moduleName | ( | ) | const |
Set/Get module name.
|
virtual |
Returns a confidence value (between 0.0 and 1.0) that defines how much this widget is suitable for editing the provided node. In general value of 0.5 should be used. If the returned value is 0 then it means the node should not be attempted to set as edited node. This node has to be overridden in child classes that want to use a non-default confidence value (for example, they look into the node contents and decide based on that if the node belongs to this module).
Reimplemented in qSlicerAbstractModuleWidget, qSlicerCLIModuleWidget, qSlicerMarkupsModuleWidget, qSlicerScriptedLoadableModuleWidget, and qSlicerVolumeRenderingModuleWidget.
|
virtual |
Select input or output nodes in the module's GUI.
node | The node to be selected. |
role | Specifies the intended usage of the selected node. |
context | can be specified to make a selection within that node (for example, a markup list node may contain multiple markups; context can be used to select a specific item). |
This function is intended only for use in modules that support editing certain types of nodes. The available roles and associated context description are specific to each module.
To enable editing of specific node types, the module must override the qSlicerAbstractCoreModule::associatedNodeTypes() method and the module's widget class should override setEditedNode() method.
Optionally the nodeEditable() method can be overridden to specify a non-default confidence value. The confidence value should be specified as a decimal number between 0.0 and 1.0.
Reimplemented in qSlicerAbstractModuleWidget, qSlicerCamerasModuleWidget, qSlicerCLIModuleWidget, qSlicerColorsModuleWidget, qSlicerCropVolumeModuleWidget, qSlicerMarkupsModuleWidget, qSlicerModelsModuleWidget, qSlicerPlotsModuleWidget, qSlicerReformatModuleWidget, qSlicerSceneViewsModuleWidget, qSlicerScriptedLoadableModuleWidget, qSlicerSegmentationsModuleWidget, qSlicerSequencesModuleWidget, qSlicerTablesModuleWidget, qSlicerTextsModuleWidget, qSlicerTransformsModuleWidget, qSlicerVolumeRenderingModuleWidget, and qSlicerVolumesModuleWidget.
|
protectedpure virtual |
All initialization code (typically setupUi()) must be done in setup() The module and the logic are accessible.
Implemented in qSlicerAbstractModuleWidget, qSlicerCamerasModuleWidget, qSlicerCLIModuleWidget, qSlicerColorsModuleWidget, qSlicerCropVolumeModuleWidget, qSlicerDataModuleWidget, qSlicerEventBrokerModuleWidget, qSlicerMarkupsModuleWidget, qSlicerModelsModuleWidget, qSlicerPlotsModuleWidget, qSlicerReformatModuleWidget, qSlicerSceneViewsModuleWidget, qSlicerScriptedLoadableModuleWidget, qSlicerSegmentationsModuleWidget, qSlicerSequencesModuleWidget, qSlicerSubjectHierarchyModuleWidget, qSlicerTablesModuleWidget, qSlicerTerminologiesModuleWidget, qSlicerTextsModuleWidget, qSlicerTransformsModuleWidget, qSlicerViewControllersModuleWidget, qSlicerVolumeRenderingModuleWidget, qSlicerVolumesModuleWidget, and qSlicerWelcomeModuleWidget.
|
friend |
Give access to qSlicerAbstractModule to the method qSlicerAbstractModuleRepresentation::setModule
Definition at line 108 of file qSlicerAbstractModuleRepresentation.h.
|
protected |
Definition at line 100 of file qSlicerAbstractModuleRepresentation.h.