VTK  9.3.20240327
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 
20 namespace OT
21 {
22 class Sample;
23 }
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKFILTERSOPENTURNS_EXPORT vtkOTFilter : public vtkTableAlgorithm
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
32 protected:
34  ~vtkOTFilter() override;
35 
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 
56 private:
57  void operator=(const vtkOTFilter&) = delete;
58  vtkOTFilter(const vtkOTFilter&) = delete;
59 };
60 
61 VTK_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:168
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:21
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
@ name
Definition: vtkX3D.h:219
@ string
Definition: vtkX3D.h:490