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