VTK
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=========================================================================*/
34#ifndef vtkJPEGReader_h
35#define vtkJPEGReader_h
36
37#include "vtkIOImageModule.h" // For export macro
38#include "vtkImageReader2.h"
39
40class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
41{
42public:
43 static vtkJPEGReader *New();
45 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46
50 int CanReadFile(const char* fname);
51
57 virtual const char* GetFileExtensions()
58 {
59 return ".jpeg .jpg";
60 }
61
65 virtual const char* GetDescriptiveName()
66 {
67 return "JPEG";
68 }
69protected:
72
73 virtual void ExecuteInformation();
75private:
76 vtkJPEGReader(const vtkJPEGReader&) VTK_DELETE_FUNCTION;
77 void operator=(const vtkJPEGReader&) VTK_DELETE_FUNCTION;
78};
79#endif
80
81
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
read JPEG files
Definition: vtkJPEGReader.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetFileExtensions()
Get the file extensions for this format.
Definition: vtkJPEGReader.h:57
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkJPEGReader.h:65
static vtkJPEGReader * New()
int CanReadFile(const char *fname)
Is the given file a JPEG file?
virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
virtual void ExecuteInformation()