| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkMeshToMeshFilter.h.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:42 $ |
| 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 |
|
Portions of this code are covered under the VTK copyright. |
| 13 |
|
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. |
| 14 |
|
|
| 15 |
|
This software is distributed WITHOUT ANY WARRANTY; without even |
| 16 |
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 17 |
IND |
*****PURPOSE. See the above copyright notices for more information. |
| 18 |
|
|
| 19 |
|
=========================================================================*/ |
| 20 |
|
#ifndef __itkMeshToMeshFilter_h |
| 21 |
|
#define __itkMeshToMeshFilter_h |
| 22 |
|
|
| 23 |
|
#include "itkMeshSource.h" |
| 24 |
|
|
| 25 |
|
namespace itk |
| 26 |
|
{ |
| 27 |
|
|
| 28 |
|
/** \class MeshToMeshFilter |
| 29 |
|
* \brief |
| 30 |
|
* |
| 31 |
|
* MeshToMeshFilter is the base class for all process objects that output |
| 32 |
|
* mesh data, and require mesh data as input. Specifically, this class |
| 33 |
|
* defines the SetInput() method for defining the input to a filter. |
| 34 |
|
* |
| 35 |
|
* \ingroup MeshFilters |
| 36 |
|
* |
| 37 |
|
*/ |
| 38 |
|
template <class TInputMesh, class TOutputMesh> |
| 39 |
|
class ITK_EXPORT MeshToMeshFilter : public MeshSource<TOutputMesh> |
| 40 |
|
{ |
| 41 |
|
public: |
| 42 |
|
/** Standard class typedefs. */ |
| 43 |
|
typedef MeshToMeshFilter Self; |
| 44 |
TDA |
typedef MeshSource<TOutputMesh> Superclass; |
| 45 |
TDA |
typedef SmartPointer<Self> Pointer; |
| 46 |
TDA |
typedef SmartPointer<const Self> ConstPointer; |
| 47 |
|
|
| 48 |
|
/** Method for creation through the object factory. */ |
| 49 |
|
itkNewMacro(Self); |
| 50 |
|
|
| 51 |
|
/** Run-time type information (and related methods). */ |
| 52 |
|
itkTypeMacro(MeshToMeshFilter,MeshSource); |
| 53 |
|
|
| 54 |
|
/** Some convenient typedefs. */ |
| 55 |
|
typedef TInputMesh InputMeshType; |
| 56 |
TDA |
typedef typename InputMeshType::Pointer InputMeshPointer; |
| 57 |
|
|
| 58 |
|
/** Set the mesh input of this process object. */ |
| 59 |
|
void SetInput(InputMeshType *input); |
| 60 |
|
|
| 61 |
|
/** Get the mesh input of this process object. */ |
| 62 |
|
InputMeshType * GetInput(void); |
| 63 |
|
InputMeshType * GetInput(unsigned int idx); |
| 64 |
|
|
| 65 |
|
protected: |
| 66 |
|
MeshToMeshFilter(); |
| 67 |
|
~MeshToMeshFilter() {}; |
| 68 |
|
|
| 69 |
|
private: |
| 70 |
|
MeshToMeshFilter(const Self&); //purposely not implemented |
| 71 |
|
void operator=(const Self&); //purposely not implemented |
| 72 |
|
|
| 73 |
|
}; |
| 74 |
|
|
| 75 |
|
} // end namespace itk |
| 76 |
|
|
| 77 |
|
#ifndef ITK_MANUAL_INSTANTIATION |
| 78 |
|
#include "itkMeshToMeshFilter.txx" |
| 79 |
|
#endif |
| 80 |
|
|
| 81 |
|
#endif |
| 82 |
|
|