X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.cxx;h=9a6fc8ff489f39c1d661b1a55940a46253d3a2c3;hb=58022431bbadc0a2eaeab74cb2f282caa7ec5e54;hp=2db040b4bb89969e7cfac3b5c5079ff74e0eba53;hpb=a2ad218b695b29d49d53c85601d1ea438528e468;p=clitk.git diff --git a/common/vvImage.cxx b/common/vvImage.cxx index 2db040b..9a6fc8f 100644 --- a/common/vvImage.cxx +++ b/common/vvImage.cxx @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.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 @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html -======================================================================-====*/ +===========================================================================**/ #ifndef VVIMAGE_CXX #define VVIMAGE_CXX @@ -26,7 +26,6 @@ // vtk #include -#include #include // std @@ -52,7 +51,6 @@ void vvImage::Init() //-------------------------------------------------------------------- vvImage::~vvImage() { - // DD("vvImage got deleted!"); Reset(); } //-------------------------------------------------------------------- @@ -60,10 +58,7 @@ vvImage::~vvImage() //-------------------------------------------------------------------- void vvImage::Reset() { - mVtkImages.resize(0); - mTransformedVtkImages.resize(0); - mVtkImageReslice.resize(0); - + mVtkImages.clear(); Init(); } //-------------------------------------------------------------------- @@ -199,13 +194,6 @@ const std::vector& vvImage::GetVTKImages() } //-------------------------------------------------------------------- -//-------------------------------------------------------------------- -const std::vector& vvImage::GetTransformedVTKImages() -{ - return mTransformedVtkImages; -} -//-------------------------------------------------------------------- - //-------------------------------------------------------------------- vtkImageData* vvImage::GetFirstVTKImageData() { @@ -239,7 +227,6 @@ bool vvImage::IsScalarTypeInteger(int t) return false; } } - //-------------------------------------------------------------------- //-------------------------------------------------------------------- @@ -250,16 +237,6 @@ vtkSmartPointer vvImage::GetTransform() //-------------------------------------------------------------------- -//-------------------------------------------------------------------- -void vvImage::UpdateReslice() -{ - for (unsigned int i=0; iUpdate(); - } -} -//-------------------------------------------------------------------- - - //-------------------------------------------------------------------- bool vvImage::HaveSameSizeAndSpacingThan(vvImage * other) {