15 #ifndef __vtkMRMLDiffusionTensorVolumeDisplayNode_h 16 #define __vtkMRMLDiffusionTensorVolumeDisplayNode_h 22 class vtkAlgorithmOutput;
27 class vtkImageExtractComponents;
28 class vtkImageShiftScale;
29 class vtkImageMathematics;
45 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
51 virtual
void ReadXMLAttributes( const
char** atts) VTK_OVERRIDE;
55 virtual
void WriteXML(ostream& of,
int indent) VTK_OVERRIDE;
63 virtual const
char* GetNodeTagName() VTK_OVERRIDE {
return "DiffusionTensorVolumeDisplay";}
74 virtual
void UpdateScene(
vtkMRMLScene *scene) VTK_OVERRIDE;
78 virtual
void UpdateReferenceID(const
char *oldID, const
char *newID) VTK_OVERRIDE;
82 virtual
void ProcessMRMLEvents ( vtkObject * ,
84 void * ) VTK_OVERRIDE;
97 vtkGetMacro(ScalarInvariant,
int);
102 vtkSetMacro(ScalarInvariant,
int);
106 void SetScalarInvariantToTrace() {
153 virtual vtkAlgorithmOutput* GetBackgroundImageStencilDataConnection() VTK_OVERRIDE;
155 virtual
void UpdateImageDataPipeline() VTK_OVERRIDE;
159 vtkGetObjectMacro (ShiftScale, vtkImageShiftScale);
174 virtual
void GetDisplayScalarRange(
double range[2]) VTK_OVERRIDE;
176 static
int GetNumberOfScalarInvariants();
177 static
int GetNthScalarInvariant(
int i);
186 virtual
void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection) VTK_OVERRIDE;
188 virtual vtkAlgorithmOutput* GetScalarImageDataConnection() VTK_OVERRIDE;
190 static
std::vector<
int> GetSupportedColorModes();
199 vtkImageShiftScale *ShiftScale;
201 vtkImageMathematics *ImageMath;
203 vtkImageCast *ImageCast;
virtual vtkAlgorithmOutput * GetInputImageDataConnection() VTK_OVERRIDE
Gets the pipeline input.
virtual vtkMRMLNode * CreateNodeInstance() VTK_OVERRIDE
Create instance of the default node. Like New only virtual.
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors.
virtual const char * GetScalarInvariantAsString()
Return a text string describing the ScalarInvariant variable
void SetScalarInvariantToLinearMeasure()
Set scalar invariant to C_L (Westin's linear measure)
virtual void UpdateReferences() VTK_OVERRIDE
void SetScalarInvariantToPlanarMeasure()
Set scalar invariant to C_P (Westin's planar measure)
void SetScalarInvariantToFractionalAnisotropy()
Set scalar invariant to FA (normalized variance of eigenvalues)
A set of MRML Nodes that supports serialization and undo/redo.
MRML node to represent display properties for tractography.
MRML node for representing a volume (image stack).
MRML node for representing a volume (image stack).
static const char * GetScalarEnumAsString(int val)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract Superclass for all specific types of MRML nodes.
void SetScalarInvariantToSphericalMeasure()
Set scalar invariant to C_S (Westin's spherical measure)
void SetScalarInvariantToRelativeAnisotropy()
Set scalar invariant to relative anisotropy.
MRML node for representing a volume display attributes.
static vtkMRMLGlyphableVolumeDisplayNode * New()