VTK  9.3.1
vtkTableToSparseArray.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
4 
35 #ifndef vtkTableToSparseArray_h
36 #define vtkTableToSparseArray_h
37 
38 #include "vtkArrayDataAlgorithm.h"
39 #include "vtkInfovisCoreModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkArrayExtents;
43 
44 class VTKINFOVISCORE_EXPORT vtkTableToSparseArray : public vtkArrayDataAlgorithm
45 {
46 public:
47  static vtkTableToSparseArray* New();
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
56  void ClearCoordinateColumns();
57  void AddCoordinateColumn(const char* name);
59 
61 
64  void SetValueColumn(const char* name);
65  const char* GetValueColumn();
67 
69 
72  void ClearOutputExtents();
73  void SetOutputExtents(const vtkArrayExtents& extents);
75 
76 protected:
78  ~vtkTableToSparseArray() override;
79 
80  int FillInputPortInformation(int, vtkInformation*) override;
81 
83 
84 private:
86  void operator=(const vtkTableToSparseArray&) = delete;
87 
88  class implementation;
89  implementation* const Implementation;
90 };
91 
92 VTK_ABI_NAMESPACE_END
93 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Stores the number of dimensions and valid coordinate ranges along each dimension for vtkArray...
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce vtkArrayDatas as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkArrayDataAlgorithm * New()
Store zero or more vtkInformation instances.
converts a vtkTable into a sparse array.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.