VTK  9.1.0
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-------------------------------------------------------------------------*/
38#ifndef vtkAreaLayout_h
39#define vtkAreaLayout_h
40
41#include "vtkInfovisLayoutModule.h" // For export macro
42#include "vtkTreeAlgorithm.h"
43
45
46class VTKINFOVISLAYOUT_EXPORT vtkAreaLayout : public vtkTreeAlgorithm
47{
48public:
49 static vtkAreaLayout* New();
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57 virtual void SetSizeArrayName(const char* name)
58 {
60 }
61
63
69 vtkGetStringMacro(AreaArrayName);
70 vtkSetStringMacro(AreaArrayName);
72
74
78 vtkGetMacro(EdgeRoutingPoints, bool);
79 vtkSetMacro(EdgeRoutingPoints, bool);
80 vtkBooleanMacro(EdgeRoutingPoints, bool);
82
84
87 vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
90
95
100 vtkIdType FindVertex(float pnt[2]);
101
105 void GetBoundingArea(vtkIdType id, float* sinfo);
106
107protected:
109 ~vtkAreaLayout() override;
110
115
117
118private:
119 vtkAreaLayout(const vtkAreaLayout&) = delete;
120 void operator=(const vtkAreaLayout&) = delete;
121};
122
123#endif
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.
abstract superclass for all area layout strategies
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:47
char * AreaArrayName
vtkMTimeType GetMTime() override
Get the modification time of the layout algorithm.
void SetLayoutStrategy(vtkAreaLayoutStrategy *strategy)
The strategy to use when laying out the tree map.
bool EdgeRoutingPoints
vtkIdType FindVertex(float pnt[2])
Get the vertex whose area contains the point, or return -1 if no vertex area covers the point.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void GetBoundingArea(vtkIdType id, float *sinfo)
The bounding area information for a certain vertex id.
~vtkAreaLayout() override
static vtkAreaLayout * New()
vtkAreaLayoutStrategy * LayoutStrategy
char * EdgeRoutingPointsArrayName
virtual void SetSizeArrayName(const char *name)
The array name to use for retrieving the relative size of each vertex.
Definition: vtkAreaLayout.h:57
@ FIELD_ASSOCIATION_VERTICES
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only Tree as output.
int vtkIdType
Definition: vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287