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 "vtkTreeAlgorithm.h"
41 
43 
45 {
46 public:
47  static vtkAreaLayout *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
55  virtual void SetSizeArrayName(const char* name)
58 
60 
64  vtkGetStringMacro(AreaArrayName);
65  vtkSetStringMacro(AreaArrayName);
67 
69 
71  vtkGetMacro(EdgeRoutingPoints, bool);
72  vtkSetMacro(EdgeRoutingPoints, bool);
73  vtkBooleanMacro(EdgeRoutingPoints, bool);
75 
77 
78  vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
79  void SetLayoutStrategy(vtkAreaLayoutStrategy * strategy);
81 
83  virtual unsigned long GetMTime();
84 
87  vtkIdType FindVertex(float pnt[2]);
88 
90  void GetBoundingArea(vtkIdType id, float *sinfo);
91 
92 protected:
93  vtkAreaLayout();
94  ~vtkAreaLayout();
95 
100 
102 
103 private:
104 
105  vtkAreaLayout(const vtkAreaLayout&); // Not implemented.
106  void operator=(const vtkAreaLayout&); // Not implemented.
107 };
108 
109 #endif
virtual void SetSizeArrayName(const char *name)
Definition: vtkAreaLayout.h:55
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)
vtkAreaLayoutStrategy * LayoutStrategy
Definition: vtkAreaLayout.h:99
int vtkIdType
Definition: vtkType.h:255
void PrintSelf(ostream &os, vtkIndent indent)
char * AreaArrayName
Definition: vtkAreaLayout.h:96
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:44
virtual unsigned long GetMTime()
a simple class to control print indentation
Definition: vtkIndent.h:37
bool EdgeRoutingPoints
Definition: vtkAreaLayout.h:97
#define VTK_INFOVIS_EXPORT
Store zero or more vtkInformation instances.
static vtkTreeAlgorithm * New()
char * EdgeRoutingPointsArrayName
Definition: vtkAreaLayout.h:98