VTK
dox/IO/vtkEnSightMasterServerReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkEnSightMasterServerReader.h
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 =========================================================================*/
00022 #ifndef __vtkEnSightMasterServerReader_h
00023 #define __vtkEnSightMasterServerReader_h
00024 
00025 #include "vtkGenericEnSightReader.h"
00026 
00027 class vtkCollection;
00028 
00029 class VTK_IO_EXPORT vtkEnSightMasterServerReader : public vtkGenericEnSightReader
00030 {
00031 public:
00032   vtkTypeMacro(vtkEnSightMasterServerReader, vtkGenericEnSightReader);
00033   void PrintSelf(ostream& os, vtkIndent indent);
00034 
00035   static vtkEnSightMasterServerReader* New();
00036 
00038   int DetermineFileName(int piece);
00039 
00041 
00042   vtkGetStringMacro(PieceCaseFileName);
00044 
00046 
00047   vtkSetMacro(CurrentPiece, int);
00048   vtkGetMacro(CurrentPiece, int);
00050 
00051   int CanReadFile(const char *fname);
00052 
00053 protected:
00054   vtkEnSightMasterServerReader();
00055   ~vtkEnSightMasterServerReader();
00056   
00057   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00058                           vtkInformationVector *);
00059   virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00060                                  vtkInformationVector *);
00061 
00062   vtkSetStringMacro(PieceCaseFileName);
00063   char* PieceCaseFileName;
00064   int MaxNumberOfPieces;
00065   int CurrentPiece;
00066 
00067 private:
00068   vtkEnSightMasterServerReader(const vtkEnSightMasterServerReader&);  // Not implemented.
00069   void operator=(const vtkEnSightMasterServerReader&);  // Not implemented.
00070 };
00071 
00072 #endif