Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLTensorVolumeNode.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 __vtkMRMLTensorVolumeNode_h
16#define __vtkMRMLTensorVolumeNode_h
17
20
21class vtkDoubleArray;
22class vtkImageData;
23class vtkMatrix4x4;
24
35{
36 public:
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 "TensorVolume";}
58
62 void UpdateReferences() override
63 { Superclass::UpdateReferences(); }
64
67 void UpdateReferenceID(const char *oldID, const char *newID) override
68 { Superclass::UpdateReferenceID(oldID, newID); }
69
71 vtkGetMacro(Order,int);
72 vtkSetMacro(Order,int);
73
76 void SetMeasurementFrameMatrix(const double mf[3][3]);
79 void SetMeasurementFrameMatrix(const double xr, const double xa, const double xs,
80 const double yr, const double ya, const double ys,
81 const double zr, const double za, const double zs);
82
83 void GetMeasurementFrameMatrix(double mf[3][3]);
84
87 void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat);
88 void GetMeasurementFrameMatrix(vtkMatrix4x4 *mat);
89
93
94protected:
99
100 double MeasurementFrameMatrix[3][3];
101 int Order;
102};
103
104#endif
Abstract Superclass for all specific types of MRML nodes.
MRML node for representing a volume (image stack).
A superclass for other storage nodes.
MRML node for representing diffusion weighted MRI volume.
void PrintSelf(ostream &os, vtkIndent indent) override
void GetMeasurementFrameMatrix(double mf[3][3])
void operator=(const vtkMRMLTensorVolumeNode &)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void SetMeasurementFrameMatrix(const double mf[3][3])
Set the Measurement frame matrix from 3x3 array.
void GetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
~vtkMRMLTensorVolumeNode() override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void SetMeasurementFrameMatrix(const double xr, const double xa, const double xs, const double yr, const double ya, const double ys, const double zr, const double za, const double zs)
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void SetMeasurementFrameMatrix(vtkMatrix4x4 *mat)
Set/Get the measurement frame matrix from a vtk 4x4 matrix.
static vtkMRMLTensorVolumeNode * New()
void UpdateReferenceID(const char *oldID, const char *newID) override
vtkMRMLStorageNode * CreateDefaultStorageNode() override
Create default storage node or nullptr if does not have one.
vtkMRMLTensorVolumeNode(const vtkMRMLTensorVolumeNode &)
vtkMRMLCopyContentMacro(vtkMRMLTensorVolumeNode)
void ReadXMLAttributes(const char **atts) override
Set node attributes.