VTK: Common/ExecutionModel/vtkTableAlgorithm.h Source File

| VTK 9.3.1

vtkTableAlgorithm.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
26 #ifndef vtkTableAlgorithm_h
27 #define vtkTableAlgorithm_h
28
29 #include "vtkAlgorithm.h"
30 #include "vtkCommonExecutionModelModule.h" // For export macro
31
32 VTK_ABI_NAMESPACE_BEGIN
33 class vtkDataSet;
34 class vtkTable;
35
36 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
37 {
38 public:
39 static vtkTableAlgorithm* New();
40 vtkTypeMacro(vtkTableAlgorithm, vtkAlgorithm);
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
46 vtkTypeBool ProcessRequest(
47 vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
48
52 vtkTable* GetOutput() { return this->GetOutput(0); }
53 vtkTable* GetOutput(int index);
54
60 void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
61 void SetInputData(int index, vtkDataObject* obj);
62
63 protected:
64 vtkTableAlgorithm();
65 ~vtkTableAlgorithm() override;
66
67 // convenience method
68 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
69 vtkInformationVector* outputVector);
70
75 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
76 vtkInformationVector* outputVector);
77
82 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
83
84 // see algorithm for more info
85 int FillOutputPortInformation(int port, vtkInformation* info) override;
86 int FillInputPortInformation(int port, vtkInformation* info) override;
87
88 private:
89 vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
90 void operator=(const vtkTableAlgorithm&) = delete;
91 };
92
93 VTK_ABI_NAMESPACE_END
94 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:37
vtkTableAlgorithm::GetOutput
vtkTable * GetOutput(int index)
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()
vtkTableAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkTableAlgorithm::SetInputData
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
Definition: vtkTableAlgorithm.h:60
vtkTableAlgorithm::~vtkTableAlgorithm
~vtkTableAlgorithm() override
vtkTableAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTableAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkTableAlgorithm::vtkTableAlgorithm
vtkTableAlgorithm()
vtkTableAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTableAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTableAlgorithm::GetOutput
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
Definition: vtkTableAlgorithm.h:52
vtkTableAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkTableAlgorithm::SetInputData
void SetInputData(int index, vtkDataObject *obj)
vtkTableAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h