VTK
vtkCurvatures.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCurvatures.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
67 #ifndef vtkCurvatures_h
68 #define vtkCurvatures_h
69 
70 #include "vtkFiltersGeneralModule.h" // For export macro
71 #include "vtkPolyDataAlgorithm.h"
72 
73 #define VTK_CURVATURE_GAUSS 0
74 #define VTK_CURVATURE_MEAN 1
75 #define VTK_CURVATURE_MAXIMUM 2
76 #define VTK_CURVATURE_MINIMUM 3
77 
78 class VTKFILTERSGENERAL_EXPORT vtkCurvatures : public vtkPolyDataAlgorithm
79 {
80 public:
82  void PrintSelf(ostream& os, vtkIndent indent) override;
83 
87  static vtkCurvatures *New();
88 
90 
97  vtkSetMacro(CurvatureType,int);
98  vtkGetMacro(CurvatureType,int);
100  { this->SetCurvatureType(VTK_CURVATURE_GAUSS); }
102  { this->SetCurvatureType(VTK_CURVATURE_MEAN); }
104  { this->SetCurvatureType(VTK_CURVATURE_MAXIMUM); }
106  { this->SetCurvatureType(VTK_CURVATURE_MINIMUM); }
108 
110 
114  vtkSetMacro(InvertMeanCurvature,vtkTypeBool);
115  vtkGetMacro(InvertMeanCurvature,vtkTypeBool);
116  vtkBooleanMacro(InvertMeanCurvature,vtkTypeBool);
118 
119 protected:
120  vtkCurvatures();
121 
122  // Usual data generation method
124 
129  void GetGaussCurvature(vtkPolyData *output);
130 
131  // discrete Mean curvature (H) computation,
132  // cf http://www-ipg.umds.ac.uk/p.batchelor/curvatures/curvatures.html
133  void GetMeanCurvature(vtkPolyData *output);
134 
138  void GetMaximumCurvature(vtkPolyData *input, vtkPolyData *output);
139 
143  void GetMinimumCurvature(vtkPolyData *input, vtkPolyData *output);
144 
145 
146  // Vars
149 
150 private:
151  vtkCurvatures(const vtkCurvatures&) = delete;
152  void operator=(const vtkCurvatures&) = delete;
153 
154 };
155 
156 #endif
157 
158 
#define VTK_CURVATURE_MEAN
Definition: vtkCurvatures.h:74
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_CURVATURE_MAXIMUM
Definition: vtkCurvatures.h:75
void SetCurvatureTypeToGaussian()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
Definition: vtkCurvatures.h:99
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkTypeBool InvertMeanCurvature
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_CURVATURE_MINIMUM
Definition: vtkCurvatures.h:76
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
#define VTK_CURVATURE_GAUSS
Definition: vtkCurvatures.h:73
void SetCurvatureTypeToMinimum()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void SetCurvatureTypeToMaximum()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
void SetCurvatureTypeToMean()
Set/Get Curvature type VTK_CURVATURE_GAUSS: Gaussian curvature, stored as DataArray "Gauss_Curvature"...
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
compute curvatures (Gauss and mean) of a Polydata object
Definition: vtkCurvatures.h:78