VTK
|
Writes vtkImageData to a JSON file. More...
#include <vtkJSONImageWriter.h>
Public Types | |
typedef vtkImageAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkJSONImageWriter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Write () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetArrayName (const char *) |
virtual char * | GetArrayName () |
virtual void | SetSlice (int) |
virtual int | GetSlice () |
Static Public Member Functions | |
static vtkJSONImageWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkJSONImageWriter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkJSONImageWriter () | |
~vtkJSONImageWriter () | |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Protected Attributes | |
char * | FileName |
char * | ArrayName |
int | Slice |
Writes vtkImageData to a JSON file.
vtkJSONImageWriter writes a JSON file which will describe the data inside a vtkImageData.
Definition at line 31 of file vtkJSONImageWriter.h.
Reimplemented from vtkImageAlgorithm.
Definition at line 35 of file vtkJSONImageWriter.h.
vtkJSONImageWriter::vtkJSONImageWriter | ( | ) | [protected] |
vtkJSONImageWriter::~vtkJSONImageWriter | ( | ) | [protected] |
static vtkJSONImageWriter* vtkJSONImageWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkJSONImageWriter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
virtual int vtkJSONImageWriter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkImageAlgorithm.
static vtkJSONImageWriter* vtkJSONImageWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkImageAlgorithm.
virtual vtkObjectBase* vtkJSONImageWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkImageAlgorithm.
Reimplemented from vtkImageAlgorithm.
void vtkJSONImageWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkImageAlgorithm.
virtual void vtkJSONImageWriter::SetFileName | ( | const char * | ) | [virtual] |
Specify file name for the image file.
virtual char* vtkJSONImageWriter::GetFileName | ( | ) | [virtual] |
Specify file name for the image file.
virtual void vtkJSONImageWriter::SetArrayName | ( | const char * | ) | [virtual] |
Specify ArrayName to export. By default NULL which will dump ALL arrays.
virtual char* vtkJSONImageWriter::GetArrayName | ( | ) | [virtual] |
Specify ArrayName to export. By default NULL which will dump ALL arrays.
virtual void vtkJSONImageWriter::SetSlice | ( | int | ) | [virtual] |
Specify Slice in Z to export. By default -1 which will dump the full 3D domain.
virtual int vtkJSONImageWriter::GetSlice | ( | ) | [virtual] |
Specify Slice in Z to export. By default -1 which will dump the full 3D domain.
virtual void vtkJSONImageWriter::Write | ( | ) | [virtual] |
The main interface which triggers the writer to start.
virtual int vtkJSONImageWriter::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called in response to a REQUEST_DATA request from the executive. Subclasses should override either this method or the ExecuteDataWithInformation method in order to generate data for their outputs. For images, the output arrays will already be allocated, so all that is necessary is to fill in the voxel values.
Reimplemented from vtkImageAlgorithm.
char* vtkJSONImageWriter::FileName [protected] |
Definition at line 65 of file vtkJSONImageWriter.h.
char* vtkJSONImageWriter::ArrayName [protected] |
Definition at line 66 of file vtkJSONImageWriter.h.
int vtkJSONImageWriter::Slice [protected] |
Definition at line 67 of file vtkJSONImageWriter.h.