15#ifndef __vtkMRMLDiffusionTensorVolumeDisplayNode_h
16#define __vtkMRMLDiffusionTensorVolumeDisplayNode_h
22class vtkAlgorithmOutput;
27class vtkImageExtractComponents;
28class vtkImageShiftScale;
29class vtkImageMathematics;
46 void PrintSelf(ostream& os, vtkIndent indent)
override;
56 void WriteXML(ostream& of,
int indent)
override;
64 const char*
GetNodeTagName()
override {
return "DiffusionTensorVolumeDisplay";}
scale and orient glyph(s) according to tensor eigenvalues and eigenvectors.
static const char * GetScalarEnumAsString(int val)
static std::vector< int > GetSupportedColorModes()
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
vtkAlgorithmOutput * GetInputImageDataConnection() override
Get the input of the pipeline.
void SetScalarInvariantToPlanarMeasure()
Set scalar invariant to C_P (Westin's planar measure)
static int GetNthScalarInvariant(int i)
void SetScalarInvariantToFractionalAnisotropy()
Set scalar invariant to FA (normalized variance of eigenvalues)
int ScalarInvariant
Scalar display parameters.
std::vector< vtkMRMLGlyphableVolumeSliceDisplayNode * > GetSliceGlyphDisplayNodes(vtkMRMLVolumeNode *node) override
get associated slice glyph display node or nullptr if not set
void operator=(const vtkMRMLDiffusionTensorVolumeDisplayNode &)
virtual const char * GetScalarInvariantAsString()
Return a text string describing the ScalarInvariant variable.
void UpdateReferences() override
void SetScalarInvariantToSphericalMeasure()
Set scalar invariant to C_S (Westin's spherical measure)
void ReadXMLAttributes(const char **atts) override
Set node attributes.
void UpdateImageDataPipeline() override
Update the pipeline based on this node attributes.
void SetScalarInvariantToRelativeAnisotropy()
Set scalar invariant to relative anisotropy.
~vtkMRMLDiffusionTensorVolumeDisplayNode() override
void GetDisplayScalarRange(double range[2]) override
vtkMRMLDiffusionTensorVolumeDisplayNode(const vtkMRMLDiffusionTensorVolumeDisplayNode &)
vtkAlgorithmOutput * GetBackgroundImageStencilDataConnection() override
vtkImageMathematics * ImageMath
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object.
vtkMRMLDiffusionTensorVolumeDisplayNode()
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data.
void AddSliceGlyphDisplayNodes(vtkMRMLVolumeNode *node) override
add slice glyph display nodes if not already present and return it
vtkDiffusionTensorMathematics * DTIMathematicsAlpha
used for calculating single component magnitude for color images
void SetScalarInvariantToTrace()
Set scalar invariant to trace (sum of eigenvalues).
void SetScalarInvariantToLinearMeasure()
Set scalar invariant to C_L (Westin's linear measure)
void PrintSelf(ostream &os, vtkIndent indent) override
vtkAlgorithmOutput * GetScalarImageDataConnection() override
vtkDiffusionTensorGlyph * DiffusionTensorGlyphFilter
virtual void SetScalarInvariant(int)
vtkImageShiftScale * ShiftScale
void SetTensorRotationMatrix(vtkMatrix4x4 *)
vtkDiffusionTensorMathematics * DTIMathematics
used for main scalar invariant (can be 1 or 3 component)
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection) override
Set the input of the pipeline.
static vtkMRMLDiffusionTensorVolumeDisplayNode * New()
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
static int GetNumberOfScalarInvariants()
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene.
vtkMRMLGlyphableVolumeDisplayNode()
MRML node to represent display properties for tractography.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
MRML node for representing a volume (image stack).