VTK
dox/Rendering/vtkVolumeCollection.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkVolumeCollection.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00026 #ifndef __vtkVolumeCollection_h
00027 #define __vtkVolumeCollection_h
00028 
00029 #include "vtkPropCollection.h"
00030 
00031 #include "vtkVolume.h"  // Needed for static cast
00032 
00033 class VTK_RENDERING_EXPORT vtkVolumeCollection : public vtkPropCollection
00034 {
00035  public:
00036   static vtkVolumeCollection *New();
00037   vtkTypeMacro(vtkVolumeCollection,vtkPropCollection);
00038   virtual void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041 
00042   void AddItem(vtkVolume *a)
00043     {
00044       this->vtkCollection::AddItem(a);
00045     }
00047     
00049 
00051   vtkVolume *GetNextVolume() {
00052       return static_cast<vtkVolume *>(this->GetNextItemAsObject());};
00054 
00055 
00058   vtkVolume *GetNextItem() { return this->GetNextVolume(); };
00059 
00060   //BTX
00062 
00064   vtkVolume *GetNextVolume(vtkCollectionSimpleIterator &cookie) {
00065     return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie));};
00066   //ETX
00068 
00069 protected:
00070   vtkVolumeCollection() {};
00071   ~vtkVolumeCollection() {};
00072 
00073 private:
00074   // hide the standard AddItem from the user and the compiler.
00075   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00076   void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
00077 
00078 private:
00079   vtkVolumeCollection(const vtkVolumeCollection&);  // Not implemented.
00080   void operator=(const vtkVolumeCollection&);  // Not implemented.
00081 };
00082 
00083 #endif