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 =========================================================================*/
65 #ifndef vtkCurvatures_h
66 #define vtkCurvatures_h
67 
68 #include "vtkFiltersGeneralModule.h" // For export macro
69 #include "vtkPolyDataAlgorithm.h"
70 
71 #define VTK_CURVATURE_GAUSS 0
72 #define VTK_CURVATURE_MEAN 1
73 #define VTK_CURVATURE_MAXIMUM 2
74 #define VTK_CURVATURE_MINIMUM 3
75 
77 {
78 public:
80  void PrintSelf(ostream& os, vtkIndent indent);
81 
83  static vtkCurvatures *New();
84 
86 
89  vtkSetMacro(CurvatureType,int);
90  vtkGetMacro(CurvatureType,int);
92  { this->SetCurvatureType(VTK_CURVATURE_GAUSS); }
94  { this->SetCurvatureType(VTK_CURVATURE_MEAN); }
96  { this->SetCurvatureType(VTK_CURVATURE_MAXIMUM); }
98  { this->SetCurvatureType(VTK_CURVATURE_MINIMUM); }
100 
102 
104  vtkSetMacro(InvertMeanCurvature,int);
105  vtkGetMacro(InvertMeanCurvature,int);
106  vtkBooleanMacro(InvertMeanCurvature,int);
107 protected:
108  vtkCurvatures();
110 
111  // Usual data generation method
113 
116  void GetGaussCurvature(vtkPolyData *output);
117 
118  // discrete Mean curvature (H) computation,
119  // cf http://www-ipg.umds.ac.uk/p.batchelor/curvatures/curvatures.html
120  void GetMeanCurvature(vtkPolyData *output);
121 
123  void GetMaximumCurvature(vtkPolyData *input, vtkPolyData *output);
124 
126  void GetMinimumCurvature(vtkPolyData *input, vtkPolyData *output);
127 
128 
129  // Vars
132 
133 private:
134  vtkCurvatures(const vtkCurvatures&); // Not implemented.
135  void operator=(const vtkCurvatures&); // Not implemented.
136 
137 };
138 
139 #endif
140 
141 
#define VTK_CURVATURE_MEAN
Definition: vtkCurvatures.h:72
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_CURVATURE_MAXIMUM
Definition: vtkCurvatures.h:73
void SetCurvatureTypeToGaussian()
Definition: vtkCurvatures.h:91
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_CURVATURE_MINIMUM
Definition: vtkCurvatures.h:74
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTK_CURVATURE_GAUSS
Definition: vtkCurvatures.h:71
void SetCurvatureTypeToMinimum()
Definition: vtkCurvatures.h:97
#define VTKFILTERSGENERAL_EXPORT
void SetCurvatureTypeToMaximum()
Definition: vtkCurvatures.h:95
void SetCurvatureTypeToMean()
Definition: vtkCurvatures.h:93
Store zero or more vtkInformation instances.
compute curvatures (Gauss and mean) of a Polydata object
Definition: vtkCurvatures.h:76