VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyDataLineEmbedder.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=========================================================================*/
24
25#ifndef __vtkvmtkPolyDataLineEmbedder_h
26#define __vtkvmtkPolyDataLineEmbedder_h
27
28#include "vtkPolyDataAlgorithm.h"
29#include "vtkPolyData.h"
30//#include "vtkvmtkComputationalGeometryWin32Header.h"
31#include "vtkvmtkWin32Header.h"
32
33class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyDataLineEmbedder : public vtkPolyDataAlgorithm
34{
35 public:
36 vtkTypeMacro(vtkvmtkPolyDataLineEmbedder,vtkPolyDataAlgorithm);
37 void PrintSelf(std::ostream& os, vtkIndent indent) override;
38
40
42
47 vtkSetObjectMacro(Lines,vtkPolyData);
48 vtkGetObjectMacro(Lines,vtkPolyData);
50
52
58 vtkSetStringMacro(EdgeArrayName);
59 vtkGetStringMacro(EdgeArrayName);
61
63
68 vtkSetStringMacro(EdgePCoordArrayName);
69 vtkGetStringMacro(EdgePCoordArrayName);
71
73
78 vtkSetMacro(SnapToMeshTolerance,double);
79 vtkGetMacro(SnapToMeshTolerance,double);
81
87 vtkGetObjectMacro(EmbeddedLinePointIds,vtkIdList);
88
89 protected:
92
93 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
94
95 vtkIdType GetCellId(vtkPolyData* input, vtkIdList* pointIds);
96 void GetNeighbors(vtkIdType pointId, vtkIdList* neighborPointIds);
97 void OrderNeighborhood(vtkIdList* cellPointIds, vtkIdList* neighborIds, vtkIdList* addedPointIds, vtkIdList* snapToMeshIds, vtkDataArray* edgeArray, vtkDataArray* edgePCoordArray, vtkIdList* orderedNeighborIds);
98 void Triangulate(vtkIdList* cellPointIds, vtkIdList* orderedNeighborIds, vtkIdList* triangulationIds);
99
103 vtkPolyData* Lines;
104
106
107 private:
109 void operator=(const vtkvmtkPolyDataLineEmbedder&); // Not implemented.
110};
111
112#endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void Triangulate(vtkIdList *cellPointIds, vtkIdList *orderedNeighborIds, vtkIdList *triangulationIds)
static vtkvmtkPolyDataLineEmbedder * New()
vtkIdType GetCellId(vtkPolyData *input, vtkIdList *pointIds)
void OrderNeighborhood(vtkIdList *cellPointIds, vtkIdList *neighborIds, vtkIdList *addedPointIds, vtkIdList *snapToMeshIds, vtkDataArray *edgeArray, vtkDataArray *edgePCoordArray, vtkIdList *orderedNeighborIds)
void PrintSelf(std::ostream &os, vtkIndent indent) override
void GetNeighbors(vtkIdType pointId, vtkIdList *neighborPointIds)