VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/Image/vtkJSONImageWriter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkJSONImageWriter.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00025 #ifndef vtkJSONImageWriter_h
00026 #define vtkJSONImageWriter_h
00027 
00028 #include "vtkIOImageModule.h" // For export macro
00029 #include "vtkImageAlgorithm.h"
00030 
00031 class VTKIOIMAGE_EXPORT vtkJSONImageWriter : public vtkImageAlgorithm
00032 {
00033 public:
00034   static vtkJSONImageWriter *New();
00035   vtkTypeMacro(vtkJSONImageWriter,vtkImageAlgorithm);
00036   void PrintSelf(ostream& os, vtkIndent indent);
00037 
00039 
00040   vtkSetStringMacro(FileName);
00041   vtkGetStringMacro(FileName);
00043 
00045 
00047   vtkSetStringMacro(ArrayName);
00048   vtkGetStringMacro(ArrayName);
00050 
00052 
00054   vtkSetMacro(Slice, int);
00055   vtkGetMacro(Slice, int);
00057 
00059   virtual void Write();
00060 
00061 protected:
00062   vtkJSONImageWriter();
00063   ~vtkJSONImageWriter();
00064 
00065   char *FileName;
00066   char *ArrayName;
00067   int Slice;
00068 
00069   virtual int RequestData(vtkInformation *request,
00070                           vtkInformationVector** inputVector,
00071                           vtkInformationVector* outputVector);
00072 
00073 private:
00074   vtkJSONImageWriter(const vtkJSONImageWriter&);  // Not implemented.
00075   void operator=(const vtkJSONImageWriter&);  // Not implemented.
00076 };
00077 
00078 #endif