VTK
vtkBoxLayoutStrategy.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkBoxLayoutStrategy.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 vtkBoxLayoutStrategy_h
35 #define vtkBoxLayoutStrategy_h
36 
37 #include "vtkInfovisLayoutModule.h" // For export macro
39 
41 {
42 public:
43  static vtkBoxLayoutStrategy *New();
44 
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
51  virtual void Layout(
52  vtkTree* inputTree,
53  vtkDataArray* coordsArray,
54  vtkDataArray* sizeArray);
56 
57 protected:
60 
61 private:
62 
63  void LayoutChildren(vtkTree *inputTree, vtkDataArray *coordsArray,
64  vtkIdType parentId,
65  float parentMinX, float parentMaxX,
66  float parentMinY, float parentMaxY);
67 
68  vtkBoxLayoutStrategy(const vtkBoxLayoutStrategy&); // Not implemented.
69  void operator=(const vtkBoxLayoutStrategy&); // Not implemented.
70 };
71 
72 #endif
73 
#define VTKINFOVISLAYOUT_EXPORT
virtual void Layout(vtkTree *inputTree, vtkDataArray *areaArray, vtkDataArray *sizeArray)=0
int vtkIdType
Definition: vtkType.h:247
a simple class to control print indentation
Definition: vtkIndent.h:38
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
void PrintSelf(ostream &os, vtkIndent indent)
abstract superclass for all tree map layout strategies
a tree map layout that puts vertices in square-ish boxes
static vtkObject * New()
A rooted tree data structure.
Definition: vtkTree.h:59