VTK  9.3.1
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:
33  vtkOTFilter();
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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
vtkTable * Output
Definition: vtkOTFilter.h:54
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:58
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition: vtkOTFilter.h:26
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:20