VTK
vtkJPEGReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkJPEGReader.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 =========================================================================*/
34 #ifndef vtkJPEGReader_h
35 #define vtkJPEGReader_h
36 
37 #include "vtkIOImageModule.h" // For export macro
38 #include "vtkImageReader2.h"
39 
40 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
41 {
42 public:
43  static vtkJPEGReader *New();
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
50  int CanReadFile(const char* fname) override;
51 
57  const char* GetFileExtensions() override
58  {
59  return ".jpeg .jpg";
60  }
61 
65  const char* GetDescriptiveName() override
66  {
67  return "JPEG";
68  }
69 protected:
71  ~vtkJPEGReader() override {}
72 
73  void ExecuteInformation() override;
74  void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override;
75 private:
76  vtkJPEGReader(const vtkJPEGReader&) = delete;
77  void operator=(const vtkJPEGReader&) = delete;
78 };
79 #endif
80 
81 
read JPEG files
Definition: vtkJPEGReader.h:40
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkJPEGReader.h:65
a simple class to control print indentation
Definition: vtkIndent.h:39
~vtkJPEGReader() override
Definition: vtkJPEGReader.h:71
virtual void ExecuteInformation()
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkJPEGReader.h:57
Superclass of binary file readers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:64