VTK  9.7.1
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
11 #ifndef vtkXMLStatisticalModelWriter_h
12 #define vtkXMLStatisticalModelWriter_h
13 
14 #include "vtkIOXMLModule.h" // For export macro
15 #include "vtkXMLWriter.h"
16 
17 VTK_ABI_NAMESPACE_BEGIN
19 
20 class VTKIOXML_EXPORT vtkXMLStatisticalModelWriter : public vtkXMLWriter
21 {
22 public:
24  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
32 
33 protected:
35  ~vtkXMLStatisticalModelWriter() override;
36 
38 
39  vtkStatisticalModel* GetModelInput();
40  const char* GetDataSetName() override; // vtkTable isn't a DataSet but it's used by vtkXMLWriter
41 
45  const char* GetDefaultFileExtension() override;
46 
47 private:
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 
69 VTK_ABI_NAMESPACE_END
70 #endif
virtual const char * GetDataSetName()=0
a base class for statistical modeling of other data
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for VTK's XML file writers.
Definition: vtkXMLWriter.h:53
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
virtual const char * GetDefaultFileExtension()=0
Get the default file extension for files written by this writer.
static vtkAlgorithm * New()