ParaView
vtkPVTextSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTextSource.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
23 #ifndef vtkPVTextSource_h
24 #define vtkPVTextSource_h
25 
26 #include "vtkPVVTKExtensionsDefaultModule.h" //needed for exports
27 #include "vtkTableAlgorithm.h"
28 
29 class VTKPVVTKEXTENSIONSDEFAULT_EXPORT vtkPVTextSource : public vtkTableAlgorithm
30 {
31 public:
32  static vtkPVTextSource* New();
33  vtkTypeMacro(vtkPVTextSource, vtkTableAlgorithm);
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
40  vtkSetStringMacro(Text);
41  vtkGetStringMacro(Text);
43 
44 protected:
46  ~vtkPVTextSource();
47 
48  virtual int FillInputPortInformation(int port, vtkInformation* info);
49  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
50  vtkInformationVector* outputVector);
51  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
52  vtkInformationVector* outputVector);
53  char* Text;
54 
55 private:
56  vtkPVTextSource(const vtkPVTextSource&) VTK_DELETE_FUNCTION;
57  void operator=(const vtkPVTextSource&) VTK_DELETE_FUNCTION;
58 };
59 
60 #endif
source that generates a 1x1 vtkTable with a single string data.