VTK  9.3.0
vtkCirclePackToPolyData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
18#ifndef vtkCirclePackToPolyData_h
19#define vtkCirclePackToPolyData_h
20
21#include "vtkInfovisLayoutModule.h" // For export macro
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
26{
27public:
29
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
39 virtual void SetCirclesArrayName(const char* name)
40 {
42 }
43
45
49 vtkSetMacro(Resolution, unsigned int);
50 vtkGetMacro(Resolution, unsigned int);
52
53 int FillInputPortInformation(int port, vtkInformation* info) override;
54
55protected:
58
59 unsigned int Resolution;
60
62
63private:
65 void operator=(const vtkCirclePackToPolyData&) = delete;
66 void CreateCircle(const double& x, const double& y, const double& z, const double& radius,
67 const int& resolution, vtkPolyData* polyData);
68};
69
70VTK_ABI_NAMESPACE_END
71#endif
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
converts a tree to a polygonal data representing a circle packing of the hierarchy.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
virtual void SetCirclesArrayName(const char *name)
The field containing triples of the form (Xcenter, Ycenter, Radius).
static vtkCirclePackToPolyData * New()
~vtkCirclePackToPolyData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80