VTK
vtkEnSightMasterServerReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEnSightMasterServerReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
23 #ifndef vtkEnSightMasterServerReader_h
24 #define vtkEnSightMasterServerReader_h
25 
26 #include "vtkIOEnSightModule.h" // For export macro
28 
29 class vtkCollection;
30 
31 class VTKIOENSIGHT_EXPORT vtkEnSightMasterServerReader : public vtkGenericEnSightReader
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
42  int DetermineFileName(int piece);
43 
45 
48  vtkGetStringMacro(PieceCaseFileName);
50 
52 
55  vtkSetMacro(CurrentPiece, int);
56  vtkGetMacro(CurrentPiece, int);
58 
59  int CanReadFile(const char *fname) override;
60 
61 protected:
64 
66  vtkInformationVector *) override;
68  vtkInformationVector *) override;
69 
70  vtkSetStringMacro(PieceCaseFileName);
74 
75 private:
77  void operator=(const vtkEnSightMasterServerReader&) = delete;
78 };
79 
80 #endif
vtkEnSightMasterServerReader::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkGenericEnSightReader.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkEnSightMasterServerReader::DetermineFileName
int DetermineFileName(int piece)
Determine which file should be read for piece.
vtkEnSightMasterServerReader
reader for compound EnSight files
Definition: vtkEnSightMasterServerReader.h:32
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:52
vtkEnSightMasterServerReader::~vtkEnSightMasterServerReader
~vtkEnSightMasterServerReader() override
vtkEnSightMasterServerReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGenericEnSightReader
class to read any type of EnSight files
Definition: vtkGenericEnSightReader.h:52
vtkEnSightMasterServerReader::New
static vtkEnSightMasterServerReader * New()
vtkEnSightMasterServerReader::PieceCaseFileName
char * PieceCaseFileName
Definition: vtkEnSightMasterServerReader.h:70
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkEnSightMasterServerReader::CanReadFile
int CanReadFile(const char *fname) override
Returns IsEnSightFile() by default, but can be overridden.
vtkEnSightMasterServerReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkEnSightMasterServerReader::MaxNumberOfPieces
int MaxNumberOfPieces
Definition: vtkEnSightMasterServerReader.h:72
vtkEnSightMasterServerReader::vtkEnSightMasterServerReader
vtkEnSightMasterServerReader()
vtkEnSightMasterServerReader::CurrentPiece
int CurrentPiece
Definition: vtkEnSightMasterServerReader.h:73