VTK  9.0.3
vtkOTFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOTFilter.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 =========================================================================*/
26 #ifndef vtkOTFilter_h
27 #define vtkOTFilter_h
28 
29 #include "vtkFiltersOpenTURNSModule.h" // For export macro
30 #include "vtkTableAlgorithm.h"
31 
32 namespace OT
33 {
34 class Sample;
35 }
36 
37 class VTKFILTERSOPENTURNS_EXPORT vtkOTFilter : public vtkTableAlgorithm
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
43 protected:
45  ~vtkOTFilter() override;
46 
50  virtual int FillInputPortInformation(int port, vtkInformation* info) override;
51 
52  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
53  vtkInformationVector* outputVector) override;
54 
58  virtual int Process(OT::Sample* input) = 0;
59 
63  virtual void AddToOutput(OT::Sample* ns, const std::string& name);
64 
66 
67 private:
68  void operator=(const vtkOTFilter&) = delete;
69  vtkOTFilter(const vtkOTFilter&) = delete;
70 };
71 
72 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition: vtkOTFilter.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info) override
Set the input of this filter, a vtkTable.
virtual void AddToOutput(OT::Sample *ns, const std::string &name)
Method to add a openturns data to a table as a named column.
virtual int Process(OT::Sample *input)=0
Abstract method to process openturns data.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
~vtkOTFilter() override
vtkTable * Output
Definition: vtkOTFilter.h:65
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:63
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:33
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
@ name
Definition: vtkX3D.h:225
@ string
Definition: vtkX3D.h:496