VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTreeMapToPolyData.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00032 #ifndef __vtkTreeMapToPolyData_h 00033 #define __vtkTreeMapToPolyData_h 00034 00035 #include "vtkInfovisLayoutModule.h" // For export macro 00036 #include "vtkPolyDataAlgorithm.h" 00037 00038 class VTKINFOVISLAYOUT_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm 00039 { 00040 public: 00041 static vtkTreeMapToPolyData *New(); 00042 vtkTypeMacro(vtkTreeMapToPolyData,vtkPolyDataAlgorithm); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00049 virtual void SetRectanglesArrayName(const char* name) 00050 { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); } 00052 00054 00058 virtual void SetLevelArrayName(const char* name) 00059 { this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); } 00061 00063 00064 vtkGetMacro(LevelDeltaZ, double); 00065 vtkSetMacro(LevelDeltaZ, double); 00067 00069 00070 vtkGetMacro(AddNormals, bool); 00071 vtkSetMacro(AddNormals, bool); 00073 00074 int FillInputPortInformation(int port, vtkInformation* info); 00075 00076 protected: 00077 vtkTreeMapToPolyData(); 00078 ~vtkTreeMapToPolyData(); 00079 00080 double LevelDeltaZ; 00081 bool AddNormals; 00082 00083 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00084 private: 00085 vtkTreeMapToPolyData(const vtkTreeMapToPolyData&); // Not implemented. 00086 void operator=(const vtkTreeMapToPolyData&); // Not implemented. 00087 }; 00088 00089 #endif