vtkDiffusionTensorGlyph Class Reference

#include <vtkDiffusionTensorGlyph.h>

Inheritance diagram for vtkDiffusionTensorGlyph:
vtkTensorGlyph

List of all members.

Public Member Functions

void ColorGlyphsByFractionalAnisotropy ()
void ColorGlyphsByLinearMeasure ()
 TO DO: make more of these.
void ColorGlyphsByMaxEigenvalue ()
void ColorGlyphsByMidEigenvalue ()
void ColorGlyphsByMinEigenvalue ()
void ColorGlyphsByOrientation ()
void ColorGlyphsByPlanarMeasure ()
void ColorGlyphsByRelativeAnisotropy ()
void ColorGlyphsBySphericalMeasure ()
void ColorGlyphsByTrace ()
unsigned long int GetMTime ()
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetMask (vtkImageData *)
virtual void SetTensorRotationMatrix (vtkMatrix4x4 *)
virtual void SetVolumePositionMatrix (vtkMatrix4x4 *)
 vtkBooleanMacro (MaskGlyphs, int)
 vtkGetMacro (Resolution, int)
 vtkGetMacro (MaskGlyphs, int)
 vtkGetObjectMacro (TensorRotationMatrix, vtkMatrix4x4)
 vtkGetObjectMacro (VolumePositionMatrix, vtkMatrix4x4)
 vtkGetVector2Macro (DimensionResolution, int)
 vtkGetVector2Macro (Dimensions, int)
 vtkSetClampMacro (Resolution, int, 1, VTK_LARGE_INTEGER)
 vtkSetMacro (MaskGlyphs, int)
 vtkSetVector2Macro (DimensionResolution, int)
 vtkSetVector2Macro (Dimensions, int)
 vtkTypeRevisionMacro (vtkDiffusionTensorGlyph, vtkTensorGlyph)

Static Public Member Functions

static vtkDiffusionTensorGlyphNew ()
static void RGBToIndex (double R, double G, double B, double &index)

Protected Member Functions

void ColorGlyphsBy (int measure)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 vtkDiffusionTensorGlyph ()
 ~vtkDiffusionTensorGlyph ()

Protected Attributes

int DimensionResolution [2]
int Dimensions [2]
 allows skipping some tensors for lower resolution glyphing
vtkImageDataMask
int MaskGlyphs
 which function of eigenvalues to use for coloring
int Resolution
 mask glyphs outside of the brain for example, using the Mask
int ScalarInvariant
vtkMatrix4x4 * TensorRotationMatrix
vtkMatrix4x4 * VolumePositionMatrix

Private Member Functions

void operator= (const vtkDiffusionTensorGlyph &)
 Not implemented.
 vtkDiffusionTensorGlyph (const vtkDiffusionTensorGlyph &)
 display glyphs at points where mask is nonzero

Constructor & Destructor Documentation

vtkDiffusionTensorGlyph::vtkDiffusionTensorGlyph (  )  [protected]
vtkDiffusionTensorGlyph::~vtkDiffusionTensorGlyph (  )  [protected]
vtkDiffusionTensorGlyph::vtkDiffusionTensorGlyph ( const vtkDiffusionTensorGlyph  )  [private]

display glyphs at points where mask is nonzero


Member Function Documentation

