Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkMRMLSliceLayerLogic Class Reference

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

Inheritance diagram for vtkMRMLSliceLayerLogic:
Inheritance graph
Collaboration diagram for vtkMRMLSliceLayerLogic:
Collaboration graph

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. More...
vtkAlgorithmOutput * GetImageDataConnection ()
vtkAlgorithmOutput * GetImageDataConnectionUVW ()
vtkImageData * GetImageDataUVW ()
 Get the output of the texture UVW pipeline for this layer. More...
virtual int GetIsLabelLayer ()
virtual vtkImageLabelOutlineGetLabelOutline ()
 The filter that turns the label map into an outline. More...
virtual vtkImageReslice * GetReslice ()
 The image reslice or slice being used. More...
virtual vtkImageReslice * GetResliceUVW ()
virtual vtkMRMLSliceNodeGetSliceNode ()
 The slice node that defines the view. More...
virtual vtkMRMLVolumeDisplayNodeGetVolumeDisplayNode ()
virtual vtkMRMLVolumeDisplayNodeGetVolumeDisplayNodeUVW ()
virtual vtkMRMLVolumeNodeGetVolumeNode ()
 The volume node to operate on. More...
virtual vtkGeneralTransform * GetXYToIJKTransform ()
 The current reslice transform XYToIJK. More...
virtual int IsA (const char *type)
virtual void IsLabelLayerOff ()
virtual void IsLabelLayerOn ()
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
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. More...
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene. More...
void PrintSelf (ostream &os, vtkIndent indent) VTK_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 vtkMRMLSliceLayerLogicNew ()
 The Usual vtk class functions. More...
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 ()
virtual void OnMRMLNodeModified (vtkMRMLNode *node) VTK_OVERRIDE
void operator= (const vtkMRMLSliceLayerLogic &)
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
void UpdateLogic ()
void UpdateVolumeDisplayNode ()
 vtkMRMLSliceLayerLogic ()
 vtkMRMLSliceLayerLogic (const vtkMRMLSliceLayerLogic &)
virtual ~vtkMRMLSliceLayerLogic ()
- 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. More...
int InvokePendingModifiedEvent ()
virtual void Modified () VTK_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=0)
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 ()
virtual ~vtkMRMLAbstractLogic ()

Protected Attributes

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

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. 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)

Detailed Description

Definition at line 60 of file vtkMRMLSliceLayerLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 67 of file vtkMRMLSliceLayerLogic.h.

Constructor & Destructor Documentation

◆ vtkMRMLSliceLayerLogic() [1/2]

vtkMRMLSliceLayerLogic::vtkMRMLSliceLayerLogic ( )

◆ ~vtkMRMLSliceLayerLogic()

virtual vtkMRMLSliceLayerLogic::~vtkMRMLSliceLayerLogic ( )

◆ vtkMRMLSliceLayerLogic() [2/2]

vtkMRMLSliceLayerLogic::vtkMRMLSliceLayerLogic ( const vtkMRMLSliceLayerLogic )

Member Function Documentation

◆ GetClassName()

virtual const char* vtkMRMLSliceLayerLogic::GetClassName ( )

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.

◆ GetIsLabelLayer()

virtual int vtkMRMLSliceLayerLogic::GetIsLabelLayer ( )

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

◆ GetLabelOutline()

virtual vtkImageLabelOutline* vtkMRMLSliceLayerLogic::GetLabelOutline ( )

The filter that turns the label map into an outline.

◆ GetReslice()

virtual vtkImageReslice* vtkMRMLSliceLayerLogic::GetReslice ( )

The image reslice or slice being used.

◆ GetResliceUVW()

virtual vtkImageReslice* vtkMRMLSliceLayerLogic::GetResliceUVW ( )

◆ GetSliceImageDataConnection()

vtkAlgorithmOutput* vtkMRMLSliceLayerLogic::GetSliceImageDataConnection ( )

◆ GetSliceImageDataConnectionUVW()

vtkAlgorithmOutput* vtkMRMLSliceLayerLogic::GetSliceImageDataConnectionUVW ( )

◆ GetSliceNode()

virtual vtkMRMLSliceNode* vtkMRMLSliceLayerLogic::GetSliceNode ( )

The slice node that defines the view.

◆ GetVolumeDisplayNode()

virtual vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::GetVolumeDisplayNode ( )

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 ( )

◆ GetVolumeNode()

virtual vtkMRMLVolumeNode* vtkMRMLSliceLayerLogic::GetVolumeNode ( )

The volume node to operate on.

◆ GetXYToIJKTransform()

