VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkTreeMapToPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTreeMapToPolyData.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 -------------------------------------------------------------------------*/
32 #ifndef __vtkTreeMapToPolyData_h
33 #define __vtkTreeMapToPolyData_h
34 
35 #include "vtkInfovisLayoutModule.h" // For export macro
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm
39 {
40 public:
41  static vtkTreeMapToPolyData *New();
42  vtkTypeMacro(vtkTreeMapToPolyData,vtkPolyDataAlgorithm);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
49  virtual void SetRectanglesArrayName(const char* name)
50  { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); }
52 
54 
58  virtual void SetLevelArrayName(const char* name)
59  { this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); }
61 
63 
64  vtkGetMacro(LevelDeltaZ, double);
65  vtkSetMacro(LevelDeltaZ, double);
67 
69 
70  vtkGetMacro(AddNormals, bool);
71  vtkSetMacro(AddNormals, bool);
73 
74  int FillInputPortInformation(int port, vtkInformation* info);
75 
76 protected:
79 
80  double LevelDeltaZ;
81  bool AddNormals;
82 
83  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
84 private:
85  vtkTreeMapToPolyData(const vtkTreeMapToPolyData&); // Not implemented.
86  void operator=(const vtkTreeMapToPolyData&); // Not implemented.
87 };
88 
89 #endif
virtual void SetRectanglesArrayName(const char *name)
virtual void SetLevelArrayName(const char *name)
converts a tree to a polygonal data representing a tree map