VTK
vtkVolumeCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeCollection.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 =========================================================================*/
26 #ifndef __vtkVolumeCollection_h
27 #define __vtkVolumeCollection_h
28 
29 #include "vtkPropCollection.h"
30 
31 #include "vtkVolume.h" // Needed for static cast
32 
34 {
35  public:
36  static vtkVolumeCollection *New();
38  virtual void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
42  void AddItem(vtkVolume *a)
43  {
44  this->vtkCollection::AddItem(a);
45  }
47 
49 
52  return static_cast<vtkVolume *>(this->GetNextItemAsObject());};
54 
55 
58  vtkVolume *GetNextItem() { return this->GetNextVolume(); };
59 
60  //BTX
62 
65  return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie));};
66  //ETX
68 
69 protected:
72 
73 private:
74  // hide the standard AddItem from the user and the compiler.
75  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
76  void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
77 
78 private:
79  vtkVolumeCollection(const vtkVolumeCollection&); // Not implemented.
80  void operator=(const vtkVolumeCollection&); // Not implemented.
81 };
82 
83 #endif