00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkVolumeCollection.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00030 #ifndef __vtkVolumeC_h 00031 #define __vtkVolumeC_h 00032 00033 #include "vtkPropCollection.h" 00034 00035 #include "vtkVolume.h" // Needed for static cast 00036 00037 class VTK_RENDERING_EXPORT vtkVolumeCollection : public vtkPropCollection 00038 { 00039 public: 00040 static vtkVolumeCollection *New(); 00041 vtkTypeRevisionMacro(vtkVolumeCollection,vtkPropCollection); 00042 virtual void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 void AddItem(vtkVolume *a) { 00047 this->vtkCollection::AddItem((vtkObject *)a);}; 00049 00051 00053 vtkVolume *GetNextVolume() { 00054 return static_cast<vtkVolume *>(this->GetNextItemAsObject());}; 00056 00057 00060 vtkVolume *GetNextItem() { return this->GetNextVolume(); }; 00061 00062 protected: 00063 vtkVolumeCollection() {}; 00064 ~vtkVolumeCollection() {}; 00065 00066 private: 00067 // hide the standard AddItem from the user and the compiler. 00068 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00069 void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); }; 00070 00071 private: 00072 vtkVolumeCollection(const vtkVolumeCollection&); // Not implemented. 00073 void operator=(const vtkVolumeCollection&); // Not implemented. 00074 }; 00075 00076 00077 #endif 00078 00079 00080 00081 00082