VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkStripper.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 =========================================================================*/ 00056 #ifndef __vtkStripper_h 00057 #define __vtkStripper_h 00058 00059 #include "vtkPolyDataAlgorithm.h" 00060 00061 class VTK_GRAPHICS_EXPORT vtkStripper : public vtkPolyDataAlgorithm 00062 { 00063 public: 00064 vtkTypeRevisionMacro(vtkStripper,vtkPolyDataAlgorithm); 00065 void PrintSelf(ostream& os, vtkIndent indent); 00066 00068 static vtkStripper *New(); 00069 00071 00073 vtkSetClampMacro(MaximumLength,int,4,100000); 00074 vtkGetMacro(MaximumLength,int); 00076 00078 00080 vtkBooleanMacro(PassCellDataAsFieldData, int); 00081 vtkSetMacro(PassCellDataAsFieldData, int); 00082 vtkGetMacro(PassCellDataAsFieldData, int); 00084 00086 00090 vtkSetMacro(PassThroughCellIds,int); 00091 vtkGetMacro(PassThroughCellIds,int); 00092 vtkBooleanMacro(PassThroughCellIds,int); 00094 00096 00100 vtkSetMacro(PassThroughPointIds,int); 00101 vtkGetMacro(PassThroughPointIds,int); 00102 vtkBooleanMacro(PassThroughPointIds,int); 00104 00105 protected: 00106 vtkStripper(); 00107 ~vtkStripper() {} 00108 00109 // Usual data generation method 00110 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00111 00112 int MaximumLength; 00113 int PassCellDataAsFieldData; 00114 int PassThroughCellIds; 00115 int PassThroughPointIds; 00116 00117 private: 00118 vtkStripper(const vtkStripper&); // Not implemented. 00119 void operator=(const vtkStripper&); // Not implemented. 00120 }; 00121 00122 #endif