VTK
dox/IO/EnSight/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 "vtkIOEnSightModule.h" // For export macro
00026 #include "vtkGenericEnSightReader.h"
00027 
00028 class vtkCollection;
00029 
00030 class VTKIOENSIGHT_EXPORT vtkEnSightMasterServerReader : public vtkGenericEnSightReader
00031 {
00032 public:
00033   vtkTypeMacro(vtkEnSightMasterServerReader, vtkGenericEnSightReader);
00034   void PrintSelf(ostream& os, vtkIndent indent);
00035 
00036   static vtkEnSightMasterServerReader* New();
00037 
00039   int DetermineFileName(int piece);
00040 
00042 
00043   vtkGetStringMacro(PieceCaseFileName);
00045 
00047 
00048   vtkSetMacro(CurrentPiece, int);
00049   vtkGetMacro(CurrentPiece, int);
00051 
00052   int CanReadFile(const char *fname);
00053 
00054 protected:
00055   vtkEnSightMasterServerReader();
00056   ~vtkEnSightMasterServerReader();
00057 
00058   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00059                           vtkInformationVector *);
00060   virtual int RequestInformation(vtkInformation *, vtkInformationVector **,
00061                                  vtkInformationVector *);
00062 
00063   vtkSetStringMacro(PieceCaseFileName);
00064   char* PieceCaseFileName;
00065   int MaxNumberOfPieces;
00066   int CurrentPiece;
00067 
00068 private:
00069   vtkEnSightMasterServerReader(const vtkEnSightMasterServerReader&);  // Not implemented.
00070   void operator=(const vtkEnSightMasterServerReader&);  // Not implemented.
00071 };
00072 
00073 #endif