vtkPVCompositeDataInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCompositeDataInformation.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 vtkPVCompositeDataInformation_h
27 #define vtkPVCompositeDataInformation_h
28 
29 #include "vtkPVInformation.h"
30 #include "vtkRemotingCoreModule.h" //needed for exports
31 
33 class vtkUniformGridAMR;
34 
35 struct vtkPVCompositeDataInformationInternals;
36 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  void CopyFromObject(vtkObject*) override;
48 
52  void AddInformation(vtkPVInformation*) override;
53 
55 
58  void CopyToStream(vtkClientServerStream*) override;
59  void CopyFromStream(const vtkClientServerStream*) override;
61 
65  virtual void Initialize();
66 
70  unsigned int GetNumberOfChildren();
71 
77  vtkPVDataInformation* GetDataInformation(unsigned int idx);
78 
84  const char* GetName(unsigned int idx);
85 
87 
93  vtkGetMacro(DataIsMultiPiece, int);
95 
97 
100  vtkGetMacro(DataIsComposite, int);
102 
104 
108  vtkGetMacro(NumberOfAMRLevels, unsigned int);
110 
111  // TODO:
112  // Add API to obtain meta data information for each of the children.
113 
114 protected:
116  ~vtkPVCompositeDataInformation() override;
117 
121  void CopyFromAMR(vtkUniformGridAMR* amr);
122 
125  unsigned int FlatIndexMax;
126 
127  unsigned int NumberOfPieces;
128  vtkSetMacro(NumberOfPieces, unsigned int);
129 
130  unsigned int NumberOfAMRLevels;
131 
132  friend class vtkPVDataInformation;
134 
135 private:
136  vtkPVCompositeDataInformationInternals* Internal;
137 
139  void operator=(const vtkPVCompositeDataInformation&) = delete;
140 };
141 
142 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
Light object for holding data information.
vtkPVDataInformation * GetDataInformationForCompositeIndex(int index)
Given the flat-index for a node in a composite dataset, this method returns the data information for ...
Light object for holding composite data information.
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
void operator=(const vtkPVInformation &)=delete
#define VTKREMOTINGCORE_EXPORT
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
static vtkObject * New()
Superclass for information objects.
friend class vtkPVCompositeDataInformation