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-------------------------------------------------------------------------*/
34#ifndef vtkCirclePackToPolyData_h
35#define vtkCirclePackToPolyData_h
36
37#include "vtkInfovisLayoutModule.h" // For export macro
39
40class VTKINFOVISLAYOUT_EXPORT vtkCirclePackToPolyData : public vtkPolyDataAlgorithm
41{
42public:
44
46 void PrintSelf(ostream& os, vtkIndent indent);
47
54 virtual void SetCirclesArrayName(const char* name)
56
58
62 vtkSetMacro(Resolution, unsigned int);
63 vtkGetMacro(Resolution, unsigned int);
65
67
68protected:
71
72 unsigned int Resolution;
73
75private:
76 vtkCirclePackToPolyData(const vtkCirclePackToPolyData&) VTK_DELETE_FUNCTION;
77 void operator=(const vtkCirclePackToPolyData&) VTK_DELETE_FUNCTION;
78 void CreateCircle(const double& x,
79 const double& y,
80 const double& z,
81 const double& radius,
82 const int& resolution,
83 vtkPolyData* polyData);
84};
85
86#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)
Fill the input port information objects for this algorithm.
virtual void SetCirclesArrayName(const char *name)
The field containing triples of the form (Xcenter, Ycenter, Radius).
static vtkCirclePackToPolyData * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
@ FIELD_ASSOCIATION_VERTICES
a simple class to control print indentation
Definition: vtkIndent.h:40
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:86
@ 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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.