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 "vtkTreeAlgorithm.h"
48 
50 
52 {
53 public:
54  static vtkCirclePackLayout *New();
55 
57  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
63  vtkGetStringMacro(CirclesFieldName);
64  vtkSetStringMacro(CirclesFieldName);
66 
68 
70  virtual void SetSizeArrayName(const char* name)
73 
75 
76  vtkGetObjectMacro(LayoutStrategy, vtkCirclePackLayoutStrategy);
77  void SetLayoutStrategy(vtkCirclePackLayoutStrategy * strategy);
79 
84  vtkIdType FindVertex(float pnt[2], float *cinfo=0);
85 
88  void GetBoundingCircle(vtkIdType id, float *cinfo);
89 
91  virtual unsigned long GetMTime();
92 
93 protected:
96 
99 
101 
102 private:
103 
104  vtkCirclePackLayout(const vtkCirclePackLayout&); // Not implemented.
105  void operator=(const vtkCirclePackLayout&); // Not implemented.
106 };
107 
108 #endif