VTK
|
Delimited text writer for vtkTable Writes a vtkTable as a delimited text file (such as CSV). More...
#include <vtkDelimitedTextWriter.h>
Public Types | |
typedef vtkWriter | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkDelimitedTextWriter * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
char * | RegisterAndGetOutputString () |
virtual void | SetFieldDelimiter (const char *) |
virtual char * | GetFieldDelimiter () |
virtual void | SetStringDelimiter (const char *) |
virtual char * | GetStringDelimiter () |
virtual void | SetFileName (const char *) |
virtual char * | GetFileName () |
virtual void | SetUseStringDelimiter (bool) |
virtual bool | GetUseStringDelimiter () |
virtual void | SetWriteToOutputString (bool) |
virtual bool | GetWriteToOutputString () |
virtual void | WriteToOutputStringOn () |
virtual void | WriteToOutputStringOff () |
Static Public Member Functions | |
static vtkDelimitedTextWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkDelimitedTextWriter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
bool | OpenStream () |
virtual void | WriteData () |
virtual void | WriteTable (vtkTable *rectilinearGrid) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
bool | WriteToOutputString |
char * | OutputString |
char * | FileName |
char * | FieldDelimiter |
char * | StringDelimiter |
bool | UseStringDelimiter |
ostream * | Stream |
vtkStdString | GetString (vtkStdString string) |
vtkDelimitedTextWriter () | |
~vtkDelimitedTextWriter () |
Delimited text writer for vtkTable Writes a vtkTable as a delimited text file (such as CSV).
Definition at line 38 of file vtkDelimitedTextWriter.h.
Reimplemented from vtkWriter.
Definition at line 42 of file vtkDelimitedTextWriter.h.
vtkDelimitedTextWriter::vtkDelimitedTextWriter | ( | ) | [protected] |
Internal method: Returns the "string" with the "StringDelimiter" if UseStringDelimiter is true.
vtkDelimitedTextWriter::~vtkDelimitedTextWriter | ( | ) | [protected] |
Internal method: Returns the "string" with the "StringDelimiter" if UseStringDelimiter is true.
static vtkDelimitedTextWriter* vtkDelimitedTextWriter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkAlgorithm.
static int vtkDelimitedTextWriter::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 vtkDelimitedTextWriter::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 vtkDelimitedTextWriter* vtkDelimitedTextWriter::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkWriter.
virtual vtkObjectBase* vtkDelimitedTextWriter::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkWriter.
Reimplemented from vtkWriter.
void vtkDelimitedTextWriter::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
virtual void vtkDelimitedTextWriter::SetFieldDelimiter | ( | const char * | ) | [virtual] |
Get/Set the delimiter use to separate fields ("," by default.)
virtual char* vtkDelimitedTextWriter::GetFieldDelimiter | ( | ) | [virtual] |
Get/Set the delimiter use to separate fields ("," by default.)
virtual void vtkDelimitedTextWriter::SetStringDelimiter | ( | const char * | ) | [virtual] |
Get/Set the delimiter used for string data, if any eg. double quotes(").
virtual char* vtkDelimitedTextWriter::GetStringDelimiter | ( | ) | [virtual] |
Get/Set the delimiter used for string data, if any eg. double quotes(").
virtual void vtkDelimitedTextWriter::SetFileName | ( | const char * | ) | [virtual] |
Get/Set the filename for the file.
virtual char* vtkDelimitedTextWriter::GetFileName | ( | ) | [virtual] |
Get/Set the filename for the file.
virtual void vtkDelimitedTextWriter::SetUseStringDelimiter | ( | bool | ) | [virtual] |
Get/Set if StringDelimiter must be used for string data. True by default.
virtual bool vtkDelimitedTextWriter::GetUseStringDelimiter | ( | ) | [virtual] |
Get/Set if StringDelimiter must be used for string data. True by default.
virtual void vtkDelimitedTextWriter::SetWriteToOutputString | ( | bool | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual bool vtkDelimitedTextWriter::GetWriteToOutputString | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual void vtkDelimitedTextWriter::WriteToOutputStringOn | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
virtual void vtkDelimitedTextWriter::WriteToOutputStringOff | ( | ) | [virtual] |
Enable writing to an OutputString instead of the default, a file.
This convenience method returns the string, sets the IVAR to NULL, so that the user is responsible for deleting the string.
Internal method: Returns the "string" with the "StringDelimiter" if UseStringDelimiter is true.
bool vtkDelimitedTextWriter::OpenStream | ( | ) | [protected] |
virtual void vtkDelimitedTextWriter::WriteData | ( | ) | [protected, virtual] |
Implements vtkWriter.
virtual void vtkDelimitedTextWriter::WriteTable | ( | vtkTable * | rectilinearGrid | ) | [protected, virtual] |
virtual int vtkDelimitedTextWriter::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.
bool vtkDelimitedTextWriter::WriteToOutputString [protected] |
Definition at line 91 of file vtkDelimitedTextWriter.h.
char* vtkDelimitedTextWriter::OutputString [protected] |
Definition at line 92 of file vtkDelimitedTextWriter.h.
char* vtkDelimitedTextWriter::FileName [protected] |
Definition at line 103 of file vtkDelimitedTextWriter.h.
char* vtkDelimitedTextWriter::FieldDelimiter [protected] |
Definition at line 104 of file vtkDelimitedTextWriter.h.
char* vtkDelimitedTextWriter::StringDelimiter [protected] |
Definition at line 105 of file vtkDelimitedTextWriter.h.
bool vtkDelimitedTextWriter::UseStringDelimiter [protected] |
Definition at line 106 of file vtkDelimitedTextWriter.h.
ostream* vtkDelimitedTextWriter::Stream [protected] |
Definition at line 108 of file vtkDelimitedTextWriter.h.