00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkPlaneCollection.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 =========================================================================*/ 00042 #ifndef __vtkPlaneCollection_h 00043 #define __vtkPlaneCollection_h 00044 00045 #include "vtkCollection.h" 00046 00047 #include "vtkPlane.h" // Needed for inline methods 00048 00049 class VTK_COMMON_EXPORT vtkPlaneCollection : public vtkCollection 00050 { 00051 public: 00052 vtkTypeRevisionMacro(vtkPlaneCollection,vtkCollection); 00053 static vtkPlaneCollection *New(); 00054 00056 void AddItem(vtkPlane *); 00057 00059 vtkPlane *GetNextItem(); 00060 00061 protected: 00062 vtkPlaneCollection() {}; 00063 ~vtkPlaneCollection() {}; 00064 00065 00066 private: 00067 // hide the standard AddItem from the user and the compiler. 00068 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00069 00070 private: 00071 vtkPlaneCollection(const vtkPlaneCollection&); // Not implemented. 00072 void operator=(const vtkPlaneCollection&); // Not implemented. 00073 }; 00074 00075 inline void vtkPlaneCollection::AddItem(vtkPlane *f) 00076 { 00077 this->vtkCollection::AddItem((vtkObject *)f); 00078 } 00079 00080 inline vtkPlane *vtkPlaneCollection::GetNextItem() 00081 { 00082 return static_cast<vtkPlane *>(this->GetNextItemAsObject()); 00083 } 00084 00085 #endif