VTK  9.1.0
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
29class vtkDataArray;
30namespace xdmf2
31{
32class XdmfArray;
33}
34
35class VTKIOXDMF2_EXPORT vtkXdmfDataArray : public vtkObject
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
44 char* ToArray(void);
45
46 vtkDataArray* FromXdmfArray(char* ArrayName = nullptr, int CopyShape = 1, int rank = 1,
47 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
56
58
59protected:
61
62private:
64 xdmf2::XdmfArray* Array;
65 vtkXdmfDataArray(const vtkXdmfDataArray&) = delete;
66 void operator=(const vtkXdmfDataArray&) = delete;
67};
68
69#endif /* vtkXdmfDataArray_h */
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:65
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:159
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:82
vtkDataArray * FromXdmfArray(char *ArrayName=nullptr, int CopyShape=1, int rank=1, int Components=1, int MakeCopy=1)
char * GetArray(void)
char * ToArray(void)
void SetArray(char *TagName)
static vtkXdmfDataArray * New()
vtkDataArray * GetVtkArray(void)
char * ToXdmfArray(vtkDataArray *DataArray=nullptr, int CopyShape=1)
vtkDataArray * FromArray(void)
void SetVtkArray(vtkDataArray *array)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.