VMTK
Loading...
Searching...
No Matches
vtkvmtkBoundaryLayerGenerator.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
48
49#ifndef __vtkvmtkBoundaryLayerGenerator_h
50#define __vtkvmtkBoundaryLayerGenerator_h
51
52#include "vtkUnstructuredGridAlgorithm.h"
53#include "vtkvmtkWin32Header.h"
54
55class vtkPoints;
56class vtkUnsignedCharArray;
57class vtkDataArray;
58
59class VTK_VMTK_MISC_EXPORT vtkvmtkBoundaryLayerGenerator : public vtkUnstructuredGridAlgorithm
60{
61 public:
62 vtkTypeMacro(vtkvmtkBoundaryLayerGenerator,vtkUnstructuredGridAlgorithm);
63 void PrintSelf(std::ostream& os, vtkIndent indent) override;
64
66
68
74 vtkGetStringMacro(WarpVectorsArrayName);
75 vtkSetStringMacro(WarpVectorsArrayName);
77
79
84 vtkGetStringMacro(LayerThicknessArrayName);
85 vtkSetStringMacro(LayerThicknessArrayName);
87
89
97
99
103 vtkGetMacro(ConstantThickness,int);
104 vtkSetMacro(ConstantThickness,int);
105 vtkBooleanMacro(ConstantThickness,int);
107
109
114 vtkGetMacro(IncludeSurfaceCells,int);
115 vtkSetMacro(IncludeSurfaceCells,int);
116 vtkBooleanMacro(IncludeSurfaceCells,int);
118
120
125 vtkGetMacro(IncludeSidewallCells,int);
126 vtkSetMacro(IncludeSidewallCells,int);
127 vtkBooleanMacro(IncludeSidewallCells,int);
129
131
136 vtkGetMacro(NegateWarpVectors,int);
137 vtkSetMacro(NegateWarpVectors,int);
138 vtkBooleanMacro(NegateWarpVectors,int);
140
142
145 vtkGetMacro(LayerThickness,double);
146 vtkSetMacro(LayerThickness,double);
148
150
155 vtkGetMacro(LayerThicknessRatio,double);
156 vtkSetMacro(LayerThicknessRatio,double);
158
160
164 vtkGetMacro(MaximumLayerThickness,double);
165 vtkSetMacro(MaximumLayerThickness,double);
167
169
173 vtkGetMacro(NumberOfSubLayers,int);
174 vtkSetMacro(NumberOfSubLayers,int);
176
178
183 vtkGetMacro(SubLayerRatio,double);
184 vtkSetMacro(SubLayerRatio,double);
186
188
194 vtkGetMacro(NumberOfSubsteps,int);
195 vtkSetMacro(NumberOfSubsteps,int);
197
199
203 vtkGetMacro(Relaxation,double);
204 vtkSetMacro(Relaxation,double);
206
208
213 vtkGetMacro(LocalCorrectionFactor,double);
214 vtkSetMacro(LocalCorrectionFactor,double);
216
218
227
229
235 vtkGetMacro(NumberOfTangledCells,int);
237
239
246 vtkSetStringMacro(CellEntityIdsArrayName);
247 vtkGetStringMacro(CellEntityIdsArrayName);
249
251
256 vtkGetMacro(InnerSurfaceCellEntityId,int);
257 vtkSetMacro(InnerSurfaceCellEntityId,int);
259
261
266 vtkGetMacro(OuterSurfaceCellEntityId,int);
267 vtkSetMacro(OuterSurfaceCellEntityId,int);
269
271
276 vtkGetMacro(SidewallCellEntityId,int);
277 vtkSetMacro(SidewallCellEntityId,int);
279
281
285 vtkGetMacro(VolumeCellEntityId,int);
286 vtkSetMacro(VolumeCellEntityId,int);
288
294 vtkGetObjectMacro(InnerSurface,vtkUnstructuredGrid);
295
296 protected:
299
300 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
301
302 void BuildWarpVectors(vtkUnstructuredGrid* input);
303 void IncrementalWarpPoints(vtkUnstructuredGrid* input, vtkPoints* basePoints, vtkPoints* warpedPoints, int substep, int numberOfSubsteps, double relaxation);
304 void IncrementalWarpVectors(vtkUnstructuredGrid* input, int numberOfSubsteps, double relaxation);
305 int CheckTangle(vtkUnstructuredGrid* input, vtkUnsignedCharArray* checkArray);
306 void LocalUntangle(vtkUnstructuredGrid* input, vtkUnsignedCharArray* checkArray, double alpha);
307 void WarpPoints(vtkPoints* inputPoints, vtkPoints* warpedPoints, int subLayerId, bool quadratic);
308 void UnwrapSublayers(vtkUnstructuredGrid* input, vtkPoints* outputPoints);
309
310 vtkDataArray* WarpVectorsArray;
311 vtkDataArray* LayerThicknessArray;
312
315
318
322
326
330
331 vtkUnstructuredGrid* InnerSurface;
332
338
343
344 private:
346 void operator=(const vtkvmtkBoundaryLayerGenerator&); // Not implemented.
347};
348
349#endif
void WarpPoints(vtkPoints *inputPoints, vtkPoints *warpedPoints, int subLayerId, bool quadratic)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkvmtkBoundaryLayerGenerator * New()
void LocalUntangle(vtkUnstructuredGrid *input, vtkUnsignedCharArray *checkArray, double alpha)
int CheckTangle(vtkUnstructuredGrid *input, vtkUnsignedCharArray *checkArray)
void PrintSelf(std::ostream &os, vtkIndent indent) override
void BuildWarpVectors(vtkUnstructuredGrid *input)
void UnwrapSublayers(vtkUnstructuredGrid *input, vtkPoints *outputPoints)
void IncrementalWarpPoints(vtkUnstructuredGrid *input, vtkPoints *basePoints, vtkPoints *warpedPoints, int substep, int numberOfSubsteps, double relaxation)
void IncrementalWarpVectors(vtkUnstructuredGrid *input, int numberOfSubsteps, double relaxation)