virtual vtkGeneralTransform* vtkMRMLSliceLayerLogic::GetXYToIJKTransform ( )

The current reslice transform XYToIJK.

◆ IsA()

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

Reimplemented from vtkMRMLAbstractLogic.

◆ IsLabelLayerOff()

virtual void vtkMRMLSliceLayerLogic::IsLabelLayerOff ( )

◆ IsLabelLayerOn()

virtual void vtkMRMLSliceLayerLogic::IsLabelLayerOn ( )

◆ IsTypeOf()

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

◆ New()

static vtkMRMLSliceLayerLogic* vtkMRMLSliceLayerLogic::New ( )

The Usual vtk class functions.

◆ OnMRMLNodeModified()

virtual void vtkMRMLSliceLayerLogic::OnMRMLNodeModified ( vtkMRMLNode )

Called after the corresponding MRML event is triggered.

See also

Reimplemented from vtkMRMLAbstractLogic.

◆ operator=()

void vtkMRMLSliceLayerLogic::operator= ( const vtkMRMLSliceLayerLogic )

◆ PrintSelf()

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

◆ ProcessMRMLNodesEvents()

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

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()

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

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

Reimplemented from vtkMRMLAbstractLogic.

◆ SafeDownCast()

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

◆ SetIsLabelLayer()

virtual void vtkMRMLSliceLayerLogic::SetIsLabelLayer ( int  )

◆ SetMRMLSceneInternal()

virtual void vtkMRMLSliceLayerLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)

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.

See also
SetAndObserveMRMLSceneInternal() SetAndObserveMRMLSceneEventsInternal()

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 ( )

◆ 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 ( )

Member Data Documentation

◆ AssignAttributeScalarsToTensors

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeScalarsToTensors

Definition at line 175 of file vtkMRMLSliceLayerLogic.h.

◆ AssignAttributeScalarsToTensorsUVW

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeScalarsToTensorsUVW

Definition at line 176 of file vtkMRMLSliceLayerLogic.h.

◆ AssignAttributeTensorsToScalars

vtkAssignAttribute* vtkMRMLSliceLayerLogic::AssignAttributeTensorsToScalars

Definition at line 174 of file vtkMRMLSliceLayerLogic.h.

◆ IsLabelLayer

int vtkMRMLSliceLayerLogic::IsLabelLayer

Definition at line 182 of file vtkMRMLSliceLayerLogic.h.

◆ LabelOutline

vtkImageLabelOutline* vtkMRMLSliceLayerLogic::LabelOutline

Definition at line 171 of file vtkMRMLSliceLayerLogic.h.

◆ LabelOutlineUVW

vtkImageLabelOutline* vtkMRMLSliceLayerLogic::LabelOutlineUVW

Definition at line 172 of file vtkMRMLSliceLayerLogic.h.

◆ Reslice

vtkImageReslice* vtkMRMLSliceLayerLogic::Reslice

the VTK class instances that implement this Logic's operations

Definition at line 169 of file vtkMRMLSliceLayerLogic.h.

◆ ResliceUVW

vtkImageReslice* vtkMRMLSliceLayerLogic::ResliceUVW

Definition at line 170 of file vtkMRMLSliceLayerLogic.h.

◆ SliceNode

vtkMRMLSliceNode* vtkMRMLSliceLayerLogic::SliceNode

Definition at line 165 of file vtkMRMLSliceLayerLogic.h.

◆ UpdatingTransforms

int vtkMRMLSliceLayerLogic::UpdatingTransforms

Definition at line 184 of file vtkMRMLSliceLayerLogic.h.

◆ UVWToIJKTransform

vtkGeneralTransform* vtkMRMLSliceLayerLogic::UVWToIJKTransform

Definition at line 180 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNode

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNode

Definition at line 162 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNodeObserved

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNodeObserved

Definition at line 164 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeDisplayNodeUVW

vtkMRMLVolumeDisplayNode* vtkMRMLSliceLayerLogic::VolumeDisplayNodeUVW

Definition at line 163 of file vtkMRMLSliceLayerLogic.h.

◆ VolumeNode

vtkMRMLVolumeNode* vtkMRMLSliceLayerLogic::VolumeNode

the MRML Nodes that define this Logic's parameters

Definition at line 161 of file vtkMRMLSliceLayerLogic.h.

◆ XYToIJKTransform

vtkGeneralTransform* vtkMRMLSliceLayerLogic::XYToIJKTransform

TODO: make this a vtkAbstractTransform for non-linear.

Definition at line 179 of file vtkMRMLSliceLayerLogic.h.

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