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();
71 private:
72  vtkPNGReader(const vtkPNGReader&); // Not implemented.
73  void operator=(const vtkPNGReader&); // Not implemented.
74 };
75 #endif
76 
77 
vtkIOImageModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
VTKIOIMAGE_EXPORT
#define VTKIOIMAGE_EXPORT
Definition: vtkIOImageModule.h:15
vtkPNGReader::~vtkPNGReader
~vtkPNGReader()
Definition: vtkPNGReader.h:67
vtkPNGReader::CanReadFile
virtual int CanReadFile(const char *fname)
vtkPNGReader::GetFileExtensions
virtual const char * GetFileExtensions()
Definition: vtkPNGReader.h:50
vtkPNGReader::New
static vtkPNGReader * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPNGReader::vtkPNGReader
vtkPNGReader()
Definition: vtkPNGReader.h:66
vtkPNGReader::ExecuteInformation
virtual void ExecuteInformation()
vtkImageReader2
Superclass of binary file readers.
Definition: vtkImageReader2.h:58
vtkPNGReader::GetDescriptiveName
virtual const char * GetDescriptiveName()
Definition: vtkPNGReader.h:59
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPNGReader::ExecuteDataWithInformation
virtual void ExecuteDataWithInformation(vtkDataObject *out, vtkInformation *outInfo)
vtkPNGReader
read PNG files
Definition: vtkPNGReader.h:38
vtkPNGReader::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkImageReader2.h