Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkVolumeCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkVolumeCollection.h,v $
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 =========================================================================*/
00041 #ifndef __vtkVolumeC_h
00042 #define __vtkVolumeC_h
00043 
00044 #include "vtkPropCollection.h"
00045 
00046 #include "vtkVolume.h"  // Needed for static cast
00047 
00048 class VTK_RENDERING_EXPORT vtkVolumeCollection : public vtkPropCollection
00049 {
00050  public:
00051   static vtkVolumeCollection *New();
00052   vtkTypeRevisionMacro(vtkVolumeCollection,vtkPropCollection);
00053   virtual void PrintSelf(ostream& os, vtkIndent indent);
00054 
00056 
00057   void AddItem(vtkVolume *a) {
00058     this->vtkCollection::AddItem((vtkObject *)a);};
00060     
00062 
00064   vtkVolume *GetNextVolume() {
00065       return static_cast<vtkVolume *>(this->GetNextItemAsObject());};
00067 
00068 
00071   vtkVolume *GetNextItem() { return this->GetNextVolume(); };
00072 
00073   //BTX
00075 
00077   vtkVolume *GetNextVolume(vtkCollectionSimpleIterator &cookie) {
00078     return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie));};
00079   //ETX
00081 
00082 protected:
00083   vtkVolumeCollection() {};
00084   ~vtkVolumeCollection() {};
00085 
00086 private:
00087   // hide the standard AddItem from the user and the compiler.
00088   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00089   void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
00090 
00091 private:
00092   vtkVolumeCollection(const vtkVolumeCollection&);  // Not implemented.
00093   void operator=(const vtkVolumeCollection&);  // Not implemented.
00094 };
00095 
00096 
00097 #endif
00098 
00099 
00100 
00101 
00102