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

Rendering/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 protected:
00059   vtkVolumeCollection() {};
00060   ~vtkVolumeCollection() {};
00061 
00062 private:
00063   // hide the standard AddItem from the user and the compiler.
00064   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00065   void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
00066 
00067 private:
00068   vtkVolumeCollection(const vtkVolumeCollection&);  // Not implemented.
00069   void operator=(const vtkVolumeCollection&);  // Not implemented.
00070 };
00071 
00072 
00073 #endif
00074 
00075 
00076 
00077 
00078