VTK
vtkXdmfDataArray.h
Go to the documentation of this file.
1 /*******************************************************************/
2 /* XDMF */
3 /* eXtensible Data Model and Format */
4 /* */
5 /* Id : Id */
6 /* */
7 /* Author: */
8 /* Jerry A. Clarke */
9 /* clarke@arl.army.mil */
10 /* US Army Research Laboratory */
11 /* Aberdeen Proving Ground, MD */
12 /* */
13 /* Copyright @ 2002 US Army Research Laboratory */
14 /* All Rights Reserved */
15 /* See Copyright.txt or http://www.arl.hpc.mil/ice for details */
16 /* */
17 /* This software is distributed WITHOUT ANY WARRANTY; without */
18 /* even the implied warranty of MERCHANTABILITY or FITNESS */
19 /* FOR A PARTICULAR PURPOSE. See the above copyright notice */
20 /* for more information. */
21 /* */
22 /*******************************************************************/
23 #ifndef vtkXdmfDataArray_h
24 #define vtkXdmfDataArray_h
25 
26 #include "vtkIOXdmf2Module.h" // For export macro
27 #include "vtkObject.h"
28 
29 class vtkDataArray;
30 namespace xdmf2
31 {
32 class XdmfArray;
33 }
34 
35 class VTKIOXDMF2_EXPORT vtkXdmfDataArray : public vtkObject
36 {
37 public:
38  static vtkXdmfDataArray *New();
39  vtkTypeMacro(vtkXdmfDataArray,vtkObject);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  vtkDataArray *FromArray( void );
43 
44  char *ToArray( void );
45 
46  vtkDataArray *FromXdmfArray( char *ArrayName = nullptr, int CopyShape = 1,
47  int rank = 1, int Components = 1 , int MakeCopy = 1);
48 
49  char *ToXdmfArray( vtkDataArray *DataArray = nullptr, int CopyShape = 1 );
50 
51  void SetArray( char *TagName );
52 
53  char *GetArray( void );
54 
55  void SetVtkArray( vtkDataArray *array);
56 
57  vtkDataArray *GetVtkArray( void );
58 
59 protected:
61 
62 private:
64  xdmf2::XdmfArray *Array;
65  vtkXdmfDataArray(const vtkXdmfDataArray&) = delete;
66  void operator=(const vtkXdmfDataArray&) = delete;
67 };
68 
69 #endif /* vtkXdmfDataArray_h */
abstract base class for most VTK objects
Definition: vtkObject.h:59
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:70
a simple class to control print indentation
Definition: vtkIndent.h:39
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54