00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTokenLengthFilter.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 -------------------------------------------------------------------------*/ 00020 00048 #ifndef __vtkTokenLengthFilter_h 00049 #define __vtkTokenLengthFilter_h 00050 00051 #include <vtkTableAlgorithm.h> 00052 00053 class VTK_TEXT_ANALYSIS_EXPORT vtkTokenLengthFilter : 00054 public vtkTableAlgorithm 00055 { 00056 public: 00057 static vtkTokenLengthFilter* New(); 00058 vtkTypeMacro(vtkTokenLengthFilter, vtkTableAlgorithm); 00059 void PrintSelf(ostream& os, vtkIndent indent); 00060 00062 00065 vtkSetMacro(Begin, int); 00066 vtkGetMacro(Begin, int); 00067 vtkSetMacro(End, int); 00068 vtkGetMacro(End, int); 00070 00071 //BTX 00072 protected: 00073 vtkTokenLengthFilter(); 00074 ~vtkTokenLengthFilter(); 00075 00076 virtual int RequestData( 00077 vtkInformation* request, 00078 vtkInformationVector** inputVector, 00079 vtkInformationVector* outputVector); 00080 00081 int Begin; 00082 int End; 00083 00084 private: 00085 vtkTokenLengthFilter(const vtkTokenLengthFilter &); // Not implemented. 00086 void operator=(const vtkTokenLengthFilter &); // Not implemented. 00087 //ETX 00088 }; 00089 00090 #endif // __vtkTokenLengthFilter_h 00091