VTK  9.3.20240329
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
25 #include "vtkPolyDataAlgorithm.h"
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
29 {
30 public:
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 
58 protected:
61 
62  unsigned int Resolution;
63 
65 
66 private:
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 
73 VTK_ABI_NAMESPACE_END
74 #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).
~vtkCirclePackToPolyData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCirclePackToPolyData * New()
@ FIELD_ASSOCIATION_VERTICES
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
Definition: vtkPolyData.h:181
@ 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