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 
42 #ifndef vtkArrayData_h
43 #define vtkArrayData_h
44 
45 #include "vtkCommonDataModelModule.h" // For export macro
46 #include "vtkArray.h"
47 #include "vtkDataObject.h"
48 
49 class vtkArray;
50 
52 {
53 public:
54  static vtkArrayData* New();
55  vtkTypeMacro(vtkArrayData, vtkDataObject);
56  void PrintSelf(ostream &os, vtkIndent indent);
57 
59  static vtkArrayData* GetData(vtkInformationVector* v, int i = 0);
60 
62  void AddArray(vtkArray*);
63 
65  void ClearArrays();
66 
68  vtkIdType GetNumberOfArrays();
69 
71  vtkArray* GetArray(vtkIdType index);
72 
74  vtkArray* GetArrayByName(const char *name);
75 
77  virtual int GetDataObjectType() {return VTK_ARRAY_DATA;}
78 
79  virtual void ShallowCopy(vtkDataObject* other);
80  virtual void DeepCopy(vtkDataObject* other);
81 
82 protected:
83  vtkArrayData();
84  ~vtkArrayData();
85 
86 private:
87  vtkArrayData(const vtkArrayData&); // Not implemented
88  void operator=(const vtkArrayData&); // Not implemented
89 
90 //BTX
91  class implementation;
92  implementation* const Implementation;
93 //ETX
94 };
95 
96 #endif
97 
98 // VTK-HeaderTest-Exclude: vtkArrayData.h
static vtkDataObject * GetData(vtkInformation *info)
static vtkDataObject * New()
Store vtkAlgorithm input/output information.
Abstract interface for N-dimensional arrays.
Definition: vtkArray.h:69
#define VTK_ARRAY_DATA
Definition: vtkType.h:93
int vtkIdType
Definition: vtkType.h:275
Pipeline data object that contains multiple vtkArray objects.
Definition: vtkArrayData.h:51
virtual int GetDataObjectType()
Definition: vtkArrayData.h:77
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual void DeepCopy(vtkDataObject *src)
#define VTKCOMMONDATAMODEL_EXPORT
virtual void ShallowCopy(vtkDataObject *src)