VTK  9.4.20241222
vtkXdmfDataArray.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright @ 2002 US Army Research Laboratory
3// SPDX-License-Identifier: BSD-3-Clause AND LicenseRef-BSD-4-Clause-Modif
4#ifndef vtkXdmfDataArray_h
5#define vtkXdmfDataArray_h
6
7#include "vtkIOXdmf2Module.h" // For export macro
8#include "vtkObject.h"
9
10namespace xdmf2
11{
12class XdmfArray;
13}
14
15VTK_ABI_NAMESPACE_BEGIN
16class vtkDataArray;
17
18class VTKIOXDMF2_EXPORT vtkXdmfDataArray : public vtkObject
19{
20public:
23 void PrintSelf(ostream& os, vtkIndent indent) override;
24
26
27 char* ToArray();
28
29 vtkDataArray* FromXdmfArray(char* ArrayName = nullptr, int CopyShape = 1, int rank = 1,
30 int Components = 1, int MakeCopy = 1);
31
32 char* ToXdmfArray(vtkDataArray* DataArray = nullptr, int CopyShape = 1);
33
34 void SetArray(char* TagName);
35
36 char* GetArray();
37
39
41
42protected:
44
45private:
47 xdmf2::XdmfArray* Array;
48 vtkXdmfDataArray(const vtkXdmfDataArray&) = delete;
49 void operator=(const vtkXdmfDataArray&) = delete;
50};
51
52VTK_ABI_NAMESPACE_END
53#endif /* vtkXdmfDataArray_h */
Abstract interface for N-dimensional arrays.
Definition vtkArray.h:52
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:108
abstract base class for most VTK objects
Definition vtkObject.h:162
vtkDataArray * FromArray()
vtkDataArray * FromXdmfArray(char *ArrayName=nullptr, int CopyShape=1, int rank=1, int Components=1, int MakeCopy=1)
void SetArray(char *TagName)
static vtkXdmfDataArray * New()
vtkDataArray * GetVtkArray()
char * ToXdmfArray(vtkDataArray *DataArray=nullptr, int CopyShape=1)
void SetVtkArray(vtkDataArray *array)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.