VTK  9.2.6
vtkPCANormalEstimation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPCANormalEstimation.h
5
6 Copyright (c) Kitware, Inc.
7 All rights reserved.
8 See LICENSE file 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=========================================================================*/
57
58#ifndef vtkPCANormalEstimation_h
59#define vtkPCANormalEstimation_h
60
61#include "vtkFiltersPointsModule.h" // For export macro
63
65class vtkIdList;
66
67class VTKFILTERSPOINTS_EXPORT vtkPCANormalEstimation : public vtkPolyDataAlgorithm
68{
69public:
71
77 void PrintSelf(ostream& os, vtkIndent indent) override;
79
81
87 vtkSetClampMacro(SampleSize, int, 1, VTK_INT_MAX);
88 vtkGetMacro(SampleSize, int);
90
94 enum Style
95 {
97 POINT = 1,
99 };
100
102
114 vtkSetMacro(NormalOrientation, int);
115 vtkGetMacro(NormalOrientation, int);
120
122
128 vtkSetVector3Macro(OrientationPoint, double);
129 vtkGetVectorMacro(OrientationPoint, double, 3);
131
133
136 vtkSetMacro(FlipNormals, bool);
137 vtkGetMacro(FlipNormals, bool);
138 vtkBooleanMacro(FlipNormals, bool);
140
142
148 vtkGetObjectMacro(Locator, vtkAbstractPointLocator);
150
151protected:
154
155 // IVars
161
162 // Methods used to produce consistent normal orientations
164 vtkPoints* inPts, float* normals, char* pointMap, vtkIdList* wave, vtkIdList* wave2);
165
166 // Pipeline management
168 int FillInputPortInformation(int port, vtkInformation* info) override;
169
170private:
172 void operator=(const vtkPCANormalEstimation&) = delete;
173};
174
175#endif
abstract class to quickly locate points in 3-space
list of point or cell ids
Definition vtkIdList.h:34
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
void SetLocator(vtkAbstractPointLocator *locator)
Specify a point locator.
vtkAbstractPointLocator * Locator
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instantiating, obtaining type information, and printing information.
~vtkPCANormalEstimation() override
void SetNormalOrientationToPoint()
Configure how the filter addresses consistency in normal oreientation.
void TraverseAndFlip(vtkPoints *inPts, float *normals, char *pointMap, vtkIdList *wave, vtkIdList *wave2)
void SetNormalOrientationToAsComputed()
Configure how the filter addresses consistency in normal oreientation.
virtual void SetNormalOrientation(int)
Configure how the filter addresses consistency in normal oreientation.
static vtkPCANormalEstimation * New()
Standard methods for instantiating, obtaining type information, and printing information.
Style
This enum is used to control how normals oriented is controlled.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetNormalOrientationToGraphTraversal()
Configure how the filter addresses consistency in normal oreientation.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
represent and manipulate 3D points
Definition vtkPoints.h:40
#define VTK_INT_MAX
Definition vtkType.h:155