X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.h;h=e48dbfa323b8a70b2e387227eced9212b33550f4;hb=58022431bbadc0a2eaeab74cb2f282caa7ec5e54;hp=2d4776d728cb9707a70ae2dc22c7a34ba27e810e;hpb=3b5ab5fac2a4b3d4c752722687a04a0dd08e80b0;p=clitk.git diff --git a/common/vvImage.h b/common/vvImage.h index 2d4776d..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,8 +66,8 @@ private: std::vector< ConverterPointer > mItkToVtkConverters; std::vector mVtkImages; - std::vector< vtkSmartPointer > mVtkImageReslice; vtkSmartPointer mTransform; + double mTimeOrigin; double mTimeSpacing; unsigned int mImageDimension;