diff --git a/Modules/DiffusionImaging/Rendering/mitkDiffusionImageMapper.cpp b/Modules/DiffusionImaging/Rendering/mitkDiffusionImageMapper.cpp index 61ce91c63d..cd6d531588 100644 --- a/Modules/DiffusionImaging/Rendering/mitkDiffusionImageMapper.cpp +++ b/Modules/DiffusionImaging/Rendering/mitkDiffusionImageMapper.cpp @@ -1,58 +1,58 @@ /*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2009-05-12 19:56:03 +0200 (Di, 12 Mai 2009) $ Version: $Revision: 17179 $ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKCopyright.txt or http://www.mitk.org/copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #ifndef DiffusionImageMapper_txx_HEADER_INCLUDED #define DiffusionImageMapper_txx_HEADER_INCLUDED #include "mitkProperties.h" #include "mitkDiffusionImage.h" template mitk::DiffusionImageMapper::DiffusionImageMapper() { } template mitk::DiffusionImageMapper::~DiffusionImageMapper() { } template void mitk::DiffusionImageMapper::GenerateData( mitk::BaseRenderer *renderer ) { int displayIndex(0); this->GetDataNode()->GetIntProperty( "DisplayChannel", displayIndex, renderer ); InputImageType *input = const_cast< InputImageType* >( this->GetInput() ); mitk::DiffusionImage *input2 = dynamic_cast< mitk::DiffusionImage* >( input ); input2->SetDisplayIndexForRendering(displayIndex); Superclass::GenerateData(renderer); } template void mitk::DiffusionImageMapper::SetDefaultProperties(mitk::DataNode* node, mitk::BaseRenderer* renderer, bool overwrite) { - node->AddProperty( "DisplayChannel", mitk::IntProperty::New( true ), renderer, overwrite ); + node->AddProperty( "DisplayChannel", mitk::IntProperty::New( 0 ), renderer, overwrite ); Superclass::SetDefaultProperties(node, renderer, overwrite); } -#endif \ No newline at end of file +#endif