X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.h;h=7a1ee02a5857b559cbef3fb30f831b17a8ac241b;hb=dd96575fcb3e3af28160766907f68e34dfbf1ba2;hp=a2f77e955c3850f4c82bbdb8e12e104c528447dc;hpb=c135f9b390e2750d8248db5903753b94ca549623;p=clitk.git diff --git a/vv/vvSlicer.h b/vv/vvSlicer.h index a2f77e9..7a1ee02 100644 --- a/vv/vvSlicer.h +++ b/vv/vvSlicer.h @@ -27,6 +27,7 @@ #include #include +#include class vtkActor; class vtkActor2D; @@ -105,6 +106,7 @@ public: void SetDisplayMode(bool i); void FlipHorizontalView(); void FlipVerticalView(); + static double GetScalarComponentAsDouble(vtkImageData *image, int X, double Y, double Z, int &ix, int &iy, int &iz, int component=0); void Render(); ///Sets the camera to fit the image in the window void ResetCamera(); @@ -167,6 +169,11 @@ public: int GetOrientation(); int * GetExtent(); + double* GetVFColor() { + return mVFColor; + } + void SetVFColor(double r, double g, double b); + protected: vvSlicer(); ~vvSlicer(); @@ -192,6 +199,7 @@ protected: vtkSmartPointer mVOIFilter; vtkSmartPointer mGlyphFilter; vtkSmartPointer mVFMapper; + vtkSmartPointer mVFColorLUT; vtkSmartPointer mVFActor; vtkSmartPointer mLandGlyph; vtkSmartPointer mCross; @@ -209,6 +217,7 @@ protected: int mScale; int mVFLog; int mVFWidth; + double mVFColor[3]; bool mUseReducedExtent; int * mReducedExtent; int * mInitialExtent;