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