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
vtkMRMLVolumeDisplayNode.h
Go to the documentation of this file.
1/*=auto=========================================================================
2
3 Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4
5 See COPYRIGHT.txt
6 or http://www.slicer.org/copyright/copyright.txt for details.
7
8 Program: 3D Slicer
9 Module: $RCSfile: vtkMRMLVolumeDisplayNode.h,v $
10 Date: $Date: 2006/03/19 17:12:29 $
11 Version: $Revision: 1.3 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLVolumeDisplayNode_h
16#define __vtkMRMLVolumeDisplayNode_h
17
18// MRML includes
19#include "vtkMRMLDisplayNode.h"
20class vtkMRMLScene;
22
23// VTK includes
24class vtkAlgorithmOutput;
25class vtkImageData;
26class vtkImageStencilData;
27
31class VTK_MRML_EXPORT vtkMRMLVolumeDisplayNode : public vtkMRMLDisplayNode
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
39 void ReadXMLAttributes( const char** atts) override;
40
43 void WriteXML(ostream& of, int indent) override;
44
48
51 const char* GetNodeTagName() override = 0;
52
56 void UpdateReferences() override;
57
60 void UpdateScene(vtkMRMLScene *scene) override;
61
67 virtual void SetBackgroundImageStencilDataConnection(vtkAlgorithmOutput * imageDataConnection);
68 virtual vtkAlgorithmOutput* GetBackgroundImageStencilDataConnection();
69 virtual vtkImageStencilData* GetBackgroundImageStencilData();
70
77 virtual vtkAlgorithmOutput* GetImageDataConnection();
78
83
88 virtual void SetInputImageDataConnection(vtkAlgorithmOutput *imageDataConnection);
89 virtual vtkAlgorithmOutput* GetInputImageDataConnection();
90
92 virtual vtkImageData* GetInputImageData();
93
95 virtual vtkImageData* GetOutputImageData();
96 virtual vtkAlgorithmOutput* GetOutputImageDataConnection();
97
101
104 void ProcessMRMLEvents ( vtkObject * /*caller*/,
105 unsigned long /*event*/,
106 void * /*callData*/ ) override;
109 virtual void SetDefaultColorMap();
110
114
115protected:
120
121 virtual void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection);
122};
123
124#endif
friend class vtkMRMLScene
A set of MRML Nodes that supports serialization and undo/redo.
virtual void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
virtual vtkAlgorithmOutput * GetInputImageDataConnection()
virtual vtkImageData * GetInputImageData()
Gets the pipeline input. To be reimplemented in subclasses.
~vtkMRMLVolumeDisplayNode() override
void PrintSelf(ostream &os, vtkIndent indent) override
virtual vtkImageStencilData * GetBackgroundImageStencilData()
virtual vtkAlgorithmOutput * GetBackgroundImageStencilDataConnection()
vtkMRMLVolumeDisplayNode(const vtkMRMLVolumeDisplayNode &)
void operator=(const vtkMRMLVolumeDisplayNode &)
virtual void SetBackgroundImageStencilDataConnection(vtkAlgorithmOutput *imageDataConnection)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file.
vtkMRMLCopyContentMacro(vtkMRMLVolumeDisplayNode)
virtual vtkAlgorithmOutput * GetOutputImageDataConnection()
void UpdateReferences() override
virtual vtkAlgorithmOutput * GetImageDataConnection()
virtual void SetInputImageDataConnection(vtkAlgorithmOutput *imageDataConnection)
virtual vtkImageData * GetOutputImageData()
Gets the pipeline output. To be reimplemented in subclasses.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
vtkMRMLVolumeNode * GetVolumeNode()
const char * GetNodeTagName() override=0
Get node XML tag name (like Volume, Model)
virtual void UpdateImageDataPipeline()
Update the pipeline based on this node attributes.
virtual void SetDefaultColorMap()
set gray colormap or override in subclass
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
MRML node for representing a volume (image stack).