X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImage.h;h=38348eece3d2db2ecc67ea8bf28d1d5f41cec4d9;hb=f7b421ee98a5fcec0f7072c339792c5534b1504c;hp=49695bb106286a1f5ba4c557d26369319c3dd07f;hpb=a97c480d25285a6d143bd035d6b5fa0804a7d068;p=clitk.git diff --git a/common/vvImage.h b/common/vvImage.h index 49695bb..38348ee 100644 --- a/common/vvImage.h +++ b/common/vvImage.h @@ -58,32 +58,28 @@ public : bool IsTimeSequence(); bool IsScalarTypeInteger(); bool IsScalarTypeInteger(int t); - vtkTransform * GetTransform(); - void SetTransform(vtkTransform *transform); - vtkImageReslice* GetVTKImageReslice(); - void SetVTKImageReslice(vtkImageReslice *reslice); - void SetRotateX(int xvalue); - void SetRotateY(int yvalue); - void SetRotateZ(int zvalue); + vtkSmartPointer GetTransform(); + void SetTransform(vtkSmartPointer transform); - void SetTranslationX(int xvalue); - void SetTranslationY(int yvalue); - void SetTranslationZ(int zvalue); - void SetOrigin(double value[3]); + void SetTimeSpacing(double s) { + mTimeSpacing = s; + } + void SetTimeOrigin(double o) { + mTimeOrigin = o; + } - void SetTimeSpacing(double s) { mTimeSpacing = s; } - void SetTimeOrigin(double o) { mTimeOrigin = o; } + void UpdateReslice(); private: vvImage(); ~vvImage(); + std::vector mVtkImages; std::vector< vtkSmartPointer > mVtkImageReslice; vtkSmartPointer mTransform; double mTimeOrigin; double mTimeSpacing; - double * origin; }; #endif