vtkAbstractChartExporter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
9 #ifndef vtkAbstractChartExporter_h
10 #define vtkAbstractChartExporter_h
11 
12 #include "vtkObject.h"
13 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
14 
15 #include <string> // needed for std::string
16 
17 class vtkAbstractArray;
18 class vtkDataArray;
19 class vtkFieldData;
20 class vtkPlot;
21 class vtkChart;
22 
24 {
25 public:
26  static vtkAbstractChartExporter* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31  {
33  STREAM_COLUMNS
34  };
35 
39  virtual bool Open(ExporterModes mode = STREAM_ROWS) = 0;
40 
45  virtual void Close() = 0;
46 
51  virtual void Abort() = 0;
52 
54 
59  virtual void WriteHeader(vtkFieldData*) = 0;
60  virtual void WriteData(vtkFieldData*) = 0;
62 
70  virtual void AddColumn(
71  vtkAbstractArray* yarray, const char* yarrayname = nullptr, vtkDataArray* xarray = nullptr) = 0;
72 
79  virtual void AddStyle(vtkPlot* plot, const char* plotName) = 0;
80 
84  virtual void SetGlobalStyle(vtkChart* chart) = 0;
85 
86 protected:
88  ~vtkAbstractChartExporter() override;
89 
90 private:
92  void operator=(const vtkAbstractChartExporter&) = delete;
93 };
94 
95 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
static vtkObject * New()
exporter used by certain views to export data into a file or stream.
void operator=(const vtkObjectBase &)