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 -------------------------------------------------------------------------*/
38 #ifndef vtkAreaLayout_h
39 #define vtkAreaLayout_h
40 
41 #include "vtkInfovisLayoutModule.h" // For export macro
42 #include "vtkTreeAlgorithm.h"
43 
45 
46 class VTKINFOVISLAYOUT_EXPORT vtkAreaLayout : public vtkTreeAlgorithm
47 {
48 public:
49  static vtkAreaLayout *New();
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
57  virtual void SetSizeArrayName(const char* name)
59 
61 
67  vtkGetStringMacro(AreaArrayName);
68  vtkSetStringMacro(AreaArrayName);
70 
72 
76  vtkGetMacro(EdgeRoutingPoints, bool);
77  vtkSetMacro(EdgeRoutingPoints, bool);
78  vtkBooleanMacro(EdgeRoutingPoints, bool);
80 
82 
85  vtkGetObjectMacro(LayoutStrategy, vtkAreaLayoutStrategy);
88 
93 
98  vtkIdType FindVertex(float pnt[2]);
99 
103  void GetBoundingArea(vtkIdType id, float *sinfo);
104 
105 protected:
108 
113 
115 
116 private:
117 
118  vtkAreaLayout(const vtkAreaLayout&) VTK_DELETE_FUNCTION;
119  void operator=(const vtkAreaLayout&) VTK_DELETE_FUNCTION;
120 };
121 
122 #endif
vtkAreaLayout::SetSizeArrayName
virtual void SetSizeArrayName(const char *name)
The array name to use for retrieving the relative size of each vertex.
Definition: vtkAreaLayout.h:57
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTreeAlgorithm.h
vtkAreaLayout::GetMTime
virtual vtkMTimeType GetMTime()
Get the modification time of the layout algorithm.
vtkAreaLayout::FindVertex
vtkIdType FindVertex(float pnt[2])
Get the vertex whose area contains the point, or return -1 if no vertex area covers the point.
vtkAreaLayout::GetBoundingArea
void GetBoundingArea(vtkIdType id, float *sinfo)
The bounding area information for a certain vertex id.
vtkAreaLayout::vtkAreaLayout
vtkAreaLayout()
vtkAreaLayout::EdgeRoutingPointsArrayName
char * EdgeRoutingPointsArrayName
Definition: vtkAreaLayout.h:111
vtkAreaLayout::SetLayoutStrategy
void SetLayoutStrategy(vtkAreaLayoutStrategy *strategy)
vtkDataObject::FIELD_ASSOCIATION_VERTICES
@ FIELD_ASSOCIATION_VERTICES
Definition: vtkDataObject.h:264
vtkMTimeType
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248
vtkAreaLayout::~vtkAreaLayout
~vtkAreaLayout()
vtkAreaLayout::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkAreaLayout::LayoutStrategy
vtkAreaLayoutStrategy * LayoutStrategy
Definition: vtkAreaLayout.h:112
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkAreaLayout::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkTreeAlgorithm
Superclass for algorithms that produce only Tree as output.
Definition: vtkTreeAlgorithm.h:49
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkAreaLayout::EdgeRoutingPoints
bool EdgeRoutingPoints
Definition: vtkAreaLayout.h:110
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkAreaLayout::New
static vtkAreaLayout * New()
vtkAreaLayout::AreaArrayName
char * AreaArrayName
Definition: vtkAreaLayout.h:109
vtkAreaLayout
layout a vtkTree into a tree map
Definition: vtkAreaLayout.h:47
vtkAreaLayoutStrategy
abstract superclass for all area layout strategies
Definition: vtkAreaLayoutStrategy.h:49
vtkAlgorithm::SetInputArrayToProcess
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, const char *name)
Set the input data arrays that this algorithm will process.