Commit cff02ab2 authored by Shawn Waldon's avatar Shawn Waldon

Add a reader for the MRC image file format

parent 1b788ce0
......@@ -33,6 +33,7 @@ set(Module_SRCS
vtkTIFFWriter.cxx
vtkVolume16Reader.cxx
vtkVolumeReader.cxx
vtkMRCReader.cxx
)
set_source_files_properties(
......
This diff is collapsed.
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMRCReader.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkMRCReader - read MRC image files
// .SECTION Description
//
// A reader to load MRC images. See http://bio3d.colorado.edu/imod/doc/mrc_format.txt
// for the file format specification.
#ifndef vtkMRCReader_h
#define vtkMRCReader_h
#include "vtkImageAlgorithm.h"
#include "vtkIOImageModule.h" // For export macro
class vtkInformation;
class vtkInformationVector;
class VTKIOIMAGE_EXPORT vtkMRCReader : public vtkImageAlgorithm
{
public:
static vtkMRCReader* New();
vtkTypeMacro(vtkMRCReader, vtkImageAlgorithm)
void PrintSelf(ostream& stream, vtkIndent indent);
// .Description
// Get/Set the file to read
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
protected:
vtkMRCReader();
virtual ~vtkMRCReader();
virtual int RequestInformation(vtkInformation* request,
vtkInformationVector** inputVector,
vtkInformationVector* outputVector);
virtual void ExecuteDataWithInformation(vtkDataObject *output,
vtkInformation* outInfo);
char* FileName;
private:
vtkMRCReader(const vtkMRCReader&); // Not implemented
void operator=(const vtkMRCReader&); // Not implemented
class vtkInternal;
vtkInternal* Internals;
};
#endif
Markdown is supported
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