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

#include <Modules/Loadable/Models/Widgets/qMRMLModelDisplayNodeWidget.h>

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

Public Types

enum  ControlMode {
  Data = 0, LUT = 1, DataType = 2, Manual = 3,
  DirectMapping = 4
}
 
typedef qMRMLWidget Superclass
 
- Public Types inherited from qMRMLWidget
typedef QWidget Superclass
 

Properties

bool clippingConfigurationButtonVisible
 
double maximumValue
 
double minimumValue
 
ControlMode scalarRangeMode
 

Public Slots

void setActiveScalarName (const QString &)
 
void setClipping (bool)
 
void setClippingConfigurationButtonVisible (bool)
 Show/hide "Configure..." button for clipping. More...
 
void setColor (const QColor &)
 
void setCurrentSubjectHierarchyItemID (vtkIdType currentItemID)
 
void setCurrentSubjectHierarchyItemIDs (QList< vtkIdType > currentItemIDs)
 
void setDistanceToColorNode (vtkMRMLNode *)
 
void setEdgeColor (const QColor &)
 
void setEdgeVisibility (bool)
 
void setInterpolation (int)
 
void setLighting (bool)
 
void setLineWidth (double)
 
void setMaximumValue (double max)
 
void setMinimumValue (double min)
 Set min/max of scalar range. More...
 
void setMRMLDisplayNode (vtkMRMLDisplayNode *displayNode)
 Set display node (may be model or folder display node) More...
 
void setMRMLModelDisplayNode (vtkMRMLModelDisplayNode *node)
 Set the model display node. More...
 
void setMRMLModelDisplayNode (vtkMRMLNode *node)
 Utility function to be connected with generic signals. More...
 
void setOpacity (double)
 
void setPointSize (double)
 
void setRepresentation (int)
 
void setScalarRangeMode (int scalarRangeMode)
 Set Auto/Manual mode. More...
 
void setScalarsColorNode (vtkMRMLNode *)
 
void setScalarsColorNode (vtkMRMLColorNode *)
 
void setScalarsDisplayRange (double min, double max)
 
void setScalarsVisibility (bool)
 
void setShowFaces (int)
 
void setSliceDisplayMode (int)
 
void setSliceIntersectionOpacity (double)
 
void setSliceIntersectionThickness (int)
 
void setSliceIntersectionVisible (bool)
 
void setThresholdRange (double min, double max)
 
void setTresholdEnabled (bool b)
 
void setVisibility (bool)
 
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...
 

Signals

void clippingConfigurationButtonClicked ()
 Signal sent if clipping configuration button is clicked. More...
 
void clippingToggled (bool)
 Signal sent if user toggles clipping checkbox on the GUI. More...
 
void displayNodeChanged ()
 Signal sent if the any property in the display node is changed. More...
 
void minMaxValuesChanged (double min, double max)
 Signal sent if the min/max value is updated. More...
 
void scalarRangeModeValueChanged (ControlMode value)
 Signal sent if the auto/manual value is updated. More...
 
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

QString activeScalarName () const
 
bool clipping () const
 
bool clippingConfigurationButtonVisible () const
 
vtkIdType currentSubjectHierarchyItemID () const
 Get current item (if single selection) More...
 
QList< vtkIdType > currentSubjectHierarchyItemIDs () const
 Get current items (if multi selection) More...
 
double maximumValue () const
 Get maximum of the scalar display range. More...
 
double minimumValue () const
 Get minimum of the scalar display range. More...
 
vtkMRMLDisplayNodemrmlDisplayNode () const
 Get current display node (may be model or folder display node) More...
 
vtkMRMLModelDisplayNodemrmlModelDisplayNode () const
 Get model display node (if model was selected not folder) More...
 
 qMRMLModelDisplayNodeWidget (QWidget *parent=nullptr)
 
ControlMode scalarRangeMode () const
 
vtkMRMLColorNodescalarsColorNode () const
 
bool scalarsVisibility () const
 
void setScalarRangeMode (ControlMode controlMode)
 Set scalar range mode. More...
 
double sliceIntersectionOpacity () const
 
int sliceIntersectionThickness () const
 
bool sliceIntersectionVisible () const
 
bool visibility () const
 
 ~qMRMLModelDisplayNodeWidget () override
 
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 
 ~qMRMLWidget () override
 

Protected Slots

void updateDisplayNodesFromProperty ()
 
void updateWidgetFromMRML ()
 

Protected Attributes

QScopedPointer< qMRMLModelDisplayNodeWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr
 

Additional Inherited Members

- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
 
static Q_INVOKABLE void preInitializeApplication ()
 

Detailed Description

Definition at line 39 of file qMRMLModelDisplayNodeWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 51 of file qMRMLModelDisplayNodeWidget.h.

Member Enumeration Documentation

◆ ControlMode

Enumerator
Data 
LUT 
DataType 
Manual 
DirectMapping 

Definition at line 75 of file qMRMLModelDisplayNodeWidget.h.

Property Documentation

◆ clippingConfigurationButtonVisible

