VTK
vtkAreaLayout.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAreaLayout.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 -------------------------------------------------------------------------*/
37 #ifndef vtkAreaLayout_h
38 #define vtkAreaLayout_h
39 
40 #include "vtkInfovisLayoutModule.h" // For export macro
41 #include "vtkTreeAlgorithm.h"
42 
44 
46 {
47 public:
48  static vtkAreaLayout *New();
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
56  virtual void SetSizeArrayName(const char* name)
59 
61 
65  vtkGetStringMacro(AreaArrayName);
66  vtkSetStringMacro(AreaArrayName);
68 
70 
72  vtkGetMacro(EdgeRoutingPoints, bool);
73  vtkSetMacro(EdgeRoutingPoints, bool);
74  vtkBooleanMacro(EdgeRoutingPoints, bool);
76 
78 
79  vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
80  void SetLayoutStrategy(vtkAreaLayoutStrategy * strategy);
82 
84  virtual unsigned long GetMTime();
85 
88  vtkIdType FindVertex(float pnt[2]);
89 
91  void GetBoundingArea(vtkIdType id, float *sinfo);
92 
93 protected:
94  vtkAreaLayout();
95  ~vtkAreaLayout();
96 
101 
103 
104 private:
105 
106  vtkAreaLayout(const vtkAreaLayout&); // Not implemented.
107  void operator=(const vtkAreaLayout&); // Not implemented.
108 };
109 
110 #endif
virtual void SetSizeArrayName(const char *name)
Definition: vtkAreaLayout.h:56
Superclass for algorithms that produce only Tree as output.
Store vtkAlgorithm input/output information.
abstract superclass for all area layout strategies
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKINFOVISLAYOUT_EXPORT
vtkAreaLayoutStrategy * LayoutStrategy
int vtkIdType
Definition: vtkType.h:275
void PrintSelf(ostream &os, vtkIndent indent)
char * AreaArrayName
Definition: vtkAreaLayout.h:97
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:45
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:38
bool EdgeRoutingPoints
Definition: vtkAreaLayout.h:98
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
char * EdgeRoutingPointsArrayName
Definition: vtkAreaLayout.h:99