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

Common/vtkPlaneCollection.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkPlaneCollection.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 =========================================================================*/
00024 #ifndef __vtkPlaneCollection_h
00025 #define __vtkPlaneCollection_h
00026 
00027 #include "vtkCollection.h"
00028 
00029 #include "vtkPlane.h" // Needed for inline methods
00030 
00031 class VTK_COMMON_EXPORT vtkPlaneCollection : public vtkCollection
00032 {
00033 public:
00034   vtkTypeRevisionMacro(vtkPlaneCollection,vtkCollection);
00035   static vtkPlaneCollection *New();
00036 
00038   void AddItem(vtkPlane *);
00039 
00041   vtkPlane *GetNextItem();
00042   
00043 protected:
00044   vtkPlaneCollection() {};
00045   ~vtkPlaneCollection() {};
00046   
00047 
00048 private:
00049   // hide the standard AddItem from the user and the compiler.
00050   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00051 
00052 private:
00053   vtkPlaneCollection(const vtkPlaneCollection&);  // Not implemented.
00054   void operator=(const vtkPlaneCollection&);  // Not implemented.
00055 };
00056 
00057 inline void vtkPlaneCollection::AddItem(vtkPlane *f) 
00058 {
00059   this->vtkCollection::AddItem((vtkObject *)f);
00060 }
00061 
00062 inline vtkPlane *vtkPlaneCollection::GetNextItem() 
00063 { 
00064   return static_cast<vtkPlane *>(this->GetNextItemAsObject());
00065 }
00066 
00067 #endif