VTK
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 
40 #ifndef vtkArrayData_h
41 #define vtkArrayData_h
42 
43 #include "vtkCommonDataModelModule.h" // For export macro
44 #include "vtkArray.h"
45 #include "vtkDataObject.h"
46 
47 class vtkArray;
48 
49 class VTKCOMMONDATAMODEL_EXPORT vtkArrayData : public vtkDataObject
50 {
51 public:
52  static vtkArrayData* New();
53  vtkTypeMacro(vtkArrayData, vtkDataObject);
54  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
55 
57  static vtkArrayData* GetData(vtkInformationVector* v, int i = 0);
58 
62  void AddArray(vtkArray*);
63 
67  void ClearArrays();
68 
72  vtkIdType GetNumberOfArrays();
73 
77  vtkArray* GetArray(vtkIdType index);
78 
82  vtkArray* GetArrayByName(const char *name);
83 
87  int GetDataObjectType() VTK_OVERRIDE {return VTK_ARRAY_DATA;}
88 
89  void ShallowCopy(vtkDataObject* other) VTK_OVERRIDE;
90  void DeepCopy(vtkDataObject* other) VTK_OVERRIDE;
91 
92 protected:
93  vtkArrayData();
94  ~vtkArrayData() VTK_OVERRIDE;
95 
96 private:
97  vtkArrayData(const vtkArrayData&) VTK_DELETE_FUNCTION;
98  void operator=(const vtkArrayData&) VTK_DELETE_FUNCTION;
99 
100  class implementation;
101  implementation* const Implementation;
102 
103 };
104 
105 #endif
106 
107 // VTK-HeaderTest-Exclude: vtkArrayData.h
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkDataObject * GetData(vtkInformation *info)
Retrieve an instance of this class from an information object.
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:64
int GetDataObjectType() override
Return class name of data type (VTK_ARRAY_DATA).
Definition: vtkArrayData.h:87
#define VTK_ARRAY_DATA
Definition: vtkType.h:118
int vtkIdType
Definition: vtkType.h:345
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:49
a simple class to control print indentation
Definition: vtkIndent.h:33
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:58
virtual void DeepCopy(vtkDataObject *src)
Shallow and Deep copy.
virtual void ShallowCopy(vtkDataObject *src)
Shallow and Deep copy.