VTK
|
A Javascript data writer for vtkTable Writes a vtkTable into a Javascript data format. More...
#include <vtkJavaScriptDataWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkJavaScriptDataWriter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetOutputStream (ostream *my_stream) |
ostream * | GetOutputStream () |
virtual void | SetVariableName (const char *) |
virtual char * | GetVariableName () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetIncludeFieldNames (bool) |
virtual bool | GetIncludeFieldNames () |
Static Public Member Functions | |
static vtkJavaScriptDataWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkJavaScriptDataWriter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkJavaScriptDataWriter () | |
~vtkJavaScriptDataWriter () | |
ofstream * | OpenFile () |
virtual void | WriteData () |
virtual void | WriteTable (vtkTable *table, ostream *stream_ptr) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
char * | VariableName |
char * | FileName |
bool | IncludeFieldNames |
ostream * | OutputStream |
A Javascript data writer for vtkTable Writes a vtkTable into a Javascript data format.
Definition at line 35 of file vtkJavaScriptDataWriter.h.
Reimplemented from vtkWriter.
Definition at line 39 of file vtkJavaScriptDataWriter.h.
vtkJavaScriptDataWriter::vtkJavaScriptDataWriter | ( | ) | [protected] |
vtkJavaScriptDataWriter::~vtkJavaScriptDataWriter | ( | ) | [protected] |
static vtkJavaScriptDataWriter* vtkJavaScriptDataWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkJavaScriptDataWriter::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 vtkWriter.
virtual int vtkJavaScriptDataWriter::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 vtkWriter.
static vtkJavaScriptDataWriter* vtkJavaScriptDataWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
virtual vtkObjectBase* vtkJavaScriptDataWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
Reimplemented from vtkWriter.
void vtkJavaScriptDataWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual void vtkJavaScriptDataWriter::SetVariableName | ( | const char * | ) | [virtual] |
Get/set the name of the Javascript variable that the dataset will be assigned to. The default value is "data", so the javascript code generated by the filter will look like this: "var data = [ ... ];". If VariableName is set to NULL, then no assignment statement will be generated (i.e., only "[ ... ];" will be generated).
virtual char* vtkJavaScriptDataWriter::GetVariableName | ( | ) | [virtual] |
Get/set the name of the Javascript variable that the dataset will be assigned to. The default value is "data", so the javascript code generated by the filter will look like this: "var data = [ ... ];". If VariableName is set to NULL, then no assignment statement will be generated (i.e., only "[ ... ];" will be generated).
virtual void vtkJavaScriptDataWriter::SetFileName | ( | const char * | ) | [virtual] |
Get/Set the filename for the file.
virtual char* vtkJavaScriptDataWriter::GetFileName | ( | ) | [virtual] |
Get/Set the filename for the file.
virtual void vtkJavaScriptDataWriter::SetIncludeFieldNames | ( | bool | ) | [virtual] |
Get/Set the whether or not to include field names When field names are on you will get data output that looks like this: var data=[ {foo:3,time:"2009-11-04 16:09:42",bar:1 }, {foo:5,time:"2009-11-04 16:11:22",bar:0 }, without field names the data will be an array of arrays like this: var data=[ [3,"2009-11-04 16:09:42",1], [5,"2009-11-04 16:11:22",0], Default is ON (true)
virtual bool vtkJavaScriptDataWriter::GetIncludeFieldNames | ( | ) | [virtual] |
Get/Set the whether or not to include field names When field names are on you will get data output that looks like this: var data=[ {foo:3,time:"2009-11-04 16:09:42",bar:1 }, {foo:5,time:"2009-11-04 16:11:22",bar:0 }, without field names the data will be an array of arrays like this: var data=[ [3,"2009-11-04 16:09:42",1], [5,"2009-11-04 16:11:22",0], Default is ON (true)
void vtkJavaScriptDataWriter::SetOutputStream | ( | ostream * | my_stream | ) |
ostream* vtkJavaScriptDataWriter::GetOutputStream | ( | ) |
ofstream* vtkJavaScriptDataWriter::OpenFile | ( | ) | [protected] |
virtual void vtkJavaScriptDataWriter::WriteData | ( | ) | [protected, virtual] |
Implements vtkWriter.
virtual void vtkJavaScriptDataWriter::WriteTable | ( | vtkTable * | table, |
ostream * | stream_ptr | ||
) | [protected, virtual] |
virtual int vtkJavaScriptDataWriter::FillInputPortInformation | ( | int | port, |
vtkInformation * | info | ||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkAlgorithm.
char* vtkJavaScriptDataWriter::VariableName [protected] |
Definition at line 86 of file vtkJavaScriptDataWriter.h.
char* vtkJavaScriptDataWriter::FileName [protected] |
Definition at line 87 of file vtkJavaScriptDataWriter.h.
bool vtkJavaScriptDataWriter::IncludeFieldNames [protected] |
Definition at line 88 of file vtkJavaScriptDataWriter.h.
ostream* vtkJavaScriptDataWriter::OutputStream [protected] |
Definition at line 89 of file vtkJavaScriptDataWriter.h.