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

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   //BTX
00045 
00047   vtkPlane *GetNextPlane(vtkCollectionSimpleIterator &cookie);
00048   //ETX
00050 
00051 protected:
00052   vtkPlaneCollection() {};
00053   ~vtkPlaneCollection() {};
00054   
00055 
00056 private:
00057   // hide the standard AddItem from the user and the compiler.
00058   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00059 
00060 private:
00061   vtkPlaneCollection(const vtkPlaneCollection&);  // Not implemented.
00062   void operator=(const vtkPlaneCollection&);  // Not implemented.
00063 };
00064 
00065 inline void vtkPlaneCollection::AddItem(vtkPlane *f) 
00066 {
00067   this->vtkCollection::AddItem((vtkObject *)f);
00068 }
00069 
00070 inline vtkPlane *vtkPlaneCollection::GetNextItem() 
00071 { 
00072  return static_cast<vtkPlane *>(this->GetNextItemAsObject());
00073 }
00074 
00075 #endif

Generated on Mon Jan 21 23:07:17 2008 for VTK by  doxygen 1.4.3-20050530