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

Common/vtkAssemblyPaths.h

Go to the documentation of this file.
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 =========================================================================*/
00040 #ifndef __vtkAssemblyPaths_h
00041 #define __vtkAssemblyPaths_h
00042 
00043 #include "vtkCollection.h"
00044 
00045 #include "vtkAssemblyPath.h" // Needed for inline methods
00046 
00047 class vtkProp;
00048 
00049 class VTK_COMMON_EXPORT vtkAssemblyPaths : public vtkCollection
00050 {
00051 public:
00052   static vtkAssemblyPaths *New();
00053   vtkTypeRevisionMacro(vtkAssemblyPaths,vtkCollection);
00054 
00056   void AddItem(vtkAssemblyPath *p);
00057 
00059   void RemoveItem(vtkAssemblyPath *p);
00060 
00063   int IsItemPresent(vtkAssemblyPath *p);
00064 
00066   vtkAssemblyPath *GetNextItem();
00067 
00070   virtual unsigned long GetMTime();
00071 
00072 protected:
00073   vtkAssemblyPaths() {};
00074   ~vtkAssemblyPaths() {};
00075   
00076 private:
00077   // hide the standard AddItem from the user and the compiler.
00078   void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
00079   void RemoveItem(vtkObject *o) { this->vtkCollection::RemoveItem(o); };
00080   void RemoveItem(int i) { this->vtkCollection::RemoveItem(i); };
00081   int  IsItemPresent(vtkObject *o) 
00082     { return this->vtkCollection::IsItemPresent(o);};
00083 private:
00084   vtkAssemblyPaths(const vtkAssemblyPaths&);  // Not implemented.
00085   void operator=(const vtkAssemblyPaths&);  // Not implemented.
00086 };
00087 
00088 inline void vtkAssemblyPaths::AddItem(vtkAssemblyPath *p) 
00089 {
00090   this->vtkCollection::AddItem((vtkObject *)p);
00091 }
00092 
00093 inline void vtkAssemblyPaths::RemoveItem(vtkAssemblyPath *p) 
00094 {
00095   this->vtkCollection::RemoveItem((vtkObject *)p);
00096 }
00097 
00098 inline int vtkAssemblyPaths::IsItemPresent(vtkAssemblyPath *p) 
00099 {
00100   return this->vtkCollection::IsItemPresent((vtkObject *)p);
00101 }
00102 
00103 inline vtkAssemblyPath *vtkAssemblyPaths::GetNextItem() 
00104 { 
00105   return (vtkAssemblyPath *)(this->GetNextItemAsObject());
00106 }
00107 
00108 #endif