Commit f22a96fd authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

BUG: Fix Bug #3356 - CanReadFile in vtkPNGReader has wrong access. Backport to VTK5

parent 9df6316c
......@@ -32,28 +32,29 @@ public:
vtkTypeRevisionMacro(vtkPNGReader,vtkImageReader2);
virtual void PrintSelf(ostream& os, vtkIndent indent);
protected:
vtkPNGReader() {};
~vtkPNGReader() {};
// Description: is the given file name a png file?
virtual int CanReadFile(const char* fname);
// Description:
// Description:
// Get the file extensions for this format.
// Returns a string with a space separated list of extensions in
// Returns a string with a space separated list of extensions in
// the format .extension
virtual const char* GetFileExtensions()
{
return ".png";
}
// Description:
// Description:
// Return a descriptive name for the file format that might be useful in a GUI.
virtual const char* GetDescriptiveName()
{
return "PNG";
}
protected:
vtkPNGReader() {};
~vtkPNGReader() {};
virtual void ExecuteInformation();
virtual void ExecuteData(vtkDataObject *out);
private:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment