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

Common/vtkTransformCollection.h

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