|
virtual const char * | GetClassName () |
|
virtual int | IsA (const char *type) |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
|
bool | Open (ExporterModes mode=STREAM_ROWS) override |
| Open the file and set mode in which the exporter is operating. More...
|
|
void | Close () override |
| Closes the file cleanly. More...
|
|
void | Abort () override |
| Same as Close except deletes the file, if created. More...
|
|
void | AddColumn (vtkAbstractArray *yarray, const char *yarrayname=nullptr, vtkDataArray *xarray=nullptr) override |
| In STREAM_COLUMNS mode, use this method to add a column (yarray ). More...
|
|
void | AddStyle (vtkPlot *vtkNotUsed(plot), const char *vtkNotUsed(plotName)) override |
|
void | SetGlobalStyle (vtkChart *vtkNotUsed(chart)) override |
|
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...
|
|
|
virtual void | SetFormatting (int) |
| Set a formatting to use when writing real numbers (aka floating-point numbers) to csv. More...
|
|
virtual int | GetFormatting () |
| Set a formatting to use when writing real numbers (aka floating-point numbers) to csv. More...
|
|
|
virtual void | SetPrecision (int) |
| Set a precision to use when writing real numbers (aka floating-point numbers) to csv. More...
|
|
virtual int | GetPrecision () |
| Set a precision to use when writing real numbers (aka floating-point numbers) to csv. 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 *) override |
| 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 *) override |
| 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...
|
|
virtual void | AddStyle (vtkPlot *plot, const char *plotName)=0 |
| Attach information about the style of the plot (color,line type, marker type etc. More...
|
|
virtual void | SetGlobalStyle (vtkChart *chart)=0 |
| Set Global style elements like graph and axis titles. 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 CSV.
vtkCSVExporter can be used to generate comma-separated files. Unlike vtkCSVWriter
, this class can generate a single CSV from multiple array collections. This avoids the need to generate of single large appended table. The multiple arrays together represent the complete tabular data that gets exported. The table can be split column-wise or row-wise between multiple arrays. The vtkCSVExporter
provides two sets of APIs to handle the two cases. They cannot be mixed.
When exporting array instances split by columns, i.e. each array will have exactly same number of rows but different columns that are to be concatenated together, use the STREAM_COLUMNS
mode. To use this mode, start writing by using vtkCSVExporter::Open(vtkCSVExporter::STREAM_COLUMNS)
and then add each column using vtkCSVExporter::AddColumn
. Finally, complete the export can generate the output using vtkCSVExporter::Close
.
When exporting arrays that are split by rows, use the STREAM_ROWS mode. The arrays are provided as a part of vtkFieldData (or subclass). To begin exporting in this mode, use vtkCSVExporter::Open(vtkCSVExporter::STREAM_ROWS)
. Write the header using vtkCSVExporter::WriteHeader(vtkFieldData*)
and the pass rows in order by using vtkCSVExporter::WriteData(vtkFieldData*) multiple times. Finally, close using
vtkCSVExporter::Close`.
In STREAM_ROWS mode, the exporter supports invalid / empty cells. When writing each column in WriteData
call, for each column-name an vtkUnsignedCharArray with the name __vtkValidMask__{COLUMN_NAME}
is looked up. If found, it's value is used to determine if that cell is to written out or not.
Definition at line 49 of file vtkCSVExporter.h.