ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkMatrixResizeableDataObject.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkMatrixResizeableDataObject_h
00019 #define __itkMatrixResizeableDataObject_h
00020 
00021 #include "itkDataObject.h"
00022 #include "itkObjectFactory.h"
00023 #include "vnl/vnl_matrix.h"
00024 
00025 namespace itk
00026 {
00036 template< typename TItemType >
00037 class MatrixResizeableDataObject:public DataObject, public vnl_matrix< TItemType >
00038 {
00039 public:
00040 
00042   typedef MatrixResizeableDataObject Self;
00043   typedef DataObject                 Superclass;
00044   typedef SmartPointer< Self >       Pointer;
00045   typedef SmartPointer< const Self > ConstPointer;
00046 
00048   itkNewMacro(Self);
00049 
00051   itkTypeMacro(MatrixResizeableDataObject, DataObject);
00052 protected:
00053 
00055   MatrixResizeableDataObject();
00056 
00058   ~MatrixResizeableDataObject();
00059 };
00060 } // end namespace itk
00061 
00062 // Define instantiation macro for this template.
00063 #define ITK_TEMPLATE_MatrixResizeableDataObject(_, EXPORT, TypeX, TypeY)     \
00064   namespace itk                                                              \
00065   {                                                                          \
00066   _( 1 ( class EXPORT MatrixResizeableDataObject< ITK_TEMPLATE_1 TypeX > ) ) \
00067   namespace Templates                                                        \
00068   {                                                                          \
00069   typedef MatrixResizeableDataObject< ITK_TEMPLATE_1 TypeX >                 \
00070   MatrixResizeableDataObject##TypeY;                                       \
00071   }                                                                          \
00072   }
00073 
00074 #if ITK_TEMPLATE_EXPLICIT
00075 #include "Templates/itkMatrixResizeableDataObject+-.h"
00076 #endif
00077 
00078 #if ITK_TEMPLATE_TXX
00079 #include "itkMatrixResizeableDataObject.hxx"
00080 #endif
00081 
00082 #endif
00083