Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkMRMLSliceLayerLogic Class Reference

#include <Libs/MRML/Logic/vtkMRMLSliceLayerLogic.h>

Inheritance diagram for vtkMRMLSliceLayerLogic:
Collaboration diagram for vtkMRMLSliceLayerLogic:

Public Types

typedef vtkMRMLAbstractLogic Superclass
 
- Public Types inherited from vtkMRMLAbstractLogic
typedef vtkObject Superclass
 
typedef void(vtkMRMLAbstractLogic::* TaskFunctionPointer) (void *clientdata)
 

Public Member Functions

virtual const char * GetClassName ()
 
vtkImageData * GetImageData ()
 Get the output of the pipeline for this layer.
 
vtkAlgorithmOutput * GetImageDataConnection ()
 
vtkAlgorithmOutput * GetImageDataConnectionUVW ()
 
vtkImageData * GetImageDataUVW ()
 Get the output of the texture UVW pipeline for this layer.
 
virtual int GetInterpolationMode ()
 
virtual int GetIsLabelLayer ()
 
virtual vtkImageLabelOutlineGetLabelOutline ()
 The filter that turns the label map into an outline.
 
virtual vtkImageReslice * GetReslice ()
 The image reslice or slice being used.
 
virtual vtkImageReslice * GetResliceUVW ()
 
virtual vtkMRMLSliceNodeGetSliceNode ()
 The slice node that defines the view.
 
virtual vtkMRMLVolumeDisplayNodeGetVolumeDisplayNode ()
 
virtual vtkMRMLVolumeDisplayNodeGetVolumeDisplayNodeUVW ()
 
virtual vtkMRMLVolumeNodeGetVolumeNode ()
 The volume node to operate on.
 
virtual vtkGeneralTransform * GetXYToIJKTransform ()
 The current reslice transform XYToIJK.
 
virtual int IsA (const char *type)
 
virtual void IsLabelLayerOff ()
 
virtual void IsLabelLayerOn ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetInterpolationMode (int)
 
virtual void SetIsLabelLayer (int)
 
void SetSliceNode (vtkMRMLSliceNode *SliceNode)
 
void SetVolumeNode (vtkMRMLVolumeNode *VolumeNode)
 
void UpdateGlyphs ()
 
void UpdateImageDisplay ()
 
void UpdateNodeReferences ()
 
void UpdateTransforms ()
 
- Public Member Functions inherited from vtkMRMLAbstractLogic
virtual vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state.
 
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene.
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic)
 
void SetMRMLScene (vtkMRMLScene *newScene)
 Set and observe the MRMLScene.
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkMRMLSliceLayerLogicNew ()
 The Usual vtk class functions.
 
static vtkMRMLSliceLayerLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

vtkAlgorithmOutput * GetSliceImageDataConnection ()
 
vtkAlgorithmOutput * GetSliceImageDataConnectionUVW ()
 
void OnMRMLNodeModified (vtkMRMLNode *node) override
 
void operator= (const vtkMRMLSliceLayerLogic &)
 
void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) override
 
void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData) override
 
void SetMRMLSceneInternal (vtkMRMLScene *newScene) override
 
void UpdateLogic ()
 
void UpdateVolumeDisplayNode ()
 
 vtkMRMLSliceLayerLogic ()
 
 vtkMRMLSliceLayerLogic (const vtkMRMLSliceLayerLogic &)
 
 ~vtkMRMLSliceLayerLogic () override
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any.
 
int InvokePendingModifiedEvent ()
 
void Modified () override
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=nullptr)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
 ~vtkMRMLAbstractLogic () override
 

Protected Attributes

vtkAssignAttribute * AssignAttributeScalarsToTensors
 
vtkAssignAttribute * AssignAttributeScalarsToTensorsUVW
 
vtkAssignAttribute * AssignAttributeTensorsToScalars
 
int InterpolationMode
 
int IsLabelLayer
 
vtkImageLabelOutlineLabelOutline
 
vtkImageLabelOutlineLabelOutlineUVW
 
