VMTK
Loading...
Searching...
No Matches
vtkvmtkBoundaryReferenceSystems.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=========================================================================*/
34
35#ifndef __vtkvmtkBoundaryReferenceSystems_h
36#define __vtkvmtkBoundaryReferenceSystems_h
37
38#include "vtkPolyDataAlgorithm.h"
39//#include "vtkvmtkComputationalGeometryWin32Header.h"
40#include "vtkvmtkWin32Header.h"
41
42class vtkPolyData;
43class vtkPoints;
44class vtkPolyLine;
45
46class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkBoundaryReferenceSystems : public vtkPolyDataAlgorithm
47{
48 public:
49 vtkTypeMacro(vtkvmtkBoundaryReferenceSystems,vtkPolyDataAlgorithm);
50 void PrintSelf(std::ostream& os, vtkIndent indent) override;
51
53
55
60 vtkSetStringMacro(BoundaryRadiusArrayName);
61 vtkGetStringMacro(BoundaryRadiusArrayName);
63
65
70 vtkSetStringMacro(BoundaryNormalsArrayName);
71 vtkGetStringMacro(BoundaryNormalsArrayName);
73
75
81 vtkSetStringMacro(Point1ArrayName);
82 vtkGetStringMacro(Point1ArrayName);
84
86
92 vtkSetStringMacro(Point2ArrayName);
93 vtkGetStringMacro(Point2ArrayName);
95
99 static void ComputeBoundaryBarycenter(vtkPoints* points, double barycenter[3]);
100
104 static double ComputeBoundaryMeanRadius(vtkPoints* points, double barycenter[3]);
105
110 static void ComputeBoundaryNormal(vtkPoints* points, double barycenter[3], double normal[3]);
111
117 static void OrientBoundaryNormalOutwards(vtkPolyData* surface, vtkPolyData* boundaries, vtkIdType boundaryCellId, double normal[3], double outwardNormal[3]);
118
126 static void ComputeReferenceSystemPoints(double origin[3], double normal[3], double radius, double point1[3], double point2[3]);
127
128 protected:
131
132 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
133
138
139 private:
141 void operator=(const vtkvmtkBoundaryReferenceSystems&); // Not implemented.
142};
143
144#endif
static vtkvmtkBoundaryReferenceSystems * New()
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static void ComputeBoundaryBarycenter(vtkPoints *points, double barycenter[3])
static void OrientBoundaryNormalOutwards(vtkPolyData *surface, vtkPolyData *boundaries, vtkIdType boundaryCellId, double normal[3], double outwardNormal[3])
static void ComputeBoundaryNormal(vtkPoints *points, double barycenter[3], double normal[3])
static void ComputeReferenceSystemPoints(double origin[3], double normal[3], double radius, double point1[3], double point2[3])
static double ComputeBoundaryMeanRadius(vtkPoints *points, double barycenter[3])
void PrintSelf(std::ostream &os, vtkIndent indent) override