VTK
vtkCirclePackToPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCirclePackToPolyData.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
31 #ifndef vtkCirclePackToPolyData_h
32 #define vtkCirclePackToPolyData_h
33 
34 #include "vtkInfovisLayoutModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
38 {
39 public:
40  static vtkCirclePackToPolyData *New();
41 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
51  virtual void SetCirclesArrayName(const char* name)
53 
55 
59  vtkSetMacro(Resolution, unsigned int);
60  vtkGetMacro(Resolution, unsigned int);
62 
64 
65 protected:
67  ~vtkCirclePackToPolyData() override;
68 
69  unsigned int Resolution;
70 
72 private:
74  void operator=(const vtkCirclePackToPolyData&) = delete;
75  void CreateCircle(const double& x,
76  const double& y,
77  const double& z,
78  const double& radius,
79  const int& resolution,
80  vtkPolyData* polyData);
81 };
82 
83 #endif
vtkX3D::resolution
Definition: vtkX3D.h:466
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCirclePackToPolyData::SetCirclesArrayName
virtual void SetCirclesArrayName(const char *name)
The field containing triples of the form (Xcenter, Ycenter, Radius).
Definition: vtkCirclePackToPolyData.h:51
vtkDataObject::FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:257
vtkPolyDataAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCirclePackToPolyData
converts a tree to a polygonal data representing a circle packing of the hierarchy.
Definition: vtkCirclePackToPolyData.h:37
vtkPolyDataAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::name
Definition: vtkX3D.h:219
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
vtkCirclePackToPolyData::Resolution
unsigned int Resolution
Definition: vtkCirclePackToPolyData.h:69
vtkX3D::radius
Definition: vtkX3D.h:252
vtkAlgorithm::SetInputArrayToProcess
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41