VTK  9.1.0
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 =========================================================================*/
137 #ifndef vtkJPEGReader_h
138 #define vtkJPEGReader_h
139 
140 #include "vtkIOImageModule.h" // For export macro
141 #include "vtkImageReader2.h"
142 
143 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
144 {
145 public:
146  static vtkJPEGReader* New();
148  void PrintSelf(ostream& os, vtkIndent indent) override;
149 
153  int CanReadFile(VTK_FILEPATH const char* fname) override;
154 
160  const char* GetFileExtensions() override { return ".jpeg .jpg"; }
161 
165  const char* GetDescriptiveName() override { return "JPEG"; }
166 
167 protected:
168  vtkJPEGReader() = default;
169  ~vtkJPEGReader() override = default;
170 
171  template <class OT>
173 
174  void ExecuteInformation() override;
176 
177 private:
178  vtkJPEGReader(const vtkJPEGReader&) = delete;
179  void operator=(const vtkJPEGReader&) = delete;
180 };
181 #endif
general representation of visualization data
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:113
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:33
@ data
Definition: vtkX3D.h:321
#define VTK_FILEPATH