Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
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"
20 class vtkMRMLScene;
21 class vtkMRMLVolumeNode;
22 
23 // VTK includes
24 class vtkAlgorithmOutput;
25 class vtkImageData;
26 class vtkImageStencilData;
27 
31 class VTK_MRML_EXPORT vtkMRMLVolumeDisplayNode : public vtkMRMLDisplayNode
32 {
33 public:
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 
100  virtual void UpdateImageDataPipeline();
101 
104  void ProcessMRMLEvents ( vtkObject * /*caller*/,
105  unsigned long /*event*/,
106  void * /*callData*/ ) override;
109  virtual void SetDefaultColorMap();
110 
113  vtkMRMLVolumeNode* GetVolumeNode();
114 
115 protected:
117  ~vtkMRMLVolumeDisplayNode() override;
119  void operator=(const vtkMRMLVolumeDisplayNode&);
120 
121  virtual void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection);
122 };
123 
124 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
MRML node for representing a volume display attributes.
void ReadXMLAttributes(const char **atts) override
void UpdateReferences() override
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
vtkMRMLCopyContentMacro(vtkMRMLDisplayNode)
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
void WriteXML(ostream &of, int indent) override
void operator=(const vtkMRMLDisplayNode &)
MRML node for representing a volume (image stack).
void ProcessMRMLEvents(vtkObject *caller, unsigned long event, void *callData) override
Abstract class that contains graphical display properties for displayable nodes.
virtual const char * GetNodeTagName()=0