#include <vtkJavaScriptDataWriter.h>
Definition at line 34 of file vtkJavaScriptDataWriter.h.
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 (vtkObject *o) |
Protected Member Functions | |
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 |
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.
virtual const char* vtkJavaScriptDataWriter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkWriter.
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 | ( | vtkObject * | o | ) | [static] |
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 85 of file vtkJavaScriptDataWriter.h.
char* vtkJavaScriptDataWriter::FileName [protected] |
Definition at line 86 of file vtkJavaScriptDataWriter.h.
bool vtkJavaScriptDataWriter::IncludeFieldNames [protected] |
Definition at line 87 of file vtkJavaScriptDataWriter.h.
ostream* vtkJavaScriptDataWriter::OutputStream [protected] |
Definition at line 88 of file vtkJavaScriptDataWriter.h.