VTK
vtkCompositeDataSet.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCompositeDataSet.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
38 #ifndef __vtkCompositeDataSet_h
39 #define __vtkCompositeDataSet_h
40 
41 #include "vtkDataObject.h"
42 
45 class vtkInformation;
47 
49 {
50 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55  virtual vtkCompositeDataIterator* NewIterator();
56 
58  virtual int GetDataObjectType() {return VTK_COMPOSITE_DATA_SET;}
59 
62 
66  virtual void CopyStructure(vtkCompositeDataSet* input);
67 
72  virtual void SetDataSet(vtkCompositeDataIterator* iter, vtkDataObject* dataObj);
73 
78  virtual vtkDataObject* GetDataSet(vtkCompositeDataIterator* iter);
79 
86  virtual vtkInformation* GetMetaData(vtkCompositeDataIterator* iter);
87 
92  virtual int HasMetaData(vtkCompositeDataIterator* iter);
93 
96  virtual unsigned long GetActualMemorySize();
97 
98  //BTX
100 
102  static vtkCompositeDataSet* GetData(vtkInformationVector* v, int i=0);
103  //ETX
105 
107  virtual void Initialize();
108 
110 
111  virtual void ShallowCopy(vtkDataObject *src);
112  virtual void DeepCopy(vtkDataObject *src);
114 
118  virtual vtkIdType GetNumberOfPoints();
119 
121  static vtkInformationStringKey* NAME();
122 
123 //BTX
124 protected:
127 
129  void SetNumberOfChildren(unsigned int num);
130 
132  unsigned int GetNumberOfChildren();
133 
136  void SetChild(unsigned int index, vtkDataObject*);
137 
139  void RemoveChild(unsigned int index);
140 
142  vtkDataObject* GetChild(unsigned int num);
143 
147  vtkInformation* GetChildMetaData(unsigned int index);
148 
150  void SetChildMetaData(unsigned int index, vtkInformation* info);
151 
154  int HasChildMetaData(unsigned int index);
155 
156  // The internal datastructure. Subclasses need not access this directly.
158 
160 private:
161  vtkCompositeDataSet(const vtkCompositeDataSet&); // Not implemented.
162  void operator=(const vtkCompositeDataSet&); // Not implemented.
163 //ETX
164 };
165 
166 #endif
167 
168