VTKExtensions
FiltersRendering
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
23
class
VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
vtkAbstractChartExporter
:
public
vtkObject
24
{
25
public
:
26
static
vtkAbstractChartExporter
*
New
();
27
vtkTypeMacro(
vtkAbstractChartExporter
,
vtkObject
);
28
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
29
30
enum
ExporterModes
31
{
32
STREAM_ROWS
,
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
:
87
vtkAbstractChartExporter
();
88
~
vtkAbstractChartExporter
()
override
;
89
90
private
:
91
vtkAbstractChartExporter
(
const
vtkAbstractChartExporter
&) =
delete
;
92
void
operator=
(
const
vtkAbstractChartExporter
&) =
delete
;
93
};
94
95
#endif
vtkObject
vtkAbstractArray
vtkAbstractChartExporter::STREAM_ROWS
Definition:
vtkAbstractChartExporter.h:32
vtkFieldData
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkIndent
vtkDataArray
VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
Definition:
vtkPVVTKExtensionsFiltersRenderingModule.h:15
vtkPlot
vtkPVVTKExtensionsFiltersRenderingModule.h
vtkChart
vtkAbstractChartExporter::ExporterModes
ExporterModes
Definition:
vtkAbstractChartExporter.h:30
vtkObject::New
static vtkObject * New()
vtkObject.h
vtkAbstractChartExporter
exporter used by certain views to export data into a file or stream.
Definition:
vtkAbstractChartExporter.h:23
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
Generated by
1.8.13 on Tue Dec 31 2024