VTK  9.2.6
vtkJPEGReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkJPEGReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef vtkJPEGReader_h
32 #define vtkJPEGReader_h
33 
34 #include "vtkIOImageModule.h" // For export macro
35 #include "vtkImageReader2.h"
36 
37 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
38 {
39 public:
40  static vtkJPEGReader* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
47  int CanReadFile(VTK_FILEPATH const char* fname) override;
48 
54  const char* GetFileExtensions() override { return ".jpeg .jpg"; }
55 
59  const char* GetDescriptiveName() override { return "JPEG"; }
60 
61 protected:
62  vtkJPEGReader() = default;
63  ~vtkJPEGReader() override = default;
64 
65  template <class OT>
66  void InternalUpdate(vtkImageData* data, OT* outPtr);
67 
68  void ExecuteInformation() override;
69  void ExecuteDataWithInformation(vtkDataObject* out, vtkInformation* outInfo) override;
70 
71 private:
72  vtkJPEGReader(const vtkJPEGReader&) = delete;
73  void operator=(const vtkJPEGReader&) = delete;
74 };
75 #endif
read JPEG files
Definition: vtkJPEGReader.h:37
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:59
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:53
virtual void ExecuteInformation()
const char * GetFileExtensions() override
Get the file extensions for this format.
Definition: vtkJPEGReader.h:54
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:65
Set of utilities for OpenTURNS<->VTK conversions.
Definition: vtkOTFilter.h:32