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 -------------------------------------------------------------------------*/
36 #ifndef vtkCirclePackToPolyData_h
37 #define vtkCirclePackToPolyData_h
38 
39 #include "vtkInfovisLayoutModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
43 {
44 public:
45  static vtkCirclePackToPolyData *New();
46 
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
54  virtual void SetCirclesArrayName(const char* name)
57 
59 
60  vtkSetMacro(Resolution, unsigned int);
61  vtkGetMacro(Resolution, unsigned int);
63 
65 
66 protected:
69 
70  unsigned int Resolution;
71 
73 private:
74  vtkCirclePackToPolyData(const vtkCirclePackToPolyData&); // Not implemented.
75  void operator=(const vtkCirclePackToPolyData&); // Not implemented.
76  void CreateCircle(const double& x,
77  const double& y,
78  const double& z,
79  const double& radius,
80  const int& resolution,
81  vtkPolyData* polyData);
82 };
83 
84 #endif
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKINFOVISLAYOUT_EXPORT
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
virtual void SetCirclesArrayName(const char *name)
static vtkPolyDataAlgorithm * New()
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
converts a tree to a polygonal data representing a circle packing of the hierarchy.
Store zero or more vtkInformation instances.