VTK
vtkSEPReader.h
Go to the documentation of this file.
1 /*=========================================================================
2  Copyright (c) GeometryFactory
3  All rights reserved.
4  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
5 
6  This software is distributed WITHOUT ANY WARRANTY; without even
7  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8  PURPOSE. See the above copyright notice for more information.
9 
10 =========================================================================*/
21 #ifndef vtkSEPReader_h
22 #define vtkSEPReader_h
23 
24 #include <vtkImageReader.h>
25 
26 #include <string> //for string
27 
28 class VTKIOIMAGE_EXPORT vtkSEPReader : public vtkImageReader
29 {
30 public:
31  static vtkSEPReader* New();
32  vtkTypeMacro(vtkSEPReader, vtkImageReader);
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
38  int CanReadFile(const char* fname) override;
39 
40  const char* GetFileExtensions() override { return ".H"; }
41 
42 protected:
43  vtkSEPReader();
44  ~vtkSEPReader() override = default;
45 
46  int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
47  vtkInformationVector* outputVector) override;
48 
49  int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
50  vtkInformationVector* outputVector) override;
51 
52  int ReadHeader();
53 
55 
56 private:
57  vtkSEPReader(const vtkSEPReader&) = delete;
58  void operator=(const vtkSEPReader&) = delete;
59 };
60 
61 #endif
vtkImageAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called in response to a REQUEST_DATA request from the executive.
vtkImageReader
Superclass of transformable binary file readers.
Definition: vtkImageReader.h:38
vtkSEPReader::DataFile
std::string DataFile
Definition: vtkSEPReader.h:54
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSEPReader::GetFileExtensions
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkSEPReader.h:40
vtkImageReader::RequestInformation
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
vtkImageReader::New
static vtkImageReader * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSEPReader
Stanford Exploration Project files reader.
Definition: vtkSEPReader.h:28
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:64
vtkX3D::string
Definition: vtkX3D.h:496
vtkImageReader.h
vtkImageReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkImageReader::CanReadFile
int CanReadFile(const char *) override
vtkImageReader itself can read raw binary files.
Definition: vtkImageReader.h:97