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 "vtkPolyDataAlgorithm.h" 00036 00037 class VTK_INFOVIS_EXPORT vtkTreeMapToPolyData : public vtkPolyDataAlgorithm 00038 { 00039 public: 00040 static vtkTreeMapToPolyData *New(); 00041 vtkTypeMacro(vtkTreeMapToPolyData,vtkPolyDataAlgorithm); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00048 virtual void SetRectanglesArrayName(const char* name) 00049 { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); } 00051 00053 00057 virtual void SetLevelArrayName(const char* name) 00058 { this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); } 00060 00062 00063 vtkGetMacro(LevelDeltaZ, double); 00064 vtkSetMacro(LevelDeltaZ, double); 00066 00068 00069 vtkGetMacro(AddNormals, bool); 00070 vtkSetMacro(AddNormals, bool); 00072 00073 int FillInputPortInformation(int port, vtkInformation* info); 00074 00075 protected: 00076 vtkTreeMapToPolyData(); 00077 ~vtkTreeMapToPolyData(); 00078 00079 double LevelDeltaZ; 00080 bool AddNormals; 00081 00082 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00083 private: 00084 vtkTreeMapToPolyData(const vtkTreeMapToPolyData&); // Not implemented. 00085 void operator=(const vtkTreeMapToPolyData&); // Not implemented. 00086 }; 00087 00088 #endif