Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
QmitkNodeSelectionButton Class Reference

Button class that can be used to display information about a given node. If the given node is a nullptr the node info text will be shown. The node info can be formatted text (e.g. HTML code; like the tooltip text). More...

#include <QmitkNodeSelectionButton.h>

Inheritance diagram for QmitkNodeSelectionButton:
Collaboration diagram for QmitkNodeSelectionButton:

Public Slots

virtual void SetSelectedNode (const mitk::DataNode *node)
 
virtual void SetNodeInfo (QString info)
 
void SetSelectionIsOptional (bool isOptional)
 

Public Member Functions

 QmitkNodeSelectionButton (QWidget *parent=nullptr)
 
 ~QmitkNodeSelectionButton () override
 
const mitk::DataNodeGetSelectedNode () const
 
bool GetSelectionIsOptional () const
 

Protected Member Functions

void paintEvent (QPaintEvent *p) override
 
void changeEvent (QEvent *event) override
 
void AddNodeObserver ()
 
void RemoveNodeObserver ()
 
void OnNodeModified (const itk::Object *, const itk::EventObject &)
 

Protected Attributes

mitk::DataNode::ConstPointer m_SelectedNode
 
QString m_Info
 
bool m_OutDatedThumbNail
 
QPixmap m_ThumbNail
 
itk::ModifiedTimeType m_DataMTime
 
itk::ModifiedTimeType m_SelectionPropMTime
 
bool m_IsOptional
 
unsigned long m_NodeModifiedObserverTag
 
bool m_NodeObserved
 

Detailed Description

Button class that can be used to display information about a given node. If the given node is a nullptr the node info text will be shown. The node info can be formatted text (e.g. HTML code; like the tooltip text).

Definition at line 29 of file QmitkNodeSelectionButton.h.

Constructor & Destructor Documentation

◆ QmitkNodeSelectionButton()

QmitkNodeSelectionButton::QmitkNodeSelectionButton ( QWidget *  parent = nullptr)
explicit

◆ ~QmitkNodeSelectionButton()

QmitkNodeSelectionButton::~QmitkNodeSelectionButton ( )
override

Member Function Documentation

◆ AddNodeObserver()

void QmitkNodeSelectionButton::AddNodeObserver ( )
protected

◆ changeEvent()

void QmitkNodeSelectionButton::changeEvent ( QEvent *  event)
overrideprotected

◆ GetSelectedNode()

const mitk::DataNode* QmitkNodeSelectionButton::GetSelectedNode ( ) const

◆ GetSelectionIsOptional()

bool QmitkNodeSelectionButton::GetSelectionIsOptional ( ) const

◆ OnNodeModified()

void QmitkNodeSelectionButton::OnNodeModified ( const itk::Object *  ,
const itk::EventObject &   
)
protected

◆ paintEvent()

void QmitkNodeSelectionButton::paintEvent ( QPaintEvent *  p)
overrideprotected

◆ RemoveNodeObserver()

void QmitkNodeSelectionButton::RemoveNodeObserver ( )
protected

◆ SetNodeInfo

virtual void QmitkNodeSelectionButton::SetNodeInfo ( QString  info)
virtualslot

◆ SetSelectedNode

virtual void QmitkNodeSelectionButton::SetSelectedNode ( const mitk::DataNode node)
virtualslot

◆ SetSelectionIsOptional

void QmitkNodeSelectionButton::SetSelectionIsOptional ( bool  isOptional)
slot

Set the widget into an optional mode. Optional means that the selection of no valid node does not mean an invalid state. Thus no node is a valid "node" selection too. The state influences if the info text is handled as an information (optional) or a warning (optional==false).

Member Data Documentation

◆ m_DataMTime

itk::ModifiedTimeType QmitkNodeSelectionButton::m_DataMTime
protected

Definition at line 62 of file QmitkNodeSelectionButton.h.

◆ m_Info

QString QmitkNodeSelectionButton::m_Info
protected

Definition at line 59 of file QmitkNodeSelectionButton.h.

◆ m_IsOptional

bool QmitkNodeSelectionButton::m_IsOptional
protected

Definition at line 65 of file QmitkNodeSelectionButton.h.

◆ m_NodeModifiedObserverTag

unsigned long QmitkNodeSelectionButton::m_NodeModifiedObserverTag
protected

Definition at line 67 of file QmitkNodeSelectionButton.h.

◆ m_NodeObserved

bool QmitkNodeSelectionButton::m_NodeObserved
protected

Definition at line 68 of file QmitkNodeSelectionButton.h.

◆ m_OutDatedThumbNail

bool QmitkNodeSelectionButton::m_OutDatedThumbNail
protected

Definition at line 60 of file QmitkNodeSelectionButton.h.

◆ m_SelectedNode

mitk::DataNode::ConstPointer QmitkNodeSelectionButton::m_SelectedNode
protected

Definition at line 58 of file QmitkNodeSelectionButton.h.

◆ m_SelectionPropMTime

itk::ModifiedTimeType QmitkNodeSelectionButton::m_SelectionPropMTime
protected

Definition at line 63 of file QmitkNodeSelectionButton.h.

◆ m_ThumbNail

QPixmap QmitkNodeSelectionButton::m_ThumbNail
protected

Definition at line 61 of file QmitkNodeSelectionButton.h.


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