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:
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 
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkBoxLayoutStrategy
a tree map layout that puts vertices in square-ish boxes
Definition: vtkBoxLayoutStrategy.h:41
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkTree
A rooted tree data structure.
Definition: vtkTree.h:60
vtkBoxLayoutStrategy::~vtkBoxLayoutStrategy
~vtkBoxLayoutStrategy()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkBoxLayoutStrategy::vtkBoxLayoutStrategy
vtkBoxLayoutStrategy()
vtkTreeMapLayoutStrategy.h
VTKINFOVISLAYOUT_EXPORT
#define VTKINFOVISLAYOUT_EXPORT
Definition: vtkInfovisLayoutModule.h:15
vtkInfovisLayoutModule.h
vtkTreeMapLayoutStrategy
abstract superclass for all tree map layout strategies
Definition: vtkTreeMapLayoutStrategy.h:51
vtkBoxLayoutStrategy::New
static vtkBoxLayoutStrategy * New()
vtkBoxLayoutStrategy::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkBoxLayoutStrategy::Layout
virtual void Layout(vtkTree *inputTree, vtkDataArray *coordsArray, vtkDataArray *sizeArray)