VTK  9.2.5
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 -------------------------------------------------------------------------*/
42 #ifndef vtkTableAlgorithm_h
43 #define vtkTableAlgorithm_h
44 
45 #include "vtkAlgorithm.h"
46 #include "vtkCommonExecutionModelModule.h" // For export macro
47 
48 class vtkDataSet;
49 class vtkTable;
50 
51 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTableAlgorithm : public vtkAlgorithm
52 {
53 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
63 
67  vtkTable* GetOutput() { return this->GetOutput(0); }
69 
75  void SetInputData(vtkDataObject* obj) { this->SetInputData(0, obj); }
76  void SetInputData(int index, vtkDataObject* obj);
77 
78 protected:
80  ~vtkTableAlgorithm() override;
81 
82  // convenience method
83  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
84  vtkInformationVector* outputVector);
85 
90  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91  vtkInformationVector* outputVector);
92 
98 
99  // see algorithm for more info
102 
103 private:
104  vtkTableAlgorithm(const vtkTableAlgorithm&) = delete;
105  void operator=(const vtkTableAlgorithm&) = delete;
106 };
107 
108 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:122
general representation of visualization data
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkTables as output.
vtkTable * GetOutput(int index)
static vtkTableAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void SetInputData(vtkDataObject *obj)
Assign a data object as input.
~vtkTableAlgorithm() override
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
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.
vtkTable * GetOutput()
Get the output data object for a port on this algorithm.
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:183
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ index
Definition: vtkX3D.h:252
int vtkTypeBool
Definition: vtkABI.h:69