VTK  9.4.20250327
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
21#ifndef vtkCirclePackToPolyData_h
22#define vtkCirclePackToPolyData_h
23
24#include "vtkInfovisLayoutModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
29{
30public:
32
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
42 virtual void SetCirclesArrayName(const char* name)
43 {
44 this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name);
45 }
46
48
52 vtkSetMacro(Resolution, unsigned int);
53 vtkGetMacro(Resolution, unsigned int);
55
56 int FillInputPortInformation(int port, vtkInformation* info) override;
57
58protected:
61
62 unsigned int Resolution;
63
65
66private:
68 void operator=(const vtkCirclePackToPolyData&) = delete;
69 void CreateCircle(const double& x, const double& y, const double& z, const double& radius,
70 const int& resolution, vtkPolyData* polyData);
71};
72
73VTK_ABI_NAMESPACE_END
74#endif
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:108
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