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 | Public Attributes | Protected Slots | Protected Attributes
qSlicerAnnotationModuleWidget Class Reference

#include <Modules/Loadable/Annotations/GUI/qSlicerAnnotationModuleWidget.h>

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

Public Types

enum  {
  TextNode = 1000, FiducialNode, AngleNode, StickyNode,
  SplineNode, RulerNode, ROINode, Screenshot
}
 Different Annotation Types. More...
 
typedef qSlicerAbstractModuleWidget Superclass
 
- Public Types inherited from qSlicerAbstractModuleRepresentation
typedef qSlicerObject Superclass
 

Public Slots

void grabSnapShot ()
 
void onHierarchyNodeAddedEvent (vtkObject *caller, vtkObject *obj)
 a public slot that will expand a newly added hierarchy node item More...
 
void refreshTree ()
 a public slot that will refresh the tree view More...
 
void updateActiveHierarchyLabel ()
 
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override
 

Public Member Functions

 qSlicerAnnotationModuleWidget (QWidget *parent=nullptr)
 
bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
 Node editing. More...
 
void updateWidgetFromInteractionMode (vtkMRMLInteractionNode *interactionNode)
 
 ~qSlicerAnnotationModuleWidget () override
 
- Public Member Functions inherited from qSlicerAbstractModuleWidget
virtual Q_INVOKABLE void enter ()
 
virtual Q_INVOKABLE void exit ()
 
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
 

Public Attributes

vtkSmartPointer< vtkMRMLApplicationLogicMRMLAppLogic
 

Protected Slots

void deleteSelectedButtonClicked ()
 Delete selected Annotations. More...
 
void invisibleHierarchyButtonClicked ()
 Make active hierarchy annotations visible/invisible. More...
 
void lockHierarchyButtonClicked ()
 Un/Lock annotations in active hierarchy. More...
 
void lockSelectedButtonClicked ()
 Un-/Lock selected Annotations. More...
 
void moveDownSelected ()
 
void moveUpSelected ()
 
void onAddHierarchyButtonClicked ()
 Add a new hierarchy. More...
 
void onCreateLineButtonClicked ()
 Create new annotation nodes. More...
 
void onCreateROIButtonClicked ()
 
void onJumpSlicesButtonClicked ()
 Jump the 2d Slices to the first control point of the selected annotation. More...
 
void onReportButtonClicked ()
 
void propertyAccepted ()
 
void propertyEditButtonClicked (QString mrmlId)
 User clicked on property edit button. More...
 
void propertyRestored ()
 
void reportDialogAccepted ()
 
void reportDialogRejected ()
 
void selectAllButtonClicked ()
 Select all annotations. More...
 
void unlockHierarchyButtonClicked ()
 
void unselectAllButtonClicked ()
 Unselect all annotations. More...
 
void visibleHierarchyButtonClicked ()
 
void visibleSelectedButtonClicked ()
 Toggle the visibility of selected Annotations. More...
 

Protected Attributes

QScopedPointer< qSlicerAnnotationModuleWidgetPrivate > 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 *)
 
- Protected Member Functions inherited from qSlicerAbstractModuleRepresentation
vtkMRMLAbstractLogiclogic () const
 

Detailed Description

Definition at line 21 of file qSlicerAnnotationModuleWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 27 of file qSlicerAnnotationModuleWidget.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Different Annotation Types.

Enumerator
TextNode 
FiducialNode 
AngleNode 
StickyNode 
SplineNode 
RulerNode 
ROINode 
Screenshot 

Definition at line 33 of file qSlicerAnnotationModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerAnnotationModuleWidget()

qSlicerAnnotationModuleWidget::qSlicerAnnotationModuleWidget ( QWidget *  parent = nullptr)

◆ ~qSlicerAnnotationModuleWidget()

qSlicerAnnotationModuleWidget::~qSlicerAnnotationModuleWidget ( )
override

Member Function Documentation

◆ deleteSelectedButtonClicked

void qSlicerAnnotationModuleWidget::deleteSelectedButtonClicked ( )
protectedslot

Delete selected Annotations.

◆ grabSnapShot

void qSlicerAnnotationModuleWidget::grabSnapShot ( )
slot

a public slot allowing other modules to open up the screen capture dialog

◆ invisibleHierarchyButtonClicked

void qSlicerAnnotationModuleWidget::invisibleHierarchyButtonClicked ( )
protectedslot

