VTK  9.6.20260202
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 "vtkIOXMLModule.h" // For export macro
15#include "vtkXMLWriter.h"
16
17VTK_ABI_NAMESPACE_BEGIN
19
20class VTKIOXML_EXPORT vtkXMLStatisticalModelWriter : public vtkXMLWriter
21{
22public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
26
32
33protected:
36
37 int FillInputPortInformation(int port, vtkInformation* info) override;
38
40 const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
41
45 const char* GetDefaultFileExtension() override;
46
47private:
48 void SetInputUpdateExtent(int piece, int numPieces);
49
50 int WriteHeader();
51 int WriteAPiece();
52 int WriteFooter();
53
54 int WriteInlineModel(vtkIndent indent);
55 void WriteInlinePieceAttributes();
56 void WriteInlinePiece(vtkIndent indent);
57
58 void WriteAppendedPieceData(int index);
59
60 void WriteModelDataInline(vtkStatisticalModel* ds, vtkIndent indent);
61
62 void AllocatePositionArrays();
63 void DeletePositionArrays();
64
66 void operator=(const vtkXMLStatisticalModelWriter&) = delete;
67};
68
69VTK_ABI_NAMESPACE_END
70#endif
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
a base class for statistical modeling of other data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
const char * GetDataSetName() override
const char * GetDefaultFileExtension() override
Get the default file extension for files written by this writer.
vtkStatisticalModel * GetModelInput()
static vtkXMLStatisticalModelWriter * New()
~vtkXMLStatisticalModelWriter() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
See the vtkAlgorithm for a description of what these do.
int vtkTypeBool
Definition vtkABI.h:64