9 #ifndef vtkPlotlyJsonExporter_h 10 #define vtkPlotlyJsonExporter_h 29 vtkSetStringMacro(FileName);
30 vtkGetStringMacro(FileName);
43 void Close()
override;
49 void Abort()
override;
81 vtkSetMacro(WriteToOutputString,
bool);
82 vtkGetMacro(WriteToOutputString,
bool);
83 vtkBooleanMacro(WriteToOutputString,
bool);
87 std::string GetOutputString()
const;
97 char* FileName =
nullptr;
99 bool WriteToOutputString =
false;
100 vtkInternals* Internals;
virtual void SetGlobalStyle(vtkChart *chart)=0
Set Global style elements like graph and axis titles.
virtual void WriteHeader(vtkFieldData *)=0
In STREAM_ROWS mode, use these methods to write column headers once using WriteHeader and then use Wr...
virtual void WriteData(vtkFieldData *)=0
In STREAM_ROWS mode, use these methods to write column headers once using WriteHeader and then use Wr...
virtual void AddStyle(vtkPlot *plot, const char *plotName)=0
Attach information about the style of the plot (color,line type, marker type etc. ...
virtual void Abort()=0
Same as Close except deletes the file, if created.
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
static vtkAbstractChartExporter * New()
virtual bool Open(ExporterModes mode=STREAM_ROWS)=0
Open the file and set mode in which the exporter is operating.
virtual void Close()=0
Closes the file cleanly.
exporter used by certain views to export data into a file or stream.
exporter used by certain views to export data into a file or stream.
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void AddColumn(vtkAbstractArray *yarray, const char *yarrayname=nullptr, vtkDataArray *xarray=nullptr)=0
In STREAM_COLUMNS mode, use this method to add a column (yarray).