Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLScalarVolumeNode.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: vtkMRMLVolumeNode.h,v $
10 Date: $Date: 2006/03/19 17:12:29 $
11 Version: $Revision: 1.13 $
12
13=========================================================================auto=*/
14
15#ifndef __vtkMRMLScalarVolumeNode_h
16#define __vtkMRMLScalarVolumeNode_h
17
18// MRML includes
19#include "vtkMRMLVolumeNode.h"
21class vtkCodedEntry;
22
34class VTK_MRML_EXPORT vtkMRMLScalarVolumeNode : public vtkMRMLVolumeNode
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 void ReadXMLAttributes(const char** atts) override;
46
49 void WriteXML(ostream& of, int indent) override;
50
54
57 const char* GetNodeTagName() override { return "Volume"; }
58
61 static void CreateNoneNode(vtkMRMLScene* scene);
62
66
70
74
78 vtkGetObjectMacro(VoxelValueQuantity, vtkCodedEntry);
79
85 vtkGetObjectMacro(VoxelValueUnits, vtkCodedEntry);
86
87protected:
92
94
96};
97
98#endif
Simple class for storing standard coded entries (coding scheme, value, meaning triplets)
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a volume display attributes.
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void CreateDefaultDisplayNodes() override
Create and observe default display node.
static vtkMRMLScalarVolumeNode * New()
void PrintSelf(ostream &os, vtkIndent indent) override
void SetVoxelValueQuantity(vtkCodedEntry *)
void SetVoxelValueUnits(vtkCodedEntry *)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
vtkMRMLScalarVolumeNode(const vtkMRMLScalarVolumeNode &)
virtual vtkMRMLScalarVolumeDisplayNode * GetScalarVolumeDisplayNode()
Associated display MRML node.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void ReadXMLAttributes(const char **atts) override
Set node attributes.
vtkMRMLCopyContentDefaultMacro(vtkMRMLScalarVolumeNode)
~vtkMRMLScalarVolumeNode() override
void operator=(const vtkMRMLScalarVolumeNode &)
static void CreateNoneNode(vtkMRMLScene *scene)
Make a 'None' volume node with blank image data.
vtkMRMLStorageNode * CreateDefaultStorageNode() override
Create default storage node or nullptr if does not have one.
A set of MRML Nodes that supports serialization and undo/redo.
A superclass for other storage nodes.