VMTK
Loading...
Searching...
No Matches
vtkvmtkSteepestDescentShooter.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=========================================================================*/
32
33#ifndef __vtkvmtkSteepestDescentShooter_h
34#define __vtkvmtkSteepestDescentShooter_h
35
37#include "vtkPolyData.h"
38#include "vtkEdgeTable.h"
39#include "vtkIntArray.h"
40#include "vtkDoubleArray.h"
41#include "vtkIdList.h"
42//#include "vtkvmtkComputationalGeometryWin32Header.h"
43#include "vtkvmtkWin32Header.h"
44
45class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkSteepestDescentShooter : public vtkvmtkNonManifoldSteepestDescent
46{
47 public:
49 void PrintSelf(std::ostream& os, vtkIndent indent) override;
50
52
54
58 vtkSetObjectMacro(Target,vtkPolyData);
59 vtkGetObjectMacro(Target,vtkPolyData);
61
63
67 vtkSetObjectMacro(Seeds,vtkIdList);
68 vtkGetObjectMacro(Seeds,vtkIdList);
70
72
78 vtkSetStringMacro(EdgeArrayName);
79 vtkGetStringMacro(EdgeArrayName);
81
83
88 vtkSetStringMacro(TargetVectorsArrayName);
89 vtkGetStringMacro(TargetVectorsArrayName);
91
93
98 vtkSetStringMacro(TargetCellIdsArrayName);
99 vtkGetStringMacro(TargetCellIdsArrayName);
101
103
107 vtkSetStringMacro(TargetPCoordsArrayName);
108 vtkGetStringMacro(TargetPCoordsArrayName);
110
111 protected:
114
115 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
116
117 void Backtrace(vtkPolyData* input, vtkIdType seedId);
118
119 void FindNearestPolyLinePoint(double* currentPoint, double* lineClosestPoint, int &lineCellId, int &lineCellSubId, double &linePCoord);
120
121 vtkPolyData* Target;
122 vtkIdList* Seeds;
123
124 vtkIntArray* TargetArray;
125 vtkDataArray* EdgeArray;
126
127 vtkDoubleArray* TargetVectors;
128 vtkIntArray* TargetCellIds;
129 vtkDoubleArray* TargetPCoords;
130
132
136
137 private:
139 void operator=(const vtkvmtkSteepestDescentShooter&); // Not implemented.
140};
141
142#endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
void FindNearestPolyLinePoint(double *currentPoint, double *lineClosestPoint, int &lineCellId, int &lineCellSubId, double &linePCoord)
void Backtrace(vtkPolyData *input, vtkIdType seedId)
static vtkvmtkSteepestDescentShooter * New()