00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkAssemblyPaths.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 __vtkAssemblyPaths_h 00031 #define __vtkAssemblyPaths_h 00032 00033 #include "vtkCollection.h" 00034 00035 #include "vtkAssemblyPath.h" // Needed for inline methods 00036 00037 class vtkProp; 00038 00039 class VTK_COMMON_EXPORT vtkAssemblyPaths : public vtkCollection 00040 { 00041 public: 00042 static vtkAssemblyPaths *New(); 00043 vtkTypeRevisionMacro(vtkAssemblyPaths,vtkCollection); 00044 00046 void AddItem(vtkAssemblyPath *p); 00047 00049 void RemoveItem(vtkAssemblyPath *p); 00050 00053 int IsItemPresent(vtkAssemblyPath *p); 00054 00056 vtkAssemblyPath *GetNextItem(); 00057 00060 virtual unsigned long GetMTime(); 00061 00062 protected: 00063 vtkAssemblyPaths() {}; 00064 ~vtkAssemblyPaths() {}; 00065 00066 private: 00067 // hide the standard AddItem from the user and the compiler. 00068 void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); }; 00069 void RemoveItem(vtkObject *o) { this->vtkCollection::RemoveItem(o); }; 00070 void RemoveItem(int i) { this->vtkCollection::RemoveItem(i); }; 00071 int IsItemPresent(vtkObject *o) 00072 { return this->vtkCollection::IsItemPresent(o);}; 00073 private: 00074 vtkAssemblyPaths(const vtkAssemblyPaths&); // Not implemented. 00075 void operator=(const vtkAssemblyPaths&); // Not implemented. 00076 }; 00077 00078 inline void vtkAssemblyPaths::AddItem(vtkAssemblyPath *p) 00079 { 00080 this->vtkCollection::AddItem((vtkObject *)p); 00081 } 00082 00083 inline void vtkAssemblyPaths::RemoveItem(vtkAssemblyPath *p) 00084 { 00085 this->vtkCollection::RemoveItem((vtkObject *)p); 00086 } 00087 00088 inline int vtkAssemblyPaths::IsItemPresent(vtkAssemblyPath *p) 00089 { 00090 return this->vtkCollection::IsItemPresent((vtkObject *)p); 00091 } 00092 00093 inline vtkAssemblyPath *vtkAssemblyPaths::GetNextItem() 00094 { 00095 return (vtkAssemblyPath *)(this->GetNextItemAsObject()); 00096 } 00097 00098 #endif