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 "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:
44  vtkOTFilter();
45  ~vtkOTFilter();
46 
50  virtual int FillInputPortInformation(int port, vtkInformation* info) override;
51 
52  virtual int RequestData(vtkInformation* request,
53  vtkInformationVector** inputVector,
54  vtkInformationVector* outputVector) override;
55 
59  virtual int Process(OT::Sample* input) = 0;
60 
64  virtual void AddToOutput(OT::Sample* ns, const std::string& name);
65 
67 
68 private:
69  void operator=(const vtkOTFilter&) = delete;
70  vtkOTFilter(const vtkOTFilter&) = delete;
71 };
72 
73 #endif
Store vtkAlgorithm input/output information.
vtkTable * Output
Definition: vtkOTFilter.h:66
a simple class to control print indentation
Definition: vtkIndent.h:39
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:37
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:32