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 =========================================================================*/
33 #ifndef vtkJPEGReader_h
34 #define vtkJPEGReader_h
35 
36 #include "vtkIOImageModule.h" // For export macro
37 #include "vtkImageReader2.h"
38 
40 {
41 public:
42  static vtkJPEGReader *New();
44  virtual void PrintSelf(ostream& os, vtkIndent indent);
45 
47  int CanReadFile(const char* fname);
48 
50 
52  virtual const char* GetFileExtensions()
53  {
54  return ".jpeg .jpg";
55  }
57 
59 
61  virtual const char* GetDescriptiveName()
62  {
63  return "JPEG";
64  }
65 protected:
69 
70  virtual void ExecuteInformation();
71  virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo);
72 private:
73  vtkJPEGReader(const vtkJPEGReader&); // Not implemented.
74  void operator=(const vtkJPEGReader&); // Not implemented.
75 };
76 #endif
77 
78 
virtual const char * GetDescriptiveName()
Definition: vtkJPEGReader.h:61
read JPEG files
Definition: vtkJPEGReader.h:39
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ExecuteInformation()
Superclass of binary file readers.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTKIOIMAGE_EXPORT
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
general representation of visualization data
Definition: vtkDataObject.h:64
virtual const char * GetFileExtensions()
Definition: vtkJPEGReader.h:52