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 -------------------------------------------------------------------------*/
39 #ifndef vtkTableAlgorithm_h
40 #define vtkTableAlgorithm_h
41 
42 #include "vtkCommonExecutionModelModule.h" // For export macro
43 #include "vtkAlgorithm.h"
44 
45 class vtkDataSet;
46 class vtkTable;
47 
48 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
49 {
50 public:
51  static vtkTableAlgorithm *New();
53  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
54 
60  vtkInformationVector*) VTK_OVERRIDE;
61 
65  vtkTable* GetOutput() { return this->GetOutput(0); }
66  vtkTable* GetOutput(int index);
67 
73  void SetInputData(vtkDataObject * obj) { this->SetInputData(0, obj); }
74  void SetInputData(int index, vtkDataObject* obj);
75 
76 protected:
78  ~vtkTableAlgorithm() VTK_OVERRIDE;
79 
80  // convenience method
81  virtual int RequestInformation(vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
89  virtual int RequestData(vtkInformation* request,
90  vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
97  virtual int RequestUpdateExtent(vtkInformation*,
99  vtkInformationVector*);
100 
101  // see algorithm for more info
102  int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
103  int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
104 
105 private:
106  vtkTableAlgorithm(const vtkTableAlgorithm&) VTK_DELETE_FUNCTION;
107  void operator=(const vtkTableAlgorithm&) VTK_DELETE_FUNCTION;
108 };
109 
110 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
Superclass for algorithms that produce only vtkTables as output.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64