VTK  9.5.2
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 {
45 }
46
48
52 vtkSetMacro(Resolution, unsigned int);
53 vtkGetMacro(Resolution, unsigned int);
55
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
void SetInputArrayToProcess(const char *name, int fieldAssociation)
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.
@ FIELD_ASSOCIATION_VERTICES
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:72
@ resolution
Definition: vtkX3D.h:466
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219
@ radius
Definition: vtkX3D.h:252