VMTK
vtkvmtkMeshProjection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkMeshProjection.h,v $
5 Language: C++
6 
7  Copyright (c) Luca Antiga, David Steinman. All rights reserved.
8  See LICENSE file for details.
9 
10  Portions of this code are covered under the VTK copyright.
11  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
12  for details.
13 
14  This software is distributed WITHOUT ANY WARRANTY; without even
15  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  PURPOSE. See the above copyright notices for more information.
17 
18 =========================================================================*/
26 #ifndef __vtkvmtkMeshProjection_h
27 #define __vtkvmtkMeshProjection_h
28 
29 #include "vtkUnstructuredGridAlgorithm.h"
30 #include "vtkUnstructuredGrid.h"
31 #include "vtkvmtkWin32Header.h"
32 
33 class VTK_VMTK_MISC_EXPORT vtkvmtkMeshProjection : public vtkUnstructuredGridAlgorithm
34 {
35  public:
36  vtkTypeMacro(vtkvmtkMeshProjection,vtkUnstructuredGridAlgorithm);
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
39  static vtkvmtkMeshProjection *New();
40 
41  vtkSetObjectMacro(ReferenceMesh,vtkUnstructuredGrid);
42  vtkGetObjectMacro(ReferenceMesh,vtkUnstructuredGrid);
43 
44  vtkSetMacro(Tolerance,double);
45  vtkGetMacro(Tolerance,double);
46 
47  protected:
50 
51  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
52 
53  vtkUnstructuredGrid *ReferenceMesh;
54  double Tolerance;
55 
56  private:
57  vtkvmtkMeshProjection(const vtkvmtkMeshProjection&); // Not implemented.
58  void operator=(const vtkvmtkMeshProjection&); // Not implemented.
59 };
60 
61 #endif
vtkUnstructuredGrid * ReferenceMesh
Project point data from a reference mesh onto a query mesh.