VTK
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 "vtkOTConfig.h" // For OpenTURNS version
31 #include "vtkTableAlgorithm.h"
32 
33 #if (OPENTURNS_VERSION_MAJOR == 1 && OPENTURNS_VERSION_MINOR == 8)
34 namespace OT
35 {
36 class NumericalSample;
37 typedef NumericalSample Sample;
38 }
39 #else
40 namespace OT
41 {
42 class Sample;
43 }
44 #endif
45 
46 class VTKFILTERSOPENTURNS_EXPORT vtkOTFilter : public vtkTableAlgorithm
47 {
48 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
52 protected:
53  vtkOTFilter();
54  ~vtkOTFilter();
55 
59  virtual int FillInputPortInformation(int port, vtkInformation* info) override;
60 
61  virtual int RequestData(vtkInformation* request,
62  vtkInformationVector** inputVector,
63  vtkInformationVector* outputVector) override;
64 
68  virtual int Process(OT::Sample* input) = 0;
69 
73  virtual void AddToOutput(OT::Sample* ns, const std::string& name);
74 
76 
77 private:
78  void operator=(const vtkOTFilter&) = delete;
79  vtkOTFilter(const vtkOTFilter&) = delete;
80 };
81 
82 #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:75
a simple class to control print indentation
Definition: vtkIndent.h:39
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:68
A generic VTK Filter to process vtkTable using openturns algorithm.
Definition: vtkOTFilter.h:46
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:40