VTK  9.1.0
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 "vtkAlgorithm.h"
43#include "vtkCommonExecutionModelModule.h" // For export macro
44
45class vtkDataSet;
46class vtkTable;
47
48class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
49{
50public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
60
64 vtkTable* GetOutput() { return this->GetOutput(0); }
65 vtkTable* GetOutput(int index);
66
72 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
73 void SetInputData(int index, vtkDataObject* obj);
74
75protected:
78
79 // convenience method
80 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
81 vtkInformationVector* outputVector);
82
87 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
88 vtkInformationVector* outputVector);
89
95
96 // see algorithm for more info
97 int FillOutputPortInformation(int port, vtkInformation* info) override;
98 int FillInputPortInformation(int port, vtkInformation* info) override;
99
100private:
101 vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
102 void operator=(const vtkTableAlgorithm&) = delete;
103};
104
105#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:123
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkTables as output.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTable * GetOutput(int index)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
static vtkTableAlgorithm * New()
~vtkTableAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(int index, vtkDataObject *obj)
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
int vtkTypeBool
Definition: vtkABI.h:69