void vtkDiffusionTensorGlyph::ColorGlyphsBy ( int  measure  )  [protected]
void vtkDiffusionTensorGlyph::ColorGlyphsByFractionalAnisotropy (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByLinearMeasure (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByMaxEigenvalue (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByMidEigenvalue (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByMinEigenvalue (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByOrientation (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByPlanarMeasure (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByRelativeAnisotropy (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsBySphericalMeasure (  ) 
void vtkDiffusionTensorGlyph::ColorGlyphsByTrace (  ) 
unsigned long int vtkDiffusionTensorGlyph::GetMTime ( void   ) 

When determining the modified time of the filter, this checks the modified time of the mask input, if it exists.

References Mask, TensorRotationMatrix, and VolumePositionMatrix.

static vtkDiffusionTensorGlyph* vtkDiffusionTensorGlyph::New (  )  [static]

Description Construct object with defaults: Scaling is by eigenvalues on and scale factor is 1000. Glyphs are colored with FA scalar invariant.

void vtkDiffusionTensorGlyph::operator= ( const vtkDiffusionTensorGlyph  )  [private]

Not implemented.

void vtkDiffusionTensorGlyph::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual int vtkDiffusionTensorGlyph::RequestData ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
) [protected, virtual]
void vtkDiffusionTensorGlyph::RGBToIndex ( double  R,
double  G,
double  B,
double &  index 
) [static]

References max, and min.

virtual void vtkDiffusionTensorGlyph::SetMask ( vtkImageData  )  [virtual]

Input scalars are a binary mask: 0 prevents display of polydata at that point

virtual void vtkDiffusionTensorGlyph::SetTensorRotationMatrix ( vtkMatrix4x4 *   )  [virtual]

Description Transform output glyph orientations by this matrix. Example usage is as follows: 1) If tensors are to be displayed in a coordinate system that is not IJK (array-based), and the whole volume is being rotated, each tensor needs also to be rotated. First find the matrix that positions your volume. This is how the entire volume is positioned, not the matrix that positions an arbitrary reformatted slice. 2) Remove scaling and translation from this matrix; we just need to rotate each tensor. 3) Set TensorRotationMatrix to this rotation matrix.

Referenced by vtkMRMLDiffusionTensorVolumeSliceDisplayNode::SetSliceGlyphRotationMatrix().

virtual void vtkDiffusionTensorGlyph::SetVolumePositionMatrix ( vtkMatrix4x4 *   )  [virtual]

Description Transform output glyph locations (not orientations!) by this matrix. Example usage is as follows: 1) Reformat a slice through a tensor volume. 2) Set VolumePositionMatrix to the reformat matrix. This is analogous to setting the actor's UserMatrix to this matrix, which only works for scalar data. 3) The output glyphs are positioned correctly without incorrectly rotating the tensors, as would be the case if positioning the scene's actor with this matrix.

Referenced by vtkMRMLDiffusionTensorVolumeSliceDisplayNode::SetSlicePositionMatrix().

vtkDiffusionTensorGlyph::vtkBooleanMacro ( MaskGlyphs  ,
int   
)

If MaskGlyphs is 1 (On), Mask is used to mask tensors.

vtkDiffusionTensorGlyph::vtkGetMacro ( Resolution  ,
int   
)
vtkDiffusionTensorGlyph::vtkGetMacro ( MaskGlyphs  ,
int   
)
vtkDiffusionTensorGlyph::vtkGetObjectMacro ( TensorRotationMatrix  ,
vtkMatrix4x4   
)
vtkDiffusionTensorGlyph::vtkGetObjectMacro ( VolumePositionMatrix  ,
vtkMatrix4x4   
)
vtkDiffusionTensorGlyph::vtkGetVector2Macro ( DimensionResolution  ,
int   
)

Resolution of the output glyphs in each dimension. It is used only if Dimensions is set > 1 . This parameter is a integer value that sets the number of tensors (points) that are skipped before a glyph is rendered. 1 is the finest level meaning that every input point a glyph is rendered.

vtkDiffusionTensorGlyph::vtkGetVector2Macro ( Dimensions  ,
int   
)

If the points in the image are organized into a 2D array (image), The dimensions of that array. Two numbers: the number of columns and rows of pixels in each image. If any of the numbers are < 1 a 1D point structure is assumed.

vtkDiffusionTensorGlyph::vtkSetClampMacro ( Resolution  ,
int  ,
,
VTK_LARGE_INTEGER   
)

Resolution of the output glyphs. This parameter is a integer value that sets the number of tensors (points) that are skipped before a glyph is rendered. 1 is the finest level meaning that every input point a glyph is rendered.

vtkDiffusionTensorGlyph::vtkSetMacro ( MaskGlyphs  ,
int   
)
vtkDiffusionTensorGlyph::vtkSetVector2Macro ( DimensionResolution  ,
int   
)
vtkDiffusionTensorGlyph::vtkSetVector2Macro ( Dimensions  ,
int   
)
vtkDiffusionTensorGlyph::vtkTypeRevisionMacro ( vtkDiffusionTensorGlyph  ,
vtkTensorGlyph   
)

Member Data Documentation

Referenced by vtkDiffusionTensorGlyph().

allows skipping some tensors for lower resolution glyphing

Referenced by vtkDiffusionTensorGlyph().

which function of eigenvalues to use for coloring

Referenced by PrintSelf(), and vtkDiffusionTensorGlyph().

mask glyphs outside of the brain for example, using the Mask

Referenced by PrintSelf(), and vtkDiffusionTensorGlyph().


The documentation for this class was generated from the following files:

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1