VTK  9.4.20241118
vtkArrayData.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4
65#ifndef vtkArrayData_h
66#define vtkArrayData_h
67
68#include "vtkCommonDataModelModule.h" // For export macro
69#include "vtkDataObject.h"
70
71VTK_ABI_NAMESPACE_BEGIN
72class vtkArray;
73
74class VTKCOMMONDATAMODEL_EXPORT vtkArrayData : public vtkDataObject
75{
76public:
77 static vtkArrayData* New();
79 void PrintSelf(ostream& os, vtkIndent indent) override;
80
83
88
93
98
103
107 vtkArray* GetArrayByName(const char* name);
108
112 int GetDataObjectType() override { return VTK_ARRAY_DATA; }
113
114 void ShallowCopy(vtkDataObject* other) override;
115 void DeepCopy(vtkDataObject* other) override;
116
117protected:
119 ~vtkArrayData() override;
120
121private:
122 vtkArrayData(const vtkArrayData&) = delete;
123 void operator=(const vtkArrayData&) = delete;
124
125 class implementation;
126 implementation* const Implementation;
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
Pipeline data object that contains multiple vtkArray objects.
static vtkArrayData * GetData(vtkInformation *info)
static vtkArrayData * GetData(vtkInformationVector *v, int i=0)
void DeepCopy(vtkDataObject *other) override
The goal of the method is to copy the complete data from src into this object.
vtkArray * GetArray(vtkIdType index)
Returns the n-th vtkArray in the collection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ClearArrays()
Clears the contents of the collection.
vtkArray * GetArrayByName(const char *name)
Returns the array having called name from the collection.
void AddArray(vtkArray *)
Adds a vtkArray to the collection.
static vtkArrayData * New()
void ShallowCopy(vtkDataObject *other) override
The goal of the method is to copy the data up to the array pointers only.
~vtkArrayData() override
vtkIdType GetNumberOfArrays()
Returns the number of vtkArray instances in the collection.
int GetDataObjectType() override
Return class name of data type (VTK_ARRAY_DATA).
Abstract interface for N-dimensional arrays.
Definition vtkArray.h:52
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:315
#define VTK_ARRAY_DATA
Definition vtkType.h:92