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) VTK_OVERRIDE;
44 
51  virtual void SetCirclesArrayName(const char* name)
53 
55 
59  vtkSetMacro(Resolution, unsigned int);
60  vtkGetMacro(Resolution, unsigned int);
62 
63  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
64 
65 protected:
67  ~vtkCirclePackToPolyData() VTK_OVERRIDE;
68 
69  unsigned int Resolution;
70 
71  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
72 private:
73  vtkCirclePackToPolyData(const vtkCirclePackToPolyData&) VTK_DELETE_FUNCTION;
74  void operator=(const vtkCirclePackToPolyData&) VTK_DELETE_FUNCTION;
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
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
virtual void SetCirclesArrayName(const char *name)
The field containing triples of the form (Xcenter, Ycenter, Radius).
static vtkPolyDataAlgorithm * New()
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
converts a tree to a polygonal data representing a circle packing of the hierarchy.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.