VTK: IO/Image/vtkJPEGReader.h Source File

| 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
28 #ifndef vtkJPEGReader_h
29 #define vtkJPEGReader_h
30
31 #include "vtkIOImageModule.h" // For export macro
32 #include "vtkImageReader2.h"
33
34 VTK_ABI_NAMESPACE_BEGIN
35 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
36 {
37 public:
38 static vtkJPEGReader* New();
39 vtkTypeMacro(vtkJPEGReader, vtkImageReader2);
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
45 int CanReadFile(VTK_FILEPATH const char* fname) override;
46
52 const char* GetFileExtensions() override { return ".jpeg .jpg"; }
53
57 const char* GetDescriptiveName() override { return "JPEG"; }
58
59 protected:
60 vtkJPEGReader() = default;
61 ~vtkJPEGReader() override = default;
62
63 template <class OT>
64 void InternalUpdate(vtkImageData* data, OT* outPtr);
65
66 void ExecuteInformation() override;
67 void ExecuteDataWithInformation(vtkDataObject* out, vtkInformation* outInfo) override;
68
69 private:
70 vtkJPEGReader(const vtkJPEGReader&) = delete;
71 void operator=(const vtkJPEGReader&) = delete;
72 };
73 VTK_ABI_NAMESPACE_END
74 #endif
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:52
vtkImageReader2
Superclass of binary file readers.
Definition: vtkImageReader2.h:57
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkJPEGReader
read JPEG files
Definition: vtkJPEGReader.h:36
vtkJPEGReader::ExecuteDataWithInformation
void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
vtkJPEGReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkJPEGReader::GetFileExtensions
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkJPEGReader.h:52
vtkJPEGReader::vtkJPEGReader
vtkJPEGReader()=default
vtkJPEGReader::CanReadFile
int CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file a JPEG file?
vtkJPEGReader::GetDescriptiveName
const char * GetDescriptiveName() override
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkJPEGReader.h:57
vtkJPEGReader::~vtkJPEGReader
~vtkJPEGReader() override=default
vtkJPEGReader::InternalUpdate
void InternalUpdate(vtkImageData *data, OT *outPtr)
vtkJPEGReader::ExecuteInformation
void ExecuteInformation() override
vtkJPEGReader::New
static vtkJPEGReader * New()
OT
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:21
vtkX3D::data
@ data
Definition: vtkX3D.h:315
vtkImageReader2.h
VTK_FILEPATH
#define VTK_FILEPATH
Definition: vtkWrappingHints.h:34