VTK  9.7.1
vtkXMLStatisticalModelReader.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
12 #ifndef vtkXMLStatisticalModelReader_h
13 #define vtkXMLStatisticalModelReader_h
14 
15 #include "vtkIOXMLModule.h" // For export macro
16 #include "vtkXMLReader.h"
17 
18 #include <map> // needed for std::map
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkCellArray;
22 class vtkIdTypeArray;
25 
26 class VTKIOXML_EXPORT vtkXMLStatisticalModelReader : public vtkXMLReader
27 {
28 public:
30  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
37  vtkStatisticalModel* GetOutput();
38  vtkStatisticalModel* GetOutput(int idx);
40 
45  void CopyOutputInformation(vtkInformation* outInfo, int port) override;
46 
47 protected:
49  ~vtkXMLStatisticalModelReader() override;
50 
54  const char* GetDataSetName() override;
55 
59  void SetupEmptyOutput() override;
60 
64  void SetupOutputInformation(vtkInformation* outInfo) override;
65 
69  void ReadXMLData() override;
70 
74  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
75 
76  int FillOutputPortInformation(int, vtkInformation*) override;
77 
78 private:
82  int ReadPiece(vtkXMLDataElement* ePiece);
83 
87  int ReadPieceData(int);
88 
89  // XML elements for the current (lone) piece:
90  vtkXMLDataElement* ParamElement;
91  std::vector<vtkXMLDataElement*> TableGroupElements;
92 
94  void operator=(const vtkXMLStatisticalModelReader&) = delete;
95 };
96 
97 VTK_ABI_NAMESPACE_END
98 #endif
Read VTK XML StatisticalModel (.vtstat) files.
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
virtual void SetupEmptyOutput()=0
Setup the output with no data available.
a base class for statistical modeling of other data
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of vtkIdType
virtual void ReadXMLData()
Pipeline execution methods to be defined by subclass.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual void CopyOutputInformation(vtkInformation *outInfo, int port)
Definition: vtkXMLReader.h:209
dynamic, self-adjusting array of unsigned char
virtual int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
Read the primary element from the file.
object to represent cell connectivity
Definition: vtkCellArray.h:177
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAlgorithm * New()
virtual void SetupOutputInformation(vtkInformation *outInfo)
Setup the output's information.
Definition: vtkXMLReader.h:292
Superclass for VTK's XML format readers.
Definition: vtkXMLReader.h:44