Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00026 #ifndef __vtkVolumeC_h
00027 #define __vtkVolumeC_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   vtkTypeRevisionMacro(vtkVolumeCollection,vtkPropCollection);
00038   virtual void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041 
00042   void AddItem(vtkVolume *a) {
00043     this->vtkCollection::AddItem((vtkObject *)a);};
00045     
00047 
00049   vtkVolume *GetNextVolume() {
00050       return static_cast<vtkVolume *>(this->GetNextItemAsObject());};
00052 
00053 
00056   vtkVolume *GetNextItem() { return this->GetNextVolume(); };
00057 
00058   //BTX
00060 
00062   vtkVolume *GetNextVolume(vtkCollectionSimpleIterator &cookie) {
00063     return static_cast<vtkVolume *>(this->GetNextItemAsObject(cookie));};
00064   //ETX
00066 
00067 protected:
00068   vtkVolumeCollection() {};
00069   ~vtkVolumeCollection() {};
00070 
00071 private:
00072   // hide the standard AddItem from the user and the compiler.
00073   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00074   void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
00075 
00076 private:
00077   vtkVolumeCollection(const vtkVolumeCollection&);  // Not implemented.
00078   void operator=(const vtkVolumeCollection&);  // Not implemented.
00079 };
00080 
00081 
00082 #endif
00083 
00084 
00085 
00086 
00087 

Generated on Mon Jan 21 23:07:36 2008 for VTK by  doxygen 1.4.3-20050530