bool qMRMLModelDisplayNodeWidget::clippingConfigurationButtonVisible
readwrite

Definition at line 47 of file qMRMLModelDisplayNodeWidget.h.

◆ maximumValue

double qMRMLModelDisplayNodeWidget::maximumValue
readwrite

Definition at line 46 of file qMRMLModelDisplayNodeWidget.h.

◆ minimumValue

double qMRMLModelDisplayNodeWidget::minimumValue
readwrite

Definition at line 45 of file qMRMLModelDisplayNodeWidget.h.

◆ scalarRangeMode

ControlMode qMRMLModelDisplayNodeWidget::scalarRangeMode
readwrite

Definition at line 44 of file qMRMLModelDisplayNodeWidget.h.

Constructor & Destructor Documentation

◆ qMRMLModelDisplayNodeWidget()

qMRMLModelDisplayNodeWidget::qMRMLModelDisplayNodeWidget ( QWidget *  parent = nullptr)

◆ ~qMRMLModelDisplayNodeWidget()

qMRMLModelDisplayNodeWidget::~qMRMLModelDisplayNodeWidget ( )
override

Member Function Documentation

◆ activeScalarName()

QString qMRMLModelDisplayNodeWidget::activeScalarName ( ) const

◆ clipping()

bool qMRMLModelDisplayNodeWidget::clipping ( ) const

◆ clippingConfigurationButtonClicked

void qMRMLModelDisplayNodeWidget::clippingConfigurationButtonClicked ( )
signal

Signal sent if clipping configuration button is clicked.

◆ clippingConfigurationButtonVisible()

bool qMRMLModelDisplayNodeWidget::clippingConfigurationButtonVisible ( ) const

◆ clippingToggled

void qMRMLModelDisplayNodeWidget::clippingToggled ( bool  )
signal

Signal sent if user toggles clipping checkbox on the GUI.

◆ currentSubjectHierarchyItemID()

vtkIdType qMRMLModelDisplayNodeWidget::currentSubjectHierarchyItemID ( ) const

Get current item (if single selection)

◆ currentSubjectHierarchyItemIDs()

QList<vtkIdType> qMRMLModelDisplayNodeWidget::currentSubjectHierarchyItemIDs ( ) const

Get current items (if multi selection)

◆ displayNodeChanged

void qMRMLModelDisplayNodeWidget::displayNodeChanged ( )
signal

Signal sent if the any property in the display node is changed.

◆ maximumValue()

double qMRMLModelDisplayNodeWidget::maximumValue ( ) const

Get maximum of the scalar display range.

◆ minimumValue()

double qMRMLModelDisplayNodeWidget::minimumValue ( ) const

Get minimum of the scalar display range.

◆ minMaxValuesChanged

void qMRMLModelDisplayNodeWidget::minMaxValuesChanged ( double  min,
double  max 
)
signal

Signal sent if the min/max value is updated.

◆ mrmlDisplayNode()

vtkMRMLDisplayNode* qMRMLModelDisplayNodeWidget::mrmlDisplayNode ( ) const

Get current display node (may be model or folder display node)

◆ mrmlModelDisplayNode()

vtkMRMLModelDisplayNode* qMRMLModelDisplayNodeWidget::mrmlModelDisplayNode ( ) const

Get model display node (if model was selected not folder)

◆ scalarRangeMode()

ControlMode qMRMLModelDisplayNodeWidget::scalarRangeMode ( ) const

◆ scalarRangeModeValueChanged

void qMRMLModelDisplayNodeWidget::scalarRangeModeValueChanged ( ControlMode  value)
signal

Signal sent if the auto/manual value is updated.

◆ scalarsColorNode()

vtkMRMLColorNode* qMRMLModelDisplayNodeWidget::scalarsColorNode ( ) const

◆ scalarsVisibility()

bool qMRMLModelDisplayNodeWidget::scalarsVisibility ( ) const

◆ setActiveScalarName

void qMRMLModelDisplayNodeWidget::setActiveScalarName ( const QString &  )
slot

◆ setClipping

void qMRMLModelDisplayNodeWidget::setClipping ( bool  )
slot

◆ setClippingConfigurationButtonVisible

void qMRMLModelDisplayNodeWidget::setClippingConfigurationButtonVisible ( bool  )
slot

Show/hide "Configure..." button for clipping.

◆ setColor

void qMRMLModelDisplayNodeWidget::setColor ( const QColor &  )
slot

◆ setCurrentSubjectHierarchyItemID

void qMRMLModelDisplayNodeWidget::setCurrentSubjectHierarchyItemID ( vtkIdType  currentItemID)
slot

Utility function to be connected with generic signals, it internally shows the 1st display node. can be set from the item of a model node or a folder.

◆ setCurrentSubjectHierarchyItemIDs

void qMRMLModelDisplayNodeWidget::setCurrentSubjectHierarchyItemIDs ( QList< vtkIdType >  currentItemIDs)
slot

Set the current subject hierarchy items. Both model and folder items are supported. In case of multi selection, the first item's display properties are displayed in the widget, but the changed settings are applied on all selected items if applicable.

