Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLDiffusionTensorVolumeSliceDisplayNode.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: vtkMRMLFiberBundleGlyphDisplayNode.h,v $
10 Date: $Date: 2006/03/19 17:12:28 $
11 Version: $Revision: 1.6 $
12
13 =========================================================================auto=*/
14
15#ifndef __vtkMRMLDiffusionTensorVolumeSliceDisplayNode_h
16#define __vtkMRMLDiffusionTensorVolumeSliceDisplayNode_h
17
20
22class vtkMatrix4x4;
23class vtkPolyData;
24
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
38 //--------------------------------------------------------------------------
40 //--------------------------------------------------------------------------
41
43
46 void ReadXMLAttributes(const char** atts) override;
47
50 void WriteXML(ostream& of, int indent) override;
51
54 void Copy(vtkMRMLNode* node) override;
55
58 const char* GetNodeTagName() override { return "DiffusionTensorVolumeSliceDisplayNode"; }
59
63 void UpdateReferences() override;
64
67 void UpdateScene(vtkMRMLScene* scene) override;
68
71 void UpdateReferenceID(const char* oldID, const char* newID) override;
72
75 void ProcessMRMLEvents(vtkObject* /*caller*/, unsigned long /*event*/, void* /*callData*/) override;
76
79 vtkAlgorithmOutput* GetOutputMeshConnection() override;
80
83 void UpdateAssignedAttribute() override;
84
87 void SetSliceImagePort(vtkAlgorithmOutput* imagePort) override;
88
91 void SetSlicePositionMatrix(vtkMatrix4x4* matrix) override;
92
95 void SetSliceGlyphRotationMatrix(vtkMatrix4x4* matrix) override;
96
97 //--------------------------------------------------------------------------
99 //--------------------------------------------------------------------------
100
101 //--------------------------------------------------------------------------
105 //--------------------------------------------------------------------------
106
107 enum
108 {
113 };
114
115 //--------------------------------------------------------------------------
117 //--------------------------------------------------------------------------
118
122
126
131
140
141 //--------------------------------------------------------------------------
143 //--------------------------------------------------------------------------
144
145 //--------------------------------------------------------------------------
147 //--------------------------------------------------------------------------
148
150
154
158
162
166
169 static int GetNthScalarInvariant(int i);
170
171protected:
176
178
182
184
185 static std::vector<int> GetSupportedColorModes();
186};
187
188#endif
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors.
void SetDiffusionTensorDisplayPropertiesNodeID(const char *id)
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML (MRML) file.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void operator=(const vtkMRMLDiffusionTensorVolumeSliceDisplayNode &)
vtkAlgorithmOutput * GetOutputMeshConnection() override
void PrintSelf(ostream &os, vtkIndent indent) override
void SetSliceImagePort(vtkAlgorithmOutput *imagePort) override
Set ImageData for a volume slice.
static int GetNumberOfScalarInvariants()
Get the number of selected scalar invariants to color a Slice.
vtkMRMLDiffusionTensorVolumeSliceDisplayNode(const vtkMRMLDiffusionTensorVolumeSliceDisplayNode &)
vtkMRMLDiffusionTensorDisplayPropertiesNode * DiffusionTensorDisplayPropertiesNode
ALL MRML nodes.
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
void SetAndObserveDiffusionTensorDisplayPropertiesNodeID(const char *ID)
Set diffusion tensor display MRML object for fiber glyph.
void UpdateAssignedAttribute() override
Update the pipeline based on this node attributes.
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
void SetColorModeToSolid()
Display Information: ColorMode for ALL nodes.
void SetColorModeToScalar()
Color according to the tensors using various scalar invariants.
void SetSlicePositionMatrix(vtkMatrix4x4 *matrix) override
Set slice to RAS transformation.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, UnstructuredGrid)
static vtkMRMLDiffusionTensorVolumeSliceDisplayNode * New()
static int GetNthScalarInvariant(int i)
Get the nth scalar invariant to color a Slice.
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
vtkMRMLDiffusionTensorDisplayPropertiesNode * GetDiffusionTensorDisplayPropertiesNode()
Display Information: ColorMode for glyphs.
static std::vector< int > GetSupportedColorModes()
void SetSliceGlyphRotationMatrix(vtkMatrix4x4 *matrix) override
Set slice to IJK transformation.
vtkMRMLGlyphableVolumeSliceDisplayNode()
Display Information: ColorMode for glyphs.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.