VTK  9.3.20240419
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
128 #ifndef vtkJPEGReader_h
129 #define vtkJPEGReader_h
130 
131 #include "vtkIOImageModule.h" // For export macro
132 #include "vtkImageReader2.h"
133 
134 VTK_ABI_NAMESPACE_BEGIN
135 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
136 {
137 public:
138  static vtkJPEGReader* New();
140  void PrintSelf(ostream& os, vtkIndent indent) override;
141 
145  int CanReadFile(VTK_FILEPATH const char* fname) override;
146 
152  const char* GetFileExtensions() override { return ".jpeg .jpg"; }
153 
157  const char* GetDescriptiveName() override { return "JPEG"; }
158 
159 protected:
160  vtkJPEGReader() = default;
161  ~vtkJPEGReader() override = default;
162 
163  template <class OT>
165 
166  void ExecuteInformation() override;
168 
169 private:
170  vtkJPEGReader(const vtkJPEGReader&) = delete;
171  void operator=(const vtkJPEGReader&) = delete;
172 };
173 VTK_ABI_NAMESPACE_END
174 #endif
general representation of visualization data
topologically and geometrically regular array of data
Definition: vtkImageData.h:156
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
read JPEG files
void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetFileExtensions() override
Get the file extensions for this format.
vtkJPEGReader()=default
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a JPEG file?
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
~vtkJPEGReader() override=default
void InternalUpdate(vtkImageData *data, OT *outPtr)
void ExecuteInformation() override
static vtkJPEGReader * New()
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:21
@ data
Definition: vtkX3D.h:315
#define VTK_FILEPATH