VTK  9.2.6
vtkArrayData.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkArrayData.h
5
6-------------------------------------------------------------------------
7 Copyright 2008 Sandia Corporation.
8 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9 the U.S. Government retains certain rights in this software.
10-------------------------------------------------------------------------
11
12 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
13 All rights reserved.
14 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notice for more information.
19
20=========================================================================*/
21
52#ifndef vtkArrayData_h
53#define vtkArrayData_h
54
55#include "vtkCommonDataModelModule.h" // For export macro
56#include "vtkDataObject.h"
57
58class vtkArray;
59
60class VTKCOMMONDATAMODEL_EXPORT vtkArrayData : public vtkDataObject
61{
62public:
63 static vtkArrayData* New();
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
69
74
79
84
89
93 vtkArray* GetArrayByName(const char* name);
94
98 int GetDataObjectType() override { return VTK_ARRAY_DATA; }
99
100 void ShallowCopy(vtkDataObject* other) override;
101 void DeepCopy(vtkDataObject* other) override;
102
103protected:
105 ~vtkArrayData() override;
106
107private:
108 vtkArrayData(const vtkArrayData&) = delete;
109 void operator=(const vtkArrayData&) = delete;
110
111 class implementation;
112 implementation* const Implementation;
113};
114
115#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
Shallow and Deep copy.
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
Shallow and Deep copy.
~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:68
general representation of visualization data
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkIdType
Definition vtkType.h:332
#define VTK_ARRAY_DATA
Definition vtkType.h:104