VTK  9.1.0
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
32namespace OT
33{
34class Sample;
35}
36
37class VTKFILTERSOPENTURNS_EXPORT vtkOTFilter : public vtkTableAlgorithm
38{
39public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43protected:
45 ~vtkOTFilter() override;
46
50 int FillInputPortInformation(int port, vtkInformation* info) override;
51
52 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
67private:
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:113
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 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: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:172
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:33