VTK
vtkTextExtraction.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextExtraction.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
73 #ifndef __vtkTextExtraction_h
74 #define __vtkTextExtraction_h
75 
76 #include <vtkTableAlgorithm.h>
77 
79 
81  public vtkTableAlgorithm
82 {
83 public:
84  static vtkTextExtraction* New();
86  void PrintSelf(ostream& os, vtkIndent indent);
87 
89  void ClearStrategies();
90 
92 
94  void PrependStrategy(vtkTextExtractionStrategy* strategy);
95  // Description:
96  // Append a strategy to the list of strategies. vtkTextExtraction assumes ownership
97  // of the supplied object.
98  void AppendStrategy(vtkTextExtractionStrategy* strategy);
100 
102 
103  vtkSetStringMacro(OutputArray);
104  vtkGetStringMacro(OutputArray);
106 
107 //BTX
108 protected:
111 
112  virtual int RequestData(
113  vtkInformation* request,
114  vtkInformationVector** inputVector,
115  vtkInformationVector* outputVector);
116 
117 private:
118  vtkTextExtraction(const vtkTextExtraction &); // Not implemented.
119  void operator=(const vtkTextExtraction &); // Not implemented.
120 
121  char* OutputArray;
122 
123  class Implementation;
124  Implementation* const Internal;
125 //ETX
126 };
127 
128 #endif // __vtkTextExtraction_h
129 
#define VTK_TEXT_ANALYSIS_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Extracts text from documents based on their MIME type.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
Abstract interface for an object that can extract tagged text from a resource.