VTK
vtkJSONImageWriter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkJSONImageWriter.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 =========================================================================*/
25 #ifndef vtkJSONImageWriter_h
26 #define vtkJSONImageWriter_h
27 
28 #include "vtkIOImageModule.h" // For export macro
29 #include "vtkImageAlgorithm.h"
30 
32 {
33 public:
34  static vtkJSONImageWriter *New();
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
39 
40  vtkSetStringMacro(FileName);
41  vtkGetStringMacro(FileName);
43 
45 
47  vtkSetStringMacro(ArrayName);
48  vtkGetStringMacro(ArrayName);
50 
52 
54  vtkSetMacro(Slice, int);
55  vtkGetMacro(Slice, int);
57 
59  virtual void Write();
60 
61 protected:
64 
65  char *FileName;
66  char *ArrayName;
67  int Slice;
68 
69  virtual int RequestData(vtkInformation *request,
70  vtkInformationVector** inputVector,
71  vtkInformationVector* outputVector);
72 
73 private:
74  vtkJSONImageWriter(const vtkJSONImageWriter&); // Not implemented.
75  void operator=(const vtkJSONImageWriter&); // Not implemented.
76 };
77 
78 #endif
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:38
Writes vtkImageData to a JSON file.
Generic algorithm superclass for image algs.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)
static vtkAlgorithm * New()
#define VTKIOIMAGE_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)