VTK  9.6.2
vtkXMLStatisticalModelWriter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
10
11#ifndef vtkXMLStatisticalModelWriter_h
12#define vtkXMLStatisticalModelWriter_h
13
14#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_5_0
15#include "vtkIOXMLModule.h" // For export macro
16#include "vtkXMLWriter.h"
17
18VTK_ABI_NAMESPACE_BEGIN
20
21class VTKIOXML_EXPORT vtkXMLStatisticalModelWriter : public vtkXMLWriter
22{
23public:
25 void PrintSelf(ostream& os, vtkIndent indent) override;
27
33
34protected:
37
38 int FillInputPortInformation(int port, vtkInformation* info) override;
39
41 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
42
46 const char* GetDefaultFileExtension() override;
47
48private:
49 void SetInputUpdateExtent(int piece, int numPieces);
50
51 int WriteHeader();
52 int WriteAPiece();
53 int WriteFooter();
54
55 int WriteInlineModel(vtkIndent indent);
56 void WriteInlinePieceAttributes();
57 void WriteInlinePiece(vtkIndent indent);
58
59 void WriteAppendedPieceData(int index);
60
61 void WriteModelDataInline(vtkStatisticalModel* ds, vtkIndent indent);
62
63 void AllocatePositionArrays();
64 void DeletePositionArrays();
65
67 void operator=(const vtkXMLStatisticalModelWriter&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
a base class for statistical modeling of other data