VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkJSONImageWriter Class Reference

Writes vtkImageData to a JSON file. More...

#include <vtkJSONImageWriter.h>

Inheritance diagram for vtkJSONImageWriter:
Inheritance graph
[legend]
Collaboration diagram for vtkJSONImageWriter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkImageAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkJSONImageWriterNewInstance () 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 vtkJSONImageWriterNew ()
static int IsTypeOf (const char *type)
static vtkJSONImageWriterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkJSONImageWriter ()
 ~vtkJSONImageWriter ()
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)

Protected Attributes

char * FileName
char * ArrayName
int Slice

Detailed Description

Writes vtkImageData to a JSON file.

vtkJSONImageWriter writes a JSON file which will describe the data inside a vtkImageData.

Tests:
vtkJSONImageWriter (Tests)

Definition at line 31 of file vtkJSONImageWriter.h.


Member Typedef Documentation

Reimplemented from vtkImageAlgorithm.

Definition at line 35 of file vtkJSONImageWriter.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.


Member Data Documentation

char* vtkJSONImageWriter::FileName [protected]

Definition at line 65 of file vtkJSONImageWriter.h.

char* vtkJSONImageWriter::ArrayName [protected]

Definition at line 66 of file vtkJSONImageWriter.h.

Definition at line 67 of file vtkJSONImageWriter.h.


The documentation for this class was generated from the following file: