KWStyle - itkMeshToMeshFilter.txx
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkMeshToMeshFilter.txx.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 DEF #ifndef _itkMeshToMeshFilter_txx
21 DEF #define _itkMeshToMeshFilter_txx
22
23 #include "itkMeshToMeshFilter.h"
24
25
26 namespace itk
27 {
28   
29 /**
30  *
31  */
32 template <class TInputMesh, class TOutputMesh>
33 MeshToMeshFilter<TInputMesh,TOutputMesh>
34 ::MeshToMeshFilter()
35 {
36   // Modify superclass default values, can be overridden by subclasses
37   this->SetNumberOfRequiredInputs(1);
38
39 }
40
41
42 /**
43  *
44  */
45 template <class TInputMesh, class TOutputMesh>
46 void 
47 MeshToMeshFilter<TInputMesh,TOutputMesh>
48 ::SetInput(TInputMesh *input)
49 {
50   this->ProcessObject::SetNthInput(0, input);
51 }
52
53
54 /**
55  *
56  */
57 template <class TInputMesh, class TOutputMesh>
58 typename MeshToMeshFilter<TInputMesh,TOutputMesh>::InputMeshType *
59 MeshToMeshFilter<TInputMesh,TOutputMesh>
60 ::GetInput()
61 {
62   if (this->GetNumberOfInputs() < 1)
63     {
64     return 0;
65     }
66   
67   return static_cast<TInputMesh*>
68 IND ****(this->ProcessObject::GetInput(0));
69 }
70
71   
72 /**
73  *
74  */
75 template <class TInputMesh, class TOutputMesh>
76 typename MeshToMeshFilter<TInputMesh,TOutputMesh>::InputMeshType *
77 MeshToMeshFilter<TInputMesh,TOutputMesh>
78 ::GetInput(unsigned int idx)
79 {
80   return static_cast<TInputMesh*>
81 IND ****(this->ProcessObject::GetInput(idx));
82 }
83
84
85 // end namespace itk
86
87 #endif
88

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