VTK
vtkCirclePackLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCirclePackLayout.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  -------------------------------------------------------------------------*/
44 #ifndef __vtkCirclePackLayout_h
45 #define __vtkCirclePackLayout_h
46 
47 #include "vtkInfovisLayoutModule.h" // For export macro
48 #include "vtkTreeAlgorithm.h"
49 
51 
52 class VTKINFOVISLAYOUT_EXPORT vtkCirclePackLayout : public vtkTreeAlgorithm
53 {
54 public:
55  static vtkCirclePackLayout *New();
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
61 
64  vtkGetStringMacro(CirclesFieldName);
65  vtkSetStringMacro(CirclesFieldName);
67 
69 
71  virtual void SetSizeArrayName(const char* name)
74 
76 
77  vtkGetObjectMacro(LayoutStrategy, vtkCirclePackLayoutStrategy);
78  void SetLayoutStrategy(vtkCirclePackLayoutStrategy * strategy);
80 
85  vtkIdType FindVertex(float pnt[2], float *cinfo=0);
86 
89  void GetBoundingCircle(vtkIdType id, float *cinfo);
90 
92  virtual unsigned long GetMTime();
93 
94 protected:
97 
100 
102 
103 private:
104 
105  vtkCirclePackLayout(const vtkCirclePackLayout&); // Not implemented.
106  void operator=(const vtkCirclePackLayout&); // Not implemented.
107 };
108 
109 #endif