Commit e2755497 authored by demian's avatar demian

BUG: Corrected bug 2381 the DTI volume glyphs now use the correct color map...

BUG: Corrected bug 2381 the DTI volume glyphs now use the correct color map when in color by orientation mode

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21577 3bd1e089-480b-0410-8dfb-8563597acbee
parent bf452249
......@@ -223,6 +223,11 @@ void vtkMRMLDiffusionTensorVolumeSliceDisplayNode::UpdatePolyDataPipeline()
vtkDebugMacro("coloring with direction (re-implement)");
this->ScalarVisibilityOn( );
this->DiffusionTensorGlyphFilter->ColorGlyphsByOrientation( );
vtkMRMLNode* colorNode = this->GetScene()->GetNodeByID("vtkMRMLColorTableNodeFullRainbow");
if (colorNode)
{
this->SetAndObserveColorNodeID(colorNode->GetID());
}
}
break;
case vtkMRMLDiffusionTensorDisplayPropertiesNode::PlanarMeasure:
......
......@@ -254,12 +254,11 @@ void qSlicerDTISliceDisplayWidget::setColorGlyphBy(int scalarInvariant)
this->displayPropertiesNode()->SetColorGlyphBy(scalarInvariant);
if ( d->DisplayNode && (
this->displayPropertiesNode()->GetScalarInvariant() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientation ||
this->displayPropertiesNode()->GetScalarInvariant() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientationMiddleEigenvector ||
this->displayPropertiesNode()->GetScalarInvariant() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientationMinEigenvector
this->displayPropertiesNode()->GetColorGlyphBy() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientation ||
this->displayPropertiesNode()->GetColorGlyphBy() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientationMiddleEigenvector ||
this->displayPropertiesNode()->GetColorGlyphBy() == vtkMRMLDiffusionTensorDisplayPropertiesNode::ColorOrientationMinEigenvector
) )
{
d->DisplayNode->SetAndObserveColorNodeID("vtkMRMLColorTableNodeFullRainbow");
d->GlyphScalarColorTableComboBox->setEnabled(false);
d->DisplayNode->AutoScalarRangeOn();
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment