VTK  9.0.1
vtkCirclePackFrontChainLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCirclePackFrontChainLayoutStrategy.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 -------------------------------------------------------------------------*/
45 #ifndef vtkCirclePackFrontChainLayoutStrategy_h
46 #define vtkCirclePackFrontChainLayoutStrategy_h
47 
49 #include "vtkInfovisLayoutModule.h" // For export macro
50 
51 class vtkCirclePackFrontChainLayoutStrategyImplementation;
52 
53 class VTKINFOVISLAYOUT_EXPORT vtkCirclePackFrontChainLayoutStrategy
55 {
56 public:
58 
60  void PrintSelf(ostream& os, vtkIndent indent) override;
61 
67  void Layout(vtkTree* inputTree, vtkDataArray* areaArray, vtkDataArray* sizeArray) override;
68 
70 
74  vtkGetMacro(Width, int);
75  vtkSetMacro(Width, int);
76  vtkGetMacro(Height, int);
77  vtkSetMacro(Height, int);
79 
80 protected:
83 
85  int Width;
86  int Height;
87 
88 private:
89  vtkCirclePackFrontChainLayoutStrategyImplementation* pimpl; // Private implementation
90 
92  void operator=(const vtkCirclePackFrontChainLayoutStrategy&) = delete;
93 };
94 
95 #endif
layout a vtkTree into packed circles using the front chain algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray) override
Perform the layout of the input tree, and store the circle bounds of each vertex as a tuple in a data...
static vtkCirclePackFrontChainLayoutStrategy * New()
abstract superclass for all circle packing layout strategies.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:50
a simple class to control print indentation
Definition: vtkIndent.h:34
A rooted tree data structure.
Definition: vtkTree.h:55