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 =========================================================================*/
28 #ifndef vtkJPEGReader_h
29 #define vtkJPEGReader_h
30 
31 #include "vtkIOImageModule.h" // For export macro
32 #include "vtkImageReader2.h"
33 
34 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
35 {
36 public:
37  static vtkJPEGReader *New();
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  int CanReadFile(const char* fname) override;
45 
51  const char* GetFileExtensions() override
52  {
53  return ".jpeg .jpg";
54  }
55 
59  const char* GetDescriptiveName() override
60  {
61  return "JPEG";
62  }
63 protected:
65  ~vtkJPEGReader() override {}
66 
67  void ExecuteInformation() override;
68  void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override;
69 private:
70  vtkJPEGReader(const vtkJPEGReader&) = delete;
71  void operator=(const vtkJPEGReader&) = delete;
72 };
73 #endif
74 
75 
read JPEG files
Definition: vtkJPEGReader.h:34
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:59
a simple class to control print indentation
Definition: vtkIndent.h:33
~vtkJPEGReader() override
Definition: vtkJPEGReader.h:65
virtual void ExecuteInformation()
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkJPEGReader.h:51
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:58