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=========================================================================*/
40#ifndef vtkJPEGReader_h
41#define vtkJPEGReader_h
42
43#include "vtkIOImageModule.h" // For export macro
44#include "vtkImageReader2.h"
45
46class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
47{
48public:
49 static vtkJPEGReader* New();
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
56 int CanReadFile(VTK_FILEPATH const char* fname) override;
57
63 const char* GetFileExtensions() override { return ".jpeg .jpg"; }
64
68 const char* GetDescriptiveName() override { return "JPEG"; }
69
70protected:
71 vtkJPEGReader() = default;
72 ~vtkJPEGReader() override = default;
73
74 template <class OT>
75 void InternalUpdate(vtkImageData* data, OT* outPtr);
76
77 void ExecuteInformation() override;
79
80private:
81 vtkJPEGReader(const vtkJPEGReader&) = delete;
82 void operator=(const vtkJPEGReader&) = delete;
83};
84#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:49
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:33
#define VTK_FILEPATH