1 #ifndef __cpExtensions__Visualization__LUTImageActor__h__
2 #define __cpExtensions__Visualization__LUTImageActor__h__
4 #include <cpExtensions/Visualization/ImageActor.h>
7 // -------------------------------------------------------------------------
8 class vtkImageMapToColors;
11 // -------------------------------------------------------------------------
12 namespace cpExtensions
14 namespace Algorithms { class ImageBlender; }
16 namespace Visualization
20 class cpExtensions_EXPORT LUTImageActor
24 typedef LUTImageActor Self;
27 typedef cpExtensions::Algorithms::ImageBlender _TImageBlender;
30 vtkTypeMacro( LUTImageActor, ImageActor );
35 unsigned int GetNumberOfImages( ) const;
36 vtkImageData* GetImage( unsigned int id );
37 const vtkImageData* GetImage( unsigned int id ) const;
38 unsigned int GetImageId( vtkImageData* image ) const;
40 unsigned int id, double& r, double& g, double& b, double& a
43 vtkImageData* image, double& r, double& g, double& b, double& a
46 unsigned int id, double r, double g, double b, double a
49 vtkImageData* image, double r, double g, double b, double a
51 unsigned int AddImage(
53 double r = 1, double g = 0, double b = 0, double a = 1
58 virtual ~LUTImageActor( );
61 // Purposely not implemented
62 LUTImageActor( const Self& );
63 Self& operator=( const Self& );
66 vtkSmartPointer< vtkLookupTable > m_LUT;
67 vtkSmartPointer< _TImageBlender > m_Blender;
68 vtkSmartPointer< vtkImageMapToColors > m_ImageMap;
69 std::vector< vtkSmartPointer< vtkImageData > > m_Images;
76 #endif // __cpExtensions__Visualization__LUTImageActor__h__