vtkMultiBlockDataSet.h 2.42 KB
Newer Older
Berk Geveci's avatar
Berk Geveci committed
1
2
3
4
5
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkMultiBlockDataSet.h

Brad King's avatar
Brad King committed
6
  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
Berk Geveci's avatar
Berk Geveci committed
7
8
9
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

Brad King's avatar
Brad King committed
10
11
     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
Berk Geveci's avatar
Berk Geveci committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
// .NAME vtkMultiBlockDataSet - collection of data objects
// .SECTION Description
// vtkMultiBlockDataSet represents a collection of data objects.
// The data objects can be primitive datasets as well as other
// composite datasets.
// No relation (spatial or hierarchical) between data objects is
// specified or enforced.

#ifndef __vtkMultiBlockDataSet_h
#define __vtkMultiBlockDataSet_h

#include "vtkCompositeDataSet.h"

class vtkDataSet;
class vtkMultiBlockDataIterator;
class vtkMultiBlockDataSetInternal;

32
class VTK_FILTERING_EXPORT vtkMultiBlockDataSet : public vtkCompositeDataSet
Berk Geveci's avatar
Berk Geveci committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
public:
  static vtkMultiBlockDataSet *New();

  vtkTypeRevisionMacro(vtkMultiBlockDataSet,vtkCompositeDataSet);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Return a new iterator (has to be deleted by user)
  virtual vtkCompositeDataIterator* NewIterator();

  // Description:
  // This returns a vtkMultiBlockDataVisitor.
  virtual vtkCompositeDataVisitor* NewVisitor();

  // Description:
  // Return class name of data type (see vtkSystemIncludes.h for
  // definitions.
  virtual int GetDataObjectType() {return VTK_MULTI_BLOCK_DATA_SET;}

  // Description:
  // Add a dataset to the collection.
  void AddDataSet(vtkDataObject* data);

  // Rescription:
  // Restore data object to initial state,
  virtual void Initialize();

//BTX
  // Note that vtkMultiBlockDataIterator is dependent on the implementation
  // of the data structure in this class. Changes to the data structure
  // might require changes to vtkMultiBlockDataIterator.
  friend class vtkMultiBlockDataIterator;
//ETX

protected:
  vtkMultiBlockDataSet();
  ~vtkMultiBlockDataSet();

  vtkMultiBlockDataSetInternal* Internal;

private:
  vtkMultiBlockDataSet(const vtkMultiBlockDataSet&);  // Not implemented.
  void operator=(const vtkMultiBlockDataSet&);  // Not implemented.
};

#endif