15 #ifndef __vtkDiffusionTensorGlyph_h 16 #define __vtkDiffusionTensorGlyph_h 18 #include "vtkTeemConfigure.h" 20 #include "vtkTensorGlyph.h" 21 #include <vtkVersion.h> 75 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
85 vtkBooleanMacro(MaskGlyphs,
int);
86 vtkSetMacro(MaskGlyphs,
int);
87 vtkGetMacro(MaskGlyphs,
int);
92 virtual void SetMask(vtkImageData*);
98 void ColorGlyphsByLinearMeasure();
99 void ColorGlyphsBySphericalMeasure();
100 void ColorGlyphsByPlanarMeasure();
101 void ColorGlyphsByParallelDiffusivity();
102 void ColorGlyphsByPerpendicularDiffusivity();
103 void ColorGlyphsByMaxEigenvalue();
104 void ColorGlyphsByMidEigenvalue();
105 void ColorGlyphsByMinEigenvalue();
106 void ColorGlyphsByRelativeAnisotropy();
107 void ColorGlyphsByFractionalAnisotropy();
108 void ColorGlyphsByTrace();
112 void ColorGlyphsByOrientation();
127 virtual void SetVolumePositionMatrix(vtkMatrix4x4*);
128 vtkGetObjectMacro(VolumePositionMatrix, vtkMatrix4x4);
145 virtual void SetTensorRotationMatrix(vtkMatrix4x4*);
146 vtkGetObjectMacro(TensorRotationMatrix, vtkMatrix4x4);
152 vtkSetClampMacro(Resolution,
int,1,VTK_INT_MAX);
153 vtkGetMacro(Resolution,
int);
161 vtkGetVector2Macro(DimensionResolution,
int);
162 vtkSetVector2Macro(DimensionResolution,
int);
168 vtkMTimeType GetMTime() VTK_OVERRIDE;
172 ~vtkDiffusionTensorGlyph();
174 virtual
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
176 void ColorGlyphsBy(
int measure);
182 int DimensionResolution[2];
184 vtkMatrix4x4 *VolumePositionMatrix;
185 vtkMatrix4x4 *TensorRotationMatrix;
190 vtkDiffusionTensorGlyph(const vtkDiffusionTensorGlyph&);
191 void operator=(const vtkDiffusionTensorGlyph&);
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors.