OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkEnSightMasterServerReader.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkEnSightMasterServerReader.h,v $
5   Language:  C++
6   Date:      $Date: 2002/06/17 18:08:54 $
7   Version:   $Revision: 1.1 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
13      This software is distributed WITHOUT ANY WARRANTY; without even 
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15      PURPOSE.  See the above copyright notice for more information.
16
17 =========================================================================*/
18 // .NAME vtkEnSightMasterServerReader - reader for compund EnSight files
19
20 #ifndef __vtkEnSightMasterServerReader_h
21 #define __vtkEnSightMasterServerReader_h
22
23 #include "vtkGenericEnSightReader.h"
24
25 class vtkCollection;
26
27 class VTK_IO_EXPORT vtkEnSightMasterServerReader : public vtkGenericEnSightReader
28 {
29 public:
30   vtkTypeRevisionMacro(vtkEnSightMasterServerReader, vtkGenericEnSightReader);
31   void PrintSelf(ostream& os, vtkIndent indent);
32
33   static vtkEnSightMasterServerReader* New();
34
35   // Description:
36   // Determine which file should be read for piece
37   int DetermineFileName(int piece);
38
39   // Description:
40   // Get the file name that will be read.
41   vtkGetStringMacro(PieceCaseFileName);
42
43   // Description:
44   // Set or get the current piece.
45   vtkSetMacro(CurrentPiece, int);
46   vtkGetMacro(CurrentPiece, int);
47   
48 protected:
49   vtkEnSightMasterServerReader();
50   ~vtkEnSightMasterServerReader();
51   
52   void Execute();
53   void ExecuteInformation();
54
55   vtkSetStringMacro(PieceCaseFileName);
56   char* PieceCaseFileName;
57   int MaxNumberOfPieces;
58   int CurrentPiece;
59
60 private:
61   vtkEnSightMasterServerReader(const vtkEnSightMasterServerReader&);  // Not implemented.
62   void operator=(const vtkEnSightMasterServerReader&);  // Not implemented.
63 };
64
65 #endif