vtkImageReslice * Reslice
 the VTK class instances that implement this Logic's operations
 
vtkImageReslice * ResliceUVW
 
vtkMRMLSliceNodeSliceNode
 
int UpdatingTransforms
 
vtkGeneralTransform * UVWToIJKTransform
 
vtkMRMLVolumeDisplayNodeVolumeDisplayNode
 
vtkMRMLVolumeDisplayNodeVolumeDisplayNodeObserved
 
vtkMRMLVolumeDisplayNodeVolumeDisplayNodeUVW
 
vtkMRMLVolumeNodeVolumeNode
 the MRML Nodes that define this Logic's parameters
 
vtkGeneralTransform * XYToIJKTransform
 TODO: make this a vtkAbstractTransform for non-linear.
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLAbstractLogic
static void MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLLogicCallback is a static function to relay modified events from the logics.
 
static void MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLNodesCallback is a static function to relay modified events from the nodes.
 
static void MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 

Detailed Description

Definition at line 60 of file vtkMRMLSliceLayerLogic.h.

Member Typedef Documentation

◆ Superclass

Constructor & Destructor Documentation

◆ vtkMRMLSliceLayerLogic() [1/2]

vtkMRMLSliceLayerLogic::vtkMRMLSliceLayerLogic ( )
protected

◆ ~vtkMRMLSliceLayerLogic()

vtkMRMLSliceLayerLogic::~vtkMRMLSliceLayerLogic ( )
overrideprotected

◆ vtkMRMLSliceLayerLogic() [2/2]

vtkMRMLSliceLayerLogic::vtkMRMLSliceLayerLogic ( const vtkMRMLSliceLayerLogic & )
protected

Member Function Documentation

◆ GetClassName()

virtual const char * vtkMRMLSliceLayerLogic::GetClassName ( )
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ GetImageData()

vtkImageData * vtkMRMLSliceLayerLogic::GetImageData ( )

Get the output of the pipeline for this layer.

◆ GetImageDataConnection()

vtkAlgorithmOutput * vtkMRMLSliceLayerLogic::GetImageDataConnection ( )

◆ GetImageDataConnectionUVW()

vtkAlgorithmOutput * vtkMRMLSliceLayerLogic::GetImageDataConnectionUVW ( )

◆ GetImageDataUVW()

vtkImageData * vtkMRMLSliceLayerLogic::GetImageDataUVW ( )

Get the output of the texture UVW pipeline for this layer.

◆ GetInterpolationMode()

virtual int vtkMRMLSliceLayerLogic::GetInterpolationMode ( )
virtual

Get/set interpolation mode used in image reslice (when interpolation is enabled). By default it uses VTK_RESLICE_LINEAR and can be set to VTK_RESLICE_CUBIC for higher quality interpolation.

◆ GetIsLabelLayer()

virtual int vtkMRMLSliceLayerLogic::GetIsLabelLayer ( )
virtual

Select if this is a label layer or not (it currently determines if we use the label outline filter)

◆ GetLabelOutline()

virtual vtkImageLabelOutline * vtkMRMLSliceLayerLogic::GetLabelOutline ( )
virtual

The filter that turns the label map into an outline.

◆ GetReslice()

virtual vtkImageReslice * vtkMRMLSliceLayerLogic::GetReslice ( )
virtual

The image reslice or slice being used.

◆ GetResliceUVW()

virtual vtkImageReslice * vtkMRMLSliceLayerLogic::GetResliceUVW ( )
virtual

◆ GetSliceImageDataConnection()

vtkAlgorithmOutput * vtkMRMLSliceLayerLogic::GetSliceImageDataConnection ( )
protected

◆ GetSliceImageDataConnectionUVW()

vtkAlgorithmOutput * vtkMRMLSliceLayerLogic::GetSliceImageDataConnectionUVW ( )
protected

◆ GetSliceNode()

virtual vtkMRMLSliceNode * vtkMRMLSliceLayerLogic::GetSliceNode ( )
virtual

The slice node that defines the view.

◆ GetVolumeDisplayNode()

