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