VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
42 class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
43 {
44 public:
45  static vtkCirclePackToPolyData *New();
46 
47  vtkTypeMacro(vtkCirclePackToPolyData,vtkPolyDataAlgorithm);
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
54  virtual void SetCirclesArrayName(const char* name)
55  { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); }
57 
59 
60  vtkSetMacro(Resolution, unsigned int);
61  vtkGetMacro(Resolution, unsigned int);
63 
64  int FillInputPortInformation(int port, vtkInformation* info);
65 
66 protected:
69 
70  unsigned int Resolution;
71 
72  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
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 void SetCirclesArrayName(const char *name)
converts a tree to a polygonal data representing a circle packing of the hierarchy.