VTK
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 -------------------------------------------------------------------------*/
47 #ifndef vtkCirclePackFrontChainLayoutStrategy_h
48 #define vtkCirclePackFrontChainLayoutStrategy_h
49 
50 #include "vtkInfovisLayoutModule.h" // For export macro
52 
53 class vtkCirclePackFrontChainLayoutStrategyImplementation;
54 
56 {
57 public:
59 
61  void PrintSelf(ostream& os, vtkIndent indent);
62 
64 
66  virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray,
67  vtkDataArray* sizeArray);
69 
71 
73  vtkGetMacro(Width, int);
74  vtkSetMacro(Width, int);
75  vtkGetMacro(Height, int);
76  vtkSetMacro(Height, int);
78 
79 protected:
82 
84  int Width;
85  int Height;
86 
87 private:
88 
89  vtkCirclePackFrontChainLayoutStrategyImplementation* pimpl; // Private implementation
90 
92  void operator=(const vtkCirclePackFrontChainLayoutStrategy&); // Not implemented.
93 };
94 
95 #endif
#define VTKINFOVISLAYOUT_EXPORT
layout a vtkTree into packed circles using the front chain algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for all circle packing layout strategies.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
A rooted tree data structure.
Definition: vtkTree.h:59
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray)=0