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 
40 class VTKIOIMAGE_EXPORT vtkJPEGReader : public vtkImageReader2
41 {
42 public:
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  }
69 protected:
72 
73  virtual void ExecuteInformation();
74  virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo);
75 private:
76  vtkJPEGReader(const vtkJPEGReader&) VTK_DELETE_FUNCTION;
77  void operator=(const vtkJPEGReader&) VTK_DELETE_FUNCTION;
78 };
79 #endif
80 
81 
virtual const char * GetDescriptiveName()
Return a descriptive name for the file format that might be useful in a GUI.
Definition: vtkJPEGReader.h:65
read JPEG files
Definition: vtkJPEGReader.h:40
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void ExecuteInformation()
Superclass of binary file readers.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
general representation of visualization data
Definition: vtkDataObject.h:64
virtual const char * GetFileExtensions()
Get the file extensions for this format.
Definition: vtkJPEGReader.h:57