00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkProcrustesAlignmentFilter.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00055 #ifndef __vtkProcrustesAlignmentFilter_h 00056 #define __vtkProcrustesAlignmentFilter_h 00057 00058 #include "vtkPointSetAlgorithm.h" 00059 00060 class vtkLandmarkTransform; 00061 class vtkPointSet; 00062 class vtkPoints; 00063 00064 class VTK_HYBRID_EXPORT vtkProcrustesAlignmentFilter : public vtkPointSetAlgorithm 00065 { 00066 public: 00067 vtkTypeRevisionMacro(vtkProcrustesAlignmentFilter,vtkPointSetAlgorithm); 00068 00070 void PrintSelf(ostream& os, vtkIndent indent); 00071 00073 static vtkProcrustesAlignmentFilter *New(); 00074 00076 00079 vtkGetObjectMacro(LandmarkTransform,vtkLandmarkTransform); 00081 00083 00084 vtkGetObjectMacro(MeanPoints,vtkPoints); 00086 00088 void SetNumberOfInputs(int n); 00089 00091 00093 void SetInput(int idx, vtkPointSet* p); 00094 void SetInput(int idx, vtkDataObject* input); 00096 00099 vtkPointSet* GetInput(int idx); 00100 00101 protected: 00102 vtkProcrustesAlignmentFilter(); 00103 ~vtkProcrustesAlignmentFilter(); 00104 00106 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00107 00108 virtual int FillInputPortInformation(int port, vtkInformation *info); 00109 00110 vtkLandmarkTransform *LandmarkTransform; 00111 00112 vtkPoints *MeanPoints; 00113 00114 private: 00115 vtkProcrustesAlignmentFilter(const vtkProcrustesAlignmentFilter&); // Not implemented. 00116 void operator=(const vtkProcrustesAlignmentFilter&); // Not implemented. 00117 }; 00118 00119 #endif 00120 00121