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