virtual vtkMRMLVolumeDisplayNode * vtkMRMLSliceLayerLogic::GetVolumeDisplayNode ( )
virtual

The volume display node has the render properties of the volume

  • this node is set implicitly when the volume is set and it is observed by this logic

◆ GetVolumeDisplayNodeUVW()

virtual vtkMRMLVolumeDisplayNode * vtkMRMLSliceLayerLogic::GetVolumeDisplayNodeUVW ( )
virtual

◆ GetVolumeNode()

virtual vtkMRMLVolumeNode * vtkMRMLSliceLayerLogic::GetVolumeNode ( )
virtual

The volume node to operate on.

◆ GetXYToIJKTransform()

virtual vtkGeneralTransform * vtkMRMLSliceLayerLogic::GetXYToIJKTransform ( )
virtual

The current reslice transform XYToIJK.

◆ IsA()

virtual int vtkMRMLSliceLayerLogic::IsA ( const char * type)
virtual

Reimplemented from vtkMRMLAbstractLogic.

◆ IsLabelLayerOff()

virtual void vtkMRMLSliceLayerLogic::IsLabelLayerOff ( )
virtual

◆ IsLabelLayerOn()

virtual void vtkMRMLSliceLayerLogic::IsLabelLayerOn ( )
virtual

◆ IsTypeOf()

static int vtkMRMLSliceLayerLogic::IsTypeOf ( const char * type)
static

◆ New()

static vtkMRMLSliceLayerLogic * vtkMRMLSliceLayerLogic::New ( )
static

The Usual vtk class functions.

◆ OnMRMLNodeModified()

void vtkMRMLSliceLayerLogic::OnMRMLNodeModified ( vtkMRMLNode * )
overrideprotectedvirtual

Called after the corresponding MRML event is triggered.

See also
ProcessMRMLNodesEvents

Reimplemented from vtkMRMLAbstractLogic.

◆ operator=()

void vtkMRMLSliceLayerLogic::operator= ( const vtkMRMLSliceLayerLogic & )
protected

◆ PrintSelf()

void vtkMRMLSliceLayerLogic::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ ProcessMRMLNodesEvents()

void vtkMRMLSliceLayerLogic::ProcessMRMLNodesEvents ( vtkObject * caller,
unsigned long event,
void * callData )
overrideprotectedvirtual

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.

See also
ProcessMRMLSceneEvents, ProcessMRMLLogicsEvents, OnMRMLNodeModified(), vtkSetAndObserveMRMLNodeMacro, vtkObserveMRMLNodeMacro, vtkSetAndObserveMRMLNodeEventMacro

Reimplemented from vtkMRMLAbstractLogic.

◆ ProcessMRMLSceneEvents()

void vtkMRMLSliceLayerLogic::ProcessMRMLSceneEvents ( vtkObject * caller,
unsigned long event,
void * callData )
overrideprotectedvirtual

provide the virtual method that updates this Logic based on mrml changes

Reimplemented from vtkMRMLAbstractLogic.

◆ SafeDownCast()

static vtkMRMLSliceLayerLogic * vtkMRMLSliceLayerLogic::SafeDownCast ( vtkObject * o)
static

◆ SetInterpolationMode()

virtual void vtkMRMLSliceLayerLogic::SetInterpolationMode ( int )
virtual

◆ SetIsLabelLayer()

virtual void vtkMRMLSliceLayerLogic::SetIsLabelLayer ( int )
virtual

◆ SetMRMLSceneInternal()

void vtkMRMLSliceLayerLogic::SetMRMLSceneInternal ( vtkMRMLScene * newScene)
overrideprotectedvirtual

Called each time a new scene is set. Can be reimplemented in derived 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.

See also
SetAndObserveMRMLSceneInternal() SetAndObserveMRMLSceneEventsInternal()
UpdateFromMRMLScene()

Reimplemented from vtkMRMLAbstractLogic.

◆ SetSliceNode()

void vtkMRMLSliceLayerLogic::SetSliceNode ( vtkMRMLSliceNode * SliceNode)

