VTK  9.4.20241222
vtkOTFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
14#ifndef vtkOTFilter_h
15#define vtkOTFilter_h
16
17#include "vtkFiltersOpenTURNSModule.h" // For export macro
18#include "vtkTableAlgorithm.h"
19
20namespace OT
21{
22class Sample;
23}
24
25VTK_ABI_NAMESPACE_BEGIN
26class VTKFILTERSOPENTURNS_EXPORT vtkOTFilter : public vtkTableAlgorithm
27{
28public:
30 void PrintSelf(ostream& os, vtkIndent indent) override;
31
32protected:
34 ~vtkOTFilter() override;
35
39 int FillInputPortInformation(int port, vtkInformation* info) override;
40
41 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
42 vtkInformationVector* outputVector) override;
43
47 virtual int Process(OT::Sample* input) = 0;
48
52 virtual void AddToOutput(OT::Sample* ns, const std::string& name);
53
55
56private:
57 void operator=(const vtkOTFilter&) = delete;
58 vtkOTFilter(const vtkOTFilter&) = delete;
59};
60
61VTK_ABI_NAMESPACE_END
62#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition vtkOTFilter.h:27
virtual void AddToOutput(OT::Sample *ns, const std::string &name)
Method to add a openturns data to a table as a named column.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Set the input of this filter, a vtkTable.
virtual int Process(OT::Sample *input)=0
Abstract method to process openturns data.
~vtkOTFilter() override
vtkTable * Output
Definition vtkOTFilter.h:54
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that produce only vtkTables as output.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:169
Set of utilities for OpenTURNS<->VTK conversions.
Definition vtkOTFilter.h:21