VTK  9.1.0
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=========================================================================*/
117#ifndef vtkCurvatures_h
118#define vtkCurvatures_h
119
120#include "vtkFiltersGeneralModule.h" // For export macro
121#include "vtkPolyDataAlgorithm.h"
122
123#define VTK_CURVATURE_GAUSS 0
124#define VTK_CURVATURE_MEAN 1
125#define VTK_CURVATURE_MAXIMUM 2
126#define VTK_CURVATURE_MINIMUM 3
127
128class VTKFILTERSGENERAL_EXPORT vtkCurvatures : public vtkPolyDataAlgorithm
129{
130public:
132 void PrintSelf(ostream& os, vtkIndent indent) override;
133
138
140
147 vtkSetMacro(CurvatureType, int);
148 vtkGetMacro(CurvatureType, int);
149 void SetCurvatureTypeToGaussian() { this->SetCurvatureType(VTK_CURVATURE_GAUSS); }
150 void SetCurvatureTypeToMean() { this->SetCurvatureType(VTK_CURVATURE_MEAN); }
151 void SetCurvatureTypeToMaximum() { this->SetCurvatureType(VTK_CURVATURE_MAXIMUM); }
152 void SetCurvatureTypeToMinimum() { this->SetCurvatureType(VTK_CURVATURE_MINIMUM); }
154
156
160 vtkSetMacro(InvertMeanCurvature, vtkTypeBool);
161 vtkGetMacro(InvertMeanCurvature, vtkTypeBool);
162 vtkBooleanMacro(InvertMeanCurvature, vtkTypeBool);
164
165protected:
167
168 // Usual data generation method
170
175
176 void ComputeGaussCurvature(vtkCellArray* facets, vtkPolyData* output, double* gaussCurvatureData);
177
182
187
192
193 // Vars
196
197private:
198 vtkCurvatures(const vtkCurvatures&) = delete;
199 void operator=(const vtkCurvatures&) = delete;
200};
201
202#endif
object to represent cell connectivity
Definition: vtkCellArray.h:290
compute curvatures (Gauss and mean) of a Polydata object
void SetCurvatureTypeToGaussian()
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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void GetMeanCurvature(vtkPolyData *output)
Discrete Mean curvature (H) computation.
static vtkCurvatures * New()
Construct with curvature type set to Gauss.
void SetCurvatureTypeToMinimum()
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"...
void GetGaussCurvature(vtkPolyData *output)
Discrete Gauss curvature (K) computation.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GetMaximumCurvature(vtkPolyData *input, vtkPolyData *output)
Maximum principal curvature.
void ComputeGaussCurvature(vtkCellArray *facets, vtkPolyData *output, double *gaussCurvatureData)
void GetMinimumCurvature(vtkPolyData *input, vtkPolyData *output)
Minimum principal curvature.
vtkTypeBool InvertMeanCurvature
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:195
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_CURVATURE_MAXIMUM
#define VTK_CURVATURE_MINIMUM
#define VTK_CURVATURE_MEAN
#define VTK_CURVATURE_GAUSS