Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Superclass for MRML logic classes. More...
#include <Libs/MRML/Logic/vtkMRMLAbstractLogic.h>
Public Types | |
typedef vtkObject | Superclass |
typedef void(vtkMRMLAbstractLogic::* | TaskFunctionPointer) (void *clientdata) |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () const |
Return a reference to the current MRML scene. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic) |
void | SetMRMLScene (vtkMRMLScene *newScene) |
Set and observe the MRMLScene. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
Static Protected Member Functions | |
static void | MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLLogicCallback is a static function to relay modified events from the logics. More... | |
static void | MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
MRMLNodesCallback is a static function to relay modified events from the nodes. More... | |
static void | MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Superclass for MRML logic classes.
Superclass for all MRML logic classes. When a scene is set, SetMRMLScene(vtkMRMLScene*),
Definition at line 133 of file vtkMRMLAbstractLogic.h.
typedef vtkObject vtkMRMLAbstractLogic::Superclass |
Definition at line 142 of file vtkMRMLAbstractLogic.h.
typedef void(vtkMRMLAbstractLogic::* vtkMRMLAbstractLogic::TaskFunctionPointer) (void *clientdata) |
Typedef for member functions of MRMLLogic that can be used as scheduled tasks.
Definition at line 138 of file vtkMRMLAbstractLogic.h.
|
protected |
|
overrideprotected |
|
inlineprotected |
End modifying the node. Enable Modify events if the previous state of DisableModifiedEvent flag is 0. Return the number of pending ModifiedEvent;
Definition at line 457 of file vtkMRMLAbstractLogic.h.
|
protectedvirtual |
Return true if the Logics callback must be executed, false otherwise. By default, it returns true, you can reimplement it in subclasses
|
protectedvirtual |
Return true if the MRML Nodes callback must be executed, false otherwise. By default, it returns true, you can reimplement it in subclasses.
|
protectedvirtual |
Return true if the MRML callback must be executed, false otherwise. By default, it returns true, you can reimplement it in subclasses
|
virtual |
Reimplemented in vtkMRMLLayoutLogic, vtkSlicerCropVolumeLogic, vtkSlicerVolumesLogic, vtkMRMLSliceLayerLogic, vtkSlicerVolumeRenderingLogic, vtkMRMLSliceLogic, vtkMRMLViewLogic, vtkSlicerTransformLogic, vtkSlicerApplicationLogic, vtkSlicerSegmentationsModuleLogic, vtkMRMLApplicationLogic, vtkSlicerMarkupsLogic, vtkMRMLAbstractDisplayableManager, vtkSlicerSceneViewsModuleLogic, vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager, vtkSlicerSubjectHierarchyModuleLogic, vtkMRMLViewLinkLogic, vtkSlicerPlotsLogic, vtkSlicerSequencesLogic, vtkMRMLAnnotationDisplayableManager, vtkSlicerReformatLogic, vtkSlicerUnitsLogic, vtkSlicerCLIModuleLogic, vtkSlicerTablesLogic, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLAbstractSliceViewDisplayableManager, vtkMRMLSliceLinkLogic, vtkSlicerCamerasModuleLogic, vtkSlicerViewControllersLogic, vtkMRMLViewDisplayableManager, vtkSlicerTerminologiesModuleLogic, vtkSlicerDoubleArraysLogic, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLAbstractThreeDViewDisplayableManager, vtkMRMLModelSliceDisplayableManager, vtkSlicerModelsLogic, vtkMRMLSegmentationsDisplayableManager3D, vtkSlicerTextsLogic, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLCrosshairDisplayableManager, vtkSlicerDataModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager, vtkMRMLColorLogic, vtkMRMLAnnotationRulerDisplayableManager, vtkSlicerScriptedLoadableModuleLogic, vtkMRMLLightBoxRendererManagerProxy, vtkMRMLOrientationMarkerDisplayableManager, vtkMRMLRulerDisplayableManager, vtkMRMLScalarBarDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLDisplayableHierarchyLogic, vtkMRMLRemoteIOLogic, vtkMRMLAnnotationBidimensionalDisplayableManager, vtkMRMLAnnotationFiducialDisplayableManager, vtkMRMLAnnotationTextDisplayableManager, vtkSlicerFiducialsLogic, vtkMRMLAnnotationAngleDisplayableManager, vtkMRMLAnnotationROIDisplayableManager, vtkMRMLAnnotationSplineDisplayableManager, vtkMRMLAnnotationStickyDisplayableManager, vtkMRMLCrosshairDisplayableManager3D, vtkMRMLScriptedDisplayableManager, vtkSlicerAnnotationModuleLogic, vtkDataIOManagerLogic, vtkSlicerModuleLogic, and vtkSlicerColorLogic.
|
protected |
|
protected |
Return 0 when not processing any MRML logic event, >0 otherwise. Values can be higher than 1 when receiving nested events: processing a MRML logic event fires other node events.
|
protected |
Return 0 when not processing any MRML node event, >0 otherwise. Values can be higher than 1 when receiving nested events: processing a MRML node event fires other node events.
|
protected |
Return 0 when not processing a MRML scene event, >0 otherwise. Values can be higher than 1 when receiving nested event: processing a MRML scene event fires other scene events.
|
virtual |
Get access to overall application state.
|
protected |
Get the MRML Logic callback command.
|
protected |
Get MRML logics observerManager. It points to the logics callback.
|
protected |
Get the MRML nodes callbackCommand. The Execute function associated the the callback calls ProcessMRMLNodesEvents. Only vtkMRMLNodes can be listened to.
|
protected |
Get MRML nodes observerManager. It points to the nodes callback.
vtkMRMLScene* vtkMRMLAbstractLogic::GetMRMLScene | ( | ) | const |
Return a reference to the current MRML scene.
|
protected |
Get MRML scene callbackCommand. You shouldn't have to use it manually, reimplementing SetMRMLSceneInternal and setting the events to listen should be enough.
|
protected |
Get MRML scene observerManager. It points to the scene callback.
|
protected |
|
protected |
Return the event id currently processed or 0 if any.
|
protected |
Invokes any modified events that are 'pending', meaning they were generated while the DisableModifiedEvent flag was nonzero.
|
virtual |
Reimplemented in vtkMRMLLayoutLogic, vtkSlicerCropVolumeLogic, vtkSlicerVolumesLogic, vtkMRMLSliceLayerLogic, vtkSlicerVolumeRenderingLogic, vtkMRMLSliceLogic, vtkMRMLViewLogic, vtkSlicerTransformLogic, vtkSlicerApplicationLogic, vtkSlicerSegmentationsModuleLogic, vtkMRMLApplicationLogic, vtkSlicerMarkupsLogic, vtkMRMLAbstractDisplayableManager, vtkSlicerSceneViewsModuleLogic, vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager, vtkSlicerSubjectHierarchyModuleLogic, vtkMRMLViewLinkLogic, vtkSlicerPlotsLogic, vtkSlicerSequencesLogic, vtkMRMLAnnotationDisplayableManager, vtkSlicerReformatLogic, vtkSlicerUnitsLogic, vtkSlicerCLIModuleLogic, vtkSlicerTablesLogic, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLAbstractSliceViewDisplayableManager, vtkMRMLSliceLinkLogic, vtkSlicerCamerasModuleLogic, vtkSlicerViewControllersLogic, vtkMRMLViewDisplayableManager, vtkSlicerTerminologiesModuleLogic, vtkSlicerDoubleArraysLogic, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLAbstractThreeDViewDisplayableManager, vtkMRMLModelSliceDisplayableManager, vtkSlicerModelsLogic, vtkMRMLSegmentationsDisplayableManager3D, vtkSlicerTextsLogic, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLCrosshairDisplayableManager, vtkSlicerDataModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLVolumeGlyphSliceDisplayableManager, vtkMRMLColorLogic, vtkMRMLAnnotationRulerDisplayableManager, vtkSlicerScriptedLoadableModuleLogic, vtkMRMLLightBoxRendererManagerProxy, vtkMRMLOrientationMarkerDisplayableManager, vtkMRMLRulerDisplayableManager, vtkMRMLScalarBarDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLDisplayableHierarchyLogic, vtkMRMLRemoteIOLogic, vtkMRMLAnnotationBidimensionalDisplayableManager, vtkMRMLAnnotationFiducialDisplayableManager, vtkMRMLAnnotationTextDisplayableManager, vtkSlicerFiducialsLogic, vtkMRMLAnnotationAngleDisplayableManager, vtkMRMLAnnotationROIDisplayableManager, vtkMRMLAnnotationSplineDisplayableManager, vtkMRMLAnnotationStickyDisplayableManager, vtkMRMLCrosshairDisplayableManager3D, vtkMRMLScriptedDisplayableManager, vtkSlicerAnnotationModuleLogic, vtkDataIOManagerLogic, vtkSlicerModuleLogic, and vtkSlicerColorLogic.
|
static |
|
overrideprotected |
overrides the vtkObject method so that all changes to the node which would normally generate a ModifiedEvent can be grouped into an 'atomic' operation. Typical usage would be to disable modified events, call a series of Set* operations, and then re-enable modified events and call InvokePendingModifiedEvent to invoke the event (if any of the Set* calls actually changed the values of the instance variables).
|
staticprotected |
MRMLLogicCallback is a static function to relay modified events from the logics.
|
staticprotected |
MRMLNodesCallback is a static function to relay modified events from the nodes.
|
staticprotected |
MRMLSceneCallback is a static function to relay modified events from the MRML Scene In subclass, MRMLSceneCallback can also be used to relay event from observe MRML node(s)
|
static |
|
protectedvirtual |
Called after a scene is set to the logic and nodes are registered (RegisterNodes()). The scene events to observe are already set in SetMRMLSceneInternal(). By default, ObserveMRMLScene() calls UpdateFromMRMLScene(). Override for a custom behavior.
Reimplemented in vtkSlicerVolumeRenderingLogic, vtkSlicerAnnotationModuleLogic, vtkSlicerMarkupsLogic, vtkSlicerUnitsLogic, and vtkSlicerModelsLogic.
|
inlineprotectedvirtual |
Called after the corresponding MRML event is triggered.
Reimplemented in vtkMRMLSliceLogic, vtkSlicerVolumeRenderingLogic, vtkMRMLSliceLayerLogic, vtkSlicerUnitsLogic, vtkMRMLLayoutLogic, vtkSlicerSceneViewsModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLViewLinkLogic, vtkMRMLSliceLinkLogic, and vtkMRMLThreeDReformatDisplayableManager.
Definition at line 313 of file vtkMRMLAbstractLogic.h.
|
protectedvirtual |
If vtkMRMLScene::EndBatchProcessEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event Internally calls UpdateFromMRMLScene. Can be reimplemented to change the default behavior.
Reimplemented in vtkMRMLApplicationLogic, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLSliceLinkLogic, and vtkMRMLVolumeRenderingDisplayableManager.
|
inlineprotectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkSlicerAnnotationModuleLogic, vtkMRMLAnnotationDisplayableManager, vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager, vtkSlicerSceneViewsModuleLogic, vtkMRMLAnnotationFiducialDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLCameraDisplayableManager, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 274 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::EndImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLSliceLogic, vtkMRMLApplicationLogic, vtkMRMLMarkupsDisplayableManager, vtkSlicerModelsLogic, vtkSlicerSceneViewsModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLSliceLinkLogic, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 284 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::EndRestoreEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLSliceLogic, vtkMRMLApplicationLogic, vtkMRMLLayoutLogic, vtkSlicerSceneViewsModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLSliceLinkLogic, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 294 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::SceneNewEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Definition at line 299 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkSlicerSegmentationsModuleLogic, vtkMRMLSliceLogic, vtkSlicerVolumeRenderingLogic, vtkSlicerAnnotationModuleLogic, vtkSlicerMarkupsLogic, vtkMRMLAnnotationDisplayableManager, vtkSlicerCLIModuleLogic, vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager, vtkMRMLViewLogic, vtkSlicerSequencesLogic, vtkSlicerSceneViewsModuleLogic, vtkMRMLCameraDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLViewLinkLogic, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLSliceLinkLogic, vtkMRMLModelSliceDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 304 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLSliceLogic, vtkSlicerVolumeRenderingLogic, vtkSlicerMarkupsLogic, vtkMRMLAnnotationDisplayableManager, vtkMRMLModelDisplayableManager, vtkMRMLMarkupsDisplayableManager, vtkMRMLViewLogic, vtkSlicerSequencesLogic, vtkMRMLCameraDisplayableManager, vtkMRMLDisplayableHierarchyLogic, vtkMRMLSegmentationsDisplayableManager3D, vtkSlicerDataModuleLogic, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLViewLinkLogic, vtkMRMLAnnotationROIDisplayableManager, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLSliceLinkLogic, vtkMRMLModelSliceDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 309 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::StartBatchProcessEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLApplicationLogic, vtkSlicerUnitsLogic, and vtkMRMLSliceLinkLogic.
Definition at line 257 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::StartCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLSliceLogic, vtkMRMLModelDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLVolumeGlyphSliceDisplayableManager, and vtkMRMLVolumeRenderingDisplayableManager.
Definition at line 269 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::StartImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLApplicationLogic, vtkMRMLCameraDisplayableManager, and vtkMRMLSliceLinkLogic.
Definition at line 279 of file vtkMRMLAbstractLogic.h.
|
inlineprotectedvirtual |
If vtkMRMLScene::StartRestoreEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented in vtkMRMLApplicationLogic, vtkMRMLLayoutLogic, and vtkMRMLSliceLinkLogic.
Definition at line 289 of file vtkMRMLAbstractLogic.h.
|
override |
|
protectedvirtual |
Receives all the events fired by the logics. To listen to a logic, you can add an observer using GetMRMLLogicsCallbackCommand(). To be reimplemented in subclasses if needed.
Reimplemented in vtkMRMLSliceLogic.
|
protectedvirtual |
Receives all the events fired by the nodes. To listen to a node, you can add an observer using GetMRMLNodesCallbackCommand() or use the utility macros vtk[SetAndObserve|Observe]MRMLNode[Event]Macro ProcessMRMLNodesEvents calls OnMRMLNodeModified when event is vtkCommand::ModifiedEvent.
Reimplemented in vtkSlicerVolumesLogic, vtkSlicerAnnotationModuleLogic, vtkMRMLApplicationLogic, vtkMRMLSliceLayerLogic, vtkMRMLAbstractDisplayableManager, vtkMRMLModelDisplayableManager, vtkSlicerCLIModuleLogic, vtkMRMLAnnotationDisplayableManager, vtkSlicerSequencesLogic, vtkMRMLMarkupsDisplayableManager, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLCameraDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkSlicerMarkupsLogic, vtkMRMLViewDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, vtkMRMLVolumeGlyphSliceDisplayableManager, and vtkMRMLScriptedDisplayableManager.
|
protectedvirtual |
Receives all the events fired by the scene. By default, it calls OnMRMLScene*Event based on the event passed.
Reimplemented in vtkMRMLSliceLayerLogic, and vtkMRMLScriptedDisplayableManager.
|
inlineprotectedvirtual |
Register node classes into the MRML scene. Called each time a new scene is set. Do nothing by default. Can be reimplemented in derivated classes.
Reimplemented in vtkSlicerSegmentationsModuleLogic, vtkSlicerVolumeRenderingLogic, vtkSlicerMarkupsLogic, vtkSlicerUnitsLogic, vtkSlicerSequencesLogic, vtkSlicerCropVolumeLogic, vtkSlicerViewControllersLogic, vtkSlicerAnnotationModuleLogic, vtkSlicerSceneViewsModuleLogic, and vtkSlicerDataModuleLogic.
Definition at line 347 of file vtkMRMLAbstractLogic.h.
|
static |
|
protected |
Typically called by a subclass in the derived SetMRMLSceneInternal to observe specific node events.
|
protected |
|
protected |
Set InMRMLLogicsCallback flag. In InMRMLLogicsCallback, loop are avoided by checking the value of the flag.
|
protected |
Set InMRMLNodesCallback flag. In InMRMLNodesCallback, loop are avoided by checking the value of the flag.
|
protected |
Set MRMLSceneCallback flag True means ProcessMRMLEvent has already been called In MRMLSceneCallback, loop are avoided by checking the value of the flag
|
virtual |
Reimplemented in vtkSlicerCLIModuleLogic.
void vtkMRMLAbstractLogic::SetMRMLScene | ( | vtkMRMLScene * | newScene | ) |
Set and observe the MRMLScene.
|
protectedvirtual |
Called each time a new scene is set. Can be reimplemented in derivated classes. Doesn't observe the scene by default, that means that UpdateFromMRMLScene() won't be called by default when a scene is imported, closed or restored, only when a new scene is set.
Reimplemented in vtkSlicerSegmentationsModuleLogic, vtkMRMLSliceLogic, vtkSlicerVolumeRenderingLogic, vtkSlicerAnnotationModuleLogic, vtkMRMLApplicationLogic, vtkSlicerMarkupsLogic, vtkSlicerTerminologiesModuleLogic, vtkMRMLColorLogic, vtkMRMLAbstractDisplayableManager, vtkSlicerUnitsLogic, vtkMRMLSliceLayerLogic, vtkMRMLLayoutLogic, vtkSlicerCLIModuleLogic, vtkMRMLAnnotationDisplayableManager, vtkSlicerSubjectHierarchyModuleLogic, vtkMRMLViewLogic, vtkMRMLMarkupsDisplayableManager, vtkSlicerSequencesLogic, vtkSlicerModelsLogic, vtkMRMLDisplayableHierarchyLogic, vtkMRMLViewLinkLogic, vtkSlicerDataModuleLogic, vtkSlicerSceneViewsModuleLogic, vtkMRMLSliceLinkLogic, and vtkMRMLScriptedDisplayableManager.
|
protected |
Set event id currently processed or 0 if any.
|
inlineprotected |
Start modifying the logic. Disable Modify events. Returns the previous state of DisableModifiedEvent flag that should be passed to EndModify() method
Definition at line 449 of file vtkMRMLAbstractLogic.h.
|
protectedvirtual |
Called anytime a scene is not set to the logic anymore (e.g. a new or no scene is set) Reimplement the method to delete all the scene specific information such as a node IDs, pointers...
Reimplemented in vtkMRMLLayoutLogic, vtkMRMLModelDisplayableManager, vtkMRMLSegmentationsDisplayableManager3D, vtkMRMLLinearTransformsDisplayableManager3D, vtkMRMLSegmentationsDisplayableManager2D, vtkMRMLModelSliceDisplayableManager, vtkMRMLVolumeRenderingDisplayableManager, vtkMRMLThreeDReformatDisplayableManager, vtkMRMLTransformsDisplayableManager2D, vtkMRMLTransformsDisplayableManager3D, and vtkMRMLVolumeGlyphSliceDisplayableManager.
|
protectedvirtual |
Called every time the scene has been significantly changed. If the scene BatchProcessState events are observed (in SetMRMLSceneInternal() ), UpdateFromMRMLScene is called after each batch process (Close, Import, Restore...). It is also being called by default when a new scene is set (SetMRMLScene).
Reimplemented in vtkMRMLSliceLogic, vtkSlicerMarkupsLogic, vtkMRMLLayoutLogic, vtkMRMLAnnotationDisplayableManager, vtkMRMLModelDisplayableManager, vtkMRMLViewLogic, vtkSlicerSubjectHierarchyModuleLogic, vtkMRMLMarkupsDisplayableManager, vtkSlicerSequencesLogic, vtkSlicerDataModuleLogic, vtkMRMLThreeDReformatDisplayableManager, and vtkMRMLVolumeGlyphSliceDisplayableManager.