VTK
vtkTableAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTableAlgorithm.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 -------------------------------------------------------------------------*/
38 #ifndef vtkTableAlgorithm_h
39 #define vtkTableAlgorithm_h
40 
41 #include "vtkCommonExecutionModelModule.h" // For export macro
42 #include "vtkAlgorithm.h"
43 
44 class vtkDataSet;
45 class vtkTable;
46 
48 {
49 public:
50  static vtkTableAlgorithm *New();
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  virtual int ProcessRequest(vtkInformation*,
60 
62 
63  vtkTable* GetOutput() { return this->GetOutput(0); }
64  vtkTable* GetOutput(int index);
66 
68 
71  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
72  void SetInputData(int index, vtkDataObject* obj);
74 
75 protected:
78 
79  // convenience method
80  virtual int RequestInformation(vtkInformation* request,
81  vtkInformationVector** inputVector,
82  vtkInformationVector* outputVector);
83 
85 
87  virtual int RequestData(vtkInformation* request,
88  vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector);
91 
93 
95  virtual int RequestUpdateExtent(vtkInformation*,
99 
100  // see algorithm for more info
103 
104 private:
105  vtkTableAlgorithm(const vtkTableAlgorithm&); // Not implemented.
106  void operator=(const vtkTableAlgorithm&); // Not implemented.
107 };
108 
109 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
void SetInputData(vtkDataObject *obj)
virtual int FillInputPortInformation(int port, vtkInformation *info)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
Superclass for algorithms that produce only vtkTables as output.
vtkTable * GetOutput()
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)