VTK  9.3.1
vtkJPEGReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
19 #ifndef vtkJPEGReader_h
20 #define vtkJPEGReader_h
21 
22 #include "vtkIOImageModule.h" // For export macro
23 #include "vtkImageReader2.h"
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
27 {
28 public:
29  static vtkJPEGReader* New();
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
36  int CanReadFile(VTK_FILEPATH const char* fname) override;
37 
43  const char* GetFileExtensions() override { return ".jpeg .jpg"; }
44 
48  const char* GetDescriptiveName() override { return "JPEG"; }
49 
50 protected:
51  vtkJPEGReader() = default;
52  ~vtkJPEGReader() override = default;
53 
54  template <class OT>
55  void InternalUpdate(vtkImageData* data, OT* outPtr);
56 
57  void ExecuteInformation() override;
58  void ExecuteDataWithInformation(vtkDataObject* out, vtkInformation* outInfo) override;
59 
60 private:
61  vtkJPEGReader(const vtkJPEGReader&) = delete;
62  void operator=(const vtkJPEGReader&) = delete;
63 };
64 VTK_ABI_NAMESPACE_END
65 #endif
read JPEG files
Definition: vtkJPEGReader.h:26
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int CanReadFile(VTK_FILEPATH const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkJPEGReader.h:48
a simple class to control print indentation
Definition: vtkIndent.h:28
topologically and geometrically regular array of data
Definition: vtkImageData.h:42
virtual void ExecuteInformation()
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkJPEGReader.h:43
Superclass of binary file readers.
#define VTK_FILEPATH
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:54
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:20