1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
18 #ifndef VVBINARYIMAGEOVERLAYACTOR_H
19 #define VVBINARYIMAGEOVERLAYACTOR_H
21 #include "clitkCommon.h"
25 class vtkMarchingSquares;
28 class vtkImageMapToRGBA;
31 //------------------------------------------------------------------------------
32 class vvBinaryImageOverlayActor
36 vvBinaryImageOverlayActor();
37 ~vvBinaryImageOverlayActor();
39 void setSlicer(vvSlicer * slicer);
40 void update(int slicer, int slice);
43 void setColor(double r, double g, double b);
44 void setImage(vvImage::Pointer image, double bg);
46 void SetOpacity(double d);
54 vvImage::Pointer mImage;
55 std::vector<double> mColor;
57 double mBackgroundValue;
59 std::vector<vtkImageMapToRGBA *> mMapperList;
60 std::vector<vtkImageActor*> mImageActorList;
62 void ComputeExtent(int orientation,
66 void ComputeExtent(int * inExtent,
69 vtkImageData * overlay);
70 void SetDisplayExtentAndCameraPosition(int orientation,
73 vtkImageActor * actor,
76 }; // end class vvBinaryImageOverlayActor
77 //------------------------------------------------------------------------------