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

dox/Common/vtkPlaneCollection.h

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