VTK
vtkPNGReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPNGReader.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 vtkPNGReader_h
32 #define vtkPNGReader_h
33 
34 #include "vtkIOImageModule.h" // For export macro
35 #include "vtkImageReader2.h"
36 
38 {
39 public:
40  static vtkPNGReader *New();
42  virtual void PrintSelf(ostream& os, vtkIndent indent);
43 
45  virtual int CanReadFile(const char* fname);
46 
48 
50  virtual const char* GetFileExtensions()
51  {
52  return ".png";
53  }
55 
57 
59  virtual const char* GetDescriptiveName()
60  {
61  return "PNG";
62  }
64 
65 protected:
68 
69  virtual void ExecuteInformation();
70  virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo);
71 private:
72  vtkPNGReader(const vtkPNGReader&); // Not implemented.
73  void operator=(const vtkPNGReader&); // Not implemented.
74 };
75 #endif
76 
77 
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual const char * GetDescriptiveName()
Definition: vtkPNGReader.h:59
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:38
read PNG files
Definition: vtkPNGReader.h:37
virtual void ExecuteInformation()
virtual const char * GetFileExtensions()
Definition: vtkPNGReader.h:50
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