X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.h;h=106189f2310aea4b142d22d474efa2bac5243557;hb=48d8569538b93bf923de2f8d5c4b9db51640978f;hp=a0ab108b95e16a323f691b88ef87cd33ec5ef22f;hpb=32def8dc2a3a571a7e34ac76355800c9e69c4f6a;p=clitk.git diff --git a/common/vvImage.h b/common/vvImage.h index a0ab108..106189f 100644 --- a/common/vvImage.h +++ b/common/vvImage.h @@ -25,6 +25,8 @@ class vtkImageData; class vtkImageReslice; +class vtkTransform; +class vtkImageReslice; class vtkAbstractTransform; class vvImage : public itk::LightObject { @@ -55,18 +57,33 @@ public : bool IsTimeSequence(); bool IsScalarTypeInteger(); bool IsScalarTypeInteger(int t); + vtkAbstractTransform * GetTransform(); + void SetTransform(vtkAbstractTransform *transform); + vtkImageReslice* GetVTKImageReslice(); + void SetVTKImageReslice(vtkImageReslice *reslice); + + void SetRotateX(int xvalue); + void SetRotateY(int yvalue); + void SetRotateZ(int zvalue); + + void SetTranslationX(int xvalue); + void SetTranslationY(int yvalue); + void SetTranslationZ(int zvalue); + void SetOrigin(double value[3]); + private: void SetTimeSpacing(double s) { mTimeSpacing = s; } void SetTimeOrigin(double o) { mTimeOrigin = o; } - void SetTransform(vtkAbstractTransform *transform); -private: + private: vvImage(); ~vvImage(); std::vector mVtkImages; + vtkSmartPointer mVtkImageReslice; + vtkSmartPointer transform; double mTimeOrigin; double mTimeSpacing; - vtkSmartPointer mVtkImageReslice; + double * origin; }; #endif