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=========================================================================*/
39#ifndef vtkCompositeDataSet_h
40#define vtkCompositeDataSet_h
41
42#include "vtkCommonDataModelModule.h" // For export macro
43#include "vtkDataObject.h"
44
46class vtkCompositeDataSetInternals;
47class vtkInformation;
50
51class VTKCOMMONDATAMODEL_EXPORT vtkCompositeDataSet : public vtkDataObject
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
56
61
66 int GetDataObjectType() VTK_OVERRIDE {return VTK_COMPOSITE_DATA_SET;}
67
73 virtual void CopyStructure(vtkCompositeDataSet* input)=0;
74
81 virtual void SetDataSet(vtkCompositeDataIterator* iter, vtkDataObject* dataObj)=0;
82
90
91
96 unsigned long GetActualMemorySize() VTK_OVERRIDE;
97
99
103 static vtkCompositeDataSet* GetData(vtkInformationVector* v, int i=0);
105
109 void Initialize() VTK_OVERRIDE;
110
112
115 void ShallowCopy(vtkDataObject *src) VTK_OVERRIDE;
116 void DeepCopy(vtkDataObject *src) VTK_OVERRIDE;
118
124 virtual vtkIdType GetNumberOfPoints();
125
130
138 static vtkInformationIntegerKey* CURRENT_PROCESS_CAN_LOAD_BLOCK();
139
140 protected:
142 ~vtkCompositeDataSet() VTK_OVERRIDE;
143 private:
144
145 vtkCompositeDataSet(const vtkCompositeDataSet&) VTK_DELETE_FUNCTION;
146 void operator=(const vtkCompositeDataSet&) VTK_DELETE_FUNCTION;
147
148};
149
150#endif
151
152
superclass for composite data iterators
abstract superclass for composite (multi-block or AMR) datasets
virtual void SetDataSet(vtkCompositeDataIterator *iter, vtkDataObject *dataObj)=0
Sets the data set at the location pointed by the iterator.
virtual void CopyStructure(vtkCompositeDataSet *input)=0
Copies the tree structure from the input.
int GetDataObjectType() override
Return class name of data type (see vtkType.h for definitions).
virtual vtkDataObject * GetDataSet(vtkCompositeDataIterator *iter)=0
Returns the dataset located at the positiong pointed by the iterator.
unsigned long GetActualMemorySize() override
Return the actual size of the data in kibibytes (1024 bytes).
virtual VTK_NEWINSTANCE vtkCompositeDataIterator * NewIterator()=0
Return a new iterator (the iterator has to be deleted by user).
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Key for integer values in vtkInformation.
Key for string values in vtkInformation.
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:376
void DeepCopy(vtkPistonReference *self, vtkPistonReference *other)
int vtkIdType
Definition: vtkType.h:287
#define VTK_COMPOSITE_DATA_SET
Definition: vtkType.h:98
#define VTK_NEWINSTANCE