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)
override;
55 void WriteXML(ostream& of,
int indent)
override;
63 const char*
GetNodeTagName()
override {
return "DiffusionTensorVolumeDisplay";}
97 vtkGetMacro(ScalarInvariant,
int);
102 vtkSetMacro(ScalarInvariant,
int);
159 vtkGetObjectMacro (ShiftScale, vtkImageShiftScale);
176 static int GetNumberOfScalarInvariants();
177 static int GetNthScalarInvariant(
int i);
190 static std::vector<int> GetSupportedColorModes();
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
virtual std::vector< vtkMRMLGlyphableVolumeSliceDisplayNode * > GetSliceGlyphDisplayNodes(vtkMRMLVolumeNode *vtkNotUsed(node))
get associated slice glyph display node or nullptr if not set
void SetInputToImageDataPipeline(vtkAlgorithmOutput *imageDataConnection) override
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
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)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
virtual vtkAlgorithmOutput * GetScalarImageDataConnection()
vtkDiffusionTensorMathematics * DTIMathematics
used for main scalar invarant (can be 1 or 3 component)
void PrintSelf(ostream &os, vtkIndent indent) override
vtkAlgorithmOutput * GetInputImageDataConnection() override
Gets the pipeline input.
vtkDiffusionTensorMathematics * DTIMathematicsAlpha
used for calculating single component magnitude for color images
vtkDiffusionTensorGlyph * DiffusionTensorGlyphFilter
void UpdateReferenceID(const char *oldID, const char *newID) override
Update the stored reference to another node in the scene
vtkImageMathematics * ImageMath
virtual void UpdateImageDataPipeline()
Update the pipeline based on this node attributes
void GetDisplayScalarRange(double range[2]) override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
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.
vtkImageShiftScale * ShiftScale
MRML node to represent display properties for tractography.
void operator=(const vtkMRMLGlyphableVolumeDisplayNode &)
void Copy(vtkMRMLNode *node) override
Copy the node's attributes to this object
MRML node for representing a volume (image stack).
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
MRML node for representing a volume (image stack).
virtual void AddSliceGlyphDisplayNodes(vtkMRMLVolumeNode *vtkNotUsed(node))
add slice glyph display nodes if not already present and return it
void UpdateReferences() override
void SetScalarInvariantToTrace()
Set scalar invariant to trace (sum of eigenvalues).
static const char * GetScalarEnumAsString(int val)
vtkAlgorithmOutput * GetBackgroundImageStencilDataConnection() override
int ScalarInvariant
Scalar display parameters.
Abstract Superclass for all specific types of MRML nodes.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
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()