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 
43 #ifndef vtkArrayData_h
44 #define vtkArrayData_h
45 
46 #include "vtkCommonDataModelModule.h" // For export macro
47 #include "vtkArray.h"
48 #include "vtkDataObject.h"
49 
50 class vtkArray;
51 
52 class VTKCOMMONDATAMODEL_EXPORT vtkArrayData : public vtkDataObject
53 {
54 public:
55  static vtkArrayData* New();
56  vtkTypeMacro(vtkArrayData, vtkDataObject);
57  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
58 
60  static vtkArrayData* GetData(vtkInformationVector* v, int i = 0);
61 
66 
70  void ClearArrays();
71 
76 
81 
85  vtkArray* GetArrayByName(const char *name);
86 
90  int GetDataObjectType() VTK_OVERRIDE {return VTK_ARRAY_DATA;}
91 
92  void ShallowCopy(vtkDataObject* other) VTK_OVERRIDE;
93  void DeepCopy(vtkDataObject* other) VTK_OVERRIDE;
94 
95 protected:
97  ~vtkArrayData() VTK_OVERRIDE;
98 
99 private:
100  vtkArrayData(const vtkArrayData&) VTK_DELETE_FUNCTION;
101  void operator=(const vtkArrayData&) VTK_DELETE_FUNCTION;
102 
103  class implementation;
104  implementation* const Implementation;
105 
106 };
107 
108 #endif
109 
110 // VTK-HeaderTest-Exclude: vtkArrayData.h
vtkArrayData::GetArray
vtkArray * GetArray(vtkIdType index)
Returns the n-th vtkArray in the collection.
vtkArrayData::GetNumberOfArrays
vtkIdType GetNumberOfArrays()
Returns the number of vtkArray instances in the collection.
vtkArrayData::GetDataObjectType
int GetDataObjectType() override
Return class name of data type (VTK_ARRAY_DATA).
Definition: vtkArrayData.h:90
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkArrayData::ClearArrays
void ClearArrays()
Clears the contents of the collection.
vtkArrayData::vtkArrayData
vtkArrayData()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkArrayData
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:53
VTK_ARRAY_DATA
#define VTK_ARRAY_DATA
Definition: vtkType.h:114
vtkArrayData::~vtkArrayData
~vtkArrayData() override
vtkArrayData::New
static vtkArrayData * New()
vtkArrayData::GetData
static vtkArrayData * GetData(vtkInformation *info)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkArrayData::AddArray
void AddArray(vtkArray *)
Adds a vtkArray to the collection.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkArray
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:71
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDataObject.h
vtkArrayData::GetArrayByName
vtkArray * GetArrayByName(const char *name)
Returns the array having called name from the collection.
vtkArrayData::GetData
static vtkArrayData * GetData(vtkInformationVector *v, int i=0)
vtkArrayData::DeepCopy
void DeepCopy(vtkDataObject *other) override
vtkArrayData::ShallowCopy
void ShallowCopy(vtkDataObject *other) override
Shallow and Deep copy.
vtkArrayData::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkArray.h
vtkX3D::index
@ index
Definition: vtkX3D.h:246