VMTK
Loading...
Searching...
No Matches
vtkvmtkVoronoiDiagram3D.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 __vtkvmtkVoronoiDiagram3D_h
26#define __vtkvmtkVoronoiDiagram3D_h
27
28#include "vtkPolyDataAlgorithm.h"
29#include "vtkIdList.h"
30#include "vtkCellArray.h"
31//#include "vtkvmtkComputationalGeometryWin32Header.h"
32#include "vtkvmtkWin32Header.h"
33
34class vtkUnstructuredGrid;
35
36class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkVoronoiDiagram3D : public vtkPolyDataAlgorithm
37{
38 public:
39 vtkTypeMacro(vtkvmtkVoronoiDiagram3D,vtkPolyDataAlgorithm);
40 void PrintSelf(std::ostream& os, vtkIndent indent) override;
41
43
44 // vtkSetMacro(BuildLines,int);
45 // vtkGetMacro(BuildLines,int);
46 // vtkBooleanMacro(BuildLines,int);
47
49
53 vtkSetStringMacro(RadiusArrayName);
54 vtkGetStringMacro(RadiusArrayName);
56
58
62 vtkGetObjectMacro(PoleIds,vtkIdList);
64
65 protected:
68
69 int FillInputPortInformation(int, vtkInformation *info) override;
70
71 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override;
72
73 void ExtractUniqueEdges(vtkUnstructuredGrid* input, vtkCellArray* edgeArray);
74 void BuildVoronoiPolys(vtkUnstructuredGrid* input, vtkCellArray* voronoiPolys);
75 void BuildVoronoiLines() {}; // not yet implemented
76
78 vtkIdList* PoleIds;
80
81 private:
82 vtkvmtkVoronoiDiagram3D(const vtkvmtkVoronoiDiagram3D&); // Not implemented.
83 void operator=(const vtkvmtkVoronoiDiagram3D&); // Not implemented.
84};
85
86#endif
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
static vtkvmtkVoronoiDiagram3D * New()
int FillInputPortInformation(int, vtkInformation *info) override
void ExtractUniqueEdges(vtkUnstructuredGrid *input, vtkCellArray *edgeArray)
void PrintSelf(std::ostream &os, vtkIndent indent) override
void BuildVoronoiPolys(vtkUnstructuredGrid *input, vtkCellArray *voronoiPolys)