VMTK
vtkvmtkLinearToQuadraticSurfaceMeshFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: VMTK
4 Module: $RCSfile: vtkvmtkLinearToQuadraticSurfaceMeshFilter.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 =========================================================================*/
28 #ifndef __vtkvmtkLinearToQuadraticSurfaceMeshFilter_h
29 #define __vtkvmtkLinearToQuadraticSurfaceMeshFilter_h
30 
31 #include "vtkUnstructuredGridAlgorithm.h"
32 #include "vtkvmtkWin32Header.h"
33 
34 class VTK_VMTK_MISC_EXPORT vtkvmtkLinearToQuadraticSurfaceMeshFilter : public vtkUnstructuredGridAlgorithm
35 {
36  public:
37  vtkTypeMacro(vtkvmtkLinearToQuadraticSurfaceMeshFilter,vtkUnstructuredGridAlgorithm);
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
41 
42  vtkSetMacro(SubdivisionMethod,int);
43  vtkGetMacro(SubdivisionMethod,int);
45  { this->SubdivisionMethod = LINEAR_SUBDIVISION; }
47  { this->SubdivisionMethod = BUTTERFLY_SUBDIVISION; }
48 
49  protected:
52 
53  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
54 
56 
57  //BTX
58  enum
59  {
61  BUTTERFLY_SUBDIVISION
62  };
63  //ETX
64 
65  private:
67  void operator=(const vtkvmtkLinearToQuadraticSurfaceMeshFilter&); // Not implemented.
68 };
69 
70 #endif
Converts linear surface elements to quadratic surface elements via either linear subdivision of lapla...