vtkPVDataSetAttributesInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPVDataSetAttributesInformation_h
15 #define vtkPVDataSetAttributesInformation_h
16 
17 #include "vtkObject.h"
18 #include "vtkRemotingCoreModule.h" //needed for exports
19 
20 #include <memory> // For unique_ptr
21 
23 class vtkDataObject;
25 
27 {
28 public:
36  {
37  public:
40 
41  void GoToFirstItem();
42  void GoToNextItem();
43  bool IsDoneWithTraversal() const;
44  vtkPVArrayInformation* GetCurrentArrayInformation();
45 
46  private:
47  struct vtkInternals;
48  std::unique_ptr<vtkInternals> Internals;
49  };
50 
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
62  vtkGetMacro(FieldAssociation, int);
64 
68  void Initialize();
69 
73  int GetNumberOfArrays() const;
74 
78  int GetMaximumNumberOfTuples() const;
79 
81 
85  vtkPVArrayInformation* GetArrayInformation(int idx) const;
86  vtkPVArrayInformation* GetArrayInformation(const char* name) const;
88 
93  vtkPVArrayInformation* GetAttributeInformation(int attributeType);
94 
99  int IsArrayAnAttribute(int arrayIndex);
100 
107  AlphabeticalArrayInformationIterator* NewAlphabeticalArrayInformationIterator();
108 
109 protected:
112 
113  friend class vtkPVDataInformation;
114  friend class vtkPVDataInformationAccumulator;
115 
119  vtkSetMacro(FieldAssociation, int);
120 
122 
125  void CopyToStream(vtkClientServerStream*);
126  void CopyFromStream(const vtkClientServerStream*);
128 
132  void AddInformation(vtkPVDataSetAttributesInformation*);
133 
138 
142  void CopyFromDataObject(vtkDataObject* dobj);
143 
144 private:
146  void operator=(const vtkPVDataSetAttributesInformation&) = delete;
147 
148  int FieldAssociation;
149 
150  class vtkInternals;
151  vtkInternals* Internals;
152 };
153 
154 #endif
provides meta data about a vtkDataObject subclass.
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
Iterator over a vtkPVDataSetAttributesInformation&#39;s arrays; yielding their vtkPVArrayInformation.
Store messages for the interpreter.
source
#define VTKREMOTINGCORE_EXPORT
provides meta data about arrays.