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