◆ setDistanceToColorNode

void qMRMLModelDisplayNodeWidget::setDistanceToColorNode ( vtkMRMLNode )
slot

◆ setEdgeColor

void qMRMLModelDisplayNodeWidget::setEdgeColor ( const QColor &  )
slot

◆ setEdgeVisibility

void qMRMLModelDisplayNodeWidget::setEdgeVisibility ( bool  )
slot

◆ setInterpolation

void qMRMLModelDisplayNodeWidget::setInterpolation ( int  )
slot

◆ setLighting

void qMRMLModelDisplayNodeWidget::setLighting ( bool  )
slot

◆ setLineWidth

void qMRMLModelDisplayNodeWidget::setLineWidth ( double  )
slot

◆ setMaximumValue

void qMRMLModelDisplayNodeWidget::setMaximumValue ( double  max)
slot

◆ setMinimumValue

void qMRMLModelDisplayNodeWidget::setMinimumValue ( double  min)
slot

Set min/max of scalar range.

◆ setMRMLDisplayNode

void qMRMLModelDisplayNodeWidget::setMRMLDisplayNode ( vtkMRMLDisplayNode displayNode)
slot

Set display node (may be model or folder display node)

◆ setMRMLModelDisplayNode [1/2]

void qMRMLModelDisplayNodeWidget::setMRMLModelDisplayNode ( vtkMRMLModelDisplayNode node)
slot

Set the model display node.

◆ setMRMLModelDisplayNode [2/2]

void qMRMLModelDisplayNodeWidget::setMRMLModelDisplayNode ( vtkMRMLNode node)
slot

Utility function to be connected with generic signals.

◆ setOpacity

void qMRMLModelDisplayNodeWidget::setOpacity ( double  )
slot

◆ setPointSize

void qMRMLModelDisplayNodeWidget::setPointSize ( double  )
slot

◆ setRepresentation

void qMRMLModelDisplayNodeWidget::setRepresentation ( int  )
slot

◆ setScalarRangeMode() [1/2]

void qMRMLModelDisplayNodeWidget::setScalarRangeMode ( ControlMode  controlMode)

Set scalar range mode.

◆ setScalarRangeMode [2/2]

void qMRMLModelDisplayNodeWidget::setScalarRangeMode ( int  scalarRangeMode)
slot

Set Auto/Manual mode.

◆ setScalarsColorNode [1/2]

void qMRMLModelDisplayNodeWidget::setScalarsColorNode ( vtkMRMLNode )
slot

◆ setScalarsColorNode [2/2]

void qMRMLModelDisplayNodeWidget::setScalarsColorNode ( vtkMRMLColorNode )
slot

◆ setScalarsDisplayRange

void qMRMLModelDisplayNodeWidget::setScalarsDisplayRange ( double  min,
double  max 
)
slot

◆ setScalarsVisibility

void qMRMLModelDisplayNodeWidget::setScalarsVisibility ( bool  )
slot

◆ setShowFaces

void qMRMLModelDisplayNodeWidget::setShowFaces ( int  )
slot

◆ setSliceDisplayMode

void qMRMLModelDisplayNodeWidget::setSliceDisplayMode ( int  )
slot

◆ setSliceIntersectionOpacity

void qMRMLModelDisplayNodeWidget::setSliceIntersectionOpacity ( double  )
slot

◆ setSliceIntersectionThickness

void qMRMLModelDisplayNodeWidget::setSliceIntersectionThickness ( int  )
slot

◆ setSliceIntersectionVisible

void qMRMLModelDisplayNodeWidget::setSliceIntersectionVisible ( bool  )
slot

◆ setThresholdRange

void qMRMLModelDisplayNodeWidget::setThresholdRange ( double  min,
double  max 
)
slot

◆ setTresholdEnabled

void qMRMLModelDisplayNodeWidget::setTresholdEnabled ( bool  b)
slot

◆ setVisibility

void qMRMLModelDisplayNodeWidget::setVisibility ( bool  )
slot

◆ sliceIntersectionOpacity()

double qMRMLModelDisplayNodeWidget::sliceIntersectionOpacity ( ) const

◆ sliceIntersectionThickness()

int qMRMLModelDisplayNodeWidget::sliceIntersectionThickness ( ) const

◆ sliceIntersectionVisible()

bool qMRMLModelDisplayNodeWidget::sliceIntersectionVisible ( ) const

◆ updateDisplayNodesFromProperty

void qMRMLModelDisplayNodeWidget::updateDisplayNodesFromProperty ( )
protectedslot

◆ updateWidgetFromMRML

void qMRMLModelDisplayNodeWidget::updateWidgetFromMRML ( )
protectedslot

◆ visibility()

bool qMRMLModelDisplayNodeWidget::visibility ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLModelDisplayNodeWidgetPrivate> qMRMLModelDisplayNodeWidget::d_ptr
protected

Definition at line 167 of file qMRMLModelDisplayNodeWidget.h.


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