VTK
9.0.1
IO
Image
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
=========================================================================*/
23
#ifndef vtkJSONImageWriter_h
24
#define vtkJSONImageWriter_h
25
26
#include "vtkIOImageModule.h"
// For export macro
27
#include "
vtkImageAlgorithm.h
"
28
29
class
VTKIOIMAGE_EXPORT
vtkJSONImageWriter
:
public
vtkImageAlgorithm
30
{
31
public
:
32
static
vtkJSONImageWriter
*
New
();
33
vtkTypeMacro(
vtkJSONImageWriter
,
vtkImageAlgorithm
);
34
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
35
37
40
vtkSetStringMacro(FileName);
41
vtkGetStringMacro(FileName);
43
45
48
vtkSetStringMacro(ArrayName);
49
vtkGetStringMacro(ArrayName);
51
53
56
vtkSetMacro(Slice,
int
);
57
vtkGetMacro(Slice,
int
);
59
63
virtual
void
Write
();
64
65
protected
:
66
vtkJSONImageWriter
();
67
~vtkJSONImageWriter
()
override
;
68
69
char
*
FileName
;
70
char
*
ArrayName
;
71
int
Slice
;
72
73
int
RequestData
(
vtkInformation
* request,
vtkInformationVector
** inputVector,
74
vtkInformationVector
* outputVector)
override
;
75
76
private
:
77
vtkJSONImageWriter
(
const
vtkJSONImageWriter
&) =
delete
;
78
void
operator=(
const
vtkJSONImageWriter
&) =
delete
;
79
};
80
81
#endif
vtkJSONImageWriter::RequestData
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:36
vtkImageAlgorithm.h
vtkImageAlgorithm
Generic algorithm superclass for image algs.
Definition:
vtkImageAlgorithm.h:38
vtkJSONImageWriter
Writes vtkImageData to a JSON file.
Definition:
vtkJSONImageWriter.h:30
vtkJSONImageWriter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkJSONImageWriter::FileName
char * FileName
Definition:
vtkJSONImageWriter.h:69
vtkJSONImageWriter::New
static vtkJSONImageWriter * New()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:34
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:65
vtkJSONImageWriter::Slice
int Slice
Definition:
vtkJSONImageWriter.h:71
vtkJSONImageWriter::ArrayName
char * ArrayName
Definition:
vtkJSONImageWriter.h:70
vtkJSONImageWriter::vtkJSONImageWriter
vtkJSONImageWriter()
vtkJSONImageWriter::~vtkJSONImageWriter
~vtkJSONImageWriter() override
vtkJSONImageWriter::Write
virtual void Write()
The main interface which triggers the writer to start.
Generated on Mon Jan 4 2021 21:12:05 for VTK by
1.8.20