FiletoActorContainerImpl.h

Go to the documentation of this file.
00001 /* $Id: FiletoActorContainerImpl.h,v 1.7 2005/12/29 10:16:50 pfb Exp $ */
00002 
00003 #ifndef _FiletoActorContainerImpl_h
00004 #define _FiletoActorContainerImpl_h
00005 
00010 #include "../FiletoActor/FiletoActor.h"
00011 #include "FiletoActorRow.h"
00012 #include <vtkObject.h>
00013 #include <string>
00014 #include <list>
00015 
00020 class FiletoActorContainerImpl : public vtkObject
00021   {
00022 
00023   //****************************************************************************
00024                              public:
00025 
00029   typedef std::list<FiletoActorRow *> ListRow;
00030 
00034   typedef ListRow::iterator ListRowIterator;
00035 
00039   typedef std::list<FiletoActorRow const *> ConstListRow;
00040 
00044   typedef ConstListRow::iterator ConstListRowIterator;
00045 
00051   static FiletoActorContainerImpl *New();
00052 
00056   vtkTypeMacro(FiletoActorContainerImpl, vtkObject);
00057 
00063   void PrintSelf(ostream& os, vtkIndent indent);
00064 
00070   void add(std::string name, FiletoActor *dataflow);
00071   
00078   FiletoActor *remove(std::string name);
00079   
00088   FiletoActor *remove(ListRowIterator index);
00089 
00096   FiletoActor *examine(std::string name);
00097 
00106   FiletoActor *examine(ListRowIterator index) const;
00107 
00113   std::string name(ListRowIterator index) const;
00114 
00121   ListRowIterator nameToIndex(std::string name);
00122 
00127   ListRowIterator end();
00128 
00133   ListRowIterator begin();
00134 
00139   int getRowCount() const;
00140   
00146   int getColumnCount() const;
00147 
00148   //****************************************************************************
00149                              protected:
00150   
00154   FiletoActorContainerImpl();
00155 
00159   virtual ~FiletoActorContainerImpl();
00160 
00161   //****************************************************************************
00162                              private:
00163 
00164   ListRow list;
00165   };
00166 
00167 /*
00168  * $Log: FiletoActorContainerImpl.h,v $
00169  * Revision 1.7  2005/12/29 10:16:50  pfb
00170  * Changes made in upgrade to ParaView 2.2.1, VTK 4.5.0
00171  *
00172  * Revision 1.6  2005/06/10 07:49:02  pfb
00173  * Changes made as a result of dev. machine update from woody to sarge.
00174  * Most of the changes are because of the upgrade from gcc-2.95 to gcc-3.3.
00175  *
00176  * Revision 1.5  2005/05/10 17:08:01  pfb
00177  * Added module info.
00178  *
00179  * Revision 1.4  2002/09/06 09:57:24  pfb
00180  * Added bigin() and end().
00181  *
00182  * Revision 1.3  2002/08/29 06:23:05  pfb
00183  * Changed includes to reflect move from Gui/FiletoActor.
00184  *
00185  * Revision 1.2  2002/08/29 03:25:11  pfb
00186  * Moved from Gui/FiletoActor.
00187  *
00188  * Revision 1.1  2002/08/27 06:59:35  pfb
00189  * Initial rev.
00190  *
00191  *
00192  */
00193 
00197 #endif