X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.h;h=e48dbfa323b8a70b2e387227eced9212b33550f4;hb=3c2462eafabcf428b4d2775c414a7b5f62511d3f;hp=a8fc87f46e5288518e89363189513ad43b956371;hpb=25e6b21607eea7d39428c109e4bc0ebe00f54ed9;p=clitk.git diff --git a/common/vvImage.h b/common/vvImage.h index a8fc87f..e48dbfa 100644 --- a/common/vvImage.h +++ b/common/vvImage.h @@ -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_H #define VVIMAGE_H @@ -22,11 +22,11 @@ #include #include #include + #include +#include class vtkImageData; -class vtkImageReslice; -class vtkTransform; //------------------------------------------------------------------------------ class vvImage : public itk::LightObject @@ -58,7 +58,7 @@ public : vtkSmartPointer GetTransform(); void SetTimeSpacing(double s) { mTimeSpacing = s; } void SetTimeOrigin(double o) { mTimeOrigin = o; } - void UpdateReslice(); + bool HaveSameSizeAndSpacingThan(vvImage * other); private: vvImage(); @@ -66,11 +66,11 @@ private: std::vector< ConverterPointer > mItkToVtkConverters; std::vector mVtkImages; - std::vector< vtkSmartPointer > mVtkImageReslice; vtkSmartPointer mTransform; + double mTimeOrigin; double mTimeSpacing; - uint mImageDimension; + unsigned int mImageDimension; }; //------------------------------------------------------------------------------