X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolMIP.cxx;h=2ef4918480472feee170c3af761724fff660021c;hb=5a7da4aedae5c204bc55c187717193e5950f9a44;hp=cfa338f63028d65ad605eff8659095ee04b61b69;hpb=39897616977eaac6a2b298e8ca4dcae70845132b;p=clitk.git diff --git a/vv/vvToolMIP.cxx b/vv/vvToolMIP.cxx index cfa338f..2ef4918 100644 --- a/vv/vvToolMIP.cxx +++ b/vv/vvToolMIP.cxx @@ -1,14 +1,31 @@ +/*========================================================================= + Program: vv http://www.creatis.insa-lyon.fr/rio/vv + + Authors belong to: + - University of LYON http://www.universite-lyon.fr/ + - Léon Bérard cancer center http://www.centreleonberard.fr + - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the copyright notices for more information. + + It is distributed under dual licence + + - BSD See included LICENSE.txt file + - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +===========================================================================*/ /*========================================================================= Program: vv Module: $RCSfile: vvToolMIP.cxx,v $ Language: C++ - Date: $Date: 2011/03/22 15:50:39 $ - Version: $Revision: 1.2 $ + Date: $Date: 2011/04/15 08:29:21 $ + Version: $Revision: 1.3 $ Author : Bharath Navalpakkam (Bharath.Navalpakkam@creatis.insa-lyon.fr) Copyright (C) 2010 - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + Léon Bérard cancer center http://www.centreleonberard.fr CREATIS http://www.creatis.insa-lyon.fr This program is free software: you can redistribute it and/or modify @@ -61,7 +78,6 @@ vvToolMIP::vvToolMIP(vvMainWindowBase * parent, Qt::WindowFlags f) //------------------------------------------------------------------------------ vvToolMIP::~vvToolMIP() { - delete mFilter; } //------------------------------------------------------------------------------ void vvToolMIP::Initialize() @@ -83,7 +99,7 @@ void vvToolMIP::apply() cmdline_parser_clitkMIP_init(&args_info); args_info.dimension_arg=this->dimensionSpinBox->value(); args_info.dimension_given=true; - clitk::MIPGenericFilter* filter= dynamic_cast(mFilter); + clitk::MIPGenericFilter* filter= dynamic_cast(mFilter.GetPointer()); filter->SetArgsInfo(args_info); filter->SetInputVVImage(mCurrentImage); filter->Update();