VTK
vtkOTUtilities.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOTUtilities.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 =========================================================================*/
21 #ifndef vtkOTUtilities_h
22 #define vtkOTUtilities_h
23 
24 #include "vtkOTConfig.h" // For OpenTURNS version
25 
26 #if (OPENTURNS_VERSION_MAJOR == 1 && OPENTURNS_VERSION_MINOR == 8)
27 namespace OT
28 {
29 class NumericalSample;
30 typedef NumericalSample Sample;
31 }
32 #else
33 namespace OT
34 {
35 class Sample;
36 }
37 #endif
38 
39 class vtkDataArray;
41 class vtkPoints;
42 
44 {
45 public:
56  static OT::Sample* SingleDimArraysToSample(vtkDataArrayCollection* arrays);
57 
64  static OT::Sample* ArrayToSample(vtkDataArray* arr);
65 
72  static vtkDataArray* SampleToArray(OT::Sample* ns);
73 };
74 
75 #endif
76 // VTK-HeaderTest-Exclude: vtkOTUtilities.h
static OT::Sample * ArrayToSample(vtkDataArray *arr)
Methods to convert a multi-component array into a Sample.
static vtkDataArray * SampleToArray(OT::Sample *ns)
Methods to convert a Sample into a multi-component array.
static OT::Sample * SingleDimArraysToSample(vtkDataArrayCollection *arrays)
Methods to convert a collection of uni-dimensional data array into a single Sample The number of arra...
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:48
maintain an ordered list of dataarray objects
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:40
represent and manipulate 3D points
Definition: vtkPoints.h:33