KWStyle - itkVectorToRGBImageAdaptor.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkVectorToRGBImageAdaptor.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:49 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12      This software is distributed WITHOUT ANY WARRANTY; without even 
13      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14      PURPOSE.  See the above copyright notices for more information.
15
16 =========================================================================*/
17 #ifndef __itkVectorToRGBImageAdaptor_h
18 #define __itkVectorToRGBImageAdaptor_h
19
20 #include "itkImageAdaptor.h"
21 #include "itkVectorToRGBPixelAccessor.h"
22
23 namespace itk
24 {
25  
26
27 /** \class VectorToRGBImageAdaptor
28  * \brief Presents an image of pixel type Vector as being and image of
29  * RGBPixel type.
30  *
31  * \ingroup ImageAdaptors
32  *
33  */
34 template <class TImage>
35 class ITK_EXPORT VectorToRGBImageAdaptor : public
36 IND ******ImageAdaptor<TImage,
37         Accessor::VectorToRGBPixelAccessor<
38            typename TImage::PixelType::ValueType
39 IND **************************************> >
40 {
41 public:
42   /** Standard class typedefs. */
43   typedef VectorToRGBImageAdaptor  Self;
44   typedef ImageAdaptor<TImage,
45               Accessor::VectorToRGBPixelAccessor<
46                  typename TImage::PixelType::ValueType
47 TDA,IND ***************************************>  > Superclass;
48 TDA   typedef SmartPointer<Self>  Pointer;
49 TDA   typedef SmartPointer<const Self>  ConstPointer;
50   
51   /** Method for creation through the object factory. */
52   itkNewMacro(Self);  
53
54   /** Run-time type information (and related methods). */
55   itkTypeMacro( VectorToRGBImageAdaptor, ImageAdaptor );
56
57   /** PixelContainer typedef support. Used to construct a container for
58    * the pixel data. */
59   typedef typename Superclass::PixelContainer        PixelContainer;
60   typedef typename Superclass::PixelContainerPointer PixelContainerPointer;
61 LEN,TDA   typedef typename Superclass::PixelContainerConstPointer PixelContainerConstPointer;
62   
63 IND *protected:
64   VectorToRGBImageAdaptor() {}
65   virtual ~VectorToRGBImageAdaptor() {}
66   
67 IND *private:
68   VectorToRGBImageAdaptor(const Self&); //purposely not implemented
69   void operator=(const Self&); //purposely not implemented
70
71 };
72
73 // end namespace itk
74
75 #endif
76

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:53PM
© Kitware Inc.