VTK  9.6.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
20#ifndef vtkJPEGReader_h
21#define vtkJPEGReader_h
22
23#include "vtkIOImageModule.h" // For export macro
24#include "vtkImageReader2.h"
25
26VTK_ABI_NAMESPACE_BEGIN
27class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
28{
29public:
30 static vtkJPEGReader* New();
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
37 int CanReadFile(VTK_FILEPATH const char* fname) override;
38
44 const char* GetFileExtensions() override { return ".jpeg .jpg"; }
45
49 const char* GetDescriptiveName() override { return "JPEG"; }
50
51protected:
52 vtkJPEGReader() = default;
53 ~vtkJPEGReader() override = default;
54
55 template <class OT>
56 void InternalUpdate(vtkImageData* data, OT* outPtr);
57
58 void ExecuteInformation() override;
60
61private:
62 vtkJPEGReader(const vtkJPEGReader&) = delete;
63 void operator=(const vtkJPEGReader&) = delete;
64};
65VTK_ABI_NAMESPACE_END
66#endif
general representation of visualization data
topologically and geometrically regular array of data
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
Definition vtkIndent.h:29
Store vtkAlgorithm input/output information.
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(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