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 =========================================================================*/
31 #ifndef __vtkJPEGReader_h
32 #define __vtkJPEGReader_h
33 
34 #include "vtkImageReader2.h"
35 
37 {
38 public:
39  static vtkJPEGReader *New();
41  virtual void PrintSelf(ostream& os, vtkIndent indent);
42 
44  int CanReadFile(const char* fname);
45 
47 
49  virtual const char* GetFileExtensions()
50  {
51  return ".jpeg .jpg";
52  }
54 
56 
58  virtual const char* GetDescriptiveName()
59  {
60  return "JPEG";
61  }
62 protected:
66 
67  virtual void ExecuteInformation();
68  virtual void ExecuteData(vtkDataObject *out);
69 private:
70  vtkJPEGReader(const vtkJPEGReader&); // Not implemented.
71  void operator=(const vtkJPEGReader&); // Not implemented.
72 };
73 #endif
74 
75 
virtual const char * GetDescriptiveName()
Definition: vtkJPEGReader.h:58
read JPEG files
Definition: vtkJPEGReader.h:36
static vtkImageReader2 * New()
virtual void ExecuteData(vtkDataObject *data)
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ExecuteInformation()
Superclass of binary file readers.
void PrintSelf(ostream &os, vtkIndent indent)
#define VTK_IO_EXPORT
general representation of visualization data
Definition: vtkDataObject.h:70
virtual const char * GetFileExtensions()
Definition: vtkJPEGReader.h:49