| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkMatrixResizeableDataObject.h.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:41 $ |
| 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 __itkMatrixResizeableDataObject_h |
| 18 |
|
#define __itkMatrixResizeableDataObject_h |
| 19 |
|
|
| 20 |
|
#include "itkDataObject.h" |
| 21 |
|
#include "vnl/vnl_matrix.h" |
| 22 |
|
|
| 23 |
|
namespace itk |
| 24 |
|
{ |
| 25 |
|
|
| 26 |
|
/** |
| 27 |
|
* \class MatrixResizeableDataObject |
| 28 |
|
* \brief Allows for a vnl matrix to be a data |
| 29 |
|
* object with the flexibility of being resizable. |
| 30 |
|
* |
| 31 |
|
* \ingroup DataProcessing |
| 32 |
|
**/ |
| 33 |
|
|
| 34 |
|
template<typename TItemType> |
| 35 |
LEN |
class MatrixResizeableDataObject : public DataObject, public vnl_matrix<TItemType> { |
| 36 |
|
public: |
| 37 |
|
|
| 38 |
|
/** Standard class typedefs. */ |
| 39 |
|
typedef MatrixResizeableDataObject Self; |
| 40 |
TDA |
typedef DataObject Superclass; |
| 41 |
TDA |
typedef SmartPointer<Self> Pointer; |
| 42 |
TDA |
typedef SmartPointer<const Self> ConstPointer; |
| 43 |
|
|
| 44 |
|
/** Method for creation through the object factory. */ |
| 45 |
|
itkNewMacro(Self); |
| 46 |
|
|
| 47 |
|
/** Run-time type information (and related methods). */ |
| 48 |
|
itkTypeMacro(MatrixResizeableDataObject, DataObject); |
| 49 |
|
|
| 50 |
|
protected: |
| 51 |
|
|
| 52 |
IND |
****/** Default Constructor. */ |
| 53 |
|
MatrixResizeableDataObject(); |
| 54 |
|
|
| 55 |
|
/** Default Destructor. */ |
| 56 |
|
~MatrixResizeableDataObject(); |
| 57 |
|
}; |
| 58 |
|
|
| 59 |
|
} // end namespace itk |
| 60 |
|
|
| 61 |
|
#ifndef ITK_MANUAL_INSTANTIATION |
| 62 |
|
#include "itkMatrixResizeableDataObject.txx" |
| 63 |
|
#endif |
| 64 |
|
|
| 65 |
|
#endif |
| 66 |
|
|