VTK  9.3.0
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
25VTK_ABI_NAMESPACE_BEGIN
26class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
27{
28public:
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
50protected:
51 vtkJPEGReader() = default;
52 ~vtkJPEGReader() override = default;
53
54 template <class OT>
55 void InternalUpdate(vtkImageData* data, OT* outPtr);
56
57 void ExecuteInformation() override;
59
60private:
61 vtkJPEGReader(const vtkJPEGReader&) = delete;
62 void operator=(const vtkJPEGReader&) = delete;
63};
64VTK_ABI_NAMESPACE_END
65#endif
general representation of visualization data
topologically and geometrically regular array of data
Superclass of binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:29
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
static vtkJPEGReader * New()
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a JPEG file?
~vtkJPEGReader() override=default
void InternalUpdate(vtkImageData *data, OT *outPtr)
void ExecuteInformation() override
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Set of utilities for OpenTURNS<->VTK conversions.
Definition vtkOTFilter.h:21
#define VTK_FILEPATH