void QmitkNavigationButtonsView::NormalizationDropdownChanged(int normDropdown)
{
  typedef mitk::OdfNormalizationMethodProperty PropType;
  PropType::Pointer normMeth = PropType::New();

  switch(normDropdown)
  {
  case 0:
    normMeth->SetNormalizationToMinMax();
    break;
  case 1:
    normMeth->SetNormalizationToMax();
    break;
  case 2:
    normMeth->SetNormalizationToNone();
    break;
  case 3:
    normMeth->SetNormalizationToGlobalMax();
    break;
  default:
    normMeth->SetNormalizationToMinMax();
  }

  mitk::DataStorage::SetOfObjects::Pointer set =
      ActiveSet("QBallImage");
  SetEnumProp(set,"Normalization", normMeth.GetPointer());

  set = ActiveSet("TensorImage");
  SetEnumProp(set,"Normalization", normMeth.GetPointer());

  if(m_MultiWidget)
    m_MultiWidget->RequestUpdate();

}
void QmitkControlVisualizationPropertiesView::NormalizationDropdownChanged(int normDropdown)
{
    typedef mitk::OdfNormalizationMethodProperty PropType;
    PropType::Pointer normMeth = PropType::New();

    switch(normDropdown)
    {
    case 0:
        normMeth->SetNormalizationToMinMax();
        break;
    case 1:
        normMeth->SetNormalizationToMax();
        break;
    case 2:
        normMeth->SetNormalizationToNone();
        break;
    case 3:
        normMeth->SetNormalizationToGlobalMax();
        break;
    default:
        normMeth->SetNormalizationToMinMax();
    }

    if (dynamic_cast<mitk::QBallImage*>(m_SelectedNode->GetData()) || dynamic_cast<mitk::TensorImage*>(m_SelectedNode->GetData()))
        m_SelectedNode->SetProperty("Normalization", normMeth.GetPointer());

    mitk::RenderingManager::GetInstance()->RequestUpdateAll();
}
void QmitkControlVisualizationPropertiesView::AdditionalScaling(int additionalScaling)
{

    typedef mitk::OdfScaleByProperty PropType;
    PropType::Pointer scaleBy = PropType::New();

    switch(additionalScaling)
    {
    case 0:
        scaleBy->SetScaleByNothing();
        break;
    case 1:
        scaleBy->SetScaleByGFA();
        //m_Controls->params_frame->setVisible(true);
        break;
#ifdef DIFFUSION_IMAGING_EXTENDED
    case 2:
        scaleBy->SetScaleByPrincipalCurvature();
        // commented in for SPIE paper, Principle curvature scaling
        //m_Controls->params_frame->setVisible(true);
        break;
#endif
    default:
        scaleBy->SetScaleByNothing();
    }

    if (dynamic_cast<mitk::QBallImage*>(m_SelectedNode->GetData()) || dynamic_cast<mitk::TensorImage*>(m_SelectedNode->GetData()))
        m_SelectedNode->SetProperty("Normalization", scaleBy.GetPointer());

    mitk::RenderingManager::GetInstance()->RequestUpdateAll();
}
void QmitkNavigationButtonsView::AdditionalScaling(int additionalScaling)
{

  typedef mitk::OdfScaleByProperty PropType;
  PropType::Pointer scaleBy = PropType::New();

  switch(additionalScaling)
  {
  case 0:
    scaleBy->SetScaleByNothing();
    break;
  case 1:
    scaleBy->SetScaleByGFA();
    //m_Controls->params_frame->setVisible(true);
    break;
#ifdef DIFFUSION_IMAGING_EXTENDED
  case 2:
    scaleBy->SetScaleByPrincipalCurvature();
    // commented in for SPIE paper, Principle curvature scaling
    //m_Controls->params_frame->setVisible(true);
    break;
#endif
  default:
    scaleBy->SetScaleByNothing();
  }

  mitk::DataStorage::SetOfObjects::Pointer set =
      ActiveSet("QBallImage");
  SetEnumProp(set,"ScaleBy", scaleBy.GetPointer());

  set = ActiveSet("TensorImage");
  SetEnumProp(set,"ScaleBy", scaleBy.GetPointer());

  if(m_MultiWidget)
    m_MultiWidget->RequestUpdate();

}