VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTreeRingToPolyData.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 -------------------------------------------------------------------------*/ 00034 #ifndef __vtkTreeRingToPolyData_h 00035 #define __vtkTreeRingToPolyData_h 00036 00037 #include "vtkPolyDataAlgorithm.h" 00038 00039 class VTK_INFOVIS_EXPORT vtkTreeRingToPolyData : public vtkPolyDataAlgorithm 00040 { 00041 public: 00042 static vtkTreeRingToPolyData *New(); 00043 00044 vtkTypeMacro(vtkTreeRingToPolyData,vtkPolyDataAlgorithm); 00045 void PrintSelf(ostream& os, vtkIndent indent); 00046 00048 00052 virtual void SetSectorsArrayName(const char* name) 00053 { this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_VERTICES, name); } 00055 00057 00058 vtkSetMacro(ShrinkPercentage, double); 00059 vtkGetMacro(ShrinkPercentage, double); 00061 00062 int FillInputPortInformation(int port, vtkInformation* info); 00063 00064 protected: 00065 vtkTreeRingToPolyData(); 00066 ~vtkTreeRingToPolyData(); 00067 00068 double ShrinkPercentage; 00069 00070 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00071 private: 00072 vtkTreeRingToPolyData(const vtkTreeRingToPolyData&); // Not implemented. 00073 void operator=(const vtkTreeRingToPolyData&); // Not implemented. 00074 }; 00075 00076 #endif