Make active hierarchy annotations visible/invisible.

◆ lockHierarchyButtonClicked

void qSlicerAnnotationModuleWidget::lockHierarchyButtonClicked ( )
protectedslot

Un/Lock annotations in active hierarchy.

◆ lockSelectedButtonClicked

void qSlicerAnnotationModuleWidget::lockSelectedButtonClicked ( )
protectedslot

Un-/Lock selected Annotations.

◆ moveDownSelected

void qSlicerAnnotationModuleWidget::moveDownSelected ( )
protectedslot

◆ moveUpSelected

void qSlicerAnnotationModuleWidget::moveUpSelected ( )
protectedslot

◆ onAddHierarchyButtonClicked

void qSlicerAnnotationModuleWidget::onAddHierarchyButtonClicked ( )
protectedslot

Add a new hierarchy.

◆ onCreateLineButtonClicked

void qSlicerAnnotationModuleWidget::onCreateLineButtonClicked ( )
protectedslot

Create new annotation nodes.

◆ onCreateROIButtonClicked

void qSlicerAnnotationModuleWidget::onCreateROIButtonClicked ( )
protectedslot

◆ onHierarchyNodeAddedEvent

void qSlicerAnnotationModuleWidget::onHierarchyNodeAddedEvent ( vtkObject *  caller,
vtkObject *  obj 
)
slot

a public slot that will expand a newly added hierarchy node item

◆ onJumpSlicesButtonClicked

void qSlicerAnnotationModuleWidget::onJumpSlicesButtonClicked ( )
protectedslot

Jump the 2d Slices to the first control point of the selected annotation.

◆ onReportButtonClicked

void qSlicerAnnotationModuleWidget::onReportButtonClicked ( )
protectedslot

◆ propertyAccepted

void qSlicerAnnotationModuleWidget::propertyAccepted ( )
protectedslot

◆ propertyEditButtonClicked

void qSlicerAnnotationModuleWidget::propertyEditButtonClicked ( QString  mrmlId)
protectedslot

User clicked on property edit button.

◆ propertyRestored

void qSlicerAnnotationModuleWidget::propertyRestored ( )
protectedslot

◆ refreshTree

void qSlicerAnnotationModuleWidget::refreshTree ( )
slot

a public slot that will refresh the tree view

◆ reportDialogAccepted

void qSlicerAnnotationModuleWidget::reportDialogAccepted ( )
protectedslot

◆ reportDialogRejected

void qSlicerAnnotationModuleWidget::reportDialogRejected ( )
protectedslot

◆ selectAllButtonClicked

void qSlicerAnnotationModuleWidget::selectAllButtonClicked ( )
protectedslot

Select all annotations.

◆ setEditedNode()

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

Node editing.

Reimplemented from qSlicerAbstractModuleWidget.

◆ unlockHierarchyButtonClicked

void qSlicerAnnotationModuleWidget::unlockHierarchyButtonClicked ( )
protectedslot

◆ unselectAllButtonClicked

void qSlicerAnnotationModuleWidget::unselectAllButtonClicked ( )
protectedslot

Unselect all annotations.

◆ updateActiveHierarchyLabel

void qSlicerAnnotationModuleWidget::updateActiveHierarchyLabel ( )
slot

Update the label showing the active annotation hierarchy, triggered from the logic modifying the active hierarchy node

◆ updateWidgetFromInteractionMode()

void qSlicerAnnotationModuleWidget::updateWidgetFromInteractionMode ( vtkMRMLInteractionNode interactionNode)

the logic observes the interaction node, update the gui to keep in step with the mouse modes tool bar. If interactionNode is null, try to get it from the scene.

◆ visibleHierarchyButtonClicked

void qSlicerAnnotationModuleWidget::visibleHierarchyButtonClicked ( )
protectedslot

◆ visibleSelectedButtonClicked

void qSlicerAnnotationModuleWidget::visibleSelectedButtonClicked ( )
protectedslot

Toggle the visibility of selected Annotations.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerAnnotationModuleWidgetPrivate> qSlicerAnnotationModuleWidget::d_ptr
protected

Definition at line 123 of file qSlicerAnnotationModuleWidget.h.

◆ MRMLAppLogic

vtkSmartPointer<vtkMRMLApplicationLogic> qSlicerAnnotationModuleWidget::MRMLAppLogic

Definition at line 30 of file qSlicerAnnotationModuleWidget.h.


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