00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkTextExtraction.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 00073 #ifndef __vtkTextExtraction_h 00074 #define __vtkTextExtraction_h 00075 00076 #include <vtkTableAlgorithm.h> 00077 00078 class vtkTextExtractionStrategy; 00079 00080 class VTK_TEXT_ANALYSIS_EXPORT vtkTextExtraction : 00081 public vtkTableAlgorithm 00082 { 00083 public: 00084 static vtkTextExtraction* New(); 00085 vtkTypeMacro(vtkTextExtraction, vtkTableAlgorithm); 00086 void PrintSelf(ostream& os, vtkIndent indent); 00087 00089 void ClearStrategies(); 00090 00092 00094 void PrependStrategy(vtkTextExtractionStrategy* strategy); 00095 // Description: 00096 // Append a strategy to the list of strategies. vtkTextExtraction assumes ownership 00097 // of the supplied object. 00098 void AppendStrategy(vtkTextExtractionStrategy* strategy); 00100 00102 00103 vtkSetStringMacro(OutputArray); 00104 vtkGetStringMacro(OutputArray); 00106 00107 //BTX 00108 protected: 00109 vtkTextExtraction(); 00110 ~vtkTextExtraction(); 00111 00112 virtual int RequestData( 00113 vtkInformation* request, 00114 vtkInformationVector** inputVector, 00115 vtkInformationVector* outputVector); 00116 00117 private: 00118 vtkTextExtraction(const vtkTextExtraction &); // Not implemented. 00119 void operator=(const vtkTextExtraction &); // Not implemented. 00120 00121 char* OutputArray; 00122 00123 class Implementation; 00124 Implementation* const Internal; 00125 //ETX 00126 }; 00127 00128 #endif // __vtkTextExtraction_h 00129