◆ SetVolumeNode()

void vtkMRMLSliceLayerLogic::SetVolumeNode ( vtkMRMLVolumeNode * VolumeNode)

◆ UpdateGlyphs()

void vtkMRMLSliceLayerLogic::UpdateGlyphs ( )

◆ UpdateImageDisplay()

void vtkMRMLSliceLayerLogic::UpdateImageDisplay ( )

◆ UpdateLogic()

void vtkMRMLSliceLayerLogic::UpdateLogic ( )
protected

◆ UpdateNodeReferences()

void vtkMRMLSliceLayerLogic::UpdateNodeReferences ( )

Check that we are observing the correct display node (correct means the same one that the volume node is referencing)

◆ UpdateTransforms()

void vtkMRMLSliceLayerLogic::UpdateTransforms ( )

set the Reslice transforms to reflect the current state of the VolumeNode and the SliceNode

◆ UpdateVolumeDisplayNode()

void vtkMRMLSliceLayerLogic::UpdateVolumeDisplayNode ( )
protected

Member Data Documentation

◆ AssignAttributeScalarsToTensors

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeScalarsToTensors
protected

Definition at line 180 of file vtkMRMLSliceLayerLogic.h.

◆ AssignAttributeScalarsToTensorsUVW

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeScalarsToTensorsUVW
protected

Definition at line 181 of file vtkMRMLSliceLayerLogic.h.

◆ AssignAttributeTensorsToScalars

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeTensorsToScalars
protected

Definition at line 179 of file vtkMRMLSliceLayerLogic.h.

◆ InterpolationMode

int vtkMRMLSliceLayerLogic::InterpolationMode
protected

Definition at line 191 of file vtkMRMLSliceLayerLogic.h.

◆ IsLabelLayer

int vtkMRMLSliceLayerLogic::IsLabelLayer
protected

Definition at line 187 of file vtkMRMLSliceLayerLogic.h.

◆ LabelOutline

vtkImageLabelOutline* vtkMRMLSliceLayerLogic::LabelOutline
protected

Definition at line 176 of file vtkMRMLSliceLayerLogic.h.

◆ LabelOutlineUVW

vtkImageLabelOutline* vtkMRMLSliceLayerLogic::LabelOutlineUVW
protected

Definition at line 177 of file vtkMRMLSliceLayerLogic.h.

◆ Reslice

vtkImageReslice* vtkMRMLSliceLayerLogic::Reslice
protected

the VTK class instances that implement this Logic's operations

Definition at line 174 of file vtkMRMLSliceLayerLogic.h.

◆ ResliceUVW

vtkImageReslice* vtkMRMLSliceLayerLogic::ResliceUVW
protected

Definition at line 175 of file vtkMRMLSliceLayerLogic.h.

◆ SliceNode

vtkMRMLSliceNode* vtkMRMLSliceLayerLogic::SliceNode
protected

Definition at line 170 of file vtkMRMLSliceLayerLogic.h.

◆ UpdatingTransforms

int vtkMRMLSliceLayerLogic::UpdatingTransforms
protected

Definition at line 189 of file vtkMRMLSliceLayerLogic.h.

◆ UVWToIJKTransform

vtkGeneralTransform* vtkMRMLSliceLayerLogic::UVWToIJKTransform
protected

Definition at line 185 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNode

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNode
protected

Definition at line 167 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNodeObserved

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNodeObserved
protected

Definition at line 169 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNodeUVW

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNodeUVW
protected

Definition at line 168 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeNode

vtkMRMLVolumeNode* vtkMRMLSliceLayerLogic::VolumeNode
protected

the MRML Nodes that define this Logic's parameters

Definition at line 166 of file vtkMRMLSliceLayerLogic.h.

◆ XYToIJKTransform

vtkGeneralTransform* vtkMRMLSliceLayerLogic::XYToIJKTransform
protected

TODO: make this a vtkAbstractTransform for non-linear.

Definition at line 184 of file vtkMRMLSliceLayerLogic.h.


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