vtkPVDataSetAttributesInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVDataSetAttributesInformation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef vtkPVDataSetAttributesInformation_h
27 #define vtkPVDataSetAttributesInformation_h
28 
29 #include "vtkDataSetAttributes.h" // needed for NUM_ATTRIBUTES
30 #include "vtkPVInformation.h"
31 #include "vtkRemotingCoreModule.h" //needed for exports
32 
34 class vtkFieldData;
37 
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
52  vtkGetMacro(FieldAssociation, int);
53  vtkSetMacro(FieldAssociation, int);
55 
57 
61  void CopyFromDataSetAttributes(vtkDataSetAttributes* data);
64 
65  void CopyFromFieldData(vtkFieldData* data);
66 
67  void CopyFromGenericAttributesOnPoints(vtkGenericAttributeCollection* data);
68  void CopyFromGenericAttributesOnCells(vtkGenericAttributeCollection* data);
69  void CopyFromGenericAttributes(vtkGenericAttributeCollection* data, int centering);
70 
72 
78  void AddInformation(vtkPVInformation* info) override;
80 
84  void Initialize();
85 
87 
90  int GetNumberOfArrays() const;
91  // Because not all the arrays have to be the same length:
92  int GetMaximumNumberOfTuples() const;
93  vtkPVArrayInformation* GetArrayInformation(int idx) const;
94  vtkPVArrayInformation* GetArrayInformation(const char* name) const;
96 
100  vtkPVArrayInformation* GetAttributeInformation(int attributeType);
101 
106  int IsArrayAnAttribute(int arrayIndex);
107 
109 
112  void CopyToStream(vtkClientServerStream*) override;
113  void CopyFromStream(const vtkClientServerStream*) override;
115 
116 protected:
119 
120  // Standard cell attributes.
122 
123 private:
125  void operator=(const vtkPVDataSetAttributesInformation&) = delete;
126 
127  class vtkInternals;
128  vtkInternals* Internals;
129 };
130 
131 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
void PrintSelf(ostream &os, vtkIndent indent) override
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
Store messages for the interpreter.
void operator=(const vtkPVInformation &)=delete
#define VTKREMOTINGCORE_EXPORT
Data array information like type.
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
static vtkObject * New()
Superclass for information objects.