|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
|
bool | Open (ExporterModes mode=STREAM_ROWS) |
| Open the file and set mode in which the exporter is operating. More...
|
|
void | Close () |
| Closes the file cleanly. More...
|
|
void | Abort () |
| Same as Close except deletes the file, if created. More...
|
|
void | AddColumn (vtkAbstractArray *yarray, const char *yarrayname=NULL, vtkDataArray *xarray=NULL) |
| In STREAM_COLUMNS mode, use this method to add a column (yarray ). More...
|
|
std::string | GetOutputString () |
| Get the exported data as string. More...
|
|
|
virtual void | SetFileName (const char *) |
| Get/Set the filename for the file. More...
|
|
virtual char * | GetFileName () |
| Get/Set the filename for the file. More...
|
|
|
virtual void | SetFieldDelimiter (const char *) |
| Get/Set the delimiter use to separate fields ("," by default.) More...
|
|
virtual char * | GetFieldDelimiter () |
| Get/Set the delimiter use to separate fields ("," by default.) More...
|
|
|
void | SetColumnLabel (const char *name, const char *label) |
| In STREAM_ROWS mode, this API can be used to change columns labels when exporting. More...
|
|
void | ClearColumnLabels () |
| In STREAM_ROWS mode, this API can be used to change columns labels when exporting. More...
|
|
const char * | GetColumnLabel (const char *name) |
| In STREAM_ROWS mode, this API can be used to change columns labels when exporting. More...
|
|
|
void | WriteHeader (vtkFieldData *) |
| In STREAM_ROWS mode, use these methods to write column headers once using WriteHeader and then use WriteData as many times as needed to write out rows. More...
|
|
void | WriteData (vtkFieldData *) |
| In STREAM_ROWS mode, use these methods to write column headers once using WriteHeader and then use WriteData as many times as needed to write out rows. More...
|
|
|
virtual void | SetWriteToOutputString (bool) |
| Whether to output to a string instead of to a file, which is the default. More...
|
|
virtual bool | GetWriteToOutputString () |
| Whether to output to a string instead of to a file, which is the default. More...
|
|
virtual void | WriteToOutputStringOn () |
| Whether to output to a string instead of to a file, which is the default. More...
|
|
virtual void | WriteToOutputStringOff () |
| Whether to output to a string instead of to a file, which is the default. More...
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
|
virtual void | DebugOff () |
|
bool | GetDebug () |
|
void | SetDebug (bool debugFlag) |
|
virtual void | Modified () |
|
virtual vtkMTimeType | GetMTime () |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
int | HasObserver (unsigned long event) |
|
int | HasObserver (const char *event) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
int | HasObserver (unsigned long event, vtkCommand *) |
|
int | HasObserver (const char *event, vtkCommand *) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
int | InvokeEvent (unsigned long event, void *callData) |
|
int | InvokeEvent (const char *event, void *callData) |
|
const char * | GetClassName () const |
|
virtual void | Delete () |
|
virtual void | FastDelete () |
|
void | Print (ostream &os) |
|
virtual void | Register (vtkObjectBase *o) |
|
virtual void | UnRegister (vtkObjectBase *o) |
|
void | SetReferenceCount (int) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
void | PrintRevisions (ostream &) |
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
int | GetReferenceCount () |
|
void | PrintRevisions (ostream &) |
|
exporter used by certain views to export data as a CSV file.
This is used by vtkSMCSVExporterProxy to export the data shown in the spreadsheet view or chart views as a CSV. The reason this class simply doesn't use a vtkCSVWriter is that vtkCSVWriter is designed to write out a single vtkTable as CSV. For exporting data from views, generating this single vtkTable that can be exported is often time consuming or memory consuming or both. Having a special exporter helps us with that. It provides two sets of APIs:
STREAM_ROWS:
to use to stream a single large vtkTable as contiguous chunks where each chuck is a subset of the rows (ideal for use by vtkSpreadSheetView) viz. OpenFile, WriteHeader, WriteData (which can be repeated as many times as needed), and CloseFile,
STREAM_COLUMNS:
to use to add columns (idea for chart views) viz. OpenFile, AddColumn (which can be repeated), and CloseFile.
One has to pick which mode the exporter is operating in during the OpenFile() call.
Definition at line 51 of file vtkCSVExporter.h.