Qt-based logic class to exercise Qt-related logic functions. The Subject hierarchy plugin mechanism and those are Qt classes.
More...
#include <Modules/Loadable/SubjectHierarchy/Widgets/qSlicerSubjectHierarchyPluginLogic.h>
|
QScopedPointer< qSlicerSubjectHierarchyPluginLogicPrivate > | d_ptr |
|
QScopedPointer< qSlicerObjectPrivate > | d_ptr |
|
Qt-based logic class to exercise Qt-related logic functions. The Subject hierarchy plugin mechanism and those are Qt classes.
Definition at line 48 of file qSlicerSubjectHierarchyPluginLogic.h.
◆ Superclass
◆ qSlicerSubjectHierarchyPluginLogic()
qSlicerSubjectHierarchyPluginLogic::qSlicerSubjectHierarchyPluginLogic |
( |
QObject * |
parent = nullptr | ) |
|
◆ ~qSlicerSubjectHierarchyPluginLogic()
qSlicerSubjectHierarchyPluginLogic::~qSlicerSubjectHierarchyPluginLogic |
( |
| ) |
|
|
override |
◆ addSupportedDataNodesToSubjectHierarchy()
void qSlicerSubjectHierarchyPluginLogic::addSupportedDataNodesToSubjectHierarchy |
( |
| ) |
|
|
protected |
Add supported nodes to subject hierarchy. This method is called if auto-creation is enabled and a supported node is added to the scene, or if the user answers yes to the question that pops up upon entering subject hierarchy module if supported nodes are found that are not in the hierarchy.
◆ availableViewMenuActionNames()
Q_INVOKABLE QStringList qSlicerSubjectHierarchyPluginLogic::availableViewMenuActionNames |
( |
| ) |
|
Get all view menu actions available
- Returns
- List of object names of all registered view menu actions
◆ currentSubjectHierarchyItem()
Q_INVOKABLE vtkIdType qSlicerSubjectHierarchyPluginLogic::currentSubjectHierarchyItem |
( |
| ) |
const |
Assessor function for getting currently selected subject hierarchy item (for python)
◆ editProperties
void qSlicerSubjectHierarchyPluginLogic::editProperties |
( |
| ) |
|
|
protectedslot |
Called when the user clicks the Edit properties View menu action.
◆ observeNode()
void qSlicerSubjectHierarchyPluginLogic::observeNode |
( |
vtkMRMLNode * |
node | ) |
|
|
protected |
Add observations for node that was added to subject hierarchy.
◆ onDisplayMenuEvent
void qSlicerSubjectHierarchyPluginLogic::onDisplayMenuEvent |
( |
vtkObject * |
, |
|
|
vtkObject * |
|
|
) |
| |
|
protectedslot |
Called when menu event is invoked on a display node of an owned displayable node.
◆ onDisplayNodeModified
void qSlicerSubjectHierarchyPluginLogic::onDisplayNodeModified |
( |
vtkObject * |
, |
|
|
vtkObject * |
|
|
) |
| |
|
protectedslot |
Called when display node modified event is invoked on an owned displayable node.
◆ onNodeAboutToBeRemoved
void qSlicerSubjectHierarchyPluginLogic::onNodeAboutToBeRemoved |
( |
vtkObject * |
scene, |
|
|
vtkObject * |
nodeObject |
|
) |
| |
|
protectedslot |
Called when a node is removed from the scene so that the associated subject hierarchy item can be deleted too
◆ onNodeAdded
void qSlicerSubjectHierarchyPluginLogic::onNodeAdded |
( |
vtkObject * |
scene, |
|
|
vtkObject * |
nodeObject |
|
) |
| |
|
protectedslot |
Called when a node is added to the scene so that a plugin can create an item for it.
◆ onNodeRemoved
void qSlicerSubjectHierarchyPluginLogic::onNodeRemoved |
( |
vtkObject * |
scene, |
|
|
vtkObject * |
nodeObject |
|
) |
| |
|
protectedslot |
Called when a node is removed from the scene so if the subject hierarchy node is removed, it is re-created and the hierarchy rebuilt
◆ onSceneBatchProcessEnded
void qSlicerSubjectHierarchyPluginLogic::onSceneBatchProcessEnded |
( |
vtkObject * |
sceneObject | ) |
|
|
protectedslot |
Called when batch processing is ended. Subject hierarchy is updated after batch processing, when nodes may be added/removed without individual events
◆ onSceneCloseEnded
void qSlicerSubjectHierarchyPluginLogic::onSceneCloseEnded |
( |
vtkObject * |
sceneObject | ) |
|
|
protectedslot |
Called when scene import is finished. Hierarchy is cleared in that case.
◆ onSceneImportEnded
void qSlicerSubjectHierarchyPluginLogic::onSceneImportEnded |
( |
vtkObject * |
sceneObject | ) |
|
|
protectedslot |
Called when scene import is finished. Subject hierarchy items are created for supported data nodes if they have not been imported with the scene (backwards compatibility for older scenes)
◆ onSceneRestoreEnded
void qSlicerSubjectHierarchyPluginLogic::onSceneRestoreEnded |
( |
vtkObject * |
sceneObject | ) |
|
|
protectedslot |
Called when scene restore is finished. As the restored node contains only unresolved items, they need to be resolved when restoring ended
◆ registerCorePlugins()
void qSlicerSubjectHierarchyPluginLogic::registerCorePlugins |
( |
| ) |
|
Register subject hierarchy core plugins Note: Registering plugins provided by other modules is the responsibility of the module!
◆ registerViewMenuAction()
void qSlicerSubjectHierarchyPluginLogic::registerViewMenuAction |
( |
QAction * |
action | ) |
|
|
protected |
Add view menu action. Called by plugin handler when registering a plugin.
◆ setCurrentSubjectHierarchyItem()
Q_INVOKABLE void qSlicerSubjectHierarchyPluginLogic::setCurrentSubjectHierarchyItem |
( |
vtkIdType |
itemID | ) |
|
Utility test function to be able to set currently selected subject hierarchy node from python Only used in python tests!
◆ setDisplayedViewMenuActionNames()
Q_INVOKABLE void qSlicerSubjectHierarchyPluginLogic::setDisplayedViewMenuActionNames |
( |
QStringList |
actionObjectNames | ) |
|
Set desired set of view menu actions
- Parameters
-
actionObjectNames | List of view menu actions to consider. Only actions included here by object name are shown in the menu if they are accepted by the owner plugin. The order set here is used. |
◆ setMRMLScene()
void qSlicerSubjectHierarchyPluginLogic::setMRMLScene |
( |
vtkMRMLScene * |
scene | ) |
|
|
overridevirtual |
Set the current MRML scene to the logic.
Reimplemented from qSlicerObject.
◆ subjectHierarchyPluginByName()
Assessor function for getting subject hierarchy plugin by name (for python)
◆ qSlicerSubjectHierarchyPluginHandler
◆ d_ptr
QScopedPointer<qSlicerSubjectHierarchyPluginLogicPrivate> qSlicerSubjectHierarchyPluginLogic::d_ptr |
|
protected |
The documentation for this class was generated from the following file: